diff --git a/matlab/evaluate_planner_objective.m b/matlab/evaluate_planner_objective.m index d306fe0723d42435264e3388e4fe64831d6106c1..7b816a07d250f655c75d25250d760c1c34943415 100644 --- a/matlab/evaluate_planner_objective.m +++ b/matlab/evaluate_planner_objective.m @@ -86,6 +86,10 @@ nstatic = M_.nstatic; nspred = M_.nspred; beta = get_optimal_policy_discount_factor(M_.params, M_.param_names); +if beta>=1 + fprintf('evaluate_planner_objective: the planner discount factor is not strictly smaller than 1. Unconditional welfare will not be finite.\n') +end + if options_.ramsey_policy if oo_.gui.ran_perfect_foresight T = size(oo_.endo_simul,2);