Not zero all the Residual of the ststic equations

What are the ways to solve zero all the Residual of the ststic equations?
My model gives this error: Residual of the ststic equations NaN

I gave a numeric value to all the parameters and steady-state variables, but I also removed the parameters and steady-state variables from other people’s articles.

Is this something that can fixed with my code or is there an issue with the way the model is set up?
which I also don’t really understand). Any advice/explanation is very much appreciated
I also uploaded the model file
Where is the problem?[Document393939.txt|attachment]
(upload://1dnt0tnncPiKMik6mGrWs4uwmiS.txt) (14.3 KB)

Hi, if the residuals of the static equations are NaN, you certainly have forgotten to assign a value to some parameters. But I would need to see the code to tell you what is wrong with your model (you haven’t correctly uploaded your code).

But I’m sure that I assign a value to all the parameters.

I reattached the code
Document393939.pdf (105.2 KB)

Thank you very much. I appreciate the time and effort that went into your inpu

Various equations still contained constant terms. Use resid to see this. fkhodadadi1369.mod (13.8 KB)

Before and after command the check, I use command the resid but it did not show anything.

Does the fact that the equations have a constant term mean that they are not linearized correctly?
Can all equations not be linearized correctly and have a constant term?

In the file above, I deleted the constant terms. They indicate your linearization was inconsistent. Either you keep all constants or none.

hanks a lot
Thank you very much. I appreciate the time and effort that went into your inpu

Excuse me, you can highlight deleted the constant terms in the original code file and Email me them to let me know where they were deleted when the NaN error was fixed.

Now that the NaN error has been fixed, why does it not show the Blanchard-Kahn condition and other results?
Doc2.pdf (197.3 KB)

Show_residuals.mod (13.2 KB)
shows

Residuals of the static equations:

Equation number 1 : 0 : Euler Equation
Equation number 2 : 0 : cI
Equation number 3 : 0 : labour Supply
Equation number 4 : 0 : hI
Equation number 5 : 0 : Money Demand
Equation number 6 : 0 : m_cI
Equation number 7 : 0 : Accumulaton of capital stock
Equation number 8 : 0 : Rent Price
Equation number 9 : 0 : Investment Demand
Equation number 10 : 0 : phi_I
Equation number 11 : 0 : Import Consumer Goods
Equation number 12 : 0 : cm
Equation number 13 : 0 : phi_d
Equation number 14 : 0 : phi_cm
Equation number 15 : 0 : pic
Equation number 16 : 0 : e
Equation number 17 : 0 : 17
Equation number 18 : 0 : Import Capital Good
Equation number 19 : 0 : im
Equation number 20 : 0 : phi_Im
Equation number 21 : 0 : phi_Id
Equation number 22 : 0 : pi_I
Equation number 23 : 0 : 23
Equation number 24 : 0 : 24
Equation number 25 : -0.412 : Prodduction Function
Equation number 26 : 0 : Inputs Demand
Equation number 27 : 0.6592 : Marginal Cost
Equation number 28 : 0 : philips Curve
Equation number 29 : 0 : philips Curve for Import Goods
Equation number 30 : 0 : Marginal Cost for Import Goods
Equation number 31 : 0 : x
Equation number 32 : 0 : phi_starx
Equation number 33 : 0 : pi_starx
Equation number 34 : 0 : Banking Balance Sheet
Equation number 35 : 0 : Optimal Relationship Between Deposit and Loan Rate
Equation number 36 : 0 : Optimal Relationship Between Houshol and Loan Rate
Equation number 37 : 0 : Optimal Relationship Between Firm and Loan Rate
Equation number 38 : 0 : Lone
Equation number 39 : 0 : sigma
Equation number 40 : 1.6 : zb
Equation number 41 : 0 : Central Bank
Equation number 42 : 0 : fr
Equation number 43 : 0 : Monetary & Exchange Rate Policy
Equation number 44 : 0 : delta_EX
Equation number 45 : 0 : Government Budget Constraint
Equation number 46 : 0 : T
Equation number 47 : 0 : y
Equation number 48 : 0 : c
Equation number 49 : 0 : h
Equation number 50 : 0 : m
Equation number 51 : 0 : 51
Equation number 52 : 0 : I
Equation number 53 : 0 : Investment shock
Equation number 54 : 0 : Tecnology Proce
Equation number 55 : 0 : Foreign Inflation Proce
Equation number 56 : 0 : Foreign Prudaction Proce
Equation number 57 : 0 : oil revenue proc
Equation number 58 : 0 : Non-Current Receivable shock
Equation number 59 : 0 : Frozen Assets Shock shock
Equation number 60 : 0 : Bank Debt to Central Bank proc
Equation number 61 : 0 : Government Debt to Central Bank proc
Equation number 62 : 0 : Monetary Base shock
Equation number 63 : 0 : Exchange Rate Growth Proce
Equation number 64 : 0 : Target Inflation Proce
Equation number 65 : 0 : Government Expendicher Proce
Equation number 66 : 0 : Reserves Proce

Blanchard-Kahn errors are caused by timing errors. For example,

y=alfa+(1-alfa)*h+alfa*k;

usually must be

y=alfa+(1-alfa)*h+alfa*k(-1);