10 #ifndef ROL_RANDVARFUNCTIONALFACTORY_HPP
11 #define ROL_RANDVARFUNCTIONALFACTORY_HPP
23 std::string type = parlist.sublist(
"SOL").get(
"Type",
"Risk Averse");
24 if (type ==
"Risk Averse") {
25 return RiskMeasureFactory<Real>(parlist);
27 else if (type ==
"Deviation") {
28 return DeviationMeasureFactory<Real>(parlist);
30 else if (type ==
"Error") {
31 return ErrorMeasureFactory<Real>(parlist);
33 else if (type ==
"Regret") {
34 return RegretMeasureFactory<Real>(parlist);
36 else if (type ==
"Probability") {
37 return ProbabilityFactory<Real>(parlist);
40 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
41 ">>> (ROL::RandVarFunctionalFactory): Invalid random variable functional type!");
Ptr< RandVarFunctional< Real > > RandVarFunctionalFactory(ROL::ParameterList &parlist)