Model predictive real-time controller for a low-consumption electric vehicle