The Jacobian contains Inf or NaN

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

The Jacobian contains Inf or NaN

Postby dkoursa » Mon Feb 13, 2017 9:12 am

I am trying to run a rather simple dsge model and I get the following message:
STEADY: The Jacobian contains Inf or NaN. The problem arises from:

STEADY: Derivative of Equation 64 with respect to Variable In (initial value of In: 1.19276)
STEADY: Derivative of Equation 1 with respect to Variable K (initial value of K: 11.9276)
STEADY: Derivative of Equation 64 with respect to Variable K (initial value of K: 11.9276)
STEADY: Derivative of Equation 64 with respect to Variable muc (initial value of muc: 2.38568)

STEADY: The problem most often occurs, because a variable with
STEADY: exponent smaller than 1 has been initialized to 0. Taking the derivative
STEADY: and evaluating it at the steady state then results in a division by 0.

I send you the mod file. I have the equations numbered in there. The equations Dynare is refering to cannot have a zero derivative especially because they are initialized at non zero values. Any help?
Attachments
ineq6.mod
Mod file. I also have a steady state file but I don't think it might be necessary
(8.93 KiB) Downloaded 60 times
dkoursa
 
Posts: 5
Joined: Mon Feb 13, 2017 9:01 am

Re: The Jacobian contains Inf or NaN

Postby jpfeifer » Mon Feb 13, 2017 1:32 pm

Please provide all files necessary to replicate the problem in a zip-file.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: The Jacobian contains Inf or NaN

Postby dkoursa » Mon Feb 13, 2017 3:24 pm

I send you the steady state file. Run that one first. It save the parameter values in a directory. Then run the mod file. Thank you
Attachments
ineq.rar
Run ineqSS6 it save to a directory that ineq6.nod uses
(4.77 KiB) Downloaded 39 times
dkoursa
 
Posts: 5
Joined: Mon Feb 13, 2017 9:01 am

Re: The Jacobian contains Inf or NaN

Postby jpfeifer » Mon Feb 13, 2017 3:38 pm

Now I get
Warning: Some of the parameters have no value (aec, delta, aL, TE, l, TC, wbar, Lbar, DEbar, DCbar, DRbar) when using steady. If these parameters are not initialized
in a steadystate file or a steady_state_model-block, Dynare may not be able to solve the model...
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests