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 f2a1c4e389 Squashed 'software/mza/' content from commit f970a59b17
git-subtree-dir: software/mza
git-subtree-split: f970a59b177c13ca3dd8aaef8cc6681d83b7e813
2021-07-11 16:34:30 +10:00

15 lines
502 B
MiniZinc

include "fzn_span.mzn";
include "fzn_span_reif.mzn";
/** @group globals.scheduling
Span constraint for optional tasks. Task (\a s0,\a d0) spans the optional
tasks (\a s[\p i],\a d[\p i]) in the array arguments.
*/
predicate span(var opt int: s0, var int: d0,
array[int] of var opt int: s,
array[int] of var int: d) =
assert(index_set(s) = index_set(d),
"span: index sets of third and fourth argument must be identical",
fzn_span(s0,d0,s,d)
);