Skip to content
Snippets Groups Projects
Commit 77d6782c authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

evaluate_steady_state.m: check whether planner_discount is actually set for ramsey

parent 54239490
Branches
Tags
1 merge request!2046evaluate_steady_state.m: check whether planner_discount is actually set for ramsey
......@@ -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, ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment