Cart-Pole System Controlled by LQR, LMPC and NMPC Controllers Dependencies Matlab (Author's version is R2021a) Casadi : can be installed here Cart-Pole System dynamics Results NMPC: