|
ROL
|
Provides the interface for the progressive hedging probability objective. More...
#include <ROL_PH_ProbObjective.hpp>
Public Member Functions | |
| PH_ProbObjective (const Ptr< Objective< Real > > &obj, ParameterList &parlist) | |
| void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| 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) |
| 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 | getValue (const Vector< Real > &x, Real &tol) |
| void | getGradient (const Vector< Real > &x, Real &tol) |
| Real | smoothHeaviside (const Real x, const int deriv=0) const |
Private Attributes | |
| const Ptr< Objective< Real > > | obj_ |
| Real | threshold_ |
| Real | eps_ |
| bool | isValueComputed_ |
| Real | val_ |
| bool | isGradientInitialized_ |
| bool | isGradientComputed_ |
| Ptr< Vector< Real > > | g_ |
Additional Inherited Members | |
| Protected Member Functions inherited from ROL::ROL::Objective< Real > | |
| const std::vector< Real > | getParameter (void) const |
Provides the interface for the progressive hedging probability objective.
Definition at line 24 of file ROL_PH_ProbObjective.hpp.
|
inline |
Definition at line 75 of file ROL_PH_ProbObjective.hpp.
References eps_, isGradientComputed_, isGradientInitialized_, isValueComputed_, obj_, ROL::ROL::Objective< Real >::Objective(), and threshold_.
|
inlineprivate |
Definition at line 37 of file ROL_PH_ProbObjective.hpp.
References isValueComputed_, obj_, and val_.
Referenced by gradient(), hessVec(), and value().
|
inlineprivate |
Definition at line 44 of file ROL_PH_ProbObjective.hpp.
References ROL::Vector< Real >::clone(), ROL::Vector< Real >::dual(), g_, isGradientComputed_, isGradientInitialized_, and obj_.
Referenced by gradient(), and hessVec().
|
inlineprivate |
Definition at line 55 of file ROL_PH_ProbObjective.hpp.
References eps_.
Referenced by gradient(), hessVec(), and value().
|
inline |
Definition at line 86 of file ROL_PH_ProbObjective.hpp.
References isGradientComputed_, isValueComputed_, and obj_.
|
inline |
Definition at line 92 of file ROL_PH_ProbObjective.hpp.
References getValue(), ROL::ROL_EPSILON(), smoothHeaviside(), threshold_, and val_.
|
inline |
Definition at line 101 of file ROL_PH_ProbObjective.hpp.
References g_, getGradient(), getValue(), ROL::ROL_EPSILON(), ROL::Vector< Real >::scale(), ROL::Vector< Real >::set(), smoothHeaviside(), threshold_, val_, and ROL::Vector< Real >::zero().
|
inline |
Definition at line 113 of file ROL_PH_ProbObjective.hpp.
References ROL::Vector< Real >::apply(), ROL::Vector< Real >::axpy(), g_, getGradient(), getValue(), obj_, ROL::ROL_EPSILON(), ROL::Vector< Real >::scale(), smoothHeaviside(), threshold_, val_, and ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::ROL::Objective< Real >.
Definition at line 132 of file ROL_PH_ProbObjective.hpp.
References obj_, and ROL::Objective< Real >::setParameter().
|
private |
Definition at line 26 of file ROL_PH_ProbObjective.hpp.
Referenced by getGradient(), getValue(), hessVec(), PH_ProbObjective(), setParameter(), and update().
|
private |
Definition at line 27 of file ROL_PH_ProbObjective.hpp.
Referenced by gradient(), hessVec(), PH_ProbObjective(), and value().
|
private |
Definition at line 28 of file ROL_PH_ProbObjective.hpp.
Referenced by PH_ProbObjective(), and smoothHeaviside().
|
private |
Definition at line 30 of file ROL_PH_ProbObjective.hpp.
Referenced by getValue(), PH_ProbObjective(), and update().
|
private |
Definition at line 31 of file ROL_PH_ProbObjective.hpp.
Referenced by getValue(), gradient(), hessVec(), and value().
|
private |
Definition at line 33 of file ROL_PH_ProbObjective.hpp.
Referenced by getGradient(), and PH_ProbObjective().
|
private |
Definition at line 34 of file ROL_PH_ProbObjective.hpp.
Referenced by getGradient(), PH_ProbObjective(), and update().
|
private |
Definition at line 35 of file ROL_PH_ProbObjective.hpp.
Referenced by getGradient(), gradient(), and hessVec().