Merge branch 'occbin_exo' into 'master'
model_diagnostics.m: add check for non-zero exogenous with OccBin See merge request Dynare/dynare!2206remove-priordens
commit
b535763e56
|
@ -244,9 +244,6 @@ elseif ismember(options.solve_algo, [2, 4])
|
|||
end
|
||||
for i=length(r)-1:-1:1
|
||||
blocklength = r(i+1)-r(i);
|
||||
if options.debug
|
||||
dprintf('DYNARE_SOLVE (solve_algo=2|4): solving block %u of size %u.', i, blocklength);
|
||||
end
|
||||
j = r(i):r(i+1)-1;
|
||||
blockcolumns=s(i+1)-s(i);
|
||||
if blockcolumns ~= blocklength
|
||||
|
|
|
@ -113,6 +113,12 @@ if options_.logged_steady_state %if steady state was previously logged, undo thi
|
|||
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);
|
||||
|
||||
if isfield(M_,'occbin')
|
||||
if any(oo_.exo_steady_state)
|
||||
disp('MODEL_DIAGNOSTICS: OccBin was detected in conjunction with a non-zero steady state of the exogenous variables. That will usually create issues.')
|
||||
problem_dummy=1;
|
||||
end
|
||||
end
|
||||
% testing for problem
|
||||
if check1(1)
|
||||
problem_dummy=1;
|
||||
|
|
Loading…
Reference in New Issue