Generated on Fri Oct 19 11:25:54 2018 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.
 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]

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.

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]

Initialize with engine builders seb0 and seb1.

Definition at line 308 of file pbs.hpp.

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]

Initialize with engine builders seb0, seb1, and seb2.

Definition at line 315 of file pbs.hpp.

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]

Initialize with engine builders seb0, seb1, seb2, and seb3.

Definition at line 322 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 1256 of file search.hh.


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