Auto-generated algorithms for nonlinear model predictive control on long and on short horizons | IEEE Conference Publication | IEEE Xplore