|
ROL
|
#include <ROL_SROMGenerator.hpp>
Public Member Functions | |
| SROMGenerator (ROL::ParameterList &parlist, const Ptr< BatchManager< Real > > &bman, const std::vector< Ptr< Distribution< Real > > > &dist, std::ostream &outStream=std::cout) | |
| void | refine (void) |
| Public Member Functions inherited from ROL::SampleGenerator< Real > | |
| virtual | ~SampleGenerator () |
| SampleGenerator (const ROL::Ptr< BatchManager< Real > > &bman) | |
| SampleGenerator (const SampleGenerator< Real > &sampler) | |
| virtual void | update (const Vector< Real > &x) |
| virtual int | start (void) |
| virtual Real | computeError (std::vector< Real > &vals) |
| virtual Real | computeError (std::vector< ROL::Ptr< Vector< Real > > > &vals, const Vector< Real > &x) |
| virtual void | setSamples (bool inConstructor=false) |
| virtual int | numMySamples (void) const |
| virtual std::vector< Real > | getMyPoint (const int i) const |
| virtual Real | getMyWeight (const int i) const |
| int | batchID (void) const |
| int | numBatches (void) const |
| void | sumAll (Real *input, Real *output, int dim) const |
| void | sumAll (Vector< Real > &input, Vector< Real > &output) const |
| void | broadcast (Real *input, int cnt, int root) const |
| void | barrier (void) const |
| const ROL::Ptr< BatchManager< Real > > | getBatchManager (void) const |
| void | print (const std::string &filename="samples", const int prec=12) const |
Private Member Functions | |
| void | pruneSamples (const ProbabilityVector< Real > &prob, const AtomVector< Real > &atom) |
| void | get_scaling_vectors (std::vector< Real > &typw, std::vector< Real > &typx) const |
| void | initialize_vectors (Ptr< ProbabilityVector< Real > > &prob, Ptr< ProbabilityVector< Real > > &prob_lo, Ptr< ProbabilityVector< Real > > &prob_hi, Ptr< ProbabilityVector< Real > > &prob_eq, Ptr< AtomVector< Real > > &atom, Ptr< AtomVector< Real > > &atom_lo, Ptr< AtomVector< Real > > &atom_hi, Ptr< AtomVector< Real > > &atom_eq, Ptr< Vector< Real > > &vec, Ptr< Vector< Real > > &vec_lo, Ptr< Vector< Real > > &vec_hi, Ptr< Vector< Real > > &vec_eq, const Ptr< BatchManager< Real > > &bman) const |
| Ptr< Objective< Real > > | initialize_objective (const std::vector< Ptr< Distribution< Real > > > &dist, const Ptr< BatchManager< Real > > &bman, const bool optProb, const bool optAtom, ROL::ParameterList &list) const |
| int | numGlobalSamples (void) const |
Private Attributes | |
| ROL::ParameterList | parlist_ |
| std::vector< Ptr< Distribution< Real > > > | dist_ |
| const int | dimension_ |
| int | numSamples_ |
| int | numMySamples_ |
| int | numNewSamples_ |
| bool | adaptive_ |
| Real | ptol_ |
| Real | atol_ |
Additional Inherited Members | |
| Protected Member Functions inherited from ROL::SampleGenerator< Real > | |
| void | setPoints (std::vector< std::vector< Real > > &p) |
| void | setWeights (std::vector< Real > &w) |
Definition at line 27 of file ROL_SROMGenerator.hpp.
|
inline |
Definition at line 102 of file ROL_SROMGenerator.hpp.
References adaptive_, atol_, ROL::SampleGenerator< Real >::batchID(), ROL::OptimizationProblem< Real >::check(), dimension_, dist_, initialize_objective(), initialize_vectors(), ROL::SampleGenerator< Real >::numBatches(), numMySamples_, numNewSamples_, numSamples_, parlist_, pruneSamples(), ptol_, ROL::ROL_EPSILON(), ROL::SampleGenerator< Real >::SampleGenerator(), and ROL::OptimizationSolver< Real >::solve().
|
inlineprivate |
Definition at line 43 of file ROL_SROMGenerator.hpp.
References atol_, dimension_, ROL::AtomVector< Real >::getAtom(), ROL::ProbabilityVector< Real >::getProbability(), numMySamples_, ptol_, ROL::SampleGenerator< Real >::setPoints(), ROL::SampleGenerator< Real >::setWeights(), and ROL::SampleGenerator< Real >::sumAll().
Referenced by SROMGenerator().
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 149 of file ROL_SROMGenerator.hpp.
|
inlineprivate |
Definition at line 153 of file ROL_SROMGenerator.hpp.
References dimension_, dist_, numMySamples_, numSamples_, and ROL::ROL_EPSILON().
Referenced by initialize_vectors().
|
inlineprivate |
Definition at line 169 of file ROL_SROMGenerator.hpp.
References ROL::SampleGenerator< Real >::batchID(), dimension_, dist_, get_scaling_vectors(), numMySamples_, and numSamples_.
Referenced by SROMGenerator().
|
inlineprivate |
Definition at line 237 of file ROL_SROMGenerator.hpp.
Referenced by SROMGenerator().
|
inlineprivatevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 261 of file ROL_SROMGenerator.hpp.
References numSamples_.
|
private |
Definition at line 30 of file ROL_SROMGenerator.hpp.
Referenced by SROMGenerator().
|
private |
Definition at line 32 of file ROL_SROMGenerator.hpp.
Referenced by get_scaling_vectors(), initialize_vectors(), and SROMGenerator().
|
private |
Definition at line 34 of file ROL_SROMGenerator.hpp.
Referenced by get_scaling_vectors(), initialize_vectors(), pruneSamples(), and SROMGenerator().
|
private |
Definition at line 35 of file ROL_SROMGenerator.hpp.
Referenced by get_scaling_vectors(), initialize_vectors(), numGlobalSamples(), and SROMGenerator().
|
private |
Definition at line 36 of file ROL_SROMGenerator.hpp.
Referenced by get_scaling_vectors(), initialize_vectors(), pruneSamples(), and SROMGenerator().
|
private |
Definition at line 37 of file ROL_SROMGenerator.hpp.
Referenced by SROMGenerator().
|
private |
Definition at line 38 of file ROL_SROMGenerator.hpp.
Referenced by SROMGenerator().
|
private |
Definition at line 40 of file ROL_SROMGenerator.hpp.
Referenced by pruneSamples(), and SROMGenerator().
|
private |
Definition at line 41 of file ROL_SROMGenerator.hpp.
Referenced by pruneSamples(), and SROMGenerator().