Page 1 of 1

Matlab code for optimisation ?

PostPosted: Tue Apr 17, 2007 9:44 am
by reubenpjacob
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

PostPosted: Wed Apr 25, 2007 12:02 pm
by MichelJuillard
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

PostPosted: Wed Apr 25, 2007 4:03 pm
by pun_star
estimating with fewer observables will surely help!

PostPosted: Mon Apr 30, 2007 10:01 am
by lombard
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