Revert "Revert "Remove iteration print statement""
This reverts commit bd4a88bb4e
.
This commit is contained in:
parent
097ed9b52a
commit
b937b41853
|
@ -28,8 +28,7 @@ def get_random_solution(previous, data):
|
||||||
def explore_neighbourhood(element, data, max_iterations=100000):
|
def explore_neighbourhood(element, data, max_iterations=100000):
|
||||||
neighbourhood = []
|
neighbourhood = []
|
||||||
neighbourhood.append(element)
|
neighbourhood.append(element)
|
||||||
for i in range(max_iterations):
|
for _ in range(max_iterations):
|
||||||
print(f"Iteration {i}")
|
|
||||||
previous_solution = neighbourhood[-1]
|
previous_solution = neighbourhood[-1]
|
||||||
neighbour = get_random_solution(previous=previous_solution, data=data)
|
neighbour = get_random_solution(previous=previous_solution, data=data)
|
||||||
neighbourhood.append(neighbour)
|
neighbourhood.append(neighbour)
|
||||||
|
|
Loading…
Reference in New Issue