Gecode::Search::Sequential::Restart Class Reference
Depth-first restart best solution search engine implementation. More...
#include <restart.hh>
Public Member Functions | |
Restart (Space *s, size_t sz, const Search::Options &o) | |
Initialize engine for space s (with size sz) and options o. | |
Space * | next (void) |
Return next better solution (NULL, if none exists or search has been stopped). | |
~Restart (void) | |
Destructor. | |
Protected Attributes | |
Space * | root |
Root node. | |
Space * | best |
So-far best solution. |
Detailed Description
Depth-first restart best solution search engine implementation.
Definition at line 46 of file restart.hh.
Constructor & Destructor Documentation
Gecode::Search::Sequential::Restart::Restart | ( | Space * | s, | |
size_t | sz, | |||
const Search::Options & | o | |||
) | [inline] |
Initialize engine for space s (with size sz) and options o.
Definition at line 62 of file restart.hh.
Gecode::Search::Sequential::Restart::~Restart | ( | void | ) | [inline] |
Destructor.
Definition at line 80 of file restart.hh.
Member Function Documentation
Space * Gecode::Search::Sequential::Restart::next | ( | void | ) | [inline] |
Return next better solution (NULL, if none exists or search has been stopped).
Reimplemented from Gecode::Search::Sequential::DFS.
Definition at line 67 of file restart.hh.
Member Data Documentation
Space* Gecode::Search::Sequential::Restart::root [protected] |
Root node.
Definition at line 49 of file restart.hh.
Space* Gecode::Search::Sequential::Restart::best [protected] |
So-far best solution.
Definition at line 51 of file restart.hh.
The documentation for this class was generated from the following file:
- gecode/search/sequential/restart.hh (Revision: 9063)