44 #ifndef ROL_PROBABILITYFACTORY_HPP
45 #define ROL_PROBABILITYFACTORY_HPP
47 #include "ROL_ParameterList.hpp"
62 std::string retString;
65 retString =
"bPOE";
break;
67 retString =
"Smoothed POE";
break;
69 retString =
"Last Type (Dummy)";
break;
71 retString =
"INVALID EProbability";
break;
113 std::string prob = parlist.sublist(
"SOL").sublist(
"Probability").get(
"Name",
"bPOE");
117 return makePtr<BPOE<Real>>(parlist);
119 return makePtr<SmoothedPOE<Real>>(parlist);
121 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
122 "Invalid probability type " << prob <<
"!");
Ptr< RandVarFunctional< Real > > ProbabilityFactory(ROL::ParameterList &parlist)
std::string EProbabilityToString(EProbability ed)
Contains definitions of custom data types in ROL.
std::string removeStringFormat(std::string s)
EProbability StringToEProbability(std::string s)
ETrustRegion & operator--(ETrustRegion &type)
int isValidProbability(EProbability ed)
ETrustRegion & operator++(ETrustRegion &type)