Riskyasset (portfolio-choice) now much faster with refine

Oops, sorry, should be fixed now.

[I was doing some internal cleaning about two weeks ago so all the riskyasset codes did that bit of figuring out which decision variable is which using same few lines of code, clearly didn’t fully clean up.]

1 Like

Thanks. But now the following error appears:

> Unrecognized function or variable 'l_a'.
> 
> Error in StationaryDist_FHorz_Case1_RiskyAsset (line 111)
> if l_a==1 % just riskyasset
> 
> Error in StationaryDist_FHorz_Case1 (line 147)
>     StationaryDist=StationaryDist_FHorz_Case1_RiskyAsset(jequaloneDist,AgeWeightParamNames,Policy,n_d,n_a,n_z,N_j,pi_z_J,Parameters,simoptions);
> 
> Error in LifeCycleModel35 (line 299)
> StationaryDist=StationaryDist_FHorz_Case1(jequaloneDist,AgeWeightsParamNames,Policy,n_d,n_a,n_z,N_j,pi_z,Params,simoptions);
2 Likes

Should be fixed.

I cannot test as I am away (so no gpu). Let me know if there is another issue.

2 Likes

Now it goes through without errors. Thank you!

2 Likes