Thank you!
What does the lowmemory
option actually do?
When I set vfoptions.lowmemory = 1
, I get I different error:
>> EpsteinZinPreferences
Grid sizes n_k=200, n_l=31, n_z=25, n_sigma=5
vfoptions =
struct with fields:
exoticpreferences: 'EpsteinZin'
EZutils: 0
EZoneminusbeta: 1
lowmemory: 1
EZriskaversion: 'gamma'
EZeis: 'psi'
verbose: 1
solnmethod: 'purediscretization_refinement'
parallel: 2
returnmatrix: 2
tolerance: 1.0000e-09
howards: 80
maxhowards: 500
endogenousexit: 0
endotype: 0
incrementaltype: 0
polindorval: 1
policy_forceintegertype: 0
piz_strictonrowsaddingtoone: 0
outputkron: 0
Starting Value Function
Unrecognized function or variable 'V0Kron'.
Error in ValueFnIter_Case1_EpsteinZin (line 145)
[VKron, Policy]=ValueFnIter_Case1_EpsteinZin_LowMem_Par2_raw(V0Kron, n_d,n_a,n_z, d_grid, a_grid, z_grid, pi_z, DiscountFactorParamsVec, ReturnFn, ReturnFnParamsVec,vfoptions.howards, vfoptions.maxhowards,vfoptions.tolerance, ezc1,ezc2,ezc3,ezc4,ezc5,ezc6,ezc7);
Error in ValueFnIter_Case1 (line 254)
[V, Policy]=ValueFnIter_Case1_EpsteinZin(V0, n_d,n_a,n_z,d_grid,a_grid,z_grid, pi_z, DiscountFactorParamNames, ReturnFn, vfoptions,Parameters,ReturnFnParamNames);
Error in EpsteinZinPreferences (line 136)
[V, Policy]=ValueFnIter_Case1(n_d,n_a,n_s,d_grid,a_grid,s_grid, pi_s, ReturnFn, Params, DiscountFactorParamNames, [], vfoptions);
When I set vfoptions.lowmemory = 2
, I get the following (and different) error:
>> EpsteinZinPreferences
Grid sizes n_k=200, n_l=31, n_z=25, n_sigma=5
vfoptions =
struct with fields:
exoticpreferences: 'EpsteinZin'
EZutils: 0
EZoneminusbeta: 1
lowmemory: 2
EZriskaversion: 'gamma'
EZeis: 'psi'
verbose: 1
solnmethod: 'purediscretization_refinement'
parallel: 2
returnmatrix: 2
tolerance: 1.0000e-09
howards: 80
maxhowards: 500
endogenousexit: 0
endotype: 0
incrementaltype: 0
polindorval: 1
policy_forceintegertype: 0
piz_strictonrowsaddingtoone: 0
outputkron: 0
Time to solve for Value Fn and Policy: 123.3455
Transforming Value Fn and Optimal Policy matrices back out of Kronecker Form
Unrecognized function or variable 'VKron'.
Error in ValueFnIter_Case1_EpsteinZin (line 159)
V=reshape(VKron,[n_a,n_z]);
Error in ValueFnIter_Case1 (line 254)
[V, Policy]=ValueFnIter_Case1_EpsteinZin(V0, n_d,n_a,n_z,d_grid,a_grid,z_grid, pi_z, DiscountFactorParamNames, ReturnFn, vfoptions,Parameters,ReturnFnParamNames);
Error in EpsteinZinPreferences (line 136)
[V, Policy]=ValueFnIter_Case1(n_d,n_a,n_s,d_grid,a_grid,s_grid, pi_s, ReturnFn, Params, DiscountFactorParamNames, [], vfoptions);