An optimal dispatch strategy for distributed microgrids using PSO | Synapse