How to solve algebric loop in a simulink model?
2 views (last 30 days)
Show older comments
I built up a full vehicle simulink model. After running the simulation i am getting the error as Algebraic state in algebraic loop containing '...../Product33' 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 by tightening the error tolerances).Ireduced the fixed step size but the message error appear again.please is there some one help me to remove this error.thanks in advance.
0 Comments
Answers (1)
Paul
on 2 Feb 2014
Edited: Paul
on 2 Feb 2014
Put a delay or memory block in the signal of the variable which gives the algebraic loop. The problem is that you probably use a signal which is the output of a block and at the same time also an input of it (or at least used for calculation of the input). By using a delay/memory block you delay the output 1 step, thus the input is known.
1 Comment
Seyma Biskin
on 28 Apr 2018
Edited: Seyma Biskin
on 28 Apr 2018
Hello, I have also same problem, here is the error: Algebraic state in algebraic loop containing 'micro_grid_last/PV Array/Diode Rsh/Product5' computed at time 0.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 by tightening the error tolerances)
And pv array is not editable and we cannot insert unit delay or memory. Do you know how to solve this?
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!