Hello,
the easiest way to measure performance is via the aggregated waitingTime of
the edgeData output (
http://sumo.dlr.de/wiki/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures)
or the timeLoss for each vehicle in the tripinfo output (
http://sumo.dlr.de/wiki/Simulation/Output/TripInfo)

However, if you need these values at runtime I'm afraid you will have to
aggregate the values manually by checking the speed of all running vehicles.

regards,
Jakob

2015-06-13 17:21 GMT+02:00 François Vaudrin <[email protected]>:

> Hi,
>
> I try to find a way to calculate the overall performance of a scenario of
> traffic lights based on waiting time but I do not see which function to
> use. I thought to use the function getWaitingTime(edgeID)
> but I understand that this function adds the waiting time of each vehicle
> every second until it move. The number not only contains the waiting time
> of this step but also for previous steps.  So I can not add these waiting
> times at every step to calculate the total waiting time of the simulation.
> Maybe I do not see the problem, did anyone have an idea?
>
> getWaitingTime(vehID)
>
>
> The waiting time of a vehicle is defined as the time (in seconds) spent with a
> speed below 0.1m/s since the last time it was faster than 0.1m/s.
>
> (basically, the waiting time of a vehicle is reset to 0 every time it moves).
>
>
> Thank you
>
> François
>
>
> ----------------------------------------------------------------------------------------------------------------------------
>
> Maybe I can use getCO2Emission(edgeID) to have a measurement of the
> effectiveness of a scenario. I guess that more CO2 Emission mean more
> waiting time.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to