9 lines
376 B
MiniZinc
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)) );
|