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

12 lines
410 B
MiniZinc

array[1..n] of var 1..n: x; % decision variables
var int: cost; % objective function
% --- some constraints defining the problem ---
% The user-defined LNS strategy
predicate my_lns() = basic_lns(uniform_neighbourhood(x, 0.2));
% Solve using my_lns, restart every 500 nodes, overall timeout 120 seconds
solve ::on_restart("my_lns") ::restart_constant(500) ::timeout(120)
minimize cost;