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

1 次查看(过去 30 天)
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?

回答(1 个)

Michelle Wu
Michelle Wu 2017-1-30
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:

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by