I have a robot simulation to run many times in order to collect statistics. In particular, I want to run the simulation with 1,2,...,10 robots, and each of them must be run 30 times, so I thought to pass the desired number of robots via the main args
.
Since the simulation is very memory-intensive, I want to run them sequentially, one after another(otherwise OutOfMemory Exception is very likely). I am working in Java/Eclipse, and under run configurations one can specify arguments to be passed to the program as if it was called by the shell, but I haven't found any way to automate the process.
In short, what I would like to do is the following:
for i=1 to 10:
for j=1 to 30:
run simulation_instance(i)
Each run of the program has to be independent. I have tried using the Launch Group Option, but it is way too less configurable.
Are you aware of any other alternative?