OPTPP::NLF1 Class Reference

NLF1 is a derived class of NLP1, a nonlinear problem with analytic first derivatives. More...

Inherits OPTPP::NLP1.

List of all members.

Public Member Functions

virtual void eval ()
 Evaluate objective function, gradient, and Hessian.
virtual void evalC (const NEWMAT::ColumnVector &x)
virtual NEWMAT::ColumnVector evalCF (const NEWMAT::ColumnVector &x)
 Evaluate the nonlinear constraints at x.
virtual NEWMAT::Matrix evalCG (const NEWMAT::ColumnVector &x)
 Evaluate the gradient of the nonlinear constraints at x.
virtual OptppArray
< NEWMAT::SymmetricMatrix > 
evalCH (NEWMAT::ColumnVector &x, int darg)
 Evaluate the constraint Hessian at x.
virtual NEWMAT::SymmetricMatrix evalCH (NEWMAT::ColumnVector &x)
 Evaluate the Hessian of the nonlinear constraints at x.
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 gradient of the objective function at x.
virtual NEWMAT::ColumnVector evalG ()
 Evaluate the gradient of the objective function.
virtual NEWMAT::SymmetricMatrix evalH (NEWMAT::ColumnVector &x)
 Evaluate the Hessian of the objective function at x.
virtual NEWMAT::SymmetricMatrix evalH ()
 Evaluate the Hessian of the objective function.
virtual real evalLagrangian (const NEWMAT::ColumnVector &x, NEWMAT::ColumnVector &mult, const NEWMAT::ColumnVector &type)
 Evaluate the Lagrangian at x.
virtual NEWMAT::ColumnVector evalLagrangianGradient (const NEWMAT::ColumnVector &x, const NEWMAT::ColumnVector &mult, const NEWMAT::ColumnVector &type)
 Evaluate the gradient of the Lagrangian at x.
virtual void initFcn ()
 Initialize selected function.
 NLF1 (int ndim, USERFCN1V f, INITFCN i, INITCONFCN c, void *v)
 NLF1 (int ndim, USERFCN1V f, INITFCN i, void *v)
 NLF1 (int ndim, USERFCN1V f, INITFCN i, CompoundConstraint *constraint=0, void *v=0)
 Alternate function pointers with user-supplied void function pointer.
 NLF1 (int ndim, int nlncons, USERNLNCON1 f, INITFCN i)
 NLF1 (int ndim, USERFCN1 f, INITFCN i, INITCONFCN c)
 NLF1 (int ndim, USERFCN1 f, INITFCN i, CompoundConstraint *constraint=0)
 NLF1 (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, int &result, void *v)

Protected Attributes

USERNLNCON1 confcn
 User-defined constraints.
USERFCN1 fcn
 User-defined objective function.
USERFCN1V fcn_v
 User-defined objective function w/ void ptr.
INITCONFCN init_confcn
 Initializes of the constraints.
INITFCN init_fcn
 Initializes the objective function.
bool init_flag
 Has the function been initialized?
void * vptr
 Void pointer.

Detailed Description

NLF1 is a derived class of NLP1, a nonlinear problem with analytic first derivatives.

The NLF1 class implements function, gradient, and Hessian evaluators.

Author:
J. C. Meza, Sandia National Laboratories, meza@ca.sandia.gov
Note:
Modified by P.J. Williams, Sandia National Laboratories, pwillia@sandia.gov
Date:
Last modified 03/2007

Definition at line 171 of file NLF.h.


Constructor & Destructor Documentation

OPTPP::NLF1::NLF1 ( int  ndim,
USERFCN1V  f,
INITFCN  i,
CompoundConstraint *  constraint = 0,
void *  v = 0 
) [inline]

Alternate function pointers with user-supplied void function pointer.

Definition at line 204 of file NLF.h.

References vptr.


Member Function Documentation

virtual void OPTPP::NLF1::eval (  )  [virtual]

Evaluate objective function, gradient, and Hessian.

Implements OPTPP::NLP0.

virtual NEWMAT::ColumnVector OPTPP::NLF1::evalCF ( const NEWMAT::ColumnVector &  x  )  [virtual]

Evaluate the nonlinear constraints at x.

Implements OPTPP::NLP0.

virtual NEWMAT::Matrix OPTPP::NLF1::evalCG ( const NEWMAT::ColumnVector &  x  )  [virtual]

Evaluate the gradient of the nonlinear constraints at x.

Implements OPTPP::NLP0.

virtual OptppArray<NEWMAT::SymmetricMatrix> OPTPP::NLF1::evalCH ( NEWMAT::ColumnVector &  x,
int  darg 
) [virtual]

Evaluate the constraint Hessian at x.

Implements OPTPP::NLP0.

virtual NEWMAT::SymmetricMatrix OPTPP::NLF1::evalCH ( NEWMAT::ColumnVector &  x  )  [virtual]

Evaluate the Hessian of the nonlinear constraints at x.

Implements OPTPP::NLP0.

virtual real OPTPP::NLF1::evalF ( const NEWMAT::ColumnVector &  x  )  [virtual]

Evaluate the objective function at x.

Implements OPTPP::NLP0.

virtual real OPTPP::NLF1::evalF (  )  [virtual]

Evaluate the objective function.

Implements OPTPP::NLP0.

virtual NEWMAT::ColumnVector OPTPP::NLF1::evalG ( const NEWMAT::ColumnVector &  x  )  [virtual]

Evaluate the gradient of the objective function at x.

Implements OPTPP::NLP0.

virtual NEWMAT::ColumnVector OPTPP::NLF1::evalG (  )  [virtual]

Evaluate the gradient of the objective function.

Implements OPTPP::NLP0.

virtual NEWMAT::SymmetricMatrix OPTPP::NLF1::evalH ( NEWMAT::ColumnVector &  x  )  [virtual]

Evaluate the Hessian of the objective function at x.

Implements OPTPP::NLP0.

virtual NEWMAT::SymmetricMatrix OPTPP::NLF1::evalH (  )  [virtual]

Evaluate the Hessian of the objective function.

Implements OPTPP::NLP0.

virtual real OPTPP::NLF1::evalLagrangian ( const NEWMAT::ColumnVector &  x,
NEWMAT::ColumnVector &  mult,
const NEWMAT::ColumnVector &  type 
) [virtual]

Evaluate the Lagrangian at x.

Implements OPTPP::NLP0.

virtual NEWMAT::ColumnVector OPTPP::NLF1::evalLagrangianGradient ( const NEWMAT::ColumnVector &  x,
const NEWMAT::ColumnVector &  mult,
const NEWMAT::ColumnVector &  type 
) [virtual]

Evaluate the gradient of the Lagrangian at x.

Implements OPTPP::NLP0.

virtual void OPTPP::NLF1::initFcn (  )  [virtual]

Initialize selected function.

Implements OPTPP::NLP0.

virtual void OPTPP::NLF1::reset (  )  [virtual]

Reset parameter values.

Implements OPTPP::NLP0.


Member Data Documentation

USERNLNCON1 OPTPP::NLF1::confcn [protected]

User-defined constraints.

Definition at line 175 of file NLF.h.

USERFCN1 OPTPP::NLF1::fcn [protected]

User-defined objective function.

Definition at line 173 of file NLF.h.

USERFCN1V OPTPP::NLF1::fcn_v [protected]

User-defined objective function w/ void ptr.

Definition at line 174 of file NLF.h.

INITCONFCN OPTPP::NLF1::init_confcn [protected]

Initializes of the constraints.

Definition at line 177 of file NLF.h.

INITFCN OPTPP::NLF1::init_fcn [protected]

Initializes the objective function.

Definition at line 176 of file NLF.h.

bool OPTPP::NLF1::init_flag [protected]

Has the function been initialized?

Definition at line 178 of file NLF.h.

void* OPTPP::NLF1::vptr [protected]

Void pointer.

Definition at line 179 of file NLF.h.

Referenced by NLF1().


The documentation for this class was generated from the following file:
Generated on Mon Jan 24 12:04:41 2011 for FASTlib by  doxygen 1.6.3