ConstrainedOptPack::MeritFuncCalcNLP Class Reference

Adds the ability to compute phi(f(x),c(x),h(x)) at x directly instead of having to compute f, c and h first. This class uses an aggregate NLP to perform the computations of f(x) c(x) and h(x). More...

#include <ConstrainedOptPack_MeritFuncCalcNLP.hpp>

Inheritance diagram for ConstrainedOptPack::MeritFuncCalcNLP:

Inheritance graph
[legend]
List of all members.

Constructors/initializers

 MeritFuncCalcNLP (const MeritFuncNLP *phi=0, const NLP *nlp=0)
 <<std aggr>="">> stereotype members for nlp. .

Overridden from MeritFuncCalc

value_type operator() (const Vector &x) const
 Return the value of the merit function at x. Here phi(x) is calculated directly using the nlp.
value_type deriv () const
 Calls phi().deriv() on phi.
void print_merit_func (std::ostream &out, const std::string &leading_str) const
 Calls phi().print_merit_func().

Detailed Description

Adds the ability to compute phi(f(x),c(x),h(x)) at x directly instead of having to compute f, c and h first. This class uses an aggregate NLP to perform the computations of f(x) c(x) and h(x).

Definition at line 43 of file ConstrainedOptPack_MeritFuncCalcNLP.hpp.


Constructor & Destructor Documentation

ConstrainedOptPack::MeritFuncCalcNLP::MeritFuncCalcNLP ( const MeritFuncNLP phi = 0,
const NLP *  nlp = 0 
)

<<std aggr>="">> stereotype members for nlp. .

Definition at line 34 of file ConstrainedOptPack_MeritFuncCalcNLP.cpp.


Member Function Documentation

value_type ConstrainedOptPack::MeritFuncCalcNLP::operator() ( const Vector &  x  )  const [virtual]

Return the value of the merit function at x. Here phi(x) is calculated directly using the nlp.

Implements ConstrainedOptPack::MeritFuncCalc.

Definition at line 38 of file ConstrainedOptPack_MeritFuncCalcNLP.cpp.

value_type ConstrainedOptPack::MeritFuncCalcNLP::deriv (  )  const [virtual]

Calls phi().deriv() on phi.

Implements ConstrainedOptPack::MeritFuncCalc.

Definition at line 65 of file ConstrainedOptPack_MeritFuncCalcNLP.cpp.

void ConstrainedOptPack::MeritFuncCalcNLP::print_merit_func ( std::ostream &  out,
const std::string &  leading_str 
) const [virtual]

Calls phi().print_merit_func().

Implements ConstrainedOptPack::MeritFuncCalc.

Definition at line 69 of file ConstrainedOptPack_MeritFuncCalcNLP.cpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:51:12 2010 for ConstrainedOptPack: C++ Tools for Constrained (and Unconstrained) Optimization by  doxygen 1.4.7