#include <Functional.hh>
Inheritance diagram for ConcreteEvaluationContext:

Public Methods | |
| ConcreteEvaluationContext (IotrVector *x, IotrVector *Lm, ConcreteFunctional *func) | |
| Constructor. | |
| virtual void | values (double &obj, IotrVector &c) |
| Get the value of the objective and the constraints at the current point. | |
| virtual void | grads (IotrVector &g, GenMatrix &J) |
| Get the value of the objective gradient and constraint Jacobian at the current point. | |
| virtual void | hessian (SymMatrix &H) |
| Get the value of the Hessian of the Lagrangian at the current point. | |
Protected Attributes | |
| IotrVectorHandle | mX |
| mX will store the current point at which a Functional is to be evaluated | |
| IotrVectorHandle | mLm |
| mLm will store the the values of the Lagrange multipliers for a Functional | |
| ConcreteFunctionalHandle | mFunc |
| mFunc will store the name of the Functional which is to be evalutated at mX and mLm. | |
Since a ConcreteFunctional does not use an EvaluationContext to save its state, an instance of ConcreteEvaluationContext simply sends the current point to a ConcreteFunctional, and lets the ConcreteFunctional perform the evaluation. The method values() is specialized to call the concreteValues() method of a ConcreteFunctional. A similar arrangement holds for grads() and hessian().
|
||||||||||||||||
|
Constructor. Initializes the protected variables, mX, mLm, and mFunc. |
|
||||||||||||
|
Get the value of the objective gradient and constraint Jacobian at the current point.
Implements EvaluationContext. |
|
|
Get the value of the Hessian of the Lagrangian at the current point.
Implements EvaluationContext. |
|
||||||||||||
|
Get the value of the objective and the constraints at the current point.
Implements EvaluationContext. |
1.2.18