Skip to content
Snippets Groups Projects
Verified Commit aedc9fb2 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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

parent ec05451d
Branches
Tags
No related merge requests found
......@@ -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} ', '];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment