VEINS: simulation repeats with different seeds and change of parameters from SUMO

457 views
Skip to first unread message

Ricardo Mühlbauer

unread,
Aug 8, 2014, 6:26:49 AM8/8/14
to omn...@googlegroups.com
Hello all,
could someone please help me to answer both questions below?
 
1) How to do simulation repeats with different seeds started by Omnetpp in Cmdenv? The sumo-launchd script allows only one seed for all repeats.
For example: repeat #1: seed 12345;  repeat #2: seed 45634, and so on.
 
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.
 
Thanks a lot for your support and regards from Brazil,
Ricardo Mühlbauer.
 
 
 

Ricardo Mühlbauer

unread,
Aug 9, 2014, 1:23:58 PM8/9/14
to omn...@googlegroups.com
Hi everyone,
I have just solved the question number 01 this way:
- Define number of repeats and the seeds in Omnetpp.ini.
For example 2 repeats and seeeds 11111 and 22222 for each run:

repeat = 2
*.manager.seed = $ {11111, 22222 ! repetition}

I do not have yet the answer to question 2, that is, passing parameters for SUMO before simulations starts.

Cheers,
Ricardo. 

Christoph Sommer

unread,
Aug 21, 2014, 8:11:38 AM8/21/14
to omn...@googlegroups.com
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/

Ricardo Mühlbauer

unread,
Aug 21, 2014, 9:59:23 PM8/21/14
to omn...@googlegroups.com
Hi Christoph,
besten Dank und schöne Grüsse aus Brasilien!
Ricardo Mühlbauer.

A. dB

unread,
Feb 13, 2017, 8:57:48 AM2/13/17
to OMNeT++ Users
Hi!
I'm trying to follow your suggestion, but I still have a problem. In "TraCIScenarioManagerLaunchd" file, what should I write here:
int seed = ; // seed value to set in launch configuration, if missing (-1: current run number)
?

Thank you.
Best regards,
Armonia
Reply all
Reply to author
Forward
0 new messages