Search code examples
sumo

Repeat a simulation with different seed values in SUMO


I want to run a particular simulation for 100 times with different seed values and get each output separately into 100 files. Although I found how to set seed value I am not sure how to do repeats. I would really appreciate if someone can help.


Solution

  • There is no way to do this inside sumo, so it really depends on your platform / personal preferences. On Linux the easiest way is probably a shell script, cross platform a python script could be the best way (provided you have python):

    import subprocess
    for i in range(100):
        subprocess.call(["sumo", "-c", "my.sumocfg", "--random", "--output-prefix", str(i)])