diff --git a/matlab/evaluate_steady_state.m b/matlab/evaluate_steady_state.m index 6a52fb7158de7235702c2a8c11730c0e919c0649..0dfd84d95f7bf4129c3944ee1a38aad64363bed2 100644 --- a/matlab/evaluate_steady_state.m +++ b/matlab/evaluate_steady_state.m @@ -74,6 +74,9 @@ if options.ramsey_policy % provided by the block-decomposed routines. error('The ''block'' option is not compatible with ''ramsey_model''/''ramsey_policy'''); end + if ~isfinite(M.params(strmatch('optimal_policy_discount_factor',M.param_names,'exact'))) + fprintf('\nevaluate_steady_state: the planner_discount is NaN/Inf. That will cause problems.\n') + end if steadystate_flag % explicit steady state file [ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, ...