44 #ifndef ROL_CONSTRAINTSTATUSTEST_H 45 #define ROL_CONSTRAINTSTATUSTEST_H 71 gtol_ = parlist.sublist(
"Status Test").get(
"Gradient Tolerance", 1.e-6);
72 ctol_ = parlist.sublist(
"Status Test").get(
"Constraint Tolerance", 1.e-6);
73 stol_ = parlist.sublist(
"Status Test").get(
"Step Tolerance", 1.e-6*gtol_);
74 max_iter_ = parlist.sublist(
"Status Test").get(
"Iteration Limit", 100);
78 gtol_(gtol), ctol_(ctol), stol_(stol), max_iter_(max_iter) {}
83 if ( ((state.
gnorm > gtol_) || (state.
cnorm > ctol_)) &&
84 (state.
snorm > stol_) &&
85 (state.
iter < max_iter_) ) {
virtual ~ConstraintStatusTest()
ConstraintStatusTest(Teuchos::ParameterList &parlist)
Provides an interface to check status of optimization algorithms for problems with equality constrain...
State for algorithm class. Will be used for restarts.
ConstraintStatusTest(Real gtol=1e-6, Real ctol=1e-6, Real stol=1e-12, int max_iter=100)
Provides an interface to check status of optimization algorithms.
virtual bool check(AlgorithmState< Real > &state)
Check algorithm status.