Skip to content
Snippets Groups Projects
Verified Commit 584e661f authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Ensure that the ordering of the exogenous variables is correct...

in model inversion routines.
parent f19ab66b
Branches
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ for i=1:nyctrl
end
% Exogenous variables.
X = exogenousvariables.data;
X = exogenousvariables{exo_names{:}}.data;
% Inversion of the model, solvers for the free endogenous and exogenous variables (call a Newton-like algorithm in each period).
ity = 2;
......
......@@ -77,6 +77,8 @@ end
endo_names = DynareModel.endo_names;
exo_names = DynareModel.exo_names;
exogenousvariables = exogenousvariables{exo_names{:}};
% Use specidalized routine if the model is backward looking.
if ~DynareModel.maximum_lead
if DynareModel.maximum_lag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment