Debian Codegraph @

tests/spec/unit/regression/github_693_part2.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Result
5 solution: !Solution
6 x:
7 - !!set {}
8 - !!set {2}
9 - !!set {1}
10 - !Range 1..2
11 ***/
12 include "all_different.mzn";
13
14 int: N = 4;
15 array [1..N] of var set of 1..N: x;
16
17 constraint all_different(x);
18 constraint array_union(x) = 1..(N div 2);
19 constraint forall(i in 1..N-1) ( x[i] < x[i+1] );