External steady state computation file in parameter section

Hello everyone,

I’ve got the following problem: the non-linear steady state values of my model enter the log-linear equilibrium equations. To compute the non-linear steady state values I use an external fsolve function. I call this function in the parameter section to set the non-linear SS values as parameters. However, in this way when I loop over parameters I get wrong results, because the non-linear SS does not get updated.

How can I fix this?

You can use a _steady_state.m-file to call fsolve and set the parameters for each parameter draw.

Thanks! But will the SS computed in the _steady_state.m be inputted as parameters to the model?

An example is DSGE_mod/Gali_2015_chapter_6_4.mod at master · JohannesPfeifer/DSGE_mod · GitHub
In its steady_state_model-block only parameters are updated while the steady state values of the variables in the linearized model are kept at zero.

1 Like