Matlab code for optimisation ?

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.

Matlab code for optimisation ?

Postby reubenpjacob » Tue Apr 17, 2007 9:44 am

hi guys
would anybody be willing to share some optimisation matlab code? Dynares options do not seem to be working for me, to maximise my posterior distn. wonder if there are better alternatives available.

cheers
reuben
reubenpjacob
 
Posts: 133
Joined: Fri Oct 06, 2006 3:23 pm
Location: Reserve Bank of New Zealand

Postby MichelJuillard » Wed Apr 25, 2007 12:02 pm

Dear Reuben,

you can make the task of the optimizer easier, by trying the following steps

1) tighten your prior and replace uniform priors by bell shaped ones
2) dimish the number of observed variables, this usually simplifies the shape of the posterior
3) dimish the number of parameters to be estimated (calibrate the other ones)

Then once you have found a simpler estimation problem, try to add the difficulties that you eliminated temporarly back into the model. Some of the earlier difficulties may disappear because you have now better inital values forthe parameters (use the estim_params_init syntax) or if they come back you will be able to link them to specific parameter or specific observed variable and get a chance to understand where the problem lies.

Gook luck

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

Postby pun_star » Wed Apr 25, 2007 4:03 pm

estimating with fewer observables will surely help!
pun_star
 
Posts: 11
Joined: Wed Apr 18, 2007 7:00 am

Postby lombard » Mon Apr 30, 2007 10:01 am

I found that solvopt (http://www.uni-graz.at/imawww/kuntsevich/solvopt/) does pretty well. If you really have a hard time, but you have some ... time, the simulated annealing version by W.L. Goff, can help you out.

To make them work you have to change the options in the file dynare_estimation (Dynarev3).

Here I attach my versions of those programs. I've modified them in order to be able to pass data to the function.

Best,

Gianni
Attachments
sa_and_solvopt.zip
(377.2 KiB) Downloaded 98 times
lombard
 
Posts: 132
Joined: Wed Feb 02, 2005 12:36 pm
Location: Basel


Return to Dynare help

Who is online

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