Gecode::Search::FailStop Class Reference
[Stop-objects for stopping search]
#include <search.hh>
Inherits Gecode::Search::Stop.
Detailed Description
Stop-object based on number of failuresThe number of failures reported (by the statistics) is the number since the engine started exploration. It is not the number since the last stop!
Definition at line 150 of file search.hh.
Public Member Functions | |
FailStop (unsigned long int l) | |
Stop if failure limit l is exceeded. | |
unsigned long int | limit (void) const |
Return current limit. | |
void | limit (unsigned long int l) |
Set current limit to l failures. | |
virtual bool | stop (const Statistics &s) |
Return true if failure limit is exceeded. | |
Protected Attributes | |
unsigned long int | l |
Failure limit. |
Constructor & Destructor Documentation
|
Stop if failure limit l is exceeded.
|
Member Function Documentation
|
Return current limit.
|
|
Set current limit to l failures.
|
|
Return true if failure limit is exceeded.
Implements Gecode::Search::Stop. |
Member Data Documentation
|
Failure limit.
|
The documentation for this class was generated from the following files:
- gecode/search.hh (Revision: 3516)
- gecode/search/stop.cc (Revision: 3511)
- gecode/search/stop.icc (Revision: 3511)