added PWA functions for the simulations of the explicit MPC