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

3 visualizaciones (últimos 30 días)
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?

Respuestas (1)

Michelle Wu
Michelle Wu el 30 de En. de 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