44 #ifndef ROL_LINEAR_OBJECTIVE_H 45 #define ROL_LINEAR_OBJECTIVE_H 49 #include "Teuchos_RCP.hpp" 70 const Teuchos::RCP<Vector<Real> >
cost_;
76 return x.
dot(cost_->dual());
Provides the interface to evaluate objective functions.
LinearObjective(const Teuchos::RCP< Vector< Real > > &cost)
const Teuchos::RCP< Vector< Real > > cost_
Provides the interface to evaluate linear objective functions.
virtual void zero()
Set to zero vector.
Defines the linear algebra or vector space interface.
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.
virtual void set(const Vector &x)
Set where .
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.