Go to the documentation of this file.
44 #ifndef ROL_QUADRATICPENALTY_H
45 #define ROL_QUADRATICPENALTY_H
51 #include "ROL_Ptr.hpp"
87 const ROL::Ptr<Constraint<Real> >
con_;
121 const Real penaltyParameter,
124 const bool useScaling =
false,
125 const int HessianApprox = 0 )
141 con_->update(x,flag,iter);
153 const Real half(0.5);
229 Real tol = std::sqrt(ROL_EPSILON<Real>());
virtual void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
virtual void scale(const Real alpha)=0
Compute where .
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
virtual void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
virtual void getConstraintVec(Vector< Real > &c, const Vector< Real > &x)
virtual Real value(const Vector< Real > &x, Real &tol)
Compute value.
virtual void zero()
Set to zero vector.
ROL::Ptr< Vector< Real > > primalConVector_
bool isConstraintComputed_
ROL::Ptr< Vector< Real > > dualOptVector_
ROL::Ptr< Vector< Real > > conValue_
virtual int getNumberConstraintEvaluations(void) const
virtual void plus(const Vector &x)=0
Compute , where .
virtual void update(const Vector< Real > &x, bool flag=true, int iter=-1)
Update objective function.
const ROL::Ptr< Constraint< Real > > con_
Defines the linear algebra or vector space interface.
void setScaling(const Real cscale=1)
ROL::Ptr< Vector< Real > > multiplier_
Defines the general constraint operator interface.
Contains definitions of custom data types in ROL.
virtual void set(const Vector &x)
Set where .
ROL::Ptr< Vector< Real > > primalMultiplierVector_
Provides the interface to evaluate the quadratic constraint penalty.
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis,...
QuadraticPenalty(const ROL::Ptr< Constraint< Real > > &con, const Vector< Real > &multiplier, const Real penaltyParameter, const Vector< Real > &optVec, const Vector< Real > &conVec, const bool useScaling=false, const int HessianApprox=0)
void evaluateConstraint(const Vector< Real > &x, Real &tol)
Provides the interface to evaluate objective functions.
virtual void reset(const Vector< Real > &multiplier, const Real penaltyParameter)