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. More... | |
BAB & | engine (void) const |
Provide access to engine. More... | |
virtual void | run (void) |
Start execution of worker. More... | |
void | better (Space *b) |
Accept better solution b. More... | |
void | find (void) |
Try to find some work. More... | |
void | reset (Space *s, int ngdl) |
Reset engine to restart at space s. More... | |
virtual | ~Worker (void) |
Destructor. More... | |
![]() | |
Worker (Space *s, Engine &e) | |
Initialize for space s with engine e. More... | |
Space * | steal (unsigned long int &d) |
Hand over some work (NULL if no work available) More... | |
Statistics | statistics (void) |
Return statistics. More... | |
Engine & | engine (void) const |
Provide access to engine. More... | |
NoGoods & | nogoods (void) |
Return no-goods. More... | |
![]() | |
Worker (void) | |
Initialize. More... | |
void | start (void) |
Reset stop information. More... | |
bool | stop (const Options &o) |
Check whether engine must be stopped. More... | |
bool | stopped (void) const |
Check whether engine has been stopped. More... | |
void | reset (unsigned long int d=0) |
Reset statistics with root depth d. More... | |
void | stack_depth (unsigned long int d) |
Record stack depth d. More... | |
unsigned long int | steal_depth (unsigned long int d) const |
Return steal depth. More... | |
![]() | |
Statistics (void) | |
Initialize. More... | |
void | reset (void) |
Reset. More... | |
Statistics | operator+ (const Statistics &s) |
Return sum with s. More... | |
Statistics & | operator+= (const Statistics &s) |
Increment by statistics s. More... | |
![]() | |
StatusStatistics (void) | |
Initialize. More... | |
void | reset (void) |
Reset information. More... | |
StatusStatistics | operator+ (const StatusStatistics &s) |
Return sum with s. More... | |
StatusStatistics & | operator+= (const StatusStatistics &s) |
Increment by statistics s. More... | |
![]() | |
virtual | ~Runnable (void) |
Destructor. More... | |
Protected Attributes | |
int | mark |
Number of entries not yet constrained to be better. More... | |
Space * | best |
Best solution found so far. More... | |
![]() | |
Engine & | _engine |
Reference to engine. More... | |
Support::Mutex | m |
Mutex for access to worker. More... | |
Path | path |
Current path ins search tree. More... | |
Space * | cur |
Current space being explored. More... | |
unsigned int | d |
Distance until next clone. More... | |
bool | idle |
Whether the worker is idle. More... | |
![]() | |
bool | _stopped |
Whether engine has been stopped. More... | |
unsigned long int | root_depth |
Depth of root node (for work stealing) More... | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t s) |
Allocate memory from heap. More... | |
static void | operator delete (void *p) |
Free memory allocated from heap. More... | |
![]() | |
unsigned long int | fail |
Number of failed nodes in search tree. More... | |
unsigned long int | node |
Number of nodes expanded. More... | |
unsigned long int | depth |
Maximum depth of search stack. More... | |
unsigned long int | restart |
Number of restarts. More... | |
unsigned long int | nogood |
Number of no-goods posted. More... | |
![]() | |
unsigned long int | propagate |
Number of propagator executions. More... | |
bool | wmp |
Whether a weakly monotonic propagator might have been executed. More... | |
|
virtual |
Destructor.
Reimplemented from Gecode::Search::Parallel::Engine::Worker.
|
inline |
|
virtual |
Start execution of worker.
Implements Gecode::Support::Runnable.
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |