From f82dbd4ac2c002c090bccd4f57b35a277cec5085 Mon Sep 17 00:00:00 2001 From: Michel Juillard <michel.juillard@mjui.fr> Date: Thu, 7 Jun 2018 12:20:04 +0200 Subject: [PATCH] fixes bug for solve_algo = 10 and lags on exogenous variables (cherry picked from commit 8913791ff0972f8a56d6c5d0d325d1cb6fda7189) --- matlab/perfect-foresight-models/perfect_foresight_problem.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/perfect-foresight-models/perfect_foresight_problem.m b/matlab/perfect-foresight-models/perfect_foresight_problem.m index a4df03f80..d27ec6eaf 100644 --- a/matlab/perfect-foresight-models/perfect_foresight_problem.m +++ b/matlab/perfect-foresight-models/perfect_foresight_problem.m @@ -71,7 +71,7 @@ i_rows = 1:ny; i_cols_J = i_cols; offset = 0; -for it = 2:(T+1) +for it = (maximum_lag+1):(T+1) if nargout == 1 residuals(i_rows) = dynamic_function(YY(i_cols),exo_simul, params, ... steady_state,it); -- GitLab