44 #ifndef ROL_STATUSTEST_H 45 #define ROL_STATUSTEST_H 71 gtol_ = parlist.sublist(
"Status Test").get(
"Gradient Tolerance", em6);
72 stol_ = parlist.sublist(
"Status Test").get(
"Step Tolerance", em6*gtol_);
73 max_iter_ = parlist.sublist(
"Status Test").get(
"Iteration Limit", 100);
76 StatusTest( Real gtol = 1.e-6, Real stol = 1.e-12,
int max_iter = 100 ) :
77 gtol_(gtol), stol_(stol), max_iter_(max_iter) {}
82 if ( (state.
gnorm > gtol_) &&
83 (state.
snorm > stol_) &&
84 (state.
iter < max_iter_) ) {
Contains definitions of custom data types in ROL.
virtual bool check(AlgorithmState< Real > &state)
Check algorithm status.
StatusTest(Real gtol=1.e-6, Real stol=1.e-12, int max_iter=100)
State for algorithm class. Will be used for restarts.
StatusTest(Teuchos::ParameterList &parlist)
Provides an interface to check status of optimization algorithms.