Microgrid control method, device, terminal and storage medium

The initial power purchase sequence is determined and corrected through fuzzy rules, which solves the problem of energy storage system life in microgrid control, achieves sustainable management of household light-storage coupled microgrids, and ensures long-term stable operation of the system.

CN115441446BActive Publication Date: 2024-08-23INST OF ECONOMIC & TECH STATE GRID HEBEI ELECTRIC POWER +5
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211292445.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-20
Publication Date
2024-08-23
Estimated Expiration
2042-10-20

AI Technical Summary

Technical Problem

The existing microgrid control method cannot ensure the sustainability of household light and heat storage coupled microgrids, and fails to effectively consider the long-term life impact of the energy storage system.

Method used

The first fuzzy rule is used to determine the initial power purchase sequence. Based on historical load demand and electricity price, the second fuzzy rule determines the correction amount and corrects the power purchase sequence to balance the charge and discharge of the energy storage system, avoid extreme working conditions, and ensure the long-term durability of the energy storage system. life.

Benefits of technology

It achieves sustainable coordinated control of microgrid operation, avoids overcharge or overdischarge of the energy storage system, extends the life of the energy storage system, and improves the economy and sustainability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115441446B
    Figure CN115441446B
Patent Text Reader

Abstract

The present invention provides a control method, device, terminal and storage medium for a microgrid. The method comprises: determining an initial power purchase sequence corresponding to the real-time load demand and real-time electricity price of the microgrid through a first fuzzy rule; wherein the first fuzzy rule is determined based on historical load demand, historical electricity price and historical power purchase sequence; determining a correction amount corresponding to the real-time charge-discharge balance and real-time output intensity through a second fuzzy rule; wherein the second fuzzy rule is determined based on historical charge-discharge balance, historical output intensity and historical correction amount; correcting the initial power purchase sequence based on the correction amount to obtain a power purchase sequence, so as to control the microgrid based on the power purchase sequence. The present invention corrects the power purchase sequence through the real-time charge-discharge balance and real-time output intensity of the energy storage system, thereby ensuring the long-term life of the energy storage system and realizing sustainable coordinated control of the operation of the microgrid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power dispatching, and in particular to a control method, device, terminal and storage medium for a microgrid. Background Art

[0002] In recent years, with the rapid development of industry and the continuous deterioration of the global climate, the traditional fossil energy reserves of countries around the world are becoming increasingly scarce. Therefore, in order to meet the energy needs of human production and life, the development of green and clean energy has become a top priority in the energy development plans of various countries. Especially in the field of electricity, all countries have proposed relevant policies to accelerate the power generation and grid connection of new energy, reduce the use of traditional power generation units, and jointly contribute to the realization of the global goals of "carbon peak" and "carbon neutrality". At the same time, with the implementation of the "coal to electricity" policy, the advent of the wave of power market reform and the advancement of smart grid construction, the construction and application of user-side photovoltaic heat storage coupled microgrids have become increasingly important.

[0003] The user-side photovoltaic-heat storage coupled microgrid has the functions of energy storage, energy use and production. At present, in order to improve the economic efficiency of the operation of the user-side photovoltaic-heat storage coupled microgrid, some scholars have established a central controller of the photovoltaic-storage microgrid to control the operation of the household photovoltaic-heat storage coupled microgrid. However, the current microgrid control method usually only considers factors such as operating costs and load demand, and does not consider the impact on the long-term life of the energy storage system, which affects the sustainability of the operation of the household photovoltaic-heat storage coupled microgrid. Summary of the invention

[0004] The embodiments of the present invention provide a microgrid control method, device, terminal and storage medium to solve the problem that the existing control method is difficult to ensure the sustainability of the operation of a household solar-thermal storage coupled microgrid.

[0005] In a first aspect, an embodiment of the present invention provides a control method for a microgrid, wherein the microgrid includes an energy storage system and a load device; the method includes:

[0006] Determine an initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid through a first fuzzy rule; wherein the first fuzzy rule is determined based on historical load demand, historical electricity price and historical power purchase power sequence;

[0007] Determine the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity through the second fuzzy rule; wherein the second fuzzy rule is determined based on the historical charge-discharge balance, the historical output intensity and the historical correction amount;

[0008] The initial power purchase power sequence is corrected based on the correction amount to obtain the power purchase power sequence, so as to control the microgrid based on the power purchase power sequence.

[0009] In a second aspect, an embodiment of the present invention provides a control device for a microgrid, wherein the microgrid includes an energy storage system and a load device; the device includes:

[0010] A first determination module is used to determine an initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid through a first fuzzy rule; wherein the first fuzzy rule is determined based on historical load demand, historical electricity price and historical power purchase power sequence;

[0011] A second determination module is used to determine a correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity through a second fuzzy rule; wherein the second fuzzy rule is determined based on the historical charge-discharge balance, the historical output intensity and the historical correction amount;

[0012] The power correction module is used to correct the initial power purchase power sequence based on the correction amount to obtain the power purchase power sequence, so as to control the microgrid based on the power purchase power sequence.

[0013] In a third aspect, an embodiment of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect or any possible implementation manner of the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect or any possible implementation method of the first aspect are implemented.

[0015] The microgrid control method, device, terminal and storage medium provided by the embodiments of the present invention have the following beneficial effects:

[0016] The present invention first determines the initial power purchase sequence through fuzzy rules to obtain a more accurate power purchase sequence, then determines the correction amount of the power purchase sequence through the real-time charge and discharge balance and real-time output intensity of the energy storage system, corrects the power purchase sequence, and dispatches the microgrid through the corrected power purchase sequence, so that the parameters of the energy storage system can be controlled within the required range, avoiding the energy storage system from operating in extreme conditions of overcharging or over-discharging, thereby avoiding damage to the electrical performance of the energy storage system, ensuring the long-term life of the energy storage system, and realizing sustainable coordinated control of the operation of the microgrid. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] Figure 1 This is an application scenario diagram of a microgrid control method provided by an embodiment of the present invention;

[0019] Figure 2 is a topological structure diagram of a microgrid provided by an embodiment of the present invention;

[0020] Figure 3 is an energy flow diagram of a microgrid provided by an embodiment of the present invention;

[0021] Figure 4 is a flow chart of an implementation of a microgrid control method provided by an embodiment of the present invention;

[0022] Figure 5 is a calculation block diagram of the correction amount provided by an embodiment of the present invention;

[0023] Figure 6 It is a schematic diagram of the structure of a BP neural network provided by an embodiment of the present invention;

[0024] Figure 7 is a training flow chart of a BP neural network provided by an embodiment of the present invention;

[0025] Figure 8 is a schematic diagram of the structure of a photovoltaic power prediction model provided by an embodiment of the present invention;

[0026] Fig. 9 is a domain scope diagram of a first fuzzy rule provided by an embodiment of the present invention;

[0027] Fig.10 is a domain scope diagram of a second fuzzy rule provided by an embodiment of the present invention;

[0028] Fig.11 This is a block diagram of a household solar-heat storage coordinated control system provided by an embodiment of the present invention;

[0029] Fig.12 This is a schematic diagram of time-of-day electricity prices in urban areas provided by an embodiment of the present invention;

[0030] Fig.13 A rural peak-valley electricity price map provided by an embodiment of the present invention;

[0031] Fig.14 is a domain scope diagram of a first fuzzy rule provided by an embodiment of the present invention;

[0032] Fig.15 is a domain scope diagram of a first fuzzy rule provided by an embodiment of the present invention;

[0033] Fig.16 This is an initial electricity sale and purchase sequence diagram provided by an embodiment of the present invention;

[0034] Fig.17 This is a sunny day photovoltaic power prediction diagram provided by an embodiment of the present invention;

[0035] Fig.18 This is a cloudy photovoltaic power prediction diagram provided by an embodiment of the present invention;

[0036] Fig.19 This is a sunny day electricity purchase power sequence diagram provided by an embodiment of the present invention;

[0037] Fig. 20 This is a cloudy day electricity purchase power sequence diagram provided by an embodiment of the present invention;

[0038] Fig.21 is a sunny day energy storage power curve diagram provided by an embodiment of the present invention;

[0039] Fig. 22 It is a cloudy energy storage power curve diagram provided by an embodiment of the present invention;

[0040] Fig.23 This is a comparison diagram of a sunny day power purchase power sequence before and after correction provided by an embodiment of the present invention;

[0041] Fig.24 This is a comparison diagram of the cloudy day power purchase power sequence before and after correction provided by an embodiment of the present invention;

[0042] Fig.25 It is a state of charge diagram of an energy storage battery after sunny day correction provided by an embodiment of the present invention;

[0043] Fig.26 It is a state of charge diagram of an energy storage battery after cloudy weather correction provided by an embodiment of the present invention;

[0044] Fig. 27 is a schematic structural diagram of a microgrid control device provided by an embodiment of the present invention;

[0045] Fig.28 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0047] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0048] Figure 1 The application scenario diagram of the microgrid control method provided by the embodiment of the present invention. The microgrid control method provided by the present invention is applied to a microgrid, wherein the microgrid can be a user-side photovoltaic thermal storage coupled microgrid. The structure of the user-side photovoltaic thermal storage coupled microgrid is as follows: Figure 1 As shown. Figure 1 It can be seen that the photovoltaic-thermal-storage coupled microgrid mainly includes distributed photovoltaics, energy storage systems (heat storage tanks, energy storage batteries, etc.), electrical loads, thermal loads, and controllers. There are two operating modes for this microgrid system. One is grid-connected operation. At this time, the photovoltaic-thermal-storage coupled microgrid system is connected to the external power grid through a static switch. The photovoltaic operates at maximum power output or at the limit power. The energy storage system is used to store electrical energy, store heat, and smooth the intermittent fluctuations of the actual photovoltaic output power. Within the maximum power range allowed by the grid-connected point, on the premise of meeting the user's load demand, users are encouraged to purchase more electricity during the low electricity price period and purchase less electricity or even sell electricity during the peak electricity price period. The other is off-grid operation. In the event of an external power grid failure or power outage, the photovoltaic-thermal-storage coupled microgrid is disconnected from the external power grid, and the energy storage system operates in V / F (voltage / frequency) control mode. At this time, the power supply of the microgrid system is the energy storage battery, which is used to supply the load in the grid and maintain uninterrupted power supply for a certain period of time. Its topology is as follows: Figure 2 shown.

[0049] At present, existing scholars have established a central controller for photovoltaic and storage microgrids through research on photovoltaic and storage microgrids. Under the guidance of real-time market trading electricity prices, the central controller controls the power sold and purchased by users and the external power grid, and realizes the optimal scheduling of photovoltaics and electric energy storage. The energy storage system mainly plays a role in suppressing the randomness of internal loads and photovoltaics, so that the control platform can control energy exchange according to the transaction amount. If there is no energy storage device, the grid-connected power of the household photovoltaic and thermal storage coupled microgrid system is controlled.

[0050] In order to further optimize the control mode of the photovoltaic storage microgrid, the present invention uses the electric power of each device to replace each device in the household photovoltaic storage coordinated control system, and obtains Figure 3The overall system power flow diagram is shown. Figure 3 P pv is the actual power generated by photovoltaic power, P g P is the power sold and purchased between the system and the external power grid, b is the total power of energy storage regulation, where energy storage includes electrical energy storage power P E , heat storage power P H , P LH , P LE They represent the heat load and the electric load power respectively. In the system, photovoltaic is the representative of intermittent power source, and air source heat pump is the representative of heat load. While ensuring the equivalent heat load and electric load demand within the system, the coordinated control system controls the power sold and purchased between the microgrid system and the external power grid under the guidance of real-time transaction electricity prices. The energy storage system mainly plays a role in suppressing the randomness and intermittency of the heat load and photovoltaic power within the grid.

[0051] The dynamic mathematical model of the household solar-heat storage coordinated control system is shown in formula (1):

[0052]

[0053] Where P LH , P LE Represents the equivalent thermal load and electrical load power, P pv is the actual power generated by photovoltaic power, P b is the total power of energy storage regulation, where energy storage includes electrical energy storage and thermal energy storage. When the energy storage system is charging, the power is negative; when releasing energy and discharging, the power is positive. P g E is the power purchased and sold between the user and the smart energy service platform (external power grid). It is positive when purchasing power from the smart energy service platform and negative when selling power. b is the amount of electricity stored in the energy storage battery at the current moment, and η is the energy conversion efficiency of the energy storage battery, including discharge efficiency and charging efficiency.

[0054] Formula (1) is expressed as a discrete second-order dynamic equation as shown in formula (2):

[0055]

[0056] In the formula, v is the control variable, y is the output, x1 and x2 are state variables, and u1, u2, and u3 are non-controlled input variables.

[0057] If written in matrix form, it is as shown in formula (3).

[0058]

[0059] Where A, B, C, and D are coefficient matrices, as shown in formula (4).

[0060]

[0061] See also Figure 4 , which shows a flow chart of the implementation of the microgrid control method provided by an embodiment of the present invention, which is described in detail as follows:

[0062] Step 401, determining an initial power purchase power sequence corresponding to the real-time load demand and real-time electricity price of the microgrid through a first fuzzy rule; wherein the first fuzzy rule is determined based on historical load demand, historical electricity price and historical power purchase power sequence.

[0063] In this embodiment, the electricity purchase power sequence is a sequence composed of the electricity purchase powers of each time period within a period of time. For example, different time periods in a day may correspond to different real-time electricity prices, and different time periods may also correspond to different electricity purchase powers. By arranging the electricity purchase powers of each time period in a day in order, the electricity purchase power sequence corresponding to the day can be obtained.

[0064] Fuzzy control algorithms do not require precise mathematical models, can be generally applied in control, have strong robustness, and have been widely used to solve control problems in power systems. Fuzzy logic control (Fuzzy Logic Control), referred to as fuzzy control (Fuzzy Control), is a digital control technology that includes fuzzy variables, fuzzy domains, and reasoning and decision-making based on fuzzy rules. Fuzzy control theory was proposed by LAZadeh and EH in the United States, and Mamdani in the United Kingdom pioneered its application to industrial control. It is mainly composed of fuzzy variables and fuzzy rules. Compared with other control principles, fuzzy control mainly relies on fuzzy rules for reasoning and decision-making. The starting point of fuzzy rules is the insight of relevant industry experts or the control experience of on-site technicians. There is no need to accurately mathematically model things to achieve control. Therefore, fuzzy control is widely used in the control process of actual production and life.

[0065] In this embodiment, the user's decision to purchase and sell electricity, which is determined based on the real-time market electricity price and the load demand in the household photovoltaic and thermal energy storage coupled microgrid system, is greatly influenced by human will. In such a problem, it is difficult to find the corresponding mathematical relationship for modeling and analysis. It is difficult to find an accurate mathematical model to reflect the user's most economical decision using mathematical control theory or typical control theory. Therefore, it is difficult to achieve economic scheduling of user purchase and sale of electricity by relying solely on mathematical logic and conventional control algorithms.

[0066] Fuzzy control theory is a nonlinear intelligent control technology that can make control decisions based on fuzzy rules summarized by relevant industry experts based on work experience and test data without knowing the exact mathematical relationship between the controlled object and the controlled quantity. It uses computers to simulate the experience of manual control by corresponding industry personnel to control the controlled quantity. Therefore, in this embodiment, the fuzzy control algorithm is selected to determine the initial power purchase sequence.

[0067] According to the real-time electricity price of market transactions and the load value in the photovoltaic thermal storage coupled microgrid, fuzzy control is used to generate the reference power vector Y for users to sell or purchase electricity from the external power grid. g From formula (5), we can get:

[0068] Y g (k) = FD(p L (k), m(k)) (5)

[0069] Where p L (k) and m(k) are the load (heat load, electric load) demand size in the household solar-thermal storage coupled microgrid and the real-time electricity price in the market transaction at time k, respectively. Both serve as input quantities of the reference power generation module for economic dispatch.

[0070] Step 402, determining a correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by a second fuzzy rule; wherein the second fuzzy rule is determined based on the historical charge-discharge balance, the historical output intensity and the historical correction amount.

[0071] In this embodiment, during the process of the battery energy storage system participating in the economic dispatch of users, due to the strong randomness and intermittency of the heat load and photovoltaic power in the household photovoltaic heat storage coupled microgrid, the battery energy storage system charge and discharge power often makes the battery (energy storage) SOC value at or close to the upper and lower limits, which is not conducive to the control and adjustment of the energy storage battery power at the next moment. In order to achieve power control of battery energy storage and improve its charge and discharge capacity, this paper establishes relevant indicators of energy storage batteries to evaluate and determine the current operating status of the battery, and continuously correct the initial power purchase and sale of household microgrids and external power grids, so as to adjust the battery charge and discharge power in real time and keep the battery SOC value near the recommended value.

[0072] In order to make the corresponding indicators in a reasonable and normal state, the charge and discharge balance index and output intensity index of the battery energy storage system are calculated in this embodiment, and the output of the above two indicators after fuzzy control processing is used as a feedback signal to correct the output of the economic dispatch reference power generation module. The block diagram for determining the correction amount is as follows: Figure 5 As shown, the fuzzy control relationship is shown in formula (6):

[0073] ΔY k =K·FD(B(k),T(k)) (6)

[0074] Where B(k) and T(k) are the charge and discharge balance index and output intensity index of the battery energy storage system at time k, respectively, and both serve as inputs of the reference power correction module.

[0075] Step 403, correcting the initial power purchase power sequence based on the correction amount to obtain the power purchase power sequence, so as to control the microgrid based on the power purchase power sequence.

[0076] In this embodiment, the initial power purchase power sequence is used to achieve the comprehensive utilization of production capacity, energy purchase, energy use, and energy storage. Specifically, when the internal power generation of the microgrid is sufficient, electricity can be sold to the external power grid to increase the economic income of the microgrid; when the internal power generation of the microgrid cannot meet the operation, electricity can be purchased appropriately according to the real-time electricity price to ensure that the load demand is met. Therefore, the initial power purchase power sequence can coordinate and control the flow of power and electric energy in each part to ensure the economy of household "electric heating". Using the corrected power purchase power sequence to dispatch the microgrid can add the function of adjusting the charging and discharging power of the energy storage system on the basis of the initial power purchase power sequence, thereby extending the life of the energy storage system as much as possible and ensuring the sustainability of the microgrid while ensuring the economy of the microgrid.

[0077] In a possible implementation, before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by using the second fuzzy rule, the method further includes:

[0078] Get the predicted PV power of the microgrid;

[0079] Calculate energy storage power based on predicted PV power and real-time load demand;

[0080] The real-time output intensity is calculated based on the energy storage power and output intensity calculation formula; the output intensity calculation formula is:

[0081]

[0082] Where P.ref(k) represents the energy storage power at time k, P.cmax represents the maximum charging power of the energy storage system, P.dmax represents the maximum discharging power of the energy storage system, and w c and w d Represents the weight factor.

[0083] In this embodiment, according to Figure 3 The calculation formula for the power purchased by the microgrid from the external power grid can be determined as follows:

[0084] P g (n+1)=P L (n+1)-P pv (n+1)-P b(n+1) (8)

[0085] Where P L Represents the sum of equivalent heat load and electrical load power, i.e. load demand, P pv is the actual power generated by photovoltaic power, P b is the total power of energy storage regulation, where energy storage includes electrical energy storage and heat storage. The battery energy storage system is positive when discharging and negative when charging. g The power purchased and sold by the user and the smart energy service platform (external power grid) is positive when purchasing power from the smart energy service platform and negative when selling power. According to formula (2-6), after determining the load demand and power purchase power of n+1 day, it is also necessary to determine the photovoltaic power of the household photovoltaic heat storage coupled microgrid system of n+1 day, so as to calculate the energy storage power of n+1 day, and thus calculate the relevant indicators of the energy storage system of n+1 day, and feedback and correct the economic dispatch reference power generation module, so as to guide users to purchase and sell power.

[0086] The output intensity index T(k) of the battery energy storage system is used to measure the power of each charge and discharge of the battery energy storage system, as shown in formula (9):

[0087]

[0088] Where P.ref(k) represents the reference value of the energy storage power at time k, P.cmax and P.dmax are the maximum charge and discharge powers of the battery energy storage system, respectively. c and w d is the weight factor. When T(k) approaches 1, it indicates that the discharge power instruction of the energy storage system approaches the maximum value; when T(k) approaches -1, it indicates that the charging power of the energy storage system approaches the maximum value; when T(k) approaches 0, it indicates that the energy storage power is 0.

[0089] The constraint condition of the power command reference value P.ref(k) of the battery energy storage system at time k is shown in formula (10):

[0090] P.cmax≤P.ref(k)≤P.dmax (10)

[0091] In a possible implementation, obtaining the predicted photovoltaic power of the microgrid includes:

[0092] The real-time weather information is input into a trained photovoltaic power prediction model to obtain predicted photovoltaic power; wherein the photovoltaic power prediction model is a BP neural network.

[0093] In this embodiment, the BP neural network is a multi-layer feedforward network trained by forward modeling and error back propagation algorithm, and is one of the most widely used neural network models in various neural networks. In recent years, artificial intelligence such as edge computing and neural networks have been widely used in various aspects of power systems, and various optimized BP neural networks have also been widely used in various load and output forecasts. The prediction of photovoltaic output power is an important basis for the analysis of distributed microgrids and the basis for the economic operation of today's new power systems. The BP neural network does not need to clearly establish the inherent mathematical relationship of things, but learns and stores a large number of input-output mapping patterns like function mapping relationships. The goal of BP neural network training is to minimize the sum of square errors of the network, and its learning rule is to use the steepest descent method to calculate forward. After completion, the weights and thresholds of the network are continuously adjusted by back propagating the calculated errors. The application of BP neural networks in power load and output forecasting has become increasingly mature, and is widely used in various forecasts. The prediction of BP neural networks in photovoltaic output power mainly predicts the time and spatial distribution of future photovoltaic power, providing a reliable decision-making basis for the planning, operation and scheduling of microgrids coupled with light storage and heat.

[0094] In a possible implementation, before obtaining the predicted photovoltaic power of the microgrid, the method further includes:

[0095] Establish an initial photovoltaic power prediction model; the photovoltaic power prediction model is a 28-57-24 structure, the tansig function is the activation function of the hidden layer neurons, and the logsig function is the activation function of the output layer neurons;

[0096] The trainbr gradient descent method is used to train the initial photovoltaic power prediction model based on the training data set to obtain a trained photovoltaic power prediction model.

[0097] In this embodiment, the present invention adopts Figure 6 The three-layer classic BP neural network structure shown in the figure, where X1, X2, X3, X m are input variables, Y1, Y2, Y n is the output variable, and the BP neural network training process is as follows Figure 7 shown.

[0098] Generally speaking, there are many factors that affect the actual output power of photovoltaic power. The present invention mainly considers the impact of the temperature (maximum temperature, minimum temperature), weather conditions (sunny, cloudy, rainy) and season (spring, summer, autumn, winter) on the photovoltaic power on the forecast day, ignores other influencing factors, and uses actual measured values ​​as samples to train the network, thereby establishing a BP neural network model that meets the load forecasting accuracy requirements.

[0099] In practical applications, this embodiment uses the photovoltaic power data of a certain region at an interval of 1 hour every day in January, February, July, August, September, October, November, and December 2019 as samples to predict the photovoltaic power of a certain day thereafter. In this way, the 24 photovoltaic power data of a certain day are taken as input, and in addition, the four inputs of the maximum temperature, the minimum temperature, the weather conditions, and the season on the day of the prediction are added, so that the input variables of the BP neural network can be obtained as formula (11):

[0100] X=(x1,x2,x3,x4,x5…x 28 ) T (11)

[0101] The target vector is the actual output power value of 24 photovoltaics on the forecast day, which is formula (12):

[0102] Y=(y1,y2,y3,y4,y5…y 24 ) T (12)

[0103] The training set is classified according to the actual photovoltaic data of the past year, weather conditions and seasons. Before making a prediction, a training subset with similar season and weather conditions to the prediction day is selected to train the BP neural network, and the trained BP neural network model is used to predict the photovoltaic power on the prediction day.

[0104] The model adopts a typical three-layer BP neural network structure. The tansig function is the activation function of the hidden layer neurons, the logsig function is the activation function of the output layer neurons, the trainbr gradient descent method is the training method of the BP neural network, and the number of hidden layer neurons is preliminarily set according to the Kolmogorov theorem. The number of hidden layer neurons is formula (13):

[0105] q=2*n+1 (13)

[0106] Where n is the number of neurons in the input layer, so q=57.

[0107] The hidden layer output vector is formula (14):

[0108] K=k(k1,k2,k3,k4,k5...k 57 ) T (14)

[0109] Based on this, the structure of the BP neural network corresponding to the photovoltaic power prediction model in this embodiment is 28-57-24, and its structure is as follows: Figure 8As shown. Input the 24 photovoltaic power data of the previous day and the four input quantities of the maximum temperature, minimum temperature, weather conditions and season of the predicted day, and the predicted photovoltaic power P of the day can be obtained through BP neural network training. pv .

[0110] In a possible implementation, before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by using the second fuzzy rule, the method further includes:

[0111] Get real-time state of charge;

[0112] The real-time charge and discharge balance is calculated based on the real-time state of charge and the charge and discharge balance calculation formula; wherein the charge and discharge balance calculation formula is:

[0113]

[0114] Among them, C soc (k) represents the charge state of the energy storage system at time k, C soc.ref It indicates the recommended soc value of the energy storage system, Csoc.max indicates the maximum charge value of the energy storage system, and Csoc.min indicates the minimum charge value of the energy storage system.

[0115] In this embodiment, the charge-discharge balance index B(k) is used to measure the charge-discharge capability of the battery energy storage system, and the calculation formula is shown in formula (15):

[0116]

[0117] Among them, C soc (k) is the state of charge of the battery energy storage system at time k, C soc.ref is the recommended value of battery soc, Csoc.max and Csoc.min are the maximum and minimum charge values ​​of the battery respectively. soc.ref Too high or too low will reduce the capacity of the next charge and discharge. soc.ref =(Csic.max-Csoc.min) / 2. The closer B(k) is to 1, the stronger the discharge capacity of the battery energy storage system is and the weaker the charging capacity is; the closer B(k) is to -1, the weaker the discharge capacity of the battery energy storage system is and the stronger the charging capacity is; when B(k) approaches 0, the charging and discharging capacity of the battery energy storage system is balanced.

[0118] The state of charge C of the battery energy storage system at time k soc The constraint condition of (k) is shown in formula (16):

[0119] C soc.min ≤C soc (k)≤C soc.max (16)

[0120] In a possible implementation, before determining the initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid by the first fuzzy rule, the method further includes:

[0121] Obtain the load demand, electricity price and purchased power sequence corresponding to multiple historical periods;

[0122] The first fuzzy rule is determined based on the corresponding relationship between each load demand, electricity price and power purchase power sequence.

[0123] In this embodiment, since the photovoltaic heat storage coupled microgrid used in this embodiment is mainly used to solve the problem of "electric heating" in winter, and the time division of each season and the electricity price of each time period are roughly similar, the first fuzzy rule in this embodiment focuses on winter as the analysis focus. After obtaining multiple load demands in winter, the load demands are divided into 6 fuzzy subsets, and the real-time electricity prices are divided into 8 fuzzy subsets, corresponding to a total of 48 fuzzy rules. The fuzzy rules are shown in Table 1.

[0124] Table 1

[0125]

[0126] Among them, L, M, SH, H, VH, and MH are defined to represent low, medium, slightly high, high, very high, and extremely high load demands in the system, respectively; MS, MOP, MP, NOP, ANP, ANOP, EP, and EOP are defined according to the time-of-use electricity price information as early-plateau period, early-valley period, early-peak period, noon-valley period, afternoon-peak period, afternoon-valley period, evening-peak period, and evening-valley period. In order to simplify the fuzzy control process, trapezoidal and triangular membership functions are selected, and the membership functions of the input variables and output variables and the domain range corresponding to each variable are as follows: Fig. 9 shown.

[0127] In a possible implementation, it is characterized in that before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by using the second fuzzy rule, the method further includes:

[0128] Obtain the charge and discharge balance, output intensity and correction value for multiple historical periods;

[0129] The second fuzzy rule is determined based on the corresponding relationship between each charge and discharge balance degree, output intensity and correction amount.

[0130] In this embodiment, after obtaining the charge-discharge balance, output intensity and correction amount of multiple historical periods, the charge-discharge balance index B(k) is divided into 7 fuzzy subsets, and the output intensity index T(k) is divided into 7 fuzzy subsets, and finally 49 fuzzy rules are obtained. The fuzzy rules are shown in Table 2.

[0131] Table 2

[0132]

[0133] Among them, NB, NM, NS, NVS, ZO, VS, PS, PM, and PB are defined to represent negative large, negative medium, negative small, negative slightly small, zero, positive slightly small, positive small, positive medium, and positive large. To simplify the process, triangular and trapezoidal membership functions are selected. The membership functions of input variables and output variables and the domain range corresponding to each variable are as follows: Fig.10 shown.

[0134] In a specific embodiment, Figure 3 Based on the corresponding household solar-thermal storage coupled microgrid energy flow model, the designed household solar-thermal storage coordinated control system block diagram is as follows: Fig.11 shown. Fig.11 The control system shown in the figure first inputs the load demand and the real-time electricity price into the economic dispatch reference power generation module, and the economic dispatch reference power generation module executes the above step 401 to determine the initial power purchase power sequence Pg(k), and at the same time, the BP neural network photovoltaic power prediction module performs prediction to obtain the predicted photovoltaic power P pv Then the control system is based on the load demand and the initial power purchase sequence P g (k) and predicted photovoltaic power P pv Determine the energy storage power P b , and according to the energy storage power P b The charge-discharge balance index B(k) and the output intensity index T(k) are calculated. Finally, the battery energy storage system fuzzy controller determines the correction value according to the charge-discharge balance index B(k) and the output intensity index T(k). The correction value is used to adjust the initial power purchase power sequence P g (k) is corrected to obtain the final power purchase power sequence PG.

[0135] In order to verify the effect of the microgrid dispatching method provided by the embodiment of the present invention, a demonstration application of a household photovoltaic heat storage coordinated control system was carried out in a certain place. Based on the local load and actual photovoltaic output power data and the time-of-use electricity price, the household photovoltaic heat storage coordinated control algorithm was simulated and verified.

[0136] According to the specific electricity price survey of the area, the 24-hour electricity price of the area can be divided into peak, valley and normal periods. Specifically, it can be divided into the real-time time-of-use electricity price in the urban area and the peak and valley electricity price implemented in rural areas after "coal to electricity". Fig.12 , Fig.13 As shown, the corresponding fuzzy relationship in the reference power generation module proposed in this paper is as follows Fig.14 , Fig.15As shown. The heating area in this area is 100 square meters. The heating method adopts the reuse of five constant systems for heating. The heating power demand is 18.75kW. The heat source adopts air source heat pump. Since the energy efficiency required by local indicators is 2.5, the heating power is about 7.5kW. The region uses a photovoltaic storage integrated device to achieve photovoltaic power generation and energy storage. The actual maximum output power of photovoltaic is about 9kW, and the maximum electrical load power is about 6kW. Photovoltaic solar panel selection: JA Solar JAM72S30-545 / MR components are used, with a maximum power of 545Wp, an open circuit voltage of 49.75V, and a maximum power point operating current of 13.04A. Air source heat pump equipment selection: Under the requirements of heating power, it is also necessary to consider the extreme problems of the winter use environment and further determine. The extreme low temperature in winter in this area is -15℃, and the unit should have good working performance at low temperatures. At the same time, considering the impact of grid connection, it is recommended to configure a frequency converter to achieve soft start, and select the Gree Hongbing series air heat source pump according to relevant parameters. At the same time, in order to ensure the stability of the outlet water temperature, a 2-ton water tank is configured.

[0137] From formula (17), we can get that when a 2-ton water tank is filled with water and the water in the tank rises by 1°C, the amount of heat buffered is 8.4*10 6 J.

[0138] Q=c×m×Δt (17)

[0139] Selection of photovoltaic storage integrated device equipment: According to local requirements, the photovoltaic storage inverter uses Huawei SUN2000-6KTL-M1 series off-grid integrated inverter, with a maximum output current of 13.5A for each MPPT, a maximum DC input voltage of 1100V, an MPPT voltage range of 140V~980V, an input working voltage range of 600V~980V, and a maximum working current of 16.7A. Selection of energy storage battery pack: LUNA2000-5-SO intelligent string energy storage system, with a maximum charging and discharging power of 5kW, a battery available capacity of 10kWh, a peak output of 7kW, 10s, a maximum state of charge of 0.98, and a minimum state of charge of 0.05. The photovoltaic storage inverter can be connected to multiple battery packs. After connecting to multiple energy storage devices, the storage capacity increases, but the output power remains unchanged and the duration increases. The following case analysis and verification will be based on the above data, and two days of sunny and cloudy weather conditions on the forecast day will be selected for verification.

[0140] (1) Generation of the initial electricity sales and purchase sequence

[0141] According to the time-of-use electricity price and load demand information, the initial electricity sales and purchase sequence Y is generated based on the optimal scheduling of electricity sales and purchase fuzzy decision making. g (k), predict daily load data and generate the initial electricity sales and purchase sequence as follows Fig.16According to the 24-hour photovoltaic power data of the day before the forecast day and the weather data of the forecast day, the 24-hour photovoltaic power data of the forecast day is obtained through BP neural network training. The load size and photovoltaic forecast power of the forecast day are as follows: Fig.17 As shown; the load size and photovoltaic power forecast on the forecast day are cloudy. Fig.18 shown.

[0142] (2) Amendment to the electricity sales and purchase sequence

[0143] After the photovoltaic power forecast is carried out, the battery energy storage related indicators are calculated, and the initial power sales and purchase sequence is fed back and corrected through the battery energy storage system operation evaluation correction module. After coordinated optimization, the power sales and purchase correction curve of the household photovoltaic thermal storage coupled microgrid and the external power grid when the forecast day is sunny and the corrected curve is as follows Fig.19 As shown in the figure, when the forecast day is cloudy, the power correction curve of the household solar thermal storage coupled microgrid and the external power grid is as follows: Fig. 20 shown.

[0144] The corrected energy storage power curve can be solved according to formula (2-2) from the corrected power sold and purchased. After the cycle correction is completed, the initial energy storage total control power curve on a sunny day and the corrected energy storage total control power curve are as follows: Fig.21 As shown in the figure, the initial total energy storage control power curve and the corrected total energy storage control power curve on a cloudy day are as follows: Fig. 22 shown.

[0145] (3) Economic analysis of electricity sales and purchases

[0146] Depend on Fig.16 It can be seen that the area is an office building, and there are three peaks in the heat load and electrical load in the building, which are 8:00-11:00, 14:00-17:00, and 19:00-22:00, respectively, and the photovoltaic power peak occurs at about 11-15 o'clock. According to the coordinated optimization strategy, we should purchase electricity as much as possible when the electricity price is low during the day to meet the load in the grid, and reduce the purchase of electricity as much as possible when the load and electricity price are peak, and meet the load in the grid through the discharge of the battery energy storage system and the output of photovoltaic power.

[0147] Depend on Fig.21 , Fig. 22 It can be seen that during the peak load period and the peak electricity price period from 8:00 to 22:00, the energy storage battery is discharged as much as possible, and during the low load and electricity price period from 22:00 to 24:00 and 0:00 to 8:00, electricity is purchased as much as possible to charge the energy storage battery. However, due to the limited battery capacity, in order to make the charging and discharging power stable, the charging and discharging power of the energy storage battery needs to be controlled and corrected.

[0148] By comparing the initial power curve and the corrected power curve, it can be seen that the corrected power curve effectively suppresses the intermittent nature of photovoltaic power output, and while meeting the network load demand, it achieves the economy of power sales and purchases as much as possible. Since the actual photovoltaic power output is small on cloudy days, in order to meet the load in the network, the purchase of electricity when the external power grid price is low is increased as much as possible, but the overall power purchase trend is similar to that on sunny days, such as Fig.23 , Fig.24 shown.

[0149] (4) Analysis of the role and economic feasibility of battery energy storage systems

[0150] The role of the battery energy storage system in the household photovoltaic and thermal energy storage coupled microgrid system is mainly to reduce peak loads and fill valleys. It discharges as much as possible during the peak power consumption of the microgrid system, and purchases electricity and charges as much as possible during the low power consumption period. In this way, within a certain limit, the stability of the user's purchase and sale of electricity is maintained, and the impact of the external power grid on the user-side photovoltaic and thermal energy storage coupled microgrid is reduced.

[0151] The continuous correction of the battery energy storage correction module keeps the charge state and charging and discharging power of the energy storage battery in a stable state. While meeting the power supply demand, it protects the battery life to the maximum extent. The charge state of the energy storage battery after correction on sunny and cloudy days is as follows: Fig.25 , Fig.26 shown.

[0152] In recent years, with the development of energy storage technology, the cost of battery energy storage has dropped from the initial 7-8 yuan / Wh to 2 yuan / Wh, and then to nearly 1.5 yuan / Wh now; at the same time, the cycle life of the battery has been continuously extended, from the initial 1500 times, to 3400 times, and then to the current 6500 times. Therefore, the cost of the entire battery energy storage system is reduced, and the construction cost and electricity cost of the battery energy storage system are reduced at the same time. At present, taking lithium batteries as an example, the energy storage cost of storing 1kWh of electricity is about 2400 yuan, and the number of charge and discharge times is about 3500 times, so its cost per kilowatt-hour is about 0.69 yuan / kWh. Since household energy storage in my country is currently in an upward period of development, when it reaches a certain scale, coupled with the state's subsidies for user energy storage, the energy storage subsidy is about 0.1 yuan / kWh. In the long run, the economic advantages of energy storage are increasing year by year, and the application of household energy storage has a bright future in the future.

[0153] (5) The role of the heat storage part and its contribution to the overall economic efficiency of the system

[0154] Water tanks are added to the energy storage part for heat storage, and the control strategy is: if the weather is good on that day, solar energy is used to store heat in the water tank during the day. When heating is needed, the hot water storage tank is used for pre-heating first; if solar energy is insufficient, before the peak period of heat load usage, when the electricity price is low, electricity is purchased as much as possible through air source heat pumps to store heat in the hot water storage tank. When heating is needed, the hot water storage tank is used for pre-heating first. This can reduce peak electricity prices to a certain extent and centrally purchase electricity to supply heat loads during peak heat load periods, thereby achieving the economy of purchasing electricity on the user side, which is conducive to achieving the overall economy of the system to a greater extent.

[0155] From the above, it can be seen that the core of the present invention is to propose a coordinated optimization algorithm based on fuzzy control, BP neural network and closed-loop feedback control, which realizes the optimized scheduling of the user's power purchase and sale sequence of household photovoltaic and thermal storage coupled microgrid system and the tracking control of energy storage. Compared with the control of other photovoltaic and thermal storage microgrids, this method adds a control strategy for heat storage and thermal load, with the aim of realizing the comprehensive utilization of photovoltaics, thermal storage and electric energy storage, and maximizing the economic efficiency of users' electricity purchase. In addition, the coordinated control algorithm adopts fuzzy control theory, so that the control strategy is more in line with the real-time scheduling process of actual professionals. At the same time, the BP neural network is used to predict the actual photovoltaic output power to achieve tracking control of energy storage. Finally, battery energy storage is used to construct relevant indicators to evaluate electric energy storage. Under the constraints of battery energy storage, the user's power purchase and sale power and the total energy storage scheduling power are fed back and corrected, aiming to achieve economic scheduling in photovoltaic and thermal storage coupled microgrids and achieve coordinated optimization of comprehensive energy. The present invention has the following advantages:

[0156] (1) The method proposed in the present invention uses a fuzzy control method to preliminarily optimize the power purchase and sale sequence between the microgrid and the external power grid based on the real-time electricity price of market transactions and the load value in the photovoltaic and thermal energy storage coupled microgrid. This method can better simulate the economic dispatch process of professionals. In the single dispatch process based on load demand, the real-time electricity price factor is taken into account, and the economic efficiency of user electricity purchase is used as an indicator.

[0157] (2) After predicting the photovoltaic power through the BP neural network, the present invention obtains the charging and discharging power of the battery energy storage system, establishes and calculates the charging and discharging balance index and output intensity index of the battery energy storage system, obtains the feedback signal based on fuzzy control, forms a closed-loop control, and corrects the initial power sales and purchases. Compared with open-loop control, it takes into account the randomness of the thermal load and the intermittent nature of the photovoltaic output on the power sales and purchases, thereby improving the coordinated control precision and accuracy of the household photovoltaic thermal storage coupled microgrid.

[0158] (3) The household photovoltaic heat storage coordinated control algorithm established by the present invention can achieve the maximum economic efficiency of the user's electricity purchase while ensuring the user's heating and load demand. Compared with single electric heating, it realizes the multi-level utilization of electricity to the household side photovoltaic heat storage coupled microgrid, maximizing the economy of the user's electricity purchase.

[0159] The embodiment of the present invention first determines the initial power purchase sequence through fuzzy rules to obtain a more accurate power purchase sequence, then determines the correction amount of the power purchase through the real-time charge and discharge balance and the real-time output intensity of the energy storage system, corrects the power purchase sequence, and dispatches the microgrid through the corrected power purchase sequence, so that the parameters of the energy storage system can be controlled within the required range, avoiding the energy storage system from operating in extreme conditions of full discharge or full power storage, thereby avoiding damage to the life of the energy storage system, ensuring the long-term life of the energy storage system, and realizing sustainable coordinated control of the operation of the microgrid.

[0160] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0161] The following is an embodiment of the device of the present invention. For details not described in detail, reference may be made to the corresponding method embodiments described above.

[0162] Fig. 27 The structure diagram of the control device of the microgrid provided by the embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0163] like Fig. 27 As shown, the control device 27 of the microgrid includes:

[0164] The first determination module 271 is used to determine the initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid through a first fuzzy rule; wherein the first fuzzy rule is determined based on the historical load demand, the historical electricity price and the historical power purchase power sequence;

[0165] A second determination module 272 is used to determine a correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity through a second fuzzy rule; wherein the second fuzzy rule is determined based on the historical charge-discharge balance, the historical output intensity and the historical correction amount;

[0166] The power correction module 273 is used to correct the initial power purchase power sequence based on the correction amount to obtain the power purchase power sequence, so as to control the microgrid based on the power purchase power sequence.

[0167] In a possible implementation, the second determining module 272 is further configured to:

[0168] Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity through the second fuzzy rule, obtaining the predicted photovoltaic power of the microgrid;

[0169] Calculate energy storage power based on predicted PV power and real-time load demand;

[0170] The real-time output intensity is calculated based on the energy storage power and output intensity calculation formula; the output intensity calculation is as shown in the previous formula (9):

[0171]

[0172] Where P.ref(k) represents the energy storage power at time k, P.cmax represents the maximum charging power of the energy storage system, P.dmax represents the maximum discharging power of the energy storage system, and w c and w d Represents the weight factor.

[0173] In a possible implementation, the second determining module 272 is specifically configured to:

[0174] The real-time weather information is input into a trained photovoltaic power prediction model to obtain predicted photovoltaic power; wherein the photovoltaic power prediction model is a BP neural network.

[0175] In a possible implementation, the second determining module 272 is further configured to:

[0176] Before obtaining the predicted photovoltaic power of the microgrid, an initial photovoltaic power prediction model is established; wherein the photovoltaic power prediction model is a 28-57-24 structure, the tansig function is the activation function of the hidden layer neurons, and the logsig function is the activation function of the output layer neurons;

[0177] The trainbr gradient descent method is used to train the initial photovoltaic power prediction model based on the training data set to obtain a trained photovoltaic power prediction model.

[0178] In a possible implementation, the second determining module 272 is further configured to:

[0179] Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by the second fuzzy rule, obtaining the real-time state of charge;

[0180] The real-time charge-discharge balance is calculated based on the real-time state of charge and the charge-discharge balance calculation formula; wherein the charge-discharge balance calculation formula is as shown in the above formula (15):

[0181]

[0182] Among them, Csoc (k) represents the charge state of the energy storage system at time k, C soc.ref It indicates the recommended soc value of the energy storage system, Csoc.max indicates the maximum charge value of the energy storage system, and Csoc.min indicates the minimum charge value of the energy storage system.

[0183] In a possible implementation, the first determining module 271 is further configured to:

[0184] Before determining the initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid through the first fuzzy rule, the load demand, electricity price and power purchase power sequence corresponding to multiple historical time periods are obtained;

[0185] The first fuzzy rule is determined based on the corresponding relationship between each load demand, electricity price and power purchase power sequence.

[0186] In a possible implementation, it is characterized in that the second determining module 272 is further used for:

[0187] Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by the second fuzzy rule, obtaining the charge-discharge balance, output intensity and correction amount of multiple historical time periods;

[0188] The second fuzzy rule is determined based on the corresponding relationship between each charge and discharge balance degree, output intensity and correction amount.

[0189] The embodiment of the present invention first determines the initial power purchase sequence through fuzzy rules to obtain a more accurate power purchase sequence, then determines the correction amount of the power purchase sequence through the real-time charge and discharge balance and real-time output intensity of the energy storage system, corrects the power purchase sequence, and dispatches the microgrid through the corrected power purchase sequence, so that the parameters of the energy storage system can be controlled within the required range, avoiding the energy storage system from operating in extreme conditions of full discharge or full power storage, thereby avoiding damage to the life of the energy storage system, ensuring the long-term life of the energy storage system, and realizing sustainable coordinated control of the operation of the microgrid.

[0190] Fig.28 is a schematic diagram of a terminal provided by an embodiment of the present invention. Fig.28 As shown, the terminal 28 of this embodiment includes: a processor 280, a memory 281, and a computer program 282 stored in the memory 281 and executable on the processor 280. When the processor 280 executes the computer program 282, the steps in the above-mentioned microgrid control method embodiments are implemented, for example Figure 4 Alternatively, when the processor 280 executes the computer program 282, the functions of each module in the above-mentioned device embodiments are realized, for example, Fig. 27Functions of modules 271 to 273 are shown.

[0191] Exemplarily, the computer program 282 may be divided into one or more modules, which are stored in the memory 281 and executed by the processor 280 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 282 in the terminal 28.

[0192] The terminal 28 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 28 may include, but is not limited to, a processor 280 and a memory 281. Those skilled in the art will appreciate that Fig.28 It is only an example of the terminal 28 and does not constitute a limitation on the terminal 28. The terminal 28 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0193] The processor 280 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0194] The memory 281 may be an internal storage unit of the terminal 28, such as a hard disk or memory of the terminal 28. The memory 281 may also be an external storage device of the terminal 28, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the terminal 28. Further, the memory 281 may also include both an internal storage unit of the terminal 28 and an external storage device. The memory 281 is used to store the computer program and other programs and data required by the terminal. The memory 281 may also be used to temporarily store data that has been output or is to be output.

[0195] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0196] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0197] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0198] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or 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. Another point is that 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.

[0199] The units described 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.

[0200] In addition, each functional unit in each embodiment of the present invention 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.

[0201] If the integrated module 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 present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned microgrid control method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0202] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A microgrid control method, characterized in that: The microgrid includes an energy storage system and a load device; the method includes: Determine an initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid by a first fuzzy rule; wherein the first fuzzy rule is determined based on historical load demand, historical electricity price and historical power purchase power sequence; Determine the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by a second fuzzy rule; wherein the second fuzzy rule is determined based on the historical charge-discharge balance, the historical output intensity and the historical correction amount; Correcting the initial power purchase power sequence based on the correction amount to obtain a power purchase power sequence, so as to control the microgrid based on the power purchase power sequence; Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by the second fuzzy rule, the method further includes: Obtaining predicted photovoltaic power of the microgrid; Calculating energy storage power based on the predicted photovoltaic power and the real-time load demand; The real-time output intensity is calculated based on the energy storage power and the output intensity calculation formula; the output intensity calculation formula is: Wherein, P.ref(k) represents the energy storage power at time k, P.cmax represents the maximum charging power of the energy storage system, P.dmax represents the maximum discharging power of the energy storage system, and w c and w d represents the weight factor; The obtaining of the predicted photovoltaic power of the microgrid includes: Inputting real-time weather information into a trained photovoltaic power prediction model to obtain predicted photovoltaic power; wherein the photovoltaic power prediction model is a BP neural network; Before obtaining the predicted photovoltaic power of the microgrid, the method further includes: Establishing an initial photovoltaic power prediction model; wherein the photovoltaic power prediction model is a 28-57-24 structure, the tansig function is the activation function of the hidden layer neurons, and the logsig function is the activation function of the output layer neurons; The trainbr gradient descent method is used to train the initial photovoltaic power prediction model based on the training data set to obtain a trained photovoltaic power prediction model; Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by the second fuzzy rule, the method further includes: Get real-time state of charge; The real-time charge-discharge balance is calculated based on the real-time state of charge and the charge-discharge balance calculation formula; wherein the charge-discharge balance calculation formula is: Among them, C soc (k) represents the charge state of the energy storage system at time k, C soc.ref represents the recommended soc value of the energy storage system, Csoc.max represents the maximum charge value of the energy storage system, and csoc.min represents the minimum charge value of the energy storage system.

2. The microgrid control method according to claim 1, characterized in that: Before determining the initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid by the first fuzzy rule, the method further includes: Obtain the load demand, electricity price and purchased power sequence corresponding to multiple historical periods; The first fuzzy rule is determined based on the corresponding relationship between each load demand, electricity price and power purchase power sequence.

3. The microgrid control method according to claim 1, characterized in that: Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity by the second fuzzy rule, the method further includes: Obtain the charge and discharge balance, output intensity and correction value for multiple historical periods; The second fuzzy rule is determined based on the corresponding relationship between each charge-discharge balance degree, output intensity and correction amount.

4. A control device for a microgrid, characterized in that: The microgrid includes an energy storage system and a load device; the device includes: A first determination module is used to determine an initial power purchase power sequence corresponding to the real-time load demand and the real-time electricity price of the microgrid through a first fuzzy rule; wherein the first fuzzy rule is determined based on historical load demand, historical electricity price and historical power purchase power sequence; A second determination module is used to determine a correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity through a second fuzzy rule; wherein the second fuzzy rule is determined based on the historical charge-discharge balance, the historical output intensity and the historical correction amount; A power correction module, used for correcting the initial power purchase power sequence based on the correction amount to obtain a power purchase power sequence, so as to control the microgrid based on the power purchase power sequence; The second determination module is also used for: Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity through the second fuzzy rule, obtaining the predicted photovoltaic power of the microgrid; Calculate energy storage power based on predicted PV power and real-time load demand; The real-time output intensity is calculated based on the energy storage power and output intensity calculation formula; the output intensity calculation formula is: Where P.ref(k) represents the energy storage power at time k, P.cmax represents the maximum charging power of the energy storage system, P.dmax represents the maximum discharging power of the energy storage system, and w c and w d represents the weight factor; The second determination module is specifically used for: Input the real-time weather information into the trained photovoltaic power prediction model to obtain the predicted photovoltaic power; wherein the photovoltaic power prediction model is a BP neural network; The second determination module is also used for: Before obtaining the predicted photovoltaic power of the microgrid, an initial photovoltaic power prediction model is established; wherein the photovoltaic power prediction model is a 28-57-24 structure, the tansig function is the activation function of the hidden layer neurons, and the logsig function is the activation function of the output layer neurons; The trainbr gradient descent method is used to train the initial photovoltaic power prediction model based on the training data set to obtain a trained photovoltaic power prediction model; The second determination module is also used for: Before determining the correction amount corresponding to the real-time charge-discharge balance and the real-time output intensity through the second fuzzy rule, obtaining the real-time state of charge; The real-time charge and discharge balance is calculated based on the real-time state of charge and the charge and discharge balance calculation formula; wherein the charge and discharge balance calculation formula is: Among them, C soc (k) represents the charge state of the energy storage system at time k, C soc.ref It indicates the recommended soc value of the energy storage system, Csoc.max indicates the maximum charge value of the energy storage system, and Csoc.min indicates the minimum charge value of the energy storage system.

5. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.