MATLAB: How may algebraic loops influence simulation results

differentresultsimulinkunexpectedwrong

I am receiving the following warning message when I run my model:
Warning: Block diagram 'algloop' contains 1 algebraic loop(s).
Found algebraic loop containing block(s):
[...].
Could this be the reason why the simulation leads to unexpected results?

Best Answer

In some cases the algebraic loop can be the reason for unexpected results, namely in case of direct feedthrough, i.e. when a block output directly depends on the block input signal.
To solve this issue and remove the loop, adding a small delay (either discrete delay block or continuous memory block) to the system at its highest level might help.