Commit 5c0d387c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Cosmetic change. Changed the organization of options for (stochastic) extended path

parent 63157949
...@@ -164,7 +164,7 @@ while (t<sample_size) ...@@ -164,7 +164,7 @@ while (t<sample_size)
if options_.ep.stochastic.order == 0 if options_.ep.stochastic.order == 0
[flag,tmp,err] = solve_perfect_foresight_model(endo_simul_1,exo_simul_1,pfm1); [flag,tmp,err] = solve_perfect_foresight_model(endo_simul_1,exo_simul_1,pfm1);
else else
[flag,tmp] = solve_stochastic_perfect_foresight_model(endo_simul_1,exo_simul_1,pfm1,options_.ep.stochastic.nodes,options_.ep.stochastic.order); [flag,tmp] = solve_stochastic_perfect_foresight_model(endo_simul_1,exo_simul_1,pfm1,options_.ep.stochastic.quadrature.nodes,options_.ep.stochastic.order);
end end
end end
info_convergence = ~flag; info_convergence = ~flag;
......
...@@ -176,13 +176,13 @@ ep.set_dynare_seed_to_default = 1; ...@@ -176,13 +176,13 @@ ep.set_dynare_seed_to_default = 1;
% Set algorithm for the perfect foresight solver % Set algorithm for the perfect foresight solver
ep.stack_solve_algo = 4; ep.stack_solve_algo = 4;
% Stochastic extended path related options. % Stochastic extended path related options.
ep.stochastic.method = 'tensor'; ep.stochastic.method = '';
ep.stochastic.ortpol = 'hermite'; ep.stochastic.quadrature.ortpol = 'hermite';
ep.stochastic.order = 0; ep.stochastic.order = 0;
ep.stochastic.nodes = 5; ep.stochastic.quadrature.nodes = 5;
ep.stochastic.pruned.status = 0; ep.stochastic.quadrature.pruned.status = 0;
ep.stochastic.pruned.relative = 1e-5; ep.stochastic.quadrature.pruned.relative = 1e-5;
ep.stochastic.pruned.level = 1e-5; ep.stochastic.quadrature.pruned.level = 1e-5;
% Copy ep structure in options_ global structure % Copy ep structure in options_ global structure
options_.ep = ep; options_.ep = ep;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment