Smooth Model Predictive Control with Applications to Statistical Learning