Debian Codegraph @

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

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