1 Introduction

With the continuing growth of energy consumption and growing attention to environmental pollution, the value of distributed generation (DG) is becoming more and more important. Effectively managing a large amount of DG connected to the grid is a significant challenge.

Microgrids are a mechanism to meet this challenge in their role as independent control systems containing DG, loads and energy storage devices [1, 2]. Large-scale application of microgrids in distribution power grids will require efficient integration of multiple microgrids [35]. In this paper we propose that a Microgrid Cluster (MGC), as an aggregator of microgrids, would help to achieve optimal dispatch of DG and enhance power system reliability and power quality [6, 7].

Microgrids are usually capable of both islanded and grid-connected operation, and being autonomous to switch between these states, which is called as—plug-in or plug-out [8]. It is a difficult problem how to deal with microgrid plugs in and plugs out in MGC in real operating time. Chen proposed microgrid economic scheduling and developed a mathematical model [9], based on the integration of plug-in hybrid electric vehicles (PHEVs), that may be solved using a generic optimisation algorithm. Whereas, the problem of microgrid plug-in and plug-out in a MGC would not be solved in [9]. A solution to this problem is expected to be found on a feasible control architecture in MGCs. The following section lists control architectures used for microgrids and considers their suitability for controlling MGCs.

Microgrid control architecture can be classified into three modes: centralized, decentralized and distributed. The centralized control architecture features a control center, which sends control command to all dispatchable units (loads and generators) in the microgrid, and receives information from them. The advantage of this control mode is speedy and accurate control, addressing voltage fluctuations, frequency variation, harmonic distortion [10], and maintaining reliable supply [11]. Efficient centralized control would construct efficient and stable communication links from the control center to every unit. Microgrid plugs in and plugs out, without stable communication links with the control center, which would increase the realization difficulties of the control center.

In the decentralized control architecture, every unit controller works locally, without a control center [12] and without direct communication with other units.The local controllers can be appropriately adjusted when the parameters or the topology of the system changes, and moreover, it is not difficult for this architecture to offer additional degrees of freedom and increased controllability for each unit [13, 14]. Ahn and Peng [15] suggested a decentralized voltage control algorithm that minimizes power losses for microgrids. Microgrid plugs in and plugs out, without communication links with other units, which would not be organized as a MGC integration.

Distributed control, based on flexible communication links between units, would coordinate local autonomy with global targets [16]. The distributed units would communicate with their neighbor units and obtain current status parameters from others according to already existing communication links [17]. A large amount of research has addressed distributed control. Zhang et al. [18] applied distributed control to a multi-agent system to realize optimal generation control and economic dispatch. Xin et al. [19] researched distributed control to coordinate the outputs of a number of photovoltaic generations. Yang et al. [20] maximize virtual power plant (VPP) profits by coordinated individual decision-making of distributed energy resources via limited communication.

Considering the microgridplugs in and plugs out, this paper proposes a hybrid hierarchical architecture for MGC control, consisting of a upper layer using distributed control and a lower layer using centralized control. In the upper layer, each microgrid in an MGC coordinates with others using distributed control based on flexible communication between microgrids, which means there is no centralized controller for the MGC. Meanwhile, the lower layer employs centralized control to manage all units within each microgrid. The advantage of hierarchical architecture lies on combining MGC global targets and each microgrid’s local targets. Meanwhile, distributed optimization in the upper layer can manage microgrid plug-in and plug-out.

2 The MGC architecture based on flexible communication

A MGC integrates a number of microgrids into a control cluster, based on flexible communication among microgrids (Fig. 1). These communication links could be realized via fibre-optic, wireless, power line carrier, and so on, which are already widely used in the distribution power grid. Therefore, a MGC would not need to rebuild communication channels among microgrid nodes, but could instead use existing communication links.

In a MGC, the upper layer performs coordination among microgrids based on communication links. Meanwhile, the lower layer indicates that each microgrid controls its own distributed generators, dispatchable loads, and energy storage units. This two-layer hierarchical structure should synthetically integrate global targets with local targets of each microgrid. In other words, the control decisions made in the upper and lower layers should interact with each other.

Based on the two-layer control architecture in a MGC, a hierarchical distributed optimization mathematic model is established in Section 3, and a method for solving this model using the hybrid interactive communication optimization solution(HICOS) between layers is presented in Section 4.

Fig. 1
figure 1

Microgrid cluster control architecture based on flexible communication

3 Mathematic model of hierarchical hybrid optimization

In MGC hierarchical architecture, the upper layer operates in accordance to distributed coordinated mode, without an upper control center. The aim of the upper model is to minimize the total costs of energy supply in the MGC, with the constraints of power exchange constraints and transmission lines constraints. Meanwhile, in the lower layer each microgrid manages its own distributed generators using a centralized controller. The objectives of the lower layer are to minimize costs for each microgrid with the operating constraints of distributed generations and the energy storage units.

3.1 Upper layer distributed optimization of a MGC (ULDOM)

The optimization model for the MGC is defined as follows.

3.1.1 Objective function

$$\hbox{min} C = \hbox{min} \sum\limits_{i = 1}^{{I_{\text{MG}} }} {f_{i} \left( {P_{\text{ex}}^{i} } \right)} = \hbox{min} \sum\limits_{i = 1}^{{I_{\text{MG}} }} {a_{i} \left( {P_{\text{ex}}^{i} } \right)^{2} + b_{i} P_{\text{ex}}^{i} + c_{i} }$$
(1)

where \(C\) is the total costs of multiple microgrids; \(I_{\text{MG}}\) the number of microgrids controlled by distributed dispatch; \(f_{i}\) the cost function of microgrid i, which is often a quadratic function, whose coefficients of the quadratic term, linear term and constant term are \(a_{i}\), \(b_{i}\) and \(c_{i}\) respectively; \(P_{\text{ex}}^{i}\) the exchange power between microgrid i and the main grid, where \(P_{\text{ex}}^{i} { > }0\) indicates that the main grid transfers energy to microgrid i; and \(P_{\text{ex}}^{i} { < }0\) means microgrid i transfers energy to the main grid.

3.1.2 Constraints

The upper and lower bound constraints of the power exchanged between the main power grid and microgrid i are:

$$\begin{array}{*{20}c} {P_{\text{ex,min}}^{i} \le P_{\text{ex}}^{i} \le P_{\text{ex,max}}^{i} } & {i = 1,2, \ldots ,I_{\text{MG}} } \\ \end{array}$$
(2)

where \(P_{\text{ex,min}}^{i}\), \(P_{\text{ex,max}}^{i}\) are the lower and upper bounds of the exchanged power, which are decided by the transmission constraints of power lines connecting the microgrid to the main power grid.

The power demand constraint is:

$$\sum\limits_{i = 1}^{{I_{\text{MG}} }} {P_{\text{ex}}^{i} } = P_{\text{demand}}$$
(3)

where \(P_{\text{demand}}\) is the power generation command from the power system dispatch center, which requires the MGC to have a total power consumption of \(P_{\text{demand}}\).

3.2 Lower layer optimization of each microgrid (LLOM)

Taking microgrid \(i\) for instance, the optimization probme for each microgrid is stated as follows.

3.2.1 Objective Function

$$ \begin{aligned} C_{{\text{F}}}^{i} = &\, {\text{min}}\sum\limits_{{j = 1}}^{{J_{i} }} {C_{j}^{i} } (P_{j}^{i} ) \\ = &\, {\text{min}}\left( {C_{{{\text{wind}}{-}{\text{om}}}}^{i} P_{{{\text{wind}}}}^{i} + C_{{{\text{pv}}{-}{\text{om}}}}^{i} P_{{{\text{pv}}}}^{i} + C_{{{\text{mt}}}}^{i} P_{{{\text{mt}}}}^{i} + C_{{{\text{mt}}{-}{\text{om}}}}^{i} P_{{{\text{mt}}}}^{i} } \right) \\ & + C_{{{\text{bs}}{-}{\text{om}}}}^{i} \left( {P_{{{\text{BT}}{-}{\text{dis}}}}^{i} + \left| {P_{{{\text{BT}}{-}{\text{ch}}}}^{i} } \right|} \right) \\ \end{aligned} $$
(4)

where \(C_{\text{F}}^{i}\) is the total cost of operating microgrid \(i\); \(P_{i}^{j}\) the planned generation of the j th distributed generator in i th microgrid; \(C_{j}^{i} \left( {P_{j}^{i} } \right)\) the generation cost function of generator \(i\) in microgrid \(i\); \(J_{i}\) the number of distributed generators in microgrid \(i\); \(P_{\text{wind}}^{i}\) the output of wind generation in microgrid \(i\); \(C_{\text{wind}-{om}}^{i}\) the operation and maintenance cost factor of wind power equipment; \(P_{\text{pv}}^{i}\) the output of photovoltaic generation in microgrid \(i\); \(C_{\text{pv-om}}^{i}\) the operation and maintenance cost factor of photovoltaic power equipment; \(C_{\text{mt-om}}^{i}\) the operation and maintenance cost factor of microturbine generation; \(P_{\text{mt}}^{i}\) the output of microturbine generation in microgrid \(i\); \(C_{\text{mt}}^{i}\) the fuel cost factor of microturbine generation; \(C_{\text{bs-om}}^{i}\) the operation and maintenance costs factor of storage; \(P_{\text{BT-ch}}^{i} /P_{\text{BT-disch}}^{i}\) the charge/discharge power of the storage, which is positive while discharging and negative while charging.

3.2.2 Constraints

The power flow constraints are:

$$ \sum\limits_{j = 1}^{{J_{i} }} {P_{j}^{i} - P_{{\text{BT}} {-}{\text{ch}}}^{i} \cdot \eta_{{\text{BT}} - {\text{ch}}}^{i} - P_{\text{d}}^{i} } = P_{\text{ex}}^{i} $$
(5)
$$\sum\limits_{j = 1}^{{J_{i} }} {P_{j}^{i} + P_{\text{BT - dis}}^{i} \cdot \eta_{\text{BT - dis}}^{i} - P_{\text{d}}^{i} } = P_{\text{ex}}^{i}$$
(6)

where \(\eta_{\text{BT - ch}}^{i} /\eta_{\text{BT - dis}}^{i}\) is the charge/discharge efficiency of storage devices in microgrid \(i\); \(P_{\text{ex}}^{i}\) the exchange power of microgrid \(i\) and the main grid; \(P_{\text{d}}^{i}\) the loads of microgrid \(i\).

The distributed generator constraints in microgrid \(i\) are:

$$\begin{array}{*{20}c} {P_{j,\hbox{min} }^{i} \le P_{j}^{i} \le P_{j,\hbox{max} }^{i} } & {j = 1,2, \ldots ,J_{i} } \\ \end{array}$$
(7)

where \(P_{j,\hbox{min} }^{i}\) and \(P_{j,\hbox{max} }^{i}\) are the upper and lower bounds of distributed generator \(j\).

The energy storage constraints of microgrid i are:

$$ P_{{{{\text{BT}}{-}{\text{ch,}}\hbox{min} }}}^{i} \le P_{{\text{BT}}{-}{\text{ch}}}^{i} \le P_{{{{\text{BT}}{-}{\text{ch,}}\hbox{max} }}}^{i} $$
(8)
$$ P_{{{{\text{BT}}{-}{\text{dis,}}}\hbox{min} }}^{i} \le P_{{\text{BT}}{-}{\text{dis}}}^{i} \le P_{{{{\text{BT}}{-}{\text{dis,}}}\hbox{max} }}^{i} $$
(9)
$$B_{\hbox{min} }^{i} \le B^{i} \le B_{\hbox{max} }^{i}$$
(10)

where \(P_{{{\text{BT-ch,}}\hbox{min} }}^{i}\), \(P_{{{\text{BT-ch,}}\hbox{max} }}^{i}\) are the upper and lower charging power and \(P_{{{\text{BT-dis,}}\hbox{min} }}^{i}\), \(P_{{{\text{BT-dis,}}\hbox{max} }}^{i}\) are the upper and lower discharging power in microgrid \(i\); \(B^{i}\) the battery storage state of charge in microgrid \(i\); \(B_{\hbox{min} }^{i}\) and \(B_{\hbox{max} }^{i}\) the upper and lower limits of battery storage state of charge respectively.

4 Hybrid interactive communication optimization solution (HICOS)

This paper proposes the hybrid interactive communication optimization solution (HICOS) method to solve the mathematic model ((1)–(10)), which integrates upper-layer distributed optimization ((1)–(3)) and lowe-layer centralized optimization ((4)–(10)).

Constraints (2) can be realized by projection operation [21], and the Lagrangian function of upper-layer optimization can be written as:

$$L\left( {\varvec{P}_{\text{ex}} } \right) = \sum\limits_{i = 1}^{{I_{\text{MG}} }} {f_{i} \left( {P_{\text{ex}}^{i} } \right)} - \mu \left( {\sum\limits_{i = 1}^{{I_{\text{MG}} }} {P_{\text{ex}}^{i} } - P_{\text{demand}} } \right)$$
(11)

where \(\mu\) is the Lagrangian multiplier of the power demand constraint (3).

The optimization problem can be solved by distributed optimization iterations based on the sub-gradient [21]:

$$\varvec{P}_{\text{ex}}^{i} \left( {k + 1} \right) = PR_{{P_{\text{ex}}^{i} }} \left\{ {\sum\limits_{{j \in \Gamma_{i} }} {a_{ji} \varvec{P}_{\text{ex}}^{j} (k)} - \alpha \left( k \right) \times \frac{\partial L}{{\partial \varvec{P}_{\text{ex}}^{i} }}} \right\}$$
(12)
$$\varvec{\mu}_{i} \left( {k + 1} \right) = PR_{{\mu_{i} }} \left\{ {\sum\limits_{{j \in \Gamma_{i} }} {a_{ji}\varvec{\mu}_{j} (k)} - \alpha \left( k \right) \times \frac{\partial L}{{\partial\varvec{\mu}_{i} }}} \right\}$$
(13)

where \(\varvec{P}_{\text{ex}}^{i}\) and \(\mu_{i}\) are the primal and dual variables stored in node i; \(\Gamma_{i}\) the neighbor node set of node i; \(\alpha \left( k \right)\) the step size at iteration k; \(L\) the Lagrangian function (11); \(PR_{{\varvec{P}_{\text{ex}}^{i} }}\)the projection operation towards feasible solution space determined by (2); \(PR_{{\varvec{\mu}_{i} }}\) the projection operation to area \(\varvec{\mu}_{i} \ge 0\) [21]; and \(a_{ji}\) an element in row j and column i of the communication connection matrix \(\varvec{A}\), which denotes the communication link topology among microgrids.

If there is no communication connection between node i and j, \(a_{ij}\) would be zero; otherwise, \(a_{ij}\) means the weight influence from node j to i. Using HICOS to solve the distributed optimization, \(\varvec{A}\) should meet the requirement of a doubly-stochastic matrix. That means the sum of all \(a_{ij}\) (matrix elements in the same raw i or in the same column j) must be 1 [21], which can be written as

$$\varvec{A} = \left[ {\begin{array}{*{20}c} {a_{11} } & {a_{12} } & \cdots & {a_{{1I_{\text{MG}} }} } \\ \vdots & \ddots & {} & \vdots \\ \vdots & {} & {a_{ij} } & \vdots \\ {a_{{I_{\text{MG}} 1}} } & \cdots & \cdots & \ddots \\ \end{array} } \right]$$
(14)

and satisfied by

$$\left\{ \begin{aligned} \begin{array}{*{20}c} {\sum\limits_{i = 1}^{{I_{\text{MG}} }} {a_{ij} } = 1} & {j = 1,2, \cdots ,I_{\text{MG}} } \\ \end{array} \hfill \\ \begin{array}{*{20}c} {\sum\limits_{j = 1}^{{I_{\text{MG}} }} {a_{ij} } = 1} & {i = 1,2, \cdots ,I_{\text{MG}} } \\ \end{array} \hfill \\ \end{aligned} \right.$$
(15)

HICOS incorporates distributed optimization in the upper layer and centralized optimization in the lower layer. Meanwhile, the microgrid plugs in and plugs out could be modelled by changes in the communication connection matrix \(\varvec{A}\). The algorithm for HICOS is shown by the steps below:

  1. If starting iteration, set \(k = 0\); else \(k = k + 1\);

  2. Calculate iteratively \(\varvec{P}_{\text{ex}}^{i} (k + 1)\) and \(\varvec{\mu}_{i} (k + 1)\) according to (12) and (13) after receiving information from neighbors \(\varvec{P}_{\text{ex}}^{i} (k)\) and \(\varvec{\mu}_{i} (k)\)via communication links;

  3. Send \(\varvec{P}_{\text{ex}}^{i} (k + 1)\) to the lower-layer optimisation as the power exchange constraint of microgrid i (shown in (4));

  4. Solve the lower-layer control problem (shown in (4)-(10)) in each microgrid via centralized optimization;

  5. Achieve the microgrid optimal results \(P_{i}^{j}\), which is the planned generation output of the j th distributed generator in i th microgrid;

  6. Update \(\varvec{P}_{\text{ex}}^{i} (k)\) as the iteration results of step \(k\);

  7. Transfer \(\varvec{P}_{\text{ex}}^{i} (k)\) to neighbor microgrids as exchange information using the communication links;

  8. If microgrid j plugs in or plugs out, change the connection matrix\(A\)according to flexible communication;

  9. Judge whether convergence has been achieved; if not, go to ①.

Iterations continue until the termination conditions of the hybrid hierarchy optimal model is met. This kind of algorithm has been widely applied in distributed optimization problem [21, 22]. The flowchart of the iterative algorithm is shown in Fig. 2.

Fig. 2
figure 2

Flowchart of HICOS

5 Numerical simulations

Taking a MGC containing 10 microgrids as an example for simulation, MGC dispatch optimization considering microgrid plug-in and plug-out is solved by HICOS as proposed by this paper. The communication topology among microgrids is represented by the connection matrix \(\varvec{A}\), which should be a doubly stochastic matrix [22, 23], so as to guarantee convergence of the distributed optimization algorithm.

5.1 Case I: HICOS solution

MGC, non-control-center, would realize multiple microgrids coordinated operation based on flexible communication. The communication links among microgrids would fully apply the existing communication channels in the distribution power grid, which includes different mode, such as fiber-optic, wireless, power line carrier, and so on. The communication topology of the simulated MGC containing 10 microgrids is shown in Fig. 3.

Fig. 3
figure 3

Communication link topology of MGC

The connection topology matrix \(\varvec{A}\), denoting the communication links among microgrids, should be a doubly-stochastic matrix. The communication connection matrix of the MGC containing 10 microgrids is shown in (16).

$$\begin{array}{*{20}c} {\varvec{A}_{0} } \\ {\left( {10 \times 10} \right)} \\ \end{array} = \left[ {\begin{array}{*{20}c} {0.8} & {0.1} & {0.1} & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ {0.1} & {0.8} & {0.1} & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ {0.1} & {0.1} & {0.5} & {0.1} & {0.1} & {0.1} & 0 & 0 & 0 & 0 \\ 0 & 0 & {0.1} & {0.9} & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & {0.1} & 0 & {0.6} & {0.1} & {0.1} & {0.1} & 0 & 0 \\ 0 & 0 & {0.1} & 0 & {0.1} & {0.8} & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & {0.1} & 0 & {0.6} & {0.1} & {0.1} & {0.1} \\ 0 & 0 & 0 & 0 & {0.1} & 0 & {0.1} & {0.8} & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & {0.1} & 0 & {0.9} & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & {0.1} & 0 & 0 & {0.9} \\ \end{array} } \right]$$
(16)

In stable conditions, the MGC, organized by 10 microgirds, operates coordinately based on the communication links among microgrids. Hierarchical hybrid optimization mathematic model ((1)–(10)) is solved by the hybrid interactive communication optimization solution(HICOS) method, according to the iterative steps (shown in Fig. 2). The optimization results for the simulated MCG are illustrated in Fig. 4. Each microgrid exchanges its state information via communication links with the connection topology matrix \(\varvec{A}_{0}\). The iterations will ultimately converge to the globally optimal solution.

Fig. 4
figure 4

Optimization results based on communication topology \(\varvec{A}_{0}\)

5.2 Case II: HICOS considering microgrid plugs out

When one or more microgrids plug out from MGC, the topology of communication will undoubtedly be changed. Based on the original topology shown in Fig. 5, the communication links from the 7th node to the 5th, 8th, 9th, and 10th nodes will be dropped when microgrid 7th plugs out. Therefore, the original connection topology matrix \(\varvec{A}_{0}\) would be changed into \(\varvec{A}_{{\text{plug}}{-}{\text{out}}}^{'}\), shown in (17).

(17)
Fig. 5
figure 5

Flexible communication topology when one or more microgrids plug out

After reaching optimization results based on connection topology \(\varvec{A}_{0}\), microgrid 7th plugs out at the time \(T_{c}\). The connection matrix \(\varvec{A}_{0}\) is changed into \(\varvec{A}_{\text{plug-out}}^{'}\) (17), which is no longer a stochastic matrix, so the optimization results decrease to zero, as shown in Fig. 6.

Fig. 6
figure 6

Optimization results of communication topology \(\varvec{A}_{\text{plug-out}}^{'}\)

To maintain communication connectivity among microgrids in the MGC, communication links between the nodes 4th and 9th node 5th and 10th are constructed. The connection topology matrix is therefore changed to \(\varvec{A}_{\text{plug-out}}^{{\ {\text{modified}}}}\), shown in (18).

$$\begin{array}{*{20}c} {\varvec{A}_{\text{plug-out}}^{{\ {\text{modified}}}} } \\ {\left( {9 \times 9} \right)} \\ \end{array} = \left[ {\begin{array}{*{20}c} {0.8} & {0.1} & {0.1} & 0 & 0 & 0 & 0 & 0 & 0 \\ {0.1} & {0.8} & {0.1} & 0 & 0 & 0 & 0 & 0 & 0 \\ {0.1} & {0.1} & {0.5} & {0.1} & {0.1} & {0.1} & 0 & 0 & 0 \\ 0 & 0 & {0.1} & {0.8} & 0 & 0 & 0 & {0.1} & 0 \\ 0 & 0 & {0.1} & 0 & {0.6} & {0.1} & {0.1} & 0 & {0.1} \\ 0 & 0 & {0.1} & 0 & {0.1} & {0.8} & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & {0.1} & 0 & {0.9} & 0 & 0 \\ 0 & 0 & 0 & {0.1} & 0 & 0 & 0 & {0.9} & 0 \\ 0 & 0 & 0 & 0 & {0.1} & 0 & 0 & 0 & {0.9} \\ \end{array} } \right]$$
(18)

While microgrid 7th plugs out at the time \(T_{c}\), the connection matrix \(\varvec{A}_{0}\) is changed into \(\varvec{A}_{\text{plug-out}}^{{\ {\text{modified}}}}\), which is also a doubly-stochastic matrix. The optimization algorithm would begin converging again and would converge to a new globally optimal solution, as shown in Fig. 7.

Fig. 7
figure 7

Optimization results based on connection topology \(\varvec{A}_{\text{plug-out}}^{{\ {\text{modified}}}}\)

5.3 Case III: HICOS considering microgrid plugs in

When some microgrids plug in, new communication links should be constructed between the new microgrids and the existing microgrids. In the simulation there are new microgrids 11 th and 12th plug into the MGC, so the new communication node 11 th and 12th are connected with the existing node 2nd, 5th and 6th, as shown in Fig. 8.

Fig. 8
figure 8

Flexible communication topology when microgrids plug in

Then the connection matrix \(\varvec{A}_{0}\) would be changed according to the new communication links, maintaining the characteristics of a doubly-stochastic matrix, shown in Eq. 19.

(19)

At time \(T_{c}\) in the simulation, the new microgrids plug into the MGC. Based on the refreshed connection matrix \(\varvec{A}_{\text{plug-in}}\), the optimization results solved by HICOS are illustrated as Fig. 9.

Fig. 9
figure 9

Optimization results based on communication topology \(\varvec{A}_{\text{plug-in}}\)

6 Conclusion

To support largescale integration of microgrids into power grids, a MGC (Microgrid Cluster) with distributed control is an effective solution to consider microgrids plug in or plug out. This paper constructs a MGC hierarchical hybrid optimization model, including upper-layer distributed optimization and lower-layer centralized optimization of each microgrid. \HICOS (hybrid interactive communication optimization solution) is proposed as a novel solution to this optimization problem based on the flexible communication topology. The simulation cases testify the effectiveness of HICOS. The novel optimization model and methods in this paper, accustomed to plug-in and plug-out dispatch optimization in MGC based on flexible communication, are suitable for challenging and constructive experiments that demonstration practical operation of microgrids in a MGC.