Commit d20f3777 authored by Bachir Lachguel's avatar Bachir Lachguel 🍣
Browse files

Add some comments and more

parent 9d5e5468
__pycache__
......@@ -5,7 +5,8 @@ class Car:
self.id = id
self.arrival = uniform(420,540)
self.load = uniform(5000,10000)
self.load_time = (self.load/7400)*60
self.load_time = (self.load/7400)*60 #À MODIFIER POUR PRENDRE EN COMPTE LA VITESSE DE RECHARGE DE LA BORNE
# PLUS PRENDRE EN COMPTE LA PUISSANCE DE CHARGE
self.departure = uniform(1080,1200)
car1 = Car(0)
......
......@@ -42,6 +42,6 @@ with open(path, "r", encoding='utf-8-sig') as conso:
pu.append(value/moy)
print(len(temps))
print(len(total_with_cars[:48]))
print(len(total_with_cars))
plt.plot(temps,total_with_cars[:48])
plt.show()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment