Gecode::Restart< T > Class Template Reference
[Search engines]
#include <search.hh>
Inherits Gecode::DFS< T >.
Detailed Description
template<class T>
class Gecode::Restart< T >
Depth-first restart best solution search engine.
Additionally, s must implement a member function
void constrain(T* t)
c->constrain(t)
where t is the so-far best solution.
Definition at line 714 of file search.hh.
Public Member Functions | |
Restart (T *s, const Search::Options &o=Search::Options::def) | |
Initialize engine for space s and options o. | |
~Restart (void) | |
Destructor. | |
T * | next (void) |
Return next better solution (NULL, if none exists or search has been stopped). | |
Protected Attributes | |
Space * | root |
Root node. | |
Space * | best |
So-far best solution. |
Constructor & Destructor Documentation
template<class T>
Gecode::Restart< T >::Restart | ( | T * | s, | |
const Search::Options & | o = Search::Options::def | |||
) | [inline] |
template<class T>
Gecode::Restart< T >::~Restart | ( | void | ) | [inline] |
Member Function Documentation
template<class T>
T * Gecode::Restart< T >::next | ( | void | ) | [inline] |
Return next better solution (NULL, if none exists or search has been stopped).
Reimplemented from Gecode::DFS< T >.
Definition at line 62 of file restart.icc.
Member Data Documentation
template<class T>
Space* Gecode::Restart< T >::root [protected] |
template<class T>
Space* Gecode::Restart< T >::best [protected] |
The documentation for this class was generated from the following files:
- gecode/search.hh (Revision: 7310)
- gecode/search/restart.icc (Revision: 6273)