Generated on Mon Aug 25 11:35:49 2008 for Gecode by doxygen 1.5.6

Gecode::BAB< T > Class Template Reference
[Search engines]

#include <search.hh>

Inherits Gecode::Search::BAB.

List of all members.


Detailed Description

template<class T>
class Gecode::BAB< T >

Depth-first branch-and-bound search engine.

Additionally, s must implement a member function

 void constrain(T* t) 
Whenever exploration requires to add a constraint to the space c currently being explored, the engine executes c->constrain(t) where t is the so-far best solution.

Definition at line 677 of file search.hh.


Public Member Functions

 BAB (T *s, const Search::Options &o=Search::Options::def)
 Initialize engine for space s and options o.
T * next (void)
 Return next better solution (NULL, if none exists or search has been stopped).

Constructor & Destructor Documentation

template<class T>
Gecode::BAB< T >::BAB ( T *  s,
const Search::Options o = Search::Options::def 
) [inline]

Initialize engine for space s and options o.

Definition at line 84 of file bab.icc.


Member Function Documentation

template<class T>
T * Gecode::BAB< T >::next ( void   )  [inline]

Return next better solution (NULL, if none exists or search has been stopped).

Definition at line 89 of file bab.icc.


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