ROL
|
#include <ROL_SROMGenerator.hpp>
Public Member Functions | |
SROMGenerator (Teuchos::ParameterList &parlist, const Teuchos::RCP< BatchManager< Real > > &bman, const std::vector< Teuchos::RCP< Distribution< Real > > > &dist) | |
void | refine (void) |
![]() | |
virtual | ~SampleGenerator () |
SampleGenerator (const Teuchos::RCP< 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< Teuchos::RCP< 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 | barrier (void) 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 (Teuchos::RCP< ProbabilityVector< Real > > &prob, Teuchos::RCP< ProbabilityVector< Real > > &prob_lo, Teuchos::RCP< ProbabilityVector< Real > > &prob_hi, Teuchos::RCP< ProbabilityVector< Real > > &prob_eq, Teuchos::RCP< AtomVector< Real > > &atom, Teuchos::RCP< AtomVector< Real > > &atom_lo, Teuchos::RCP< AtomVector< Real > > &atom_hi, Teuchos::RCP< AtomVector< Real > > &atom_eq, Teuchos::RCP< Vector< Real > > &vec, Teuchos::RCP< Vector< Real > > &vec_lo, Teuchos::RCP< Vector< Real > > &vec_hi, Teuchos::RCP< Vector< Real > > &vec_eq, const Teuchos::RCP< BatchManager< Real > > &bman) const |
void | initialize_objective (std::vector< Teuchos::RCP< Objective< Real > > > &obj_vec, Teuchos::RCP< Objective< Real > > &obj, const std::vector< Teuchos::RCP< Distribution< Real > > > &dist, const Teuchos::RCP< BatchManager< Real > > &bman, const bool optProb, const bool optAtom, Teuchos::ParameterList &list) const |
void | initialize_optimizer (Teuchos::RCP< Algorithm< Real > > &algo, Teuchos::ParameterList &parlist, const bool optProb) const |
void | check_objective (const Vector< Real > &x, const Teuchos::RCP< Objective< Real > > &obj, const Teuchos::RCP< BatchManager< Real > > &bman, const bool optProb, const bool optAtom) |
void | check_constraint (const Vector< Real > &x, const Teuchos::RCP< EqualityConstraint< Real > > &con, const Teuchos::RCP< BatchManager< Real > > &bman, const bool optProb) |
Private Attributes | |
Teuchos::ParameterList | parlist_ |
std::vector< Teuchos::RCP< Distribution< Real > > > | dist_ |
const int | dimension_ |
int | numSamples_ |
int | numMySamples_ |
int | numNewSamples_ |
bool | adaptive_ |
bool | print_ |
Real | ptol_ |
Real | atol_ |
Additional Inherited Members | |
![]() | |
void | setPoints (std::vector< std::vector< Real > > &p) |
void | setWeights (std::vector< Real > &w) |
Definition at line 66 of file ROL_SROMGenerator.hpp.
|
inline |
Definition at line 142 of file ROL_SROMGenerator.hpp.
References ROL::SROMGenerator< Real >::adaptive_, ROL::SROMGenerator< Real >::atol_, ROL::SampleGenerator< Real >::batchID(), ROL::SROMGenerator< Real >::check_constraint(), ROL::SROMGenerator< Real >::check_objective(), ROL::SROMGenerator< Real >::initialize_objective(), ROL::SROMGenerator< Real >::initialize_optimizer(), ROL::SROMGenerator< Real >::initialize_vectors(), ROL::SROMGenerator< Real >::numMySamples_, ROL::SROMGenerator< Real >::numNewSamples_, ROL::SROMGenerator< Real >::numSamples_, ROL::SROMGenerator< Real >::print_, ROL::SROMGenerator< Real >::pruneSamples(), and ROL::SROMGenerator< Real >::ptol_.
|
inlineprivate |
Definition at line 83 of file ROL_SROMGenerator.hpp.
References ROL::SROMGenerator< Real >::atol_, ROL::SROMGenerator< Real >::dimension_, ROL::AtomVector< Real >::getAtom(), ROL::ProbabilityVector< Real >::getProbability(), ROL::SROMGenerator< Real >::numMySamples_, ROL::SROMGenerator< Real >::ptol_, ROL::SampleGenerator< Real >::setPoints(), ROL::SampleGenerator< Real >::setWeights(), and ROL::SampleGenerator< Real >::sumAll().
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 222 of file ROL_SROMGenerator.hpp.
|
inlineprivate |
Definition at line 226 of file ROL_SROMGenerator.hpp.
References ROL::SROMGenerator< Real >::dimension_, ROL::SROMGenerator< Real >::dist_, ROL::SROMGenerator< Real >::numMySamples_, and ROL::SROMGenerator< Real >::numSamples_.
Referenced by ROL::SROMGenerator< Real >::check_constraint(), ROL::SROMGenerator< Real >::check_objective(), and ROL::SROMGenerator< Real >::initialize_vectors().
|
inlineprivate |
Definition at line 242 of file ROL_SROMGenerator.hpp.
References ROL::SROMGenerator< Real >::dimension_, ROL::SROMGenerator< Real >::dist_, ROL::SROMGenerator< Real >::get_scaling_vectors(), ROL::SROMGenerator< Real >::numMySamples_, and ROL::SROMGenerator< Real >::numSamples_.
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
inlineprivate |
Definition at line 310 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
inlineprivate |
Definition at line 335 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
inlineprivate |
Definition at line 355 of file ROL_SROMGenerator.hpp.
References ROL::SROMGenerator< Real >::dimension_, ROL::SROMGenerator< Real >::dist_, ROL::SROMGenerator< Real >::get_scaling_vectors(), ROL::SROMGenerator< Real >::numMySamples_, and ROL::SROMGenerator< Real >::print_.
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
inlineprivate |
Definition at line 384 of file ROL_SROMGenerator.hpp.
References ROL::SROMGenerator< Real >::dimension_, ROL::SROMGenerator< Real >::dist_, ROL::SROMGenerator< Real >::get_scaling_vectors(), ROL::SROMGenerator< Real >::numMySamples_, and ROL::SROMGenerator< Real >::print_.
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
private |
Definition at line 69 of file ROL_SROMGenerator.hpp.
|
private |
Definition at line 71 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::check_constraint(), ROL::SROMGenerator< Real >::check_objective(), ROL::SROMGenerator< Real >::get_scaling_vectors(), and ROL::SROMGenerator< Real >::initialize_vectors().
|
private |
Definition at line 73 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::check_constraint(), ROL::SROMGenerator< Real >::check_objective(), ROL::SROMGenerator< Real >::get_scaling_vectors(), ROL::SROMGenerator< Real >::initialize_vectors(), and ROL::SROMGenerator< Real >::pruneSamples().
|
private |
Definition at line 74 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::get_scaling_vectors(), ROL::SROMGenerator< Real >::initialize_vectors(), and ROL::SROMGenerator< Real >::SROMGenerator().
|
private |
Definition at line 75 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::check_constraint(), ROL::SROMGenerator< Real >::check_objective(), ROL::SROMGenerator< Real >::get_scaling_vectors(), ROL::SROMGenerator< Real >::initialize_vectors(), ROL::SROMGenerator< Real >::pruneSamples(), and ROL::SROMGenerator< Real >::SROMGenerator().
|
private |
Definition at line 76 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
private |
Definition at line 77 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::SROMGenerator().
|
private |
Definition at line 78 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::check_constraint(), ROL::SROMGenerator< Real >::check_objective(), and ROL::SROMGenerator< Real >::SROMGenerator().
|
private |
Definition at line 80 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::pruneSamples(), and ROL::SROMGenerator< Real >::SROMGenerator().
|
private |
Definition at line 81 of file ROL_SROMGenerator.hpp.
Referenced by ROL::SROMGenerator< Real >::pruneSamples(), and ROL::SROMGenerator< Real >::SROMGenerator().