10 #ifndef ROL_COMBINEDSTATUSTEST_H
11 #define ROL_COMBINEDSTATUSTEST_H
22 template<
typename Real>
25 std::vector<Ptr<StatusTest<Real>>>
status_;
41 ROL_TEST_FOR_EXCEPTION(
status_.empty(),std::logic_error,
42 ">>> ROL::CombinedStatusTest::check : No status test has been added!");
45 for (
const auto & status :
status_) {
46 flag = status->check(state);
State for algorithm class. Will be used for restarts.
Provides an interface to check status of optimization algorithms.
std::vector< Ptr< StatusTest< Real > > > status_
void add(const Ptr< StatusTest< Real >> &status)
Provides an interface to check two status tests of optimization algorithms.
bool check(AlgorithmState< Real > &state)
Check algorithm status.