this repo has no description
at develop 738 B view raw
1include "fzn_disjunctive_strict_opt.mzn"; 2include "fzn_disjunctive_strict_opt_reif.mzn"; 3 4/** @group globals.scheduling 5 Requires that a set of tasks given by start times \a s and durations \a d 6 do not overlap in time. Tasks with duration 0 CANNOT be scheduled at any time, 7 but only when no other task is running. Start times are optional variables, so 8 that absent tasks do not need to be scheduled. 9 10 Assumptions: 11 - forall \p i, \a d[\p i] >= 0 12*/ 13predicate disjunctive_strict(array[int] of var opt int: s, 14 array[int] of var int: d) = 15 assert(index_set(s) == index_set(d), 16 "disjunctive: the array arguments must have identical index sets", 17 fzn_disjunctive_strict_opt(s,d) 18 );