Smart-grid is the new generation of the power gird that has been advocated to increase the reliability of the grid and to reduce carbon footprint by integrating distributed resources. Microgrid technology allows for the integration of renewables energies. Microgrids are either AC or DC.