Generated on Fri Mar 20 15:57:08 2015 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, BAB &e)
 Initialize for space s 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.
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.
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,
BAB e 
) [inline]

Initialize for space s with engine e.

Definition at line 137 of file bab.hh.

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

Destructor.

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

Definition at line 234 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 106 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 163 of file bab.hh.

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

Try to find some work.

Definition at line 203 of file bab.hh.

void Gecode::Search::Parallel::BAB::Worker::reset ( Space s,
unsigned int  ngdl 
) [inline]

Reset engine to restart at space s.

Definition at line 115 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: