44 #ifndef ROL_COMPOSITEOBJECTIVE_SIMOPT_H
45 #define ROL_COMPOSITEOBJECTIVE_SIMOPT_H
61 const std::vector<ROL::Ptr<Objective_SimOpt<Real> > >
obj_vec_;
87 for (
int i = 0; i < size; ++i) {
101 for (
int i = 0; i < size; ++i) {
102 (*obj_value_)[i] =
obj_vec_[i]->value(u,z,tol);
120 for (
int i = 0; i < size; ++i) {
131 for (
int i = 0; i < size; ++i) {
141 for (
int i = 0; i < size; ++i) {
152 for (
int i = 0; i < size; ++i) {
163 for (
int i = 0; i < size; ++i) {
173 for (
int i = 0; i < size; ++i) {
198 for (
int i = 0; i < size; ++i) {
217 for (
int i = 0; i < size; ++i) {
226 for (
int i = 0; i < size; ++i) {
236 for (
int i = 0; i < size; ++i) {
247 for (
int i = 0; i < size; ++i) {
258 for (
int i = 0; i < size; ++i) {
269 for (
int i = 0; i < size; ++i) {
280 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_
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_