Linear algorithm for perfect foresight is buggy when there are lagged exogenous variables in the model

The algorithm implemented in sim1_linear.m is wrong when there are lagged exogenous variables because it relies on the derivatives of exogenous variables that are themselves wrong because of the issue reported in #1731 (closed)

Edited by MichelJuillard