Algebraic state in algebraic loop containing 'new_arcmodel/Subsystem/Divide3' computed at time 0 is Inf or NaN. There may be a singularity in the solution. If the model is correct, try reducing the step size (either by reducing the fixed step size or
1 view (last 30 days)
Show older comments
singularity problem
Answers (1)
Sebastian Castro
on 11 Aug 2015
Without having any information about your model (Screenshot or the file itself), that Divide3 block in the error message is part of an algebraic loop.
Algebraic loops happen when the input to a block depends directly on its output -- for instance, in your Divide block, one of the inputs probably is in feedback. The main problem here is that, because of initial conditions, you are trying to divide by zero right at the beginning of the simulation, and this is causing you errors.
In general, you should have some kind of mechanism that prevents divisions by zero. You should also try remodel the system so it doesn't have an algebraic loop (or add a delay if it's acceptable for this particular model).
Sebastian
0 Comments
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!