We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f06ae83 commit 7c0d55fCopy full SHA for 7c0d55f
TapWork.py
@@ -29,8 +29,9 @@ def get_taps_demand(taps,houses):
29
if tap_dist < lowest_distance:
30
lowest_distance = tap_dist
31
house_tap = taps.index(tap)
32
+ lowest_distance = lowest_distance / 1000
33
# weight the distance^2 by the size to give a score
- houses_tap.append((house_tap,((lowest_distance**4)*(house[0]**2))/ 10000))
34
+ houses_tap.append((house_tap,((lowest_distance**4)*(house[0]**2))/ 1000))
35
36
for tap in houses_tap:
37
tap_demand[tap[0]]+=tap[1]
0 commit comments