Set distance of the first solution to zero

This commit is contained in:
2021-04-11 22:30:28 +02:00
parent 2fe874e733
commit f534521410

View File

@@ -13,6 +13,7 @@ def get_first_solution(n, data):
) )
furthest_index = distance_sum["distance"].idxmax() furthest_index = distance_sum["distance"].idxmax()
furthest_row = distance_sum.iloc[furthest_index] furthest_row = distance_sum.iloc[furthest_index]
furthest_row["distance"] = 0
return furthest_row return furthest_row