|
ROL
|
Provides the interface to evaluate the Interior Pointy log barrier penalty function with upper and lower bounds on some elements. More...
#include <ROL_InteriorPointPenalty.hpp>
Inheritance diagram for ROL::InteriorPointPenalty< Real >:Classes | |
| class | Mask |
| class | ModifiedDivide |
| class | ModifiedLogarithm |
| class | ModifiedReciprocal |
Public Member Functions | |
| ~InteriorPointPenalty () | |
| InteriorPointPenalty (const ROL::Ptr< Objective< Real > > &obj, const ROL::Ptr< BoundConstraint< Real > > &con, ROL::ParameterList &parlist) | |
| Real | getObjectiveValue (void) const |
| ROL::Ptr< Vector< Real > > | getGradient (void) const |
| int | getNumberFunctionEvaluations (void) const |
| int | getNumberGradientEvaluations (void) const |
| ROL::Ptr< const Vector< Real > > | getLowerMask (void) const |
| ROL::Ptr< const Vector< Real > > | getUpperMask (void) const |
| void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| Update the interior point penalized objective. | |
| 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) |
| Compute action of Hessian on vector. | |
| const ROL::Ptr< OBJ > | getObjective (void) |
| const ROL::Ptr< BND > | getBoundConstraint (void) |
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 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 void | setParameter (const std::vector< Real > ¶m) |
Private Types | |
| typedef Vector< Real > | V |
| typedef Objective< Real > | OBJ |
| typedef BoundConstraint< Real > | BND |
| typedef Elementwise::ValueSet< Real > | ValueSet |
Private Attributes | |
| const ROL::Ptr< OBJ > | obj_ |
| const ROL::Ptr< BND > | bnd_ |
| const ROL::Ptr< const V > | lo_ |
| const ROL::Ptr< const V > | up_ |
| ROL::Ptr< V > | g_ |
| ROL::Ptr< V > | maskL_ |
| ROL::Ptr< V > | maskU_ |
| ROL::Ptr< V > | a_ |
| ROL::Ptr< V > | b_ |
| ROL::Ptr< V > | c_ |
| bool | useLinearDamping_ |
| Real | mu_ |
| Real | kappaD_ |
| Real | fval_ |
| int | nfval_ |
| int | ngval_ |
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 Interior Pointy log barrier penalty function with upper and lower bounds on some elements.
Definition at line 63 of file ROL_InteriorPointPenalty.hpp.
|
private |
Definition at line 65 of file ROL_InteriorPointPenalty.hpp.
|
private |
Definition at line 66 of file ROL_InteriorPointPenalty.hpp.
|
private |
Definition at line 67 of file ROL_InteriorPointPenalty.hpp.
|
private |
Definition at line 69 of file ROL_InteriorPointPenalty.hpp.
|
inline |
Definition at line 145 of file ROL_InteriorPointPenalty.hpp.
|
inline |
Definition at line 147 of file ROL_InteriorPointPenalty.hpp.
References a_, b_, bnd_, c_, g_, kappaD_, lo_, maskL_, maskU_, mu_, obj_, ROL::ROL::Objective< Real >::Objective(), ROL::ROL_INF(), ROL::ROL_NINF(), up_, useLinearDamping_, and zero.
|
inline |
Definition at line 182 of file ROL_InteriorPointPenalty.hpp.
References fval_.
|
inline |
Definition at line 186 of file ROL_InteriorPointPenalty.hpp.
References g_.
|
inline |
Definition at line 190 of file ROL_InteriorPointPenalty.hpp.
References nfval_.
|
inline |
Definition at line 194 of file ROL_InteriorPointPenalty.hpp.
References ngval_.
|
inline |
Definition at line 198 of file ROL_InteriorPointPenalty.hpp.
References maskL_.
|
inline |
Definition at line 202 of file ROL_InteriorPointPenalty.hpp.
References maskU_.
|
inline |
Update the interior point penalized objective.
This function updates the log barrier penalized 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 213 of file ROL_InteriorPointPenalty.hpp.
References obj_.
|
inline |
Compute value.
This function returns the log barrier penalized objective value.
\[ \varphi_\mu(x) = f(x) - \mu \sum\limits_{i\int I_L} \ln(x_i-l_i) - \mu \sum\limits_{i\in I_Y} \ln(u_i-x_i) \]
Where \( I_L=\{i:l_i>-\infty\} \) and \( I_U = \{i:u_i<\infty\}\)
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for interior point penalty computation. |
Definition at line 228 of file ROL_InteriorPointPenalty.hpp.
References a_, b_, c_, fval_, kappaD_, lo_, maskL_, maskU_, mu_, nfval_, obj_, up_, and useLinearDamping_.
|
inline |
Compute gradient.
This function returns the log barrier penalized gradient.
| [out] | g | is the gradient. |
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact log barrier penalty computation. |
Definition at line 297 of file ROL_InteriorPointPenalty.hpp.
References a_, ROL::Vector< Real >::axpy(), b_, g_, kappaD_, lo_, maskL_, maskU_, mu_, ngval_, obj_, ROL::Vector< Real >::set(), up_, and useLinearDamping_.
|
inline |
Compute action of Hessian on vector.
This function returns the log barrier penalized Hessian acting on a given vector.
| [out] | hv | is the Hessian-vector product. |
| [in] | v | is the given vector. |
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact log barrier penalty computation. |
Definition at line 343 of file ROL_InteriorPointPenalty.hpp.
References a_, ROL::Vector< Real >::axpy(), b_, lo_, maskL_, maskU_, mu_, obj_, and up_.
|
inline |
Definition at line 372 of file ROL_InteriorPointPenalty.hpp.
References obj_.
|
inline |
Definition at line 375 of file ROL_InteriorPointPenalty.hpp.
References bnd_.
|
private |
Definition at line 73 of file ROL_InteriorPointPenalty.hpp.
Referenced by getObjective(), gradient(), hessVec(), InteriorPointPenalty(), update(), and value().
|
private |
Definition at line 74 of file ROL_InteriorPointPenalty.hpp.
Referenced by getBoundConstraint(), and InteriorPointPenalty().
|
private |
Definition at line 75 of file ROL_InteriorPointPenalty.hpp.
Referenced by gradient(), hessVec(), InteriorPointPenalty(), and value().
|
private |
Definition at line 76 of file ROL_InteriorPointPenalty.hpp.
Referenced by gradient(), hessVec(), InteriorPointPenalty(), and value().
|
private |
Definition at line 78 of file ROL_InteriorPointPenalty.hpp.
Referenced by getGradient(), gradient(), and InteriorPointPenalty().
|
private |
Definition at line 80 of file ROL_InteriorPointPenalty.hpp.
Referenced by getLowerMask(), gradient(), hessVec(), InteriorPointPenalty(), and value().
|
private |
Definition at line 81 of file ROL_InteriorPointPenalty.hpp.
Referenced by getUpperMask(), gradient(), hessVec(), InteriorPointPenalty(), and value().
|
private |
Definition at line 83 of file ROL_InteriorPointPenalty.hpp.
Referenced by gradient(), hessVec(), InteriorPointPenalty(), and value().
|
private |
Definition at line 84 of file ROL_InteriorPointPenalty.hpp.
Referenced by gradient(), hessVec(), InteriorPointPenalty(), and value().
|
private |
Definition at line 85 of file ROL_InteriorPointPenalty.hpp.
Referenced by InteriorPointPenalty(), and value().
|
private |
Definition at line 87 of file ROL_InteriorPointPenalty.hpp.
Referenced by gradient(), InteriorPointPenalty(), and value().
|
private |
Definition at line 91 of file ROL_InteriorPointPenalty.hpp.
Referenced by gradient(), hessVec(), InteriorPointPenalty(), and value().
|
private |
Definition at line 92 of file ROL_InteriorPointPenalty.hpp.
Referenced by gradient(), InteriorPointPenalty(), and value().
|
private |
Definition at line 93 of file ROL_InteriorPointPenalty.hpp.
Referenced by getObjectiveValue(), and value().
|
private |
Definition at line 95 of file ROL_InteriorPointPenalty.hpp.
Referenced by getNumberFunctionEvaluations(), and value().
|
private |
Definition at line 96 of file ROL_InteriorPointPenalty.hpp.
Referenced by getNumberGradientEvaluations(), and gradient().