42 #ifndef MERIT_FUNC_CALC_H
43 #define MERIT_FUNC_CALC_H
45 #include "ConstrainedOptPack_Types.hpp"
47 namespace ConstrainedOptPack {
63 virtual value_type
operator()(
const Vector& x)
const= 0;
66 virtual value_type
deriv()
const = 0;
70 std::ostream& out,
const std::string& leading_str )
const = 0;
76 #endif // MERIT_FUNC_CALC_H
virtual value_type operator()(const Vector &x) const =0
Return the value of the merit function at x.
Abstract iterface for n-D merit functions {abstract}.
virtual value_type deriv() const =0
Calls value(d_k) on aggregate merit_func.
virtual void print_merit_func(std::ostream &out, const std::string &leading_str) const =0
Print what this merit function is.