43 : l(0U), m_stop(s), e_stopped(false) {}
45 forceinline
unsigned long int
48 return m_stat.restart;
103 stop->limit(stat,(*
co)());
Search engine implementation interface
unsigned long long int limit(void) const
Return current limit.
RestartStop * stop
The stop control object.
bool best
Whether the engine performs best solution search.
Space * master
The master space to restart from.
bool restart
Whether a restart must be performed when next is called.
bool complete
Whether search for the next solution will be complete.
Engine * e
The actual engine.
Space * last
The last solution space (possibly nullptr).
unsigned long int sslr
How many solutions since the last restart.
RBS(Space *s, RestartStop *stop0, Engine *e0, const Search::Statistics &stat, const Options &o, bool best)
Constructor.
Cutoff * co
The cutoff object.
Stop-object for restart engine
unsigned long int restarts(void) const
Return current restart count.
Statistics metastatistics(void) const
Return statistics for the meta engine.
void nogood(unsigned long int n)
Add no-goods to meta statistics.
void restart(void)
Increment current restart count.
RestartStop(Stop *s)
Stop the meta engine if indicated by the stop object s.
SpaceStatus status(Space *s)
Test master status with meta statistics.
void update(const Search::Statistics &s)
Update statistics.
bool enginestopped(void) const
Return whether the engine has been stopped.
Stop(void)
Default constructor.
A lock as a scoped frontend for a mutex.
SpaceStatus status(StatusStatistics &stat)
Query space status.
Gecode toplevel namespace