Cannot solve due to algebraic loop involving
Mostrar comentarios más antiguos
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 ?
Respuestas (1)
Selena Mastrodonato
el 11 de Mayo de 2023
0 votos
8 comentarios
FAIZ UL HASSAN
el 11 de Mayo de 2023
Editada: FAIZ UL HASSAN
el 11 de Mayo de 2023
Selena Mastrodonato
el 11 de Mayo de 2023
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
el 11 de Mayo de 2023
Selena Mastrodonato
el 11 de Mayo de 2023
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
el 12 de Mayo de 2023
Selena Mastrodonato
el 12 de Mayo de 2023
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
el 12 de Mayo de 2023
Selena Mastrodonato
el 12 de Mayo de 2023
Could you please attach the model?
Categorías
Más información sobre Configure Simulation Conditions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
