Space that requires propagation and has solutions. More...
Public Member Functions | |
void | branch (const IntVarArgs &x, HowToBranch htb) |
Branch on x according to htb. | |
HasSolutions (HowToBranch _htb1, HowToBranch _htb2, HowToBranch _htb3, HowToConstrain _htc=HTC_NONE) | |
Constructor for space creation. | |
HasSolutions (bool share, HasSolutions &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
virtual void | constrain (const Space &_s) |
Add constraint for next better solution. | |
virtual int | solutions (void) const |
Return number of solutions. | |
virtual bool | best (void) const |
Verify that this is best solution. | |
virtual void | master (unsigned long int i, const Space *_s, NoGoods &) |
Rule out that solution is found more than once during restarts. | |
Static Public Member Functions | |
static std::string | name (void) |
Return name. | |
Public Attributes | |
IntVarArray | x |
Variables used. | |
HowToBranch | htb1 |
How to branch. | |
HowToBranch | htb2 |
HowToBranch | htb3 |
HowToConstrain | htc |
How to constrain. |
Space that requires propagation and has solutions.
Definition at line 160 of file search.cpp.
Test::Search::HasSolutions::HasSolutions | ( | HowToBranch | _htb1, |
HowToBranch | _htb2, | ||
HowToBranch | _htb3, | ||
HowToConstrain | _htc = HTC_NONE |
||
) | [inline] |
Constructor for space creation.
Definition at line 185 of file search.cpp.
Test::Search::HasSolutions::HasSolutions | ( | bool | share, |
HasSolutions & | s | ||
) | [inline] |
Constructor for cloning s.
Definition at line 196 of file search.cpp.
void Test::Search::HasSolutions::branch | ( | const IntVarArgs & | x, |
HowToBranch | htb | ||
) | [inline] |
Branch on x according to htb.
Definition at line 169 of file search.cpp.
virtual Space* Test::Search::HasSolutions::copy | ( | bool | share | ) | [inline, virtual] |
virtual void Test::Search::HasSolutions::constrain | ( | const Space & | _s | ) | [inline, virtual] |
Add constraint for next better solution.
Reimplemented from Gecode::Space.
Definition at line 206 of file search.cpp.
virtual int Test::Search::HasSolutions::solutions | ( | void | ) | const [inline, virtual] |
Return number of solutions.
Implements Test::Search::TestSpace.
Definition at line 239 of file search.cpp.
virtual bool Test::Search::HasSolutions::best | ( | void | ) | const [inline, virtual] |
Verify that this is best solution.
Implements Test::Search::TestSpace.
Definition at line 251 of file search.cpp.
static std::string Test::Search::HasSolutions::name | ( | void | ) | [inline, static] |
Return name.
Definition at line 279 of file search.cpp.
virtual void Test::Search::HasSolutions::master | ( | unsigned long int | i, |
const Space * | _s, | ||
NoGoods & | |||
) | [inline, virtual] |
Rule out that solution is found more than once during restarts.
Reimplemented from Gecode::Space.
Definition at line 283 of file search.cpp.
Variables used.
Definition at line 163 of file search.cpp.
How to branch.
Definition at line 165 of file search.cpp.
Definition at line 165 of file search.cpp.
Definition at line 165 of file search.cpp.
How to constrain.
Definition at line 167 of file search.cpp.