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.
on-restart-benchmarks/share/minizinc/std/value_precede_chain.mzn
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

23 lines
864 B
MiniZinc

include "value_precede_chain_int.mzn";
include "value_precede_chain_set.mzn";
/** @group globals.lexicographic
Requires that \a c[\p i] precedes \a c[\p i +1] in the array \a x.
Precedence means that if any element of \a x
is equal to \a c[\p i +1], then another element of \a x with a lower index is equal
to \a c[\p i].
*/
predicate value_precede_chain(array[int] of int: c, array[int] of var int: x) =
value_precede_chain_int(c, x);
/** @group globals.lexicographic
Requires that \a c[\p i] precedes \a c[\p i +1] in the array \a x.
Precedence means that if an element of \a x
contains \a c[\p i +1] but not \a c[\p i], then another element of \a x with lower index contains
\a c[\p i] but not \a c[\p i +1].
*/
predicate value_precede_chain(array[int] of int: c, array[int] of var set of int: x) =
value_precede_chain_set(c, x);