Optimal Operation for Community-Based Multi-Party Microgrid in Grid-Connected and Islanded Modes | Synapse