Simple test for Hamiltonian path constraint. More...
Public Member Functions | |
Path (int n, int min, int max, int off, Gecode::IntConLevel icl) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Check whether x is solution. | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post path constraint on x. |
Simple test for Hamiltonian path constraint.
Definition at line 94 of file circuit.cpp.
Test::Int::Circuit::Path::Path | ( | int | n, |
int | min, | ||
int | max, | ||
int | off, | ||
Gecode::IntConLevel | icl | ||
) | [inline] |
Create and register test.
Definition at line 100 of file circuit.cpp.
virtual bool Test::Int::Circuit::Path::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Check whether x is solution.
Implements Test::Int::Test.
Definition at line 106 of file circuit.cpp.
virtual void Test::Int::Circuit::Path::post | ( | Gecode::Space & | home, |
Gecode::IntVarArray & | x | ||
) | [inline, virtual] |