**5. Case Study**

In this paper, without loss of generality, the scheduling time for the considered hybrid microgrid is set as 24 h, and the dispatch period is set as 1 h. In a single period, the load demand is taken as the constant. Before explaining the simulation results, some parameters that were used are illustrated in Table 1.


**Table 1.** Daily load, wind generator output and photovoltaic (PV) output.

Furthermore, the power generation cost and some operating parameters for the power supply are shown in Table 2 [44].


**Table 2.** Microgrid system operating parameters.

#### *5.1. Single-Period Simulation Analysis*

In the single-period simulation, we verified the proposed algorithm by choosing the data in the time range of 11:00–12:00 in Table 1. The leader nodes are 1, 2, 3, and 5, and the tracking layer nodes are 4 and 6. When considering the constraint conditions shown in Table 2, the proposed distributed two-layer consensus algorithm was tested in the circumstances of isolated AC/DC hybrid microgrid, AC sub-grid, and DC sub-grid, respectively.
