The Voltage Stabilizing Control Strategy of Off-Grid Microgrid Cluster Bus Based on Adaptive Genetic Fuzzy Double Closed-Loop Control

In the off-grid microgrid cluster, the energy storage device is mainly charged and discharged to maintain the stability of the bus voltage and the system power balance. Generally, the voltage and current double closed-loop control and fuzzy control are adopted for the energy storage converter. *e traditional double closed-loop control parameters and the scale factor and quantization factor in fuzzy control cannot be adjusted in real time during system operation, resulting in slower dynamic response and weak anti-interference ability of the system. In response to the above problems, this paper proposes an adaptive genetic fuzzy double closed-loop control, which can adjust the PI control parameters in real time by adjusting the quantization factor and the scale factor to optimize the control effect. *e simulation platform is built in MATLAB/Simulink and the simulation results show that the adaptive genetic fuzzy double closed-loop control combines the advantages of fuzzy and PI control. Under different working conditions, the system has not only a fast dynamic response, small overshoot, and strong anti-interference ability but also good robustness.


Introduction
With the increasing energy demand, energy shortage, and environmental pollution caused by energy utilization, the use of renewable and clean energy such as solar energy as distributed power sources has gained people's favor and rapid development. It has solved energy shortages and environmental pollution. And the power supply and distribution problems in remote areas have greatly saved costs [1][2][3]. In the development of distributed power sources, in order to ensure the reliability of power supply and power quality for users, some scholars have proposed the concept of the microgrid. e microgrid is a collection of distributed power sources, energy conversion devices, loads, and protection devices. e power distribution system can realize self-control and management [4,5]. As an extension of the single microgrid structure and function expansion, the microgrid cluster uses the interconnected operation of multiple single microgrids to improve the reliability of the power supply of the system. It can run in two different working modes, on-grid and off-grid [6][7][8][9]. In the off-grid microgrid cluster, the bus voltage is the only criterion to measure the stability of the system. However, affected by the randomness of photovoltaic power generation and the dynamic changes of the load, it will cause disturbances in the system bus voltage. In response to the problem of how to maintain the stability of the system, mainly through the energy storage device connected by the bidirectional DC-DC converter (BDC) and the busbar to charge and discharge, the bus voltage stability and power balance of the microgrid cluster system are maintained. When the energy in the microgrid is insufficient, the energy storage device provides insufficient energy, and when the microgrid is surplus, the energy storage device stores the surplus energy [10][11][12].
At present, the control of the energy storage converters in the microgrid is very important. Generally, voltage and current double closed-loop control is adopted. e traditional double closed-loop control uses the bus voltage as the outer loop control and the inductor current of the converter as the inner loop control. Applying classic control theory, the microgrid cluster can operate stably through PI control and adjustment. However, the parameters of the double closed-loop control cannot be dynamically adjusted, the dynamic response is slow, and the ability to restrain external disturbances and self-recovery is poor. erefore, it is not suitable for nonlinear time-varying off-grid microgrids cluster control [13][14][15][16][17].
Since fuzzy control is suitable for nonlinear and timevarying systems, and its robustness is good, it is aimed at the shortcomings of traditional double closed-loop control; the improvement of double closed-loop control is proposed. Fuzzy control is used in the voltage outer loop control to set the PI control parameters on the outer loop in real time to achieve optimal control effects. However, the quantization factor, scale factor, fuzzy rule, and membership function in fuzzy control cannot be adjusted dynamically. At the same time, the control rules and control parameters of fuzzy control are based on experience, which has a certain degree of subjectivity and lack rationality for nonlinear systems. ere are certain limitations in optimizing PI control parameters, resulting in system dynamic response and anti-interference ability not improved [18][19][20][21]. Literature [22] proposed an adaptive fuzzy control, which has two types of indirect adaptive fuzzy control and direct adaptive fuzzy control, but both of them modify the fuzzy control parameters by operating an external mechanism. e process is more troublesome and the system error is relatively large, which is not suitable for the nonlinear microgrid cluster system. In view of the improvement of fuzzy control, some scholars proposed to use intelligent algorithms to adjust the quantization factor and scale factor in fuzzy control to optimize the fuzzy output. Literature [23][24][25] proposed genetic fuzzy control, which can optimize the output value of fuzzy control in real time and seek the optimal solution by encoding, selecting, crossing, and mutating the quantization factor and scale factor in fuzzy control. However, it did not consider the problem that when all individuals in the system tend to a state and stop evolving, it is difficult to obtain a global optimal solution. erefore, when the energy storage converter adopts genetic fuzzy double closed-loop control, the dynamic response speed of the microgrid cluster and the anti-interference ability to the outside world are not very ideal.
is paper proposes an adaptive genetic fuzzy double closed-loop control for energy storage converters in a microgrid cluster. By adjusting the quantization factor and the scale factor, the PI control parameters can be adjusted in real time to optimize the control effect and improve the dynamic response speed of the microgrid cluster and the anti-interference ability to the outside world.
e simulation results show that the adaptive genetic fuzzy double closed-loop control combines the advantages of fuzzy and PI control. Under different working conditions, the system has not only a fast dynamic response, small overshoot, and strong anti-interference ability but also good robustness.

Topological Structure Diagram.
e topology of the DC microgrid cluster is shown in Figure 1. e microgrid cluster is composed of two DC microgrids interconnected. Each microgrid in the microgrid cluster contains photovoltaic cells, storage batteries, and loads. e photovoltaic cells and storage batteries are, respectively, connected to the bus through the Boost converter and the bidirectional DC-DC converter, and the load is connected to the bus through the Buck converter.

Circuit Structure Diagram.
e energy storage device plays an important role in maintaining the power balance of the microgrid cluster and the stability of the bus voltage. It can be used as a power source for compensating energy, or as a load for storing energy. e structure of the off-grid DC microgrid cluster in this article is shown in Figure 2.
In Figure 2, i pv_dc1 , i load1 , i b_dc1 , and i b1 are, respectively, the output current of the photovoltaic cells of the microgrid 1 in the microgrid cluster through the Boost converter, the input current of the Buck converter, the output current of the battery through BDC, and the input current of the isolation BDC; L pv1 , L 1 , L bat1 , and L b are, respectively, the energy storage inductances of the Boost converter, Buck converter, BDC, and isolated BDC of microgrid 1; U 1 and C b1 are, respectively, the bus voltage and filter capacitor of microgrid 1; i pv_dc2 , i load2 , i b_dc2 , and i b2 are, respectively, the output current of the photovoltaic cells of the microgrid 2 in the microgrid cluster through the Boost converter, the input current of the Buck converter, the output current of the battery through the BDC, and the isolated BDC input current; L pv2 , L 2 , and L bat2 are, respectively, the inductance of Boost converter, Buck converter, and BDC of microgrid 2; and U 2 and C b2 are the bus voltage and filter capacitance of microgrid 2, respectively. e current relations of microgrid 1 and microgrid 2 are obtained from Kirchhoff's current law as follows: In the above equations (1) and (2), the positive and negative of i b_dc1 and i b_dc2 are related to the working status of the energy storage devices in microgrid 1 and microgrid 2. When the values of i b_dc1 and i b_dc2 are positive, the energy storage device discharges and acts as a power source. When the values of i b_dc1 and i b_dc2 are negative, the energy storage device is charged and acts as a load. is paper mainly adopts adaptive genetic fuzzy double closedloop control for the energy storage converters in the microgrid cluster and suppresses the fluctuation of the DC bus voltage by controlling the charging and discharging of the battery to ensure the safe and stable operation of the system.

Fuzzy Double Closed-Loop Control.
e traditional microgrid cluster energy storage converter generally adopts fuzzy double closed-loop control, and the structure of fuzzy double closed-loop control is shown in Figure 3.
In Figure 3, according to the difference between the reference value U * of the bus voltage and the actual value U, the deviation e 1 and the deviation change rate ec 1 are obtained, the deviation e 1 and the deviation change rate ec 1 obtain e and ec through the quantization factors k e and k ec , and then e and ec obtain the correction values ΔK p and ΔK i of the proportional and integral parameters through the fuzzy logic controller to adjust the control parameters of the controller in real time, where k e , k ec , dk p , and dk i are fixed values. e setting formula is as follows, where K p and K i are the real-time proportional and integral coefficients of the controller and K * p and K * i are the initial proportional and integral control coefficients of the controller: e design of fuzzy control is mainly to determine the fuzzy rules and membership functions. e commonly used membership functions mainly include Z-shaped, S-shaped, triangle, bell-shaped, and Gaussian. e triangular membership function is simple in form, high in sensitivity, and fast in response.
In this paper, the membership functions of e, ec, ΔK p , and ΔK i are all triangular, and the fuzzy domains are all [−5, 5]. e fuzzy subsets of e, ec, ΔK p , and ΔK i are all {NB, NM, NS, Z, PS, PM, PB}, e function is shown in Figure 4.
According to the fuzzy control membership function and control theory, the fuzzy rules of ΔK p and ΔK i are inferred, as shown in Tables 1 and 2. e fuzzy regular surface diagram of fuzzy input e and ec and output ΔK p and ΔK i in this paper is shown in Figure 5.

Adaptive Genetic Fuzzy Double Closed-Loop Control.
Aiming at the situation that the scale factor and quantization factor in the fuzzy double closed-loop control cannot be adjusted in real time, this paper proposes an adaptive genetic fuzzy double closed-loop control, and its control structure is shown in Figure 6.
In Figure 6, the adaptive genetic algorithm directly optimizes the quantization factors k e and k ec and the scale factors dk p and dk i to find the global optimal K p and K i in real time. e implementation of adaptive genetic algorithm is as follows: (i) Determine the coding scheme: the genetic algorithm has multiple encodings such as binary, Gray, permutation, and real number encoding. Here, the genetic algorithm encoding adopts the binary encoding composed of {0, 1} set. k e , k ec , dk p , and dk i all adopt 8-bit binary encoding, respectively. e number of samples is Size � 40.
(ii) Determination of fitness function: the genetic algorithm performs an algorithm optimization search based on individual fitness value. It basically does not use external environment information in optimization search; therefore, it is very important when selecting fitness function. It determines the convergence speed of the algorithm and whether the algorithm can search for the best solution. To optimize the three elements of stability, speed, and precision of the control system, the performance index function shown in the following formula is generally selected: e optimization algorithm used in this paper has designed a penalty function. When the system error has an overshoot, the overshoot is an optimal index of the system. is purpose can effectively avoid overshoot. At this time, the optimal index function is expressed as the following formula: In the above formula, u(t) is the self-tuning output; ω 1 , ω 2 , ω 3 , and ω 4 are the weight, where ω 1 � 0.9, ω 2 � 0.001, ω 3 � 2.0, and ω 4 � 100; t u is the rise time; m(t) is the system error; my(t) � y(t) − y(t − 1); and y(t) are the output of the controlled object. Here, the reciprocal of the   objective function is used to represent the fitness function, namely, F � (1/J). (iii) Choice: the selection process is to eliminate some individuals that do not meet the requirements according to the fitness value of each body, and the individuals that are not eliminated can be passed on to the next generation. e proportional selection method is used here, and the relevant expression is as follows: In the previous equation, N is the number of individuals in the population; f x is the fitness value of individual x; p x is the probability of individual x being selected. is paper adopts the optimal individual retention strategy and the optimal individual out-of-group preservation strategy based on proportional selection: the optimal individual of one generation is directly copied to the next generation to participate in further evolution, and the fitness value is compared with the external variable temp of the group. If it is greater than temp, temp is replaced by the optimal individual and its fitness value; otherwise, it remains unchanged. (iv) Crossover and mutation: in the traditional genetic algorithm, the control parameters do not change, and the system is prone to "premature," which weakens the shrinkage efficiency of the algorithm. In this paper, the crossover probability P c and mutation probability P m always change dynamically, as shown in the following equation: In the above formula, k 1 and k 2 are the initial values of P c and P m , respectively; k 1 and k 2 are greater than 0; this article takes k 1 � 0.7, k 2 � 0.01; where F t max is the fitness of the largest individual; and F t max represents the average fitness of individuals whose fitness is greater than the average fitness. During the evolution of the population, due to Δ being constantly changing, P c and P m are also dynamically adjusted.

Simulation Analysis
According to the off-grid DC microgrid cluster in Figure 2, a simulation model is built in MATLAB/Simulink, and the simulation parameters are shown in Table 3.
In order to study the dynamic performance of the bus voltage during the three transient processes of initial power-on, load sudden increase, and load sudden decrease when the energy storage converter adopts fuzzy double It can be seen from Figure 8 that when the energy storage converter adopts fuzzy double closed-loop control at the initial power-on, the maximum overshoot of the bus voltage is 22.1 V. After multiple oscillation adjustments, it stabilizes to 500 V in about 1.3 s. When adopting adaptive genetic fuzzy double closed-loop control, the maximum overshoot of the bus voltage is 1.2 V, there is no oscillation phenomenon, and it stabilizes to 500 V in about 0.9 s. When the load suddenly increases, the bus voltage drops. When the energy storage converter adopts fuzzy double closed-loop control, the bus voltage drops to 486.7 V instantly. ere is an overshoot phenomenon when it recovers and the maximum overshoot is 9.6 V. At the same time, after multiple oscillation adjustments, it stabilizes to 500 V at about 2.85 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the bus voltage drops to 493.2 V instantly, and there is an overshoot phenomenon during the recovery process. e overshoot is 0.6 V, there is no oscillation, and it stabilizes to 500 V at about 2.3 s. When the load is suddenly reduced, the bus voltage suddenly increases. When the energy storage converter adopts fuzzy double closed-loop control, the maximum overshoot of the bus voltage is 29.6 V. After multiple oscillation adjustments, it stabilizes to 500 V in about 3.95 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the maximum overshoot of the bus voltage is 18.2 V, there is no oscillation phenomenon during the recovery process, and it stabilizes to 500 V in about 3.25 s.
It can be seen from Figure 10 that when the energy storage converter adopts fuzzy double closed-loop control at the initial power-on, the maximum overshoot of the bus voltage is 15.2 V. After oscillation adjustment, it stabilizes to 650 V in about 1 s. When adopting adaptive genetic fuzzy double closed-loop control, the maximum overshoot of the bus voltage is 0.9 V. ere is no oscillation during the recovery process, and it stabilizes to 650 V in about 0.75 s. When the load increases suddenly, the energy storage converter adopts fuzzy double closed-loop control, and the maximum overshoot of the bus voltage is 3.5 V. After multiple oscillation adjustments, it stabilizes to 650 V in about 2.6 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the maximum overshoot of the bus voltage is 1.2 V, and there is no oscillation during the recovery process, and it stabilizes to 650 V in about 2.31 s. When the load is suddenly reduced, the energy storage converter adopts fuzzy double closed-loop control, and the overshoot of the bus voltage is 2.2 V. After oscillation adjustment, it stabilizes to 650 V in about 3.8 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the overshoot of the bus voltage is -0.8 V. ere is no oscillation occurring during the recovery process, and it stabilizes to 650 V in about 3.4 s.
Working condition 2: microgrid 2 is connected to a resistance of 15 ohms at 1.5 s, and the obtained waveforms are shown in Figures 11-14.   It can be seen from Figure 11 that when the energy storage converter adopts fuzzy double closed-loop control at the initial power-on, the maximum overshoot of the bus voltage is 12 V. After oscillation adjustment, it stabilizes to 650 V in about 0.85 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the maximum overshoot of the bus voltage is 3.3 V. ere is no oscillation during the recovery process, and it stabilizes to 650 V in about 0.75 s. When the load suddenly increases, the bus voltage drops. When the energy storage converter adopts fuzzy double closed-loop control, the bus voltage drops to 639.8 V instantly. ere is an overshoot phenomenon during the recovery process, and it stabilizes to 650 V in about 2.1 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the bus voltage drops to 643.2 V instantly. ere is no overshoot occurring during the recovery process, and it stabilizes to 650 V in about 2 s. When the load drops suddenly, the bus voltage suddenly increases. When the energy storage converter adopts fuzzy double closed-loop control, the maximum overshoot of the ere is no oscillation during the recovery process, and it stabilizes to 650 V in about 3.25 s.
It can be seen from Figure 10 that when the energy storage converter adopts fuzzy double closed-loop control at initial power-on, the maximum overshoot of the bus voltage is 17.5 V. After oscillation adjustment, it stabilizes to 500 V in about 1.23 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the maximum overshoot of the bus voltage is 2.1 V. ere is no oscillation phenomenon during the recovery process, and it stabilizes to 500 V around 0.92 s. When the load increases suddenly, the energy storage converter adopts fuzzy double closed-loop control, and the overshoot of the bus voltage is -0.8 V. After oscillation adjustment, it stabilizes to 500 V in   about 2.2 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the overshoot of the bus voltage is 0.2 V. ere is no oscillation occurring during the recovery process, and it stabilizes to 500 V around 1.85 s. When the load is suddenly reduced, the energy storage converter adopts fuzzy double closed-loop control, and the overshoot of the bus voltage is 3.2 V. After oscillation adjustment, it stabilizes to 500 V in about 4 s. When the energy storage converter adopts adaptive genetic fuzzy double closed-loop control, the overshoot of the bus voltage is 0.8 V. ere is no oscillation during the recovery process, and it stabilizes to 500 V around 3.65 s.

Conclusion
Aiming at the problems of bus voltage stabilization in the microgrid cluster, this paper adopts fuzzy double closedloop and adaptive genetic fuzzy double closed-loop control of the energy storage converters in the microgrid cluster, respectively. Studying the dynamic performance of the bus voltage during the three transient processes of the system initial power-on, the sudden increase of the load, and the sudden decrease of the load, according to the simulation analysis, the following conclusions are drawn: (i) In the microgrid cluster, compared with the fuzzy double closed-loop control, the adaptive genetic fuzzy double closed-loop control can globally find the optimal value of the dynamically adjust quantization factors and scale factors, set the PI control parameters in real time, optimize the control effects, and enhance the micro robustness and stability of the network group system. (ii) e interconnected microgrids in the microgrid cluster can achieve mutual energy transfer through the isolation BDC. So, when the bus voltage of a microgrid fluctuates, the bus voltage of the interconnected microgrid will also fluctuate, and the microgrid cluster system is in the BDC and the selfadjusting recovery is carried out under the joint action of the isolated BDC so that the system is restored to stability. (iii) e simulation proves that, in the three different transient processes of the microgrid cluster system initial power-on, load sudden increase, and load sudden decrease, when the energy storage BDC adopts adaptive genetic fuzzy double closed-loop control, compared with fuzzy double closed-loop control, the system has not only a faster dynamic response, less overshoot, stronger anti-interference ability but also good robustness. (iv) Adaptive genetic fuzzy double closed-loop control can be widely used in nonlinear and time-varying systems.

Data Availability
e data used to support the findings of this work are accessible from the corresponding author upon request.

Conflicts of Interest
e authors declare that they have no conflicts of interest.