Gecode::Search::Seq::PBS< best > Class Template Reference
Sequential portfolio engine implementation. More...
#include <pbs.hh>
Public Member Functions | |
| PBS (Engine **slaves, Stop **stops, unsigned int n, const Statistics &stat, const Search::Options &opt) | |
| Initialize. | |
| virtual Space * | 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 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. | |
| Slave * | slaves |
| 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 92 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] |
template<bool best>
| Gecode::Search::Seq::PBS< best >::~PBS | ( | void | ) | [inline, virtual] |
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.
template<bool best>
| Statistics Gecode::Search::Seq::PBS< best >::statistics | ( | void | ) | const [inline, virtual] |
template<bool best>
| bool Gecode::Search::Seq::PBS< best >::stopped | ( | void | ) | const [inline, virtual] |
Check whether engine has been stopped.
Implements Gecode::Search::Engine.
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.
Member Data Documentation
template<bool best>
Statistics Gecode::Search::Seq::PBS< best >::stat [protected] |
template<bool best>
SharedStopInfo Gecode::Search::Seq::PBS< best >::ssi [protected] |
template<bool best>
unsigned int Gecode::Search::Seq::PBS< best >::slice [protected] |
template<bool best>
Slave* Gecode::Search::Seq::PBS< best >::slaves [protected] |
template<bool best>
unsigned int Gecode::Search::Seq::PBS< best >::n_slaves [protected] |
template<bool best>
unsigned int Gecode::Search::Seq::PBS< best >::cur [protected] |
template<bool best>
bool Gecode::Search::Seq::PBS< best >::slave_stop [protected] |
The documentation for this class was generated from the following files:
