Solver library while converting from Simulink to C

3 ビュー (過去 30 日間)
Kiran
Kiran 2024 年 5 月 23 日
回答済み: Mark McBroom 2024 年 6 月 6 日
Hi, How to choose, what solver library should be their in the C code which is generated using my Simulink model?
  1 件のコメント
Lokesh
Lokesh 2024 年 5 月 29 日
Hi Kiran,
Are you asking how to select the appropriate Code Replacement Library (CRL) for your Simulink model?

サインインしてコメントする。

回答 (1 件)

Mark McBroom
Mark McBroom 2024 年 6 月 6 日
The normal approach is to first select a solver that provides the best results when testing the model in simulation mode. You should then generate code with that same solver and evaulate execution speed. It the code is running on a real-time system, you'll need to make sure your code can run in real-time without exceeding it's execution budget or over-running. If the generate code is running in non-realtime, you'll need to decide if the code is running fast enough. If you need to improve the execution speed, then you'll need to change the solver and rerun simulation to determine if the new solver provides acceptable results.

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by