Generated on Thu Mar 22 10:39:59 2012 for Gecode by doxygen 1.6.3

Gecode::Search::Parallel::BAB::Worker Class Reference

Parallel branch-and-bound search worker More...

#include <bab.hh>

List of all members.

Public Member Functions

 Worker (Space *s, size_t sz, BAB &e)
 Initialize for space s (of size sz) with engine e.
BABengine (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.
Spacebest
 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 ( Space s,
size_t  sz,
BAB e 
) [inline]

Initialize for space s (of size sz) with engine e.

Definition at line 113 of file bab.hh.

Gecode::Search::Parallel::BAB::Worker::~Worker ( void   )  [virtual]

Destructor.

Reimplemented from Gecode::Search::Parallel::Engine::Worker.

Definition at line 164 of file bab.cpp.


Member Function Documentation

BAB & Gecode::Search::Parallel::BAB::Worker::engine ( void   )  const [inline]

Provide access to engine.

Reimplemented from Gecode::Search::Parallel::Engine::Worker.

Definition at line 100 of file bab.hh.

void Gecode::Search::Parallel::BAB::Worker::run ( void   )  [virtual]

Start execution of worker.

Implements Gecode::Support::Runnable.

Definition at line 61 of file bab.cpp.

void Gecode::Search::Parallel::BAB::Worker::better ( Space b  )  [inline]

Accept better solution b.

Definition at line 139 of file bab.hh.

void Gecode::Search::Parallel::BAB::Worker::find ( void   )  [inline]

Try to find some work.

Definition at line 179 of file bab.hh.


Member Data Documentation

Number of entries not yet constrained to be better.

Definition at line 52 of file bab.hh.

Best solution found so far.

Definition at line 54 of file bab.hh.


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