Expand stack_solve_algo=7 unit tests to other solve_algo

time-shift
Johannes Pfeifer 2016-07-03 17:08:28 +02:00 committed by Stéphane Adjemian (Lupi)
parent 9c9e103627
commit 299d7edf8b
1 changed files with 19 additions and 1 deletions

View File

@ -82,4 +82,22 @@ D = load('rbc_det_results');
if norm(D.oo_.endo_simul - oo_.endo_simul) > 1e-30;
disp(norm(D.oo_.endo_simul - oo_.endo_simul));
error('rbc_det_stack_solve_algo_7 failed');
end;
end;
@#define J = 10
@#for solve_algo_iter in 0:J
perfect_foresight_solver(stack_solve_algo=7,solve_algo=@{solve_algo_iter});
rplot Consumption;
rplot Capital;
D = load('rbc_det_results');
if norm(D.oo_.endo_simul - oo_.endo_simul) > 1e-6;
disp(norm(D.oo_.endo_simul - oo_.endo_simul));
error('rbc_det_stack_solve_algo_7 failed');
end;
@#endfor