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.

12 lines
458 B
MiniZinc

predicate fzn_diffn_reif(array[int] of var int: x,
array[int] of var int: y,
array[int] of var int: dx,
array[int] of var int: dy,
var bool: b) =
b <-> forall(i,j in index_set(x) where i < j)(
x[i] + dx[i] <= x[j] \/ y[i] + dy[i] <= y[j] \/
x[j] + dx[j] <= x[i] \/ y[j] + dy[j] <= y[i]
);
%-----------------------------------------------------------------------------%