external function

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

Postby xuduan » Tue Apr 26, 2011 3:11 pm

Dear Experts

In my model, the transitional path of one variable is determined by exogenous growth of technology. I wrote a external function to determine the dynamic of this variable, and allow the model block of Dynare to call this function. However, with this approach, it takes very long time for Dynare to solve the model.
To save time, I was wondering if it is possible to do the following. First, solve the dynamic of this variable in matlab and save the transitional path. Then, ask Dynare to load the resulted data. If this can't be done, is there any other way to speed it up?

Appreciate your help!

xuduan
xuduan
 
Posts: 10
Joined: Thu Feb 03, 2011 4:50 pm

Re: external function

Postby SébastienVillemot » Mon May 23, 2011 3:22 pm

Do you provide the numerical derivatives of your function to Dynare?

If not, then it will probably speed up the computation and increase its accuracy if you do.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

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