Consistently use nocheck flag for steady state

Fixes a bug in model_diagnostics.m
mr#2177
Johannes Pfeifer 2023-12-12 18:30:30 +01:00
parent 62b31aa279
commit 1b4fb46c75
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ beta = get_optimal_policy_discount_factor(M_.params, M_.param_names);
if options_.steadystate_flag if options_.steadystate_flag
% explicit steady state file % explicit steady state file
[ys,M_.params,info] = evaluate_steady_state_file(endo_steady_state,[exo_steady_state; exo_det_steady_state],M_, ... [ys,M_.params,info] = evaluate_steady_state_file(endo_steady_state,[exo_steady_state; exo_det_steady_state],M_, ...
options_,false); options_,~options_.steadystate.nocheck);
if info(1) if info(1)
return; return;
end end

View File

@ -111,7 +111,7 @@ if options_.logged_steady_state %if steady state was previously logged, undo thi
oo_.steady_state=exp(oo_.steady_state); oo_.steady_state=exp(oo_.steady_state);
options_.logged_steady_state=0; options_.logged_steady_state=0;
end end
[dr.ys,M_.params,check1]=evaluate_steady_state(oo_.steady_state,[oo_.exo_steady_state; oo_.exo_det_steady_state],M_,options_,options_.steadystate.nocheck); [dr.ys,M_.params,check1]=evaluate_steady_state(oo_.steady_state,[oo_.exo_steady_state; oo_.exo_det_steady_state],M_,options_,~options_.steadystate.nocheck);
if isfield(M_,'occbin') if isfield(M_,'occbin')
if any(oo_.exo_steady_state) if any(oo_.exo_steady_state)

View File

@ -49,7 +49,7 @@ output_cell{1,1}=mean(xparam1);
% set the parameters draws to the model structure % set the parameters draws to the model structure
M_ = set_all_parameters(xparam1,estim_params_,M_); M_ = set_all_parameters(xparam1,estim_params_,M_);
% compute the steady state for the parameter draw written to M_ % compute the steady state for the parameter draw written to M_
[ys,params,info] = evaluate_steady_state(oo_.steady_state,[oo_.exo_steady_state; oo_.exo_det_steady_state],M_,options_,false); [ys,params,info] = evaluate_steady_state(oo_.steady_state,[oo_.exo_steady_state; oo_.exo_det_steady_state],M_,options_,~options_.steadystate.nocheck);
%set second part of output cell %set second part of output cell
output_cell{1,2}=ys'; output_cell{1,2}=ys';