
Simple test for circuit constraint. More...
Public Member Functions | |
| Circuit (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 circuit constraint on x. | |
Simple test for circuit constraint.
Definition at line 52 of file circuit.cpp.
| Test::Int::Circuit::Circuit::Circuit | ( | int | n, |
| int | min, | ||
| int | max, | ||
| int | off, | ||
| Gecode::IntConLevel | icl | ||
| ) | [inline] |
Create and register test.
Definition at line 58 of file circuit.cpp.
| virtual bool Test::Int::Circuit::Circuit::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
| virtual void Test::Int::Circuit::Circuit::post | ( | Gecode::Space & | home, |
| Gecode::IntVarArray & | x | ||
| ) | [inline, virtual] |
Post circuit constraint on x.
Implements Test::Int::Test.
Definition at line 81 of file circuit.cpp.