|
ROL
|
Create a penalty objective from upper and lower bound vectors. More...
#include <ROL_ObjectiveFromBoundConstraint.hpp>
Public Member Functions | |
| ObjectiveFromBoundConstraint (const BoundConstraint< Real > &bc, ROL::ParameterList &parlist) | |
| ObjectiveFromBoundConstraint (const BoundConstraint< Real > &bc) | |
| Real | value (const Vector< Real > &x, Real &tol) |
| void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
| void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| ROL::Ptr< Vector< Real > > | getBarrierVector (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 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 > ¶m) |
Private Types | |
| enum | EBarrierType { BARRIER_LOGARITHM = 0 , BARRIER_QUADRATIC , BARRIER_DOUBLEWELL , BARRIER_LAST } |
| typedef Vector< Real > | V |
| typedef Elementwise::Fill< Real > | Fill |
| typedef Elementwise::Reciprocal< Real > | Reciprocal |
| typedef Elementwise::Power< Real > | Power |
| typedef Elementwise::Logarithm< Real > | Logarithm |
| typedef Elementwise::Multiply< Real > | Multiply |
| typedef Elementwise::Heaviside< Real > | Heaviside |
| typedef Elementwise::ThresholdUpper< Real > | ThresholdUpper |
| typedef Elementwise::ThresholdLower< Real > | ThresholdLower |
| typedef Elementwise::ReductionSum< Real > | Sum |
| typedef Elementwise::UnaryFunction< Real > | UnaryFunction |
Private Member Functions | |
| std::string | EBarrierToString (EBarrierType type) |
| EBarrierType | StringToEBarrierType (std::string s) |
Private Attributes | |
| enum ROL::ObjectiveFromBoundConstraint::EBarrierType | eBarrierType_ |
| const ROL::Ptr< const V > | lo_ |
| const ROL::Ptr< const V > | up_ |
| ROL::Ptr< V > | a_ |
| ROL::Ptr< V > | b_ |
| EBarrierType | btype_ |
| bool | isLowerActivated_ |
| bool | isUpperActivated_ |
Additional Inherited Members | |
| Protected Member Functions inherited from ROL::ROL::Objective< Real > | |
| const std::vector< Real > | getParameter (void) const |
Create a penalty objective from upper and lower bound vectors.
Definition at line 27 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 29 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 31 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 32 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 33 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 34 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 35 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 36 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 37 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 38 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 39 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
Definition at line 40 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
private |
| Enumerator | |
|---|---|
| BARRIER_LOGARITHM | |
| BARRIER_QUADRATIC | |
| BARRIER_DOUBLEWELL | |
| BARRIER_LAST | |
Definition at line 44 of file ROL_ObjectiveFromBoundConstraint.hpp.
|
inline |
Definition at line 96 of file ROL_ObjectiveFromBoundConstraint.hpp.
References a_, b_, btype_, ROL::BoundConstraint< Real >::isLowerActivated(), isLowerActivated_, ROL::BoundConstraint< Real >::isUpperActivated(), isUpperActivated_, lo_, StringToEBarrierType(), and up_.
|
inline |
Definition at line 111 of file ROL_ObjectiveFromBoundConstraint.hpp.
References a_, b_, BARRIER_LOGARITHM, btype_, ROL::BoundConstraint< Real >::isLowerActivated(), isLowerActivated_, ROL::BoundConstraint< Real >::isUpperActivated(), isUpperActivated_, lo_, and up_.
|
inlineprivate |
Definition at line 51 of file ROL_ObjectiveFromBoundConstraint.hpp.
References BARRIER_DOUBLEWELL, BARRIER_LAST, BARRIER_LOGARITHM, and BARRIER_QUADRATIC.
Referenced by StringToEBarrierType().
|
inlineprivate |
Definition at line 73 of file ROL_ObjectiveFromBoundConstraint.hpp.
References BARRIER_LAST, BARRIER_LOGARITHM, EBarrierToString(), and ROL::removeStringFormat().
Referenced by ObjectiveFromBoundConstraint().
|
inline |
Definition at line 124 of file ROL_ObjectiveFromBoundConstraint.hpp.
References a_, b_, BARRIER_DOUBLEWELL, BARRIER_LOGARITHM, BARRIER_QUADRATIC, btype_, isLowerActivated_, isUpperActivated_, lo_, up_, and zero.
Referenced by main().
|
inline |
Definition at line 206 of file ROL_ObjectiveFromBoundConstraint.hpp.
References a_, b_, BARRIER_DOUBLEWELL, BARRIER_LOGARITHM, BARRIER_QUADRATIC, btype_, isLowerActivated_, isUpperActivated_, lo_, ROL::Vector< Real >::set(), up_, and zero.
Referenced by main().
|
inline |
Definition at line 288 of file ROL_ObjectiveFromBoundConstraint.hpp.
References a_, ROL::Vector< Real >::applyBinary(), b_, BARRIER_DOUBLEWELL, BARRIER_LOGARITHM, BARRIER_QUADRATIC, btype_, isLowerActivated_, isUpperActivated_, lo_, ROL::Vector< Real >::set(), and up_.
Referenced by main().
|
inline |
Definition at line 374 of file ROL_ObjectiveFromBoundConstraint.hpp.
References b_.
Referenced by main().
|
private |
|
private |
Definition at line 86 of file ROL_ObjectiveFromBoundConstraint.hpp.
Referenced by gradient(), hessVec(), ObjectiveFromBoundConstraint(), ObjectiveFromBoundConstraint(), and value().
|
private |
Definition at line 87 of file ROL_ObjectiveFromBoundConstraint.hpp.
Referenced by gradient(), hessVec(), ObjectiveFromBoundConstraint(), ObjectiveFromBoundConstraint(), and value().
|
private |
Definition at line 88 of file ROL_ObjectiveFromBoundConstraint.hpp.
Referenced by gradient(), hessVec(), ObjectiveFromBoundConstraint(), ObjectiveFromBoundConstraint(), and value().
|
private |
Definition at line 89 of file ROL_ObjectiveFromBoundConstraint.hpp.
Referenced by getBarrierVector(), gradient(), hessVec(), ObjectiveFromBoundConstraint(), ObjectiveFromBoundConstraint(), and value().
|
private |
Definition at line 90 of file ROL_ObjectiveFromBoundConstraint.hpp.
Referenced by gradient(), hessVec(), ObjectiveFromBoundConstraint(), ObjectiveFromBoundConstraint(), and value().
|
private |
Definition at line 91 of file ROL_ObjectiveFromBoundConstraint.hpp.
Referenced by gradient(), hessVec(), ObjectiveFromBoundConstraint(), ObjectiveFromBoundConstraint(), and value().
|
private |
Definition at line 92 of file ROL_ObjectiveFromBoundConstraint.hpp.
Referenced by gradient(), hessVec(), ObjectiveFromBoundConstraint(), ObjectiveFromBoundConstraint(), and value().