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.
dekker-phd-thesis/assets/listing/half_reif_check.mzn
Jip J. Dekker c4e8296e74
Work on the reification chapter
- Comments by Peter
- Additional reference
- Listings
2021-07-20 18:40:23 +10:00

16 lines
230 B
MiniZinc

predicate _int_lin_le_imp(
array[int] of int: c,
array[int] of var int: x,
int: d,
var bool: b
) =
if is_fixed(b) then
if fix(b) then
int_lin_le(c, x, d)
else
true
endif
else
int_lin_le_imp(c, x, d, b)
endif;