Text this: Optimal operation of grid-connected microgrids with photovoltaic generation and storage