Residuals of the equationss

dear all:
there are something wrong with the residuals,how can i do next to fix the problems?many thanks!

Residuals of the static equations:

Equation number 1 : 0 : 1
Equation number 2 : 0 : 2
Equation number 3 : 0 : r
Equation number 4 : 0 : 4
Equation number 5 : 0 : 5
Equation number 6 : 0 : 6
Equation number 7 : 0 : 7
Equation number 8 : 0 : 8
Equation number 9 : 0 : 9
Equation number 10 : 0 : 10
Equation number 11 : 0 : 11
Equation number 12 : 0 : 12
Equation number 13 : 0 : 13
Equation number 14 : 0 : 14
Equation number 15 : 0 : 15
Equation number 16 : 0 : 16
Equation number 17 : 0 : 17
Equation number 18 : 0 : 18
Equation number 19 : 0 : 19
Equation number 20 : 0 : omegag
Equation number 21 : 0 : i
Equation number 22 : 0 : 22
Equation number 23 : 0 : 23
Equation number 24 : 0 : A
Equation number 25 : 0 : z
Equation number 26 : 0 : 26
Equation number 27 : 0 : 27
Equation number 28 : -0.89541 : 28
Equation number 29 : -0.34994 : 29
Equation number 30 : 0.12907 : 30
Equation number 31 : 0 : 31
Equation number 32 : 0 : 32
Equation number 33 : 0 : 33
Equation number 34 : -0.00034632 : 34
Equation number 35 : 0.26251 : 35
Equation number 36 : 0 : ep
Equation number 37 : 0 : pce
Equation number 38 : 0 : tax

fangyeoceansink.mod (9.5 KB)

Hi, one mistake I found is that you have assigned the wrong steady-state to the variable uu (in initval you wrote that uu= log(em_ss)). Assigning the correct steady-state removes the residuals for eq.(28-29-30).

Since I don’t know your model, it is hard to debug equations 34 and 35. The only advice I can give you is to check your steady-state calculations.

wooo!!many thanks,dear friends! I‘ll check it again!

dear alchi49,i have modified my codees but still have some problems,could you please check it again?many thanks!!

Residuals of the static equations:

Equation number 1 : 0 : 1
Equation number 2 : 0 : 2
Equation number 3 : 0 : r
Equation number 4 : 0 : 4
Equation number 5 : 0 : 5
Equation number 6 : 0 : 6
Equation number 7 : 0 : 7
Equation number 8 : 0 : 8
Equation number 9 : 0 : 9
Equation number 10 : 0 : 10
Equation number 11 : 0 : 11
Equation number 12 : 0 : 12
Equation number 13 : 0 : 13
Equation number 14 : 0 : 14
Equation number 15 : 0 : 15
Equation number 16 : 0 : 16
Equation number 17 : 0 : 17
Equation number 18 : 0 : 18
Equation number 19 : 0 : 19
Equation number 20 : 0 : omegag
Equation number 21 : 0 : i
Equation number 22 : 0 : 22
Equation number 23 : 0 : 23
Equation number 24 : 0 : A
Equation number 25 : 0 : z
Equation number 26 : 0 : 26
Equation number 27 : 0 : 27
Equation number 28 : 0 : 28
Equation number 29 : 2.693e-06 : 29
Equation number 30 : 0 : 30
Equation number 31 : 0 : 31
Equation number 32 : -0.00039607 : 32
Equation number 33 : 3.276e-06 : 33
Equation number 34 : 1.9394e-07 : 34
Equation number 35 : 9.7538e-08 : 35
Equation number 36 : 0 : 36
Equation number 37 : 0.24985 : 37
Equation number 38 : 0 : 38
Equation number 39 : 0 : 39
Equation number 40 : 0 : ep
Equation number 41 : 0 : pce
Equation number 42 : 0 : tax

错误使用 print_info (第 32 行)
Impossible to find the steady state (the sum of square residuals of the static equations is 0.0624).
Either the model doesn’t have a steady state, there are an infinity of steady states, or the guess
values are too far from the solution
fangyeoceansink.mod (10.6 KB)

I have used your previous code. there was an obvious mistake in the steady-state of equation 35.

The last mistake comes from the fact that you assume that Tlo = Tat in the steady state, which does not pin-down Tlo. However as I said I do not know your model, hence you will have to correct this last mistake by yourselft.
new.mod (9.6 KB)

yoou’re right friend,many thanks!

yoou’re right friend,many thanks!i need to think again.