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

CuterFunctional Class Reference
[CuterSupport]

An implementation of Functional that uses Cuter to compute function values and derivatives. More...

#include <CuterFunctional.hh>

Inheritance diagram for CuterFunctional:

ConcreteFunctional Functional IotrRefCount CuterDenseFunctional CuterSparseFunctional List of all members.

Public Methods

 CuterFunctional (CuterAdaptor &a)
 Constructor.

virtual IotrVectornewPrimalVector () const
virtual IotrVectornewDualVector () const
virtual GenMatrixnewJacobianMatrix () const=0
virtual SymMatrixnewHessianMatrix () const=0

Protected Methods

virtual void concreteValues (double &obj, IotrVector &v, IotrVector &x)
 Computes the value of the constraint and objective functions at the current iterate x.

virtual void concreteGrads (IotrVector &g, GenMatrix &J, IotrVector &x)=0
 Computes the constraint Jacobian and the Lagrangian evaluated at x and Lm.

virtual void concreteHess (SymMatrix &H, IotrVector &x, IotrVector &Lm)=0
 Computes the Hessian evaluated at x and Lm.


Protected Attributes

int mMc
 mMc = number of constraints.

int mNx
 mNx = number of variables.


Detailed Description

An implementation of Functional that uses Cuter to compute function values and derivatives.


Constructor & Destructor Documentation

CuterFunctional::CuterFunctional CuterAdaptor   a [inline]
 

Constructor.

Creates memory for member arrays with respect to nmax and mmax.


Member Function Documentation

virtual void CuterFunctional::concreteGrads IotrVector   g,
GenMatrix   J,
IotrVector   x
[protected, pure virtual]
 

Computes the constraint Jacobian and the Lagrangian evaluated at x and Lm.

concreteValues() contains the implementation for the evaluation of the Jacobian and Lagrangian and is called by grads().

Parameters:
g  the gradient of the objective function
J  the Jacobian of the constraints
x  point at which the objective and constraint function are to be evaluated.

Implements ConcreteFunctional.

Implemented in CuterDenseFunctional, and CuterSparseFunctional.

virtual void CuterFunctional::concreteHess SymMatrix   H,
IotrVector   x,
IotrVector   Lm
[protected, pure virtual]
 

Computes the Hessian evaluated at x and Lm.

The actual implementation of this evaluation is contained in concreteHess() which is called by hessian().

Parameters:
H  denotes the Hessian.
Lm  points to the vector whose elements are the Lagrange multipliers.
x  points the current point at which the objective and constraint function are to be evaluated.

Implements ConcreteFunctional.

Implemented in CuterDenseFunctional, and CuterSparseFunctional.

virtual void CuterFunctional::concreteValues double &    obj,
IotrVector   v,
IotrVector   x
[protected, virtual]
 

Computes the value of the constraint and objective functions at the current iterate x.

This is where the actual evaluation of the functional is implemented. concreteValues() is called by values().

Parameters:
x  the point at which the objective and constraint functions are to be evaluated.
obj  the value of the objective function
c  the value of constraint functions.

Implements ConcreteFunctional.


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