Energy Management of Grid-Connected Microgrids Using an Optimal Systems Approach | Synapse