15#ifndef ROL_TRUSTREGIONTYPES_HPP
16#define ROL_TRUSTREGIONTYPES_HPP
40 std::string retString;
48 default: retString =
"INVALID ETrustRegion";
111 std::string retString;
117 default: retString =
"INVALID ETrustRegionModel";
172 default:
return false;
182 default:
return false;
210 std::string retString;
213 retString =
"Both actual and predicted reductions are positive (success)";
216 retString =
"Actual reduction is positive and predicted reduction is negative (impossible)";
219 retString =
"Actual reduction is nonpositive and predicted reduction is positive";
222 retString =
"Actual reduction is nonpositive and predicted reduction is negative (impossible)";
225 retString =
"Sufficient decrease of the quadratic model not met (bound constraints only)";
228 retString =
"Actual and/or predicted reduction is a NaN";
231 retString =
"INVALID ETrustRegionFlag";
Contains definitions of custom data types in ROL.
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.