10 #ifndef ROL_REDUCED_OBJECTIVE_SIMOPT_H
11 #define ROL_REDUCED_OBJECTIVE_SIMOPT_H
20 template<
typename Real>
23 const Ptr<Objective_SimOpt<Real>>
obj_;
24 const Ptr<Constraint_SimOpt<Real>>
con_;
69 const bool storage =
true,
70 const bool useFDhessVec =
false);
94 const bool storage =
true,
95 const bool useFDhessVec =
false);
115 const bool storage =
true,
116 const bool useFDhessVec =
false);
142 const bool storage =
true,
143 const bool useFDhessVec =
false);
182 void setParameter(
const std::vector<Real> ¶m)
override;
Provides the interface to evaluate objective functions.
Provides the interface to evaluate simulation-based objective functions.
Ptr< Vector< Real > > dualstate_
Ptr< Vector< Real > > state_
void summarize(std::ostream &stream, const Ptr< BatchManager< Real >> &bman=nullPtr) const
Ptr< Vector< Real > > dualstate1_
void solve_state_equation(const Vector< Real > &z, Real &tol)
Defines the linear algebra or vector space interface.
Ptr< VectorController< Real > > adjointStore_
virtual void precond(Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &z, Real &tol) override
Apply a reduced Hessian preconditioner.
void solve_adjoint_sensitivity(const Vector< Real > &v, const Vector< Real > &z, Real &tol)
Given , the adjoint variable , and a direction , solve the adjoint sensitvity equation for ...
Ptr< VectorController< Real > > stateStore_
Ptr< Vector< Real > > dualcontrol_
Real value(const Vector< Real > &z, Real &tol) override
Given , evaluate the objective function where solves .
const Ptr< Objective_SimOpt< Real > > obj_
Ptr< Vector< Real > > dualadjoint_
const Ptr< Constraint_SimOpt< Real > > con_
void update(const Vector< Real > &z, bool flag=true, int iter=-1) override
Update the SimOpt objective function and equality constraint.
Ptr< Vector< Real > > adjoint_
void solve_adjoint_equation(const Vector< Real > &z, Real &tol)
Given which solves the state equation, solve the adjoint equation for .
Ptr< Vector< Real > > state_sens_
void setParameter(const std::vector< Real > ¶m) override
void gradient(Vector< Real > &g, const Vector< Real > &z, Real &tol) override
Given , evaluate the gradient of the objective function where solves .
Defines the constraint operator interface for simulation-based optimization.
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &z, Real &tol) override
Given , evaluate the Hessian of the objective function in the direction .
Reduced_Objective_SimOpt(const Ptr< Objective_SimOpt< Real >> &obj, const Ptr< Constraint_SimOpt< Real >> &con, const Ptr< Vector< Real >> &state, const Ptr< Vector< Real >> &control, const Ptr< Vector< Real >> &adjoint, const bool storage=true, const bool useFDhessVec=false)
Constructor.
void solve_state_sensitivity(const Vector< Real > &v, const Vector< Real > &z, Real &tol)
Given which solves the state equation and a direction , solve the state senstivity equation for ...
Ptr< Vector< Real > > adjoint_sens_