Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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.

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.

There are 0 guests and 0 other users also viewing this topic