ROL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROL::SROMGenerator< Real > Class Template Reference

#include <ROL_SROMGenerator.hpp>

+ Inheritance diagram for ROL::SROMGenerator< Real >:

Public Member Functions

 SROMGenerator (Teuchos::ParameterList &parlist, const Teuchos::RCP< BatchManager< Real > > &bman, const std::vector< Teuchos::RCP< Distribution< Real > > > &dist)
 
void refine (void)
 
- Public Member Functions inherited from ROL::SampleGenerator< Real >
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

- Protected Member Functions inherited from ROL::SampleGenerator< Real >
void setPoints (std::vector< std::vector< Real > > &p)
 
void setWeights (std::vector< Real > &w)
 

Detailed Description

template<class Real>
class ROL::SROMGenerator< Real >

Definition at line 66 of file ROL_SROMGenerator.hpp.

Constructor & Destructor Documentation

◆ SROMGenerator()

template<class Real >
ROL::SROMGenerator< Real >::SROMGenerator ( Teuchos::ParameterList &  parlist,
const Teuchos::RCP< BatchManager< Real > > &  bman,
const std::vector< Teuchos::RCP< Distribution< Real > > > &  dist 
)
inline

Member Function Documentation

◆ pruneSamples()

template<class Real >
void ROL::SROMGenerator< Real >::pruneSamples ( const ProbabilityVector< Real > &  prob,
const AtomVector< Real > &  atom 
)
inlineprivate

◆ refine()

template<class Real >
void ROL::SROMGenerator< Real >::refine ( void  )
inlinevirtual

Reimplemented from ROL::SampleGenerator< Real >.

Definition at line 222 of file ROL_SROMGenerator.hpp.

◆ get_scaling_vectors()

template<class Real >
void ROL::SROMGenerator< Real >::get_scaling_vectors ( std::vector< Real > &  typw,
std::vector< Real > &  typx 
) const
inlineprivate

◆ initialize_vectors()

template<class Real >
void ROL::SROMGenerator< Real >::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
inlineprivate

◆ initialize_objective()

template<class Real >
void ROL::SROMGenerator< Real >::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
inlineprivate

Definition at line 310 of file ROL_SROMGenerator.hpp.

Referenced by ROL::SROMGenerator< Real >::SROMGenerator().

◆ initialize_optimizer()

template<class Real >
void ROL::SROMGenerator< Real >::initialize_optimizer ( Teuchos::RCP< Algorithm< Real > > &  algo,
Teuchos::ParameterList &  parlist,
const bool  optProb 
) const
inlineprivate

Definition at line 335 of file ROL_SROMGenerator.hpp.

Referenced by ROL::SROMGenerator< Real >::SROMGenerator().

◆ check_objective()

template<class Real >
void ROL::SROMGenerator< Real >::check_objective ( const Vector< Real > &  x,
const Teuchos::RCP< Objective< Real > > &  obj,
const Teuchos::RCP< BatchManager< Real > > &  bman,
const bool  optProb,
const bool  optAtom 
)
inlineprivate

◆ check_constraint()

template<class Real >
void ROL::SROMGenerator< Real >::check_constraint ( const Vector< Real > &  x,
const Teuchos::RCP< EqualityConstraint< Real > > &  con,
const Teuchos::RCP< BatchManager< Real > > &  bman,
const bool  optProb 
)
inlineprivate

Member Data Documentation

◆ parlist_

template<class Real >
Teuchos::ParameterList ROL::SROMGenerator< Real >::parlist_
private

Definition at line 69 of file ROL_SROMGenerator.hpp.

◆ dist_

template<class Real >
std::vector<Teuchos::RCP<Distribution<Real> > > ROL::SROMGenerator< Real >::dist_
private

◆ dimension_

template<class Real >
const int ROL::SROMGenerator< Real >::dimension_
private

◆ numSamples_

template<class Real >
int ROL::SROMGenerator< Real >::numSamples_
private

◆ numMySamples_

template<class Real >
int ROL::SROMGenerator< Real >::numMySamples_
private

◆ numNewSamples_

template<class Real >
int ROL::SROMGenerator< Real >::numNewSamples_
private

Definition at line 76 of file ROL_SROMGenerator.hpp.

Referenced by ROL::SROMGenerator< Real >::SROMGenerator().

◆ adaptive_

template<class Real >
bool ROL::SROMGenerator< Real >::adaptive_
private

Definition at line 77 of file ROL_SROMGenerator.hpp.

Referenced by ROL::SROMGenerator< Real >::SROMGenerator().

◆ print_

template<class Real >
bool ROL::SROMGenerator< Real >::print_
private

◆ ptol_

template<class Real >
Real ROL::SROMGenerator< Real >::ptol_
private

◆ atol_

template<class Real >
Real ROL::SROMGenerator< Real >::atol_
private

The documentation for this class was generated from the following file: