Variational and Time-Distributed Methods for Real-time Model Predictive Control