I am having a problem on how to extract the values of the algebraic variables from the s function. If I use the Direct feed through I get an algebraic loop and simulation fails

1 view (last 30 days)
I am using simulink for designing nonlinear control structures for a power plant, I am having a problem on how to extract the values of the algebraic variables from the s function. If I use the Direct feed through I end up with an algebraic loop and the simulation fails.
I have a set of nonlinear differential equations
dxdt=f(x)+g(x,u)
where u is an input vector.
some of the differential equations are of the following form
dx1/dt=f1(x)+(x-K(x,u))*u
K(x,u) is an algebraic function that depends on the states x and input u.The S function gives the states as outputs, but I also need K(x,u) as an output. Any idea how to do that?
I received a suggestion to introduce the K(x,u) as a discrete variable, but it did not work.

Answers (0)

Categories

Find more on General Applications 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!