- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Batch simulation
Batch simulation
Batch simulation
Hello everyone,
I have a model and I want to perform a batch simulation of the same model for a number of different initial configurations (initial values of variables and parameters). My goal here is to write a script (.mos file) that launch all simulations and than store results of each simulation separately so we can recognize which file belongs to which simulation. So what is the syntax for changing initial values inside the script ?
Thank you.
- sjoelund.se
- 1700 Posts
Re: Batch simulation
Thank you it works just fine. I want to mention that in Windows you have to omit the "./" before the name of executable file in the "system" command. Furthemore the "-r" option not only change result file name, but also the file path. in other words you can change file destination.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Batch simulation