Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Flow Probability on Routes File

When combining "probability" and "number"  a vehicle will be emitted randomly with the given probability each second until the specified number is reached.
Thus the end time of the flow is itself a random variable.
The end time of the simulation can only be used to end this process prematurely.
If you need a fixed number of vehicles, randomly distributed in a fixed time frame, either
- use duarouter with option --randomize-flows to preprocess your route files (use flows specified with 'end' and 'number') or
- generate your traffic with randomTrips.py using option --random-depart (https://sumo.dlr.de/docs/Tools/Trip.html#insertion_distribution)

Am Do., 5. Mai 2022 um 18:45 Uhr schrieb Fabio Lamanna <fblamanna@xxxxxxxxx>:
I am confused about get random departures of given flows in a fixed time period (3600 seconds). I defined the flow over route in the routes files as:

<flow id="f_1" begin="0.00" route="r_1" number="100" probability="0.50"/>

Following the indications in:
https://sumo.dlr.de/docs/Simulation/Randomness.html#flows_with_a_fixed_number_of_vehicles

I expected that SUMO should distribute 100 vehicles over the fixed time period (defined in the sumoconf file) with the given probability. But this is not true since the amount of vehicles that SUMO generates is far more than 100. Is there something I missed in the configuration? My goal is to insert the number of vehicles over a route in a hour with different probabilities of insertion.

Thanks

--
“Our sweetest songs are those that tell of saddest thought“ (Shelley)
_______________________________________________
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