MPC in state-space