Simulink model output heavily dependent on relative tolerance

4 ビュー (過去 30 日間)
Thomas
Thomas 2025 年 1 月 14 日
回答済み: Fangjun Jiang 2025 年 1 月 14 日
I have a relatively large Simulink model that I am validating using a data set. This model is using the ECEF 6DOF block with only a gravitational force as the input.
I have observed that the Simulink model output varies considerably depending on the relative tolerance selected (ranging from 1e-5 to 1e-12), with the output approaching the data set values as the relative tolerance passes below 1e-10. Decreasing the relative tolerance has a significant negative impact on model runtime, so I would like to keep the relative tolerance at a reasonable value while maintaining accuracy in the model results.
Is a significant variation with changing relative tolerance (below the obvious candidates such as >= 1e-5) expected for a typical Simulink model?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2025 年 1 月 14 日
Not typical but is for a stiff system. Choose a stiff solver.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by