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 fad1b07018 Squashed 'software/minizinc/' content from commit 4f10c8205
git-subtree-dir: software/minizinc
git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
2021-06-16 14:06:46 +10:00

34 lines
1.1 KiB
MiniZinc

include "value_precede_int.mzn";
include "fzn_value_precede_int_opt.mzn";
include "value_precede_set.mzn";
/** @group globals.lexicographic
Requires that \a s precede \a t in the array \a x.
Precedence means that if any element of \a x
is equal to \a t, then another element of \a x with a lower index is equal
to \a s.
*/
predicate value_precede(int: s, int: t, array[int] of var int: x) =
value_precede_int(s, t, x);
/** @group globals.lexicographic
Requires that \a s precede \a t in the array \a x.
Precedence means that if any element of \a x
is equal to \a t, then another element of \a x with a lower index is equal
to \a s.
*/
predicate value_precede(int: s, int: t, array[int] of var opt int: x) =
fzn_value_precede_int_opt(s, t, x);
/** @group globals.lexicographic
Requires that \a s precede \a t in the array \a x.
Precedence means that if an element of \a x
contains \a t but not \a s, then another element of \a x with lower index contains
\a s but not \a t.
*/
predicate value_precede(int: s, int: t, array[int] of var set of int: x) =
value_precede_set(s, t, x);