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/inc_rcpsp_neighbourhood.mzn
2021-07-21 14:27:06 +10:00

6 lines
239 B
MiniZinc

predicate free_timeslot() =
let { int: slot = max(Times) div 10;
int: time = uniform(min(Times), max(Times) - slot); } in
forall(t in Tasks)
((sol(s[t]) < time \/ time+slot > sol(s[t])) -> s[t] = sol(s[t]));