54 if ((m_stop !=
nullptr) && m_stop->stop(m_stat+s,o)) {
70 bool r =
master->master(mi);
73 stop->update(
e->statistics());
79 stop->update(
e->statistics());
96 }
else if ( (!
complete && !
e->stopped()) ||
97 (
e->stopped() &&
stop->enginestopped()) ) {
106 (void)
master->master(mi);
108 unsigned long long int nl = ++(*co);
109 stop->limit(
e->statistics(),nl);
126 return stop->metastatistics()+
e->statistics();
132 throw NoBest(
"RBS::constrain");
133 if (
last !=
nullptr) {
No-goods recorded from restarts.
unsigned long int ng(void) const
Return number of no-goods posted.
Exception: Best solution search is not supported
RestartStop * stop
The stop control object.
virtual Space * next(void)
Return next solution (nullptr, if none exists or search has been stopped).
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.
virtual bool stopped(void) const
Check whether engine has been stopped.
virtual void constrain(const Space &b)
Constrain future solutions to be better than b.
Space * last
The last solution space (possibly nullptr).
unsigned long int sslr
How many solutions since the last restart.
Cutoff * co
The cutoff object.
virtual ~RBS(void)
Destructor.
virtual Statistics statistics(void) const
Return statistics.
virtual bool stop(const Statistics &s, const Options &o)
Return true if meta engine must be stopped.
unsigned long long int fail
Number of failed nodes in search tree.
A lock as a scoped frontend for a mutex.
virtual bool slave(const MetaInfo &mi)
Slave configuration function for meta search engines.
Space * clone(void) const
Clone space.
@ SS_FAILED
Space is failed
Gecode toplevel namespace
#define GECODE_NEVER
Assert that this command is never executed.