44 #ifndef ROL_STATUSTEST_H
45 #define ROL_STATUSTEST_H
69 StatusTest( Real gtol = 1.e-6, Real stol = 1.e-12,
int max_iter = 100 ) :
75 if ( (state.
gnorm > this->gtol_) &&
76 (state.
snorm > this->stol_) &&
77 (state.
iter < this->max_iter_) ) {
101 StatusTestSQP( Real gtol = 1e-6, Real ctol = 1e-6, Real stol = 1e-12,
int max_iter = 100 ) :
107 if ( ((state.
gnorm > this->gtol_) || (state.
cnorm > this->ctol_)) &&
108 (state.
snorm > this->stol_) &&
109 (state.
iter < this->max_iter_) ) {
virtual bool check(AlgorithmState< Real > &state)
Check algorithm status.
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.
Provides an interface to check status of optimization algorithms.
StatusTestSQP(Real gtol=1e-6, Real ctol=1e-6, Real stol=1e-12, int max_iter=100)