MCPcopy Create free account
hub / github.com/Gecode/gecode / stop

Method stop

examples/job-shop.cpp:587–589  ·  view source on GitHub ↗

Test whether search must be stopped

Source from the content-addressed store, hash-verified

585 ts(new Search::TimeStop(time)) {}
586 /// Test whether search must be stopped
587 virtual bool stop(const Search::Statistics& s, const Search::Options& o) {
588 return fs->stop(s,o) || ts->stop(s,o);
589 }
590 /// Whether the stop was due to failures
591 bool fail(const Search::Statistics& s, const Search::Options& o) const {
592 return fs->stop(s,o);

Callers 2

failMethod · 0.45
timeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected