#include <CuterFunctional.hh>
Inheritance diagram for CuterFunctional:
Public Methods | |
CuterFunctional (CuterAdaptor &a) | |
Constructor. | |
virtual IotrVector * | newPrimalVector () const |
virtual IotrVector * | newDualVector () const |
virtual GenMatrix * | newJacobianMatrix () const=0 |
virtual SymMatrix * | newHessianMatrix () 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. |
|
Constructor. Creates memory for member arrays with respect to nmax and mmax. |
|
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().
Implements ConcreteFunctional. Implemented in CuterDenseFunctional, and CuterSparseFunctional. |
|
Computes the Hessian evaluated at x and Lm. The actual implementation of this evaluation is contained in concreteHess() which is called by hessian().
Implements ConcreteFunctional. Implemented in CuterDenseFunctional, and CuterSparseFunctional. |
|
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().
Implements ConcreteFunctional. |