Skip to content
Snippets Groups Projects
Commit 1edb8ba7 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'planner_check' into 'master'

evaluate_planner_objective.m: fix check for NaN moments

See merge request Dynare/dynare!1996
parents 18060ffe b5d129de
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment