5-period OLG modle with labor and production

Hello! This is M. Kim.
I am currently working on 5-period OLG model with labor and production. And this is my first time to use Dynare.
I want to do deterministic simulation with my model. (I already computed steady states values by hand.)
I think that I rightly put variables, model, initial values for computing steady state, etc. (see the attached mod file), but I have got error message, “impossible to find the steady state, 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.”
Could you please let me know the way to fix this problem?

Best wishes,

M. Kim
fourone.mod (3.24 KB)

An imminent problem is

MODEL_DIAGNOSTICS: The following endogenous variables aren't present at the current period in the model:
k2              
k3              
k4              
k5  

Also, put

resid(1);

before steady to see the residuals:

Residuals of the static equations:

Equation number 1 : 2e-05
Equation number 2 : 0
Equation number 3 : 2.8041e-05
Equation number 4 : 5e-06
Equation number 5 : 1.221e-06
Equation number 6 : 0.053889
Equation number 7 : 1.5974e-05
Equation number 8 : -3.6841e-05
Equation number 9 : -0.0010961
Equation number 10 : -0.0023041
Equation number 11 : -0.0032644
Equation number 12 : -0.007889
Equation number 13 : -5.0159e-05
Equation number 14 : -8.0987e-05
Equation number 15 : 1.5831e-05
Equation number 16 : -5510.735
Equation number 17 : -2505.934
Equation number 18 : -1239.7543
Equation number 19 : -669.5531
Equation number 20 : 4.78e-05

Equations with big residuals are the ones to focus on. The unstable version of Dynare is nevertheless able to find steady state:

Hi professor jpfeifer, I want to know the utility function of this model. please help. thank u

I think it was \frac{c^{1-\sigma}}{1-\sigma}+\ln(1-n)

Thank U :slight_smile: