Dear all,
I have an issue with the computation of the Ramsey SS. I created an external SS file for my Ramsey model, since, in order to solve this SS, I exploit the matlab fsolve command.
The SS file works correcly, but when I use it in the Ramsey mode, I get the following error:
Ramsey: The steady state file computation for the Ramsey problem resulted in NaNs at the initial values of the instruments
If I run the diagnostic, what I obtain is:
evaluate_steady_state: The steady state file computation for the Ramsey problem resulted in NaNs.
evaluate_steady_state: The steady state was computed conditional on the following initial instrument values:
v 0.000000
evaluate_steady_state: The problem occured in the following equations:
Equation(s): 20, 22,
evaluate_steady_state: If those initial values are not admissable, change them using an initval-block.
MODEL_DIAGNOSTICS: The steady state cannot be computed
MODEL_DIAGNOSTICS: Steady state contains NaNs
This message puzzles me a bit, since I am not able to understand if the problem is in my coding procedure (i.e. the way I code the SS file) or if the problem is related to the Ramsey problem itself.
Thank you very much for the help, have a nice day!
mod_forum.mod (3.9 KB)
mod_forum_steadystate.m (3.5 KB)
root4_copy.m (2.0 KB)