Generated on Thu Apr 11 14:00:08 2019 for Gecode by doxygen 1.6.3

Gecode::Search::Par::BAB< Tracer >::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

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]

Initialize for space s with engine e.

Definition at line 76 of file bab.hpp.

template<class Tracer >
Gecode::Search::Par::BAB< Tracer >::Worker::~Worker ( void   )  [inline, virtual]

Destructor.

Reimplemented from Gecode::Search::Par::Engine< Tracer >::Worker.

Definition at line 411 of file bab.hpp.


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.

Definition at line 41 of file bab.hpp.

template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::run ( void   )  [inline, virtual]

Start execution of worker.

Implements Gecode::Support::Runnable.

Definition at line 209 of file bab.hpp.

template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::better ( Space b  )  [inline]

Accept better solution b.

Definition at line 106 of file bab.hpp.

template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::find ( void   )  [inline]

Try to find some work.

Definition at line 148 of file bab.hpp.

template<class Tracer >
void Gecode::Search::Par::BAB< Tracer >::Worker::reset ( Space s,
unsigned int  ngdl 
) [inline]

Reset engine to restart at space s.

Definition at line 52 of file bab.hpp.


Member Data Documentation

template<class Tracer >
int Gecode::Search::Par::BAB< Tracer >::Worker::mark [protected]

Number of entries not yet constrained to be better.

Definition at line 80 of file bab.hh.

template<class Tracer >
Space* Gecode::Search::Par::BAB< Tracer >::Worker::best [protected]

Best solution found so far.

Definition at line 82 of file bab.hh.


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