run 3600
This commit is contained in:
parent
1f44813b31
commit
343b5e8a37
34
rdpt_polytech_3600.rou.xml
Normal file
34
rdpt_polytech_3600.rou.xml
Normal file
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- generated on 2022-04-26 16:20:25 by Eclipse SUMO netedit Version 1.12.0
|
||||
-->
|
||||
|
||||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
|
||||
<flow id="f_0" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E2 30807871 26745293#0 318654808 941887916 600325951#0 600325949 600325948 143886851#0 26745142 E3"/>
|
||||
</flow>
|
||||
<flow id="f_1" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E2 30807871 26745293#0 318654808 941887917#0 -143879980 -E1"/>
|
||||
</flow>
|
||||
<flow id="f_2" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E2 30807871 26745293#0 318654808 941887916 600325951#0 143879989#0 318654806#0 -E0"/>
|
||||
</flow>
|
||||
<flow id="f_3" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E0 -318654806#1 318654807#0 600325948 143886851#0 26745142 E3"/>
|
||||
</flow>
|
||||
<flow id="f_5" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E0 -318654806#1 318654807#0 600325948 143886851#0 301625138 -30807871 -E2"/>
|
||||
</flow>
|
||||
<flow id="f_6" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E0 -318654806#1 318654807#0 600325948 600325946 318654808 941887917#0 -143879980 -E1"/>
|
||||
</flow>
|
||||
<flow id="f_7" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E1 143879980 941887918#0 600325951#0 143879989#0 318654806#0 -E0"/>
|
||||
</flow>
|
||||
<flow id="f_8" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E1 143879980 941887918#0 600325951#0 600325949 600325948 143886851#0 26745142 E3"/>
|
||||
</flow>
|
||||
<flow id="f_9" begin="0.00" end="3600.00" vehsPerHour="3600.00">
|
||||
<route edges="E1 143879980 941887918#0 600325951#0 600325949 600325948 143886851#0 301625138 -30807871 -E2"/>
|
||||
</flow>
|
||||
</routes>
|
@ -8,7 +8,7 @@ def runSim(paths):
|
||||
m.fromPath(paths[0])
|
||||
cc.fromPath(paths[1])
|
||||
cc.prepareRoute()
|
||||
while cc.t < 1800:
|
||||
while cc.t < 3600:
|
||||
cc.update()
|
||||
newline = '\n'
|
||||
print(f"{paths[0]}/{paths[1]} : \ntemps d'arrêt moyen : {cc.totalStopped / cc.carsDestroyed:.2f}s/voitures \n<vitesse/vitesse max>T : {cc.speedPercentageTotal / cc.carsDestroyed:.2f} \nbacklog total : {cc.getFlowBacklog():.2f} \n {newline.join(f'{f.id} : {f.backlog(cc.t):.2f}' for f in cc.flows)} \n nombre de voitures {cc.carsDestroyed}")
|
||||
@ -26,6 +26,10 @@ paths = [
|
||||
["comp_inter.net.xml", "comp_inter.rou.xml"],
|
||||
["comp_rdp.net.xml", "comp_rdp.rou.xml"]
|
||||
]
|
||||
paths2 = [
|
||||
[poly, "rdpt_polytech_3600.rou.xml"],
|
||||
#[poly, "rdpt_polytech_burst.rou.xml"]
|
||||
]
|
||||
with Pool(nbThreads) as p:
|
||||
for l in p.map(runSim,paths):
|
||||
for l in p.map(runSim,paths2):
|
||||
print(l)
|
||||
|
Loading…
x
Reference in New Issue
Block a user