Gecode::PBS< T, E > Class Template Reference
[Search engines]
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. | |
PBS (T *s, SEB seb0, SEB seb1, const Search::Options &o=Search::Options::def) | |
Initialize with engine builders seb0 and seb1. | |
PBS (T *s, SEB seb0, SEB seb1, SEB seb2, const Search::Options &o=Search::Options::def) | |
Initialize with engine builders seb0, seb1, and seb2. | |
PBS (T *s, SEB seb0, SEB seb1, SEB seb2, SEB seb3, const Search::Options &o=Search::Options::def) | |
Initialize with engine builders seb0, seb1, seb2, and seb3. | |
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. |
Detailed Description
template<class T, template< class > class E = DFS>
class Gecode::PBS< T, E >
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
virtual bool master(const MetaInfo& mi)
and
virtual bool slave(const MetaInfo& mi)
When the assets are created, these functions are executed. For more details, consult "Modeling and Programming with Gecode".
Definition at line 1236 of file search.hh.
Constructor & Destructor Documentation
template<class T , template< class > class E>
Gecode::PBS< T, E >::PBS | ( | T * | s, | |
const Search::Options & | o = Search::Options::def | |||
) | [inline] |
template<class T , template< class > class E>
Gecode::PBS< T, E >::PBS | ( | T * | s, | |
SEBs & | sebs, | |||
const Search::Options & | o = Search::Options::def | |||
) | [inline] |
template<class T , template< class > class E>
Gecode::PBS< T, E >::PBS | ( | T * | s, | |
SEB | seb0, | |||
SEB | seb1, | |||
const Search::Options & | o = Search::Options::def | |||
) | [inline] |
template<class T , template< class > class E>
Gecode::PBS< T, E >::PBS | ( | T * | s, | |
SEB | seb0, | |||
SEB | seb1, | |||
SEB | seb2, | |||
const Search::Options & | o = Search::Options::def | |||
) | [inline] |
template<class T , template< class > class E>
Gecode::PBS< T, E >::PBS | ( | T * | s, | |
SEB | seb0, | |||
SEB | seb1, | |||
SEB | seb2, | |||
SEB | seb3, | |||
const Search::Options & | o = Search::Options::def | |||
) | [inline] |
Member Function Documentation
template<class T , template< class > class E>
void Gecode::PBS< T, E >::build | ( | T * | s, | |
SEBs & | sebs, | |||
const Search::Options & | o | |||
) | [inline, protected] |
Member Data Documentation
template<class T, template< class > class E = DFS>
const bool Gecode::PBS< T, E >::best = E<T>::best [static] |
The documentation for this class was generated from the following files: