#include <AmplFunctional.hh>
Inheritance diagram for AmplFunctional:
Public Methods | |
virtual void | concreteValues (double &obj, IotrVector &c, 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. | |
virtual IotrVector * | newPrimalVector () const |
virtual IotrVector * | newDualVector () const |
virtual GenMatrix * | newJacobianMatrix () const=0 |
virtual SymMatrix * | newHessianMatrix () const=0 |
virtual PrimalDualSystem * | newPrimalDualSystem (ElementGather *iclow, ElementGather *icupp, ElementGather *ieq, ElementGather *ixlow, ElementGather *ixupp, IotrMask *aXmask)=0 |
Protected Attributes | |
ASL * | asl |
AMPL defined struct ASL. | |
AmplAdaptorHandle | adaptor |
adaptor used for functional support specific to AMPL and not functionals in general. |
|
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 AmplDenseFunctional, and AmplSparseFunctional. |
|
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 AmplDenseFunctional, and AmplSparseFunctional. |
|
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. |