Real-time Predictive Control of Constrained Nonlinear Systems Using the IPA-SQP Approach.