10 #ifndef ROL_COMPOSITE_OBJECTIVE_H
11 #define ROL_COMPOSITE_OBJECTIVE_H
23 template<
typename Real>
26 const std::vector<Ptr<Objective<Real>>>
obj_vec_;
47 void setParameter(
const std::vector<Real> ¶m)
override;
Provides the interface to evaluate objective functions.
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply Hessian approximation to vector.
std::vector< Ptr< Vector< Real > > > vec_hess_
Ptr< StdVector< Real > > obj_hess_vec_
void computeValue(const Vector< Real > &x, Real &tol)
const std::vector< Ptr< Objective< Real > > > obj_vec_
Real value(const Vector< Real > &x, Real &tol) override
Compute value.
Ptr< std::vector< Real > > obj_gv_
void computeGradient(const Vector< Real > &x, Real &tol)
CompositeObjective(const std::vector< Ptr< Objective< Real >>> &obj_vec, const Ptr< StdObjective< Real >> &std_obj)
std::vector< Ptr< Vector< Real > > > vec_grad_
Defines the linear algebra or vector space interface.
void initialize(const Vector< Real > &x)
Ptr< std::vector< Real > > obj_value_
Specializes the ROL::Objective interface for objective functions that operate on ROL::StdVector's.
Ptr< std::vector< Real > > obj_hess_
const Ptr< StdObjective< Real > > std_obj_
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Compute gradient.
Ptr< StdVector< Real > > obj_value_vec_
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update objective function.
Ptr< StdVector< Real > > obj_gv_vec_
Ptr< std::vector< Real > > obj_grad_
void computeHessVec(const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Ptr< StdVector< Real > > obj_grad_vec_
Provides the interface to evaluate composite objective functions.
void setParameter(const std::vector< Real > ¶m) override