Google Groups

Re: [Omnetpp-l] ****How to repeat simulations with the same results*****


najam sama Apr 15, 2012 2:16 AM
Posted in group: omnetpp
hi
i face a problem to create ring topology please help me

On Sun, Apr 15, 2012 at 1:36 AM, Alfonso Ariza Quintana <aari...@hotmail.com> wrote:
If the code don’t have errors, the simulation, with the same seed and with the same simulation parameter will have the same results.
 
Sent: Friday, April 13, 2012 5:45 PM
Subject: Re: [Omnetpp-l] ****How to repeat simulations with the same results*****
 
Thanks for your answer. I added the ! repetition to the end of the bracket but still the results are not repeatable.

Lets make the problem simpler. What do I need to add into my .ini file to force the whole simulation to use one random number generator with the same seed so my results are repeatable? Currently I cannot generate any repeatable results.
Can you please help me with this first?
 
Regards,
Shahin
 
 
 
On Fri, Apr 13, 2012 at 2:36 PM, Leonardo Maccari <leonardo...@disi.unitn.it> wrote:
On 13/04/2012 13:21, shahin wrote:
> Hi,
>
> There is another option explained in the manual "seed-set =
> ${5,6,8..11}", which when I use it, I end up with this error "<!> Error
> during startup: Scenario generator: no such variable: ${-1--1-0}
> "

you may be missing the "! repetition" keyword:

http://omnetpp.org/doc/omnetpp/manual/usman.html#sec946

When I need something like that I use a script as the following:

==============================
rm rng.ini
echo "[General]" >> rng.ini
echo "num-rngs = 9" >> rng.ini

RUNS=30
LINE="$RANDOM"

for i in `seq 1 $RUNS`; do
LINE=$LINE", $RANDOM";
done;
echo "seed-1-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-2-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-3-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-4-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-5-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-6-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-7-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-8-mt=\${$LINE!  repetition}" >> rng.ini
echo "seed-0-mt=\${$LINE!  repetition}" >> rng.ini
==============================

and then include rng.ini

--
Leonardo Maccari, Post-doc researcher@University of Trento
Tel: +39 0461 285323, project website: www.pervacy.eu

--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp

--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp