Hi Jakob,
I've created the vehicles file running sumo with --vehrouter-output and now I get this error:
Step #84600.00 (1534ms ~= 0.65*RT, ~9714.47UPS, vehicles TOT 49272 ACT 14902 BUF 571842) ^M
Simulation ended at time: 84600.00
Reason: The final simulation step has been reached.
Performance:
Duration: 60435.81s
Real time factor: 1.39983
UPS: 12824.598592
Vehicles:
Inserted: 49272 (Loaded: 621114)
Running: 14902
Waiting: 571842
Teleports: 13175 (Collisions: 14, Jam: 9812, Yield: 2463, Wrong Lane: 886)
Begin time:0
Traceback (most recent call last):
File "/home/u7262/sumo-1.9.2/tools/tlsCycleAdaptation.py", line 447, in <module>
main(options)
File "/home/u7262/sumo-1.9.2/tools/tlsCycleAdaptation.py", line 427, in main
groupFlowsMap = optimizeGreenTime(tl, groupFlowsMap, phaseLaneIndexMap, currentLength, options)
File "/home/u7262/sumo-1.9.2/tools/tlsCycleAdaptation.py", line 342, in optimizeGreenTime
(critialFlowRateMap[i] / sum(critialFlowRateMap.values())) - options.yellowtime + options.losttime
ZeroDivisionError: float division by zero
Why is this happening? After some code checking I've seen that critical flow ratios (critialFlowRateMap) depends on: maxFlow, which is set to 0 in the code; satFlows, which is equal to 3600. / options.satheadway; and phaseLaneIndexMap which I think is related with green phases. There is anything I can or should change to get better results?
As you can see, barely an 8% of the total vehicles are inserted into the network, and I'm almost positive that it is because of the jams induced by too many red-phases in most of the traffic light signals, specially at intersections due to a poor coordination of traffic light signals. It is tlsCycleAdaptation.py the right tool to fix this? If not, what are my options?
Best regards,
Alejandro.