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/mzn/6_lns_minisearch_pred.mzn

4 lines
180 B
MiniZinc

predicate uniformNeighbourhood(array[int] of var int: x, float: destrRate) =
forall(i in index_set(x))
(if uniform(0.0,1.0) > destrRate then x[i] = sol(x[i]) else true endif);