34 namespace Gecode {
namespace Search {
59 return build<T,LDS>(s,
opt);
70 : Search::Base<T>(Search::
ldsengine(s,o)) {}
Search engine implementation interface
Limited discrepancy search engine.
#define GECODE_SEARCH_EXPORT
A class for building search engines.
Options opt
Stored and already expanded options.
virtual T * next(void)
Return next solution (NULL, if none exists or search has been stopped)
virtual Engine * operator()(Space *s) const
The actual build function.
Engine * ldsengine(Space *s, const Options &o)
Create lds engine.
LdsBuilder(const Options &opt)
The constructor.
T * lds(T *s, const Search::Options &o)
Invoke limited-discrepancy search for s as root node and optionso.
LDS(T *s, const Search::Options &o=Search::Options::def)
Initialize engine for space s and options o.
bool best(void) const
Whether engine is a best solution search engine.
Gecode toplevel namespace