44 #ifndef ROL_STATUSTEST_H 45 #define ROL_STATUSTEST_H 70 gtol_ = parlist.sublist(
"Status Test").get(
"Gradient Tolerance", 1.e-6);
71 stol_ = parlist.sublist(
"Status Test").get(
"Step Tolerance", 1.e-6*gtol_);
72 max_iter_ = parlist.sublist(
"Status Test").get(
"Iteration Limit", 100);
75 StatusTest( Real gtol = 1.e-6, Real stol = 1.e-12,
int max_iter = 100 ) :
76 gtol_(gtol), stol_(stol), max_iter_(max_iter) {}
81 if ( (state.
gnorm > gtol_) &&
82 (state.
snorm > stol_) &&
83 (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.