45 namespace ConstrainedOptPack {
48 : phi_(phi), nlp_(nlp)
57 if(m) nlp().calc_c(x,
false);
60 ,m ? &nlp().c() : NULL
83 std::ostream&
out,
const std::string& L
86 out << L <<
"*** MeritFuncCalcNLP\n"
87 << L <<
"f = f(x), c = c_breve(x_breve), h = h_breve(x_breve)\n";
88 phi().print_merit_func(out,L);
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...
AbstractLinAlgPack::size_type size_type
Base class for all merit functions for NonLinear Programs (NLP) {abstract}.
value_type deriv() const
Calls phi().deriv() on phi.
AbstractLinAlgPack::value_type value_type
MeritFuncCalcNLP(const MeritFuncNLP *phi=0, const NLP *nlp=0)
<<std aggr>="">> stereotype members for phi.
void print_merit_func(std::ostream &out, const std::string &leading_str) const
Calls phi().print_merit_func().