Meta engine using a portfolio of search engines. More...
#include <search.hh>
Public Member Functions | |
PBS (T *s, const Search::Options &o=Search::Options::def) | |
Initialize with engines running copies of s with options o. | |
PBS (T *s, SEBs &sebs, const Search::Options &o=Search::Options::def) | |
Initialize with engine builders sebs. | |
![]() | |
virtual T * | next (void) |
Return next solution (NULL, 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 | ~Base (void) |
Destructor. | |
Static Public Attributes | |
static const bool | best = E<T>::best |
Whether engine does best solution search. | |
Protected Member Functions | |
void | build (T *s, SEBs &sebs, const Search::Options &o) |
The actual build function. | |
![]() | |
Base (Engine *e=NULL) | |
Constructor. | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t s) |
Memory management. | |
static void | operator delete (void *p) |
Free memory allocated from heap. | |
![]() | |
Engine * | e |
The actual search engine. | |
Meta engine using a portfolio of search engines.
The engine will run a portfolio with a number of assets as defined by the options o. The engine supports parallel execution of assets by using the number of threads as defined by the options.
The class T can implement member functions
and
When the assets are created, these functions are executed. For more details, consult "Modeling and Programming with Gecode".
Gecode::PBS< T, E >::PBS | ( | T * | s, |
const Search::Options & | o = Search::Options::def ) |
|
inline |
|
protected |
|
static |