Algebraic loop in Simulink

Hi,
I have a problem in my simulink model, simulation fail because of an algebraic loop according to the simulation diagnostic. I tried a lot of things but it didn't worked.
I think simulink try to solve the "chicken an egg" problem, i tried to set an initial value but nothing worked.
Thanks for your help

 Risposta accettata

Sebastian Castro
Sebastian Castro il 23 Apr 2015

1 voto

Instead of using Algebraic Constraint blocks to try guide the initial condition of the algebraic loop solver, you could try break the loop with a low-pass filter (Transfer Fcn block in the Continuous library).
Just make sure that the cut-off frequency of this filter is large enough that it doesn't affect the dynamics of your actual system.
For example, if you know your system has frequencies up to 1000 Hz, try put the filter frequency at like... 5000 Hz or so.
- Sebastian

2 Commenti

jonas house
jonas house il 23 Apr 2015
Spostato: Walter Roberson il 20 Gen 2025
It could work, I will try that. Anyway by reducing the step size of the simulation it works great, but the simulation time becomes very high.
Thanks
Pallavi
Pallavi il 20 Gen 2025
Spostato: Walter Roberson il 20 Gen 2025
I have trying to simulate my model for 1ms but the algebraic loop doesnot allow it, I tried using unit delay it makes the system totally unstable. I tried adding low pass filter with cutoff frequency 300Hz. The low pass filter alone didnot eliminate the algebraic loop so I added unit delay followed by algebraic loop in the feedback; however my system is as unstable as before. Is there any solution?

Accedi per commentare.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by