pbs.hh
Go to the documentation of this file.
92 } completion;
bool add(Space *s, Slave< CollectAll > *r)
Add a solution a reported by r and always return true.
Definition pbs.hpp:68
bool add(Space *s, Slave< CollectBest > *r)
Add a solution s by r and return whether is was better.
Definition pbs.hpp:96
Space * get(Slave< CollectBest > *&r)
Return solution reported by r (only if a better one was found).
Definition pbs.hpp:129
Slave< CollectBest > * reporter
Who has reported the best solution (nullptr if solution has already been reported).
Definition pbs.hh:150
bool report(Slave< Collect > *slave, Space *s)
Process report from slave, return false if solution was ignored.
Definition pbs.hpp:220
virtual void constrain(const Space &b)
Constrain future solutions to be better than b.
Definition pbs.hpp:342
virtual Space * next(void)
Return next solution (nullptr, if none exists or search has been stopped).
Definition pbs.hpp:273
void wake(void)
Wake workers so that a paused asset can observe the portfolio stop.
Definition pbs.cpp:51
virtual bool stop(const Statistics &s, const Options &o)
Return true if portfolio engine must be stopped.
Definition pbs.cpp:44
PortfolioStop(Stop *so, Stop *po, const WorkerControl &control)
Initialize with slave stop so, portfolio stop po, and control.
Definition pbs.hpp:142
virtual Support::Terminator * terminator(void) const
Return the completion terminator.
Definition pbs.hpp:177
Slave(PBS< Collect > *m, Engine *s, Stop *so)
Initialize with master m, slave s, and its stop object so.
Definition pbs.hpp:154
External control for the requested number of search workers.
Definition search.hh:773
Queue with arbitrary number of elements.
Definition dynamic-queue.hpp:42
An interface for objects that can be run by a thread.
Definition thread.hpp:181
An interface for objects that can be called after a thread has terminated (after running the thread's...
Definition thread.hpp:168
Definition astar.cpp:43
Search engines
Gecode toplevel namespace
