Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] change vehicle arrival rate on the fly from traci

There is no direct way to manipulate flows. You can delete individual flow vehicles to decrease the flow and you can add additional vehicles, using an existing routeID to increase traffic using vehicle.remove and vehicle.add.
An alternative would be to define calibrators in xml and manpulate them via TraCI:
https://sumo.dlr.de/docs/Simulation/Calibrator.html
https://sumo.dlr.de/pydoc/traci._calibrator.html#CalibratorDomain-setFlow

regards,
Jakob

Am Mo., 22. Nov. 2021 um 19:03 Uhr schrieb Hervé Diedie <hervediedie@xxxxxxxxx>:
Actually, I start the simulation campaign by loading  .rou.xml file  containing all vehicle routes types  flows vtype distribution etc.
and i want to change traffic or arrival rate  on the course of the latter simulation from Traci
without adding new vehicles ; since a repeated vehicle emissions ("flow"s) is defined in the .rou.xml file.
Any solution ?

best regards.

Le lun. 22 nov. 2021 à 12:56, Jakob Erdmann <namdre.sumo@xxxxxxxxx> a écrit :
Yes. By adding more vehicles using traci.vehicle.add: https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#add_alias_addfull_0x85

Am Mo., 22. Nov. 2021 um 11:25 Uhr schrieb Hervé Diedie <hervediedie@xxxxxxxxx>:
Can vehicles' arrival rate on a lane be changed during a simulation from traci ?

best regards.
_______________________________________________
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