Text this: Nonlinear model predictive control using automatic differentiation