Text this: Model predictive control of distributed generation inverter in a microgrid