Example 3 function evaluation progam. This function evaluation expects its input to come from a text file, and it writes its output to to a text file.
The test problem is:
The nonlinear constraints are handled using a penalty approach. Define
The objective value that is return in the output file is:
The bounds are handled in the example3.apps input file, where we also define the scaling and intial guessis defined as:
This example courtesy of William Hart, Sandia National Labs.
Definition in file example3.cpp.
#include <iostream>
#include <fstream>
#include <vector>
Include dependency graph for example3.cpp:

Go to the source code of this file.
Functions | |
| double | feval (const vector< double > &x) |
| Function Evaluation. | |
| int | main (int argc, char *argv[]) |
| Main. | |
|
|
Function Evaluation.
Definition at line 92 of file example3.cpp. |
|
||||||||||||
|
Main.
Definition at line 116 of file example3.cpp. References feval(). |
![]()
© Sandia Corporation | Site Contact | Privacy and Security
![]()
Generated on Fri Feb 16 10:33:35 2007 for APPSPACK 5.0.1 by
1.3.9.1 written by Dimitri van Heesch,
© 1997-2002