NLF2 is a derived class of NLP2, a nonlinear problem with analytic first and second derivatives. More...
Inherits OPTPP::NLP2.
Public Member Functions | |
virtual void | eval () |
Evaluate the objective function, gradient, and Hessian. | |
virtual real | evalF (const NEWMAT::ColumnVector &x) |
Evaluate the objective function at x. | |
virtual real | evalF () |
Evaluate the objective function. | |
virtual NEWMAT::ColumnVector | evalG (const NEWMAT::ColumnVector &x) |
Evaluate the analytic gradient of the objective function at x. | |
virtual NEWMAT::ColumnVector | evalG () |
Evaluate the analytic gradient of the objective function. | |
virtual NEWMAT::SymmetricMatrix | evalH () |
Evaluate the analytic Hessian of the objective function. | |
virtual void | initFcn () |
Initialize function. | |
NLF2 (int ndim, USERFCN2V f, INITFCN i, INITCONFCN c, void *v) | |
NLF2 (int ndim, USERFCN2V f, INITFCN i, void *v) | |
NLF2 (int ndim, USERFCN2V f, INITFCN i, CompoundConstraint *constraint=0, void *v=0) | |
Alternate function pointers with user-supplied void function pointer. | |
NLF2 (int ndim, int nlncons, USERNLNCON2 f, INITFCN i) | |
NLF2 (int ndim, int nlncons, USERNLNCON1 f, INITFCN i) | |
NLF2 (int ndim, USERFCN2 f, INITFCN i, INITCONFCN c) | |
NLF2 (int ndim, USERFCN2 f, INITFCN i, CompoundConstraint *constraint=0) | |
NLF2 (int ndim) | |
virtual void | reset () |
Reset parameter values. | |
Static Protected Member Functions | |
static void | f_helper (int m, int n, const NEWMAT::ColumnVector &xc, real &f, NEWMAT::ColumnVector &g, NEWMAT::SymmetricMatrix &H, int &result, void *v) |
Protected Attributes | |
USERNLNCON1 | confcn1 |
User-defined nonlinear constraints. | |
USERNLNCON2 | confcn2 |
User-defined nonlinear constraints. | |
USERFCN2 | fcn |
User-defined objective function. | |
USERFCN2V | fcn_v |
User-defined objective function. | |
INITCONFCN | init_confcn |
Initializes the constraints. | |
INITFCN | init_fcn |
Initializes the objective function. | |
bool | init_flag |
Has the function been initialized? | |
void * | vptr |
Void pointer. |
NLF2 is a derived class of NLP2, a nonlinear problem with analytic first and second derivatives.
The NLF2 class implements function, gradient, and Hessian evaluators.
Definition at line 275 of file NLF.h.
OPTPP::NLF2::NLF2 | ( | int | ndim, | |
USERFCN2V | f, | |||
INITFCN | i, | |||
CompoundConstraint * | constraint = 0 , |
|||
void * | v = 0 | |||
) | [inline] |
virtual void OPTPP::NLF2::eval | ( | ) | [virtual] |
Evaluate the objective function, gradient, and Hessian.
Implements OPTPP::NLP0.
virtual real OPTPP::NLF2::evalF | ( | const NEWMAT::ColumnVector & | x | ) | [virtual] |
Evaluate the objective function at x.
Implements OPTPP::NLP0.
virtual real OPTPP::NLF2::evalF | ( | ) | [virtual] |
Evaluate the objective function.
Implements OPTPP::NLP0.
virtual NEWMAT::ColumnVector OPTPP::NLF2::evalG | ( | const NEWMAT::ColumnVector & | x | ) | [virtual] |
Evaluate the analytic gradient of the objective function at x.
Implements OPTPP::NLP0.
virtual NEWMAT::ColumnVector OPTPP::NLF2::evalG | ( | ) | [virtual] |
Evaluate the analytic gradient of the objective function.
Implements OPTPP::NLP0.
virtual NEWMAT::SymmetricMatrix OPTPP::NLF2::evalH | ( | ) | [virtual] |
Evaluate the analytic Hessian of the objective function.
Implements OPTPP::NLP0.
virtual void OPTPP::NLF2::initFcn | ( | ) | [virtual] |
Initialize function.
Implements OPTPP::NLP0.
virtual void OPTPP::NLF2::reset | ( | ) | [virtual] |
Reset parameter values.
Implements OPTPP::NLP0.
USERNLNCON1 OPTPP::NLF2::confcn1 [protected] |
USERNLNCON2 OPTPP::NLF2::confcn2 [protected] |
USERFCN2 OPTPP::NLF2::fcn [protected] |
USERFCN2V OPTPP::NLF2::fcn_v [protected] |
INITCONFCN OPTPP::NLF2::init_confcn [protected] |
INITFCN OPTPP::NLF2::init_fcn [protected] |
bool OPTPP::NLF2::init_flag [protected] |
void* OPTPP::NLF2::vptr [protected] |