42 #ifndef MERIT_FUNC_CALC_1D_H
43 #define MERIT_FUNC_CALC_1D_H
45 #include "ConstrainedOptPack_Types.hpp"
47 namespace ConstrainedOptPack {
63 virtual value_type
operator()( value_type alpha )
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_1D_H
Abstracts a 1D merit function {abstract}.
virtual ~MeritFuncCalc1D()
virtual value_type deriv() const =0
Return the derivative of the merit function at alpha = 0.
virtual value_type operator()(value_type alpha) const =0
Return the value of the merit function at alpha.
virtual void print_merit_func(std::ostream &out, const std::string &leading_str) const =0
Print the particular merit function.