git-subtree-dir: software/mza git-subtree-split: f970a59b177c13ca3dd8aaef8cc6681d83b7e813
15 lines
290 B
MiniZinc
15 lines
290 B
MiniZinc
% RUNS ON mzn20_fd
|
|
% RUNS ON mzn-fzn_fd
|
|
% RUNS ON mzn20_fd_linear
|
|
% RUNS ON mzn20_mip
|
|
|
|
include "at_most1.mzn";
|
|
|
|
array[1..3] of var set of 1..3: s;
|
|
constraint at_most1(s);
|
|
constraint at_most1([{5,8}, {5}, {5, 6, 7}, {1, 4}]);
|
|
solve satisfy;
|
|
|
|
output ["s = array1d(1..3, ", show(s), ");\n"];
|
|
|