New energy micro-grid distribution robust optimization scheduling method based on data model dual drive

Through the dual-drive method based on the data model, photovoltaic power generation data is generated and the microgrid source load uncertainty model is constructed, which solves the scarcity and uncertainty of new power station data, and improves the reliability and economical optimization scheduling of new energy microgrids. , reducing operating costs.

CN118889564APending Publication Date: 2024-11-01ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000036.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The newly built power station faces the problems of scarcity of historical power data and low data quality in the early stages of operation, which leads to the limited application effect of distributed robust optimization scheduling methods, making it difficult to effectively deal with the source load uncertainty and load fluctuations of the new energy microgrid.

Method used

Using a dual-driven method based on data model, photovoltaic power generation data is generated through a hollow convolutional neural network, and a microgrid source charge uncertainty model is constructed to consider the current constraints. The DRO algorithm is used for optimization scheduling, and it is reconstructed into a MILP problem to solve it. Optimal scheduling solution.

Benefits of technology

It improves the reliability and economicality of the optimized scheduling results, reduces the system operation cost, enhances the accurate characterization of source load volatility and the accuracy of fuzzy sets, and solves the problems of data scarcity and uncertainty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118889564A_ABST
    Figure CN118889564A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of micro-grid optimization scheduling, and discloses a new energy micro-grid distribution robust optimization scheduling method based on data model dual drive, which comprises the steps of generating photovoltaic power generation power data based on data model dual drive; establishing a DRO model; and solving the DRO model, and outputting a day-ahead scheduling scheme. According to the method for generating the data based on the data model dual-drive learning algorithm, the problem of scarcity of newly-built power station data is solved by using historical meteorological information which is easier to obtain, and the authenticity of the data is improved, so that the reliability of an optimization algorithm result is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of microgrid optimization scheduling, and specifically relates to a new energy microgrid distributed robust optimization scheduling method based on data model dual drive. Background Art

[0002] As the cost of renewable energy generation (RES) continues to decrease, more and more new energy power stations have been put into use, providing an important solution to the energy shortage and environmental pollution problems of the power system. However, due to the diversity of loads and the high penetration rate of distributed renewable energy, the stable operation of new energy microgrids (MG) has become increasingly prominent, and the demand for flexible regulation of the system has also increased. Among them, the uncertainty on both the source and load sides and the scarcity of historical data of newly built power stations have become important challenges that restrict the performance and optimal scheduling of MG systems.

[0003] In order to effectively deal with the above challenges, the key is to obtain a large amount of real and accurate historical power data and design an efficient optimization scheduling algorithm. At present, the distributionally robust optimization (DRO) method has attracted widespread attention because it effectively balances the particularity of stochastic optimization (SO) and the conservatism of robust optimization (RO), and has great superiority in solving decision-making methods in source-load uncertainty environments. DRO captures the accurate probability distribution that may not be obtained in actual scenarios through the fuzziness of the probability distribution of random variables, finds the worst-case probability distribution in the possible distribution cluster, and optimizes it, thereby balancing economy and robustness. At the same time, establishing an accurate fuzzy set is crucial for the decision-making results of DRO. However, many optimization scheduling algorithms are highly dependent on the quality and quantity of historical data in terms of accuracy. However, new power plants often face problems such as lack of historical power data and low data quality in the early stages of operation, which greatly limits the application effect of DRO. Summary of the invention

[0004] The purpose of the present invention is to provide a new energy microgrid distributed robust optimization scheduling method based on data model dual drive, minimize the operating cost of the newly built microgrid, and improve the economy and reliability of the energy management process.

[0005] To achieve the above object, the technical solution adopted by the present invention is:

[0006] A new energy microgrid distributed blue optimization scheduling method based on dual-driven data models, the new energy microgrid distributed blue optimization scheduling method based on dual-driven data models includes:

[0007] Step 1: Generate photovoltaic power data based on the dual drive of the data model;

[0008] Step 1.1, obtain historical meteorological data and input it into the atrous convolutional neural network to obtain the predicted parameter values ​​of the PV power generation model output by the atrous convolutional neural network;

[0009] Step 1.2, inputting the predicted parameter value into the PV power generation model, and the PV power generation model calculates and outputs photovoltaic power generation data;

[0010] Step 2: Establish a DRO model;

[0011] Step 2.1, construct a microgrid operation optimization model;

[0012] Step 2.2, introducing the uncertainty of photovoltaic power generation and conventional load, constructing uncertainty fuzzy sets based on conventional load power data and photovoltaic power generation power data generated in step 1, and modeling the microgrid operation optimization model as a DRO model;

[0013] Step 3: Solve the DRO model and output the day-ahead scheduling plan;

[0014] Step 3.1, restructure the DRO model into a MILP problem;

[0015] Step 3.1.1, reconstructing the inequality constraints in the DRO model through linear decision programming and strong duality theory;

[0016] Step 3.1.2, reconstructing the equality constraints in the DRO model through strong duality theory;

[0017] Step 3.1.3, based on the reconstructed inequality constraints and equality constraints, reconstruct the objective function in the DRO model;

[0018] Step 3.2: Run the solver to solve the MILP problem and output the optimal day-ahead scheduling solution.

[0019] Compared with the prior art, the distributed robust optimization scheduling method for new energy microgrids based on data model dual drive provided by the present invention has the following beneficial effects:

[0020] (1) The method of generating data based on the data model dual-driven learning algorithm not only solves the problem of data scarcity of newly built power stations by using more easily available historical meteorological information, but also improves the authenticity of the data, thereby enhancing the reliability of the optimization algorithm results.

[0021] (2) Compared with the Wassersrein fuzzy set that only uses limited historical data, the DRO algorithm based on dual-driven data models more accurately characterizes the volatility characteristics of source loads and reduces the conservatism of optimization results through more precise fuzzy sets, thereby reducing the system operating costs.

[0022] (3) Establish a DRO solution for the MG source-load uncertainty model considering flow constraints to minimize the operating cost of the newly built microgrid and improve the economy and reliability of the energy management process. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a flow chart of the distributed robust optimization scheduling method of a new energy microgrid based on data model dual drive of the present invention;

[0024] Figure 2 It is a flow chart of the dual-drive algorithm of the data model of the present invention;

[0025] Figure 3 It is the characteristic data and prediction data of the present invention;

[0026] Figure 4 It is the operating state of the microgrid on a sunny day of the present invention;

[0027] Figure 5 It is the operating state of the microgrid in rainy days of the present invention;

[0028] Figure 6 The present invention is a microgrid operating state when the weather changes dramatically. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0031] Example 1

[0032] This embodiment studies the MG day-ahead energy management problem under the background of scarce uncertain source-load data, and proposes a DRO scheduling framework driven by both photovoltaic physical model and historical data. First, by introducing the photovoltaic mechanism model, physical constraints and prior knowledge are provided for the learning method, and the problem of data scarcity of newly built photovoltaic power stations is solved by using real meteorological data; then, a DRO solution for the MG source-load uncertainty model considering power flow constraints is established to minimize the operating cost of the newly built microgrid and improve the economy and reliability of the energy management process.

[0033] like Figure 1 As shown, a new energy microgrid distributed robust optimization scheduling method based on data model dual drive in this embodiment includes the following steps:

[0034] Step 1: Generate photovoltaic power generation data based on the data model dual drive.

[0035] Step 1.1, obtain historical meteorological data and input it into the atrous convolutional neural network to obtain the predicted parameter values ​​of the PV (Photovoltaic) power generation model output by the atrous convolutional neural network.

[0036] Among them, the PV power generation model is the photovoltaic power generation model, and the calculation formula of its photovoltaic power generation power is:

[0037]

[0038] Where P PV is the photovoltaic power, θ is the power temperature coefficient, T C , G C is the actual surface temperature of the photovoltaic panel and the light intensity under actual working conditions, which is predicted by the hole convolutional neural network. STC , G STC is the surface temperature and light intensity of the photovoltaic panel under standard conditions, P STC It is the rated power generation of photovoltaic panels under standard conditions.

[0039] like Figure 2 As shown, this embodiment uses a hole convolutional neural network (CNN) as the main body, which can use fewer parameters to obtain a wider perception range and understand the relationship between the characteristics of historical meteorological data and the PV power generation model.

[0040] This example uses real short-term meteorological data as input and short-term photovoltaic power data as labels, and performs forward propagation in a dilated convolutional neural network consisting of two CNN layers (convolutional layers) and a fully connected layer (fully connected, FC). In this process, the data is processed by the convolutional layer and the ReLU activation function to extract the feature information of the data, and then passed to the fully connected layer for feature combination and output. Subsequently, the predicted parameter value (T C , G C The value of () is input into the PV power generation model (1), and the final photovoltaic power generation data is generated under the constraints of the model. The generated photovoltaic power generation data is different from the short-term photovoltaic power generation data. The loss is calculated using the Huber loss function (2), and then the algorithm back-propagates and updates the network parameters to reduce the loss. Through multiple training iterations until the model converges, effective photovoltaic power generation data (PV data) can be generated.

[0041]

[0042] The accuracy of the PV data generation results directly affects the optimization scheduling results, so it is necessary to analyze its accuracy. Since meteorological conditions are changeable, abnormalities may occur in the generated PV data. The mean absolute deviation (MAE) measures the average absolute distance between the predicted value and the true value. MAE is more robust and insensitive to abnormal values. Therefore, the mean absolute deviation is used to measure the accuracy of PV data. The calculation formula is as follows:

[0043]

[0044] In the formula, y(i) and are the true value and the value of the generated data respectively, and N is the number of generated data.

[0045] Step 1.2: Input the predicted parameter values ​​into the PV power generation model, and the PV power generation model calculates and outputs photovoltaic power generation data.

[0046] Step 2: Establish a DRO model.

[0047] Step 2.1: Construct a microgrid operation optimization model.

[0048] Step 2.1.1. The controllability and flexibility of the micro gas turbine can quickly respond to load changes and photovoltaic fluctuation power generation characteristics. The output power limit of the micro gas turbine at time t is shown in formula (4):

[0049]

[0050] In the formula, and They respectively represent the output power and the upper and lower limits of the output power of the micro gas turbine at the i-th node at time t.

[0051] Step 2.1.2: Energy storage can not only improve the overall penetration rate of renewable energy, but also significantly increase the resilience of the microgrid and reduce its dependence on the main grid. The constraints that the energy storage unit needs to meet during the charging and discharging process are shown in equations (5) to (9):

[0052]

[0053]

[0054] In the formula, is a 0-1 variable, indicating the charge / discharge state of the nth energy storage unit at node i at time t. When the value is 1, it indicates charging, and when the value is 0, it indicates discharging; and They represent the charging / discharging power of the nth energy storage unit at node i at time t; and Respectively represent the maximum charge / discharge power; η ch and η dis Indicates the charging / discharging efficiency of the energy storage unit; SOC i,n,t represents the energy storage capacity of the nth energy storage unit at node i at time t; SOC max and SOC min They represent the maximum and minimum energy storage capacities respectively; SOC0 represents the energy storage capacity in the initial state; T is the scheduling period, which is 24h in this embodiment; Δt is the scheduling step, which is 1h in this embodiment; t' represents the time t', 1≤t'≤t.

[0055] Step 2.1.3: Demand response load constraints. The demand response loads considered in this embodiment include transferable loads and interruptible loads.

[0056] a) Transferable loads (such as washing machines, water heaters, etc.) are usually highly sensitive to electricity prices or incentives. This sensitivity enables them to flexibly adjust their power consumption within a specific period of time, thereby achieving load transfer. This is not only beneficial to the economic operation of the microgrid, but also can regulate the elasticity of user-side demand and effectively achieve the purpose of peak load shifting. The constraints satisfied by the transferable load are shown in equations (10) to (17):

[0057]

[0058] INC i,t ≥0 (12)

[0059]

[0060] DRmin ≤DR i,t ≤DR max (16)

[0061]

[0062] Where, L i,t , are the loads before and after the demand-side response of the i-th node (a node in the power system) at time t; are two auxiliary variables at the i-th node at time t, with values ​​greater than 0, satisfying equal and L i,t The difference between i,t is the demand side response coefficient of the i-th node at time t; INC i,t is the load increased by the demand response at the i-th node at time t; are the maximum and minimum proportions of load change after the demand side responds; DR max ,DR min are the maximum and minimum values ​​of the demand side response coefficient.

[0063] b) Interruptible load is a type of load that users agree to temporarily interrupt their electricity demand under certain conditions. Air conditioning is a typical interruptible load. Users can respond to changes in electricity prices according to their own needs and interrupt air conditioning at certain times. The constraints satisfied by the interruptible load are expressed as shown in equations (18) and (19):

[0064]

[0065] In the formula, R is the room thermal resistance; C is the room heat capacity; They are respectively the upper and lower limits of the indoor temperature allowed; is the air conditioning power of the i-th node at time t; A 0 / 1 variable representing the start and stop of the air conditioner at the i-th node at time t, where the value is 1 if the air conditioner is on, and 0 otherwise; are the indoor and outdoor temperatures at the i-th node at time t, is the indoor temperature of the i-th node at time t+1.

[0066] Step 2.1.4: Under the premise of ensuring a certain accuracy, this embodiment uses the linearized Distflow power flow model to analyze the microgrid line power to reduce the calculation complexity. The constraints that need to be satisfied are shown in equations (20) to (24):

[0067]

[0068] In the formula, for any node i, j, k∈Ω MG, the sets s(i) and e(i) represent the node sets with node i as the head and the end respectively; P ij,t and Q ij,t are the active power and reactive power transmitted by branch ij at time t respectively; P ki,t and Q ki,t are the active power and reactive power transmitted by branch ki at time t respectively; P i,t and Q i,t are the active power and reactive power injected into node i at time t; v i,t is the voltage on node i at time t; v j,t is the voltage on node j at time t; r ij and x ij are the resistance and reactance of branch ij respectively; and They represent the active power purchased / sold, photovoltaic power generation and conventional load of the i-th node at time t respectively; and They respectively represent the reactive power purchased by the i-th node at time t, the reactive power compensation of the SVG unit and the reactive load; Nr is the typical number of rooms, and the value of this embodiment is 6.

[0069] Step 2.1.5: To ensure the normal operation of the microgrid, the node voltage and branch transmission power must satisfy the following inequality constraints:

[0070] V i,min ≤v i,t ≤V i,max (25)

[0071]

[0072] Where V i,max and V i,min are the upper and lower limits of node voltage respectively; H l is the upper limit of the transmission capacity of branch l; the nonlinear constraint condition (26) is transformed into a linear constraint condition through the linearization method:

[0073]

[0074] Step 2.1.6: The microgrid is directly connected to the main grid and the system balance is achieved by purchasing / selling electricity from the main grid. The purchase / sale constraints are shown in equations (28) and (29):

[0075]

[0076] In the formula, and are the power purchased / sold by the microgrid from the distribution network at the i-th node at time t; It is a 0-1 variable, which indicates the state of the microgrid purchasing / selling electricity. When the value is 1, it indicates purchasing electricity, and when the value is 0, it indicates selling electricity; Indicates the upper limit of electricity purchase / sale.

[0077] Step 2.1.7: Construct the objective function of minimizing the daily operating cost of the microgrid system, including the gas turbine power generation cost, energy storage charging and discharging cost, user comfort compensation cost, and the interaction cost between the microgrid and the distribution network, as shown in formula (30). The microgrid operation constraints include formulas (4)-(29):

[0078]

[0079] in:

[0080]

[0081] In the formula, represents the power generation cost of the micro gas turbine at time t, a and b are cost coefficients; represents the average charging and discharging cost of energy storage at time t, K S is the unit charge and discharge cost, N represents the total number of energy storage units, which is set to 2 in this embodiment; K represents the compensation given for the user comfort caused by the change of microgrid power consumption plan at time t, DR is the unit scheduling compensation cost, Ω MG is the total node set, |Ω MG | is the set Ω MG length; represents the interaction cost between the microgrid and the distribution network at time t, K b and K s are the unit purchase / sale electricity costs respectively.

[0082] Step 2.2, introduce the uncertainty of photovoltaic power generation and conventional load, construct uncertainty fuzzy sets based on conventional load power data and photovoltaic power generation power data generated in step 1, and model the microgrid operation optimization model as a DRO model.

[0083] Step 2.2.1: Source-load uncertainty modeling.

[0084] This embodiment considers the uncertainty of photovoltaic power generation and conventional load, establishes a microgrid DRO model, and introduces the prediction error of photovoltaic power generation and conventional load. and Leading to uncertain issues:

[0085]

[0086] Uncertain photovoltaic power generation at the i-th node and normal load power They are further described as their corresponding expected values and random variables inequality; use represents the uncertain parameter vector at time t, Its uncertainty set is Ξ t ,Ξ t =(Ξ 1,t ;Ξ 2,t ;...;Ξ z,t ), z represents the total number of uncertainties, i.e. ξ t The dimension of z,t , and are the zth random variable at time t and its minimum and maximum values, Ξ z,t Yes z,t The uncertain set, N τ It is the sum of the number of random variables at all time points before time t.

[0087] Therefore, considering the uncertainty sequential realization, the objective function of minimizing the daily operation cost of the microgrid system considering uncertainty is modeled as a DRO model, and its compact form is expressed as follows:

[0088]

[0089] Equations (39b) and (39c) contain all equality constraints and inequality constraints, respectively, where x t represents the 0 / 1 variable of the DRO model, that is, the uncertain variable, X represents the set of all 0 / 1 variables, and Y represents the set of all decision variables. represents uncertainty fuzzy set; y t Indicates all uncertain terms The continuous decision variables that affect the uncertainty parameter vector The linear affine function of The uncertain parameter vector ξ0 = ξ at the initial moment 0,0 Set to 1, y t+1 Represents all continuous decision variables affected by uncertainties; yes The uncertain set of Represents the probability distribution of uncertainty fuzzy concentration under the worst scenario The mathematical expectation of A t ,B t ,C t ,d t ,D t ,W t and Ht are all constant coefficient matrices or vectors. The specific expressions of the above optimization variables are:

[0090]

[0091] In the formula, [] T Indicates transpose.

[0092] Step 2.2.2: Fuzzy set construction.

[0093] Considering that the distance-based Wasserstein fuzzy set not only has strong out-of-sample performance guarantee, but also does not require statistical inference, has strong anti-data disturbance performance, is symmetrical, does not contain nonlinearity, and is easy to derive the solvable form of the problem, this embodiment constructs the fuzzy set through the Wasserstein distance. Assuming that there are M historical sample data of photovoltaic power generation and conventional load (conventional load data is generated by the Mersenne rotation matrix method), the support space can be obtained respectively. So in the given support space As well as the true distribution and the empirical distribution The Wasserstein distance can be defined as:

[0094]

[0095] In the formula, for and The Wasserstein distance of A random variable, is an empirical distribution with M samples A random variable, that is is the Dirac measure, is the sample p in the support space A sample of . is the distance of the random variable. Π is the marginal distribution and The joint distribution of , then the fuzzy set Defined as:

[0096]

[0097] In the formula, It is a The Wassersrein sphere is centered and ∈ is the radius, is a set representing all possible probability distributions. The more historical data there are, the smaller ∈ is, that is, the closer the empirical distribution is to the true distribution, especially when M→∞, the empirical distribution is infinitely close to the true distribution. This shows that the radius ∈ directly determines the conservativeness of the model performance, so how to get a suitable radius ∈ is important. The radius ∈ obtained by this embodiment based on statistical methods is:

[0098]

[0099] Formula (43) represents the probability that the empirical distribution and the true distribution exceed the threshold ∈ under the Wassersrein distance metric. When the sample size M increases, this probability decreases rapidly. The decision maker gives the confidence level η of the fuzzy set, R′ is a constant that can be obtained by solving the optimization problem (44), then ∈ is:

[0100]

[0101] In the formula, is the sample mean, that is ρ is a variable.

[0102] Step 3: Solve the DRO model and output the day-ahead scheduling plan.

[0103] Step 3.1: Restructure the DRO model into a MILP problem.

[0104] The above DRO model addresses the SIP problem caused by source-load uncertainty, but the min-max-min three-stage DRO problem is still a form that cannot be directly solved. In order to solve the above problem, this embodiment reconstructs the equality constraints and inequality constraints respectively through linear decision rules and strong duality theory, and transforms the DRO problem (39) into an easy-to-handle MILP problem.

[0105] Step 3.1.1, reconstruct the inequality constraints in the DRO model through linear decision programming and strong duality theory.

[0106] In this section, a scalable linear decision rule is used to approximate the DRO problem. The linear decision rule is an affine function of all uncertain variables, which represents the coupling relationship between decision variables and uncertainties, as follows:

[0107]

[0108] Where Y t is a vector The coefficient matrix at time t is, Represents the set of time instants t, that is, the set of 1, 2, 3…T.

[0109] The reconstructed form of the DRO problem is derived from this. First, substitute equation (46) into (39c) to obtain:

[0110]

[0111] The above matrix form can be rewritten as a semi-infinite programming constraint:

[0112]

[0113] Based on the strong duality theory, the semi-infinite programming constraint is derived into a robust equivalent form:

[0114]

[0115] In the formula, is the coefficient vector of the linear decision rule corresponding to the decision variable at time t, is the dual variable, are the boundary range vector and the coefficient of the uncertainty, respectively.

[0116] Step 3.1.2: Reconstruct the equality constraints in the DRO model through strong duality theory.

[0117] The equality constraint is reconstructed using duality theory. However, duality theory introduces a large number of dual variables, which will lead to computational burden. In order to reduce the computational burden, the equality constraint (39b) is reconstructed into its equivalent form. First, substitute equation (46) into (39b) and rewrite it in matrix form as follows:

[0118]

[0119] In the formula, G t Representation and The coefficient matrix of the correlation, is the error representation of uncertain variables; A t , G t and d t The g-th row of is captured as and Then we have:

[0120]

[0121] because For any support space for Therefore, formula (51) is further decomposed into:

[0122]

[0123] In the formula, and are e and The corresponding vector, e, is is an all-one vector, for Except The remaining vectors of . It is easy to verify in (52) and Finally, the equality constraint is equivalent to:

[0124]

[0125] In the formula, G t Row 0 of G t 1st row of .

[0126] Step 3.1.3: Based on the reconstructed inequality constraints and equality constraints, reconstruct the objective function in the DRO model.

[0127] Based on the linear decision rule, the DRO model objective function Expressed as in The coefficients of all decision variables are expressed as follows. The purpose of constructing the DRO model is to find a worst-case distribution that can be obtained based on the fuzzy set, and (39a) is suppressed to a finite-dimensional convex programming by the strong duality theory. Refactored to:

[0128]

[0129] Substituting the coupling relationship of the linear decision rule into the above formula, we get:

[0130]

[0131] Formula (55) is the only constraint with random variables, which can be further transformed into the following deterministic constraint through duality theory:

[0132]

[0133] In the formula, is the dual variable;

[0134] Therefore, the DRO model is reformulated as the following MILP problem:

[0135]

[0136] In the formula, β is a variable, ∈ represents the radius of the Wassersrein ball, M represents the number of sample data used to construct the uncertainty fuzzy set, p represents the pth in M, and s pis a variable, z p represents the auxiliary vector, ξ is the true distribution A random variable, is an empirical distribution with M samples A random variable, represents the set of sample data used to construct uncertainty fuzzy sets, Represents a sample p in the support space, function

[0137] Step 3.2: Run the solver to solve the MILP problem and output the optimal day-ahead scheduling solution. In this embodiment, the GUROBI solver or other commercial solvers that can solve the MILP problem are used to solve the MILP problem.

[0138] Example 2

[0139] (1) First, this embodiment is based on 90 sets of historical photovoltaic power generation data, 60 sets of data are used as short-term data to train the algorithm, and 30 sets of data are used as verification. In addition, the collected meteorological data from 2022 to 2023 are used as the input of the void convolutional neural network to generate PV data. After filtering out some real features and highly approximate samples in the meteorological data, the entire generated data set contains a total of 292 sets of PV data. These data include 32 meteorological characteristics and 24 hours of time-sharing photovoltaic power generation data. Specifically, the PV data of these 32 meteorological characteristics include 9 sunny day characteristics, 12 rainy day characteristics and 11 drastic weather changes, such as Figure 3 The short-term data combined with the PV power generation model's model data dual-drive algorithm predicts the output curve of the photovoltaic device and the timing curve of all load nodes as shown in Figure 3 As shown in the figure, the load forecast value is a random number with a normal distribution and a mean of the expected value of historical data and a standard deviation of 0.1.

[0140] Table 1 Comparison of generated data errors

[0141] sunny Rainy Day Drastic Change Day Real data Generate data MAE 21.0038 15.56 29.21 / 21.71 cost / / / 16536.22 17700.69

[0142] As can be seen from Table 1, the MAE value of the data generated based on the variable meteorological data is within an acceptable range. In addition, the cost obtained from all generated data is higher than the cost obtained from all real data, which shows that the data generated based on meteorological data takes into account a wider range of future scenarios for the new power grid, making the optimization results more robust.

[0143] (2) Then, the present invention implements a case analysis study under the distributed robust optimization scheduling method of new energy microgrids based on dual-drive of data models, and Tables 2 and 3 provide detailed parameter settings.

[0144] Table 2: Main microgrid operating parameters

[0145]

[0146]

[0147] Table 3: Microgrid Tiered Electricity Prices

[0148] Time / h <![CDATA[K s (¥ / kW·h)]]> <![CDATA[K b (¥ / kW·h)]]> 01:00-07:00 0.334 05 0.434 05 08:00-11:00 0.684 05 0.784 05 12:00-15:00 0.534 05 0.634 05 16:00-18:00 0.684 05 0.784 05 19:00-22:00 0.784 05 0.884 05 23:00-24:00 0.334 05 0.434 05

[0149] In order to illustrate the energy management process of the proposed framework, the present invention divides the microgrid operation scenarios into three categories for analysis according to the real meteorological characteristics, namely, sunny days, cloudy and rainy days, and drastic weather changes. At the same time, in order to verify the superiority of the DRO algorithm considering the uncertainty of source and load in the present invention, the SO, RO and DRO algorithms are compared and analyzed under the above three meteorological characteristics. The results of the microgrid optimization scheduling cost obtained by different algorithms are shown in Table 4.

[0150] Table 4 Comparison of operating costs under three different algorithms

[0151]

[0152]

[0153] From the optimization results in Table 4, it can be seen that compared with the SO algorithm, the DRO algorithm has a higher scheduling cost, but the solution time is lower than that of the SO algorithm. At the same time, the results obtained by the DRO algorithm have higher robustness. In addition, compared with the traditional RO algorithm, the DRO algorithm reduces the conservatism of the solution and achieves a lower scheduling cost, especially in the face of drastic weather changes. Compared with the RO algorithm, the cost of the DRO algorithm is nearly reduced by 20%. Under the three meteorological characteristics, due to insufficient sunlight on rainy days, the daily average photovoltaic power generation power is only 1 / 2 or less of that on sunny days. Therefore, more electricity needs to be obtained from the main grid and gas turbines to maintain system balance. Therefore, the cost of power generation on rainy days is also higher.

[0154] (3) Finally, the optimization results of the three feature data under the DRO algorithm are analyzed

[0155] Figures 4 to 6 The influence of DRO algorithm on the operation decision of microgrid under different meteorological conditions is demonstrated. Figures 4 to 6 They are the power purchased and sold by the microgrid to the distribution network (power purchase is positive, power sales is negative), the charging and discharging power of energy storage (charging is positive, power sales is negative), and the output power of the micro gas turbine under three meteorological conditions: sunny day, rainy day, and drastic change day; Figure 4 (b)~ Figure 6(b) The power consumption plan before and after demand response, air conditioning power consumption, and average indoor temperature under three meteorological conditions. Under the three meteorological conditions, the photovoltaic output power is 0 for 1-6h and 21-24h. At this time, the microgrid cannot obtain electricity from the photovoltaic equipment and must rely on micro gas turbines, energy storage, and distribution networks to meet the power demand.

[0156] Figure 4 (a) shows the ability of two types of demand response loads to reduce peak loads and fill valleys on sunny days. The load can be transferred to reduce operation during peak power consumption hours, and the power demand of 8-11h and 16-22h is allocated to the low-peak power consumption hours of 1-7h, 12-17h and 23-24h, thereby improving the ability of the microgrid to cope with load peaks and potential power shortages. On rainy days, the power demand is transferred from 8-11h and 16-22h to 1-7h and 23-24h. Figure 5 (a) When the weather changes dramatically, the electricity demand shifts from 8-9h and 15-22h to 1-7h, 12-14h and 23-24h, as shown in Figure 5 As shown in (a), air conditioning is a typical interruptible load. Under the condition that human comfort is met and the room temperature is kept between the set value of 20 and 28 degrees Celsius, the operating cost can be reduced by increasing the number of interruptions during the entire operation cycle of the three characteristic weather conditions, as shown in the figure below. Figure 4 (a)~ Figure 6 As shown in (a), it can be seen that there is great potential in flexibly adjusting the dispatch plan of microgrids by responding to demand loads.

[0157] On sunny days, when the upstream grid tiered electricity price is lower than the unit power generation cost of the micro gas turbine, the micro gas turbine operates at low power during 1-7h and 23-24h, such as Figure 4 (a) shows; in the rest of the time, the micro gas turbine runs at a higher power, and sells electricity to the upstream power grid or reduces the purchase of electricity according to the power supply and demand, thereby effectively reducing the operating cost. In order to cope with the sudden change of weather, the microgrid only sells electricity during 15-17 hours, and the power generation of the micro gas turbine is similar to that on sunny days, such as Figure 6 (a). However, due to the lack of sufficient photovoltaic power support on rainy days, the microgrid still needs to purchase electricity from the grid for 13 to 17 hours, and there is no excess electricity to sell to the grid. Figure 5 (a) shown.

[0158] from Figure 4(b) It can be seen that on sunny days, under the time-of-use electricity price mechanism, the energy storage is charged at night when the electricity price is low, and discharged during the peak electricity consumption period, which can respond to the electricity price in a timely manner and achieve peak load shifting. On rainy days and drastically changing weather, the energy storage is not only charged at night when the electricity price is low, but also charged during the daytime non-peak electricity consumption period. At the same time, the system reduces the high-cost upstream power grid purchase to cope with the situation of insufficient photovoltaic power generation or peak electricity consumption in the next period of time. The specific operation is as follows Figure 5 (b) and Figure 6 (b) as shown.

[0159] It can be seen from the above experimental results that the DRO method based on data model dual drive proposed in the present invention can effectively solve the problems of data scarcity and uncertainty, improve the authenticity and robustness of the optimization results, and reduce the system operation cost.

[0160] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

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

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

Claims

1. A distributed robust optimization scheduling method for new energy microgrids based on dual-drive of data models, characterized in that: The data model dual-driven distributed robust optimization scheduling method for new energy microgrids includes: Step 1: Generate photovoltaic power data based on the data model dual drive; Step 1.1, obtain historical meteorological data and input it into the atrous convolutional neural network to obtain the predicted parameter values ​​of the PV power generation model output by the atrous convolutional neural network; Step 1.2, inputting the predicted parameter value into the PV power generation model, and the PV power generation model calculates and outputs photovoltaic power generation data; Step 2: Establish a DRO model; Step 2.1, construct a microgrid operation optimization model; Step 2.2, introducing the uncertainty of photovoltaic power generation and conventional load, constructing uncertainty fuzzy sets based on conventional load power data and photovoltaic power generation power data generated in step 1, and modeling the microgrid operation optimization model as a DRO model; Step 3: Solve the DRO model and output the day-ahead scheduling plan; Step 3.1, restructure the DRO model into a MILP problem; Step 3.1.1, reconstructing the inequality constraints in the DRO model through linear decision programming and strong duality theory; Step 3.1.2, reconstructing the equality constraints in the DRO model through strong duality theory; Step 3.1.3, based on the reconstructed inequality constraints and equality constraints, reconstruct the objective function in the DRO model; Step 3.2: Run the solver to solve the MILP problem and output the optimal day-ahead scheduling solution.

2. The method for optimizing and dispatching new energy microgrids based on dual-drive of data models according to claim 1 is characterized in that: The PV power generation model is as follows: Where P PV is the photovoltaic power, θ is the power temperature coefficient, T C , G C is the actual surface temperature of the photovoltaic panel and the light intensity under actual working conditions, which is predicted by the hole convolutional neural network. STC , G STC is the surface temperature and light intensity of the photovoltaic panel under standard conditions, P STC It is the rated power generation of photovoltaic panels under standard conditions.

3. The method for optimizing and dispatching new energy microgrids based on dual-drive of data models according to claim 2 is characterized in that: The construction of the microgrid operation optimization model includes: Step 2.1.1, the output power limit of the micro gas turbine at time t is shown in formula (4): In the formula, and They represent the output power and the upper and lower limits of the output power of the micro gas turbine at the i-th node at time t respectively; Step 2.1.2: The constraints that the energy storage unit needs to meet during the charging and discharging process are shown in equations (5) to (9): SOC min ≤SOC i,n,t ≤SOC max (9) In the formula, is a 0-1 variable, indicating the charge / discharge state of the nth energy storage unit at node i at time t. When the value is 1, it indicates charging, and when the value is 0, it indicates discharging; and They represent the charging / discharging power of the nth energy storage unit at node i at time t; and Respectively represent the maximum charge / discharge power; η ch and η dis Indicates the charging / discharging efficiency of the energy storage unit; SOC i,n,t represents the energy storage capacity of the nth energy storage unit at node i at time t; SOC max and SOC min Represent the maximum and minimum energy storage capacity respectively; SOC0 represents the energy storage capacity in the initial state; T is the scheduling period; Δt is the scheduling step; t' represents the time t', 1≤t'≤t; Step 2.1.3: Demand response load constraints. Demand response loads include transferable loads and interruptible loads: a) The constraints satisfied by the transferable load are shown in equations (10) to (17): INC i,t ≥0 (12) DR min ≤DR i,t ≤DR max (16) Where, L i,t , are the loads before and after the demand side response at the i-th node at time t; are two auxiliary variables at the i-th node at time t; DR i,t is the demand side response coefficient of the i-th node at time t; INC i,t is the load increased by the demand response at the i-th node at time t; are the maximum and minimum proportions of load change after the demand side responds; DR max ,DR min is the maximum and minimum value of the demand side response coefficient; b) The constraints satisfied by the interruptible load are expressed as shown in equations (18) and (19): In the formula, R is the room thermal resistance; C is the room heat capacity; They are respectively the upper and lower limits of the indoor temperature allowed; is the air conditioning power of the i-th node at time t; A 0 / 1 variable representing the start and stop of the air conditioner at the i-th node at time t, where the value is 1 if the air conditioner is on, and 0 otherwise; are the indoor and outdoor temperatures at the i-th node at time t, is the indoor temperature of the i-th node at time t+1; Step 2.1.4: Use the linearized Distflow power flow model to analyze the microgrid line power. The constraints satisfied are shown in Equations (20) to (24): v i,t =v j,t +r ij P ij,t +x ij Q ij,t (22) In the formula, the sets s(i) and e(i) represent the node sets with node i as the head and the end respectively; P ij,t and Q ij,t are the active power and reactive power transmitted by branch ij at time t respectively; P ki,t and Q ki,t are the active power and reactive power transmitted by branch ki at time t respectively; P i,t and Q i,t are the active power and reactive power injected into node i at time t; v i,t is the voltage on node i at time t; v j,t is the voltage on node j at time t; r ij and x ij are the resistance and reactance of branch ij respectively; and They represent the active power purchased / sold, photovoltaic power generation and conventional load of the i-th node at time t respectively; and They represent the reactive power purchased by the i-th node at time t, reactive power compensation of the SVG unit and reactive load respectively; Nr is the number of typical rooms; Step 2.1.5: The node voltage and branch transmission power satisfy the following inequality constraints: In i,min ≤in i,t ≤V i,max (25) Where V i,max and V i,min are the upper and lower limits of node voltage respectively; H l is the upper limit of the transmission capacity of branch l; the nonlinear constraint condition (26) is transformed into a linear constraint condition through the linearization method: Step 2.1.6: The microgrid is directly connected to the main grid and the system balance is achieved by purchasing / selling electricity from the main grid. The purchase / sale constraints are shown in equations (28) and (29): In the formula, and are the power purchased / sold by the microgrid from the distribution network at the i-th node at time t; It is a 0-1 variable, which indicates the state of the microgrid purchasing / selling electricity. When the value is 1, it indicates purchasing electricity, and when the value is 0, it indicates selling electricity; Indicates the upper limit of electricity purchase / sale; Step 2.1.7: Construct the objective function of minimizing the daily operating cost of the microgrid system, including the gas turbine power generation cost, energy storage charging and discharging cost, user comfort compensation cost, and the interaction cost between the microgrid and the distribution network, as shown in formula (30). The microgrid operation constraints include formulas (4)-(29): st type (4)-(29) in: In the formula, represents the power generation cost of the micro gas turbine at time t, a and b are cost coefficients; represents the average charging and discharging cost of energy storage at time t, K S is the unit charging and discharging cost, N represents the total number of energy storage units; K represents the compensation given for the user's comfort level affected by the change in the microgrid power consumption plan at time t, DR is the unit scheduling compensation cost, Ω MG is the total node set, |Ω MG | is the set Ω MG length; represents the interaction cost between the microgrid and the distribution network at time t, K b and K s are the unit purchase / sale electricity costs respectively.

4. The method for optimizing and dispatching new energy microgrids based on dual-drive of data models according to claim 3 is characterized in that: Modeling the microgrid operation optimization model as a DRO model includes: Introducing the uncertainty of photovoltaic power generation and conventional load, the microgrid DRO model is established. By introducing the prediction error of photovoltaic power generation and conventional load and Leading to uncertain issues: Uncertain photovoltaic power generation at the i-th node and normal load power They are further described as their corresponding expected values and random variables inequality; use represents the uncertain parameter vector at time t, Its uncertainty set is Ξ t , z represents the total number of uncertainties, i.e. ξ t The dimension of z,t , and are the zth random variable at time t and its minimum and maximum values, Ξ z,t Yes z,t The uncertain set, N τ is the sum of the number of random variables at all time points before time t, represents the set of time instants t; Therefore, considering the uncertainty sequential realization, the objective function of minimizing the daily operation cost of the microgrid system considering uncertainty is modeled as a DRO model, and its compact form is expressed as follows: Equations (39b) and (39c) contain all equality constraints and inequality constraints, respectively, where x t represents the 0 / 1 variable of the DRO model, that is, the uncertain variable, X represents the set of all 0 / 1 variables, and Y represents the set of all decision variables. represents uncertainty fuzzy set; y t Indicates all uncertain terms The continuous decision variables that affect the uncertainty parameter vector The linear affine function of The uncertain parameter vector ξ0 = ξ at the initial moment 0,0 Set to 1, y t+1 Represents all continuous decision variables affected by uncertainties; yes The uncertain set of Represents the probability distribution of uncertainty fuzzy concentration under the worst scenario The mathematical expectation of A t ,B t ,C t ,d t ,D t ,W t and H t are all constant coefficient matrices or vectors. The specific expressions of the above optimization variables are: In the formula, [] T Indicates transpose.

5. The method for optimizing and dispatching new energy microgrids based on dual-drive of data models according to claim 4 is characterized in that: The inequality constraints in the DRO model are reconstructed by linear decision programming and strong duality theory, including: The linear decision rule is an affine function of all uncertain variables, which represents the coupling relationship between decision variables and uncertainties, as follows: Where Y t is a vector The coefficient matrix at time t; Substituting the coupling relationship into the inequality constraint in the DRO model, we get: The above matrix form can be rewritten as a semi-infinite programming constraint: Based on the strong duality theory, the semi-infinite programming constraint is derived into a robust equivalent form: In the formula, is the coefficient vector of the linear decision rule corresponding to the decision variable at time t, is the dual variable, are the boundary range vector and the coefficient of the uncertainty, respectively.

6. The method for optimizing and dispatching new energy microgrids based on dual-drive of data models according to claim 1 is characterized in that: The reconstructing the equality constraints in the DRO model by using the strong duality theory includes: Substituting the coupling relationship into the equality constraint in the DRO model, the matrix form is rewritten as: In the formula, G t Representation and The coefficient matrix of the correlation, is the error representation of uncertain variables; A t , G t and d t The g-th row of is captured as and Then we have: And further decomposed into: In the formula, and are e and The corresponding vector, e, is is an all-one vector, for Except The remaining vectors of , finally, the equality constraint is equivalent to: In the formula, G t Row 0 of G t 1st row of .

7. The method for optimizing and dispatching new energy microgrids based on dual-drive of data models according to claim 1 is characterized in that: The objective function in the DRO model is reconstructed based on the reconstructed inequality constraints and equality constraints, including: Based on the linear decision rule, the DRO model objective function Expressed as in Denote the coefficients of all decision variables, and then according to the strong duality theory, Refactored to: Substituting the coupling relationship of the linear decision rule into the above formula, we get: Further through the duality theory, it is transformed into the following deterministic constraints: In the formula, is the dual variable; Therefore, the DRO model is reformulated as the following MILP problem: In the formula, β is a variable, ∈ represents the radius of the Wassersrein ball, M represents the number of sample data used to construct the uncertainty fuzzy set, p represents the pth in M, and s p is a variable, z p represents the auxiliary variable, ξ is the true distribution A random variable, is an empirical distribution with M samples A random variable, represents the set of sample data used to construct uncertainty fuzzy sets, Represents a sample p in the support space, function