From b937b41853e2faf9e9b703d36347b6a9d41f3335 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 19 Apr 2021 20:27:56 +0200 Subject: [PATCH] Revert "Revert "Remove iteration print statement"" This reverts commit bd4a88bb4e7eb4de7d42143090fae42fcc4e0bc3. --- src/local_search.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/local_search.py b/src/local_search.py index bf11982..8cff412 100644 --- a/src/local_search.py +++ b/src/local_search.py @@ -28,8 +28,7 @@ def get_random_solution(previous, data): def explore_neighbourhood(element, data, max_iterations=100000): neighbourhood = [] neighbourhood.append(element) - for i in range(max_iterations): - print(f"Iteration {i}") + for _ in range(max_iterations): previous_solution = neighbourhood[-1] neighbour = get_random_solution(previous=previous_solution, data=data) neighbourhood.append(neighbour)