|
ROL
|
#include <ROL_StochasticObjective.hpp>
Public Member Functions | |
| virtual | ~StochasticObjective () |
| StochasticObjective (const Ptr< Objective< Real > > &obj, const Ptr< RandVarFunctional< Real > > &rvf, const Ptr< SampleGenerator< Real > > &vsampler, const Ptr< SampleGenerator< Real > > &gsampler, const Ptr< SampleGenerator< Real > > &hsampler, const bool storage=true, const int comp=0, const int index=0) | |
| StochasticObjective (const Ptr< Objective< Real > > &obj, const Ptr< RandVarFunctional< Real > > &rvf, const Ptr< SampleGenerator< Real > > &vsampler, const Ptr< SampleGenerator< Real > > &gsampler, const bool storage=true, const int comp=0, const int index=0) | |
| StochasticObjective (const Ptr< Objective< Real > > &obj, const Ptr< RandVarFunctional< Real > > &rvf, const Ptr< SampleGenerator< Real > > &sampler, const bool storage=true, const int comp=0, const int index=0) | |
| StochasticObjective (const Ptr< Objective< Real > > &obj, ParameterList &parlist, const Ptr< SampleGenerator< Real > > &vsampler, const Ptr< SampleGenerator< Real > > &gsampler, const Ptr< SampleGenerator< Real > > &hsampler, const int comp=0, const int index=0) | |
| StochasticObjective (const Ptr< Objective< Real > > &obj, ROL::ParameterList &parlist, const Ptr< SampleGenerator< Real > > &vsampler, const Ptr< SampleGenerator< Real > > &gsampler, const int comp=0, const int index=0) | |
| StochasticObjective (const Ptr< Objective< Real > > &obj, ROL::ParameterList &parlist, const Ptr< SampleGenerator< Real > > &sampler, const int comp=0, const int index=0) | |
| Real | computeStatistic (const Vector< Real > &x) const |
| void | setIndex (int ind) |
| void | update (const Vector< Real > &x, UpdateType type, int iter=-1) |
| 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) |
| virtual void | precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| 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 Member Functions | |
| Ptr< const Vector< Real > > | getConstVector (const Vector< Real > &x) const |
| Ptr< Vector< Real > > | getVector (Vector< Real > &x) const |
| Ptr< const std::vector< Real > > | getConstStat (const Vector< Real > &x) const |
| Ptr< std::vector< Real > > | getStat (Vector< Real > &x) const |
Private Attributes | |
| Ptr< Objective< Real > > | obj_ |
| Ptr< RandVarFunctional< Real > > | rvf_ |
| Ptr< SampleGenerator< Real > > | vsampler_ |
| Ptr< SampleGenerator< Real > > | gsampler_ |
| Ptr< SampleGenerator< Real > > | hsampler_ |
| const int | comp_ |
| int | index_ |
Additional Inherited Members | |
| Protected Member Functions inherited from ROL::ROL::Objective< Real > | |
| const std::vector< Real > | getParameter (void) const |
Definition at line 22 of file ROL_StochasticObjective.hpp.
|
inlinevirtual |
Definition at line 65 of file ROL_StochasticObjective.hpp.
|
inline |
Definition at line 67 of file ROL_StochasticObjective.hpp.
References comp_, gsampler_, hsampler_, index_, obj_, ROL::ROL::Objective< Real >::Objective(), rvf_, and vsampler_.
Referenced by StochasticObjective(), StochasticObjective(), StochasticObjective(), and StochasticObjective().
|
inline |
Definition at line 80 of file ROL_StochasticObjective.hpp.
References ROL::ROL::Objective< Real >::Objective(), and StochasticObjective().
|
inline |
Definition at line 88 of file ROL_StochasticObjective.hpp.
References ROL::ROL::Objective< Real >::Objective(), and StochasticObjective().
|
inline |
Definition at line 95 of file ROL_StochasticObjective.hpp.
References comp_, gsampler_, hsampler_, index_, obj_, ROL::ROL::Objective< Real >::Objective(), ROL::RandVarFunctionalFactory(), rvf_, and vsampler_.
|
inline |
Definition at line 117 of file ROL_StochasticObjective.hpp.
References ROL::ROL::Objective< Real >::Objective(), and StochasticObjective().
|
inline |
Definition at line 124 of file ROL_StochasticObjective.hpp.
References ROL::ROL::Objective< Real >::Objective(), and StochasticObjective().
|
inlineprivate |
Definition at line 36 of file ROL_StochasticObjective.hpp.
References ROL::RiskVector< Real >::getVector().
Referenced by gradient(), hessVec(), update(), update(), and value().
|
inlineprivate |
Definition at line 41 of file ROL_StochasticObjective.hpp.
References ROL::RiskVector< Real >::getVector().
Referenced by gradient(), and hessVec().
|
inlineprivate |
Definition at line 46 of file ROL_StochasticObjective.hpp.
References comp_, ROL::RiskVector< Real >::getStatistic(), and index_.
Referenced by computeStatistic(), gradient(), hessVec(), and value().
|
inlineprivate |
Definition at line 55 of file ROL_StochasticObjective.hpp.
References comp_, ROL::RiskVector< Real >::getStatistic(), and index_.
Referenced by gradient(), and hessVec().
|
inline |
Definition at line 130 of file ROL_StochasticObjective.hpp.
References getConstStat(), and rvf_.
|
inline |
Definition at line 135 of file ROL_StochasticObjective.hpp.
References index_.
|
inline |
Definition at line 139 of file ROL_StochasticObjective.hpp.
References getConstVector(), gsampler_, hsampler_, obj_, ROL::Revert, rvf_, ROL::Trial, and vsampler_.
|
inline |
Definition at line 153 of file ROL_StochasticObjective.hpp.
References getConstVector(), gsampler_, hsampler_, obj_, rvf_, and vsampler_.
|
inline |
Definition at line 167 of file ROL_StochasticObjective.hpp.
References getConstStat(), getConstVector(), obj_, rvf_, and vsampler_.
|
inline |
Definition at line 180 of file ROL_StochasticObjective.hpp.
References getConstStat(), getConstVector(), getStat(), getVector(), gsampler_, obj_, rvf_, and ROL::Vector< Real >::zero().
|
inline |
Definition at line 194 of file ROL_StochasticObjective.hpp.
References getConstStat(), getConstVector(), getStat(), getVector(), hsampler_, obj_, rvf_, and ROL::Vector< Real >::zero().
|
inlinevirtual |
Definition at line 211 of file ROL_StochasticObjective.hpp.
References ROL::Vector< Real >::dual(), and ROL::Vector< Real >::set().
|
private |
Definition at line 25 of file ROL_StochasticObjective.hpp.
Referenced by gradient(), hessVec(), StochasticObjective(), StochasticObjective(), update(), update(), and value().
|
private |
Definition at line 26 of file ROL_StochasticObjective.hpp.
Referenced by computeStatistic(), gradient(), hessVec(), StochasticObjective(), StochasticObjective(), update(), update(), and value().
|
private |
Definition at line 29 of file ROL_StochasticObjective.hpp.
Referenced by StochasticObjective(), StochasticObjective(), update(), update(), and value().
|
private |
Definition at line 30 of file ROL_StochasticObjective.hpp.
Referenced by gradient(), StochasticObjective(), StochasticObjective(), update(), and update().
|
private |
Definition at line 31 of file ROL_StochasticObjective.hpp.
Referenced by hessVec(), StochasticObjective(), StochasticObjective(), update(), and update().
|
private |
Definition at line 33 of file ROL_StochasticObjective.hpp.
Referenced by getConstStat(), getStat(), StochasticObjective(), and StochasticObjective().
|
private |
Definition at line 34 of file ROL_StochasticObjective.hpp.
Referenced by getConstStat(), getStat(), setIndex(), StochasticObjective(), and StochasticObjective().