The Jacobian contains NaNs!

Error using print_info (line 32)
The Jacobian contains NaNs. For more information, use options_.debug.arbc.mod (7.1 KB) Can anyone help me correct this? (I’m new to MATLAB)

You did not provide all files needed to run your file. The modifiedrbc_calibration.m is missing. Also, your implementation of the RBC model looks strange. For a reference, see https://github.com/JohannesPfeifer/DSGE_mod/tree/master/RBC_baseline

modifiedrbc_calibration.m (574 Bytes) run_modifiedrbc_ss.m (1.8 KB). Thank you

Your exp-substitution is not consistent, for example in the first and fourth equation, there is the level of capital showing up.

Thank you so much! Now I get “Error using print_info (line 32)
Blanchard & Kahn conditions are not satisfied: no stable equilibrium.” when I change the values of varthetarbc.mod (7.2 KB)

In at least two cases, you seem to divide by

/kss*exp(k)

instead of

/(kss*exp(k))

in the adjustment costs.