Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Question about the maximum number of vehicles of each vType

You can either
- define the flows with attribute 'number'.  (There are several possibilities for varying the headway patterns: https://sumo.dlr.de/docs/Simulation/Randomness.html#flows_with_a_fixed_number_of_vehicles) or
- define <calibrator> elements for each vehicle type that limit the number of passing vehicles at a specific location: https://sumo.dlr.de/docs/Simulation/Calibrator.html (use calibrator attribute vTypes to determine which type shall be counted).

If you want to generate a scenario based on a finite number of routes which obeys given traffic counts (also type-specific counts) you might find this useful:  https://sumo.dlr.de/docs/Tools/Turns.html#routesamplerpy

regards,
Jakob

Am Mi., 6. Apr. 2022 um 12:21 Uhr schrieb Nyberg Daniel via sumo-user <sumo-user@xxxxxxxxxxx>:

Hello!

 

Is there any way to restrict the number of vehicles for a certain vehicle type?

 

Information:

I have different flowRoutes defined with different parameters for desired vehicles per hour, and depending on the route I have assigned different vehicle types. Thus, this will cause vehicles to enter the simulation according to the assigned value for vehicles per hour.

But what I would like to do is to control the maximum number of vehicles allowed in the simulation for each type.

 

The reason for this is because the situation I try to simulate have a finite number of vehicles for each type, and the aim is to understand if it will be possible to use these routes to satisfy the desired number of vehicles per hour.

But when using the model described above a lot of vehicles will be introduced which doesn’t exist in reality. Which in turn could cause an unrealistic traffic situation.

 

Thank you in advance

Daniel Nyberg

_______________________________________________
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