Go to the documentation of this file.
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) {
void computeHessVec11(const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
void computeGradient(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
std::vector< ROL::Ptr< Vector< Real > > > vec_hess1_
void computeGradient1(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
virtual void setParameter(const std::vector< Real > ¶m)
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.
void hessVec_12(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
const ROL::Ptr< StdObjective< Real > > std_obj_
Provides the interface to evaluate simulation-based composite objective functions.
virtual void zero()
Set to zero vector.
ROL::Ptr< StdVector< Real > > obj_grad_vec_
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...
ROL::Ptr< std::vector< Real > > obj_grad_
void computeHessVec22(const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Real value(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute value.
ROL::Ptr< std::vector< Real > > obj_gv_
ROL::Ptr< std::vector< Real > > obj_hess_
ROL::Ptr< StdVector< Real > > obj_gv_vec_
ROL::Ptr< StdVector< Real > > obj_value_vec_
ROL::Ptr< StdVector< Real > > obj_hess_vec_
Defines the linear algebra or vector space interface.
void computeValue(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)
void computeGradient2(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void computeHessVec12(const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void hessVec_21(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
void setParameter(const std::vector< Real > ¶m)
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis,...
void gradient_1(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to first component.
const std::vector< ROL::Ptr< Objective_SimOpt< Real > > > obj_vec_
ROL::Ptr< std::vector< Real > > obj_value_
CompositeObjective_SimOpt(const std::vector< ROL::Ptr< Objective_SimOpt< Real > > > &obj_vec, const ROL::Ptr< StdObjective< Real > > &std_obj)
void initialize(const Vector< Real > &u, const Vector< Real > &z)
std::vector< ROL::Ptr< Vector< Real > > > vec_hess2_
Provides the interface to evaluate simulation-based objective functions.
void gradient_2(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to second component.
bool isGradient2Computed_
bool isGradient1Computed_
std::vector< ROL::Ptr< Vector< Real > > > vec_grad1_
Specializes the ROL::Objective interface for objective functions that operate on ROL::StdVector's.
std::vector< ROL::Ptr< Vector< Real > > > vec_grad2_
void hessVec_22(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)