Page 1 of 1

Troubleshooting NaNs in the Jacobian

PostPosted: Fri Feb 10, 2017 3:52 pm
by akeinsley
Hello,

I'm attempting to solve an NK Model with two production sectors, but it tells me that there are NaNs in the Jacobian. This isn't the first time I've run into this problem, but it's always such a pain trying to figure out what exactly is wrong. Could someone take a look at this and let me know what's wrong with this particular file? Additionally, does anyone have tips on how to best troubleshoot this problem in the future?

Thanks!

Re: Troubleshooting NaNs in the Jacobian

PostPosted: Sat Feb 11, 2017 6:39 am
by jpfeifer
In the unstable version, I get
ERROR: If the model is declared linear the second derivatives must be equal to zero.
The following equations had non-zero second derivatives:
* Eq # 4

Check that equation.