Eliminate algebraic loop without using memory block

8 views (last 30 days)
Boru Wang
Boru Wang on 14 Aug 2019
Commented: Boru Wang on 15 Aug 2019
I was wondering if there is a way to eliminate the algebraic loop in Simulink model without using memory or delay blocks. These blocks tend to add slight overheads in the generated code associated with the creation and use of "state" variables.

Answers (2)

Robert U
Robert U on 14 Aug 2019
Hi Boru Wang,
there is an article about "Remove Algebraic Loops" in the Matlab documentation: https://de.mathworks.com/help/simulink/ug/remove-algebraic-loops.html
Without knowing the actual problem our help is more generic.
Kind regards,
Boru Wang
Boru Wang on 15 Aug 2019
Hi Robert. There would be a loop/data dependency issue if I had NOT insert this delay block. I initialized the static variable to zero.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!