#include <cev_evaluator.hpp>
Inheritance diagram for CustomEvaluator:


Definition at line 17 of file cev_evaluator.hpp.
Public Member Functions | |
| CustomEvaluator () | |
| Constructor - can take any arguments that are appropriate. In this case, we don't have any. | |
| ~CustomEvaluator () | |
| Destructor. | |
| void | operator() (int tag_in, const APPSPACK::Vector &x_in, APPSPACK::Vector &f_out, string &msg_out) |
| Main function of the class because it does the evaluation. | |
| void | print () const |
| Prints out information about the evaluator. | |
Private Member Functions | |
| bool | constraint (const APPSPACK::Vector &x) |
| Return true is the constraint is satisfied, false otherwise. | |
| double | feval (const APPSPACK::Vector &x) |
| Evaluate function at x. | |
Private Attributes | |
| int | cnt |
| Number of calls to the evaluator. | |
|
|
Constructor - can take any arguments that are appropriate. In this case, we don't have any.
Definition at line 13 of file cev_evaluator.cpp. |
|
|
Destructor.
Definition at line 17 of file cev_evaluator.cpp. References print(). |
|
||||||||||||||||||||
|
Main function of the class because it does the evaluation. Evaluates the function at x, returning a vector of function values (usually just a single value) and any error messages. It must fill in the vector f_out and the string msg_out. For successful evaluations, msg_out should be something like "Success". If the iteration is unsuccessful, the vector f must be empty, i.e., by calling f_out.resize(0). See APPSPACK::Evaluator::Interface::operator()() for more details. Definition at line 22 of file cev_evaluator.cpp. References cnt, constraint(), feval(), and APPSPACK::Vector::resize(). |
|
|
Prints out information about the evaluator.
Reimplemented from APPSPACK::Evaluator::Interface. Definition at line 40 of file cev_evaluator.cpp. References cnt. Referenced by ~CustomEvaluator(). |
|
|
Return true is the constraint is satisfied, false otherwise.
Definition at line 55 of file cev_evaluator.cpp. References APPSPACK::Vector::size(). Referenced by operator()(). |
|
|
Evaluate function at x.
Definition at line 45 of file cev_evaluator.cpp. References APPSPACK::Vector::size(). Referenced by operator()(). |
|
|
Number of calls to the evaluator.
Definition at line 56 of file cev_evaluator.hpp. Referenced by operator()(), and print(). |
![]()
© 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