| 1 |
/*** |
| 2 |
!Test |
| 3 |
solvers: [chuffed, cbc, highs] |
| 4 |
expected: !Result |
| 5 |
solution: !Solution |
| 6 |
x: 1 |
| 7 |
y: [!Range 1..3, !!set {}, !!set {1}] |
| 8 |
z: !Range 1..3 |
| 9 |
***/ |
| 10 |
|
| 11 |
% Tests for a bug in nosets.mzn for non-contiguous domains of x in array_var_set_element(x, y, z) |
| 12 |
|
| 13 |
include "nosets.mzn"; |
| 14 |
|
| 15 |
var {1, 3}: x :: add_to_output; |
| 16 |
array [1..3] of var set of 1..3: y :: add_to_output = [_, {}, {1}]; |
| 17 |
var set of 1..3: z :: add_to_output; |
| 18 |
|
| 19 |
constraint card(z) = 3; |
| 20 |
constraint array_var_set_element(x, y, z); |