Solving model as part of fminsearch

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.

Solving model as part of fminsearch

Postby Ansgar » Mon Jun 26, 2017 8:26 pm

Hi,
I am estimating the parameters of a DSGE model by matching the IRFs of an identified VAR model. The criterion function is the squared difference between the model IRFs and the IRFs of the VAR, and look for a way to speed up the estimation routine. I am using fminsearch to minimize the criterion, and fminsearch executes dynare to solve the model at each iteration, so each time dynare has to parse the model file which slows down the computation. Is there a way around this? For instance, would it be possible to somehow call fminsearch within the .mod file, and the execute only stoch_simul within the mod file?
Or, alternatively, would it be possible to avoid executing Dynare within fminsearch altogether, by working directly with the .m files dynare produces when it solves the model?
I should mention that none of the parameters to be estimated affect the steady state of the model.

Many thanks for your help!
Best,
Ansgar
Ansgar Rannenberg
IMK
Tel.: +49/211/7778113
Ansgar
 
Posts: 46
Joined: Tue Jun 26, 2007 11:35 am
Location: Düsseldorf

Re: Solving model as part of fminsearch

Postby jpfeifer » Thu Jun 29, 2017 7:43 pm

I am working on an example, but it will take a day or two.
------------
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: Solving model as part of fminsearch

Postby jpfeifer » Mon Jul 03, 2017 1:38 pm

------------
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