Algebraic loop in Simulink

4 views (last 30 days)
jonas house
jonas house on 22 Apr 2015
Answered: jonas house on 23 Apr 2015
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

Accepted Answer

Sebastian Castro
Sebastian Castro on 23 Apr 2015
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

More Answers (1)

jonas house
jonas house on 23 Apr 2015
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

Products

Community Treasure Hunt

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

Start Hunting!