max number of iterations

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.

max number of iterations

Postby h0ps » Fri Mar 21, 2014 11:22 pm

Hi

My dynare output says that the 'maximum number of iterations is reached' which I think is due to my "max(expression1,expression2)" equation. I have tried to use the "maxit_= " before steady to solve the problem but it doesn't fixthe problem (it actually seems like it stops after 10 iterations even when I have set it to for instance 100).

(By the way: The code runs fine without the max expression & I'm running the old 4.4.1 at the moment)
h0ps
 
Posts: 32
Joined: Tue Jul 10, 2012 1:55 pm

Re: max number of iterations

Postby jpfeifer » Sat Mar 22, 2014 8:58 am

Please provide me with a mod-file. Also, are we talking about the steady or simul?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: max number of iterations

Postby h0ps » Sun Mar 23, 2014 10:47 am

We are talking about the simulation
Attachments
sw03.mod
(3.08 KiB) Downloaded 49 times
h0ps
 
Posts: 32
Joined: Tue Jul 10, 2012 1:55 pm

Re: max number of iterations

Postby jpfeifer » Sun Mar 23, 2014 3:39 pm

You can specify the option with:
Code: Select all
simul(periods=100,maxit=100);

In your case, the shock size seems to be too large so that a solution cannot be obtained anymore. With
Code: Select all
var eta_b;
periods 1;
values -0.02;
end;

it works.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: max number of iterations

Postby h0ps » Sun Mar 23, 2014 8:52 pm

Yes, it works if I reduce the magnitude of the shock, but I'm interested in a large shock (so to reach the ZLB). But is there no solution due to the math or because it "doesn't try hard enough" (i.e. that the number of iterations is too low?)
h0ps
 
Posts: 32
Joined: Tue Jul 10, 2012 1:55 pm

Re: max number of iterations

Postby jpfeifer » Mon Mar 24, 2014 1:06 pm

It's hard to tell. Using 10000 iterations resulted in no success. My guess would be that there is a more fundamental problem as in the model being not determinate anymore if you are sufficiently long at the ZLB due to a high shock size.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

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