Microgrid energy dispatching method and related equipment for microgrid cluster

By iteratively calculating the optimized parameter values ​​of the target microgrid, the privacy leakage problem in the energy scheduling of the community microgrid cluster is solved, the energy utilization rate and security are improved, and the energy coordinated scheduling is achieved without obtaining other microgrid parameters.

CN118316015BActive Publication Date: 2024-12-03SHENZHEN INSTITUTE OF INFORMATION TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410314438.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2024-12-03
Estimated Expiration
2044-03-19

AI Technical Summary

Technical Problem

Community microgrid clusters have privacy leakage problems during energy scheduling. The grid parameters of multiple microgrids need to be obtained for optimization, but this will expose the grid parameters of other microgrids and affect privacy and security.

Method used

By determining the target microgrid and obtaining its target grid parameters and penalty parameter values, using auxiliary parameter values ​​for iterative calculations, obtaining optimized parameter values ​​for energy scheduling, avoiding obtaining grid parameters of other microgrids, and ensuring privacy and security.

Benefits of technology

Without exposing other microgrid grid parameters, the energy parameters of the target microgrid and other microgrids are effectively coordinated to improve the energy utilization rate and energy scheduling safety of the microgrid cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118316015B_ABST
    Figure CN118316015B_ABST
Patent Text Reader

Abstract

The microgrid energy scheduling method and related equipment of a microgrid cluster proposed in an embodiment of the present application, the method first obtains the target grid parameters and the first penalty parameter value of the target microgrid, and obtains the first auxiliary parameter values ​​of the target microgrid and other microgrids; then, the target grid parameters, the first penalty parameter value and the first auxiliary parameter value are input into the energy management model of the microgrid for parameter calculation, and the optimized parameter value, the second auxiliary parameter value and the target cost value of the microgrid are obtained, the second penalty parameter value is obtained by using the first auxiliary parameter value and the first penalty parameter value, the change value of the current target cost value and the previous target cost value is obtained, and multiple iterative calculations are performed according to the change value; finally, the energy parameters of the target microgrid are energy scheduled based on the optimized parameter values, so as to effectively improve the energy utilization rate in the microgrid cluster while effectively improving the safety of the microgrid cluster during energy scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power system automation technology, and in particular to a microgrid energy scheduling method and related equipment for a microgrid cluster. Background Art

[0002] As a form of distributed energy system, community microgrids have smaller scale and higher flexibility, providing a powerful platform for achieving energy sustainability and economy. In order to more effectively manage the energy flow of multiple community microgrids in a community microgrid cluster and improve energy utilization, appropriate energy scheduling of the community microgrid cluster is required.

[0003] In the related art, for the energy dispatch of community microgrid clusters, the grid parameters of multiple community microgrids in the community microgrid cluster are usually used to construct an energy dispatch optimization problem in advance, and then the energy dispatch optimization problem is solved to obtain the energy dispatch parameters, so as to use the energy dispatch parameters to dispatch the community microgrid cluster. However, since this method requires obtaining the grid parameters of multiple community microgrids, there is a privacy leakage problem between community microgrids. Summary of the invention

[0004] The embodiments of the present application provide a microgrid energy scheduling method and related equipment for a microgrid cluster, which can improve the safety of the microgrid cluster when performing energy scheduling.

[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a microgrid energy scheduling method for a microgrid cluster, wherein the microgrid cluster includes a plurality of microgrids, and the method includes:

[0006] Determine a target microgrid from the plurality of microgrids, obtain a target grid parameter and a first penalty parameter value of the target microgrid, and obtain a first auxiliary parameter value between the target microgrid and the other microgrids;

[0007] Input the target grid parameter, the first penalty parameter value and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, obtain the optimized parameter value, the second auxiliary parameter value and the target cost value of the microgrid, use the first auxiliary parameter value and the first penalty parameter value to obtain the second penalty parameter value, obtain the change value between the current target cost value and the previous target cost value, if the change value is greater than or equal to the change threshold, use the second penalty parameter value as the first penalty parameter value, use the second auxiliary parameter value as the second auxiliary parameter value, and repeat this step until the change value is less than the change threshold;

[0008] Energy scheduling is performed on energy parameters of the target microgrid based on the optimized parameter values.

[0009] In some embodiments, before inputting the target grid parameter, the first penalty parameter value, and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, the method further includes:

[0010] Acquire grid parameters of a plurality of the microgrids, and obtain an energy scheduling model using the grid parameters;

[0011] Obtaining optimization parameters and penalty parameters of the target microgrid, and obtaining auxiliary parameters between the target microgrid and other microgrids;

[0012] Based on the energy scheduling model, the optimization parameters, the penalty parameters and the auxiliary parameters, an upper-layer cost penalty model and a lower-layer coordination optimization model are obtained;

[0013] A replacement condition of the upper-layer cost penalty model is determined, the upper-layer cost penalty model is updated using the replacement condition and the lower-layer coordination optimization model, and the energy management model is obtained based on the updated upper-layer cost penalty model.

[0014] In some embodiments, the microgrid includes a photovoltaic generator and an energy storage battery, and the step of obtaining an energy dispatch model using the grid parameters includes:

[0015] Determine the power load prediction parameters, energy transaction parameters, energy value parameters of the microgrid, photovoltaic power generation prediction parameters of the photovoltaic generator, and battery usage parameters and time parameters of the energy storage battery based on the grid parameters;

[0016] Among them, the power load prediction parameters and the photovoltaic power generation prediction parameters are used to construct the uncertainty prediction model of the microgrid, the power load prediction parameters are used to construct the power load model of the microgrid, the battery usage parameters and the time parameters are used to construct the battery energy state transfer model of the energy storage battery, the energy trading parameters and the energy value parameters are used to construct the energy trading cost model of the microgrid, the battery usage parameters, the energy trading parameters, and the power load parameters are used to construct the energy balance constraint conditions of the microgrid, and the battery usage parameters and the energy trading parameters are used to construct the energy cost function of the microgrid;

[0017] The energy scheduling model is obtained based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function.

[0018] In some embodiments, the power load forecasting parameters include non-transferable power load forecasting parameters, and before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the method further includes:

[0019] determining a non-transferable electric load forecast error and a photovoltaic power generation forecast error for each of the microgrids;

[0020] The transferable power load prediction error and the non-transferable power load prediction parameter are used to construct a non-transferable power load prediction model, and the photovoltaic power generation prediction error and the photovoltaic power generation prediction parameter are used to construct a photovoltaic power generation prediction model;

[0021] The uncertainty prediction model is obtained based on the non-transferable power load prediction model and the photovoltaic power generation prediction model.

[0022] In some embodiments, the power load forecasting parameters include transferable power load forecasting parameters, and before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the method further includes:

[0023] Determine a satisfaction index parameter, an actual transferable power load, and a total predicted value of the transferable power load of each microgrid, and determine a transferable power load deviation value based on the satisfaction index parameter;

[0024] The transferable power load deviation value, the actual transferable power load and the total predicted value of the transferable power load are used to construct a transferable power load prediction model;

[0025] The power load model is obtained based on the transferable power load prediction model and the non-transferable power load prediction model.

[0026] In some embodiments, the battery usage parameters include battery charging parameters and battery discharging parameters. Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition, and the energy cost function, the method further includes:

[0027] Determine the battery energy state, charging efficiency, discharging efficiency and battery capacity of each of the energy storage batteries at the last moment;

[0028] The charging efficiency, the battery charging parameter, the battery capacity and the time parameter are used to construct a charging model, and the discharging efficiency, the battery discharging parameter, the battery capacity and the time parameter are used to construct a discharging model;

[0029] The battery energy state transfer model is obtained based on the battery energy state at the previous moment, the charging model and the discharging model.

[0030] In some embodiments, the microgrid cluster further includes a community main grid, and before obtaining the energy dispatch model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition, and the energy cost function, the method further includes:

[0031] Based on the energy trading parameters, determine the main grid sold energy parameters and the main grid purchased energy parameters between each of the microgrids and the community main grid, and determine the microgrid sold energy parameters and microgrid purchased energy parameters between each of the microgrids and other microgrids;

[0032] Determine the main grid selling value and main grid purchasing value between each microgrid and the community main grid based on the energy value parameter, and determine the microgrid selling value and microgrid purchasing value between each microgrid and other microgrids;

[0033] The energy transaction cost model is obtained based on the main grid sold energy parameters, the main grid purchased energy parameters, the microgrid sold energy parameters, the microgrid purchased energy parameters, the main grid sold value, the main grid purchased value, the microgrid sold value and the microgrid purchased value.

[0034] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a microgrid energy scheduling device for a microgrid cluster, the device comprising:

[0035] A parameter acquisition module, used to determine a target microgrid from the plurality of microgrids, acquire a target grid parameter and a first penalty parameter value of the target microgrid, and acquire a first auxiliary parameter value of the target microgrid and the other microgrids;

[0036] a parameter calculation module, configured to input the target grid parameter, the first penalty parameter value, and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, to obtain an optimized parameter value, a second auxiliary parameter value, and a target cost value of the microgrid, wherein the second auxiliary parameter value corresponds to the first auxiliary parameter value, and to obtain a second penalty parameter value by using the first auxiliary parameter value and the first penalty parameter value, wherein the second penalty parameter value corresponds to the first penalty parameter value;

[0037] a cyclic calculation module, configured to use the second penalty parameter value as the first penalty parameter value and the second auxiliary parameter value as the second auxiliary parameter value to perform parameter calculation until the change value of the target cost value is less than the cost change threshold, and use the optimized parameter value as the target control parameter value;

[0038] An energy scheduling module is used to perform energy scheduling on the energy parameters of the target microgrid based on the target control parameter value.

[0039] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the microgrid energy scheduling method of the microgrid cluster as described in the first aspect.

[0040] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, it implements the microgrid energy scheduling method of the microgrid cluster described in the first aspect above.

[0041] The microgrid energy scheduling method and related equipment of a microgrid cluster proposed in an embodiment of the present application, the method first determines a target microgrid from multiple microgrids, obtains a target grid parameter and a first penalty parameter value of the target microgrid, and obtains a first auxiliary parameter value of the target microgrid and other microgrids; then, the target grid parameter, the first penalty parameter value and the first auxiliary parameter value are input into an energy management model of the microgrid for parameter calculation, and an optimized parameter value, a second auxiliary parameter value and a target cost value of the microgrid are obtained, the second penalty parameter value is obtained by using the first auxiliary parameter value and the first penalty parameter value, and a change value of the current target cost value and the previous target cost value is obtained. If the change value is greater than or equal to a change threshold, the second penalty parameter value is used as the first penalty parameter value, and the second auxiliary parameter value is used as the second auxiliary parameter value, and this step is repeated until the change value is less than the change threshold; finally, the energy parameters of the target microgrid are energy scheduled based on the optimized parameter value. The embodiment of the present application uses the first auxiliary parameter value as the representative parameter of other microgrids, so that without obtaining the grid parameters of other microgrids to ensure the privacy and security of other microgrids, the energy parameter collaborative calculation of the target microgrid and other microgrids can still be effectively considered in the microgrid cluster; and multiple iterative calculations are performed in the parameter calculation to obtain more suitable optimized parameter values, and the optimized parameter values ​​after iterative solution are used to perform energy scheduling on the target microgrid, thereby effectively improving the energy utilization rate in the microgrid cluster while effectively improving the safety of the microgrid cluster during energy scheduling.

[0042] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flow chart of a microgrid energy scheduling method for a microgrid cluster provided in one embodiment of the present application.

[0044] Figure 2 This is a flowchart for obtaining an energy management model provided by another embodiment of the present application.

[0045] Figure 3 This is a flowchart of obtaining an energy scheduling model provided by another embodiment of the present application.

[0046] Figure 4 This is a flowchart of obtaining an uncertainty prediction model provided by another embodiment of the present application.

[0047] Figure 5 This is a flowchart for obtaining a power load model provided by another embodiment of the present application.

[0048] Figure 6 This is a flowchart of obtaining a battery energy state transfer model provided by another embodiment of the present application.

[0049] Figure 7 This is a flowchart of obtaining an energy transaction cost model provided by another embodiment of the present application.

[0050] Figure 8 It is a structural schematic diagram of a microgrid energy scheduling device of a microgrid cluster provided in one embodiment of the present application.

[0051] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail 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 used to limit the present application.

[0053] It should be noted that although the functional modules are divided in the device schematic and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0055] First, some nouns involved in this application are analyzed:

[0056] A community microgrid refers to an electricity system established in a smaller area, such as a residential area, village or industrial park. The system usually utilizes various distributed energy resources, such as solar energy, wind energy and biomass energy, and combines energy storage facilities and advanced energy management technologies to provide a relatively independent and continuous power supply to the area. Community microgrids are usually able to adjust energy utilization more flexibly, reduce energy waste caused by traditional power systems, and reduce environmental impact. This system also helps to promote the use of renewable energy, improve energy efficiency, and enhance the reliability of power supply in the local area.

[0057] As a form of distributed energy system, community microgrids have smaller scale and higher flexibility, providing a powerful platform for achieving energy sustainability and economy. In order to more effectively manage the energy flow of multiple community microgrids in a community microgrid cluster and improve energy utilization, appropriate energy scheduling of the community microgrid cluster is required.

[0058] In the related art, for the energy dispatch of community microgrid clusters, the grid parameters of multiple community microgrids in the community microgrid cluster are usually used to construct an energy dispatch optimization problem in advance, and then the energy dispatch optimization problem is solved to obtain the energy dispatch parameters, so as to use the energy dispatch parameters to dispatch the community microgrid cluster. However, since this method requires obtaining the grid parameters of multiple community microgrids, there is a privacy leakage problem between community microgrids.

[0059] In order to improve the security of microgrid clusters during energy scheduling, the embodiment of the present application uses the first auxiliary parameter value as the representative parameter of other microgrids, so that without obtaining the grid parameters of other microgrids to ensure the privacy security of other microgrids, the energy parameter collaborative calculation of the target microgrid and other microgrids can still be effectively considered in the microgrid cluster; and multiple iterative calculations are performed in the parameter calculation, and the first auxiliary parameter value and the first penalty parameter value are adjusted in the iterative calculation to obtain a more suitable optimization parameter value according to the adjusted first auxiliary parameter value and the first penalty parameter value, and the optimized parameter value after iterative solution is used to perform energy scheduling on the target microgrid, thereby effectively improving the energy utilization rate in the microgrid cluster while effectively improving the security of the microgrid cluster during energy scheduling.

[0060] The following will further describe the microgrid energy dispatching method and related devices of the microgrid cluster provided in the embodiment of the present application. The microgrid energy dispatching method of the microgrid cluster provided in the embodiment of the present application can be applied to smart terminals, servers, computers, etc. connected to the microgrid cluster.

[0061] Reference Figure 1 , is an optional flow chart of a microgrid energy scheduling method for a microgrid cluster provided in an embodiment of the present application, Figure 1 The method in the embodiment may include but is not limited to steps 101 to 105. Figure 1 The order of step 101 to step 105 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0062] Step 101: determining a target microgrid from a plurality of microgrids, obtaining a target grid parameter and a first penalty parameter value of the target microgrid, and obtaining a first auxiliary parameter value between the target microgrid and other microgrids.

[0063] Step 101 is described in detail below.

[0064] In some embodiments, in response to energy scheduling requests for multiple microgrids in a microgrid cluster, each microgrid will perform energy parameter scheduling calculations on itself. For each microgrid that needs to perform energy parameter scheduling, the server that performs scheduling parameter calculations will determine the target microgrid that is about to perform energy parameter scheduling from multiple microgrids one by one, and obtain the target grid parameters of the target microgrid, which at least include the grid parameters of the next energy scheduling time period. In addition, since the purpose of this solution is to perform energy scheduling on the target microgrid in the subsequent energy scheduling time period, the target grid parameters obtained in advance can be the grid parameters of the target microgrid in the past energy scheduling time period, or they can be statistical grid parameters of the time length of multiple energy scheduling time periods of the target microgrid.

[0065] In addition, in order to comprehensively consider the coordinated energy scheduling of other microgrids in the microgrid cluster while calculating the energy parameters of the target microgrid, and in order to effectively protect the parameter privacy of other microgrids. While obtaining the target grid parameters of the target microgrid, it is also necessary to obtain the first penalty parameter value of the target microgrid and the first auxiliary parameter value between the target microgrid and the other microgrids. The first auxiliary parameter value is used as the relevant consideration parameter between the target microgrid and the other microgrids, so that the target grid parameters, the first auxiliary parameter value and the first penalty parameter value are subsequently input into the energy management model for parameter calculation, so as to obtain the optimized parameter value that comprehensively considers the energy coordinated scheduling between the target microgrid and the other microgrids, and the energy parameters of the target microgrid are energy-scheduled based on the optimized parameter value, so as to improve the energy utilization of the target microgrid under the condition of comprehensively considering the energy coordination of other microgrids, and improve the security in the microgrid cluster.

[0066] In some embodiments, in order to improve the reliability of parameter calculation, it is necessary to pre-build a suitable energy management model. The following will further describe how to build the energy management model.

[0067] Reference Figure 2 Before inputting the target grid parameter, the first penalty parameter value and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, the microgrid energy scheduling method of the microgrid cluster also includes the following steps 201 to 204.

[0068] Step 201: Obtain grid parameters of multiple microgrids, and obtain an energy scheduling model using the grid parameters.

[0069] Step 201 is described in detail below.

[0070] In some embodiments, in order to construct an energy management model suitable for a target microgrid, it is necessary to first construct an energy scheduling model suitable for all microgrids, so as to further transform the energy management model of the suitable target microgrid using the energy scheduling model. In order to construct a suitable energy scheduling model, it is necessary to obtain the grid parameters of multiple microgrids in the microgrid cluster in advance, so as to construct an energy scheduling model using the grid parameters of multiple microgrids. It is understandable that the grid parameters of multiple microgrids pre-acquired here are the historical grid parameters of multiple microgrids in the microgrid cluster, and no real-time parameter data is required, so as to avoid parameter privacy leakage between microgrids. The following will further describe how to obtain an energy scheduling model using grid parameters.

[0071] Reference Figure 3 , using the grid parameters to obtain an energy scheduling model, including the following steps 301 to 302.

[0072] Step 301: Determine the power load prediction parameters, energy transaction parameters, energy value parameters, photovoltaic power generation prediction parameters of the photovoltaic generator, and battery usage parameters and time parameters of the energy storage battery of the microgrid based on the grid parameters.

[0073] The following is a detailed description of step 301.

[0074] In some embodiments, in order to construct a suitable energy dispatching model and accurately describe the mathematical matching relationship with the actual microgrid cluster in each model, and because each microgrid includes a photovoltaic generator and an energy storage battery. Therefore, for a microgrid cluster containing N microgrids, it is necessary to first determine the power load prediction parameters, energy trading parameters, energy value parameters, photovoltaic power generation prediction parameters of the photovoltaic generator, and battery usage parameters and time parameters of the energy storage battery of multiple microgrids in the microgrid cluster, wherein the power load prediction parameters and photovoltaic power generation prediction parameters are used to construct the uncertainty prediction model of the microgrid, the power load prediction parameters are used to construct the power load model of the microgrid, the battery usage parameters and time parameters are used to construct the battery energy state transfer model of the energy storage battery, the energy trading parameters and energy value parameters are used to construct the energy trading cost model of the microgrid, the battery usage parameters, energy trading parameters, and power load parameters are used to construct the energy balance constraint conditions of the microgrid, and the battery usage parameters and energy trading parameters are used to construct the energy cost function of the microgrid.

[0075] How to construct an uncertainty prediction model will be further described below.

[0076] Reference Figure 4Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the microgrid energy scheduling method of the microgrid cluster also includes the following steps 401 to 402.

[0077] Step 401: Determine the non-transferable power load prediction error and photovoltaic power generation prediction error of each microgrid.

[0078] Step 402: Obtain an uncertainty prediction model based on the non-transferable power load prediction model and the photovoltaic power generation prediction model.

[0079] Steps 401 to 402 are described in detail below.

[0080] In some embodiments, the actual values ​​of the output power of the photovoltaic generator and the non-shiftable power load of each microgrid may deviate from the predicted values ​​due to random weather conditions and random human behavior. The uncertainty of energy management of community microgrid clusters mainly comes from solar photovoltaic output and non-shiftable power load.

[0081] Therefore, the power load forecasting parameters need to include non-transferable power load forecasting parameters, where the non-transferable power load forecasting parameters include the first The microgrid is The forecast value of non-transferable power load in each period And determine the non-transferable power load forecast error of the nth microgrid in the tth period Based on multiple non-transferable power load forecast values and multiple non-transferable power load forecast errors The non-transferable power load forecasting model of the nth microgrid can be further constructed as: in Refers to the non-transferable power load parameter of the nth microgrid in the tth time period.

[0082] Similarly, it is necessary to determine the photovoltaic power generation prediction parameters of the nth microgrid in the tth period and the photovoltaic power generation prediction error of the nth microgrid in the tth period Based on multiple photovoltaic power generation prediction parameters and multiple photovoltaic power generation prediction errors The photovoltaic power generation prediction model of the nth microgrid can be further constructed as: where g n,t Refers to the photovoltaic power generation parameters of the nth microgrid in the tth period.

[0083] Based on multiple non-transferable power load prediction models and multiple photovoltaic power generation prediction models, the uncertainty prediction model can be further obtained as follows:

[0084]

[0085] Among them, among them, and They represent the minimum and maximum values ​​of the photovoltaic power generation prediction deviation of the nth microgrid in the tth period respectively; and They represent the minimum and maximum values ​​of the non-transferable power load forecast deviation of the nth microgrid in the tth period, respectively.

[0086] Through the above steps 401 and 402, the non-transferable power load prediction parameters, photovoltaic power generation prediction parameters, non-transferable power load prediction errors and photovoltaic power generation prediction errors of each microgrid can be used to reasonably describe the non-transferable power load prediction model and photovoltaic power generation prediction model of the microgrid under random weather conditions and random human behaviors, thereby further constructing a mathematical model that matches the actual microgrid cluster and is used to describe the uncertainty prediction model of random values ​​of fluctuations in non-transferable power load and photovoltaic power generation.

[0087] Next, how to construct the power load model will be further described below.

[0088] Reference Figure 5 Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the microgrid energy scheduling method of the microgrid cluster also includes the following steps 501 to 502.

[0089] Step 501: Determine the satisfaction index parameter, the actual transferable power load and the total predicted value of the transferable power load of each microgrid, and determine the transferable power load deviation value based on the satisfaction index parameter.

[0090] Step 502: Obtaining an electric load model based on the transferable electric load prediction model and the non-transferable electric load prediction model.

[0091] Steps 501 to 502 are described in detail below.

[0092] In some embodiments, the power load forecasting parameters also include the transferable power load forecasting parameters of the nth microgrid in the tth time period First, it is necessary to determine the satisfactory index parameters of each microgrid The actual transferable power load of the nth microgrid in the tth period Then the satisfaction index parameter of the nth microgrid can be and the actual transferable power load of the nth microgrid in the tth period The transferable power load forecast parameters of the nth microgrid in the tth period can be determined for:

[0093]

[0094] Then, based on all transferable power load prediction parameters of the nth microgrid in T time periods The total predicted value of the transferable power load of the nth microgrid can be obtained The total predicted value of transferable power load can be used The nth microgrid transferable power load forecasting model can be obtained:

[0095]

[0096] in is the transferable power load parameter of the nth microgrid in the tth period. Next, based on the transferable power load parameter and non-transferable power load parameters It can be further obtained that the power load model of the nth microgrid in order to meet the load demand within the microgrid system itself is:

[0097]

[0098] in, and represents the minimum and maximum transferable power load of the nth microgrid in the tth period, d n,t It represents the power load parameter of the nth microgrid in the tth time period.

[0099] Through the above steps 501 and 502, the satisfactory index parameters of each microgrid and the actual transferable power load are used to obtain a transferable power load model that matches the mathematical description of the random values ​​that may appear in the actual microgrid, so as to further obtain a power load model that matches the actual microgrid application process using the transferable power load model and the non-transferable power load model.

[0100] Next, how to construct a battery energy state transfer model will be further described below.

[0101] Reference Figure 6Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the microgrid energy scheduling method of the microgrid cluster also includes the following steps 601 to 602.

[0102] Step 601: Determine the battery energy state, charging efficiency, discharging efficiency and battery capacity of each energy storage battery at the last moment.

[0103] Step 602: Obtain a battery energy state transfer model based on the battery energy state at the previous moment, a charging model, and a discharging model.

[0104] Steps 601 to 602 are described in detail below.

[0105] In some embodiments, the energy storage battery in the microgrid is usually a lead-acid battery or a lithium battery, and its charge and discharge power can be adjusted through the conversion equipment to mitigate the changes in energy consumption and power generation and compensate for the prediction error. However, frequent charging and discharging will shorten the life of the battery energy storage system and generate aging costs.

[0106] In one embodiment, the battery usage parameter includes the battery charging parameter of the nth microgrid in the tth time period. and battery discharge parameters Then determine the cost coefficient of the energy storage battery of the nth microgrid Then based on the battery charging parameters Battery discharge parameters and cost factor The energy storage battery aging cost model of the nth microgrid in the tth period can be obtained as follows:

[0107]

[0108] in, is the aging cost of the nth microgrid in the tth period, and Δt is the time parameter of each period. Next, we need to determine the charging efficiency of the nth microgrid in the tth period. Discharge efficiency Battery capacity B n , then based on the charging efficiency Battery charging parameters Battery capacity B n And the time parameter Δt can be obtained that the charging model of the nth microgrid in the tth period is: Based on the discharge efficiency Battery discharge parameters Battery capacity B n And the time parameter Δt can be obtained that the discharge model of the nth microgrid in the tth period is:

[0109] Next, obtain the battery energy state s of the nth microgrid at the last moment of the last period (i.e., t-1) n,t-1 , and then based on the battery energy state s at the previous moment n,t-1 , charging model and discharging model to obtain the battery energy state transfer model:

[0110]

[0111] Among them, s n,t is the battery energy state of the nth microgrid in the tth period, and They represent the maximum charging power and maximum discharging power of the energy storage battery of the nth microgrid in the tth time period respectively; and They respectively represent the minimum and maximum values ​​of the battery energy state of the energy storage battery of the nth microgrid in the tth time period; and n,T They represent the battery energy status of the energy storage battery of the nth microgrid at time t0 and at time T respectively.

[0112] Through the above steps 601 and 602, the charging efficiency, discharging efficiency and aging coefficient of each microgrid are used to obtain the aging cost of the mathematical description that matches the actual microgrid during operation, and then the charging model formed by the charging efficiency and the discharging model formed by the discharging efficiency of each microgrid are used to obtain the battery energy state transfer model of the mathematical description that matches the actual microgrid during operation.

[0113] Next, how to construct the energy transaction cost model will be further described below.

[0114] Reference Figure 7 Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the microgrid energy scheduling method of the microgrid cluster also includes the following steps 701 to 703.

[0115] Step 701: Based on energy trading parameters, determine the main grid sold energy parameters and the main grid purchased energy parameters between each microgrid and the community main grid, and determine the microgrid sold energy parameters and microgrid purchased energy parameters between each microgrid and other microgrids.

[0116] Step 702: Determine the main grid selling value and main grid purchasing value between each microgrid and the community main grid based on the energy value parameter, and determine the microgrid selling value and microgrid purchasing value between each microgrid and other microgrids.

[0117] Step 703: Obtain an energy transaction cost model based on the main grid sold energy parameters, the main grid purchased energy parameters, the microgrid sold energy parameters, the microgrid purchased energy parameters, the main grid sold value, the main grid purchased value, the microgrid sold value and the microgrid purchased value.

[0118] Steps 701 to 703 are described in detail below.

[0119] In some embodiments, the microgrid cluster includes a community main grid. After determining the energy transaction parameters of each microgrid at each moment, the main grid sold energy parameters and the main grid purchased energy parameters between each microgrid and the community main grid are determined based on the energy transaction parameters, including the main grid sold energy parameter y sold by the nth microgrid to the community main grid in the tth time period. ng,t , the energy parameter x purchased by the nth microgrid from the community main grid in the tth period ng,t Based on the energy transaction parameters, the energy sold parameters and energy purchased parameters between each microgrid and other microgrids are determined, including the energy transaction parameters of the nth microgrid to the nth microgrid in the tth period. The energy parameters y of the microgrid sold by the microgrid nm,t , the energy parameter x purchased by the nth microgrid from the mth microgrid in the tth period nm,t . Based on the main network sold energy parameter y ng,t 、Main network purchase energy parameter x ng,t , Microgrid sold energy parameter y nm,t and the microgrid purchased energy parameter x nm,t The energy trading model can be obtained:

[0120]

[0121] Among them, x n,t refers to the energy purchase parameter of the nth microgrid in the tth period, y n,t Refers to the energy selling parameter of the nth microgrid in the tth period. In addition, the microgrid needs to meet the following constraints during the actual energy trading process:

[0122]

[0123] in, and They represent the maximum amount of electricity purchased by the nth microgrid from the community main grid and the mth community microgrid in the tth period respectively; and They respectively represent the maximum amount of electricity sold by the nth microgrid to the community main grid and the mth community microgrid in the tth time period.

[0124] In addition, based on the energy purchase parameter x n,t , Energy sales parameter y n,t , Battery charging parameters Battery discharge parameters Power load parameter d n,t And photovoltaic power generation parameters g n,t The energy balance constraint condition of the nth microgrid in the tth period can be obtained as follows:

[0125]

[0126] Then, after determining the energy value parameters of each microgrid at each moment, the main grid sales value and main grid purchase value between each microgrid and the community main grid are determined based on the energy value parameters, including the main grid sales value of the energy sold by the nth microgrid to the community main grid in the tth period. The energy value of the community main grid purchased by the nth microgrid in the tth period Based on the energy value parameter, the microgrid selling value and microgrid purchasing value between each microgrid and other microgrids are determined, including the microgrid selling value of the energy sold by the nth microgrid to the mth microgrid in the tth period. The microgrid purchase value of energy purchased by the nth microgrid from the mth microgrid in the tth period Based on the energy trading model, the main grid selling value, the main grid purchasing value, the microgrid selling price and the microgrid purchasing value, the energy trading cost model can be obtained as follows:

[0127]

[0128] in, is the energy transaction cost of the nth microgrid in the tth period.

[0129] Step 302: Obtain an energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function.

[0130] Step 302 is described in detail below.

[0131] In some embodiments, after obtaining the power load model (4), the uncertainty prediction model (1), the energy storage battery aging cost model (5), the battery energy state transfer model (6), the energy trading model (7-8), the energy trading cost model (10), and the energy balance constraint condition (9), a mathematically described energy scheduling model matching the actual application can be obtained as follows:

[0132]

[0133] The optimization variables are Including main grid purchased energy parameters, main grid sold energy parameters, microgrid sold energy parameters, microgrid purchased energy parameters, transferable power load parameters, battery charging parameters and battery discharging parameters; is the objective function, which is obtained from the energy storage battery aging cost model (5) and the energy transaction cost model (10):

[0134] Step 202: Obtain optimization parameters and penalty parameters of the target microgrid, and obtain auxiliary parameters between the target microgrid and other microgrids.

[0135] Step 203: Obtain an upper-layer cost penalty model and a lower-layer coordination optimization model based on the energy scheduling model, optimization parameters, penalty parameters and auxiliary parameters.

[0136] Steps 202 to 203 are described in detail below.

[0137] In some embodiments, after obtaining an energy scheduling model that matches the actual operation of the microgrid cluster, in order to improve privacy security in practical applications, it is necessary to further convert the energy scheduling model into an energy management model suitable for the target microgrid.

[0138] First, the energy scheduling model is restructured into a two-level optimization problem. Specifically, the upper-level optimization subproblem can be expressed as an augmented Lagrangian function It includes the objective function and the penalty term for violating the energy balance constraint. Each community microgrid (including the target microgrid) can get a corresponding optimization problem.

[0139] Next, for the optimization problem of the target microgrid, it is necessary to obtain the optimization parameters and penalty parameters of the target microgrid, as well as the auxiliary parameters between the target microgrid and other microgrids. include That is, the target microgrid’s main grid purchased energy parameters, main grid sold energy parameters, microgrid sold energy parameters, microgrid purchased energy parameters, transferable power load parameters, battery charging parameters, and battery discharging parameters; the penalty parameters include α nmand ρ; auxiliary parameters include γ mn and δ nm , used to represent the auxiliary variable between the nth microgrid (i.e., the target microgrid) and the mth microgrid, where γ mn =y mn -x mn , δ nm =x nm -y nm .

[0140] Next, based on the energy scheduling model (11), the optimization parameters The penalty parameter {α nm ,ρ} and auxiliary parameters {γ mn ,δ nm The upper cost penalty model is expressed as follows:

[0141]

[0142] The symbol “||||2” represents the 2-norm; the symbol “o” represents the Hadamard product, which refers to the element-by-element multiplication of matrices, that is, the new matrix obtained by multiplying the elements at corresponding positions; and k represents the current number of iterations.

[0143] Based on the energy scheduling model (11), the optimization parameters The penalty parameter {α nm ,ρ} and auxiliary parameters {γ mn ,δ nm The lower-level coordination optimization model is expressed as follows:

[0144]

[0145] Step 204: determine a replacement condition for the upper-layer cost penalty model, update the upper-layer cost penalty model using the replacement condition and the lower-layer coordination optimization model, and obtain an energy management model based on the updated upper-layer cost penalty model.

[0146] Step 204 is described in detail below.

[0147] In some embodiments, after obtaining the upper-layer cost penalty model (12) and the lower-layer coordination optimization model (13), the upper-layer cost penalty model (12) and the lower-layer coordination optimization model (13) are constructed as a single-layer energy management model according to the Carlo-Kuhn-Tucker condition (i.e., the replacement condition of the upper-layer cost penalty model). Specifically, since the lower-layer coordination optimization model (13) is a convex quadratic function with linear constraints, it can be converted into the constraints of the upper-layer optimization model according to the KKT condition (i.e., the Carlo-Kuhn-Tucker condition). Therefore, it can be used replace And find the lower coordination optimization model (13) about The partial derivative of is:

[0148]

[0149] By replacing the lower-level coordination optimization model (13) with the KKT condition in the upper-level cost penalty model (12), the following single-layer energy management model can be obtained:

[0150]

[0151] Since the energy management model only involves the local information of the target microgrid and the values ​​of the auxiliary parameters that interact with other adjacent microgrids in iteration k-1, this means that the energy management model is constructed in a completely decentralized and privacy-preserving manner, involving only local communication with other directly adjacent microgrids to improve the security of energy scheduling in the microgrid cluster.

[0152] Step 102: Input the target grid parameter, the first penalty parameter value and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, obtain the optimized parameter value, the second auxiliary parameter value and the target cost value of the microgrid, use the first auxiliary parameter value and the first penalty parameter value to obtain the second penalty parameter value, obtain the change value between the current target cost value and the previous target cost value, if the change value is greater than or equal to the change threshold, use the second penalty parameter value as the first penalty parameter value, use the second auxiliary parameter value as the second auxiliary parameter value, and repeat this step until the change value is less than the change threshold.

[0153] Step 102 is described in detail below.

[0154] In some embodiments, after obtaining the target power grid parameter and the first penalty parameter value and the first auxiliary parameter value Then, the target grid parameter, the first penalty parameter value and the first auxiliary parameter value are Input the pre-built energy management model (15) suitable for the target microgrid to calculate the parameters and obtain the optimized parameter values ​​of the microgrid. Second auxiliary parameter value Then based on the optimization parameter values The target cost value is calculated by the energy management model (15) Next, use the first auxiliary parameter value and the first penalty parameter value The second penalty parameter value is: α k =α k-1 +2ρ 2 (γ k-1 -δ k-1 ) and obtain the current target cost value With the previous target cost value The change value is: If the change value is greater than or equal to the change threshold ε2, the second penalty parameter value is As the first penalty parameter value, the second auxiliary parameter value As the second auxiliary parameter value, repeat this step for iterative solution until the change value is less than the change threshold ε2, so as to obtain a stable optimization parameter value that can effectively improve energy utilization. The change threshold ε2 is used to determine whether the iterative process converges, and its value can be set according to the statistical data of the target microgrid.

[0155] In some embodiments, step 102 may also be obtained by the following algorithm flow steps:

[0156] 1) Initialize the auxiliary parameters and penalty parameters α, ρ, δ, and initialize the number of iterations k = 0;

[0157] 2) Based on the energy management model (15), the optimized parameter value A of the target microgrid is k and the auxiliary variable value δ k Parallel solving;

[0158] 3) Update the penalty parameter value α k :α k =α k-1 +2ρ 2 (γ k-1 -δ k-1 );

[0159] 4) If The adjacent community microgrids exchange and If the value is not met, no exchange will be performed, where ω is the auxiliary exchange threshold, which can be set according to the statistical data of the target microgrid;

[0160] 5) Update the parameter data of other microgrids adjacent to the target microgrid and The value of

[0161] 6) Determine whether the current iterative calculation result converges (the judgment condition is: and Where ε1 is the auxiliary threshold and ε2 is the variable threshold, which is used to determine whether the iterative process converges. Its value can be set according to the statistical data of the target microgrid). If so, the calculation results of the decision variables in the day-ahead economic dispatch problem of each community microgrid are output; if not, k=k+1, and return to step 2).

[0162] Step 103: Perform energy scheduling on the energy parameters of the target microgrid based on the optimized parameter values.

[0163] Step 103 is described in detail below.

[0164] In some embodiments, after the iterative parameter calculation and solution process according to step 102 is completed and the optimized parameter value is obtained, Afterwards, the relevant parameters of the target microgrid (including the main grid purchased energy parameters, the main grid sold energy parameters, the microgrid sold energy parameters, the microgrid purchased energy parameters, the transferable power load parameters, the battery charging parameters and the battery discharging parameters) will be energy scheduled in the following energy scheduling time period, so as to effectively improve the energy utilization rate of the target microgrid in the following energy scheduling time period, so as to reduce the energy use cost of the microgrid cluster and improve the privacy security of the energy scheduling of the microgrid cluster.

[0165] In order to more effectively manage the energy flow in the microgrid, the embodiment of the present application proposes a multi-stage energy optimization management strategy for the community microgrid cluster. By using a decentralized algorithm to solve the mathematical model of energy management of the community microgrid cluster, the day-ahead economic dispatch result of the community microgrid cluster can be obtained. In the process of solving the optimization problem, not only can the privacy of each community microgrid be protected, but also the communication burden can be reduced.

[0166] The present application also provides a microgrid energy dispatching device for a microgrid cluster, which can implement the microgrid energy dispatching method for the microgrid cluster. Figure 8 , the device 800 comprises:

[0167] A parameter acquisition module 810 is used to determine a target microgrid from a plurality of microgrids, acquire a target grid parameter and a first penalty parameter value of the target microgrid, and acquire first auxiliary parameter values ​​of the target microgrid and other microgrids;

[0168] The parameter calculation module 820 is used to input the target grid parameter, the first penalty parameter value and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, obtain the optimized parameter value, the second auxiliary parameter value and the target cost value of the microgrid, use the first auxiliary parameter value and the first penalty parameter value to obtain the second penalty parameter value, obtain the change value between the current target cost value and the previous target cost value, and if the change value is greater than or equal to the change threshold, use the second penalty parameter value as the first penalty parameter value and the second auxiliary parameter value as the second auxiliary parameter value, and repeat this step until the change value is less than the change threshold;

[0169] The energy scheduling module 830 is used to perform energy scheduling on the energy parameters of the target microgrid based on the optimized parameter values.

[0170] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, the specific implementation method of the microgrid energy scheduling device of the microgrid cluster is basically the same as the specific implementation method of the microgrid energy scheduling method of the above-mentioned microgrid cluster, and will not be repeated here.

[0171] The present application also provides an electronic device, including:

[0172] at least one memory;

[0173] at least one processor;

[0174] at least one program;

[0175] The program is stored in the memory, and the processor executes the at least one program to implement the microgrid energy scheduling method of the microgrid cluster implemented in the present application. The electronic device can be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a car computer, etc.

[0176] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0177] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0178] The memory 902 can be implemented in the form of ROM (Read Only Memory), static storage device, dynamic storage device or RAM (Random Access Memory). The memory 902 can store operating systems and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 902, and the processor 901 calls and executes the microgrid energy scheduling method of the microgrid cluster of the embodiment of the present application;

[0179] Input / output interface 903, used to implement information input and output;

[0180] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0181] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0182] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0183] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the microgrid energy scheduling method of the above-mentioned microgrid cluster is implemented.

[0184] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0185] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0186] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0187] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0188] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0189] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0190] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0191] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0192] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0193] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0194] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0195] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A microgrid energy scheduling method for a microgrid cluster, It is characterized in that The microgrid cluster includes a plurality of microgrids, and the method includes: Determine a target microgrid from the plurality of microgrids, obtain a target grid parameter and a first penalty parameter value of the target microgrid, and obtain a first auxiliary parameter value between the target microgrid and the other microgrids; Input the target grid parameter, the first penalty parameter value and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, obtain the optimized parameter value, the second auxiliary parameter value and the target cost value of the microgrid, use the first auxiliary parameter value and the first penalty parameter value to obtain the second penalty parameter value, obtain the change value of the current target cost value and the previous target cost value, if the change value is greater than or equal to the change threshold, use the second penalty parameter value as the first penalty parameter value, use the second auxiliary parameter value as the second auxiliary parameter value, and repeat this step until the change value is less than the change threshold; Performing energy scheduling on the energy parameters of the target microgrid based on the optimized parameter values; Before inputting the target grid parameter, the first penalty parameter value and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, the method further includes: Acquire grid parameters of a plurality of the microgrids, and obtain an energy scheduling model using the grid parameters; Obtaining optimization parameters and penalty parameters of the target microgrid, and obtaining auxiliary parameters between the target microgrid and other microgrids; Based on the energy scheduling model, the optimization parameters, the penalty parameters and the auxiliary parameters, an upper-layer cost penalty model and a lower-layer coordination optimization model are obtained; Determining a replacement condition of the upper-layer cost penalty model, updating the upper-layer cost penalty model using the replacement condition and the lower-layer coordination optimization model, and obtaining the energy management model based on the updated upper-layer cost penalty model; The microgrid includes a photovoltaic generator and an energy storage battery, and the energy scheduling model is obtained by using the grid parameters, including: Determine the power load prediction parameters, energy transaction parameters, energy value parameters of the microgrid, photovoltaic power generation prediction parameters of the photovoltaic generator, and battery usage parameters and time parameters of the energy storage battery based on the grid parameters; Wherein, the power load prediction parameters and the photovoltaic power generation prediction parameters are used to construct the uncertainty prediction model of the microgrid, the power load prediction parameters are used to construct the power load model of the microgrid, the battery usage parameters and the time parameters are used to construct the battery energy state transfer model of the energy storage battery, the energy trading parameters and the energy value parameters are used to construct the energy trading cost model of the microgrid, the battery usage parameters, the energy trading parameters, and the power load parameters are used to construct the energy balance constraint conditions of the microgrid, and the battery usage parameters and the energy trading parameters are used to construct the energy cost function of the microgrid; The energy scheduling model is obtained based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function; The power load forecasting parameters include non-transferable power load forecasting parameters. Before obtaining the energy scheduling model based on the power load model, the uncertainty forecasting model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the method further includes: determining a non-transferable electric load forecast error and a photovoltaic power generation forecast error for each of the microgrids; The transferable power load prediction error and the non-transferable power load prediction parameter are used to construct a non-transferable power load prediction model, and the photovoltaic power generation prediction error and the photovoltaic power generation prediction parameter are used to construct a photovoltaic power generation prediction model; Obtaining the uncertainty prediction model based on the non-transferable power load prediction model and the photovoltaic power generation prediction model; The power load forecasting parameters include transferable power load forecasting parameters. Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the method further includes: Determine a satisfaction index parameter, an actual transferable power load, and a total predicted value of the transferable power load of each microgrid, and determine a transferable power load deviation value based on the satisfaction index parameter; The transferable power load deviation value, the actual transferable power load and the total predicted value of the transferable power load are used to construct a transferable power load prediction model; The power load model is obtained based on the transferable power load prediction model and the non-transferable power load prediction model.

2. The microgrid energy dispatching method of the microgrid cluster according to claim 1, It is characterized in that The battery usage parameters include battery charging parameters and battery discharging parameters. Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the method further includes: Determine the battery energy state, charging efficiency, discharging efficiency and battery capacity of each of the energy storage batteries at the last moment; The charging efficiency, the battery charging parameter, the battery capacity and the time parameter are used to construct a charging model, and the discharging efficiency, the battery discharging parameter, the battery capacity and the time parameter are used to construct a discharging model; The battery energy state transfer model is obtained based on the battery energy state at the previous moment, the charging model and the discharging model.

3. The microgrid energy dispatching method of the microgrid cluster according to claim 1, It is characterized in that The microgrid cluster also includes a community main grid. Before obtaining the energy scheduling model based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the method further includes: Based on the energy trading parameters, determine the main grid sold energy parameters and the main grid purchased energy parameters between each of the microgrids and the community main grid, and determine the microgrid sold energy parameters and microgrid purchased energy parameters between each of the microgrids and other microgrids; Determine the main grid selling value and main grid purchasing value between each microgrid and the community main grid based on the energy value parameter, and determine the microgrid selling value and microgrid purchasing value between each microgrid and other microgrids; The energy transaction cost model is obtained based on the main grid sold energy parameters, the main grid purchased energy parameters, the microgrid sold energy parameters, the microgrid purchased energy parameters, the main grid sold value, the main grid purchased value, the microgrid sold value and the microgrid purchased value.

4. A microgrid energy dispatching device for a microgrid cluster, It is characterized in that The device comprises: A parameter acquisition module, used to determine a target microgrid from the plurality of microgrids, acquire a target grid parameter and a first penalty parameter value of the target microgrid, and acquire a first auxiliary parameter value of the target microgrid and the other microgrids; a parameter calculation module, configured to input the target grid parameter, the first penalty parameter value, and the first auxiliary parameter value into the energy management model of the microgrid for parameter calculation, obtain the optimized parameter value, the second auxiliary parameter value, and the target cost value of the microgrid, obtain the second penalty parameter value by using the first auxiliary parameter value and the first penalty parameter value, obtain the change value between the current target cost value and the previous target cost value, and if the change value is greater than or equal to the change threshold, use the second penalty parameter value as the first penalty parameter value, use the second auxiliary parameter value as the second auxiliary parameter value, and repeat this step until the change value is less than the change threshold; An energy scheduling module is used to perform energy scheduling on the energy parameters of the target microgrid based on the optimized parameter value; before the target grid parameter, the first penalty parameter value and the first auxiliary parameter value are input into the energy management model of the microgrid for parameter calculation, it also includes: Acquire grid parameters of a plurality of the microgrids, and obtain an energy scheduling model using the grid parameters; Obtaining optimization parameters and penalty parameters of the target microgrid, and obtaining auxiliary parameters between the target microgrid and other microgrids; Based on the energy scheduling model, the optimization parameters, the penalty parameters and the auxiliary parameters, an upper-layer cost penalty model and a lower-layer coordination optimization model are obtained; Determining a replacement condition of the upper-layer cost penalty model, updating the upper-layer cost penalty model using the replacement condition and the lower-layer coordination optimization model, and obtaining the energy management model based on the updated upper-layer cost penalty model; The microgrid includes a photovoltaic generator and an energy storage battery, and the energy scheduling model is obtained by using the grid parameters, including: Determine the power load prediction parameters, energy transaction parameters, energy value parameters of the microgrid, photovoltaic power generation prediction parameters of the photovoltaic generator, and battery usage parameters and time parameters of the energy storage battery based on the grid parameters; Wherein, the power load prediction parameters and the photovoltaic power generation prediction parameters are used to construct the uncertainty prediction model of the microgrid, the power load prediction parameters are used to construct the power load model of the microgrid, the battery usage parameters and the time parameters are used to construct the battery energy state transfer model of the energy storage battery, the energy trading parameters and the energy value parameters are used to construct the energy trading cost model of the microgrid, the battery usage parameters, the energy trading parameters, and the power load parameters are used to construct the energy balance constraint conditions of the microgrid, and the battery usage parameters and the energy trading parameters are used to construct the energy cost function of the microgrid; The energy scheduling model is obtained based on the power load model, the uncertainty prediction model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function; The power load forecasting parameters include non-transferable power load forecasting parameters, and before obtaining the energy scheduling model based on the power load model, the uncertainty forecasting model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the further comprising: determining a non-transferable electric load forecast error and a photovoltaic power generation forecast error for each of the microgrids; The transferable power load prediction error and the non-transferable power load prediction parameter are used to construct a non-transferable power load prediction model, and the photovoltaic power generation prediction error and the photovoltaic power generation prediction parameter are used to construct a photovoltaic power generation prediction model; Obtaining the uncertainty prediction model based on the non-transferable power load prediction model and the photovoltaic power generation prediction model; The power load forecasting parameters include transferable power load forecasting parameters, and before obtaining the energy scheduling model based on the power load model, the uncertainty forecasting model, the battery energy state transfer model, the energy transaction cost model, the energy balance constraint condition and the energy cost function, the further comprising: Determine a satisfaction index parameter, an actual transferable power load, and a total predicted value of the transferable power load of each microgrid, and determine a transferable power load deviation value based on the satisfaction index parameter; The transferable power load deviation value, the actual transferable power load and the total predicted value of the transferable power load are used to construct a transferable power load prediction model; The power load model is obtained based on the transferable power load prediction model and the non-transferable power load prediction model.

5. An electronic device, It is characterized in that It includes a memory and a processor, the memory stores a computer program, and is characterized in that when the processor executes the computer program, it implements the microgrid energy scheduling method for the microgrid cluster as described in any one of claims 1 to 3.

6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the microgrid energy scheduling method for a microgrid cluster according to any one of claims 1 to 3 is implemented.