Asymptotically optimal ditiction of a change in a linear model