44#ifndef ROL_BUNDLESTATUSTEST_H
45#define ROL_BUNDLESTATUSTEST_H
53class BundleStatusTest :
public StatusTest<Real> {
61 virtual ~BundleStatusTest() {}
63 BundleStatusTest( ROL::ParameterList &parlist ) {
65 tol_ = parlist.sublist(
"Step").sublist(
"Bundle").get(
"Epsilon Solution Tolerance", em6);
66 max_iter_ = parlist.sublist(
"Status Test").get(
"Iteration Limit", 100);
69 BundleStatusTest( Real tol = 1.e-6,
int max_iter = 100 ) :
74 virtual bool check( AlgorithmState<Real> &state ) {
76 if ( (std::max(state.aggregateGradientNorm,state.aggregateModelError) >
tol_)
78 && (state.flag ==
false) ) {
Contains definitions of custom data types in ROL.
Provides an interface to check status of optimization algorithms.