External function problem - Runtime termination

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.

External function problem - Runtime termination

Postby Olorin » Sun Mar 27, 2011 8:07 pm

Dear masters of Dynare,
I am currently estimating small RBC model. I have log-linearized the model equations. Due to the structure of the model the steady-state values of endogenous variables (especially the employment rate) cannot be analytically solved for. Since these steady-state values show up in the log-linear equation this is a problem. I tried to solve this problem by using external function that solves for steady state value of employment using fsolve inside the model section. This way the steady-state values should be in accordance with current values of structural parameters. Unfortunately I am getting following error:

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.2.0).
Starting preprocessing of the model file ...
Found 14 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

??? Error using ==> dynare at 126
DYNARE: preprocessing failed

Windows XP, Matlab R2010a, Dynare 4.2.0

labour_friction.mod
(5.43 KiB) Downloaded 137 times

solve_n_ss.m
(258 Bytes) Downloaded 116 times

employ.m
(2.26 KiB) Downloaded 107 times
Olorin
 
Posts: 1
Joined: Sun Mar 27, 2011 7:55 pm

Re: External function problem - Runtime termination

Postby HoutanBastani » Tue Apr 05, 2011 3:15 pm

Thank you for catching this bug. We will fix it in the next version of Dynare. In the meanwhile, your code should run if you do not assign external functions to local variables.
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: External function problem - Runtime termination

Postby HoutanBastani » Tue Apr 12, 2011 3:18 pm

This bug has been fixed. You can find it in tomorrow's snapshot release:
http://www.dynare.org/snapshot/win/
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France


Return to Dynare help

Who is online

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