Gecode::Search::Par::BAB< Tracer >::Worker Class Reference
Parallel branch-and-bound search worker More...
#include <bab.hh>
Public Member Functions | |
Worker (Space *s, BAB &e) | |
Initialize for space s with engine e. | |
BAB & | engine (void) const |
Provide access to engine. | |
virtual void | run (void) |
Start execution of worker. | |
void | better (Space *b) |
Accept better solution b. | |
void | find (void) |
Try to find some work. | |
void | reset (Space *s, unsigned int ngdl) |
Reset engine to restart at space s. | |
virtual | ~Worker (void) |
Destructor. | |
Protected Attributes | |
int | mark |
Number of entries not yet constrained to be better. | |
Space * | best |
Best solution found so far. |
Detailed Description
template<class Tracer>
class Gecode::Search::Par::BAB< Tracer >::Worker
Parallel branch-and-bound search worker
Definition at line 66 of file bab.hh.
Constructor & Destructor Documentation
template<class Tracer >
Gecode::Search::Par::BAB< Tracer >::Worker::Worker | ( | Space * | s, | |
BAB & | e | |||
) | [inline] |
template<class Tracer >
Gecode::Search::Par::BAB< Tracer >::Worker::~Worker | ( | void | ) | [inline, virtual] |
Destructor.
Reimplemented from Gecode::Search::Par::Engine< Tracer >::Worker.
Member Function Documentation
template<class Tracer >
BAB< Tracer > & Gecode::Search::Par::BAB< Tracer >::Worker::engine | ( | void | ) | const [inline] |
Provide access to engine.
Reimplemented from Gecode::Search::Par::Engine< Tracer >::Worker.
template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::run | ( | void | ) | [inline, virtual] |
Start execution of worker.
Implements Gecode::Support::Runnable.
template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::better | ( | Space * | b | ) | [inline] |
template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::find | ( | void | ) | [inline] |
template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::reset | ( | Space * | s, | |
unsigned int | ngdl | |||
) | [inline] |
Member Data Documentation
template<class Tracer >
int Gecode::Search::Par::BAB< Tracer >::Worker::mark [protected] |
template<class Tracer >
Space* Gecode::Search::Par::BAB< Tracer >::Worker::best [protected] |
The documentation for this class was generated from the following files: