Skip to content
Snippets Groups Projects
Commit 79780708 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug.

parent fed2e229
No related branches found
No related tags found
No related merge requests found
...@@ -251,8 +251,10 @@ while (t<sample_size) ...@@ -251,8 +251,10 @@ while (t<sample_size)
% Test if periods is big enough. The variable delta measures the maximum absolute variation during % Test if periods is big enough. The variable delta measures the maximum absolute variation during
% the last periods of the simulated path. This variation has to be close to zero (because the % the last periods of the simulated path. This variation has to be close to zero (because the
% economy is assumed to be in the steady state at the end of the simulated path). % economy is assumed to be in the steady state at the end of the simulated path).
if info.convergence
delta = max(max(abs(tmp(:,end-options_.ep.lp:end)-tmp(:,end-options_.ep.lp-1:end-1)))); delta = max(max(abs(tmp(:,end-options_.ep.lp:end)-tmp(:,end-options_.ep.lp-1:end-1))));
if ~increase_periods && delta<options_.dynatol.x end
if info.convergence && ~increase_periods && delta<options_.dynatol.x
% Exit from the while loop (the number of periods is big enough). % Exit from the while loop (the number of periods is big enough).
break break
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment