Model predictive control for max-plus-linear and piecewise affine systems by I. Necoara