Merge branch 'planner_check' into 'master'

evaluate_planner_objective.m: fix check for NaN moments

See merge request Dynare/dynare!1996
last-period-simul
Sébastien Villemot 2022-01-18 16:45:06 +00:00
commit 1edb8ba7ba
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')