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::RCP< BatchManager< Real > > &bman, Teuchos::RCP< Objective< Real > > &obj, const size_t dimension, const size_t nSamp=10, const bool adaptive=false, const size_t numNewSamps=0)
 
 SROMGenerator (Teuchos::RCP< BatchManager< Real > > &bman, Teuchos::RCP< Objective< Real > > &obj, Teuchos::RCP< BoundConstraint< Real > > &bnd, const size_t dimension, const size_t nSamp=10, const bool adaptive=false, const size_t numNewSamps=0)
 
 SROMGenerator (Teuchos::RCP< BatchManager< Real > > &bman, Teuchos::RCP< Objective< Real > > &obj, Teuchos::RCP< BoundConstraint< Real > > &bnd, Teuchos::RCP< Vector< Real > > &x, const size_t dimension, const size_t nSamp=10, const bool adaptive=false, const size_t numNewSamps=0)
 
void refine (void)
 
- Public Member Functions inherited from ROL::SampleGenerator< Real >
virtual ~SampleGenerator ()
 
 SampleGenerator (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 buildOptimizer (const bool useAugLag=true)
 
void splitSamples (const std::vector< std::vector< Real > > &allPoints, const std::vector< Real > &allWeights)
 
void pruneSamples (std::vector< std::vector< Real > > &pts, std::vector< Real > &wts, const SROMVector< Real > &x)
 

Private Attributes

Teuchos::RCP< Objective< Real > > obj_
 
Teuchos::RCP< BoundConstraint< Real > > bnd_
 
Teuchos::RCP< EqualityConstraint< Real > > con_
 
Teuchos::RCP< Algorithm< Real > > algo_
 
Teuchos::ParameterList parlist_
 
const size_t dimension_
 
size_t nSamp_
 
const size_t numNewSamps_
 
const bool adaptive_
 

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 65 of file ROL_SROMGenerator.hpp.

Constructor & Destructor Documentation

template<class Real >
ROL::SROMGenerator< Real >::SROMGenerator ( Teuchos::RCP< BatchManager< Real > > &  bman,
Teuchos::RCP< Objective< Real > > &  obj,
const size_t  dimension,
const size_t  nSamp = 10,
const bool  adaptive = false,
const size_t  numNewSamps = 0 
)
inline
template<class Real >
ROL::SROMGenerator< Real >::SROMGenerator ( Teuchos::RCP< BatchManager< Real > > &  bman,
Teuchos::RCP< Objective< Real > > &  obj,
Teuchos::RCP< BoundConstraint< Real > > &  bnd,
const size_t  dimension,
const size_t  nSamp = 10,
const bool  adaptive = false,
const size_t  numNewSamps = 0 
)
inline
template<class Real >
ROL::SROMGenerator< Real >::SROMGenerator ( Teuchos::RCP< BatchManager< Real > > &  bman,
Teuchos::RCP< Objective< Real > > &  obj,
Teuchos::RCP< BoundConstraint< Real > > &  bnd,
Teuchos::RCP< Vector< Real > > &  x,
const size_t  dimension,
const size_t  nSamp = 10,
const bool  adaptive = false,
const size_t  numNewSamps = 0 
)
inline

Member Function Documentation

template<class Real >
void ROL::SROMGenerator< Real >::buildOptimizer ( const bool  useAugLag = true)
inlineprivate

Definition at line 80 of file ROL_SROMGenerator.hpp.

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

template<class Real >
void ROL::SROMGenerator< Real >::splitSamples ( const std::vector< std::vector< Real > > &  allPoints,
const std::vector< Real > &  allWeights 
)
inlineprivate
template<class Real >
void ROL::SROMGenerator< Real >::pruneSamples ( std::vector< std::vector< Real > > &  pts,
std::vector< Real > &  wts,
const SROMVector< Real > &  x 
)
inlineprivate
template<class Real >
void ROL::SROMGenerator< Real >::refine ( void  )
inlinevirtual

Reimplemented from ROL::SampleGenerator< Real >.

Definition at line 223 of file ROL_SROMGenerator.hpp.

Member Data Documentation

template<class Real >
Teuchos::RCP<Objective<Real> > ROL::SROMGenerator< Real >::obj_
private

Definition at line 67 of file ROL_SROMGenerator.hpp.

template<class Real >
Teuchos::RCP<BoundConstraint<Real> > ROL::SROMGenerator< Real >::bnd_
private

Definition at line 68 of file ROL_SROMGenerator.hpp.

template<class Real >
Teuchos::RCP<EqualityConstraint<Real> > ROL::SROMGenerator< Real >::con_
private

Definition at line 69 of file ROL_SROMGenerator.hpp.

template<class Real >
Teuchos::RCP<Algorithm<Real> > ROL::SROMGenerator< Real >::algo_
private

Definition at line 71 of file ROL_SROMGenerator.hpp.

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

Definition at line 73 of file ROL_SROMGenerator.hpp.

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

Definition at line 75 of file ROL_SROMGenerator.hpp.

template<class Real >
size_t ROL::SROMGenerator< Real >::nSamp_
private

Definition at line 76 of file ROL_SROMGenerator.hpp.

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

template<class Real >
const size_t ROL::SROMGenerator< Real >::numNewSamps_
private

Definition at line 77 of file ROL_SROMGenerator.hpp.

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

Definition at line 78 of file ROL_SROMGenerator.hpp.


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