|
ROL
|
Provides the interface to evaluate the Moreau-Yosida penalty function. More...
#include <ROL_MoreauYosidaPenalty.hpp>
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. | |
| Real | value (const Vector< Real > &x, Real &tol) |
| Compute value. | |
| void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
| Compute gradient. | |
| void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply Hessian approximation to vector. | |
| void | setParameter (const std::vector< Real > ¶m) |
| Public Member Functions inherited from ROL::ROL::Objective< Real > | |
| virtual | ~Objective () |
| Objective () | |
| virtual void | update (const Vector< Real > &x, UpdateType type, int iter=-1) |
| Update objective function. | |
| virtual void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| Update objective function. | |
| virtual Real | value (const Vector< Real > &x, Real &tol)=0 |
| Compute value. | |
| virtual void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
| Compute gradient. | |
| virtual Real | dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol) |
| Compute directional derivative. | |
| virtual void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply Hessian approximation to vector. | |
| 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. | |
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::ROL::Objective< Real > | |
| const std::vector< Real > | getParameter (void) const |
Provides the interface to evaluate the Moreau-Yosida penalty function.
Definition at line 31 of file ROL_MoreauYosidaPenalty.hpp.
|
inline |
Definition at line 124 of file ROL_MoreauYosidaPenalty.hpp.
|
inline |
Definition at line 126 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, fval_, initialize(), isConEvaluated_, mu_, nfval_, ngval_, obj_, ROL::ROL::Objective< Real >::Objective(), updateMultiplier_, and updatePenalty_.
|
inline |
Definition at line 138 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, fval_, initialize(), isConEvaluated_, mu_, nfval_, ngval_, obj_, ROL::ROL::Objective< Real >::Objective(), updateMultiplier_, and updatePenalty_.
|
inline |
Definition at line 151 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, fval_, initialize(), isConEvaluated_, lam_, mu_, nfval_, ngval_, obj_, ROL::ROL::Objective< Real >::Objective(), updateMultiplier_, and updatePenalty_.
|
inlineprivate |
Definition at line 58 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, dl1_, du1_, isConEvaluated_, l1_, l_, lam_, mu_, tmp_, u1_, u_, and xlam_.
Referenced by gradient(), hessVec(), testComplementarity(), updateMultipliers(), and value().
|
inlineprivate |
Definition at line 98 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, ROL::ROL::Vector< Real >::clone(), dl1_, du1_, ROL::ROL::Vector< Real >::dual(), dv2_, dv_, g_, l1_, l_, lam_, tmp_, u1_, u_, v_, and xlam_.
Referenced by MoreauYosidaPenalty(), MoreauYosidaPenalty(), and MoreauYosidaPenalty().
|
inline |
Definition at line 166 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, computePenalty(), isConEvaluated_, l1_, lam_, mu_, nfval_, ngval_, u1_, updateMultiplier_, and updatePenalty_.
Referenced by ROL::MoreauYosidaPenaltyStep< Real >::update(), and ROL::MoreauYosidaPenaltyStep< Real >::update().
|
inline |
Definition at line 183 of file ROL_MoreauYosidaPenalty.hpp.
References isConEvaluated_, lam_, mu_, nfval_, and ngval_.
|
inline |
Definition at line 190 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, computePenalty(), l1_, l_, mu_, tmp_, u1_, and u_.
Referenced by ROL::MoreauYosidaPenaltyStep< Real >::updateState(), and ROL::MoreauYosidaPenaltyStep< Real >::updateState().
|
inline |
Definition at line 213 of file ROL_MoreauYosidaPenalty.hpp.
References fval_.
|
inline |
Definition at line 217 of file ROL_MoreauYosidaPenalty.hpp.
References g_.
|
inline |
Definition at line 221 of file ROL_MoreauYosidaPenalty.hpp.
References nfval_.
Referenced by ROL::MoreauYosidaPenaltyStep< Real >::update(), and ROL::MoreauYosidaPenaltyStep< Real >::update().
|
inline |
Definition at line 225 of file ROL_MoreauYosidaPenalty.hpp.
References ngval_.
Referenced by ROL::MoreauYosidaPenaltyStep< Real >::update(), and ROL::MoreauYosidaPenaltyStep< Real >::update().
|
inline |
Update Moreau-Yosida penalty function.
This function updates the Moreau-Yosida penalty function at new iterations.
| [in] | x | is the new iterate. |
| [in] | flag | is true if the iterate has changed. |
| [in] | iter | is the outer algorithm iterations count. |
Definition at line 236 of file ROL_MoreauYosidaPenalty.hpp.
References isConEvaluated_, and obj_.
Referenced by ROL::MoreauYosidaPenaltyStep< Real >::update(), ROL::MoreauYosidaPenaltyStep< Real >::update(), ROL::MoreauYosidaPenaltyStep< Real >::updateState(), and ROL::MoreauYosidaPenaltyStep< Real >::updateState().
|
inline |
Compute value.
This function returns the Moreau-Yosida penalty value.
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact Moreau-Yosida penalty computation. |
Definition at line 247 of file ROL_MoreauYosidaPenalty.hpp.
References bnd_, computePenalty(), fval_, l1_, mu_, nfval_, obj_, and u1_.
Referenced by ROL::MoreauYosidaPenaltyStep< Real >::updateState(), and ROL::MoreauYosidaPenaltyStep< Real >::updateState().
|
inline |
Compute gradient.
This function returns the Moreau-Yosida penalty gradient.
| [out] | g | is the gradient. |
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact Moreau-Yosida penalty computation. |
Definition at line 268 of file ROL_MoreauYosidaPenalty.hpp.
References ROL::Vector< Real >::axpy(), bnd_, computePenalty(), dl1_, du1_, g_, mu_, ngval_, obj_, and ROL::Vector< Real >::set().
Referenced by ROL::MoreauYosidaPenaltyStep< Real >::updateState(), and ROL::MoreauYosidaPenaltyStep< Real >::updateState().
|
inline |
Apply Hessian approximation to vector.
This function applies the Hessian of the Moreau-Yosida penalty to the vector \(v\).
| [out] | hv | is the the action of the Hessian on \(v\). |
| [in] | v | is the direction vector. |
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact Moreau-Yosida penalty computation. |
Definition at line 289 of file ROL_MoreauYosidaPenalty.hpp.
References ROL::Vector< Real >::axpy(), bnd_, computePenalty(), dv2_, dv_, mu_, obj_, v_, and xlam_.
|
inlinevirtual |
Reimplemented from ROL::ROL::Objective< Real >.
Definition at line 323 of file ROL_MoreauYosidaPenalty.hpp.
References obj_, and ROL::Objective< Real >::setParameter().
|
private |
Definition at line 33 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by gradient(), hessVec(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), setParameter(), update(), and value().
|
private |
Definition at line 34 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), gradient(), hessVec(), initialize(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), testComplementarity(), updateMultipliers(), and value().
|
private |
Definition at line 36 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by getGradient(), gradient(), and initialize().
|
private |
Definition at line 37 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), initialize(), and testComplementarity().
|
private |
Definition at line 38 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), initialize(), and testComplementarity().
|
private |
Definition at line 39 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), initialize(), testComplementarity(), updateMultipliers(), and value().
|
private |
Definition at line 40 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), initialize(), testComplementarity(), updateMultipliers(), and value().
|
private |
Definition at line 41 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), gradient(), and initialize().
|
private |
Definition at line 42 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), gradient(), and initialize().
|
private |
Definition at line 43 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), hessVec(), and initialize().
|
private |
Definition at line 44 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by hessVec(), and initialize().
|
private |
Definition at line 45 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by hessVec(), and initialize().
|
private |
Definition at line 46 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by hessVec(), and initialize().
|
private |
Definition at line 47 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), initialize(), MoreauYosidaPenalty(), reset(), and updateMultipliers().
|
private |
Definition at line 48 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), initialize(), and testComplementarity().
|
private |
Definition at line 50 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), gradient(), hessVec(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), reset(), testComplementarity(), updateMultipliers(), and value().
|
private |
Definition at line 51 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by getObjectiveValue(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), and value().
|
private |
Definition at line 52 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by computePenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), reset(), update(), and updateMultipliers().
|
private |
Definition at line 53 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by getNumberFunctionEvaluations(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), reset(), updateMultipliers(), and value().
|
private |
Definition at line 54 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by getNumberGradientEvaluations(), gradient(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), reset(), and updateMultipliers().
|
private |
Definition at line 55 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), and updateMultipliers().
|
private |
Definition at line 56 of file ROL_MoreauYosidaPenalty.hpp.
Referenced by MoreauYosidaPenalty(), MoreauYosidaPenalty(), MoreauYosidaPenalty(), and updateMultipliers().