Changing default options in OSR

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!


Hi George,

This is hard coded in the matlab file osr1.m (we should have an option for the maximum number of iterations :wink:. 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.