Merge branch 'discretion_news' into 'master'

discretionary_policy_1.m: take care of presence of auxiliary equations

See merge request Dynare/dynare!1767
time-shift
Sébastien Villemot 2020-11-12 09:49:00 +00:00
commit 5fd2a06483
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ end
Indices={'lag','contemp','lead'};
iter=1;
for j=1:numel(Indices)
A.(Indices{j})=zeros(M_.orig_eq_nbr,M_.endo_nbr);
A.(Indices{j})=zeros(M_.eq_nbr,M_.endo_nbr);
if strcmp(Indices{j},'contemp')||(strcmp(Indices{j},'lag') && M_.maximum_lag)||(strcmp(Indices{j},'lead') && M_.maximum_lead)
[~,row,col]=find(M_.lead_lag_incidence(iter,:));
A.(Indices{j})(:,row)=jacobia_(:,col);