algebraic loop
Show older comments
I'm trying to make an application using Simulink but I'm encountering some mistakes. The output of my subsytem is a derivative of a variable, dw, then I use an integrator to integrate this variable and get w, then I feed back this system with this same variable and I get this message below.
"Cannot solve algebraic loop involving 'novo_modelo/Fuel Cell Stack/Anode Flow Model/Anode' because it consists of blocks that cannot be assigned algebraic variables, i.e., blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems"
Why of this? Am I doing something wrong?
Answers (2)
Fangjun Jiang
on 20 Dec 2011
0 votes
It sounds like that the algebraic loop should not occur since you have an integrator, unless what you described of your model is not accurate.
7 Comments
Danilo NASCIMENTO
on 20 Dec 2011
Fangjun Jiang
on 20 Dec 2011
Can you re-examine your question? I am not sure if it's complete accurate, e.g. "the output of my subsystem is a derivative ...", should it be "the input"? There are ways to eliminate the algebraic loops in the link provided. Maybe you can post a snapshot of your model in your question.
Danilo NASCIMENTO
on 20 Dec 2011
Danilo NASCIMENTO
on 20 Dec 2011
Kaustubha Govind
on 20 Dec 2011
Is your subsystem atomic? Also, is the integrator placed inside the subsystem or outside of it?
Danilo NASCIMENTO
on 20 Dec 2011
Danilo NASCIMENTO
on 20 Dec 2011
Guy Rouleau
on 21 Dec 2011
0 votes
I recommend taking the time to go through the algebraic loop section of the doc:
This section contains multiple examples explaining what is an algebraic loop, an atomic subsystem and why it can lead to "artificial" algebraic loop.
1 Comment
Sean
on 3 Dec 2014
The link above does not work (as of 12/3/14)
Categories
Find more on Simulink Functions 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!