10 #ifndef ROL_AUGMENTEDLAGRANGIAN_SIMOPT_H
11 #define ROL_AUGMENTEDLAGRANGIAN_SIMOPT_H
18 #include "ROL_Ptr.hpp"
66 const ROL::Ptr<Objective_SimOpt<Real> >
obj_;
67 ROL::Ptr<QuadraticPenalty_SimOpt<Real> >
pen_;
95 const Real penaltyParameter,
99 ROL::ParameterList &parlist)
109 ROL::ParameterList& sublist = parlist.sublist(
"Step").sublist(
"Augmented Lagrangian");
111 int HessianApprox = sublist.get(
"Level of Hessian Approximation", 0);
113 pen_ = ROL::makePtr<QuadraticPenalty_SimOpt<Real>>(con,multiplier,penaltyParameter,simVec,optVec,conVec,
scaleLagrangian_,HessianApprox);
117 obj_->update(u,z,flag,iter);
118 pen_->update(u,z,flag,iter);
131 Real pval =
pen_->value(u,z,tol);
175 obj_->hessVec_11(hv,v,u,z,tol);
188 obj_->hessVec_12(hv,v,u,z,tol);
201 obj_->hessVec_21(hv,v,u,z,tol);
214 obj_->hessVec_22(hv,v,u,z,tol);
226 Real tol = std::sqrt(ROL_EPSILON<Real>());
237 pen_->getConstraintVec(c,u,z);
242 return pen_->getNumberConstraintEvaluations();
258 pen_->reset(multiplier,penaltyParameter);
Provides the interface to evaluate simulation-based objective functions.
ROL::Ptr< Vector< Real > > dualOptVector_
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
virtual void hessVec_22(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
virtual void scale(const Real alpha)=0
Compute where .
virtual void plus(const Vector &x)=0
Compute , where .
virtual int getNumberConstraintEvaluations(void) const
ROL::Ptr< Vector< Real > > dualSimVector_
AugmentedLagrangian_SimOpt(const ROL::Ptr< Objective_SimOpt< Real > > &obj, const ROL::Ptr< Constraint_SimOpt< Real > > &con, const Vector< Real > &multiplier, const Real penaltyParameter, const Vector< Real > &simVec, const Vector< Real > &optVec, const Vector< Real > &conVec, ROL::ParameterList &parlist)
virtual void hessVec_12(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Contains definitions of custom data types in ROL.
virtual void hessVec_21(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
virtual 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< QuadraticPenalty_SimOpt< Real > > pen_
virtual Real value(const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute value.
Provides the interface to evaluate the SimOpt augmented Lagrangian.
Defines the linear algebra or vector space interface.
const ROL::Ptr< Objective_SimOpt< Real > > obj_
bool isGradient1Computed_
virtual int getNumberFunctionEvaluations(void) const
virtual 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.
virtual int getNumberGradientEvaluations(void) const
virtual void gradient_2(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to second component.
virtual void gradient_1(Vector< Real > &g, const Vector< Real > &u, const Vector< Real > &z, Real &tol)
Compute gradient with respect to first component.
virtual void reset(const Vector< Real > &multiplier, const Real penaltyParameter)
ROL::Ptr< Vector< Real > > gradient1_
virtual Real getObjectiveValue(const Vector< Real > &u, const Vector< Real > &z)
ROL::Ptr< Vector< Real > > gradient2_
virtual void set(const Vector &x)
Set where .
Defines the constraint operator interface for simulation-based optimization.
bool isGradient2Computed_
virtual void getConstraintVec(Vector< Real > &c, const Vector< Real > &u, const Vector< Real > &z)