From ea504638fc7e146f8fcd776705bbf85e97790d7c Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Wed, 31 Oct 2012 17:56:20 +0100 Subject: [PATCH] fixing bug for local approximation of models with variables appearing only as forward looking (I believe that such models can't be solved, but it is a different issue). --- matlab/dyn_first_order_solver.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matlab/dyn_first_order_solver.m b/matlab/dyn_first_order_solver.m index 89420b57c..fe9db9baa 100644 --- a/matlab/dyn_first_order_solver.m +++ b/matlab/dyn_first_order_solver.m @@ -148,7 +148,7 @@ if isempty(reorder_jacobian_columns) index_e = [index_m index_0p]; index_e1 = [1:npred+nboth, npred+nboth+find(llx(maximum_lag+1,nstatic+npred+(1: ... nyf)))]; - index_e2 = npred+nboth+nfwrd+(1:nboth); + index_e2 = npred+nboth+(1:nboth); [junk,cols_b] = find(lead_lag_incidence(maximum_lag+1, order_var)); @@ -213,8 +213,6 @@ else E(row_indx_de_1,index_e1) = -aa(row_indx,index_e); E(row_indx_de_2,index_e2) = eye(nboth); - E = [-aa(row_indx,[index_m index_0p]) ; [zeros(nboth,nboth+npred) eye(nboth,nboth+nfwrd) ] ]; - [err, ss, tt, w, sdim, dr.eigval, info1] = mjdgges(E,D,DynareOptions.qz_criterium); mexErrCheck('mjdgges', err);