44 #ifndef ROL_COMPOSITE_OBJECTIVE_H
45 #define ROL_COMPOSITE_OBJECTIVE_H
60 const std::vector<ROL::Ptr<Objective<Real> > >
obj_vec_;
74 for (
int i = 0; i < size; ++i) {
86 for (
int i = 0; i < size; ++i) {
87 (*obj_value_)[i] =
obj_vec_[i]->value(x,tol);
98 for (
int i = 0; i < size; ++i) {
108 for (
int i = 0; i < size; ++i) {
132 for (
int i = 0; i < size; ++i) {
148 for (
int i = 0; i < size; ++i) {
157 for (
int i = 0; i < size; ++i) {
168 for (
int i = 0; i < size; ++i) {
Provides the interface to evaluate composite objective functions.
void initialize(const Vector< Real > &x)
const ROL::Ptr< StdObjective< Real > > std_obj_
std::vector< ROL::Ptr< Vector< Real > > > vec_hess_
void computeValue(const Vector< Real > &x, Real &tol)
std::vector< ROL::Ptr< Vector< Real > > > vec_grad_
void update(const Vector< Real > &x, bool flag=true, int iter=-1)
Update objective function.
void setParameter(const std::vector< Real > ¶m)
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
ROL::Ptr< StdVector< Real > > obj_value_vec_
CompositeObjective(const std::vector< ROL::Ptr< Objective< Real > > > &obj_vec, const ROL::Ptr< StdObjective< Real > > &std_obj)
Real value(const Vector< Real > &x, Real &tol)
Compute value.
void computeHessVec(const Vector< Real > &v, const Vector< Real > &x, Real &tol)
ROL::Ptr< StdVector< Real > > obj_gv_vec_
ROL::Ptr< std::vector< Real > > obj_value_
ROL::Ptr< StdVector< Real > > obj_hess_vec_
void computeGradient(const Vector< Real > &x, Real &tol)
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
ROL::Ptr< std::vector< Real > > obj_grad_
const std::vector< ROL::Ptr< Objective< Real > > > obj_vec_
ROL::Ptr< std::vector< Real > > obj_hess_
ROL::Ptr< std::vector< Real > > obj_gv_
ROL::Ptr< StdVector< Real > > obj_grad_vec_
Provides the interface to evaluate objective functions.
virtual void setParameter(const std::vector< Real > ¶m)
Specializes the ROL::Objective interface for objective functions that operate on ROL::StdVector's.
Defines the linear algebra or vector space interface.
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
virtual void zero()
Set to zero vector.
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis,...
virtual void axpy(const Real alpha, const Vector &x)
Compute where .