Gecode::Search::Seq::PBS< best > Class Template Reference
Sequential portfolio engine implementation. More...
#include <gecode/search/seq/pbs.hh>
Public Member Functions | |
| PBS (Engine **slaves, Stop **stops, unsigned int n, const Statistics &stat, const Search::Options &opt) | |
| Initialize. | |
| virtual Space * | next (void) |
| Return next solution (nullptr, if none exists or search has been stopped). | |
| virtual Statistics | statistics (void) const |
| Return statistics. | |
| 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. | |
| virtual | ~PBS (void) |
| Destructor. | |
| Public Member Functions inherited from Gecode::Search::Engine | |
| virtual bool | limited (void) const |
| Whether the engine stopped at a local limit (such as a CABS width limit) and cannot continue. | |
| virtual void | reset (Space *s) |
| Reset engine to restart at space s (does nothing). | |
| virtual NoGoods & | nogoods (void) |
| Return no-goods (the no-goods are empty). | |
| virtual | ~Engine (void) |
| Destructor. | |
Protected Attributes | |
| Statistics | stat |
| Master statistics. | |
| SharedStopInfo | ssi |
| Shared slave information. | |
| unsigned int | slice |
| Size of a slice. | |
| Slave * | slaves |
| Slaves. | |
| unsigned int | n_slaves |
| Number of slave engines. | |
| unsigned int | cur |
| Current slave to run. | |
| bool | slave_stop |
| Whether a slave has been stopped. | |
| bool | incomplete |
| Whether a slave stopped at a local limit. | |
| Protected Attributes inherited from Gecode::Search::Engine | |
| WorkerControl | worker_control |
| Control retained for the lifetime of a leaf engine. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Gecode::HeapAllocated | |
| static void * | operator new (size_t s) |
| Memory management. | |
| static void | operator delete (void *p) |
| Free memory allocated from heap. | |
| Protected Member Functions inherited from Gecode::Search::Engine | |
| Engine (void) | |
| Construct a meta engine without worker control. | |
| Engine (const Options &o, unsigned int capacity) | |
| Construct a leaf engine and bind worker control to capacity. | |
Detailed Description
template<bool best>
class Gecode::Search::Seq::PBS< best >
class Gecode::Search::Seq::PBS< best >
Sequential portfolio engine implementation.
Constructor & Destructor Documentation
◆ PBS()
template<bool best>
|
inline |
◆ ~PBS()
template<bool best>
|
virtual |
Member Function Documentation
◆ next()
template<bool best>
|
virtual |
Return next solution (nullptr, if none exists or search has been stopped).
Implements Gecode::Search::Engine.
◆ statistics()
template<bool best>
|
virtual |
◆ stopped()
template<bool best>
|
virtual |
Check whether engine has been stopped.
Implements Gecode::Search::Engine.
◆ constrain()
template<bool best>
|
virtual |
Constrain future solutions to be better than b.
Reimplemented from Gecode::Search::Engine.
Member Data Documentation
◆ stat
template<bool best>
|
protected |
◆ ssi
template<bool best>
|
protected |
◆ slice
template<bool best>
|
protected |
◆ slaves
template<bool best>
|
protected |
◆ n_slaves
template<bool best>
|
protected |
◆ cur
template<bool best>
|
protected |
◆ slave_stop
template<bool best>
|
protected |
◆ incomplete
template<bool best>
|
protected |
The documentation for this class was generated from the following files:
