Gecode::Search::Parallel::BAB::Worker Class Reference
Parallel branch-and-bound search worker More...
#include <bab.hh>
Public Member Functions | |
Worker (Space *s, size_t sz, BAB &e) | |
Initialize for space s (of size sz) 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. | |
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
Parallel branch-and-bound search worker
Definition at line 49 of file bab.hh.
Constructor & Destructor Documentation
Gecode::Search::Parallel::BAB::Worker::~Worker | ( | void | ) | [virtual] |
Destructor.
Reimplemented from Gecode::Search::Parallel::Engine::Worker.
Member Function Documentation
BAB & Gecode::Search::Parallel::BAB::Worker::engine | ( | void | ) | const [inline] |
Provide access to engine.
Reimplemented from Gecode::Search::Parallel::Engine::Worker.
void Gecode::Search::Parallel::BAB::Worker::run | ( | void | ) | [virtual] |
Start execution of worker.
Implements Gecode::Support::Runnable.
void Gecode::Search::Parallel::BAB::Worker::better | ( | Space * | b | ) | [inline] |
void Gecode::Search::Parallel::BAB::Worker::find | ( | void | ) | [inline] |
Member Data Documentation
int Gecode::Search::Parallel::BAB::Worker::mark [protected] |
Space* Gecode::Search::Parallel::BAB::Worker::best [protected] |
The documentation for this class was generated from the following files:
- gecode/search/parallel/bab.hh (Revision: 11929)
- gecode/search/parallel/bab.cpp (Revision: 9632)