use_dll: k_order_perturbation Caught Kord exception

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.

use_dll: k_order_perturbation Caught Kord exception

Postby jpfeifer » Tue Aug 03, 2010 3:58 pm

Hi,

does anyone know what the error message

??? Error using ==> k_order_perturbation
Caught Kord exception: NaN or Inf asserted in first order derivatives in FirstOrder::solve

Error in ==> k_order_pert at 21
[g_0, g_1, g_2, g_3] = k_order_perturbation(dr,0,M,options, oo , ['.' ...

Error in ==> dr1 at 56
[dr,info] = k_order_pert(dr,M_,options_,oo_);

Error in ==> resol at 128
[dr,info,M_,options_,oo_] = dr1(dr,check_flag,M_,options_,oo_);

Error in ==> stoch_simul at 42
[oo_.dr, info] = resol(oo_.steady_state,0);


means. I am running a model on Dynare 4.1.2 using
Code: Select all
model(use_dll)

and
Code: Select all
stoch_simul(order=3,irf=50,nocorr,nofunctions,nomoments)


The second order approximation runs without problems, so I am wondering where the problem with the first order derivatives derives from.
------------
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: use_dll: k_order_perturbation Caught Kord exception

Postby MichelJuillard » Wed Aug 04, 2010 1:40 pm

I would need to try this *.mod file on my own machine.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: use_dll: k_order_perturbation Caught Kord exception

Postby SébastienVillemot » Tue Oct 05, 2010 2:07 pm

Hi,

This bug has been fixed in the unstable version of Dynare.

The bugfix will also be included in the 4.1.3 release, which should arrive very soon.

Best
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: use_dll: k_order_perturbation Caught Kord exception

Postby T.Siemsen » Thu Mar 20, 2014 5:58 pm

Hi,

I know this thread is a little old, but I'm currently encountering the very same problem running Dynare 4.4.2.
Second order is fine, but third order I get the error

dynare:k_order_perturbation: Caught Kord exception: NaN or Inf asserted in first order derivatives in FirstOrder::solve
Error using print_info (line 68)
k_order_pert was unable to compute the solution


using

Code: Select all
stoch_simul(irf=20,order=3,periods=50000,pruning,replic=100,nograph);


I do not really know what to make out of this. Any help would be appreciated.

Thanks,

Thomas
T.Siemsen
 
Posts: 1
Joined: Thu Mar 20, 2014 5:46 pm

Re: use_dll: k_order_perturbation Caught Kord exception

Postby MichelJuillard » Thu Mar 20, 2014 7:08 pm

Without the *.mod file it is very difficult to say where the problem may come from

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests