Test::Int::Circuit::PathCost Class Reference
[Circuit constraints]
Simple test for path constraint with total cost. More...
Public Member Functions | |
PathCost (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. |
Detailed Description
Simple test for path constraint with total cost.
Definition at line 200 of file circuit.cpp.
Constructor & Destructor Documentation
Test::Int::Circuit::PathCost::PathCost | ( | int | n, | |
int | min, | |||
int | max, | |||
int | off, | |||
Gecode::IntConLevel | icl | |||
) | [inline] |
Create and register test.
Definition at line 206 of file circuit.cpp.
Member Function Documentation
virtual bool Test::Int::Circuit::PathCost::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Check whether x is solution.
Implements Test::Int::Test.
Definition at line 212 of file circuit.cpp.
virtual void Test::Int::Circuit::PathCost::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Post circuit constraint on x.
Implements Test::Int::Test.
Definition at line 237 of file circuit.cpp.
The documentation for this class was generated from the following file:
- test/int/circuit.cpp (Revision: 12036)