Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

ConcreteEvaluationContext Class Reference
[FunctionAnalysis]

A subclass of EvaluationContext to be used with ConcreteFunctionals. More...

#include <Functional.hh>

Inheritance diagram for ConcreteEvaluationContext:

EvaluationContext IotrRefCount List of all members.

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.


Detailed Description

A subclass of EvaluationContext to be used with ConcreteFunctionals.

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 & Destructor Documentation

ConcreteEvaluationContext::ConcreteEvaluationContext IotrVector   x,
IotrVector   Lm,
ConcreteFunctional   func
 

Constructor.

Initializes the protected variables, mX, mLm, and mFunc.


Member Function Documentation

virtual void ConcreteEvaluationContext::grads IotrVector   g,
GenMatrix   J
[virtual]
 

Get the value of the objective gradient and constraint Jacobian at the current point.

Parameters:
g  the objective gradient
J  the constraint Jacobian

Implements EvaluationContext.

virtual void ConcreteEvaluationContext::hessian SymMatrix   H [virtual]
 

Get the value of the Hessian of the Lagrangian at the current point.

Parameters:
H  the Hessian of the Lagrangian

Implements EvaluationContext.

virtual void ConcreteEvaluationContext::values double &    obj,
IotrVector   c
[virtual]
 

Get the value of the objective and the constraints at the current point.

Parameters:
obj  the value of the objective
c  the values of the constraints

Implements EvaluationContext.


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 10:03:42 2003 for iotr by doxygen1.2.18