Introduction - If you have any usage issues, please Google them yourself
The code is implemented according to Algorithm 1 that appeared in:
C.-J. Ong, Z. Wang, and M. Dehghan, Model Predictive Control for
Switching System with Dwell-time Restriction ,