43 : l(0U), m_stop(s), e_stopped(false) {}
48 return m_stat.restart;
99 bool best0,
bool complete0)
104 stop->limit(stat,(*
co)());
Engine(void)
Construct a meta engine without worker control.
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.
RBS(Space *s, RestartStop *stop0, Engine *e0, const Search::Statistics &stat, const Options &o, bool best, bool complete)
Constructor.
Engine * e
The actual engine.
Space * last
The last solution space (possibly nullptr).
Options m_opt
The options for the stop object of the meta engine.
unsigned long int sslr
How many solutions since the last restart.
bool m_stopped
Whether the stop object for the meta engine stopped a restart.
Cutoff * co
The cutoff object.
bool nogoods_valid
Whether the no-goods of the current slave search hold in the master.
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