Droop control method, system and device of micro-grid and medium

By using particle swarm algorithm in DC microgrid to construct a sag parameter tuning optimization model, the current sharing problem in U-I sag control is solved, and the current distribution and voltage regulation are taken into account, ensuring the stable operation of the power grid.

CN119030008APending Publication Date: 2024-11-26SHANGHAI HUADIAN FENGXIAN THERMAL POWER CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410949066.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the prior art, U-I sag control has a current sharing problem when realizing power balance of DC microgrids, which is difficult to effectively eliminate. Too much increase in the virtual resistor will lead to an increase in the voltage deviation of DC bus, and it is impossible to take into account current distribution and voltage regulation.

Method used

The comprehensive sag parameter tuning optimization model is constructed based on particle swarm algorithm (PSO). Through iterative training, the sag control parameters of each group of converters are obtained by using the objective function of the minimum converter outlet current deviation and DC bus voltage deviation in the microgrid, including Virtual resistor and reference voltage parameters ensure the regulation of current distribution and voltage deviation.

Benefits of technology

The efficiency and accuracy of sag parameter setting is improved, the current consistency of the outlet current of each group of distributed power supply in the DC microgrid is ensured, and the stability of the bus voltage is achieved, the safe and stable operation of the power grid is achieved, and the current sharing problem is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030008A_ABST
    Figure CN119030008A_ABST
Patent Text Reader

Abstract

The invention relates to a droop control method, system and device for a micro-grid and a medium, and the method comprises the steps: constructing a comprehensive droop parameter setting optimization model based on a particle swarm optimization (PSO); performing iterative training on the comprehensive droop parameter setting optimization model by taking minimum converter outlet current deviation and DC bus voltage deviation in the micro-grid as an objective function; and through the trained comprehensive droop parameter setting optimization model, droop control parameters of each group of converters in the micro-grid are obtained. According to the application, current distribution and DC bus voltage deviation adjustment in the DC micro-grid are taken into consideration, the particle swarm optimization is applied to determine the droop parameter of a multi-distributed unit scene, the droop parameter setting efficiency and accuracy are greatly improved, it is ensured that currents of all groups of distributed power supplies passing through a converter outlet are consistent, and the bus voltage does not have obvious voltage drop; safe and stable operation of the DC micro-grid is realized, and the problem of how to eliminate current sharing existing in droop control for power balance of the grid is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power grid management, and in particular to a droop control method, system, device and medium for a microgrid. Background Art

[0002] With the introduction of the dual carbon goals, large-scale photovoltaic, wind power and other new energy sources are gradually connected to the grid to build a new power system. Since the randomness and volatility of new energy output can easily cause instability in the operation of the power system, large-scale new energy grid connection will reduce the stability of the grid operation. The introduction of microgrid and smart grid technology provides an effective solution to this problem. Among them, the island DC microgrid is mainly composed of distributed power sources such as wind, light, and storage, and DC loads. When wind and light resources are abundant, the output of new energy can meet the local DC load demand; when the output of new energy is too much and exceeds the load demand of the microgrid, the energy storage unit is charged to promote the further absorption of new energy in the microgrid; when wind and light resources are insufficient, the energy storage unit begins to discharge to meet the load demand of the microgrid; therefore, achieving power balance of the DC microgrid is crucial for safe and stable operation.

[0003] In order to achieve power balance in DC microgrids, UI droop control is often introduced. However, UI droop control has a current sharing problem. Therefore, many related studies choose to introduce a virtual impedance strategy. However, appropriately increasing the virtual resistance can only reduce the difference in the output current of each converter, and it is difficult to effectively eliminate the current sharing problem of UI droop control. Increasing the virtual resistance too much will lead to an increase in the DC bus voltage deviation, and it is impossible to effectively take into account both the current distribution and the DC bus voltage deviation regulation in the DC microgrid.

[0004] Currently, no effective solution has been proposed for how to eliminate the current sharing problem existing in droop control for power grid power balancing in related technologies. Summary of the invention

[0005] The embodiments of the present application provide a droop control method, system, device and medium for a microgrid, so as to at least solve the problem of how to eliminate the current sharing problem existing in the droop control for power grid power balance in the related art.

[0006] In a first aspect, an embodiment of the present application provides a droop control method for a microgrid, the method comprising:

[0007] Construct a comprehensive droop parameter tuning optimization model based on particle swarm optimization (PSO);

[0008] Taking the minimization of the converter outlet current deviation and the DC bus voltage deviation in the microgrid as the objective function, the comprehensive droop parameter setting optimization model is iteratively trained;

[0009] The droop control parameters of each group of converters in the microgrid are obtained through the trained comprehensive droop parameter setting optimization model.

[0010] In some embodiments, before iteratively training the comprehensive droop parameter setting optimization model with the minimum converter output current deviation and DC bus voltage deviation in the microgrid as the objective function, the method includes:

[0011] The converter outlet current deviation of the microgrid is calculated by a preset current deviation formula, wherein the converter outlet current deviation is used to set the objective function;

[0012] The DC bus voltage deviation of the converter of the microgrid is calculated by a preset voltage deviation formula, wherein the DC bus voltage deviation is used to set the objective function.

[0013] In some embodiments, the converter outlet current deviation of the microgrid is calculated by a preset current deviation formula, including:

[0014] By presetting the current deviation formula Calculate the converter output current deviation I of the microgrid error , where n is the number of converters in the microgrid, I oi is the output current of the ith converter.

[0015] In some embodiments, the DC bus voltage deviation of the converter of the microgrid is calculated by a preset voltage deviation formula, including:

[0016] By presetting the voltage deviation formula Calculate the DC bus voltage deviation U of the microgrid error , where n is the number of converters in the microgrid, U * di is the measured voltage of the ith converter, ΔU is the difference between the measured voltage and the rated voltage of the corresponding converter, U dc is the measured value of the DC bus voltage.

[0017] In some embodiments, taking the converter output current deviation and the DC bus voltage deviation as the objective function includes:

[0018] Through the objective function min f = ω1I error +ω2U error The goal is to minimize the converter output current deviation and the DC bus voltage deviation, where I error is the converter output current deviation of the microgrid, U error is the DC bus voltage deviation of the microgrid, ω1 is the weight coefficient of the current deviation, and ω2 is the weight coefficient of the voltage deviation.

[0019] In some of the embodiments, the droop control parameters of each group of converters in the microgrid are obtained by using the trained comprehensive droop parameter setting optimization model, including:

[0020] Real-time acquisition of the export current data and bus voltage data of each group of converters in the microgrid;

[0021] Based on the export current data and the bus voltage data, the droop control parameters of each group of converters in the microgrid are obtained through the trained comprehensive droop parameter setting optimization model, wherein the droop control parameters include virtual resistance parameters and reference voltage parameters of the droop control of each group of converters.

[0022] In some embodiments, after iteratively training the comprehensive droop parameter setting optimization model with the minimum converter output current deviation and DC bus voltage deviation in the microgrid as the objective function, the method includes:

[0023] A DC microgrid containing multiple groups of distributed power sources is built through a preset simulation tool to test and verify the trained comprehensive droop parameter setting optimization model, wherein the preset simulation tool includes a MATLAB simulation tool and a simulink simulation tool.

[0024] In a second aspect, an embodiment of the present application provides a droop control system of a microgrid, the system being used to execute the method described in the first aspect above, the system comprising a model building module, a model training module and a droop control optimization module;

[0025] The model building module is used to build a comprehensive droop parameter setting optimization model based on a particle swarm algorithm PSO;

[0026] The model training module is used to iteratively train the comprehensive droop parameter setting optimization model with the minimum converter outlet current deviation and DC bus voltage deviation in the microgrid as the objective function;

[0027] The droop control optimization module is used to obtain the droop control parameters of each group of converters in the microgrid through a trained comprehensive droop parameter setting optimization model.

[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.

[0030] Compared with the related art, the embodiment of the present application provides a droop control method, system, device and medium for a microgrid, wherein the method constructs a comprehensive droop parameter setting optimization model based on a particle swarm algorithm (PSO); takes the minimization of the converter outlet current deviation and the DC bus voltage deviation in the microgrid as the objective function, and iteratively trains the comprehensive droop parameter setting optimization model; obtains the droop control parameters of each group of converters in the microgrid through the trained comprehensive droop parameter setting optimization model, takes into account the current distribution in the DC microgrid and the DC bus voltage deviation regulation, and applies the particle swarm algorithm to determine the droop parameters of multiple distributed unit scenarios, greatly improving the droop parameter setting efficiency and accuracy, ensuring that the current of each group of distributed power sources through the converter outlet is consistent and the bus voltage has no obvious voltage drop, thereby realizing safe and stable operation of the DC microgrid and solving the problem of how to eliminate the current sharing problem existing in the droop control used for power grid power balance. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0032] Figure 1 is a flowchart of the steps of the microgrid droop control method according to an embodiment of the present application;

[0033] Figure 2 is a schematic diagram of a principle curve of a microgrid droop control method according to an embodiment of the present application;

[0034] Figure 3 is a structural block diagram of a microgrid droop control system according to an embodiment of the present application;

[0035] Figure 4 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0037] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0038] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0039] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0040] The present application provides a droop control method for a microgrid. Figure 1 is a flowchart of the steps of the microgrid droop control method according to an embodiment of the present application, such as Figure 1As shown, the method comprises the following steps:

[0041] Step S102, constructing a comprehensive droop parameter setting optimization model based on a particle swarm algorithm PSO;

[0042] It should be noted that the particle swarm optimization algorithm (PSO) is an evolutionary computing algorithm that originates from the study of bird flock predation behavior. The particle swarm algorithm first initializes a group of random solutions, also known as random particles, and then the particles move closer to the current optimal particle, search in the solution space, and obtain the optimal solution through iteration. Assume that the position and velocity of m solutions in n-dimensional space are X and V respectively.

[0043]

[0044] In each iteration, the speed and position of each particle are updated. The specific iterative update formula is as follows:

[0045]

[0046] Among them, w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers uniformly distributed between 0 and 1; the inertia weight determines how much the particle inherits the current speed, and the learning factor represents the individual's learning ability, that is, the ability of each solution to approach the optimal solution in each iteration. The values ​​of c1 and c2 are usually 2, and the value of w is generally between 0 and 4. The number of particles is determined by the complexity of the problem. For general optimization problems, 20-40 particles can obtain good results; for problems with lower complexity, generally 5-10 particles can obtain good results; for more complex problems, the number of particles can be determined according to the iteration effect; the particle dimension is determined by the parameters that need to be determined for the actual optimization problem.

[0047] Step S104, taking the minimization of the converter outlet current deviation and the DC bus voltage deviation in the microgrid as the objective function, iteratively training the comprehensive droop parameter setting optimization model;

[0048] Before step S104, the method further includes step S103, and step S103 specifically includes the following steps:

[0049] Step S1031, calculating the converter outlet current deviation of the microgrid by a preset current deviation formula, wherein the converter outlet current deviation is used to set the objective function;

[0050] Step S1031 Specifically, by presetting the current deviation formula Calculate the converter output current deviation I of the microgrid error , where n is the number of converters in the microgrid, I oiis the output current of the ith converter.

[0051] It should be noted that the microgrid droop control method provided in the embodiment of the present application can effectively take into account both the current distribution in the DC microgrid and the DC bus voltage deviation regulation. Figure 2 is a schematic diagram of a principle curve of a microgrid droop control method according to an embodiment of the present application, such as Figure 2 As shown in FIG. 1 , the droop curves of DG1 and DG2 are translated upward to obtain new droop curves, and their vertical intercepts are increased. The increase in vertical intercept is equivalent to increasing the bus voltage in the droop control expression, making up for the value of the bus voltage drop before the translation. At this time, by adjusting the slope, the droop curves on both sides are brought closer to the middle, and finally the zero-difference regulation is achieved. Among them, the difference between the output currents of each converter can be expressed by I in step S1031 error To measure.

[0052] Step S1032, calculating the DC bus voltage deviation of the converter of the microgrid by using a preset voltage deviation formula, wherein the DC bus voltage deviation is used to set the objective function.

[0053] Step S1032 specifically, by presetting the voltage deviation formula Calculate the DC bus voltage deviation U of the microgrid error , where n is the number of converters in the microgrid, U * di is the measured voltage of the ith converter, ΔU is the difference between the measured voltage and the rated voltage of the corresponding converter, U dc is the measured value of the DC bus voltage.

[0054] Step S104 specifically, through the objective function min f = ω1I error +ω2U error With the goal of minimizing the converter output current deviation and the DC bus voltage deviation, the comprehensive droop parameter setting optimization model is iteratively trained, where I error is the converter output current deviation of the microgrid, U error is the DC bus voltage deviation of the microgrid, ω1 is the weight coefficient of the current deviation, and ω2 is the weight coefficient of the voltage deviation.

[0055] It should be noted that the goal of the comprehensive droop parameter setting optimization model established in the embodiment of the present application is to minimize the output current deviation of each converter and the DC bus voltage deviation; the decision variables are the virtual resistance and reference voltage of the droop control of each group of converters; and the constraints are the microgrid operating voltage, current and power balance constraints, etc.

[0056] Step S106, obtaining the droop control parameters of each group of converters in the microgrid through the trained comprehensive droop parameter setting optimization model.

[0057] Specifically, step S106 obtains the export current data and bus voltage data of each group of converters in the microgrid in real time; based on the export current data and bus voltage data, the droop control parameters of each group of converters in the microgrid are obtained through the trained comprehensive droop parameter setting optimization model, wherein the droop control parameters include virtual resistance parameters and reference voltage parameters of the droop control of each group of converters.

[0058] Through steps S102 to S106 in the embodiment of the present application, the current distribution in the DC microgrid and the DC bus voltage deviation adjustment are taken into consideration, and the particle swarm algorithm is used to determine the droop parameters of the multi-distributed unit scenario, which greatly improves the efficiency and accuracy of the droop parameter setting, ensures that the current of each group of distributed power sources through the converter outlet is consistent, and the bus voltage has no obvious voltage drop, thereby achieving safe and stable operation of the DC microgrid and solving the problem of how to eliminate the current sharing problem existing in the droop control for power grid power balance.

[0059] In some of the embodiments, after iteratively training the comprehensive droop parameter setting optimization model with the minimum converter output current deviation and DC bus voltage deviation in the microgrid as the objective function, the method includes:

[0060] A DC microgrid containing multiple groups of distributed power sources is built through preset simulation tools to test and verify the trained comprehensive droop parameter setting optimization model. The preset simulation tools include MATLAB simulation tools and simulink simulation tools.

[0061] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0062] The embodiment of the present application provides a droop control system of a microgrid. Figure 3 is a structural block diagram of a microgrid droop control system according to an embodiment of the present application, such as Figure 3 As shown, the system includes a model building module, a model training module and a droop control optimization module;

[0063] Model building module, used to build a comprehensive droop parameter tuning optimization model based on particle swarm algorithm PSO;

[0064] A model training module is used to iteratively train the comprehensive droop parameter setting optimization model with the minimum converter output current deviation and DC bus voltage deviation in the microgrid as the objective function;

[0065] The droop control optimization module is used to obtain the droop control parameters of each group of converters in the microgrid through the trained comprehensive droop parameter setting optimization model.

[0066] Through the model building module, model training module and droop control optimization module in the embodiments of the present application, the current distribution in the DC microgrid and the DC bus voltage deviation adjustment are taken into account, and the particle swarm algorithm is used to determine the droop parameters of the multi-distributed unit scenario, which greatly improves the efficiency and accuracy of the droop parameter setting, ensures that the current of each group of distributed power sources through the converter outlet is consistent and the bus voltage has no obvious voltage drop, realizes the safe and stable operation of the DC microgrid, and solves the problem of how to eliminate the current sharing problem existing in the droop control used for power grid power balance.

[0067] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0068] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0069] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0070] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0071] In addition, in combination with the droop control method of the microgrid in the above embodiments, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any of the droop control methods of the microgrid in the above embodiments is implemented.

[0072] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a droop control method for a microgrid is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0073] In one embodiment, Figure 4 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 4 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 4 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement a droop control method for a microgrid, and the database is used to store data.

[0074] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0075] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0076] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0077] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A droop control method for a microgrid, characterized in that: The method comprises: Construct a comprehensive droop parameter tuning optimization model based on particle swarm optimization (PSO); Taking the minimization of the converter outlet current deviation and the DC bus voltage deviation in the microgrid as the objective function, the comprehensive droop parameter setting optimization model is iteratively trained; The droop control parameters of each group of converters in the microgrid are obtained through the trained comprehensive droop parameter setting optimization model.

2. The method according to claim 1, characterized in that Before iteratively training the comprehensive droop parameter setting optimization model with the minimum converter outlet current deviation and DC bus voltage deviation in the microgrid as the objective function, the method includes: The converter outlet current deviation of the microgrid is calculated by a preset current deviation formula, wherein the converter outlet current deviation is used to set the objective function; The DC bus voltage deviation of the converter of the microgrid is calculated by a preset voltage deviation formula, wherein the DC bus voltage deviation is used to set the objective function.

3. The method according to claim 2, characterized in that By using the preset current deviation formula, the converter outlet current deviation of the microgrid is calculated to include: By presetting the current deviation formula Calculate the converter output current deviation I of the microgrid error , where n is the number of converters in the microgrid, I oi is the output current of the ith converter.

4. The method according to claim 2, characterized in that: The DC bus voltage deviation of the microgrid converter is calculated by the preset voltage deviation formula, including: By presetting the voltage deviation formula Calculate the DC bus voltage deviation U of the microgrid error , where n is the number of converters in the microgrid, U * di is the measured voltage of the i-th converter, ΔU is the difference between the measured voltage of the corresponding converter and the rated voltage, U dc is the measured value of the DC bus voltage.

5. The method according to claim 2, characterized in that: The objective function of minimizing the converter output current deviation and the DC bus voltage deviation includes: Through the objective function min f = ω1I error +ω2U error The goal is to minimize the converter output current deviation and the DC bus voltage deviation, where I error is the converter output current deviation of the microgrid, U error is the DC bus voltage deviation of the microgrid, ω1 is the weight coefficient of the current deviation, and ω2 is the weight coefficient of the voltage deviation.

6. The method according to claim 1, characterized in that Through the trained comprehensive droop parameter setting optimization model, the droop control parameters of each group of converters in the microgrid are obtained as follows: Real-time acquisition of the export current data and bus voltage data of each group of converters in the microgrid; Based on the export current data and the bus voltage data, the droop control parameters of each group of converters in the microgrid are obtained through the trained comprehensive droop parameter setting optimization model, wherein the droop control parameters include virtual resistance parameters and reference voltage parameters of the droop control of each group of converters.

7. The method according to claim 1, characterized in that After iteratively training the comprehensive droop parameter setting optimization model with the minimum converter outlet current deviation and DC bus voltage deviation in the microgrid as the objective function, the method includes: A DC microgrid containing multiple groups of distributed power sources is built through a preset simulation tool to test and verify the trained comprehensive droop parameter setting optimization model, wherein the preset simulation tool includes a MATLAB simulation tool and a simulink simulation tool.

8. A droop control system for a microgrid, characterized in that: The system is used to perform the method according to any one of claims 1 to 7, the system comprising a model building module, a model training module and a droop control optimization module; The model building module is used to build a comprehensive droop parameter setting optimization model based on a particle swarm algorithm PSO; The model training module is used to iteratively train the comprehensive droop parameter setting optimization model with the minimum converter outlet current deviation and DC bus voltage deviation in the microgrid as the objective function; The droop control optimization module is used to obtain the droop control parameters of each group of converters in the microgrid through a trained comprehensive droop parameter setting optimization model.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.