49#ifndef ROL_TRUSTREGIONTYPES_HPP
50#define ROL_TRUSTREGIONTYPES_HPP
72 std::string retString;
80 default: retString =
"INVALID ETrustRegion";
143 std::string retString;
149 default: retString =
"INVALID ETrustRegionModel";
204 default:
return false;
214 default:
return false;
242 std::string retString;
245 retString =
"Both actual and predicted reductions are positive (success)";
248 retString =
"Actual reduction is positive and predicted reduction is negative (impossible)";
251 retString =
"Actual reduction is nonpositive and predicted reduction is positive";
254 retString =
"Actual reduction is nonpositive and predicted reduction is negative (impossible)";
257 retString =
"Sufficient decrease of the quadratic model not met (bound constraints only)";
260 retString =
"Actual and/or predicted reduction is a NaN";
263 retString =
"INVALID ETrustRegionFlag";
ETrustRegionModel StringToETrustRegionModel(std::string s)
std::string removeStringFormat(std::string s)
int isValidTrustRegion(ETrustRegion ls)
Verifies validity of a TrustRegion enum.
ETrustRegion StringToETrustRegion(std::string s)
bool isValidTrustRegionSubproblem(ETrustRegion etr, ETrustRegionModel etrm, bool isBnd)
EPolyProjAlgo & operator--(EPolyProjAlgo &type)
std::string ETrustRegionModelToString(ETrustRegionModel tr)
@ TRUSTREGION_FLAG_POSPREDNEG
@ TRUSTREGION_FLAG_NPOSPREDNEG
@ TRUSTREGION_FLAG_UNDEFINED
@ TRUSTREGION_FLAG_QMINSUFDEC
@ TRUSTREGION_FLAG_NPOSPREDPOS
@ TRUSTREGION_FLAG_SUCCESS
EPolyProjAlgo & operator++(EPolyProjAlgo &type)
std::string ETrustRegionFlagToString(ETrustRegionFlag trf)
std::string ETrustRegionToString(ETrustRegion tr)
@ TRUSTREGION_MODEL_COLEMANLI
@ TRUSTREGION_MODEL_KELLEYSACHS
@ TRUSTREGION_MODEL_LINMORE
@ TRUSTREGION_DOUBLEDOGLEG
@ TRUSTREGION_CAUCHYPOINT
@ TRUSTREGION_TRUNCATEDCG
int isValidTrustRegionModel(ETrustRegionModel ls)
Verifies validity of a TrustRegionModel enum.