Quick vs Benchmark vs More Precise (For + Inf + Borr + Save DP)
back to Fan's Dynamic Assets Repository Table of Content.
Testing the ff_abz_fibs_vf_vecsv program for solving the savings and borrowing dynamic programming problem.
Computational speed is determined by the number of asset and shock grid points. Here we run the model with quick, benchmark and more precise simulations with increasing grid points for shocks and asset.
- quick: fast run
- benchmark: default as set in ffs_abz_fibs_set_default_param
- more precise: increase grid count for shocks and asset
@seealso
- BORROW: borrow and default small grid testing: ff_abz_fibs_vf_vecsv_default_small
- BORROW: borrow and default large grid testing: ff_abz_fibs_vf_vecsv_default_large
- PRECISION: borr + save quick vs benchmark testing: fsi_abz_fibs_vf_vecsv_main
- PRECISION: borr + save asset grid count testing: fsi_abz_fibs_vf_vecsv_a_n
- PRECISION: borr + save shock grid count testing: fsi_abz_fibs_vf_vecsv_z_n
Contents
Quick Solution
it_param_set = 4; [param_map, support_map] = ffs_abz_fibs_set_default_param(it_param_set); % Simulation Accuracy param_map('it_a_n') = 100; param_map('it_z_n') = 11; param_map('bl_default') = true; param_map('bl_bridge') = true; % Display Parameters support_map('bl_display') = false; support_map('bl_display_final') = false; support_map('bl_time') = true; support_map('bl_profile') = false; % Call Program ff_abz_fibs_vf_vecsv(param_map, support_map); % Snap snapnow; close all;
Elapsed time is 0.215613 seconds. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data.
Benchmark Solution
it_param_set = 4; [param_map, support_map] = ffs_abz_fibs_set_default_param(it_param_set); % Simulation Accuracy param_map('it_a_n') = 750; param_map('it_z_n') = 15; param_map('bl_default') = true; param_map('bl_bridge') = true; % Display Parameters support_map('bl_display') = false; support_map('bl_display_final') = false; support_map('bl_time') = true; support_map('bl_profile') = false; % Call Program ff_abz_fibs_vf_vecsv(param_map, support_map); % Snap snapnow; close all;
Elapsed time is 2.857073 seconds. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data.
More Precise Solution
it_param_set = 4; [param_map, support_map] = ffs_abz_fibs_set_default_param(it_param_set); % Simulation Accuracy param_map('it_a_n') = 2250; param_map('it_z_n') = 27; param_map('bl_default') = true; param_map('bl_bridge') = true; % Display Parameters support_map('bl_display') = false; support_map('bl_display_final') = false; support_map('bl_time') = true; support_map('bl_profile') = false; % Call Program ff_abz_fibs_vf_vecsv(param_map, support_map); % Snap snapnow; close all; clear all;
Elapsed time is 36.217229 seconds. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data. Warning: Using only the real component of complex data.