From 9ef41abe46333523f6bc45fdee2a65738afb37e2 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 19 Apr 2021 15:53:13 +0200 Subject: [PATCH] Remove iteration print statement --- 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 cd64486..0ac2247 100644 --- a/src/local_search.py +++ b/src/local_search.py @@ -44,8 +44,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) if neighbour.equals(previous_solution):