Page 1 of 1

Changing default options in OSR

PostPosted: Sun May 31, 2009 12:23 pm
by George
Dear all,

When trying to use the OSR command of Dynare I get an exiting message that the maximum number of function evaluations has been reached and that I should increase the default options for the number of function evaluations.
Can anyone inform me where exactly I should change this option?

Thank you ver much in advance for your kind replies!

Yours,
George

Re: Changing default options in OSR

PostPosted: Tue Jun 02, 2009 1:51 pm
by StephaneAdjemian
Hi George,

This is hard coded in the matlab file osr1.m (we should have an option for the maximum number of iterations ;-). You just have to increase the value of the variable nit in this file, (around) line 84. You can also reduce the precision, by changing (for instance) crit = 1e-7; to crit = 1e-5;.

Best, Stéphane.