How to increase the speed of calculating a simple second-order equation in Simulink?

2 ビュー (過去 30 日間)
Erik Erik
Erik Erik 2024 年 3 月 18 日
回答済み: Drishti 2024 年 8 月 9 日
Hello! Problem with calculation speed in Simulink.
I came across a video on YouTube comparing Simulink and another program. The Simulink solver spends an unreasonable amount of time solving the example I've attached below. For values of the constant greater than 1e7, the integration step decreases too much. Please tell me, is it possible to somehow increase the speed of calculations?
I tried different solvers, but all attempts failed, the problem took too long to solve.

回答 (1 件)

Drishti
Drishti 2024 年 8 月 9 日
Hi Erik,
It seems like you are facing an issue in the speed of Simulink environment when constant value goes beyond 1e7.
On reproducing the code, I faced similar issue. To resolve that issue, following work arounds are suggested:
  • The simulation mode can be changed between Normal, Accelerator and Rapid Accelerator.
  • Rapid Accelerator mode improves simulation speed by running as a standalone executable which, if possible, runs on a core different from where the MATLAB process runs.
For further information, you can refer to the below mentioned MATLAB Answer as well as the MATLAB Documentations
I hope it helps.

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by