45 namespace ConstrainedOptPack {
62 return 0.5 *
dot(c,c);
71 ,
const std::string& L )
const
74 << L <<
"*** Define a square of constraint residuals merit funciton\n"
75 << L <<
"*** (assumes Gc_k'*d_k + c_k = 0):\n"
76 << L <<
"phi(c) = 1/2 * dot(c,c)\n"
77 << L <<
"Dphi(x_k,d_k) = - dot(c_k,c_k)\n";
value_type calc_deriv(const Vector &c_k)
void print_merit_func(std::ostream &out, const std::string &leading_str) const
value_type value(const Vector &c) const
value_type dot(const Vector &v_rhs1, const Vector &v_rhs2)
result = v_rhs1' * v_rhs2
MeritFuncNLESqrResid()
Initializes deriv() = 0.
AbstractLinAlgPack::value_type value_type