diff --git a/genetic_route.py b/genetic_route.py index 4548b42..ab7f580 100755 --- a/genetic_route.py +++ b/genetic_route.py @@ -90,7 +90,7 @@ def genetic_trace_route(graph_map, packages): population = copy.deepcopy(new_population) scores = score_all(graph_map, population) scores.sort(key=lambda x: x[1]) - print("Best route of all population in iteration " + i + 1) + print("Best route of all population in iteration " + str(i + 1)) print(scores[0][1]) scores = score_all(graph_map, population)