Cannot solve due to algebraic loop involving
古いコメントを表示
Cannot solve algebraic loop involving 'Model_Test/Controller' because it consists of blocks that cannot be assigned algebraic variables, such as blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems. Consider breaking the algebraic loop.
Component:Simulink | Category:Model error
Component:Simulink | Category:Model error
How to fix this error ?
回答 (1 件)
Selena Mastrodonato
2023 年 5 月 11 日
0 投票
8 件のコメント
FAIZ UL HASSAN
2023 年 5 月 11 日
編集済み: FAIZ UL HASSAN
2023 年 5 月 11 日
Selena Mastrodonato
2023 年 5 月 11 日
Try to change the solver type in the settings. There is a similar question here: https://it.mathworks.com/matlabcentral/answers/451575-what-does-the-nonlinear-iteration-is-not-converging-error-mean
FAIZ UL HASSAN
2023 年 5 月 11 日
Selena Mastrodonato
2023 年 5 月 11 日
To understand where the fix is needed, try to insert some labels on the signals of main interest, and check if one or more of them is diverging to +/-infinity: switching from variable step size to fixed step size in your simulation settings may help you overcome all these errors.
Add also a picture of your model if the problem still persists. You probably know where the problem should reside, just provide some numeric information when needed.
FAIZ UL HASSAN
2023 年 5 月 12 日
Selena Mastrodonato
2023 年 5 月 12 日
Which is the initial condition? Did you also try ode15s (stiff/NDF) with variable step?
Anyway, you should debug the model with Simulink debugger to identify where the singularity occurs (an Inf or NaN).
Maybe it causes an algebraic loop, so you could try also to insert a unit delay block
I suggest you to have a look to this answers also: https://www.researchgate.net/post/How_can_I_can_correct_an_integrator_error_under_MATLAB_Simulink .
FAIZ UL HASSAN
2023 年 5 月 12 日
Selena Mastrodonato
2023 年 5 月 12 日
Could you please attach the model?
カテゴリ
ヘルプ センター および File Exchange で Configure Simulation Conditions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
