Debian Codegraph @

tests/spec/unit/globals/alldifferent/globals_all_different_int.mzn

raw
1 /***
2 !Test
3 expected:
4 - !Result
5 solution: !Solution
6 alldiff_avi1: [1, 2, 3, 4, 5]
7 ***/
8
9 % Test all_different for var int.
10
11 include "all_different.mzn";
12
13 array[5..9] of var 1..5: alldiff_avi1 ::add_to_output =
14 array1d(5..9, [1, _, 3, _, 5]);
15
16 constraint all_different(alldiff_avi1);
17 constraint alldiff_avi1[6] < alldiff_avi1[8];
18
19 solve satisfy;
20
21 output ["alldiff_avi1 = array1d(5..9, ", show(alldiff_avi1), ");\n"];