10 #ifndef ROL_STATUSTEST_H
11 #define ROL_STATUSTEST_H
14 #include "ROL_ParameterList.hpp"
38 gtol_ = parlist.sublist(
"Status Test").get(
"Gradient Tolerance", em6);
39 stol_ = parlist.sublist(
"Status Test").get(
"Step Tolerance", em6*
gtol_);
40 max_iter_ = parlist.sublist(
"Status Test").get(
"Iteration Limit", 100);
41 use_rel_ = parlist.sublist(
"Status Test").get(
"Use Relative Tolerances",
false);
44 StatusTest( Real gtol = 1.e-6, Real stol = 1.e-12,
int max_iter = 100,
bool use_rel =
false ) :
StatusTest(ROL::ParameterList &parlist)
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, bool use_rel=false)
State for algorithm class. Will be used for restarts.
Provides an interface to check status of optimization algorithms.