ROL
Loading...
Searching...
No Matches
ROL::ROL::AugmentedLagrangianPenalty< Real > Class Template Reference

#include <ROL_Constraint_SerialSimOpt.hpp>

Inheritance diagram for ROL::ROL::AugmentedLagrangianPenalty< Real >:

Public Member Functions

 AugmentedLagrangianPenalty (const Ptr< Constraint< Real > > &con, const Ptr< Projection< Real > > &proj, const Real penaltyParameter, const Vector< Real > &dualOptVec, const Vector< Real > &primConVec, const Vector< Real > &dualConVec, ParameterList &parlist)
 AugmentedLagrangianPenalty (const Ptr< Constraint< Real > > &con, const Ptr< Projection< Real > > &proj, const Real penaltyParameter, const Vector< Real > &dualOptVec, const Vector< Real > &primConVec, const Vector< Real > &dualConVec, const int hessianApprox)
virtual void update (const Vector< Real > &x, UpdateType type, int iter=-1)
 Update objective function.
void setScaling (const Real cscale=1.0)
Real getScaling ()
virtual Real value (const Vector< Real > &x, Real &tol)
 Compute value.
virtual void gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol)
 Compute gradient.
virtual void hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply Hessian approximation to vector.
Real dualNorm (const Vector< Real > &x, Real &tol)
Real dualResidual (const Vector< Real > &x, Real &tol)
Real feasibility (const Vector< Real > &x, Real &tol)
void setPenaltyParameter (const Real penaltyParameter)
Real getPenaltyParameter ()
void setMultiplier (const Vector< Real > &multiplier)
Real updateMultiplier (const Vector< Real > &x, Real &tol)
const Ptr< const Vector< Real > > getConstraintVec (const Vector< Real > &x, Real &tol)
const Ptr< const Vector< Real > > getDualVec (const Vector< Real > &x, Real &tol)
int getNumberConstraintEvaluations (void) const
void reset (void)
Public Member Functions inherited from ROL::ROL::Objective< Real >
virtual ~Objective ()
 Objective ()
virtual void update (const Vector< Real > &x, bool flag=true, int iter=-1)
 Update objective function.
virtual Real dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol)
 Compute directional derivative.
virtual void invHessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply inverse Hessian approximation to vector.
virtual void precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply preconditioner to vector.
virtual void prox (Vector< Real > &Pv, const Vector< Real > &v, Real t, Real &tol)
 Compute the proximity operator.
virtual void proxJacVec (Vector< Real > &Jv, const Vector< Real > &v, const Vector< Real > &x, Real t, Real &tol)
 Apply the Jacobian of the proximity operator.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference gradient check.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference gradient check.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference gradient check with specified step sizes.
virtual std::vector< std::vector< Real > > checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference gradient check with specified step sizes.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference Hessian-applied-to-vector check.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference Hessian-applied-to-vector check.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference Hessian-applied-to-vector check with specified step sizes.
virtual std::vector< std::vector< Real > > checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference Hessian-applied-to-vector check with specified step sizes.
virtual std::vector< Real > checkHessSym (const Vector< Real > &x, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout)
 Hessian symmetry check.
virtual std::vector< Real > checkHessSym (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout)
 Hessian symmetry check.
virtual std::vector< std::vector< Real > > checkProxJacVec (const Vector< Real > &x, const Vector< Real > &v, Real t=Real(1), bool printToStream=true, std::ostream &outStream=std::cout, int numSteps=ROL_NUM_CHECKDERIV_STEPS)
 Finite-difference proximity operator Jacobian-applied-to-vector check.
virtual void setParameter (const std::vector< Real > &param)

Private Attributes

const Ptr< Constraint< Real > > con_
const Ptr< Projection< Real > > proj_
nullstream bhs_
Real penaltyParameter_
Ptr< Vector< Real > > multiplier_
Ptr< Vector< Real > > dualOptVector_
Ptr< Vector< Real > > dualConVector_
Ptr< Vector< Real > > primConVector1_
Ptr< Vector< Real > > primConVector2_
Ptr< VectorController< Real, int > > conValue_
Ptr< VectorController< Real, int > > dualValue_
Real cscale_
int ncval_
int hessianApprox_

Additional Inherited Members

Protected Member Functions inherited from ROL::ROL::Objective< Real >
const std::vector< Real > getParameter (void) const

Detailed Description

template<class Real>
class ROL::ROL::AugmentedLagrangianPenalty< Real >

Definition at line 22 of file ROL_Constraint_SerialSimOpt.hpp.

Constructor & Destructor Documentation

◆ AugmentedLagrangianPenalty() [1/2]

template<class Real>
ROL::ROL::AugmentedLagrangianPenalty< Real >::AugmentedLagrangianPenalty ( const Ptr< Constraint< Real > > & con,
const Ptr< Projection< Real > > & proj,
const Real penaltyParameter,
const Vector< Real > & dualOptVec,
const Vector< Real > & primConVec,
const Vector< Real > & dualConVec,
ParameterList & parlist )
inline

Definition at line 53 of file ROL_Constraint_SerialSimOpt.hpp.

◆ AugmentedLagrangianPenalty() [2/2]

template<class Real>
ROL::ROL::AugmentedLagrangianPenalty< Real >::AugmentedLagrangianPenalty ( const Ptr< Constraint< Real > > & con,
const Ptr< Projection< Real > > & proj,
const Real penaltyParameter,
const Vector< Real > & dualOptVec,
const Vector< Real > & primConVec,
const Vector< Real > & dualConVec,
const int hessianApprox )
inline

Definition at line 77 of file ROL_Constraint_SerialSimOpt.hpp.

Member Function Documentation

◆ update()

template<class Real>
virtual void ROL::ROL::AugmentedLagrangianPenalty< Real >::update ( const Vector< Real > & x,
UpdateType type,
int iter = -1 )
inlinevirtual

Update objective function.

This function updates the objective function at new iterations.

Parameters
[in]xis the new iterate.
[in]typeis the type of update requested.
[in]iteris the outer algorithm iterations count.

Reimplemented from ROL::ROL::Objective< Real >.

Definition at line 98 of file ROL_Constraint_SerialSimOpt.hpp.

◆ setScaling()

template<class Real>
void ROL::ROL::AugmentedLagrangianPenalty< Real >::setScaling ( const Real cscale = 1.0)
inline

Definition at line 104 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getScaling()

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::getScaling ( )
inline

Definition at line 108 of file ROL_Constraint_SerialSimOpt.hpp.

◆ value()

template<class Real>
virtual Real ROL::ROL::AugmentedLagrangianPenalty< Real >::value ( const Vector< Real > & x,
Real & tol )
inlinevirtual

Compute value.

This function returns the objective function value.

Parameters
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Implements ROL::ROL::Objective< Real >.

Definition at line 112 of file ROL_Constraint_SerialSimOpt.hpp.

◆ gradient()

template<class Real>
virtual void ROL::ROL::AugmentedLagrangianPenalty< Real >::gradient ( Vector< Real > & g,
const Vector< Real > & x,
Real & tol )
inlinevirtual

Compute gradient.

This function returns the objective function gradient.

Parameters
[out]gis the gradient.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

The default implementation is a finite-difference approximation based on the function value. This requires the definition of a basis \(\{\phi_i\}\) for the optimization vectors x and the definition of a basis \(\{\psi_j\}\) for the dual optimization vectors (gradient vectors g). The bases must be related through the Riesz map, i.e., \( R \{\phi_i\} = \{\psi_j\}\), and this must be reflected in the implementation of the ROL::Vector::dual() method.

Reimplemented from ROL::ROL::Objective< Real >.

Definition at line 120 of file ROL_Constraint_SerialSimOpt.hpp.

◆ hessVec()

template<class Real>
virtual void ROL::ROL::AugmentedLagrangianPenalty< Real >::hessVec ( Vector< Real > & hv,
const Vector< Real > & v,
const Vector< Real > & x,
Real & tol )
inlinevirtual

Apply Hessian approximation to vector.

This function applies the Hessian of the objective function to the vector \(v\).

Parameters
[out]hvis the the action of the Hessian on \(v\).
[in]vis the direction vector.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Reimplemented from ROL::ROL::Objective< Real >.

Definition at line 126 of file ROL_Constraint_SerialSimOpt.hpp.

◆ dualNorm()

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::dualNorm ( const Vector< Real > & x,
Real & tol )
inline

Definition at line 147 of file ROL_Constraint_SerialSimOpt.hpp.

◆ dualResidual()

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::dualResidual ( const Vector< Real > & x,
Real & tol )
inline

Definition at line 151 of file ROL_Constraint_SerialSimOpt.hpp.

◆ feasibility()

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::feasibility ( const Vector< Real > & x,
Real & tol )
inline

Definition at line 157 of file ROL_Constraint_SerialSimOpt.hpp.

◆ setPenaltyParameter()

template<class Real>
void ROL::ROL::AugmentedLagrangianPenalty< Real >::setPenaltyParameter ( const Real penaltyParameter)
inline

Definition at line 164 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getPenaltyParameter()

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::getPenaltyParameter ( )
inline

Definition at line 168 of file ROL_Constraint_SerialSimOpt.hpp.

◆ setMultiplier()

template<class Real>
void ROL::ROL::AugmentedLagrangianPenalty< Real >::setMultiplier ( const Vector< Real > & multiplier)
inline

Definition at line 172 of file ROL_Constraint_SerialSimOpt.hpp.

◆ updateMultiplier()

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::updateMultiplier ( const Vector< Real > & x,
Real & tol )
inline

Definition at line 176 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getConstraintVec()

template<class Real>
const Ptr< const Vector< Real > > ROL::ROL::AugmentedLagrangianPenalty< Real >::getConstraintVec ( const Vector< Real > & x,
Real & tol )
inline

Definition at line 184 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getDualVec()

template<class Real>
const Ptr< const Vector< Real > > ROL::ROL::AugmentedLagrangianPenalty< Real >::getDualVec ( const Vector< Real > & x,
Real & tol )
inline

Definition at line 194 of file ROL_Constraint_SerialSimOpt.hpp.

◆ getNumberConstraintEvaluations()

template<class Real>
int ROL::ROL::AugmentedLagrangianPenalty< Real >::getNumberConstraintEvaluations ( void ) const
inline

Definition at line 210 of file ROL_Constraint_SerialSimOpt.hpp.

◆ reset()

template<class Real>
void ROL::ROL::AugmentedLagrangianPenalty< Real >::reset ( void )
inline

Definition at line 215 of file ROL_Constraint_SerialSimOpt.hpp.

Member Data Documentation

◆ con_

template<class Real>
const Ptr<Constraint<Real> > ROL::ROL::AugmentedLagrangianPenalty< Real >::con_
private

Definition at line 25 of file ROL_Constraint_SerialSimOpt.hpp.

◆ proj_

template<class Real>
const Ptr<Projection<Real> > ROL::ROL::AugmentedLagrangianPenalty< Real >::proj_
private

Definition at line 26 of file ROL_Constraint_SerialSimOpt.hpp.

◆ bhs_

template<class Real>
nullstream ROL::ROL::AugmentedLagrangianPenalty< Real >::bhs_
private

Definition at line 27 of file ROL_Constraint_SerialSimOpt.hpp.

◆ penaltyParameter_

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::penaltyParameter_
private

Definition at line 29 of file ROL_Constraint_SerialSimOpt.hpp.

◆ multiplier_

template<class Real>
Ptr<Vector<Real> > ROL::ROL::AugmentedLagrangianPenalty< Real >::multiplier_
private

Definition at line 30 of file ROL_Constraint_SerialSimOpt.hpp.

◆ dualOptVector_

template<class Real>
Ptr<Vector<Real> > ROL::ROL::AugmentedLagrangianPenalty< Real >::dualOptVector_
private

Definition at line 33 of file ROL_Constraint_SerialSimOpt.hpp.

◆ dualConVector_

template<class Real>
Ptr<Vector<Real> > ROL::ROL::AugmentedLagrangianPenalty< Real >::dualConVector_
private

Definition at line 34 of file ROL_Constraint_SerialSimOpt.hpp.

◆ primConVector1_

template<class Real>
Ptr<Vector<Real> > ROL::ROL::AugmentedLagrangianPenalty< Real >::primConVector1_
private

Definition at line 35 of file ROL_Constraint_SerialSimOpt.hpp.

◆ primConVector2_

template<class Real>
Ptr<Vector<Real> > ROL::ROL::AugmentedLagrangianPenalty< Real >::primConVector2_
private

Definition at line 36 of file ROL_Constraint_SerialSimOpt.hpp.

◆ conValue_

template<class Real>
Ptr<VectorController<Real,int> > ROL::ROL::AugmentedLagrangianPenalty< Real >::conValue_
private

Definition at line 39 of file ROL_Constraint_SerialSimOpt.hpp.

◆ dualValue_

template<class Real>
Ptr<VectorController<Real,int> > ROL::ROL::AugmentedLagrangianPenalty< Real >::dualValue_
private

Definition at line 40 of file ROL_Constraint_SerialSimOpt.hpp.

◆ cscale_

template<class Real>
Real ROL::ROL::AugmentedLagrangianPenalty< Real >::cscale_
private

Definition at line 43 of file ROL_Constraint_SerialSimOpt.hpp.

◆ ncval_

template<class Real>
int ROL::ROL::AugmentedLagrangianPenalty< Real >::ncval_
private

Definition at line 46 of file ROL_Constraint_SerialSimOpt.hpp.

◆ hessianApprox_

template<class Real>
int ROL::ROL::AugmentedLagrangianPenalty< Real >::hessianApprox_
private

Definition at line 49 of file ROL_Constraint_SerialSimOpt.hpp.


The documentation for this class was generated from the following file: