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

Testsuite: replace “simul” by “perfect_foresight_setup” + “perfect_foresight_solver”

parent be698d5f
No related branches found
No related tags found
No related merge requests found
Pipeline #8092 passed
Showing
with 48 additions and 25 deletions
...@@ -72,6 +72,8 @@ end; ...@@ -72,6 +72,8 @@ end;
model_info; model_info;
simul(periods=2000, stack_solve_algo = 0,maxit=10); perfect_foresight_setup(periods=2000);
perfect_foresight_solver(stack_solve_algo = 0, maxit=10);
rplot y; rplot y;
rplot k; rplot k;
...@@ -44,7 +44,8 @@ end; ...@@ -44,7 +44,8 @@ end;
steady; steady;
simul(periods=200); perfect_foresight_setup(periods=200);
perfect_foresight_solver;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -51,7 +51,8 @@ end; ...@@ -51,7 +51,8 @@ end;
// steady; // steady;
simul(periods=200); perfect_foresight_setup(periods=200);
perfect_foresight_solver;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -17,7 +17,8 @@ end; ...@@ -17,7 +17,8 @@ end;
check; check;
%% DETERMINISTIC SIMULATION %% DETERMINISTIC SIMULATION
simul(periods = 40, stack_solve_algo=0, maxit=100); perfect_foresight_setup(periods = 40);
perfect_foresight_solver(stack_solve_algo=0, maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -115,13 +115,16 @@ steady; ...@@ -115,13 +115,16 @@ steady;
check; check;
simul(periods=300); perfect_foresight_setup(periods=300);
perfect_foresight_solver;
endo_simul_0 = oo_.endo_simul; endo_simul_0 = oo_.endo_simul;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
end end
simul(linear_approximation,periods=300, stack_solve_algo=7); perfect_foresight_setup(periods=300);
perfect_foresight_solver(linear_approximation, stack_solve_algo=7);
endo_simul_1 = oo_.endo_simul; endo_simul_1 = oo_.endo_simul;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -27,7 +27,8 @@ end; ...@@ -27,7 +27,8 @@ end;
check; check;
// Deterministic simulation of the model for 200 periods // Deterministic simulation of the model for 200 periods
simul(periods=100, tolf=1e-12); perfect_foresight_setup(periods=100);
perfect_foresight_solver(tolf=1e-12);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -29,7 +29,8 @@ end; ...@@ -29,7 +29,8 @@ end;
check; check;
// Deterministic simulation of the model for 200 periods // Deterministic simulation of the model for 200 periods
simul(periods=100, tolf=1e-12); perfect_foresight_setup(periods=100);
perfect_foresight_solver(tolf=1e-12);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -52,7 +52,8 @@ values 1.2; ...@@ -52,7 +52,8 @@ values 1.2;
end; end;
// Deterministic simulation of the model for 200 periods // Deterministic simulation of the model for 200 periods
simul(periods=200); perfect_foresight_setup(periods=200);
perfect_foresight_solver;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -27,7 +27,8 @@ periods 2; ...@@ -27,7 +27,8 @@ periods 2;
values 0.9; values 0.9;
end; end;
simul(periods=200,maxit=100); perfect_foresight_setup(periods=200);
perfect_foresight_solver(maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -38,7 +38,8 @@ periods 2; ...@@ -38,7 +38,8 @@ periods 2;
values 0.9; values 0.9;
end; end;
simul(periods=200,maxit=100); perfect_foresight_setup(periods=200);
perfect_foresight_solver(maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -41,7 +41,8 @@ periods 2; ...@@ -41,7 +41,8 @@ periods 2;
values 0.9; values 0.9;
end; end;
simul(periods=200,maxit=100); perfect_foresight_setup(periods=200);
perfect_foresight_solver(maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -36,7 +36,8 @@ periods 2; ...@@ -36,7 +36,8 @@ periods 2;
values 0.9; values 0.9;
end; end;
simul(periods=200,maxit=100); perfect_foresight_setup(periods=200);
perfect_foresight_solver(maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -41,7 +41,8 @@ periods 2; ...@@ -41,7 +41,8 @@ periods 2;
values 0.9; values 0.9;
end; end;
simul(periods=200,maxit=100); perfect_foresight_setup(periods=200);
perfect_foresight_solver(maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -40,7 +40,8 @@ periods 2; ...@@ -40,7 +40,8 @@ periods 2;
values 0.9; values 0.9;
end; end;
simul(periods=200,maxit=100); perfect_foresight_setup(periods=200);
perfect_foresight_solver(maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -51,7 +51,8 @@ periods 2; ...@@ -51,7 +51,8 @@ periods 2;
values 0.9; values 0.9;
end; end;
simul(periods=200,maxit=100); perfect_foresight_setup(periods=200);
perfect_foresight_solver(maxit=100);
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -25,7 +25,8 @@ shocks; ...@@ -25,7 +25,8 @@ shocks;
values 1; values 1;
end; end;
simul(periods=10); perfect_foresight_setup(periods=10);
perfect_foresight_solver;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -22,7 +22,8 @@ shocks; ...@@ -22,7 +22,8 @@ shocks;
values 1 -1; values 1 -1;
end; end;
simul(periods=5); perfect_foresight_setup(periods=5);
perfect_foresight_solver;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -35,7 +35,8 @@ periods 1 2; ...@@ -35,7 +35,8 @@ periods 1 2;
values .3 -0.1; values .3 -0.1;
end; end;
simul(periods=5); perfect_foresight_setup(periods=5);
perfect_foresight_solver;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') error('Perfect foresight simulation failed')
......
...@@ -22,4 +22,5 @@ shocks; ...@@ -22,4 +22,5 @@ shocks;
values 1 .5 .25 .125; values 1 .5 .25 .125;
end; end;
simul(periods=4); perfect_foresight_setup(periods=4);
perfect_foresight_solver;
...@@ -69,7 +69,8 @@ histval; ...@@ -69,7 +69,8 @@ histval;
Capital(0) = CapitalSS/2; Capital(0) = CapitalSS/2;
end; end;
simul(periods=20); perfect_foresight_setup(periods=20);
perfect_foresight_solver;
if ~oo_.deterministic_simulation.status if ~oo_.deterministic_simulation.status
error('Perfect foresight simulation failed') 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