Go to the documentation of this file.
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";
ETrustRegion
Enumeration of trust-region solver types.
@ TRUSTREGION_CAUCHYPOINT
std::string ETrustRegionFlagToString(ETrustRegionFlag trf)
ETrustRegionModel StringToETrustRegionModel(std::string s)
std::string removeStringFormat(std::string s)
bool isValidTrustRegionSubproblem(ETrustRegion etr, ETrustRegionModel etrm, bool isBnd)
std::string ETrustRegionModelToString(ETrustRegionModel tr)
@ TRUSTREGION_FLAG_QMINSUFDEC
@ TRUSTREGION_TRUNCATEDCG
@ TRUSTREGION_DOUBLEDOGLEG
int isValidTrustRegion(ETrustRegion ls)
Verifies validity of a TrustRegion enum.
ETrustRegion & operator++(ETrustRegion &type)
ETrustRegion & operator--(ETrustRegion &type)
@ TRUSTREGION_MODEL_KELLEYSACHS
std::string ETrustRegionToString(ETrustRegion tr)
@ TRUSTREGION_FLAG_NPOSPREDPOS
@ TRUSTREGION_FLAG_SUCCESS
int isValidTrustRegionModel(ETrustRegionModel ls)
Verifies validity of a TrustRegionModel enum.
ETrustRegionFlag
Enumation of flags used by trust-region solvers.
ETrustRegionModel
Enumeration of trust-region model types.
@ TRUSTREGION_FLAG_NPOSPREDNEG
ETrustRegion StringToETrustRegion(std::string s)
@ TRUSTREGION_MODEL_LINMORE
@ TRUSTREGION_FLAG_POSPREDNEG
@ TRUSTREGION_FLAG_UNDEFINED
@ TRUSTREGION_MODEL_COLEMANLI