evaluate_planner_objective.m: fix check for NaN moments

last-period-simul
Johannes Pfeifer 2022-01-18 13:54:35 +01:00
parent e1d0ce28d2
commit b5d129de1f
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ if options_.ramsey_policy
options_.noprint = 0;
end
if any(isnan(oo_.mean)) || any(isnan(oo_.mean))
if any(isnan(oo_.mean)) || any(any(isnan(oo_.var)))
fprintf('evaluate_planner_objective: encountered NaN moments in the endogenous variables often associated\n')
fprintf('evaluate_planner_objective: with either non-stationary variables or singularity due e.g. including\n')
fprintf('evaluate_planner_objective: the planner objective function (or additive parts of it) in the model.\n')