10 #ifndef ROL_RISKLESSOBJECTIVE_HPP
11 #define ROL_RISKLESSOBJECTIVE_HPP
18 template<
typename Real>
21 const Ptr<Objective<Real>>
obj_;
34 void setParameter(
const std::vector<Real> ¶m)
override;
Provides the interface to evaluate objective functions.
void setParameter(const std::vector< Real > ¶m) override
void precond(Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply preconditioner to vector.
Defines the linear algebra or vector space interface.
RiskLessObjective(const Ptr< Objective< Real >> &obj)
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply Hessian approximation to vector.
const Ptr< Objective< Real > > obj_
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update objective function.
Real value(const Vector< Real > &x, Real &tol) override
Compute value.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Compute gradient.