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!
