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.mzn

9 lines
376 B
MiniZinc

function ann: lns(var int: obj, array[int] of var int: vars,
int: iterations, float: destrRate, int: exploreTime) =
repeat (i in 1..iterations) ( scope(
if has_sol() then post(uniformNeighbourhood(vars,destrRate))
else true endif /\
time_limit(exploreTime, minimize_bab(obj)) /\
commit() /\ print()
) /\ post(obj < sol(obj)) );