Ricardo Mühlbauer wrote:
> 2) Is it possible to make Omnetpp to change the parameter number of
> vehicles in the flow command of SUMO before each simulation repeat?
> For example, repeat #1: 10 vehicles, repeat #2: 50 vehicles, and so on.
Unfortunately, no. In general, you will need to use one SUMO route
definition (.rou.xml) file per vehicle density -- and, consequently,
also one SUMO .sumocfg file and one SUMO .launchd.xml file per vehicle
density.
Starting with Veins 3, there is also an alternative way: you can let
Veins generate new vehicles by setting a "numVehicles" parameter [1] to
achieve a certain vehicle density. This way, you do not need to
pre-configure any vehicles or flows in the .rou.xml file, only some
routes, from which Veins will randomly choose one.
Best,
Christoph
[1]
https://github.com/sommer/veins/blob/veins-3a3/src/modules/mobility/traci/TraCIScenarioManager.cc#L289
--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/