10 #ifndef ROL_COMPOSITEOBJECTIVE_SIMOPT_H
11 #define ROL_COMPOSITEOBJECTIVE_SIMOPT_H
27 const std::vector<ROL::Ptr<Objective_SimOpt<Real> > >
obj_vec_;
53 for (
int i = 0; i < size; ++i) {
67 for (
int i = 0; i < size; ++i) {
68 (*obj_value_)[i] =
obj_vec_[i]->value(u,z,tol);
86 for (
int i = 0; i < size; ++i) {
97 for (
int i = 0; i < size; ++i) {
107 for (
int i = 0; i < size; ++i) {
119 for (
int i = 0; i < size; ++i) {
131 for (
int i = 0; i < size; ++i) {
142 for (
int i = 0; i < size; ++i) {
168 for (
int i = 0; i < size; ++i) {
179 for (
int i = 0; i < size; ++i) {
199 for (
int i = 0; i < size; ++i) {
208 for (
int i = 0; i < size; ++i) {
218 for (
int i = 0; i < size; ++i) {
229 for (
int i = 0; i < size; ++i) {
240 for (
int i = 0; i < size; ++i) {
251 for (
int i = 0; i < size; ++i) {
262 for (
int i = 0; i < size; ++i) {
Provides the interface to evaluate simulation-based objective functions.
ROL::Ptr< StdVector< Real > > obj_gv_vec_
const std::vector< ROL::Ptr< Objective_SimOpt< Real > > > obj_vec_
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
const ROL::Ptr< StdObjective< Real > > std_obj_
bool isGradient2Computed_
ROL::Ptr< std::vector< Real > > obj_grad_
std::vector< ROL::Ptr< Vector< Real > > > vec_grad1_
void computeGradient(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
void hessVec_11(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Apply Hessian approximation to vector.
Provides the interface to evaluate simulation-based composite objective functions.
CompositeObjective_SimOpt(const std::vector< ROL::Ptr< Objective_SimOpt< Real > > > &obj_vec, const ROL::Ptr< StdObjective< Real > > &std_obj)
virtual void zero()
Set to zero vector.
void update(const Vector< Real > &u, const Vector< Real > &z, bool flag=true, int iter=-1)
Update objective function. u is an iterate, z is an iterate, flag = true if the iterate has changed...
Defines the linear algebra or vector space interface.
void computeGradient1(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
ROL::Ptr< std::vector< Real > > obj_value_
std::vector< ROL::Ptr< Vector< Real > > > vec_hess1_
void computeGradient2(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Specializes the ROL::Objective interface for objective functions that operate on ROL::StdVector's.
void hessVec_21(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void computeHessVec21(const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
ROL::Ptr< std::vector< Real > > obj_hess_
void computeHessVec12(const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void setParameter(const std::vector< Real > ¶m)
void gradient_1(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to first component.
std::vector< ROL::Ptr< Vector< Real > > > vec_hess2_
void gradient_2(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to second component.
void hessVec_12(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void initialize(const Vector< Real > &u, const Vector< Real > &z)
Real value(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute value.
std::vector< ROL::Ptr< Vector< Real > > > vec_grad2_
ROL::Ptr< std::vector< Real > > obj_gv_
virtual void setParameter(const std::vector< Real > ¶m)
void hessVec_22(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void computeValue(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void computeHessVec11(const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
ROL::Ptr< StdVector< Real > > obj_value_vec_
void update(const Vector< Real > &u, const Vector< Real > &z, UpdateType type, int iter=-1)
ROL::Ptr< StdVector< Real > > obj_hess_vec_
bool isGradient1Computed_
void computeHessVec22(const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
ROL::Ptr< StdVector< Real > > obj_grad_vec_