How to solve "algebraic loop error" in Matlab Simulink

5 views (last 30 days)
Hi,
I am getting this error frequently while running my Simulink Model If i take GAIN value k = 0 then my model is working but if i take anything greater than zero then i am getting the attached error
please help me out with this error
Thanks in Advance Agassi

Answers (1)

ag
ag on 1 May 2025
Hi Agastya,
Algebraic loops occur when an input port with direct feedthrough is driven by the output of the same block, either directly, or by a feedback path through other blocks which have direct feedthrough. In your case, the feeback loop seems to be created by the output of the block "ASM Winkeleges" feeded to the "Torque Friction" block.
In most of the cases the solution is to model the system so that the loop is no longer present. In some cases, adding a small delay (Either discrete delay block or continuous memory block) to the system at its highest level might remove the loop.
For a better understanding of Algebraic loops and how can they be solved, I kindly suggest you to go through the following MATLAB answers post: https://www.mathworks.com/matlabcentral/answers/95310-what-are-algebraic-loops-in-simulink-and-how-do-i-solve-them
Hope this helps!

Categories

Find more on General Applications in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!