Generated on Wed Feb 7 10:29:33 2018 for Gecode by doxygen 1.6.3

Gecode::Search::Seq::PBS< best > Class Template Reference

Sequential portfolio engine implementation. More...

#include <pbs.hh>

List of all members.

Public Member Functions

 PBS (Engine **slaves, Stop **stops, unsigned int n, const Statistics &stat, const Search::Options &opt)
 Initialize.
virtual Spacenext (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 void constrain (const Space &b)
 Constrain future solutions to be better than b.
virtual ~PBS (void)
 Destructor.

Protected Attributes

Statistics stat
 Master statistics.
SharedStopInfo ssi
 Shared slave information.
unsigned int slice
 Size of a slice.
Slaveslaves
 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.

Detailed Description

template<bool best>
class Gecode::Search::Seq::PBS< best >

Sequential portfolio engine implementation.

Definition at line 96 of file pbs.hh.


Constructor & Destructor Documentation

template<bool best>
Gecode::Search::Seq::PBS< best >::PBS ( Engine **  slaves,
Stop **  stops,
unsigned int  n,
const Statistics stat,
const Search::Options opt 
) [inline]

Initialize.

Definition at line 81 of file pbs.hpp.

template<bool best>
Gecode::Search::Seq::PBS< best >::~PBS ( void   )  [inline, virtual]

Destructor.

Definition at line 164 of file pbs.hpp.


Member Function Documentation

template<bool best>
Space * Gecode::Search::Seq::PBS< best >::next ( void   )  [inline, virtual]

Return next solution (NULL, if none exists or search has been stopped).

Implements Gecode::Search::Engine.

Definition at line 98 of file pbs.hpp.

template<bool best>
Statistics Gecode::Search::Seq::PBS< best >::statistics ( void   )  const [inline, virtual]

Return statistics.

Implements Gecode::Search::Engine.

Definition at line 147 of file pbs.hpp.

template<bool best>
bool Gecode::Search::Seq::PBS< best >::stopped ( void   )  const [inline, virtual]

Check whether engine has been stopped.

Implements Gecode::Search::Engine.

Definition at line 141 of file pbs.hpp.

template<bool best>
void Gecode::Search::Seq::PBS< best >::constrain ( const Space b  )  [inline, virtual]

Constrain future solutions to be better than b.

Reimplemented from Gecode::Search::Engine.

Definition at line 156 of file pbs.hpp.


Member Data Documentation

template<bool best>
Statistics Gecode::Search::Seq::PBS< best >::stat [protected]

Master statistics.

Definition at line 99 of file pbs.hh.

template<bool best>
SharedStopInfo Gecode::Search::Seq::PBS< best >::ssi [protected]

Shared slave information.

Definition at line 101 of file pbs.hh.

template<bool best>
unsigned int Gecode::Search::Seq::PBS< best >::slice [protected]

Size of a slice.

Definition at line 103 of file pbs.hh.

template<bool best>
Slave* Gecode::Search::Seq::PBS< best >::slaves [protected]

Slaves.

Definition at line 105 of file pbs.hh.

template<bool best>
unsigned int Gecode::Search::Seq::PBS< best >::n_slaves [protected]

Number of slave engines.

Definition at line 107 of file pbs.hh.

template<bool best>
unsigned int Gecode::Search::Seq::PBS< best >::cur [protected]

Current slave to run.

Definition at line 109 of file pbs.hh.

template<bool best>
bool Gecode::Search::Seq::PBS< best >::slave_stop [protected]

Whether a slave has been stopped.

Definition at line 111 of file pbs.hh.


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