Page 1 of 1

max number of iterations

PostPosted: Fri Mar 21, 2014 11:22 pm
by h0ps
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)

Re: max number of iterations

PostPosted: Sat Mar 22, 2014 8:58 am
by jpfeifer
Please provide me with a mod-file. Also, are we talking about the steady or simul?

Re: max number of iterations

PostPosted: Sun Mar 23, 2014 10:47 am
by h0ps
We are talking about the simulation

Re: max number of iterations

PostPosted: Sun Mar 23, 2014 3:39 pm
by jpfeifer
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.

Re: max number of iterations

PostPosted: Sun Mar 23, 2014 8:52 pm
by h0ps
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?)

Re: max number of iterations

PostPosted: Mon Mar 24, 2014 1:06 pm
by jpfeifer
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.