Bugfix: perfect_foresight_setup safety check does not correctly index M_.lead_lag_incidence

time-shift
Sébastien Villemot 2019-06-18 17:01:06 +02:00
parent ec05451d1a
commit aedc9fb2e4
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ test_for_deep_parameters_calibration(M_);
if size(M_.lead_lag_incidence,2)-nnz(M_.lead_lag_incidence(M_.maximum_endo_lag+1,:)) > 0
mess = 'PERFECT_FORESIGHT_SETUP: error in model specification : the variable(s) ';
var_list = M_.endo_names(M_.lead_lag_incidence(M_.maximum_lag+1,:)==0);
var_list = M_.endo_names(M_.lead_lag_incidence(M_.maximum_endo_lag+1,:)==0);
for i=1:length(var_list)
if i<length(var_list)
mess = [mess, var_list{i} ', '];