Explicit solution of LP-based model predictive control