5.1.2. Simulation for AC Sub-Grid

In this case, the wind generator, traditional generator, and energy storage unit are in the AC sub-grid. In the isolated AC/DC hybrid microgrid load from 11:00 to 12:00 shown in Table 1, the load of the AC sub-grid is set as 210 kW. By taking the AC sub-grid as the research object, the simulation results obtained by using the proposed two-layer consensus algorithm are given in Figures 5 and 6. Figure 5 shows the power output of the AC side node of a single period in the AC sub-grid, which finally converges to 138.09, 14.60, and 57.31 kW, respectively. Figure 6 is power mismatch of a single period in the AC sub-grid. We know that the total power output is 210 kW, which can meet the load demand.

**Figure 5.** Power output of the AC side node of a single period in the AC sub-grid.

**Figure 6.** Power mismatch of a single period in the AC sub-grid.

#### 5.1.3. Simulation for DC Sub-Grid

Similarly, three parts of distributed power supply, for instance, photovoltaic power generation, traditional generator, and energy storage unit, are in the DC sub-grid. In the single-period simulation process, the load of the DC sub-grid is taken as 190 kW, and the simulation by using the proposed two-layer consensus algorithm is presented in Figures 7 and 8. Figure 7 is the power output of the DC

side node of a single period in the DC sub-grid, which finally converges to 127.70, 6.70, and 55.60 kW respectively, and the sum is 190 kW. Figure 8 is a power mismatch of a single period in the DC sub-grid.

**Figure 7.** Power output of the DC side node of a single period in the DC sub-grid.

**Figure 8.** Power mismatch of a single period in the DC sub-grid.

**Remark 4.** *The second and third circumstances of a single period investigate the power mismatch of the AC sub-grid and the DC sub-grid, respectively. In the AC sub-grid, the power first needs to realize self-su*ffi*ciency. That is to say, the total power output of PWT and PTG1 must meet the total loads in this section. The redundant power can be reserved in the energy storage units, or the energy storage units release power to supply the power demand of the AC sub-grid. It is a similar criteria to the DC sub-grid.*
