Debian Codegraph @

tests/spec/unit/globals/var_sqr_sym/globals_var_sqr_sym.mzn

raw
1 /***
2 !Test
3 solvers: [gecode, chuffed]
4 expected: !Result
5 solution: !SolutionSet
6 - !Solution
7 x: [[1, 3], [4, 2]]
8 - !Solution
9 x: [[1, 2], [4, 3]]
10 - !Solution
11 x: [[1, 2], [3, 4]]
12 options:
13 all_solutions: true
14 ***/
15 include "all_different.mzn";
16 include "var_sqr_sym.mzn";
17
18 array[1..2, 1..2] of var 1..4: x;
19 constraint all_different(x);
20 constraint var_sqr_sym(x);