ConstrainedOptPack: C++ Tools for Constrained (and Unconstrained) Optimization  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
ConstrainedOptPack::MeritFuncCalcNLE Class Reference

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

#include <ConstrainedOptPack_MeritFuncCalcNLE.hpp>

Inheritance diagram for ConstrainedOptPack::MeritFuncCalcNLE:
Inheritance graph
[legend]

Public Member Functions

 MeritFuncCalcNLE (const MeritFuncNLE *phi=0, const NLP *nlp=0)
 <<std aggr>="">> stereotype members for phi. More...
 
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...
 
- Public Member Functions inherited from ConstrainedOptPack::MeritFuncCalc
virtual ~MeritFuncCalc ()
 

Detailed Description

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

Definition at line 55 of file ConstrainedOptPack_MeritFuncCalcNLE.hpp.

Constructor & Destructor Documentation

ConstrainedOptPack::MeritFuncCalcNLE::MeritFuncCalcNLE ( const MeritFuncNLE 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_MeritFuncCalcNLE.cpp.

Member Function Documentation

value_type ConstrainedOptPack::MeritFuncCalcNLE::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_MeritFuncCalcNLE.cpp.

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

Calls phi().deriv() on phi.

Implements ConstrainedOptPack::MeritFuncCalc.

Definition at line 56 of file ConstrainedOptPack_MeritFuncCalcNLE.cpp.

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

Calls phi().print_merit_func(....).

Implements ConstrainedOptPack::MeritFuncCalc.

Definition at line 60 of file ConstrainedOptPack_MeritFuncCalcNLE.cpp.


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