Error "Steady state contains NaN or Inf" when using external steady state file

Dear all,

I am learning Dynare to solve DSGE problems. Now I am trying to use external Matlab file to compute steady state, with the help of the example “NK_baseline_steadystate.m”.

I have try my best to linearized the .m file. But the mod file failed to run with error message"Error using print_info (line 90) The steady state contains NaN or Inf Error in steady (line 104) print_info(info,options_.noprint, options_); Error in DynareStudystochastic (line 147) steady; Error in dynare (line 235) evalin(‘base’,fname) ;".

However, when I try to use the equations to compute steady state by another .m file, it works.

I have no idea what’s wrong with my ‘DynareStudystochastic.m’ file.

Could anyone here help me with that?DynareStudystochastic_seadystate.m (1.5 KB)
DynareStudystochastic.mod (841 Bytes)

Thanks in advance!


The model I am using is attached. Thanks!

You have a typo in the naming of the steady state file. If you do not obey the naming convention, Dynare will not be able to detect it.

Thank you Prof. Pfeifer! :grinning:

This mistake is stupid. haha