From bd4a88bb4e7eb4de7d42143090fae42fcc4e0bc3 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 19 Apr 2021 16:17:52 +0200 Subject: [PATCH] Revert "Remove iteration print statement" This reverts commit 9ef41abe46333523f6bc45fdee2a65738afb37e2. --- src/local_search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/local_search.py b/src/local_search.py index 0ac2247..cd64486 100644 --- a/src/local_search.py +++ b/src/local_search.py @@ -44,7 +44,8 @@ def get_random_solution(previous, data): def explore_neighbourhood(element, data, max_iterations=100000): neighbourhood = [] neighbourhood.append(element) - for _ in range(max_iterations): + for i in range(max_iterations): + print(f"Iteration {i}") previous_solution = neighbourhood[-1] neighbour = get_random_solution(previous=previous_solution, data=data) if neighbour.equals(previous_solution):