Micro-grid optimal scheduling method based on adaptive random model predictive control

Through adaptive stochastic model predictive control and Wasserstein distance hierarchical clustering, the microgrid period is adaptively divided, which solves the problem of insufficient uncertainty and correlation processing in the microgrid optimal dispatch in the existing technology, and achieves more accurate and economical The scheduling plan improves the flexibility and economy of the system.

CN118589482APending Publication Date: 2024-09-03HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410628077.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing microgrid optimization dispatch methods have a single one-sided and sub-optimal time period division when dealing with the uncertainty and correlation of renewable energy output and load demand, resulting in large deviations in dispatch results and the inability to fully utilize the economy and flexibility of the system. .

Method used

A microgrid double-layer rolling optimization model based on adaptive stochastic model predictive control is used, combined with the Wasserstein distance hierarchical clustering method, to capture the dynamic changes in source and load power scenario distribution, adaptively divide the optimal period, and form a more realistic Scheduling plan.

Benefits of technology

By generating source and load power scenarios with correlation and randomness, it provides more reliable input scenarios, reduces dispatch deviations, improves the economy and flexibility of the system, and achieves more accurate microgrid optimization dispatch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589482A
    Figure CN118589482A
Patent Text Reader

Abstract

The invention discloses a micro-grid optimal scheduling method based on adaptive random model predictive control, which comprises the following steps: firstly, constructing a micro-grid double-layer rolling optimization model based on adaptive random model predictive control, including an upper-layer pre-scheduling model and a lower-layer real-time power compensation model; then, determining the number and length of optimal time periods based on an optimal time period division method of Wasserstein distance hierarchical clustering, and taking each optimal time period length as a rolling step length of an upper layer pre-scheduling stage in each rolling optimization process; obtaining a prediction domain of an upper layer pre-scheduling stage and a prediction domain of a lower layer real-time power compensation stage in each rolling optimization process; and finally, considering constraints of the upper-layer pre-scheduling model and the lower-layer real-time power compensation model, solving the micro-grid double-layer rolling optimization model based on adaptive random model prediction control, obtaining a reference scheduling plan according to the upper-layer pre-scheduling model, and compensating mismatched power according to source and load real-time power by the lower-layer real-time power compensation model. And correcting the reference scheduling plan. According to the method, the uncertainty and correlation of source and load output are fully considered, and the economy and flexibility of micro-grid dispatching are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of microgrid optimization scheduling, and in particular relates to a microgrid optimization scheduling method based on adaptive stochastic model predictive control. Background Art

[0002] Microgrids are small regional autonomous systems that integrate distributed renewable energy, energy storage devices, and loads. They are one of the effective ways for power systems to absorb and utilize renewable energy. Since renewable energy output and load demand are easily affected by factors such as weather conditions, geographical location, and human activities, there is a lot of uncertainty and coupling, which seriously affects the safe, stable, and efficient operation of microgrid systems. Therefore, the optimal scheduling of microgrids has always been a research hotspot.

[0003] Although the online optimization scheduling method of microgrid based on classic MPC has enhanced the robustness of the system to a certain extent, it still belongs to deterministic optimization scheduling, that is, when formulating the scheduling plan, it is ideally assumed that the predicted value is accurate and the scheduling problem is constructed as a deterministic simplified model. Since the randomness and correlation of the source and load output are not considered in the modeling process, the obtained scheduling decision will be single and one-sided. In addition, most of the current microgrid optimization scheduling methods use fixed interval time lengths such as 15min, 30min, and 60min. However, the net load curves of new energy power generation systems such as microgrids are mostly "duck curves", especially for new energy power generation systems dominated by photovoltaic power generation equipment. The difference between the peak load after sunrise or sunset and the power generation of renewable energy is more and more obvious, resulting in a sharp change in the net load in a short period of time, which is quite different from the actual scheduling results in the same fixed period. In contrast, the net load changes smoothly between other fixed periods, which is almost consistent with the actual scheduling results.

[0004] In view of the above problems, although the existing methods make targeted adjustments to the time step according to actual needs, they are all based on the deterministic scheduling period division method or subjective division method based on the source and load output forecast values. The impact of the uncertainty of the source and load output is ignored during the division process, which may lead to suboptimal or counterproductive period division results. Under uncertain conditions, adaptive period division based on the time series characteristics of the source and load output can fully improve the economy and flexibility of the system. Summary of the invention

[0005] In view of the shortcomings of the prior art, the technical problem to be solved by the present invention is to provide a microgrid optimization scheduling method based on adaptive random model predictive control. The method fully considers the uncertainty and correlation of source and load output, and uses the optimal time period division method based on Wasserstein distance hierarchical clustering to capture the dynamic changes of source and load power scene distribution. Finally, a microgrid double-layer rolling optimization model based on adaptive random model predictive control is used to capture the uncertainty of source and load output on different time scales, and formulate a scheduling plan for the optimized operation of the microgrid.

[0006] The present invention solves the technical problem by adopting the following technical solution:

[0007] A microgrid optimization scheduling method based on adaptive stochastic model predictive control, characterized in that the method includes the following contents:

[0008] First, a two-layer rolling optimization model of a microgrid based on adaptive stochastic model predictive control is constructed, which includes an upper-layer pre-dispatch model and a lower-layer real-time power compensation model;

[0009] Among them, the objective function of the upper-level pre-scheduling model is:

[0010]

[0011] In the formula, C u (T u ) is the microgrid in the prediction domain T u Total operating costs within t u The battery degradation cost during the period, C Grid (t u ) is t u The interaction cost between the microgrid and the public grid during the period, and They are the planned charging and discharging power of the battery in the upper pre-dispatch stage and the planned power purchase and sale power of the public grid. Represents the prediction domain T u The current period of Indicates the last period of the day;

[0012] The objective function of the lower-level real-time power compensation model is:

[0013]

[0014] In the formula, C l (T l ) is the microgrid in the prediction domain T l The power adjustment cost within σ B , σ Gridare the power adjustment penalty coefficients of the battery and the public grid, ΔP B (t l ), ΔP Grid (t l ) are t l Adjustment power of time-slot batteries and public power grid, t l The degradation cost of supercapacitors during the period, P B , P Grid1 , P BC They are the planned adjustment power of the battery, public grid and supercapacitor in the lower-level real-time power compensation phase, is the prediction domain T l The current period of

[0015] 2. Determine the rolling step size and prediction domain of the upper pre-scheduling stage and the prediction domain of the lower real-time power compensation stage in the rolling optimization process;

[0016] Generate source and load power scenario distribution according to the predicted values ​​and prediction error distribution of source and load power in each time period; calculate the multi-dimensional source and load power scenario distribution similarity wd(t) between adjacent time periods according to formula (16), and obtain the power scenario distribution similarity matrix between time periods;

[0017]

[0018] WD={wd(1),wd(2),…,wd(m1-1)} (17)

[0019] Where Dim is the total dimension of the source and load power scenario distribution, Power scenario distribution and The Wasserstein distance between and are the d-th dimension power scenario distributions in time periods t and t+1, respectively, m1 is the total number of time periods in the clustering process, and WD is the power scenario distribution similarity matrix between time periods;

[0020] The power scenario distribution is clustered cyclically. In each clustering process, the power scenario sets with the closest distribution in adjacent time periods are merged according to the power scenario distribution similarity matrix between time periods to obtain the original correlation power scenario set. At the same time, a new correlation power scenario set is generated according to the predicted values ​​of source and load power in the merged time period and the prediction error distribution. The power scenario distribution loss of the original correlation power scenario set and the new correlation power scenario set is calculated, so as to obtain the power scenario distribution loss curve in the entire clustering process.

[0021] According to the power scenario distribution loss curve, the inflection point method is used to determine the number of optimal time periods in a day, and the length of each optimal time period is obtained at the same time; the length of each optimal time period is used as the rolling step length of the upper pre-scheduling stage in each rolling optimization process, and then the prediction domain of the upper pre-scheduling stage and the prediction domain of the lower real-time power compensation stage in each rolling optimization process are obtained;

[0022] 3. Considering the constraints of the upper-level pre-dispatch model and the lower-level real-time power compensation model, the two-layer rolling optimization model of the microgrid based on adaptive stochastic model predictive control is solved, and the reference dispatch plan including the battery charging and discharging power and the microgrid power purchase and sale power for each optimal period is obtained according to the upper-level pre-dispatch model; the lower-level real-time power compensation model compensates for the mismatch power of the battery and the microgrid through the charging and discharging of the supercapacitor according to the real-time power of the source and load, corrects the reference dispatch plan, and returns the corrected reference dispatch plan to the upper-level pre-dispatch model to complete the dispatch in this cycle.

[0023] Furthermore, power scenario distribution and The Wasserstein distance between them is:

[0024]

[0025] In the formula, S t The power scenario distribution The generated power scenario set, S' t+1 The power scenario distribution The generated power scenario sets, s and s′ are respectively t and S' t+1 Power scenario in, p s 、p s’ are the probabilities corresponding to power scenarios s and s′ respectively; π s,s’ and c(s, s') are the joint probability density and Euclidean distance under power scenarios s and s', respectively. s , Pr s’ are the discrete probabilities of power scenarios s and s′ respectively.

[0026] Furthermore, the power scenario distribution loss of the k-th cluster is expressed as:

[0027]

[0028] The power scenario distribution loss in the entire clustering process is expressed as:

[0029]

[0030] In the formula, is the adjacent time period t with the closest distribution in the k-th cluster i With t j The power scenario distribution corresponding to the power scenario set of the d-th dimension original correlation between them is, For adjacent time periods t i With t j The power scenario distribution corresponding to the d-th dimension new correlation power scenario set, f(mK) is the overall power scenario distribution loss, m is the number of initial unit time periods, and K is the number of clustering times.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] (1) The input scenario is closer to the actual output. By generating source and load power scenarios with correlation and randomness, the generated scenarios are more in line with the actual output, providing a more reliable input scenario for the microgrid optimization scheduling model.

[0033] (2) The optimal time period division method based on Wasserstein distance hierarchical clustering can fully capture the dynamic changes of source and load power scenario distribution. The proposed time period clustering method does not rely on the initial value. It combines the power scenario distributions of adjacent time periods with the closest distribution by measuring the similarity of power scenario distributions between time periods. The loss of the original correlation power scenario distribution and the new correlation power scenario distribution in the clustering process is used as the basis for selecting the optimal time period scale. The optimal number of time periods and the length of each optimal time period are determined, thereby guiding the double-layer rolling optimization model to formulate a scheduling plan.

[0034] (3) In view of the fact that deterministic optimization scheduling cannot handle the randomness and correlation of source and load output, the present invention proposes a two-layer rolling optimization scheduling framework based on SMPC. The upper pre-scheduling stage adopts a large time scale. On the basis of MPC, combined with the idea of ​​stochastic programming, it not only retains the foresight of MPC, but also fully considers the randomness and spatial correlation of source and load output, so as to minimize the economic operation cost and formulate a reference scheduling plan online; the lower power compensation stage adopts a small time scale, and compensates for the scenario error according to the real-time power of the source and load to minimize the deviation between the actual result and the reference scheduling. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a microgrid structure diagram of the present invention;

[0036] Figure 2 It is a schematic diagram of the double-layer energy interaction of the microgrid of the present invention;

[0037] Figure 3 It is the overall framework of the adaptive stochastic model predictive control based on the present invention;

[0038] Figure 4It is a microgrid net load time sequence scenario distribution diagram of the present invention;

[0039] Figure 5 is the power scenario distribution loss curve of the present invention;

[0040] Figure 6 It is the optimal time period division result of the present invention;

[0041] Figure 7 It is the microgrid optimization dispatch result of the present invention. DETAILED DESCRIPTION

[0042] Specific embodiments are given below in conjunction with the accompanying drawings. The specific embodiments are only used to introduce the technical solutions of the present invention in detail and are not intended to limit the protection scope of the present application.

[0043] The present invention provides a microgrid optimization scheduling method based on adaptive stochastic model predictive control (hereinafter referred to as method, see Figures 1 to 7 ),like Figure 1 As shown, the microgrid consists of a renewable energy generation system, a hybrid energy storage system and an energy management system. The renewable energy generation system consists of a photovoltaic power station and a wind farm. The hybrid energy storage system is implemented based on batteries and supercapacitors. The microgrid is connected to the public grid through a common coupling point. The method includes the following steps:

[0044] Step 1: Construct a two-layer rolling optimization model of the microgrid based on adaptive stochastic model predictive control (ASMPC), which includes an upper-layer pre-dispatch model and a lower-layer real-time power compensation model;

[0045] The present invention places the entire system scheduling in the same rolling optimization framework by embedding a small time scale within a large time scale, and is mainly divided into two stages: upper layer pre-scheduling and lower layer real-time power compensation.

[0046] Step 1.1: Upper layer pre-scheduling model;

[0047] In the upper pre-scheduling stage, the reference scheduling plan is obtained according to the source and load power updated during the day, and the reference scheduling plan is continuously updated through rolling optimization with a rolling step of Δt. u The goal of the upper pre-dispatch stage is to minimize the microgrid in the prediction domain T u Total operating cost within the prediction domain T u Include current period To the last hour of the day n is the number of time periods in a day, and the objective function of the upper-level pre-scheduling model is:

[0048]

[0049] In the formula, C u (T u ) is the microgrid in the prediction domain T u Total operating costs within t u The battery degradation cost during the period, C Grid (t u ) is t u The interaction cost between the microgrid and the public grid during the period, and They are the planned charging and discharging power of the battery in the upper pre-dispatching stage and the planned power purchase and sale of electricity by the public grid.

[0050] t u Battery degradation cost by time period The calculation formula is as follows:

[0051]

[0052] In the formula, C B is the battery replacement cost, P B (t u ) is t u The charging and discharging power of the battery during the period, d B (Δt u ) is the rolling step length Δt of the battery in the upper pre-scheduling stage u The charge and discharge depth within, L B (d B (Δt u )) indicates that the battery charge and discharge depth is d B (Δt u ) when the life cycle number, E BA (t u ) is t u Actual battery capacity during the period, η Bc , η Bd It is the charging and discharging efficiency of the battery.

[0053] t u The interaction cost C between the microgrid and the public grid during the period Grid (t u ) is calculated as follows:

[0054]

[0055] In the formula, c b (t u ) and c s (t u ) is t u The electricity purchase and sales price during the period, P Grid (tu ) is t u The power purchased and sold by the microgrid during the period.

[0056] The upper-level pre-dispatch model needs to meet the microgrid power balance constraints, the interaction power constraints between the microgrid and the public grid, the battery charging and discharging power constraints, and the state of charge constraints;

[0057] 1) Since wind turbine output and photovoltaic output are both random variables, the power balance constraint of the microgrid is regarded as a chance constraint, and then:

[0058]

[0059] In the formula, Pr{·} represents the probability of the event being true, t u The power generation of the pth wind farm in the time period, t u The power generation of the qth photovoltaic power station in the time period, P and Q are the number of wind farms and photovoltaic power stations respectively, P LD (t u ) is t u is the load power of the time period, and θ is the chance constraint confidence level.

[0060] 2) Interaction power constraints between microgrid and public grid:

[0061] P Grid,min ≤P Grid (t u )≤P Grid,max (5)

[0062] Where P Grid,max , P Grid,min are the upper and lower limits of the interaction power.

[0063] 3) Battery charging and discharging power and charge state constraints:

[0064]

[0065]

[0066]

[0067] In the formula, is the maximum charge and discharge power of the battery, E B (t u ) is t u The energy of the battery during the period, E is the upper and lower limits of the battery state of charge. B (t u -1) is t i-1 period of battery energy.

[0068] Step 1.2: Lower layer real-time power compensation model;

[0069] In the lower layer real-time power compensation stage, the reference scheduling plan is corrected according to the real-time power of the source and load, and the rolling step is Δt l The goal of the lower real-time power compensation stage is to minimize the microgrid in the prediction domain T l The power adjustment cost within the prediction domain T l Include current period To the last hour of the day And T l =Δt u , then the objective function of the lower-level real-time power compensation model is:

[0070]

[0071] In the formula, C l (T l ) is the microgrid in the prediction domain t l The power adjustment cost within σ B , σ Grid are the power adjustment penalty coefficients of the battery and the public grid, ΔP B (t l ), ΔP Grid (t l ) are t l Adjustment power of time-slot batteries and public power grid, t l The degradation cost of supercapacitors during the period, P B , P Grid , P BC They are the planned adjustment powers of batteries, public grid and supercapacitors in the lower-level real-time power compensation stage respectively.

[0072] t l Supercapacitor degradation cost over time The calculation formula is as follows:

[0073]

[0074] In the formula, C SC is the replacement cost of supercapacitor, L SC is the number of supercapacitor life cycles, Δt l It is the rolling step size of real-time power compensation.

[0075] In addition to satisfying the constraints of equations (5)-(8), the lower-level real-time power compensation model also needs to satisfy the microgrid power balance constraints and the supercapacitor charging and discharging power and charge state constraints.

[0076] 1) Microgrid power balance constraints:

[0077] P LD (t l )=P Grid (t l )+P W (t l )+P PV (t l )-P B (t l )-P SC (t l ) (11)

[0078] Where P LD (t l ) is t l Load power of the time period, P Grid (t l ) is t l The power purchased and sold by the microgrid during the period, P W (t l ), P PV (t l ) are t l Wind power generation and photovoltaic power generation during the period, P B (t l ), P SC (t l ) are t l The charging and discharging power of batteries and supercapacitors during the period.

[0079] 2) Supercapacitor charging and discharging power and charge state constraints:

[0080]

[0081]

[0082]

[0083] In the formula, is the maximum charge and discharge power of the supercapacitor, is the upper and lower limits of the supercapacitor’s state of charge, E SC (t l ) is t l The energy of the supercapacitor during this period, E SC,rate (t l ) is t l Rated capacity of supercapacitor during time period, η SC , η SCd is the supercapacitor charging and discharging efficiency, E SC (t l-1) is t l -1 period of supercapacitor energy.

[0084] Step 2: Determine the number of optimal time periods and the length of each optimal time period based on the optimal time period division method of Wasserstein distance hierarchical clustering; use the optimal time period length as the rolling step size of the upper pre-scheduling stage, and then determine the prediction domain of the upper pre-scheduling stage and the prediction domain of the lower real-time power compensation stage in each rolling optimization process;

[0085] In the microgrid optimal scheduling based on the classical model predictive control (MPC), the prediction domain T of the upper pre-scheduling stage is u , the prediction domain T of the lower layer real-time power compensation stage l , the rolling step length Δt of the upper layer pre-scheduling stage u These three quantities are fixed values ​​given by humans subjectively. However, the net load curves of new energy power generation systems such as microgrids are mostly "duck curves". Especially for new energy power generation systems based on photovoltaic power generation equipment, the difference between peak load and renewable energy power generation after sunrise or sunset becomes more and more obvious, resulting in a sharp change in net load power in a short period of time, and a large deviation in the actual scheduling results within the same fixed time period. In contrast, the net load power changes smoothly between other fixed time periods, which is almost consistent with the actual scheduling results. For this reason, unlike the classic MPC, the present invention takes into account the randomness and correlation of source and load power, and changes the rolling step size Δt of the lower-level real-time power compensation stage. l Set it to a fixed value and set T u , T l , Δt u is considered as a variable and T is determined in each rolling optimization process by clustering. u , T l and Δt u .

[0086] Step 2.1: Assuming that the prediction errors of load demand, wind power generation and photovoltaic power generation follow Gaussian distribution, the Latin hypercube sampling method based on Nataf transformation is used to model the uncertainty of source and load power. That is, multiple source and load power scenarios are generated according to the prediction values ​​and prediction error distributions of each time period, and then the source and load power scenario sets of each time period are obtained;

[0087] Step 2.2: Use Wasserstein distance as the distribution similarity measure between time periods to construct the distribution similarity matrix between time periods;

[0088] In order to prevent the optimal time period division result from being related to the initial value of the algorithm, the present invention determines the duration of each optimal time period by adding the conditions for forming clusters based on the hierarchical clustering concept.

[0089] The introduction of Wasserstein distance provides a new idea for time period clustering under random scheduling of microgrids. It is used to measure the difference in probability distribution of two discrete random variables. The Wasserstein distance of power scenario distribution between adjacent time periods is expressed as:

[0090]

[0091] In the formula, and are the d-th dimension power scenario distributions for time periods t and t+1, respectively, and are represented by the discrete probability distributions corresponding to the power scenarios. S t Power scenario distribution The generated power scenario set, S' t+1 Power scenario distribution The generated power scenario sets, s and s′ are respectively t and S' t+1 Power scenario in, p s 、p s’ are the probabilities corresponding to power scenarios s and s′ respectively; Power scenario distribution and The Wasserstein distance between s,s’ and c(s, s') are the joint probability density and Euclidean distance under power scenarios s and s', respectively. s , Pr s’ are the discrete probabilities of power scenarios s and s′ respectively;

[0092] According to formula (16), the similarity wd(t) of multi-dimensional source and load power scene distribution between adjacent time periods is calculated;

[0093]

[0094] Where Dim is the total dimension of the source and load power scenario distribution;

[0095] According to the similarity of multi-dimensional source and load power scene distribution between all adjacent time periods in a day, the power scene distribution similarity matrix between time periods is obtained;

[0096] WD={wd(1),wd(2),…,wd(m1-1)} (17)

[0097] Where m1 is the total number of time periods in the clustering process, and WD is the power scenario distribution similarity matrix between time periods;

[0098] Step 2.3: Perform cyclic clustering on the power scenario distribution and calculate the power scenario distribution loss to obtain a power scenario distribution loss curve;

[0099] In order to adaptively determine the optimal time period size, the power scenario distribution is clustered, and the concept of power scenario distribution loss is introduced. The power scenario distribution loss is obtained based on the Wasserstein distance. In the clustering process, the power scenario sets with the closest distribution in adjacent time periods are merged according to the power scenario distribution similarity matrix WD(t) between time periods. Then, the adjacent time period t with the closest distribution in the kth clustering process is i With t j The d-th dimension raw correlation power scenario set between M is the number of power scenarios. In order to reduce the amount of calculation, the Latin hypercube sampling method based on Nataf transformation is used to regenerate the relevant power scenario set for the merged period. i With t j The d-th dimension new correlation power scenario set between them is expressed as and The corresponding power scenario distributions are and Then the power scenario distribution loss of the kth cluster is expressed as:

[0100]

[0101] The power scenario distribution loss in the entire clustering process is expressed as:

[0102]

[0103] Where f(mK) is the overall power scenario distribution loss, which means the accumulated value of the power scenario distribution loss of the time period size mK after K clustering; m is the number of initial unit time periods;

[0104] Taking f(mK) as the basis for selecting the optimal time period scale, by reasonably selecting the size of the time period scale mK, the actual scheduling deviation within the same time period can be minimized, so that the microgrid optimal scheduling can achieve a balance in terms of computational efficiency, robustness and economy.

[0105] Let m1 = m1-1, k = k+1, and perform cyclic clustering on the power scenario distribution until k = K; the initial value of m1 is m, the initial value of k is 1, and K = m-1;

[0106] In the clustering process, the power scenario distribution loss is calculated according to formula (19), and the power scenario distribution loss curve is drawn. The inflection point method is used to determine the optimal number of time periods in a day, and the length of each optimal time period is obtained to complete the adaptive time period division.

[0107] The length of each optimal time period is used as the rolling step length of the upper pre-scheduling stage in each rolling optimization process, thereby determining the prediction domain of the upper pre-scheduling stage and the prediction domain of the lower real-time power compensation stage in each rolling optimization process.

[0108] Step 3: Solve the two-layer rolling optimization model of the microgrid based on adaptive stochastic model predictive control to obtain a reference scheduling plan for each optimal period, including the battery charging and discharging power and the microgrid's power purchase and sales; that is, the upper layer obtains the reference scheduling plan through the upper layer pre-scheduling model according to the source and load power updated during the day, and passes the reference scheduling plan to the lower layer. The lower layer compensates for the mismatch power of the battery and the microgrid through the charging and discharging of the supercapacitor according to the real-time power of the source and load, corrects the reference scheduling plan, and returns the corrected reference scheduling plan to the upper layer; this cycle is repeated until the scheduling of the day is completed.

[0109] In order to verify the effectiveness of the method of the present invention, a renewable energy power generation system consisting of 1 wind farm and 2 photovoltaic power stations is taken as an example to simulate the optimization scheduling of the microgrid. The upper and lower limits of the interaction power between the microgrid and the public grid are set to ±300kW, the confidence level of the opportunity constraint is 0.8, and the unit period length is 15min. Then the initial number of unit periods in a day is m=100, the number of power scenarios in the power scenario set is M=100, and the rolling step length Δt of the lower real-time power compensation stage is l =5min, rolling step length Δt in the upper layer pre-scheduling phase u , prediction domain T u and the prediction domain T of the lower layer real-time power compensation stage l Determined according to the optimal time period division results, the remaining parameters refer to Tables 1 to 3.

[0110] Table 1 Parameters of hybrid energy storage system

[0111]

[0112]

[0113] Table 2 Time-of-use electricity prices of the public power grid

[0114]

[0115] Table 3 Correlation between photovoltaic output and wind turbine output

[0116]

[0117] The genetic algorithm is used to solve the microgrid double-layer rolling optimization model based on adaptive stochastic model predictive control. The algorithm parameters are set as follows: population size popsize = 60, evolutionary generation Maxgen = 30, crossover probability P c =0.8, mutation probability P m =0.1.

[0118] Figure 4 This is the microgrid net load timing scenario. Figure 5 The power scenario distribution loss curve is shown in Figure 2. The optimal time period size is determined to be 24 using the inflection point method. Figure 6 is the optimal time division result. After adaptive time division, the overlapping part of the power scenes in the same low-resolution time period or high-resolution time period is relatively large, that is, the actual dispatch result deviation of the microgrid in the same time period is small. For example, during the period of 10:00-13:00, the distribution of source and load power scenes changes slowly and the distribution similarity is large, so a low-resolution time period with a duration of 3 hours is used for approximate characterization; and during the period of 16:00-19:00, the distribution of source and load power scenes changes rapidly, so 6 unequal high-resolution time periods are used to more accurately approximate and guarantee these 3 hours. Through adaptive time division, the microgrid can more effectively capture the dynamic changes of source and load output, so as to formulate a more accurate dispatch plan. Among them, the high-resolution time period refers to the time period with a duration of less than 60 minutes during the clustering process, which is suitable for the dispatch interval with large source and load power fluctuations; the low-resolution time period refers to the time period with a duration of greater than or equal to 60 minutes during the clustering process, which is suitable for the dispatch interval with relatively gentle source and load power fluctuations.

[0119] Figure 7 The results show that the supercapacitor compensates for the mismatch power of the battery and the microgrid in each period by frequently charging and discharging, and the power adjustment value in each period is less than the allowable range of supercapacitor charging and discharging (0≤|P SC |≤10kW), so there is no need to adjust the power generation plan of other equipment, which shows that the scheduling plan of the present invention is more accurate.

[0120] Any matters not described in the present invention are applicable to the prior art.

Claims

1. A microgrid optimization scheduling method based on adaptive stochastic model predictive control, characterized in that: The method includes the following: First, a two-layer rolling optimization model of a microgrid based on adaptive stochastic model predictive control is constructed, which includes an upper-layer pre-dispatch model and a lower-layer real-time power compensation model; Among them, the objective function of the upper-level pre-scheduling model is: In the formula, C u (T u ) is the microgrid in the prediction domain T u Total operating costs within t u The battery degradation cost during the period, C Grid (t u ) is t i The interaction cost between the microgrid and the public grid during the period, and They are the planned charging and discharging power of the battery in the upper pre-dispatch stage and the planned power purchase and sale power of the public grid. Represents the prediction domain T u The current period of Indicates the last period of the day; The objective function of the lower-level real-time power compensation model is: In the formula, C l (T l ) is the microgrid in the prediction domain T l The power adjustment cost within B , σ Grid are the power adjustment penalty coefficients of the battery and the public grid, ΔP B (t l ), ΔP Grid (t l ) are t l Adjustment power of time-slot batteries and public power grid, t l The degradation cost of supercapacitors during the period, P B , P Grid , P BC They are the planned adjustment power of the battery, public grid and supercapacitor in the lower-level real-time power compensation phase, is the prediction domain T l The current period of 2. Determine the rolling step size and prediction domain of the upper pre-scheduling stage and the prediction domain of the lower real-time power compensation stage in the rolling optimization process; Generate source and load power scenario distribution according to the predicted values ​​and prediction error distribution of source and load power in each time period; calculate the multi-dimensional source and load power scenario distribution similarity wd(t) between adjacent time periods according to formula (16), and obtain the power scenario distribution similarity matrix between time periods; WD={wd(1),wd(2),…,wd(m1-1)} (17) Where Dim is the total dimension of the source and load power scenario distribution, Power scenario distribution and The Wasserstein distance between and are the d-th dimension power scenario distributions in time periods t and t+1, respectively, m1 is the total number of time periods in the clustering process, and WD is the power scenario distribution similarity matrix between time periods; The power scenario distribution is clustered cyclically. In each clustering process, the power scenario sets with the closest distribution in adjacent time periods are merged according to the power scenario distribution similarity matrix between time periods to obtain the original correlation power scenario set. At the same time, a new correlation power scenario set is generated according to the predicted values ​​of source and load power in the merged time period and the prediction error distribution. The power scenario distribution loss of the original correlation power scenario set and the new correlation power scenario set is calculated, so as to obtain the power scenario distribution loss curve in the entire clustering process. According to the power scenario distribution loss curve, the inflection point method is used to determine the number of optimal time periods in a day, and the length of each optimal time period is obtained at the same time; the length of each optimal time period is used as the rolling step length of the upper pre-scheduling stage in each rolling optimization process, and then the prediction domain of the upper pre-scheduling stage and the prediction domain of the lower real-time power compensation stage in each rolling optimization process are obtained; 3. Considering the constraints of the upper-level pre-dispatch model and the lower-level real-time power compensation model, the two-layer rolling optimization model of the microgrid based on adaptive stochastic model predictive control is solved, and the reference dispatch plan including the battery charging and discharging power and the microgrid power purchase and sale power for each optimal period is obtained according to the upper-level pre-dispatch model; the lower-level real-time power compensation model compensates for the mismatch power of the battery and the microgrid through the charging and discharging of the supercapacitor according to the real-time power of the source and load, corrects the reference dispatch plan, and returns the corrected reference dispatch plan to the upper-level pre-dispatch model to complete the dispatch in this cycle.

2. The microgrid optimization scheduling method based on adaptive stochastic model predictive control according to claim 1 is characterized in that: Power scenario distribution and The Wasserstein distance between them is: In the formula, S t The power scenario distribution The generated power scenario set, S' t+1 The power scenario distribution The generated power scenario sets, s and s′ are respectively t and S' t+1 Power scenario in, p s 、p s’ are the probabilities corresponding to power scenarios s and s′ respectively; π s,s’ and c(s, s') are the joint probability density and Euclidean distance under power scenarios s and s', respectively. s , Pr s′ are the discrete probabilities of power scenarios s and s′ respectively.

3. The microgrid optimization scheduling method based on adaptive stochastic model predictive control according to claim 1 or 2, characterized in that: The power scenario distribution loss of the k-th cluster is expressed as: The power scenario distribution loss in the entire clustering process is expressed as: In the formula, is the adjacent time period t with the closest distribution in the k-th cluster i With t j The power scenario distribution corresponding to the power scenario set of the d-th dimension original correlation between them is, For adjacent time periods t i With t j The power scenario distribution corresponding to the d-th dimension new correlation power scenario set, f(mK) is the overall power scenario distribution loss, m is the number of initial unit time periods, and K is the number of clustering times.

4. The microgrid optimization scheduling method based on adaptive stochastic model predictive control according to claim 1 is characterized in that: The constraints of the upper-level pre-dispatch model include microgrid power balance constraints, interaction power constraints between microgrid and public grid, battery charging and discharging power and state of charge constraints; the constraints of the lower-level real-time power compensation model include microgrid power balance constraints, interaction power constraints between microgrid and public grid, battery charging and discharging power and state of charge constraints, and supercapacitor charging and discharging power and state of charge constraints.