10 #ifndef ROL_STOCHASTICPROBLEM_HPP
11 #define ROL_STOCHASTICPROBLEM_HPP
13 #include "ROL_Problem.hpp"
32 template<
typename Real>
46 std::unordered_map<std::string,std::pair<Ptr<ParameterList>,
bool>>
conList_;
47 std::unordered_map<std::string,size_t>
statMap_;
105 void finalize(
bool lumpConstraints =
false,
bool printToStream =
false,
106 std::ostream &outStream = std::cout)
override;
108 void edit(
void)
override;
116 #endif // ROL_STOCHASTICPROBLEM_HPP
Provides the interface to evaluate objective functions.
void makeConstraintStochastic(std::string name, ParameterList &list, const Ptr< SampleGenerator< Real >> &sampler, const Ptr< BatchManager< Real >> &bman=nullPtr)
Ptr< Objective< Real > > ORIGINAL_nobj_
void resetStochasticLinearConstraint(std::string name)
std::unordered_map< std::string, size_t > statMap_
Ptr< Vector< Real > > ORIGINAL_xdual_
std::vector< Real > getConstraintStatistic(std::string name) const
Ptr< Objective< Real > > ORIGINAL_obj_
std::unordered_map< std::string, ConstraintData< Real > > ORIGINAL_linear_con_
StochasticProblem(const Ptr< Objective< Real >> &obj, const Ptr< Vector< Real >> &x, const Ptr< Vector< Real >> &g=nullPtr)
Default constructor for StochasticProblem.
Real getSolutionStatistic(int comp=0, std::string name="") const
Defines the linear algebra or vector space interface.
std::vector< bool > needRiskLessCon_
std::unordered_map< std::string, std::pair< Ptr< ParameterList >, bool > > conList_
std::unordered_map< std::string, ConstraintData< Real > > ORIGINAL_con_
Ptr< BoundConstraint< Real > > ORIGINAL_bnd_
std::vector< Real > getObjectiveStatistic(void) const
void resetStochasticObjective(void)
StochasticProblem(const Problem< Real > &problem)
Ptr< ParameterList > objList_
void resetStochasticConstraint(std::string name)
Provides the interface to implement any functional that maps a random variable to a (extended) real n...
void edit(void) override
Resume editting optimization problem after finalize has been called.
void makeObjectiveStochastic(ParameterList &list, const Ptr< SampleGenerator< Real >> &fsampler, const Ptr< SampleGenerator< Real >> &gsampler=nullPtr, const Ptr< SampleGenerator< Real >> &hsampler=nullPtr)
void makeLinearConstraintStochastic(std::string name, ParameterList &list, const Ptr< SampleGenerator< Real >> &sampler, const Ptr< BatchManager< Real >> &bman=nullPtr)
void resetStochastic(void)
void finalize(bool lumpConstraints=false, bool printToStream=false, std::ostream &outStream=std::cout) override
Tranform user-supplied constraints to consist of only bounds and equalities. Optimization problem can...
Ptr< Vector< Real > > ORIGINAL_xprim_