Improved model predictive control trajectory-tracking algorithm with adaptive horizon | Synapse