Generated on Fri Aug 24 2012 04:52:25 for Gecode by doxygen 1.8.1.2
Gecode::Search::Sequential::BAB Class Reference

Implementation of depth-first branch-and-bound search engine. More...

#include <bab.hh>

Public Member Functions

 BAB (Space *s, size_t sz, const Options &o)
 Initialize with space s (of size sz) and search options o.
Spacenext (void)
 Search for next better solution
Statistics statistics (void) const
 Return statistics.
 ~BAB (void)
 Destructor.
- Public Member Functions inherited from Gecode::Search::Worker
 Worker (size_t sz)
 Initialize with space size sz.
void start (void)
 Reset stop information.
bool stop (const Options &o, size_t sz)
 Check whether engine must be stopped (with additional stackspace sz)
bool stopped (void) const
 Check whether engine has been stopped.
void push (const Space *s, const Choice *c)
 New space s and choice c get pushed on stack.
void constrained (const Space *s1, const Space *s2)
 Space s1 is replaced by space s2 due to constraining.
void adapt (const Space *s)
 New space s is added for adaptive recomputation.
void pop (const Space *s, const Choice *c)
 Space s and choice c get popped from stack.
void lao (const Space *s)
 Space s gets used for LAO (removed from stack)
void current (const Space *s)
 Space s becomes current space (s = NULL: current space deleted)
void reset (const Space *s, unsigned long int d=0)
 Reset statistics for space s with root depth d.
void reset (void)
 Reset statistics for failed space.
void stack_depth (unsigned long int d)
 Record stack depth d.
unsigned long int steal_depth (unsigned long int d) const
 Return steal depth.
- Public Member Functions inherited from Gecode::Search::Statistics
 Statistics (void)
 Initialize.
Statistics operator+ (const Statistics &s)
 Return sum with s.
Statisticsoperator+= (const Statistics &s)
 Increment by statistics s.
- Public Member Functions inherited from Gecode::StatusStatistics
 StatusStatistics (void)
 Initialize.
StatusStatistics operator+ (const StatusStatistics &s)
 Return sum with s.
StatusStatisticsoperator+= (const StatusStatistics &s)
 Increment by statistics s.

Additional Inherited Members

- Public Attributes inherited from Gecode::Search::Statistics
unsigned long int fail
 Number of failed nodes in search tree.
unsigned long int node
 Number of nodes expanded.
unsigned long int depth
 Maximum depth of search stack.
size_t memory
 Peak memory allocated.
- Protected Attributes inherited from Gecode::Search::Worker
bool _stopped
 Whether engine has been stopped.
size_t mem_space
 Memory required for a single space.
size_t mem_cur
 Memory for the current space (including memory for caching)
size_t mem_total
 Current total memory.
unsigned long int root_depth
 Depth of root node (for work stealing)

Detailed Description

Implementation of depth-first branch-and-bound search engine.

Definition at line 53 of file bab.hh.

Constructor & Destructor Documentation

Gecode::Search::Sequential::BAB::BAB ( Space s,
size_t  sz,
const Options o 
)
inline

Initialize with space s (of size sz) and search options o.

Definition at line 79 of file bab.hh.

Gecode::Search::Sequential::BAB::~BAB ( void  )
inline

Destructor.

Definition at line 167 of file bab.hh.

Member Function Documentation

Space * Gecode::Search::Sequential::BAB::next ( void  )
inline

Search for next better solution

Definition at line 95 of file bab.hh.

Statistics Gecode::Search::Sequential::BAB::statistics ( void  ) const
inline

Return statistics.

Definition at line 160 of file bab.hh.


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