MOOCHO (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
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]

Constructors/initializers

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

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. More...
 
value_type deriv () const
 Calls phi().deriv() on phi. More...
 
void print_merit_func (std::ostream &out, const std::string &leading_str) const
 Calls phi().print_merit_func(). More...
 

Additional Inherited Members

- Public Member Functions inherited from ConstrainedOptPack::MeritFuncCalc
virtual ~MeritFuncCalc ()
 

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 56 of file ConstrainedOptPack_MeritFuncCalcNLP.hpp.

Constructor & Destructor Documentation

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

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

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

Definition at line 47 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 51 of file ConstrainedOptPack_MeritFuncCalcNLP.cpp.

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

Calls phi().deriv() on phi.

Implements ConstrainedOptPack::MeritFuncCalc.

Definition at line 78 of file ConstrainedOptPack_MeritFuncCalcNLP.cpp.

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

The documentation for this class was generated from the following files: