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.

10 lines
350 B
MiniZinc

include "fzn_sliding_sum.mzn";
include "fzn_sliding_sum_reif.mzn";
/** @group globals
Requires that in each subsequence \a vs[\p i], ..., \a vs[\p i + \a seq - 1] the sum of the
values belongs to the interval [\a low, \a up].
*/
predicate sliding_sum(int: low, int: up, int: seq, array[int] of var int: vs) =
fzn_sliding_sum(low, up, seq, vs);