What to do if simulink detects nonexistant algebraic loops
5 views (last 30 days)
Show older comments
What can you do, if simulink detects an algebraic loop that simply does not exist? I tried every combination of atomic subsystems and minimize algebraic loop occurences that I could think of. I have a subsystem that has as outputs the outputs of 2 integrators. I have one input. If I feed the input directly into the integrators I don't get an algebraic loop. If I multiply the input with other values that are calculated in the subsystem then I get an algebraic loop. Normally the factors would depend on other inputs. But I have disabled that and replaced all other inputs by constants. Still if I multiply I get an algabraic loop, if I don't all is well for simulink.
The detection is simply wrong. I can simulate with fixed stepsize. But if I simulate with variable stepsize the solver crashes due to minimum stepsize reached.
1 Comment
Fangjun Jiang
on 3 Mar 2021
submit your model to Mathworks tech support to see if you discovered a bug in algebraic loop detection
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements 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!