From c64ad97f035e1016b5bd7a0ac35a60903fa137ad Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 18 Nov 2019 09:42:42 +0100 Subject: [PATCH] local --- src/local_search.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/local_search.py b/src/local_search.py index 4ee55ac..98b290a 100644 --- a/src/local_search.py +++ b/src/local_search.py @@ -46,7 +46,8 @@ class TwoOpt: return - old_link_len + changed_links_len @staticmethod - def loop2opt(solution, instance, max_num_of_uncrosses=400): # Iterate step2opt max_iter times (2-opt local search) + def loop2opt(solution, instance, + max_num_of_uncrosses=10000): # Iterate step2opt max_iter times (2-opt local search) """ @param solution: @@ -137,7 +138,7 @@ class TwoDotFiveOpt: @staticmethod def loop2dot5opt(solution, instance, - max_num_of_changes=400): # Iterate stoep2opt max_iter times (2-opt local search) + max_num_of_changes=10000): # Iterate stoep2opt max_iter times (2-opt local search) """ @param solution: