Questions about finding steady state

Hi Dynarist,

When I use fsolve to find SS, it still appears “the steadystate file did not compute the steady state”. However, there are only 2 out of 30+ equations having residuals and their magnitudes are well below one. I wonder if I can use the command “steady(nocheck)” here to sidestep this issue?

Thank you in advance!

How large are the remaining residuals? nocheck would allow you to override the consistency check. That is dangerous and usually not advocated.

I see. It looks like this with residuals in Eqn 9 and Eqn 14.

Residuals of the static equations:

Equation number 1 : 0 : k
Equation number 2 : 0 : lambda
Equation number 3 : 0 : 3
Equation number 4 : 0 : 4
Equation number 5 : 0 : 5
Equation number 6 : 0 : yi
Equation number 7 : 0 : li
Equation number 8 : 0 : 8
Equation number 9 : 0.046133 : 9
Equation number 10 : 0 : 10
Equation number 11 : 0 : yj
Equation number 12 : 0 : lj
Equation number 13 : 0 : 13
Equation number 14 : -0.36373 : 14
Equation number 15 : 0 : 15
Equation number 16 : 0 : x
Equation number 17 : 0 : y
Equation number 18 : 0 : l
Equation number 19 : 0 : 19
Equation number 20 : 0 : h
Equation number 21 : 0 : 21
Equation number 22 : 0 : rj
Equation number 23 : 0 : 23
Equation number 24 : 0 : 24
Equation number 25 : 0 : t
Equation number 26 : 0 : 26
Equation number 27 : 0 : 27
Equation number 28 : 0 : n
Equation number 29 : 0 : a
Equation number 30 : 0 : f
Equation number 31 : 0 : rh
Equation number 32 : 0 : m

That is definitely too big. You need to find the error.

Thank you professor. I rechecked and tried to replace more values using fsolve and the errors turned out to be bigger. Any kind of help will be appreciated.
gre_steadystate.m (3.1 KB)
gre.mod (2.2 KB)

I am getting

ERROR: gre.mod: line 44, cols 10-14: Unknown symbol: delta
ERROR: gre.mod: line 47, cols 20-24: Unknown symbol: delta
ERROR: gre.mod: line 79, cols 3-6: Unknown symbol: f_ss

Sorry for the typos. Here is the new ones
gre.mod (2.1 KB)
gre_steadystate.m (3.1 KB)

myfun11 is missing.

Forgot to include it.
myfun11.m (1.6 KB)

Check your equations based on the displayed residuals. For example, in myfun11

c - y - i;

must be c-y+i