Text this: Using model predictive control in renewable energy sources