Provides interfaces for the evaluation of quantities related to the objective function. More...
#include <Aristos_Objective.hpp>
Public Member Functions | |
virtual double | getValue (const Vector &x) const =0 |
Returns the value of the objective function. More... | |
virtual void | getGradient (const Vector &x, Vector &g) const =0 |
Computes the gradient of the objective function. More... | |
Provides interfaces for the evaluation of quantities related to the objective function.
These include:
Computes the gradient of the objective function.
x | [in] - Current SQP iterate vector. |
g | [out] - Gradient of the objective function. |
Interface function that evaluates the gradient of the objective function. To be subclassed and implemented by the user.
Teuchos::RefCountPtr<const YourVectorClass> ex = (Teuchos::dyn_cast<Aristos::YourVectorAdapter>(const_cast<Aristos::Vector&>(x))).getVector();
|
pure virtual |
Returns the value of the objective function.
x | [in] - Current SQP iterate vector. |
Interface function that evaluates the objective function. To be subclassed and implemented by the user.
Teuchos::RefCountPtr<const YourVectorClass> ex = (Teuchos::dyn_cast<Aristos::YourVectorAdapter>(const_cast<Aristos::Vector&>(x))).getVector();