Debian Codegraph @

tests/spec/unit/optional/test-opt-int-3.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 all_solutions: true
6 expected: !Result
7 solution: !SolutionSet
8 - !Solution
9 x: [3, 2, null]
10 - !Solution
11 x: [2, 3, null]
12 - !Solution
13 x: [3, null, 2]
14 - !Solution
15 x: [2, null, 3]
16 - !Solution
17 x: [null, 3, 2]
18 - !Solution
19 x: [null, 2, 3]
20 - !Solution
21 x: [3, 2, 1]
22 - !Solution
23 x: [2, 3, 1]
24 - !Solution
25 x: [3, 1, 2]
26 - !Solution
27 x: [1, 3, 2]
28 - !Solution
29 x: [2, 1, 3]
30 - !Solution
31 x: [1, 2, 3]
32 status: ALL_SOLUTIONS
33 ***/
34
35 array [1..3] of var opt 1..5: x;
36
37 constraint product(x) = 6;