Not wanted info displayed on screen

I noticed that if I set vfoptions.gridinterplayer = 1 I get some weird info displayed on the screen. In my case, every time I run this part of the code (partial equilibrium):

tic
[~,Policy]=ValueFnIter_Case1(n_d,n_a,n_z,d_grid,a_grid,z_grid,pi_z,ReturnFn,Params,DiscountFactorParamNames,ReturnFnParamNames,vfoptions);
time_vfi = toc;
StationaryDist=StationaryDist_Case1(Policy,n_d,n_a,n_z,pi_z,simoptions);
%EvalFnOnAgentDist_AggVars_Case1(       StationaryDist, Policy, FnsToEvaluate, Parameters, FnsToEvaluateParamNames, n_d, n_a, n_z, d_grid, a_grid, z_grid, simoptions, EntryExitParamNames, PolicyWhenExiting)
AggVars=EvalFnOnAgentDist_AggVars_Case1(StationaryDist, Policy, FnsToEvaluate, Params, [], n_d, n_a, n_z, d_grid, a_grid, z_grid, simoptions);
ValuesOnGrid=EvalFnOnAgentDist_ValuesOnGrid_Case1(Policy, FnsToEvaluate, Params, [], n_d, n_a, n_z, d_grid,a_grid, z_grid, simoptions);

I get the following output:

ans =

           2       12000


ans =

           2       12000


ans =

           2       12000

Time VFI: 2.026864 

I want the runtimes to be displayed, but I don’t know what the extra output means. This is really a very minor issue, I’m just flagging it in case you want to do some polishing of the code :slight_smile: @robertdkirkby

It is a size() command I have accidently left there (I would have used it while checking things were working right).

What is the exact setup in terms of n_d and n_a?

1 Like

I think n_d = 10 and n_a = [600,3]

Found and cleaned it up. Thanks for letting me know.

(Rather busy teaching atm so responses are slow :slight_smile: )

1 Like

No prob, thanks! I’ll start teaching soon, so I understand well :blush: