Remove iteration print statement
This commit is contained in:
parent
8b5029645f
commit
9ef41abe46
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue