adding check for model size before computing value of planner objective.
parent
36b804b044
commit
660fc64471
|
@ -32,6 +32,12 @@ dr = oo.dr;
|
||||||
exo_nbr = M.exo_nbr;
|
exo_nbr = M.exo_nbr;
|
||||||
nstatic = M.nstatic;
|
nstatic = M.nstatic;
|
||||||
nspred = M.nspred;
|
nspred = M.nspred;
|
||||||
|
if nspred > 180
|
||||||
|
disp(' ')
|
||||||
|
disp(['evaluate_planner_objective: model too large, can''t evaluate planner ' ...
|
||||||
|
'objective'])
|
||||||
|
return NaN
|
||||||
|
end
|
||||||
beta = get_optimal_policy_discount_factor(M.params,M.param_names);
|
beta = get_optimal_policy_discount_factor(M.params,M.param_names);
|
||||||
|
|
||||||
Gy = dr.ghx(nstatic+(1:nspred),:);
|
Gy = dr.ghx(nstatic+(1:nspred),:);
|
||||||
|
|
Loading…
Reference in New Issue