Real-Time Model Predictive Control