I am working on a project to optimize traffic light control for an isolated intersection using SUMO with TraCI in Python. I would like to minimize the total delay for all vehicles with respect to how they would drive if they never had to wait for other traffic or traffic lights.
I saw that it's possible to output the timeloss
for each vehicle once it has reached its destination by using --tripinfo-output <FILE>
. Is there also a built-in method to obtain the current value of average or total delay?