Skip to content
Snippets Groups Projects
Commit 93d92fa6 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'sim1_options' into 'master'

Sim1 options

See merge request Dynare/dynare!1670
parents 547aaafb cc0f2865
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ for it = 2:options.periods+1
yb = endogenousvariables(:,it-1); % Values at previous period, also used as guess value for current period
yb1 = yb(iyb);
[tmp, check] = solve1(dynamicmodel, [yb1; yb], 1:M.endo_nbr, nyb+1:nyb+M.endo_nbr, ...
1, options.gstep, options.solve_tolf, options.solve_tolx, ...
1, options.gstep, options.dynatol.f, options.dynatol.x, ...
options.simul.maxit, options.debug, exogenousvariables, ...
M.params, steadystate, it+M.maximum_lag-1);
if check
......
......@@ -33,8 +33,8 @@ for it = options.periods:-1:1
yf = endogenousvariables(:,it+1); % Values at next period, also used as guess value for current period
yf1 = yf(iyf);
[tmp, check] = solve1(dynamicmodel, [yf; yf1], 1:M.endo_nbr, 1:M.endo_nbr, ...
1, options.gstep, options.solve_tolf, ...
options.solve_tolx, options.simul.maxit, ...
1, options.gstep, options.dynatol.f, ...
options.dynatol.x, options.simul.maxit, ...
options.debug, exogenousvariables, M.params, steadystate, ...
it+M.maximum_lag);
if check
......
......@@ -27,8 +27,7 @@ end;
check;
// Deterministic simulation of the model for 200 periods
options_.solve_tolf=1e-12;
simul(periods=100);
simul(periods=100, tolf=1e-12);
if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed')
......
......@@ -29,8 +29,7 @@ end;
check;
// Deterministic simulation of the model for 200 periods
options_.solve_tolf=1e-12;
simul(periods=100);
simul(periods=100, tolf=1e-12);
if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment