Skip to main content

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

It's just a rounding error:
consider 10 flows with 14 vehsPerHour.
You could compute the expected number of vehicles within 100s as 10 * 14 * (3600 / 100) = 3.89
However, each flow outputs exactly 1 vehicles for a total of 10.
In short, you will always have to factor in an error about as big as the number of flows (144 in your case).
If you run your simulation for a longer time, the error becomes negligible.

You could also switch to probabilistic flows with probability= vehsPerHour/3600. This would avoid the systematic error from rounding upwards.

regards,
Jakob

Am Do., 14. Mai 2020 um 15:55 Uhr schrieb Jakob Erdmann <namdre.sumo@xxxxxxxxx>:
I can confirm that something unexpected is going on. I'll let you know when I figure it out.

Am Do., 14. Mai 2020 um 13:20 Uhr schrieb Jose Monreal Bailey <jmonreal@xxxxxxxxx>:
That's correct, and the total number of vehicles that I get loaded in that interval are 268.
I'm sharing a screenshot of the GUI.

On Thu, 14 May 2020 at 12:07, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Maybe you sent me the wrong files? Your input has 144 flows all running between time 100 and 200 with an average value of vehsPerHour of 50.22 and a sum of ~7231 vehsPerHour.

You can check this with:
sumo/tools/output/attributeStats.py --element flow --attribute vehsPerHour scenario.rou.xml
flow vehsPerHours: count 144, min 9.00 (routeFlow_40), max 462.00 (routeFlow_36), mean 50.22 Q1 18.00, median 28.00, Q3 42.00

sumo/tools/output/attributeStats.py --element flow --attribute begin scenario.rou.xml
flow begins: count 144, min 100.00 (routeFlow_0), max 100.00 (routeFlow_0), mean 100.00 Q1 100.00, median 100.00, Q3 100.00

sumo/tools/output/attributeStats.py --element flow --attribute end scenario.rou.xml
flow ends: count 144, min 200.00 (routeFlow_0), max 200.00 (routeFlow_0), mean 200.00 Q1 200.00, median 200.00, Q3 200.00



Am Do., 14. Mai 2020 um 12:57 Uhr schrieb Jose Monreal Bailey <jmonreal@xxxxxxxxx>:
Please find the simulation scenario.

On Thu, 14 May 2020 at 11:34, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
This should not happen. Please post your complete traffic input definition.

Am Do., 14. Mai 2020 um 11:41 Uhr schrieb Jose Monreal Bailey <jmonreal@xxxxxxxxx>:
Hey everyone,

I have the property VehsPerHour set to a certain number, the start and end flow its for an hour, and the simulation time is longer.
However, I get more vehicles inserted in the hour, how is this calculated? Is there a way to know before hand how many vehicles will be inserted in the simulation?

Best regards,
Jose
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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