Generated on Mon Jun 29 2015 17:25:32 for Gecode by doxygen 1.8.5
Gecode::Search::FailStop Class Reference

Stop-object based on number of failures More...

#include <search.hh>

Public Member Functions

 FailStop (unsigned long int l)
 Stop if failure limit l is exceeded. More...
 
unsigned long int limit (void) const
 Return current limit. More...
 
void limit (unsigned long int l)
 Set current limit to l failures. More...
 
virtual bool stop (const Statistics &s, const Options &o)
 Return true if failure limit is exceeded. More...
 
- Public Member Functions inherited from Gecode::Search::Stop
 Stop (void)
 Default constructor. More...
 
virtual ~Stop (void)
 Destructor. More...
 

Protected Attributes

unsigned long int l
 Failure limit. More...
 

Detailed Description

Stop-object based on number of failures

The 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 554 of file search.hh.

Constructor & Destructor Documentation

Gecode::Search::FailStop::FailStop ( unsigned long int  l)
inline

Stop if failure limit l is exceeded.

Definition at line 85 of file stop.hpp.

Member Function Documentation

unsigned long int Gecode::Search::FailStop::limit ( void  ) const
inline

Return current limit.

Definition at line 88 of file stop.hpp.

void Gecode::Search::FailStop::limit ( unsigned long int  l)
inline

Set current limit to l failures.

Definition at line 93 of file stop.hpp.

bool Gecode::Search::FailStop::stop ( const Statistics s,
const Options o 
)
virtual

Return true if failure limit is exceeded.

Implements Gecode::Search::Stop.

Definition at line 75 of file stop.cpp.

Member Data Documentation

unsigned long int Gecode::Search::FailStop::l
protected

Failure limit.

Definition at line 557 of file search.hh.


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