10 #ifndef ROL_STOCHASTICPROBLEM_HPP
11 #define ROL_STOCHASTICPROBLEM_HPP
13 #include "ROL_Problem.hpp"
32 template<
typename Real>
45 std::unordered_map<std::string,std::pair<Ptr<ParameterList>,
bool>>
conList_;
46 std::unordered_map<std::string,size_t>
statMap_;
103 void finalize(
bool lumpConstraints =
false,
bool printToStream =
false,
104 std::ostream &outStream = std::cout)
override;
106 void edit(
void)
override;
114 #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)
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_