Generated on Thu Jul 25 2019 00:00:00 for Gecode by doxygen 1.8.15
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, const Options &o)
 Initialize with space s and search options o. More...
 
Spacenext (void)
 Search for next better solution More...
 
Statistics statistics (void) const
 Return statistics. More...
 
void constrain (const Space &b)
 Constrain future solutions to be better than b. More...
 
void reset (Space *s)
 Reset engine to restart at space s. More...
 
NoGoodsnogoods (void)
 Return no-goods. More...
 
 ~BAB (void)
 Destructor. More...
 
- Public Member Functions inherited from Gecode::Search::Worker
 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...
 
- Public Member Functions inherited from Gecode::Search::Statistics
 Statistics (void)
 Initialize. More...
 
void reset (void)
 Reset. More...
 
Statistics operator+ (const Statistics &s)
 Return sum with s. More...
 
Statisticsoperator+= (const Statistics &s)
 Increment by statistics s. More...
 
- Public Member Functions inherited from Gecode::StatusStatistics
 StatusStatistics (void)
 Initialize. More...
 
void reset (void)
 Reset information. More...
 
StatusStatistics operator+ (const StatusStatistics &s)
 Return sum with s. More...
 
StatusStatisticsoperator+= (const StatusStatistics &s)
 Increment by statistics s. More...
 

Additional Inherited Members

- Public Attributes inherited from Gecode::Search::Statistics
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...
 
- Public Attributes inherited from Gecode::StatusStatistics
unsigned long int propagate
 Number of propagator executions. More...
 
- Protected Attributes inherited from Gecode::Search::Worker
bool _stopped
 Whether engine has been stopped. More...
 
unsigned long int root_depth
 Depth of root node (for work stealing) More...
 

Detailed Description

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

Definition at line 53 of file bab.hh.

Constructor & Destructor Documentation

◆ BAB()

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

Initialize with space s and search options o.

Definition at line 85 of file bab.hh.

◆ ~BAB()

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

Destructor.

Definition at line 211 of file bab.hh.

Member Function Documentation

◆ next()

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

Search for next better solution

Definition at line 98 of file bab.hh.

◆ statistics()

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

Return statistics.

Definition at line 168 of file bab.hh.

◆ constrain()

void Gecode::Search::Sequential::BAB::constrain ( const Space b)
inline

Constrain future solutions to be better than b.

Definition at line 173 of file bab.hh.

◆ reset()

void Gecode::Search::Sequential::BAB::reset ( Space s)
inline

Reset engine to restart at space s.

Definition at line 189 of file bab.hh.

◆ nogoods()

NoGoods & Gecode::Search::Sequential::BAB::nogoods ( void  )
inline

Return no-goods.

Definition at line 206 of file bab.hh.


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