An Optimal Energy Storage Control Strategy for Grid-connected Microgrids | Synapse