An element of the Jacobian is not finite 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.

An element of the Jacobian is not finite or NaN

Postby azeem » Sat Jun 24, 2017 1:59 pm

I have been trying to code for the first time in Dynare. However I am getting this error message. Please help.
STEADY: The Jacobian contains Inf or NaN. The problem arises from:

STEADY: Derivative of Equation 1 with respect to Variable c (initial value of c: 0)
STEADY: Derivative of Equation 8 with respect to Variable z (initial value of z: 1)
STEADY: Derivative of Equation 2 with respect to Variable k (initial value of k: 0)
STEADY: Derivative of Equation 5 with respect to Variable k (initial value of k: 0)
STEADY: Derivative of Equation 6 with respect to Variable k (initial value of k: 0)
STEADY: Derivative of Equation 8 with respect to Variable k (initial value of k: 0)
STEADY: Derivative of Equation 5 with respect to Variable i (initial value of i: 0)
STEADY: Derivative of Equation 8 with respect to Variable i (initial value of i: 0)
STEADY: Derivative of Equation 7 with respect to Variable r (initial value of r: 1.0101)
STEADY: Derivative of Equation 8 with respect to Variable q (initial value of q: 1)

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.
Error using dynare_solve (line 60)
An element of the Jacobian is not finite or NaN
Error in evaluate_steady_state (line 66)
[ys,check] = dynare_solve([M.fname '_static'],...
Error in steady_ (line 54)
[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);
Error in SOE3 (line 207)
steady;
Error in dynare (line 180)
evalin('base',fname) ;
Attachments
SOE3.mod
SOE MOD
(1.62 KiB) Downloaded 46 times
azeem
 
Posts: 2
Joined: Sat Jun 24, 2017 12:58 pm

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

Postby chenp2002 » Sat Jun 24, 2017 3:43 pm

i have the same problem,i also do not know how to fix it.
chenp2002
 
Posts: 10
Joined: Thu Jun 22, 2017 8:34 am

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

Postby jpfeifer » Mon Jun 26, 2017 6:09 pm

The problem was that in the initval block k is used before it is defined/set.
------------
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: An element of the Jacobian is not finite or NaN

Postby chenp2002 » Tue Jun 27, 2017 2:15 am

hi,professor jpfeifer
thanks for your reponse,so how to handle with the var k?
chenp2002
 
Posts: 10
Joined: Thu Jun 22, 2017 8:34 am

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

Postby jpfeifer » Tue Jun 27, 2017 4:17 pm

Your model may be different. So please provide the file. My reply referred to @azeem's 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


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 12 guests