Dear all,
I know that maybe it is a very simple question but after looking at some related posts here,I still can not solve the error.So I write here to ask for some help.Recently I try to write a dynare profile based on CIA model.When I run the mod profile,dynare answers
"
error in print_info (line 45)
the Blanchard Kahn conditions are not satisfied: indeterminacy.

Thank you for your reply!I have changed my exogenous processes and predetermined the khat,but the error still exit.I can not have the output of my mod.Alarms about eigenvalue and BK condtion still arise. When I run, I got
"EIGENVALUES:
Modulus Real Imaginary

error PHQ (line 241)
info = stoch_simul(var_list_);

error dynare (line 235)
evalin(‘base’,fname) ;"

I find that many people have met the same questions,like “eigenvalues lager than 1” or “not satisfied BK condition”.So I want to ask the professor that to avoid these errors,when we wirte a model,where should we pay more attention to.And what we do will result in these errors.

Hope you can reply me. By the way,my new revised mod profile is below.Could you please see it when it is convenient for you.Thank you so much!

Thank you for your reply!
The running resuIts have been improved with the backward timing. It is so magic! I have never thought that the time factor was so much impotant in the model!
And as for “the steady states shoule be 0”,

I want to ask that why the steady states need to be 0. Because when we expand the nonlinear functions at the steady state points by using the log-linearization method, if the they are equal to 0, the expanded functions maybe equal to 0 or insoluble.

Is there a relationship between the initval value and the steady state value?
When using dynare to solve DSGE model, we need to input the initial values of each variable. However, according to dynare’s user guide, if you input the “steady” command in the next step, dynare will start from the calculated steady state value. So what is the meaning of these initial values?How to get these initval values?

Thank you for your sharing!I am so sorry to your reply too late. Your code has better output than me! But I still meet the same error alarms below:

Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : 0
Equation number 5 : 0
Equation number 6 : 0

STEADY-STATE RESULTS:

c 0.686164
k 0.331218
r 0.691891
l 0.229167
b 0.158558
ior 0
error in print_info (line 48)
Blanchard Kahn conditions are not satisfied: indeterminacy due to rank failure

When linearizing, you need to be consistent. Either you keep all constants or you leave all of them out. You have a mixture that creates problems, because some equations obviously expect mean 0 variables, while others have those variables not being 0.

The initial values are used for numerical steady state finding, which involves solving a system of equations. If the starting values are poor or infeasible, this will not work.

Thank you for your reply. These days your guidance has inspired me a lot. Although I haven’t completely solved my problem, I believe it will be solved one day. Thank you for your kindness help! Hope we will have more communication!

@jpfeifer Dear Professor Pfeiter,
I have met the same problem again.This time I have adjusted the timing and the parameters.But these two ways do not seem to work.The code I have attached below.Could you please tell me any other direction I need to try? Thank you very much (1.8 KB)

1.I know it looks strange. But I got it through the first order condition of debt. The debt is not a predetermined variable .Is it reasonable to change its timing?(I am not sure if I can change it. )
2.And would you please tell me what will cause the error “rank faliure”?