1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
Jip J. Dekker b5f0d64642 Squashed 'prototype/' content from commit 91f7db00
git-subtree-dir: prototype
git-subtree-split: 91f7db00d45e7f991b5587ee07f09977ae311ee7
2021-07-29 14:28:24 +10:00

23 lines
706 B
MiniZinc

% RUNS ON mzn20_fd
% RUNS ON mzn-fzn_fd
include "increasing.mzn";
%-----------------------------------------------------------------------------%
% increasing
%-----------------------------------------------------------------------------%
array[1..5] of var -100..100: inc_avi = [1, _, 3, _, 5];
array[1..5] of var bool: inc_avb = [false, true, _, _, _];
%array[1..8] of var set of 1..3: inc_avsi; % XXX :: is_output
constraint increasing(inc_avi);
constraint increasing(inc_avb);
% XXX: comparisons not implemented for sets
%constraint increasing(inc_avsi);
solve satisfy;
output [
"inc_avb = array1d(1..5, ", show(inc_avb), ");\n",
"inc_avi = array1d(1..5, ", show(inc_avi), ");\n"
];