What to do when the residuals of the static equation is “NaN”/“Inf”? The error shows, but no other warning:
Error using print_info (line 90)
The steady state contains NaN or Inf
Error in check (line 76)
print_info(info, 0, options);
Error in bank (line 480)
oo_.dr.eigval = check(M_,options_,oo_);
Error in dynare (line 235)
NaN and Inf result from improper expressions. In Matlab, things like “0/0”, “Inf/Inf”, and “Inf - Inf” evaluate to NaN, and anything mixed with NaN is also NaN.
Something in your steady state block or file is evaluating to Inf or NaN which is blowing up the steady state values. I would suggest using the “resid” command to see which equations are not solving, and try to figure out why your steady state is producing these results. Without seeing your .mod file it is not possible to say more.
Thank you for your reply.