
model_info.m: fix display of lagged states

1 unresolved thread
1 unresolved thread
preprocessor increments lags/leads always only by 1
preprocessor increments lags/leads always only by 1
I have the impression that there is still a remaining bug after fixing the one you have identified: the line 285 str = subst_auxvar(var_index, -1, M_);
should be replaced by str = subst_auxvar(var_index, -1+lead_lag, M_);
. And line 287 should be modified in a similar fashion. Can you confirm?
Because we nowadays only work with one lead/lag models, we can hardcode the -1/+1
the way it is done in disp_dr.m
. But I agree that the code is more readable with explicit reference to lead_lag
. I also allows to simplify the code. I pushed an amended version.
mentioned in commit 6235de3a
merged