10 #ifndef ROL_MEANVALUEOBJECTIVE_HPP
11 #define ROL_MEANVALUEOBJECTIVE_HPP
18 template<
typename Real>
21 const Ptr<Objective<Real>>
obj_;
Provides the interface to evaluate objective functions.
MeanValueObjective(const Ptr< Objective< Real >> &obj, const Ptr< SampleGenerator< Real >> &sampler)
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.
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update objective function.
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Compute gradient.
std::vector< Real > computeSampleMean(const Ptr< SampleGenerator< Real >> &sampler) const
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply Hessian approximation to vector.
Real value(const Vector< Real > &x, Real &tol) override
Compute value.
const Ptr< Objective< Real > > obj_