44 #ifndef ROL_RISKLESSOBJECTIVE_HPP
45 #define ROL_RISKLESSOBJECTIVE_HPP
55 const ROL::Ptr<Objective<Real> >
obj_;
61 ROL::Ptr<const Vector<Real> > x0
63 obj_->update(*x0,flag,iter);
67 ROL::Ptr<const Vector<Real> > x0
69 return obj_->value(*x0,tol);
73 ROL::Ptr<Vector<Real> > g0
75 ROL::Ptr<const Vector<Real> > x0
77 obj_->gradient(*g0,*x0,tol);
82 ROL::Ptr<Vector<Real> > hv0
84 ROL::Ptr<const Vector<Real> > v0
86 ROL::Ptr<const Vector<Real> > x0
88 obj_->hessVec(*hv0,*v0,*x0,tol);
93 ROL::Ptr<Vector<Real> > Pv0
95 ROL::Ptr<const Vector<Real> > v0
97 ROL::Ptr<const Vector<Real> > x0
99 obj_->precond(*Pv0,*v0,*x0,tol);
Provides the interface to evaluate objective functions.
RiskLessObjective(const ROL::Ptr< Objective< Real > > &obj)
const ROL::Ptr< Objective< Real > > obj_
Defines the linear algebra or vector space interface.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
void update(const Vector< Real > &x, bool flag=true, int iter=-1)
Update objective function.
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
void precond(Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply preconditioner to vector.
Real value(const Vector< Real > &x, Real &tol)
Compute value.