Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Statistics

For travel times see https://sumo.dlr.de/docs/Simulation/Output/StatisticOutput.html (https://sumo.dlr.de/docs/Simulation/Output/StatisticOutput.html#vehicletripstatistics)
For average number of stops you can use https://sumo.dlr.de/docs/Simulation/Output/TripInfo.html (attribute waitingCount), 
To get the average waitingCount over all trips, call 
   python sumo/tools/output/attributeStats.py tripinfos.xml -a waitingCount -x result.xml
In fact you can also call
  python sumo/tools/output/attributeStats.py tripinfos.xml -a waitingCount,duration -x result.xml
to get both averages from the same simulation output file (tripinfos.xml)

Am Do., 27. Juni 2024 um 17:21 Uhr schrieb Andreas Lenhardt via sumo-user <sumo-user@xxxxxxxxxxx>:
Hello,

I would like to collect some statistics after/during running my reinforcement learning.
For the vehicles in my network I need to collect these values:
  • average travel times
  • average number of stops
Unfortunately, I am not sure how to get these measurements correctly and in an efficient way.
Should I use subscriptions here?
The ideal solution would be collecting these values once the simulation has finished running, and then check how often the vehicles stopped and how long they were travelling and then build the mean.
Are there any built-in functions for these variables for vehicles?

Thanks and kind regards

--
Mit besten Grüßen
Andreas Lenhardt
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top