I. Introduction
A microgrid (MG) is a small-scale power system composed of electric power generating sources, switchgears, conductors, protective facilities, control devices, loads, and so on. The sources of electric power generate sufficient electric power to meet the demand of all loads in the MG. The switchgears control the connection of the conductors in the MG. The protective facilities protect the safety of the MG when faults occur. The control devices control the generation of electric power in the source and the voltage, frequency, and power flow of the MG [1]–[4].