Sorry, but your timing still does not comform to section 3.5.4 of the user guide. As stated there, your law of motion for capital should look like
- Code: Select all
k = x + (1-delta)*k(-1);
and not
- Code: Select all
k = x(-1) + (1-delta)*k(-1);
Moreover, a is an endogenous variable which definitely has a steady state value of 0 and not 1. I would recommend sitting down and computing the steady state by pencil and paper. Considering the number of equations, this should be straightforward. You can then use these values as initial values.
Finally, I do not know you model, but some things look very strange to me. Usually, there should be a discount factor beta in your model which gives you a contraction mapping with a corresponding unique fixed point, i.e. a steady state. But there is no beta in your FOCs, so that may be the problem.