I am trying to get different results for the code I have written in veins. I would like to run simulation multiple times to get average of all result. Issue I am facing is when I use repeat=5
i get exact same result in all 5 runs. I want to regenerate the network each time it repeats. I have written code to place RSUs in random positions but i get same result. What I can try?
Asked
Active
Viewed 1,145 times
1

Sam1324
- 387
- 2
- 13
2 Answers
1
Frist of all, see the TicToc Tutorial.
For your issue, you need to set a seed for each run as the OMNet Manual show
For me, the best way is set seed-set
as the repetition number(repeat
)
seed-set = ${repetition}

João Batista
- 128
- 8
-
Hi there, I have tried it. Seed-Set doesn't change anything for me. Always I get same answer. – Sam1324 Apr 26 '17 at 07:46
-
i guess i missed something.. working now.. thank you – Sam1324 Apr 27 '17 at 10:24
1
To start all repetitions of a simulation go to Run Configurations
and set Cmdenv
as User interface
and:
- for
OMNeT++
5.0 or older: set*
(asterisk) inRunnumber
- for
OMNeT++
5.1: set0..4
inRun(s)
As a result you will obtain five set of results.
Optionally you can choose more than one processes to run in parallel or CPUs/processes to use in Run Configurations
.

Jerzy D.
- 6,707
- 2
- 16
- 22