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