Skip to content
Snippets Groups Projects
Verified Commit 181725c7 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Discretionary policy: remove useless call to steady state file

The steady state is always zero for discretionary policy. And, in the case of a
steady state file, this call would not be able to update parameters (since it
does not modify M_), nor would it need to do so (since this has already be done
earlier in the function).

Ref. #1705
parent d5312e8e
No related branches found
No related tags found
No related merge requests found
Pipeline #3154 passed
......@@ -74,7 +74,7 @@ end
if options_.steadystate_flag
% explicit steady state file
[~,M_.params,info] = evaluate_steady_state_file(oo_.steady_state,[oo_.exo_steady_state; oo_.exo_det_steady_state],M_, ...
options_,0);
options_,false);
end
[U,Uy,W] = feval([M_.fname,'.objective.static'],zeros(endo_nbr,1),[], M_.params);
if any(any(isnan(Uy)))
......@@ -178,12 +178,4 @@ dr.ghu=G(order_var,:);
Selection=lead_lag_incidence(1,order_var)>0;%select state variables
dr.ghx=T(:,Selection);
dr.ys=NondistortionarySteadyState(M_);
oo_.dr = dr;
function ys=NondistortionarySteadyState(M_)
if exist([M_.fname,'_steadystate.m'],'file')
eval(['ys=',M_.fname,'_steadystate.m;'])
else
ys=zeros(M_.endo_nbr,1);
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment