How can I run different experiments for the same network from the same .ini file?

55 views Asked by At

I am simulating a datacenter topology in omnet++. I have a network called Test with different parameters. So, I need to run two experiments for this network.

[Net]
network = Test
*.fwdAlgorithm = "sp"

[Net]
network = Test
*.fwdAlgorithm = "ksp"

So I need to run experiments with different algorithms. However, it is giving me duplicate key. I am not able to do it in this way. Any idea to make this happen ? your help would be highly appreciated.

1

There are 1 answers

0
Jerzy D. On

In omnetpp.ini set the following content:

[Net]
network = Test
*.fwdAlgorithm = ${"sp", "ksp"}

Then during starting a simulation you may choose desired configuration:

enter image description here

Reference: OMNeT++ Simulation Manual, 10.4 Parameter Studies