* @param HEIGHT collection of height (each height should be >= 0)
* @param USE_CUMUL indicates whether or not redundant cumulative constraints should be put on each dimension (advised)
* @return a non-overlapping constraint
*/
public static Constraint[] diffn(IntVar[] X, IntVar[] Y, IntVar[] WIDTH, IntVar[] HEIGHT, boolean USE_CUMUL) {
Solver solver = X[0].getSolver();
Constraint diffNCons = new Constraint(
"DiffN",
new PropDiffN(X, Y, WIDTH, HEIGHT, false),
new PropDiffN(X, Y, WIDTH, HEIGHT, false)
);