7 lines
190 B
MiniZinc
7 lines
190 B
MiniZinc
predicate uniform_neighbourhood(array[int] of var int: x, float: destr_rate) =
|
|
forall(i in index_set(x)) (
|
|
if uniform(0.0, 1.0) > destr_rate then
|
|
x[i] = sol(x[i])
|
|
endif
|
|
);
|