Simulink Algebraic Loop Error

13 ビュー (過去 30 日間)
Muthappa
Muthappa 2011 年 9 月 30 日
コメント済み: mona aljeagdaf 2018 年 10 月 20 日
Hi, I have a large simulink file with many blocks in it and also have few embedded matlab blocks. when I am running my simulation, I get the following error:
Simulink cannot solve the algebraic loop containing 'Embedded MATLAB Function1' at time 0.071977706326772972 using the TrustRegion-based algorithm due to one of the following reasons: the model is ill-defined i.e., the system equations do not have a solution; or the nonlinear equation solver failed to converge due to numerical issues. To rule out solver convergence as the cause of this error, either a) switch to LineSearch-based algorithm using set_param(AlgebraicLoopSolver','LineSearch') b) reducing the ode45 solver RelTol parameter so that the solver takes smaller time steps. If the error persists in spite of the above changes, then the model is likely ill-defined and requires modification.
I checked the embedded block where it says the problem is, but my code seems fine. Is there a way I could solve or debug this problem? I do not have any idea how to go about it further in debugging?
Any suggestions on debugging this error would be highly appreciated.
Thanks!!
  3 件のコメント
Aniruddha  Narkhede
Aniruddha Narkhede 2017 年 11 月 8 日
Hello,
Where did you add the delay block?
mona aljeagdaf
mona aljeagdaf 2018 年 10 月 20 日
is he know whree diss add the dalay

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

回答 (1 件)

Pawel Blaszczyk
Pawel Blaszczyk 2011 年 9 月 30 日
If you have a feedback loop, you can try to place unit delay block on feedback line. Next you can also try to reduce the step size Or you can try to follow Simulink suggestions :-)
  1 件のコメント
CEDRIC baes
CEDRIC baes 2014 年 5 月 8 日
編集済み: CEDRIC baes 2014 年 5 月 8 日
Hello, I'm making a computal model of a thermoelectric genererator. I have a similar error indication of Simulink. I tried to put a Unit Delay before my Matlab Function but the problem still persists. I'm making a computal model of a thermoelectric genererator. Any idea what the problem is ? Or what do I do wrong ?

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by