Generated on Thu Apr 11 13:59:49 2019 for Gecode by doxygen 1.6.3

Gecode::PBS< T, E > Class Template Reference
[Search engines]

Meta engine using a portfolio of search engines. More...

#include <search.hh>

List of all members.

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.

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]

Initialize with engines running copies of s with options o.

Definition at line 221 of file pbs.hpp.

template<class T , template< class > class E>
Gecode::PBS< T, E >::PBS ( T *  s,
SEBs sebs,
const Search::Options o = Search::Options::def 
) [inline]

Initialize with engine builders sebs.

Definition at line 303 of file pbs.hpp.


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]

The actual build function.

Definition at line 262 of file pbs.hpp.


Member Data Documentation

template<class T, template< class > class E = DFS>
const bool Gecode::PBS< T, E >::best = E<T>::best [static]

Whether engine does best solution search.

Definition at line 1247 of file search.hh.


The documentation for this class was generated from the following files: