Go to the documentation of this file.
44 #ifndef ROL_LINEAR_OBJECTIVE_H
45 #define ROL_LINEAR_OBJECTIVE_H
49 #include "ROL_Ptr.hpp"
70 const ROL::Ptr<const Vector<Real> >
cost_;
Provides the interface to evaluate linear objective functions.
const ROL::Ptr< const Vector< Real > > cost_
virtual void zero()
Set to zero vector.
virtual Real dot(const Vector &x) const =0
Compute where .
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
Real value(const Vector< Real > &x, Real &tol)
Compute value.
Defines the linear algebra or vector space interface.
virtual void set(const Vector &x)
Set where .
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
Provides the interface to evaluate objective functions.
LinearObjective(const ROL::Ptr< const Vector< Real > > &cost)