order of iteration variables and repetitions

127 views
Skip to first unread message

Skidder

unread,
Mar 4, 2011, 12:35:04 PM3/4/11
to omnetpp
Hi group,

I'm running a set of (rather lengthy) experiments for two iteration
variables (numHosts and packetsPerSecond) and want to have several
replications per scenario for statistical significance.

Standard, omnetpp runs a numHosts, packetsPerSecond tuple a total of
'repetitions' times before going on to the next numHosts,
packetsPerSecond pair.

I want to change this order, first visit all scenarios once, and then
repeat this for as many repetitions as I want. In effect, I will get
results quickly and they will improve as more repetitions are carried
out and statistical significance increases.

Does anyone have a clue how I can do this?

thanks,
Martijn

Rudolf Hornig

unread,
Mar 4, 2011, 1:56:43 PM3/4/11
to omn...@googlegroups.com
By default omnet uses the repetition counter as the inner most loop (as you already know), but you can define your own repetition counter like:

seed-set= ${myrepetition=0..99}
**.numHosts = ${nh=0..5}
**.packetsPerSecond = ${pps=5,50,500,5000}

Note that you should NOT use the 'repeat' config key here (so omnet will think you are doing only a single repetition) and the seed-set must be the first key with variable def. This way you run each tuple with several different seeds.

Take care during the analysis that you should average your values for different myrepetition values.
Rudolf

ps: actually setting repetition=10 is the same as placing seed-set= ${repetition=0..9} at the end of the config section.


--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.


Skidder

unread,
Mar 7, 2011, 2:59:17 AM3/7/11
to omnetpp
Great! Thanks Rudolf.

Martijn
Reply all
Reply to author
Forward
0 new messages