Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
seppeV2 committed May 6, 2022
1 parent d50c010 commit beb7a45
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 203 deletions.
4 changes: 1 addition & 3 deletions distanceMatrix.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from tracemalloc import start
import pandas as pd
import numpy as np
from generateClients import generateClients
from math import sin, cos, sqrt, atan2, radians
import time

Expand Down Expand Up @@ -131,7 +130,6 @@ def newContractTo(clientNow, clientNext,cityNames):
#directly to client one to client
time += timeBetweenPlaces(clientNow['Place'], clientNext['Place'], cityNames)
elif stateNext == 4:
print(clientNext['Place'])
#new contract to switch
#first to depot after new container
time+= timeBetweenPlaces(clientNow['Place'], 'Kampenhout', cityNames)
Expand Down Expand Up @@ -700,5 +698,5 @@ def getServiceTime(client, cityNames, wpf):
return round(serviceTime)

start = time.time()
matrix = createDistanceMatrix('clientsTest.csv', 'belgian-cities-geocoded.csv', 'WPF.csv')
matrix = createDistanceMatrix('clients30.csv', 'belgian-cities-geocoded.csv', 'WPF.csv')
end = time.time()
Loading

0 comments on commit beb7a45

Please sign in to comment.