Revert "Remove iteration print statement"

This reverts commit 9ef41abe46.
This commit is contained in:
coolneng 2021-04-19 16:17:52 +02:00
parent 9ef41abe46
commit bd4a88bb4e
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 1 deletions

View File

@ -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):