Skip to content
Snippets Groups Projects
Commit 660fc644 authored by MichelJuillard's avatar MichelJuillard
Browse files

adding check for model size before computing value of planner objective.

parent 36b804b0
Branches
Tags
No related merge requests found
......@@ -32,6 +32,12 @@ dr = oo.dr;
exo_nbr = M.exo_nbr;
nstatic = M.nstatic;
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);
Gy = dr.ghx(nstatic+(1:nspred),:);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment