- for time-continuous models (which looks like to be your case), use the Transport Delay block with a very short delay (I usually take 1/10 of the system time constant)
- for time-discrete models, adds a Delay block with
Resolving Algebraic Loops in SIMULINK models
3 visualizzazioni (ultimi 30 giorni)
I have a SIMULINK model that has got two algebraic loops. In order to overcome this I have set the model configuration properties as "warning". The model runs well and has got the expected dynamics as shown in below image.
Now I need to convert this model to .exe which will be accessed by a GUI. In order to do so I have to break this algebraic loop by using a unit delay block else the build process does not execute EVEN IF the configuration properties of the simulation model has been set to "none/warning". But in the process of using a unit delay block, entire dynamics of the solution changes which shows that its a numerical error as shown in below image..
I request, somebody please suggest a suitable solution in dissolving this algebraic loop error without changing the dynamics of the model.
Nicolas B. il 27 Nov 2019
Modificato: Nicolas B. il 27 Nov 2019
From my knowledge, the only way to solve an algebraic loop without affecting at all the model is to change your model to remove the loop. It would require some mathematic analyses and it is not always possible.
Otherwise, to get a model which is simplier to solver and does not pop'up an algebraic loop warning, I would recommand 2 different solutions:
Sorry, but there are no better solution from what I know. Except using Simscape if you have it because it solves algebraic loops in a different way.
Jonas il 28 Nov 2019
You can use an ODE solver to solve the differential algebraic equations an algebraic loop generates. However, this is not possible when you generate code, which is what happens when you compile an .exe.