Գրեք սա: A real-time gradient method for nonlinear model predictive control