OPTPP::NLF0 Class Reference

#include <NLF.h>

Inheritance diagram for OPTPP::NLF0:

OPTPP::NLP0 OPTPP::NLPBase OPTPP::NLF0APP List of all members.

Public Member Functions

 NLF0 ()
 NLF0 (int ndim)
 NLF0 (int ndim, USERFCN0 f)
 NLF0 (int ndim, USERFCN0 f, INITFCN i, CompoundConstraint *constraint=0)
 NLF0 (int ndim, USERFCN0 f, INITFCN i, INITCONFCN c)
 NLF0 (int ndim, int nlncons, USERNLNCON0 f, INITFCN i)
 NLF0 (int ndim, USERFCN0V f, INITFCN i, CompoundConstraint *constraint=0, void *v=0)
 Alternate function pointers with user-supplied void function pointer.
 NLF0 (int ndim, USERFCN0V f, INITFCN i, void *v)
 NLF0 (int ndim, USERFCN0V f, INITFCN i, INITCONFCN c, void *v)
virtual ~NLF0 ()
virtual void reset ()
 Reset parameter values.
virtual void initFcn ()
 Initialize selected function.
virtual void eval ()
 Evaluate the function, gradient, and Hessian.
virtual real evalF ()
 Evaluate the function.
virtual real evalF (const NEWMAT::ColumnVector &x)
 Evaluate the function at x.
virtual NEWMAT::ColumnVector evalCF (const NEWMAT::ColumnVector &x)
 Evaluate nonlinear constraints at x.
virtual NEWMAT::ColumnVector evalG ()
 Evaluate a finite-difference gradient.
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.

Static Protected Member Functions

static void f_helper (int n, const NEWMAT::ColumnVector &xc, real &f, int &result, void *v)

Protected Attributes

USERFCN0 fcn
 User-defined objective function.
USERFCN0V fcn_v
 User-defined objective function w/ void ptr.
USERNLNCON0 confcn
 User-defined nonlinear constraints.
INITFCN init_fcn
 Initializes the objective function.
INITCONFCN init_confcn
 Initializes the constraints.
bool init_flag
 Has the function been initialized?
void * vptr
 Void pointer.

Private Member Functions

virtual NEWMAT::ColumnVector evalG (const NEWMAT::ColumnVector &x)
 Evaluate grad at x.
virtual NEWMAT::SymmetricMatrix evalH ()
 Evaluate the Hessian at x.
virtual NEWMAT::SymmetricMatrix evalH (NEWMAT::ColumnVector &x)
 Evaluate the Hessian.
virtual NEWMAT::Matrix evalCG (const NEWMAT::ColumnVector &x)
 Evaluate the constraint gradient at x.
virtual NEWMAT::SymmetricMatrix evalCH (NEWMAT::ColumnVector &x)
 Evaluate constraint hessian at x.
virtual OptppArray< NEWMAT::SymmetricMatrix > evalCH (NEWMAT::ColumnVector &x, int darg)
 Evaluate constraint hessian at x.
virtual void evalC (const NEWMAT::ColumnVector &x)

Detailed Description

NLF0 is a derived class of NLP0, a nonlinear problem without analytic derivative information. The NLF0 class implements function, finite-difference gradient, and finite-difference 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


Constructor & Destructor Documentation

OPTPP::NLF0::NLF0 (  )  [inline]

OPTPP::NLF0::NLF0 ( int  ndim  )  [inline]

OPTPP::NLF0::NLF0 ( int  ndim,
USERFCN0  f 
) [inline]

OPTPP::NLF0::NLF0 ( int  ndim,
USERFCN0  f,
INITFCN  i,
CompoundConstraint constraint = 0 
) [inline]

OPTPP::NLF0::NLF0 ( int  ndim,
USERFCN0  f,
INITFCN  i,
INITCONFCN  c 
) [inline]

OPTPP::NLF0::NLF0 ( int  ndim,
int  nlncons,
USERNLNCON0  f,
INITFCN  i 
) [inline]

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

Alternate function pointers with user-supplied void function pointer.

OPTPP::NLF0::NLF0 ( int  ndim,
USERFCN0V  f,
INITFCN  i,
void *  v 
) [inline]

OPTPP::NLF0::NLF0 ( int  ndim,
USERFCN0V  f,
INITFCN  i,
INITCONFCN  c,
void *  v 
) [inline]

virtual OPTPP::NLF0::~NLF0 (  )  [inline, virtual]


Member Function Documentation

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

Evaluate the function, gradient, and Hessian.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

virtual void OPTPP::NLF0::evalC ( const NEWMAT::ColumnVector &  x  )  [private, virtual]

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

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

Evaluate nonlinear constraints at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

virtual NEWMAT::Matrix OPTPP::NLF0::evalCG ( const NEWMAT::ColumnVector &  x  )  [private, virtual]

Evaluate the constraint gradient at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

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

Evaluate constraint hessian at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

virtual NEWMAT::SymmetricMatrix OPTPP::NLF0::evalCH ( NEWMAT::ColumnVector &  x  )  [private, virtual]

Evaluate constraint hessian at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

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

Evaluate the function at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

double OPTPP::NLF0::evalF (  )  [virtual]

Evaluate the function.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

virtual NEWMAT::ColumnVector OPTPP::NLF0::evalG ( const NEWMAT::ColumnVector &  x  )  [private, virtual]

Evaluate grad at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

ColumnVector OPTPP::NLF0::evalG (  )  [virtual]

Evaluate a finite-difference gradient.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

virtual NEWMAT::SymmetricMatrix OPTPP::NLF0::evalH ( NEWMAT::ColumnVector &  x  )  [private, virtual]

Evaluate the Hessian.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

SymmetricMatrix OPTPP::NLF0::evalH (  )  [private, virtual]

Evaluate the Hessian at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

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

Evaluate the Lagrangian at x.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

virtual NEWMAT::ColumnVector OPTPP::NLF0::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.

Reimplemented in OPTPP::NLF0APP.

static void OPTPP::NLF0::f_helper ( int  n,
const NEWMAT::ColumnVector &  xc,
real f,
int &  result,
void *  v 
) [inline, static, protected]

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

Initialize selected function.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.

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

Reset parameter values.

Implements OPTPP::NLP0.

Reimplemented in OPTPP::NLF0APP.


Member Data Documentation

USERNLNCON0 OPTPP::NLF0::confcn [protected]

User-defined nonlinear constraints.

Reimplemented in OPTPP::NLF0APP.

USERFCN0 OPTPP::NLF0::fcn [protected]

User-defined objective function.

Reimplemented in OPTPP::NLF0APP.

USERFCN0V OPTPP::NLF0::fcn_v [protected]

User-defined objective function w/ void ptr.

INITCONFCN OPTPP::NLF0::init_confcn [protected]

Initializes the constraints.

Reimplemented in OPTPP::NLF0APP.

INITFCN OPTPP::NLF0::init_fcn [protected]

Initializes the objective function.

Reimplemented in OPTPP::NLF0APP.

bool OPTPP::NLF0::init_flag [protected]

Has the function been initialized?

Reimplemented in OPTPP::NLF0APP.

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

Void pointer.


The documentation for this class was generated from the following files:
Bug Reports    OPT++ Developers    Copyright Information    GNU Lesser General Public License
Documentation, generated by , last revised August 30, 2006.