Generated on Fri Mar 20 15:56:34 2015 for Gecode by doxygen 1.6.3

Search engines
[Programming models]

Classes

class  Gecode::Search::Statistics
 Search engine statistics More...
class  Gecode::Search::Cutoff
 Base class for cutoff generators for restart-based meta engine. More...
class  Gecode::Search::CutoffConstant
 Cutoff generator for constant sequence. More...
class  Gecode::Search::CutoffLinear
 Cutoff generator for linear sequence. More...
class  Gecode::Search::CutoffLuby
 Cutoff generator for the Luby sequence. More...
class  Gecode::Search::CutoffGeometric
 Cutoff generator for the geometric sequence. More...
class  Gecode::Search::CutoffRandom
 Cutoff generator for the random sequence. More...
class  Gecode::Search::CutoffAppend
 Cutoff generator appending two cutoff generators. More...
class  Gecode::Search::CutoffMerge
 Cutoff generator merging two cutoff generators. More...
class  Gecode::Search::CutoffRepeat
 Cutoff generator that repeats a cutoff from another cutoff generator. More...
class  Gecode::Search::Options
 Search engine options More...
class  Gecode::DFS< T >
 Depth-first search engine. More...
class  Gecode::BAB< T >
 Depth-first branch-and-bound search engine. More...
class  Gecode::RBS< E, T >
 Meta-engine performing restart-based search. More...

Namespaces

namespace  Gecode::Search::Config
 

Search configuration


Modules

 Stop-objects for stopping search

Functions

template<class T >
T * Gecode::bab (T *s, const Search::Options &o=Search::Options::def)
 Perform depth-first branch-and-bound search for subclass T of space s and options o.
template<template< class > class E, class T >
T * Gecode::rbs (T *s, const Search::Options &o)
 Perform restart-based search.

Detailed Description

Defines search engines. All search engines support recomputation. The behaviour of recomputation is controlled by a passing a search option object (see the class Gecode::Search::Options).

Requires

 #include <gecode/search.hh> 

Function Documentation

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

Perform depth-first branch-and-bound search for subclass T of space s and options o.

Additionally, s must implement a member function

 virtual void constrain(const 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.

template<template< class > class E, class T >
T * Gecode::rbs ( T *  s,
const Search::Options &  o 
) [inline]

Perform restart-based search.

The engine uses the Cutoff sequence supplied in the options o to periodically restart the search of engine E.

The class T can implement member functions

 virtual bool master(const CRI& cri) 

and

 virtual bool slave(const CRI& cri) 

Whenever exploration restarts or a solution is found, the engine executes the functions on the master and slave space. For more details, consult "Modeling and Programming with Gecode".