Changing default options in OSR

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.

Changing default options in OSR

Postby George » Sun May 31, 2009 12:23 pm

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
George
 
Posts: 25
Joined: Thu Aug 14, 2008 11:36 am

Re: Changing default options in OSR

Postby StephaneAdjemian » Tue Jun 02, 2009 1:51 pm

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.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

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