Page 1 of 1

An element of the Jacobian is not finite or NaN

PostPosted: Mon May 29, 2017 5:40 am
by svenson
I am working on Econ thesis about the subsidy for the consumption. There are some problem with initial-block as the steady point ,but it always makes Jacobian contain inf or NAN. :?
I have attached the code below. I am uncertain how to move forward following the error codes I am getting. Any help would be greatly appreciated.

Thank you!

Re: An element of the Jacobian is not finite or NaN

PostPosted: Mon May 29, 2017 7:32 am
by jpfeifer
Execute the computations before the model block using F9 in Matlab. You will see that ls=0, which cannot be

Re: An element of the Jacobian is not finite or NaN

PostPosted: Tue May 30, 2017 12:29 am
by svenson
jpfeifer wrote:Execute the computations before the model block using F9 in Matlab. You will see that ls=0, which cannot be



Thank you! Your advise is very usefull.I get it,but If i wanna attach this research ,Should i rebuild the model or adjust the parameter? Any help would be greatly appreciated.

Re: An element of the Jacobian is not finite or NaN

PostPosted: Wed May 31, 2017 3:27 pm
by jpfeifer
The model may be fine, but the starting values you compute are wrong/invalid. You need to adjust those