Hi Rob,
Wanted to ask if you could add this block of code
%% Separable Return Fn
if vfoptions.separableReturnFn==1
% Split it off here, as messes with ReturnFnParamNames and ReturnFnParamsVec
[V,Policy]=ValueFnIter_FHorz_SeparableReturnFn(n_d,n_a,n_z,vfoptions.n_semiz,N_j,d_grid,a_grid,z_gridvals_J,vfoptions.semiz_gridvals_J, pi_z_J, vfoptions.pi_semiz_J, ReturnFn, Parameters, DiscountFactorParamNames, ReturnFnParamNames, vfoptions);
varargout={V,Policy};
return
end
in ValueFnIter_Case1_FHorz around line 280, after the block %% Semi-exogenous shock gridvals and pi and before the block %% Implement new way of handling ReturnFn inputs.
Iām implementing something similar to what we did in the infinite horizon version, this time for finite horizon with semi-exogenous shocks.
I think it shouldnāt bother any other user, but feel free to reject my proposal if you think it does not fit with the toolkit ![]()
Thanks!