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 objective functions.
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
void computeValue(const Vector< Real > &x, Real &tol)
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
const std::vector< ROL::Ptr< Objective< Real > > > obj_vec_
CompositeObjective(const std::vector< ROL::Ptr< Objective< Real > > > &obj_vec, const ROL::Ptr< StdObjective< Real > > &std_obj)
ROL::Ptr< std::vector< Real > > obj_gv_
void computeGradient(const Vector< Real > &x, Real &tol)
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
virtual void zero()
Set to zero vector.
Defines the linear algebra or vector space interface.
ROL::Ptr< StdVector< Real > > obj_value_vec_
void update(const Vector< Real > &x, bool flag=true, int iter=-1)
Update objective function.
ROL::Ptr< std::vector< Real > > obj_grad_
void initialize(const Vector< Real > &x)
std::vector< ROL::Ptr< Vector< Real > > > vec_hess_
Specializes the ROL::Objective interface for objective functions that operate on ROL::StdVector's.
Real value(const Vector< Real > &x, Real &tol)
Compute value.
const ROL::Ptr< StdObjective< Real > > std_obj_
std::vector< ROL::Ptr< Vector< Real > > > vec_grad_
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
virtual void setParameter(const std::vector< Real > ¶m)
ROL::Ptr< StdVector< Real > > obj_grad_vec_
void computeHessVec(const Vector< Real > &v, const Vector< Real > &x, Real &tol)
ROL::Ptr< StdVector< Real > > obj_hess_vec_
ROL::Ptr< std::vector< Real > > obj_value_
ROL::Ptr< std::vector< Real > > obj_hess_
Provides the interface to evaluate composite objective functions.
ROL::Ptr< StdVector< Real > > obj_gv_vec_
void setParameter(const std::vector< Real > ¶m)