Test Asset Grid Count (Save + Borr Dynamic Programming Problem)

back to Fan's Dynamic Assets Repository Table of Content.

Testing the ff_abz_vf_vecsv program for solving the savings and borrowing dynamic programming problem.

Loop over the number of asset points. 100 points means 100 grid points for the choice grid as well as the asset grid. The choice state grid is the same as the asset state grid.

Here we see how does changing the asset/choice grid count from 100 to 750 and to 2250 points change the model solutions.

@seealso

Contents

Simulate Model with Different Asset Grid Count

close all

ar_it_a_n = [100, 750, 2250];
% ar_it_w_n = [25, 50];

for it_a_n = ar_it_a_n

    disp('xxxxxxxxxxxxxxxxxxxxxxxxxxx');
    disp('xxxxxxxxxxxxxxxxxxxxxxxxxxx');
    disp(['it_a_n = ' num2str(it_a_n)]);
    disp('xxxxxxxxxxxxxxxxxxxxxxxxxxx');
    disp('xxxxxxxxxxxxxxxxxxxxxxxxxxx');
    disp('');
    disp('');
    disp('');
    disp('');

    it_param_set = 4;
    [param_map, support_map] = ffs_abz_set_default_param(it_param_set);

    % Simulation Accuracy
    param_map('it_a_n') = it_a_n;
    param_map('it_z_n') = 15;

    % 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_vf_vecsv(param_map, support_map);
    % Snap
    snapnow;

end

% close all
close all;
clear all;
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
it_a_n = 100
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Warning:
"C:\Users\fan\CodeDynaAsset\m_abz\test\ff_abz_vf_vecsv\test_precision\html"
not found in path. 
Elapsed time is 0.173689 seconds.
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
it_a_n = 750
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Elapsed time is 2.653821 seconds.
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
it_a_n = 2250
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Elapsed time is 19.866991 seconds.