44 #ifndef ROL_RANDVARFUNCTIONALFACTORY_HPP
45 #define ROL_RANDVARFUNCTIONALFACTORY_HPP
57 std::string type = parlist.sublist(
"SOL").get(
"Stochastic Component Type",
"Risk Averse");
58 if (type ==
"Risk Averse") {
59 return RiskMeasureFactory<Real>(parlist);
61 else if (type ==
"Deviation") {
62 return DeviationMeasureFactory<Real>(parlist);
64 else if (type ==
"Error") {
65 return ErrorMeasureFactory<Real>(parlist);
67 else if (type ==
"Regret") {
68 return RegretMeasureFactory<Real>(parlist);
70 else if (type ==
"Probability") {
71 return ProbabilityFactory<Real>(parlist);
74 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
75 ">>> (ROL::RandVarFunctionalFactory): Invalid random variable functional type!");
Ptr< RandVarFunctional< Real > > RandVarFunctionalFactory(ROL::ParameterList &parlist)