Commit f37f4d4b authored by MichelJuillard's avatar MichelJuillard
Browse files

fixing bug in computing steady state of Ramsey policy

parent 7ddab426
......@@ -35,6 +35,7 @@ function [steady_state,params,check] = dyn_ramsey_static(x,M,options_,oo)
steady_state = [];
params = M.params;
check = 0;
options_.steadystate.nocheck = 1;
nl_func = @(x) dyn_ramsey_static_1(x,M,options_,oo);
if options_.steadystate_flag
......
......@@ -78,7 +78,7 @@ function [ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M,options)
end
% adding values for auxiliary variables
if length(M.aux_vars) > 0
if length(M.aux_vars) > 0 && ~options.ramsey_policy
h_set_auxiliary_variables = str2func([M.fname '_set_auxiliary_variables']);
ys = h_set_auxiliary_variables(ys,exo_ss,params);
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment