42 #ifndef MERIT_FUNC_NLP_H
43 #define MERIT_FUNC_NLP_H
47 #include "ConstrainedOptPack_Types.hpp"
49 namespace ConstrainedOptPack {
81 virtual value_type
value(
97 virtual value_type
deriv()
const = 0;
102 std::ostream& out,
const std::string& leading_str )
const = 0;
110 #endif // MERIT_FUNC_NLP_H
Base class for all merit functions for NonLinear Programs (NLP) {abstract}.
virtual value_type value(value_type f, const Vector *c, const Vector *h, const Vector *hl, const Vector *hu) const =0
Return the value of the merit function at f(x), c(x), h(x). This interface requires the client to com...
virtual value_type deriv() const =0
Return the value of the directional derivative of the merit function w.r.t. alpha at alpha = 0...
virtual void print_merit_func(std::ostream &out, const std::string &leading_str) const =0
Print the merit funciton.
virtual MeritFuncNLP & operator=(const MeritFuncNLP &)
Assign the state of one Merit functions.