10 #ifndef ROL_LINEAR_OBJECTIVE_H
11 #define ROL_LINEAR_OBJECTIVE_H
15 #include "ROL_Ptr.hpp"
32 template<
typename Real>
Provides the interface to evaluate objective functions.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Compute gradient.
const Ptr< const Vector< Real > > dual_cost_
Provides the interface to evaluate linear objective functions.
Defines the linear algebra or vector space interface.
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply Hessian approximation to vector.
const Ptr< const Vector< Real > > cost_
Real value(const Vector< Real > &x, Real &tol) override
Compute value.
LinearObjective(const Ptr< const Vector< Real >> &cost)