Generated on for Gecode by doxygen 1.17.0
Test::Search::FailureLimit Class Reference

Stop after a number of failures, or after many checks as a safeguard. More...

Public Member Functions

 FailureLimit (unsigned long long int l)
bool stop (const Gecode::Search::Statistics &s, const Gecode::Search::Options &) override
 Stop search, if returns true.
 Stop (void)
 Default constructor.
virtual ~Stop (void)
 Destructor.

Public Attributes

unsigned long long int limit
 Failure limit.
std::atomic< unsigned long int > checks {0}
 Number of checks, parallel engines can check concurrently.

Additional Inherited Members

static Stop * node (unsigned long long int l)
 Stop if node limit l has been exceeded.
static Stop * fail (unsigned long long int l)
 Stop if failure limit l has been exceeded.
static Stop * time (double l)
 Stop if time limit l (in milliseconds) has been exceeded.
static Stop * restart (unsigned long long int l)
 Stop if restart limit l has been exceeded.
Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management.
static void operator delete (void *p)
 Free memory allocated from heap.

Detailed Description

Stop after a number of failures, or after many checks as a safeguard.

Definition at line 1541 of file search.cpp.

Constructor & Destructor Documentation

◆ FailureLimit()

Test::Search::FailureLimit::FailureLimit ( unsigned long long int l)
inline

Definition at line 1547 of file search.cpp.

Member Function Documentation

◆ stop()

bool Test::Search::FailureLimit::stop ( const Gecode::Search::Statistics & s,
const Gecode::Search::Options & o )
inlineoverridevirtual

Stop search, if returns true.

Implements Gecode::Search::Stop.

Definition at line 1548 of file search.cpp.

Member Data Documentation

◆ limit

unsigned long long int Test::Search::FailureLimit::limit

Failure limit.

Definition at line 1544 of file search.cpp.

◆ checks

std::atomic<unsigned long int> Test::Search::FailureLimit::checks {0}

Number of checks, parallel engines can check concurrently.

Definition at line 1546 of file search.cpp.


The documentation for this class was generated from the following file: