git-subtree-dir: software/mza git-subtree-split: f970a59b177c13ca3dd8aaef8cc6681d83b7e813
18 lines
340 B
MiniZinc
18 lines
340 B
MiniZinc
% Test string comparison.
|
|
%
|
|
% RUNS ON mzn20_fd
|
|
% RUNS ON mzn-fzn_fd
|
|
% RUNS ON mzn20_fd_linear
|
|
% RUNS ON mzn20_mip
|
|
|
|
array [1..6] of var 1..3: xs;
|
|
|
|
array [1..6] of string: ss = ["a", "b", "c", "a", "b", "c"];
|
|
|
|
constraint
|
|
forall (i, j in 1..6 where i < j /\ ss[i] < ss[j]) (xs[i] < xs[j]);
|
|
|
|
solve satisfy;
|
|
|
|
output ["xs = ", show(xs), ";\n"];
|