Model predictive current control