From f534521410bf318e56ef495e9058273558c7e9ba Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 11 Apr 2021 22:30:28 +0200 Subject: [PATCH] Set distance of the first solution to zero --- src/processing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/processing.py b/src/processing.py index b749311..fac1641 100644 --- a/src/processing.py +++ b/src/processing.py @@ -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