Set distance of the first solution to zero
This commit is contained in:
parent
2fe874e733
commit
f534521410
|
@ -13,6 +13,7 @@ def get_first_solution(n, data):
|
|||
)
|
||||
furthest_index = distance_sum["distance"].idxmax()
|
||||
furthest_row = distance_sum.iloc[furthest_index]
|
||||
furthest_row["distance"] = 0
|
||||
return furthest_row
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue