ROL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROL::MoreauYosidaPenalty< Real > Class Template Reference

Provides the interface to evaluate the Moreau-Yosida penalty function. More...

#include <ROL_MoreauYosidaPenalty.hpp>

+ Inheritance diagram for ROL::MoreauYosidaPenalty< Real >:

Public Member Functions

 ~MoreauYosidaPenalty ()
 
 MoreauYosidaPenalty (const ROL::Ptr< Objective< Real > > &obj, const ROL::Ptr< BoundConstraint< Real > > &bnd, const ROL::Vector< Real > &x, const Real mu=1e1, const bool updateMultiplier=true, const bool updatePenalty=true)
 
 MoreauYosidaPenalty (const ROL::Ptr< Objective< Real > > &obj, const ROL::Ptr< BoundConstraint< Real > > &bnd, const ROL::Vector< Real > &x, ROL::ParameterList &parlist)
 
 MoreauYosidaPenalty (const ROL::Ptr< Objective< Real > > &obj, const ROL::Ptr< BoundConstraint< Real > > &bnd, const ROL::Vector< Real > &x, const ROL::Vector< Real > &lam, ROL::ParameterList &parlist)
 
void updateMultipliers (Real mu, const ROL::Vector< Real > &x)
 
void reset (const Real mu)
 
Real testComplementarity (const ROL::Vector< Real > &x)
 
Real getObjectiveValue (void) const
 
ROL::Ptr< Vector< Real > > getGradient (void) const
 
int getNumberFunctionEvaluations (void)
 
int getNumberGradientEvaluations (void)
 
void update (const Vector< Real > &x, bool flag=true, int iter=-1)
 Update Moreau-Yosida penalty function. More...
 
Real value (const Vector< Real > &x, Real &tol)
 Compute value. More...
 
void gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol)
 Compute gradient. More...
 
void hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply Hessian approximation to vector. More...
 
void setParameter (const std::vector< Real > &param)
 
- Public Member Functions inherited from ROL::Objective< Real >
virtual ~Objective ()
 
 Objective ()
 
virtual void update (const Vector< Real > &x, UpdateType type, int iter=-1)
 Update objective function. More...
 
virtual Real dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol)
 Compute directional derivative. More...
 
virtual void invHessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply inverse Hessian approximation to vector. More...
 
virtual void precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply preconditioner to vector. More...
 
virtual void prox (Vector< Real > &Pv, const Vector< Real > &v, Real t, Real &tol)
 Compute the proximity operator. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

Private Member Functions

void computePenalty (const Vector< Real > &x)
 
void initialize (const ROL::Vector< Real > &x, const ROL::Ptr< ROL::BoundConstraint< Real > > &bnd)
 

Private Attributes

const ROL::Ptr< Objective< Real > > obj_
 
const ROL::Ptr
< BoundConstraint< Real > > 
bnd_
 
ROL::Ptr< Vector< Real > > g_
 
ROL::Ptr< Vector< Real > > l_
 
ROL::Ptr< Vector< Real > > u_
 
ROL::Ptr< Vector< Real > > l1_
 
ROL::Ptr< Vector< Real > > u1_
 
ROL::Ptr< Vector< Real > > dl1_
 
ROL::Ptr< Vector< Real > > du1_
 
ROL::Ptr< Vector< Real > > xlam_
 
ROL::Ptr< Vector< Real > > v_
 
ROL::Ptr< Vector< Real > > dv_
 
ROL::Ptr< Vector< Real > > dv2_
 
ROL::Ptr< Vector< Real > > lam_
 
ROL::Ptr< Vector< Real > > tmp_
 
Real mu_
 
Real fval_
 
bool isConEvaluated_
 
int nfval_
 
int ngval_
 
bool updateMultiplier_
 
bool updatePenalty_
 

Additional Inherited Members

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

Detailed Description

template<class Real>
class ROL::MoreauYosidaPenalty< Real >

Provides the interface to evaluate the Moreau-Yosida penalty function.


Definition at line 31 of file ROL_MoreauYosidaPenalty.hpp.

Constructor & Destructor Documentation

template<class Real>
ROL::MoreauYosidaPenalty< Real >::~MoreauYosidaPenalty ( )
inline

Definition at line 124 of file ROL_MoreauYosidaPenalty.hpp.

template<class Real>
ROL::MoreauYosidaPenalty< Real >::MoreauYosidaPenalty ( const ROL::Ptr< Objective< Real > > &  obj,
const ROL::Ptr< BoundConstraint< Real > > &  bnd,
const ROL::Vector< Real > &  x,
const Real  mu = 1e1,
const bool  updateMultiplier = true,
const bool  updatePenalty = true 
)
inline
template<class Real>
ROL::MoreauYosidaPenalty< Real >::MoreauYosidaPenalty ( const ROL::Ptr< Objective< Real > > &  obj,
const ROL::Ptr< BoundConstraint< Real > > &  bnd,
const ROL::Vector< Real > &  x,
ROL::ParameterList &  parlist 
)
inline
template<class Real>
ROL::MoreauYosidaPenalty< Real >::MoreauYosidaPenalty ( const ROL::Ptr< Objective< Real > > &  obj,
const ROL::Ptr< BoundConstraint< Real > > &  bnd,
const ROL::Vector< Real > &  x,
const ROL::Vector< Real > &  lam,
ROL::ParameterList &  parlist 
)
inline

Member Function Documentation

template<class Real>
void ROL::MoreauYosidaPenalty< Real >::computePenalty ( const Vector< Real > &  x)
inlineprivate
template<class Real>
void ROL::MoreauYosidaPenalty< Real >::initialize ( const ROL::Vector< Real > &  x,
const ROL::Ptr< ROL::BoundConstraint< Real > > &  bnd 
)
inlineprivate
template<class Real>
void ROL::MoreauYosidaPenalty< Real >::updateMultipliers ( Real  mu,
const ROL::Vector< Real > &  x 
)
inline
template<class Real>
void ROL::MoreauYosidaPenalty< Real >::reset ( const Real  mu)
inline
template<class Real>
Real ROL::MoreauYosidaPenalty< Real >::testComplementarity ( const ROL::Vector< Real > &  x)
inline
template<class Real>
Real ROL::MoreauYosidaPenalty< Real >::getObjectiveValue ( void  ) const
inline
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::getGradient ( void  ) const
inline

Definition at line 217 of file ROL_MoreauYosidaPenalty.hpp.

References ROL::MoreauYosidaPenalty< Real >::g_.

template<class Real>
int ROL::MoreauYosidaPenalty< Real >::getNumberFunctionEvaluations ( void  )
inline
template<class Real>
int ROL::MoreauYosidaPenalty< Real >::getNumberGradientEvaluations ( void  )
inline
template<class Real>
void ROL::MoreauYosidaPenalty< Real >::update ( const Vector< Real > &  x,
bool  flag = true,
int  iter = -1 
)
inlinevirtual

Update Moreau-Yosida penalty function.

This function updates the Moreau-Yosida penalty function at new iterations.

Parameters
[in]xis the new iterate.
[in]flagis true if the iterate has changed.
[in]iteris the outer algorithm iterations count.

Reimplemented from ROL::Objective< Real >.

Definition at line 236 of file ROL_MoreauYosidaPenalty.hpp.

References ROL::MoreauYosidaPenalty< Real >::isConEvaluated_, and ROL::MoreauYosidaPenalty< Real >::obj_.

Referenced by ROL::MoreauYosidaPenaltyStep< Real >::update(), and ROL::MoreauYosidaPenaltyStep< Real >::updateState().

template<class Real>
Real ROL::MoreauYosidaPenalty< Real >::value ( const Vector< Real > &  x,
Real &  tol 
)
inlinevirtual
template<class Real>
void ROL::MoreauYosidaPenalty< Real >::gradient ( Vector< Real > &  g,
const Vector< Real > &  x,
Real &  tol 
)
inlinevirtual
template<class Real>
void ROL::MoreauYosidaPenalty< 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 Moreau-Yosida penalty 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 Moreau-Yosida penalty computation.

Reimplemented from ROL::Objective< Real >.

Definition at line 289 of file ROL_MoreauYosidaPenalty.hpp.

References ROL::Vector< Real >::axpy(), ROL::MoreauYosidaPenalty< Real >::bnd_, ROL::MoreauYosidaPenalty< Real >::computePenalty(), ROL::MoreauYosidaPenalty< Real >::dv2_, ROL::MoreauYosidaPenalty< Real >::dv_, ROL::MoreauYosidaPenalty< Real >::mu_, ROL::MoreauYosidaPenalty< Real >::obj_, ROL::MoreauYosidaPenalty< Real >::v_, and ROL::MoreauYosidaPenalty< Real >::xlam_.

template<class Real>
void ROL::MoreauYosidaPenalty< Real >::setParameter ( const std::vector< Real > &  param)
inlinevirtual

Member Data Documentation

template<class Real>
const ROL::Ptr<Objective<Real> > ROL::MoreauYosidaPenalty< Real >::obj_
private
template<class Real>
const ROL::Ptr<BoundConstraint<Real> > ROL::MoreauYosidaPenalty< Real >::bnd_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::g_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::l_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::u_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::l1_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::u1_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::dl1_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::du1_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::xlam_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::v_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::dv_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::dv2_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::lam_
private
template<class Real>
ROL::Ptr<Vector<Real> > ROL::MoreauYosidaPenalty< Real >::tmp_
private
template<class Real>
Real ROL::MoreauYosidaPenalty< Real >::mu_
private
template<class Real>
Real ROL::MoreauYosidaPenalty< Real >::fval_
private
template<class Real>
bool ROL::MoreauYosidaPenalty< Real >::isConEvaluated_
private
template<class Real>
int ROL::MoreauYosidaPenalty< Real >::nfval_
private
template<class Real>
int ROL::MoreauYosidaPenalty< Real >::ngval_
private
template<class Real>
bool ROL::MoreauYosidaPenalty< Real >::updateMultiplier_
private
template<class Real>
bool ROL::MoreauYosidaPenalty< Real >::updatePenalty_
private

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