Simulink slows down significantly after +/- 150 simulations on Linux. This problem does not happen on Windows

1 view (last 30 days)
Tycho Brug
Tycho Brug on 21 Jan 2017
Answered: Michelle Wu on 30 Jan 2017
I have a simulation which I need to run in a for loop (for optimization purposes). On Windows this works fine, however, if I switch to a linux system, runtime of the simulation increases a lot after about 150 runs. Does anyone have a solutions?

Answers (1)

Michelle Wu
Michelle Wu on 30 Jan 2017
By saying you have a simulation in a for loop, I am assuming that you are using Simulink together with MATLAB.
There are many possible causes which could impact simulation speed, but generally speaking the speed is governed by the system (i.e., processor, RAM, amount of swapping that is occurring, etc.) A few things to consider with regard to simulation speed include graphics engine speed, CPU speed, and amount of memory. Thus, it could be that your Linux machine has less computing power or less memory than your Windows machine, which is causing the slow simulation.
Please also refer to the following MATLAB Answers post for some tips and tricks on how to speed up simulations:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by