A reliability assessment method and device for an electrical integrated energy system

Through K-means clustering and Markov state transition matrix combined with inverse Gaussian distribution simulation, the coupling problem of gas energy and electric energy in the electrical integrated energy system is solved, and the reliability assessment accuracy and risk management capabilities of the system are improved.

CN114139964BActive Publication Date: 2024-10-25NAT ENERGY EMERGING ENERGY GRP CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111460543.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-10-25
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

Existing technology is difficult to ensure the high coupling of gas energy and electric energy in an electrical integrated energy system, resulting in simulation data timing misalignment and affecting the accuracy of system reliability assessment.

Method used

The K-means clustering method is used to cluster the two-dimensional sample data of electric energy and gas energy, and a two-dimensional Markov state transition matrix is ​​established. The state duration is simulated through the inverse Gaussian distribution, dimensionality reduction coding and superposition of fluctuating white noise are generated. Coupled historical data.

Benefits of technology

It improves the accuracy of energy supply reliability assessment of IES and reduces the energy supply shortage rate and load exceeding 80% and 90%. It is better than the conventional MCMC-Kmeans method and reduces the node risk points of the power system and gas system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139964B_ABST
    Figure CN114139964B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of energy system evaluation, and specifically discloses a reliability evaluation method and device for an electric integrated energy system, wherein the method includes S1, clustering two-dimensional sample data composed of electric energy and gas energy by using K-means clustering method, and selecting the optimal number of clusters by using Dunn's rule; S2, establishing a two-dimensional Markov state transfer matrix of electric energy and gas energy under each category, and then performing dimensionality reduction coding to generate a state transfer matrix; S3, simulating the state duration by using inverse Gaussian distribution, and improving the characteristic that the local state of the state transfer matrix is ​​difficult to transfer due to the "back" property; S4, decoding the state transfer matrix by dimensionality increase, superimposing sequence fluctuation white noise, and generating historical data to evaluate the energy supply reliability index of IES. The energy supply shortage rate and load exceeding 80% and 90% of the scheme are less than those of conventional MCMC-Kmeans, and IES is better in voltage, current and frequency of the power system and node gas pressure exceeding the limit of the gas system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of energy system evaluation, and in particular relates to a reliability evaluation method and device for an electrical integrated energy system. Background Art

[0002] At present, the main research contents of reliability assessment of integrated energy systems (IES) at home and abroad are to establish reliability probability models of systems or components, analyze possible operating states of systems by simulation or analytical methods, and construct reliability assessment indicators. Among them, the simulation method uses characteristic simulation or analytical methods for theoretical analysis to evaluate the operating states of the system respectively, so as to effectively predict the high-risk operating states of the system. However, the analytical method has the disadvantages of high model complexity and large uncertainty, and it is difficult to establish an accurate analysis model. The simulation method is data-driven, mines the correlation and distribution law of objective historical data, and comprehensively and quickly simulates various operating states, so as to effectively evaluate the reliability of the system and avoid the complex modeling process. For example, the existing technology uses two-stage clustering to generate typical operating scenarios for the randomness of wind, light and load sequences, thereby improving the accuracy of reliability assessment. For example, through training and learning with a large amount of historical data, the key correction sensitivity and reliability assessment parameters are obtained, so as to evaluate the real-time power outage risk of the power grid. There is also a clustering method based on density-containing noisy application space, which generates typical scenarios and their scenario probabilities based on historical data, and guides the planning and reliability assessment of multi-energy systems under the condition of considering the uncertainty of wind and light.

[0003] The above-mentioned existing technologies all generate historical typical scenarios based on historical data, and then effectively evaluate the system reliability. However, the IES system is currently in the preliminary research and application stage, and it is difficult to have large-scale, complete and accurate multi-energy historical data. In response to this problem, the Markov chain Monte Carlo (MCMC) data simulation method can generate data samples of any volume with historical data characteristics and properties based on limited historical data, and has been widely studied and applied in recent years. For example, the K-means and MCMC methods are used to classify and simulate the sequence, and the optimal state method and the random fluctuation amount fitting method are introduced, so that the newly generated sequence continues the characteristics of the historical wind power sequence. Another example is to classify by month according to seasonal characteristics and simulate using the MCMC method. There is also the selection of the optimal MCMC state number based on the error square sum of the autocorrelation function. And according to the photovoltaic fluctuation power, the Alpha and Silhouette indexes and the Bayesian criterion are used for clustering, and then the double-layer Markov model of weather and power is constructed, which can maintain the weather characteristics and sequence characteristics of photovoltaics. The above-mentioned MCMC-based data simulation method can maximize the possibility of maintaining the original sequence data characteristics, thereby quickly and accurately simulating the system operation status. However, the timing of the simulation data generated by the above method is random, that is, the gas energy and electricity may be out of sequence, so it is difficult to ensure the high coupling between the gas energy and the electricity of IES. Summary of the invention

[0004] The object of the present invention is to provide a reliability assessment method and device for an electrical integrated energy system, which can ensure a high degree of coupling between gas energy and electrical energy of IES.

[0005] The present invention provides a reliability assessment method for an electrical integrated energy system, comprising the following steps:

[0006] S1, K-means clustering method is used to cluster the two-dimensional sample data composed of electric energy and gas energy, and Dunn's rule is used to select the optimal number of clusters;

[0007] S2, establish a two-dimensional Markov state transfer matrix of electric energy and gas energy under various conditions, and then perform dimensionality reduction coding to generate a state transfer matrix;

[0008] S3, uses the inverse Gaussian distribution to simulate the state duration, improving the characteristic of the state transfer matrix that the local state is difficult to transfer due to the "back" property;

[0009] S4, decodes the state transfer matrix by dimension increase, superimposes the sequence fluctuation white noise, and generates historical data to evaluate the energy supply reliability index of IES.

[0010] Preferably, the S1 specifically includes:

[0011] With the electric load power as the x-axis and the gas load power as the y-axis, a two-dimensional sample data of the historical gas and electric net load power is constructed. The DVI formula is as follows:

[0012]

[0013] Where DIV(K) represents the Dunn index when the number of clusters is K, the numerator represents the shortest distance between classes when the number of clusters is K, the denominator represents the maximum intra-class distance when the number of clusters is K, K and k are the number of clusters and their variables of the K-means algorithm, respectively, k1 and k2 are cluster center variables, and their value range is [1, K]; Nk and nk are the total number of data in the kth class and its variables, respectively, and max and min are the maximum and minimum values ​​of the data sequence, respectively.

[0014] Preferably, the S2 specifically includes:

[0015] Suppose the nth data in the kth category k The two-dimensional data is Z(P(n k ),G(n k )), then the state division formula of two-dimensional data is as follows:

[0016]

[0017]

[0018]

[0019]

[0020] In the formula, P(n k )、G(n k ) are the nth k The net electric load power and net gas load power of each data; M P and M G are the state numbers of electric load and gas load respectively; ΔP k , ΔG k are the state intervals of net electric load and net gas load respectively; P M (n k ) and G M (n k ) are respectively the nth k The status number of the net electric load and net gas load of each data; ceil is rounded up;

[0021] The two-dimensional data Z(P(n k ),G(n k )) is ZM(P M (n k),GM(n k )).

[0022] Preferably, the S2 specifically includes:

[0023] First, the two-dimensional Markov state transfer matrix is ​​encoded by dimensionality reduction. The specific formula (6) is as follows:

[0024] Sr(n k )=(P M (n k )-1)*M G +G M (n k ) (6)

[0025] In the formula, Sr(n k ) is the discrete state number after dimensionality reduction;

[0026] Then, according to formula (6), the N k All data are dimensionality reduced and encoded to obtain N k One-dimensional discrete state points; one-dimensional state matrix Num is of length (M P ·M G )×1; in the one-dimensional state matrix Sr, to transfer from one state to another, (M P ·M G )×(M P ·M G ) is used to describe the two-dimensional state transfer matrix; let the elements in the matrix St be sij, then the state transfer process is as follows:

[0027] s ij = St(Sr(n k )=j|Sr(n k -1)=i) (7)

[0028] In the formula, i and j represent the nth k-1 Status and nth k Status;s ij is state n k-1 Transfer to state n k The number of state transitions;

[0029] Then the element p in the state transfer matrix Pr ij The definition is as follows:

[0030]

[0031] In the formula, p ij is the transition probability from state i to state j; the numerator ∑s ijis the number of transitions from state i to state j; the numerator represents the total number of transitions from state i to other states;

[0032] Cumulative probability transfer matrix Pm element pm i,j The definition is as follows:

[0033]

[0034] Where, pm ij is the cumulative transition probability from state i to state j.

[0035] Preferably, after S2 and before S3, the method further includes: according to the cumulative probability state transfer matrix, a new data state can be simulated and generated by following the following steps:

[0036] (1) Given an initial state Sr(1), that is, the current state i = Sr(1);

[0037] (2) Randomly generate a state random number rand in [0,1] and calculate the cumulative transition probability interval corresponding to rand in state i:

[0038]

[0039] In the formula, since the state transfer matrix is ​​a sparse matrix after data dimension reduction, the judgment condition is set. If pm iM =0, indicating that no data falls on state i, and the connected state i+1 is taken to continue the simulation generation; if pm iM ≠0, then J1 and J1+1 are the states corresponding to the transition probability interval, that is, J1 is the next transition state;

[0040] (3) Repeat steps (1) to (2) until a preset amount of transfer state is generated.

[0041] Preferably, the S3 specifically includes: firstly, the original data state Sr(n k ) is counted, and the probability distribution of the duration is calculated. The probability distribution of each state is fitted using the inverse Gaussian distribution, and the fitting function formula is as follows:

[0042]

[0043] In the formula, x is the state duration probability, μ and λ are inverse Gaussian distributions, where μ = 1, and then the optimal λ is selected for fitting. The parameter λ is determined by the trial method. The mean square error between the inverse Gaussian distribution of different λ and the original distribution is calculated at intervals of 0.01. The λ with the smallest mean square error is selected as the final Gaussian distribution parameter, that is, the duration probability distribution function F(Sr) of each state is obtained;

[0044] The current state duration L is generated according to the F(Sr) distribution, that is, the current data state is maintained for L moments. When the state length is greater than L, it must jump to the next state. The jump between states is still carried out according to the cumulative probability transfer matrix Pm to generate a new state. It is set that the next state must not be consistent with the current state.

[0045] Preferably, the S4 specifically includes: firstly decoding the one-dimensional state, correspondingly restoring it to the gas-electricity two-dimensional data plane, and then superimposing the fluctuation component on the gas load power and the net electric load power of each dimension.

[0046] Preferably, the energy supply reliability index in S4 includes: IES energy supply shortage rate, power supply reliability index and gas supply reliability index.

[0047] The present invention also provides a device, including a memory and a processor, wherein the processor is used to implement the steps of the electrical integrated energy system reliability assessment method when executing a computer management program stored in the memory.

[0048] The present invention also provides a computer-readable storage medium on which a computer management program is stored. When the computer management program is executed by a processor, the steps of the reliability assessment method of an electrical integrated energy system are implemented.

[0049] Compared with the prior art, a reliability assessment method and device for an electrical integrated energy system according to the present invention includes S1, clustering two-dimensional sample data composed of electric energy and gas energy using the K-means clustering method, and selecting the optimal number of clusters using the Dunn's rule; S2, establishing a two-dimensional Markov state transfer matrix of electric energy and gas energy under each category, and then performing dimensionality reduction coding to generate a state transfer matrix; S3, simulating the state duration using the inverse Gaussian distribution to improve the characteristic that the local state of the state transfer matrix is ​​difficult to transfer due to the "back" nature; S4, decoding the state transfer matrix by dimensionality increase, superimposing sequence fluctuation white noise, and generating historical data to evaluate the energy supply reliability index of IES. The energy supply shortage rate and load exceeding 80% and 90% of this scheme are less than those of conventional MCMC-Kmeans, and the voltage, current and frequency of the power system and the node gas pressure of the gas system of IES are better than the conventional MCMC-Kmeans method. In addition, by adopting reactive switching, external power supply or gas source, the hidden danger of risk point exceeding the limit can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A flow chart of a reliability assessment method for an electrical integrated energy system provided by the present invention;

[0051] Figure 2 A schematic diagram of the hardware structure of a possible device provided by the present invention;

[0052] Figure 3 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention;

[0053] Figure 4 A structural diagram of the electrical integrated energy system provided by the present invention;

[0054] Figure 5 The DIV index under different cluster numbers provided by the present invention;

[0055] Figure 6 The K-means clustering result diagram based on DIV provided by the present invention;

[0056] Figure 7 A comparison chart of duration fitting results when the number of states provided by the present invention is 20;

[0057] Figure 8 A data curve diagram of the net electric load simulation provided by the present invention;

[0058] Fig. 9 A data curve diagram of the net gas load simulation provided by the present invention;

[0059] Fig.10 This is a coupling analysis diagram of the gas and electricity simulation data provided by the present invention. DETAILED DESCRIPTION

[0060] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.

[0061] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.

[0062] like Figure 1As shown, according to a preferred embodiment of the present invention, a reliability assessment method and device for an electrical integrated energy system, wherein the method includes S1, clustering two-dimensional sample data composed of electric energy and gas energy using the K-means clustering method, and selecting the optimal number of clusters using the Dunn's rule; S2, establishing a two-dimensional Markov state transfer matrix of electric energy and gas energy under each category, and then performing dimensionality reduction coding to generate a state transfer matrix; S3, simulating the state duration using the inverse Gaussian distribution to improve the characteristic that the local state of the state transfer matrix is ​​difficult to transfer due to the "back" nature; S4, decoding the state transfer matrix by dimensionality increase, superimposing sequence fluctuation white noise, and generating historical data to evaluate the energy supply reliability index of IES. The energy supply shortage rate and load exceeding 80% and 90% of this scheme are less than those of conventional MCMC-Kmeans, and the voltage, current and frequency of the power system and the node gas pressure of the gas system of IES are better than the conventional MCMC-Kmeans method. In addition, by adopting reactive switching, external power supply or gas source, the risk point over-limit hidden danger can be reduced.

[0063] The K-means clustering method clusters sample data with similar distribution characteristics. The center distance of the sample is usually used as the classification standard. This method can ensure that the distribution of samples of the same category is more concentrated and the differences between samples of different categories are greater. Sampling data classification simulation is conducive to improving the simulation effect. However, the premise of using the K-means method is that the number of clusters must be given in advance. Different cluster numbers K have a greater impact on the clustering effect, so a scientific cluster number evaluation method is needed.

[0064] The Dunn Validity Index (DVI) aims to minimize the inter-class similarity and maximize the intra-class similarity. That is, the larger the value, the larger the distance between classes and the smaller the distance within classes, so the clustering effect is better. This method has a good clustering effect of discrete points. In this embodiment, the electric load power is used as the x-axis and the gas load power is used as the y-axis to construct the two-dimensional sample data of the historical gas and electric net load power. The formula of the Dunn Index DVI is as follows:

[0065]

[0066] Where DIV(K) represents the Dunn index when the number of clusters is K, the numerator represents the shortest distance between classes when the number of clusters is K, the denominator represents the maximum intra-class distance when the number of clusters is K, K and k are the number of clusters and their variables of the K-means algorithm, respectively, k1 and k2 are cluster center variables, and their value range is [1, K]; Nk and nk are the total number of data in the kth class and its variables, respectively, and max and min are the maximum and minimum values ​​of the data sequence, respectively.

[0067] The preferred solution is the MCMC-based data simulation method, which can ensure that the simulated sequence has the advantages of the original data's mean, standard deviation, probability density distribution, and autocorrelation. The conventional MCMC method is a simulation of a one-dimensional data sequence, and the time series of the simulated data is random. However, the electric load and gas load at each moment in IES are coupled. If they are simulated independently, the time series will not match. For example, the peak gas load during the winter heating period and the peak electric load in summer are listed at the same time. The reliability assessment results under the "double highest" scenario of gas and electric loads will increase the energy supply risk of IES. Therefore, it is urgent to establish a two-dimensional Markov chain to ensure that the gas and electric load data at each moment are coupled.

[0068] After K-means clustering, two-dimensional Markov chains of gas and electricity are established in each class k. The number of states of MCMC has a great influence on the simulation results. When the number of selected states is small, the simulation results are stable, but the sequence curve is quite different from the original data; on the contrary, when the number of states is large, the simulation results are unstable, and the sequence curve is close to the original data. In this embodiment, the two-dimensional Markov chain to be constructed has a state number that is quadratic times the one-dimensional sequence. For example, if the one-dimensional state number M is 20, the number of states in the two-dimensional plane is M2, that is, 400 states. On the basis of the data classification, considering reducing the calculation scale and ensuring the stability of the simulation results, the number of states of each dimension of gas and electricity should not be too many.

[0069] Suppose the nth data in the kth category k The two-dimensional data is Z(P(n k ),G(n k )), then the state division formula of two-dimensional data is as follows:

[0070]

[0071]

[0072]

[0073]

[0074] In the formula, P(n k )、G(n k ) are the nth k The net electric load power and net gas load power of each data; M P and M G are the state numbers of electric load and gas load respectively; ΔP k , ΔG k are the state intervals of net electric load and net gas load respectively; P M (n k ) and G M (n k) are respectively the nth k The status number of the net electric load and net gas load of each data; ceil is rounded up;

[0075] The two-dimensional data Z(P(n k ),G(n k )) is ZM(P M (n k ),GM(n k )).

[0076] However, the two-dimensional state transfer process is performed within the plane, and the process of producing the state transfer function and simulating the next transfer state will be extremely complicated. In order to reduce the computational complexity, this embodiment proposes to perform dimensionality reduction encoding on the two-dimensional state. The specific formula (6) used is as follows:

[0077] Sr(n k )=(P M (n k )-1)*M G +G M (n k ) (6)

[0078] In the formula, Sr(n k ) is the discrete state number after dimensionality reduction.

[0079] Then, according to formula (6), the N k All data are dimensionality reduced and encoded to obtain N k One-dimensional discrete state points; one-dimensional state matrix Num is of length (M P ·M G )×1; in the one-dimensional state matrix Sr, to transfer from one state to another, (M P ·M G )×(M P ·M G ) is used to describe the two-dimensional state transfer matrix; let the elements in the matrix St be sij, then the state transfer process is as follows:

[0080] s ij = St(Sr(n k )=j|Sr(n k -1)=i) (7)

[0081] In the formula, i and j represent the nth k-1 Status and nth k Status;s ij is state n k-1 Transfer to state n k The number of state transitions;

[0082] Then the element p in the state transfer matrix Pr ij The definition is as follows:

[0083]

[0084] In the formula, p ij is the transition probability from state i to state j; the numerator ∑s ij is the number of transitions from state i to state j; the numerator represents the total number of transitions from state i to other states;

[0085] Cumulative probability transfer matrix Pm element pm i,j The definition is as follows:

[0086]

[0087] Where, pm ij is the cumulative transition probability from state i to state j.

[0088] According to the cumulative probability state transfer matrix, the new data state can be simulated by following the steps below:

[0089] (1) Given an initial state Sr(1), that is, the current state i = Sr(1);

[0090] (2) Randomly generate a state random number rand in [0,1] and calculate the cumulative transition probability interval corresponding to rand in state i:

[0091]

[0092] In the formula, since the state transfer matrix is ​​a sparse matrix after data dimension reduction, the judgment condition is set. If pm iM =0, indicating that no data falls on state i, and the connected state i+1 is taken to continue the simulation generation; if pm iM ≠0, then J1 and J1+1 are the states corresponding to the transition probability interval, that is, J1 is the next transition state;

[0093] (3) Repeat steps (1) to (2) until a preset amount of transfer state is generated.

[0094] The preferred solution is that the traditional MCMC simulation method can produce a large number of transfer states, but it is easy to fall into a local high-probability state and is difficult to jump out, resulting in the transfer matrix forming a "back" feature, which is the reduction of the diversity of data distribution. Taking the electric load as an example, the number of states M is 20, and its state transition probability distribution is the prior art. Those skilled in the art can know that the state transfer matrix generated by the traditional MCMC has data mainly distributed in the diagonal elements, while the probability distribution of the non-diagonal elements is less, that is, the simulated data state is easy to fall into the diagonal data state. To improve this problem, this embodiment proposes a state duration fitting method based on the inverse Gaussian distribution, which fits the state duration in the original data to obtain the state duration, and avoids being trapped in the local state for a long time.

[0095] First, the original data state Sr(n k ) is counted, and the probability distribution of the duration is calculated. The probability distribution of each state is fitted using the inverse Gaussian distribution, and the fitting function formula is as follows:

[0096]

[0097] In the formula, x is the state duration probability, μ and λ are inverse Gaussian distributions, where μ = 1, and then the optimal λ is selected for fitting. The parameter λ is determined by the trial method. The mean square error between the inverse Gaussian distribution of different λ and the original distribution is calculated at intervals of 0.01. The λ with the smallest mean square error is selected as the final Gaussian distribution parameter, that is, the duration probability distribution function F(Sr) of each state is obtained;

[0098] The current state duration L is generated according to the F(Sr) distribution, that is, the current data state is maintained for L moments. When the state length is greater than L, it must jump to the next state. The jump between states is still carried out according to the cumulative probability transfer matrix Pm to generate a new state, and the next state must not be consistent with the current state.

[0099] The current state duration L is generated according to the F(Sr) distribution, that is, the current data state is maintained for L moments. When the state length is greater than L, it must jump to the next state. The jump between states is still performed according to the cumulative probability transfer matrix Pm to generate a new state. In addition, in this embodiment, the next state is set not to be consistent with the current state to avoid being trapped in a local state that is difficult to jump.

[0100] The preferred solution is that after generating a large number of one-dimensional data states, the one-dimensional state needs to be decoded and restored to the gas-electricity two-dimensional data plane, and then the fluctuation component is superimposed on the gas load power and net electric load power of each dimension. The decoding operation is the inverse process of formula (6), and the formula is as follows:

[0101]

[0102] According to formula (12), the restored gas-electric two-dimensional data state ZM(P M (n k ),G M (n k )). Then the two-dimensional data state ZM is used to calculate the actual load data according to the state distance, and then the fluctuation component is superimposed to obtain the final simulated gas and electricity data. The formula is as follows:

[0103] P(n k )=(P M (n k )-1)*ΔP k +rand*ΔP k (13)

[0104] G(n k )=(G M (n k )-1)*ΔG k +rand*ΔG k (14)

[0105] Where rand is a random number between [0,1], rand*ΔPk and rand*ΔGk are the random components of electricity and gas loads, respectively.

[0106] As a preferred solution, in this embodiment, conventional data evaluation methods are used to evaluate the quality of the simulation data, such as using mean and variance indicators to judge the numerical conditions and data distribution differences between the simulation data and historical data.

[0107] The probability density function (PDF) is used to measure the probability of a variable within a specified interval and is obtained by integrating the probability density within the interval. In this embodiment, the probability density is used to obtain the distribution difference between the simulation data and the historical data within different value ranges.

[0108] Autocorrelation Function (ACF) is used to measure the correlation between sequences in different periods. The larger the ACF value, the stronger the correlation between the previous and next data sequences. n ), the formula of the AFC autocorrelation coefficient of the sequence X with a time shift of d is as follows:

[0109]

[0110] In the formula, cov and var are the convolution and variance respectively; t and X t+dThey are respectively a sequence of length t and its sequence after time shift d.

[0111] In order to measure the coupling of gas and electricity net loads of the simulated data at each moment, the Euclidean distance between the simulated data and the real data at the same moment is used for measurement in this embodiment, and the formula is as follows:

[0112]

[0113] Where D coupling (t) represents the Euclidean distance between the simulated gas and electricity data and the real data at time t; P sim (t), G sim (t) represent the simulated electricity and gas data at time t respectively.

[0114] The preferred solution, in this embodiment, is to use the energy supply quality to evaluate the reliability of system operation. The quality of gas and electricity energy supply directly affects the safety of the system. The main indicators of power quality in the power system include voltage deviation, frequency deviation, current over-limit, voltage fluctuation and flicker, etc. The gas system gas quality indicators include gas pressure node, pipeline current carrying capacity, etc.

[0115] (1) IES energy shortage rate:

[0116]

[0117] Wherein, Se is the IES energy shortage rate; P(t) and G(t) are the total net load power of electricity and gas at time t; SP and SG are the rated total capacity of electricity and gas respectively; η is the IES energy utilization rate, which is 0.85 in this embodiment; T is the total IES operation time; St is the time when the net load power is greater than the IES total energy supply power.

[0118] (2) Power supply reliability indicators:

[0119]

[0120]

[0121]

[0122] Where Usafe, Isafe and fsafe are the degree of exceeding the limit of node voltage, line current and system frequency respectively; Un(t) is the voltage of node n in the power grid; Il(t) is the voltage of line l in the power grid; f(t) is the frequency of the power grid system; Umax and Umin are the upper and lower limits of voltage; Imax is the current allowed to pass through the line; f0 is the frequency determined by the system; Δf is the allowable range of frequency deviation.

[0123] (3) Gas supply reliability indicators:

[0124]

[0125]

[0126] Where P asafe ,I gsafe are the statistical probabilities of node pressure and pipeline flow exceeding the limit, respectively; P m (t) is the air pressure at node n in the air network; Ig c (t) is the flow rate of gas pipeline c in the gas network; P amax Ig is the maximum gas pressure at the gas node; max It is the maximum flow rate allowed through the gas pipeline.

[0127] In a specific implementation scenario, the IEEE39 standard power grid example and the Belgian 20-node gas system are used to build a gas and electricity IES example. The interconnection relationship is established through gas turbines and G2P (Power to Gas) power coupling devices. The IES energy supply structure is as follows: Figure 4 As shown. Gas turbines are connected to the outgoing lines of gas grid nodes 49 and 56, and the power of gas-fired power generation is input to grid nodes 33 and 38; P2G equipment is connected to grid nodes 13 and 25, injecting gas into gas grid nodes 44 and 53; grid nodes 20 and 21 supply power to the two electric compressors of the gas grid. The information on compressor parameters, gas grid information, and pipeline parameters is shown in Tables 1 to 3.

[0128] Table 1 Compressor parameters

[0129]

[0130] Table 2 Information on Belgium's 20-node gas grid

[0131]

[0132] Table 3 Belgian gas network pipeline parameters

[0133]

[0134] The example uses IEEE39 power grid data and 20-node gas grid data as the benchmark, superimposes the historical gas and electricity load per unit value in a certain area in the north, and constructs a historical load sequence. One year of historical data is selected, with a time interval of 1h. The two-dimensional data constructed by the net gas and electricity loads are clustered according to the Dunn index. When the number of clusters K is taken, the DIV value is as follows Figure 5 shown.

[0135] from Figure 5It can be seen that under different clustering numbers, the DVI index is the largest when K is 4, indicating that the inter-class distance is the largest and the intra-class distance is the lowest under this clustering number, and the clustering effect is relatively optimal. When K=4, the original sequence is clustered. For clear display, one data point is selected every 9 moments, for a total of 876 moments of data. The clustering results are as follows: Figure 6 shown.

[0136] from Figure 6 From the clustering results in , we can see that the net gas load and the net electricity load are roughly positively correlated in the plane. The reason is that the gas consumption is larger when the electricity consumption is larger, such as the winter heating season, when both gas and electricity consumption are larger; on the other hand, when one of the gas or electricity loads is larger, it will be converted and supplied through power coupling equipment, resulting in a coupled positive correlation. Figure 6 From the classification results, we can see that the two-dimensional data is basically divided according to the net load power values ​​of gas and electricity. The boundaries between categories are clear, the categories are relatively tight, and the clustering effect is relatively ideal. Among them, the span of the electric load power value is relatively large, which is the main factor for clustering.

[0137] The original two-dimensional data is encoded by dimensionality reduction. The number of states in each dimension is set to M = 6, that is, the number of states after dimensionality reduction is 64, and the size of the data state transfer matrix Pr is 64×64, and the probability distribution of Pr can be obtained. After analysis, it is found that after the dimensionality reduction encoding of gas and electric load power, although the state transfer probability is mainly distributed on the diagonal, the "back" characteristic has a significant improvement over the traditional one. The duration with a state number of 20 is selected for fitting, and its probability distribution is as follows Figure 7 shown.

[0138] Figure 7 The bar graph of the actual data in is the duration distribution of state 20. The enumeration heuristic method is used to obtain four distribution functions with the smallest variance in fitting the actual data. By comparing the four distributions, it can be seen that when the state duration is an integer, the inverse Gaussian distribution is closer to the actual data, and the tail part is more consistent with the distribution after 2 durations.

[0139] The MCMC in this embodiment is used to simulate the net electric load data and net gas load data for one year. For the convenience of comparison, 876 data are selected every 9 moments. The data comparison curve is as follows: Figure 8 and Fig. 9 As shown. The actual data and simulated data are divided into K = 4 categories. The numerical and distribution characteristics of the simulated data in each category are basically consistent with those of the actual data, and the simulation results are relatively ideal. To further illustrate that the simulated data ensures the coupling of gas and electricity, this embodiment first uses conventional MCMC-Kmeans to simulate the electric load and gas load independently in turn. Compared with the coupled simulation MCMC-Kmeans method in this embodiment, the Euclidean distance with the actual load at the same time is calculated according to formula (16). The comparison curve is shown in Fig.10shown.

[0140] from Fig.10 It can be seen that the traditional MCMC-Kmeans method simulates the gas and electricity load data independently in sequence, and the Euclidean distance with the original sequence is extremely large. The reason is that the simulation time series is randomly dislocated, and the gas and electricity data are basically not coupled. Therefore, the method in this embodiment constructs a state transfer method for gas and electricity two-dimensional data, which is lower than the Euclidean distance of the original sequence, and the simulated data ensures the coupling of gas and electricity at the same time.

[0141] The mean and variance of the historical data are compared between the traditional MCMC-Kmeans method and the method in this embodiment, and the autocorrelation coefficients between the sequences generated by the two methods and the original data are compared according to formula (15). The results are shown in Table 4.

[0142] Table 4 Comparative analysis of indicators of simulation results

[0143]

[0144] It can be seen from Table 4 that the mean values ​​of the gas and electricity simulation data of the conventional MCMC-Kmeans method are higher than those of the original sequence, and the variances are smaller than those of the original sequence, indicating that the conventional MCMC-Kmeans method performs simulations independently and sequentially, and the data results are biased. However, the mean values ​​of the gas and electricity data simulated by the method in this embodiment are consistent with the original sequence, and the variances are relatively close. In addition, the ACF value of the method in this embodiment is higher, indicating that the correlation with the original sequence is better. In summary, the simulation effect of the method in this embodiment is better.

[0145] In this embodiment, the simulated data volume is further expanded to generate 10 years of gas and electricity net load data, and input them into the IES system of IEEE39 & Belgian Gas 20 nodes. The net load data is calculated as per unit value and then assigned to the original in the example. The calculated reliability index is shown in Table 5.

[0146] Table 5 Comparative analysis of IES energy supply reliability index results

[0147]

[0148] From the comparison results in Table 5, it can be seen that the energy shortage rate and load exceeding 80% and 90% of the method in this embodiment are less than those of the conventional MCMC-Kmeans method, and IES is better than the conventional MCMC-Kmeans method in voltage, current and frequency of the power system and node pressure exceeding the limit of the gas system. The reason is combined with Figure 8As shown in Table 4, on the one hand, the conventional MCMC-Kmeans method simulates the gas and electricity data sequentially, which is far from the real data; on the other hand, the gas and electricity load averages simulated by the conventional MCMC-Kmeans method are both high, so the IES operation index results are too large. In addition, according to the 10-year simulation data operation results, the branch currents from nodes 1 to 4 of the power system and the voltages at 27 nodes are the most over-limited, and the gas pressure at node 54 of the gas system is the most over-limited. The above branches and nodes are the maximum risk points of IES, so it is recommended to adopt reactive switching, external power supply or gas source to reduce the risk of over-limit at risk points.

[0149] See also Figure 2 Schematic diagram of an embodiment of the device provided by the embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention provides a device, including a memory 1310, a processor 1320, and a computer program 1311 stored in the memory 1310 and executable on the processor 1320. When the processor 1320 executes the computer program 1311, the following steps are implemented: S1, clustering two-dimensional sample data composed of electric energy and gas energy using a K-means clustering method, and selecting an optimal number of clusters using Dunn's rule;

[0150] S2, establish a two-dimensional Markov state transfer matrix of electric energy and gas energy under various conditions, and then perform dimensionality reduction coding to generate a state transfer matrix;

[0151] S3, uses the inverse Gaussian distribution to simulate the state duration, improving the characteristic of the state transfer matrix that the local state is difficult to transfer due to the "back" property;

[0152] S4, decodes the state transfer matrix by dimension increase, superimposes the sequence fluctuation white noise, and generates historical data to evaluate the energy supply reliability index of IES.

[0153] See also Figure 3 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 3 As shown, this embodiment provides a computer-readable storage medium 1400, on which a computer program 1411 is stored. When the computer program 1411 is executed by a processor, the following steps are implemented: S1, clustering the two-dimensional sample data composed of electric energy and gas energy using a K-means clustering method, and selecting the optimal number of clusters using Dunn's rule;

[0154] S2, establish a two-dimensional Markov state transfer matrix of electric energy and gas energy under various conditions, and then perform dimensionality reduction coding to generate a state transfer matrix;

[0155] S3, uses the inverse Gaussian distribution to simulate the state duration, improving the characteristic of the state transfer matrix that the local state is difficult to transfer due to the "back" property;

[0156] S4, decodes the state transfer matrix by dimension increase, superimposes the sequence fluctuation white noise, and generates historical data to evaluate the energy supply reliability index of IES.

[0157] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0158] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0159] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0161] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.

Claims

1. A reliability assessment method for an electrical integrated energy system, characterized in that: The following steps are involved: S1, K-means clustering method is used to cluster the two-dimensional sample data composed of electric energy and gas energy, and Dunn's rule is used to select the optimal number of clusters; With the electric load power as the x-axis and the gas load power as the y-axis, a two-dimensional sample data of the historical gas and electric net load power is constructed. The formula of the Dunn index DVI is as follows: In the formula, DIV(K) represents the Dunn index when the number of clusters is K, the numerator represents the shortest inter-class distance when the number of clusters is K, the denominator represents the maximum intra-class distance when the number of clusters is K, K and k are the number of clusters and their variables of the K-means algorithm, k1 and k2 are cluster center variables, and the value range is [1, K]; Nk and nk are the total number of data in the kth class and its variables, max and min are the maximum and minimum values ​​of the data sequence, respectively; S2, establish the two-dimensional Markov state transfer matrix of electric energy and gas energy under each category, and then perform dimensionality reduction coding to generate the state transfer matrix; suppose the nth data in the kth category k The two-dimensional data is Z(P(n k ),G(n k )), then the state division formula of two-dimensional data is as follows: In the formula, P(n k )、G(n k ) are the nth k The net electric load power and net gas load power of each data; M P and M G are the state numbers of electric load and gas load respectively; ΔP k , ΔG k are the state intervals of net electric load and net gas load respectively; P M (n k ) and G M (n k ) are respectively the nth k The state number of the net electric load and net gas load of each data; ceil is rounded up; through formula (2) to formula (5), the two-dimensional data Z(P(n k ),G(n k )) is ZM(P M (n k ),GM(n k )); S3, using the inverse Gaussian distribution to simulate the state duration, to improve the state transfer matrix due to the "back" characteristics of the local state is difficult to transfer; first of all, the original data state Sr (n k ) is counted, and the probability distribution of the duration is calculated. The probability distribution of each state is fitted using the inverse Gaussian distribution, and the fitting function formula is as follows: In the formula, x is the state duration probability, μ and λ are inverse Gaussian distributions, where μ = 1, and then the optimal λ is selected for fitting. The parameter λ is determined by the trial method. The mean square error between the inverse Gaussian distribution of different λ and the original distribution is calculated at intervals of 0.

01. The λ with the smallest mean square error is selected as the final Gaussian distribution parameter, that is, the duration probability distribution function F(Sr) of each state is obtained; Generate the current state duration L according to the F(Sr) distribution, that is, the current data state is maintained for L moments. When the state length is greater than L, it must jump to the next state. The jump between states is still carried out according to the cumulative probability transfer matrix Pm to generate a new state. It is set that the next state must not be consistent with the current state; S4, decode the state transfer matrix by dimension increase, superimpose the sequence fluctuation white noise, and generate historical data to evaluate the energy supply reliability index of IES; First, the one-dimensional state is decoded and restored to the gas-electricity two-dimensional data plane, and then the fluctuation component is superimposed on the gas load power and net electric load power in each dimension; wherein, the energy supply reliability index in S4 includes: IES energy supply shortage rate, power supply reliability index and gas supply reliability index.

2. The reliability assessment method of an electrical integrated energy system according to claim 1, characterized in that: After S2 and before S3, the method further includes: according to the cumulative probability state transfer matrix, a new data state can be simulated and generated by following the following steps: (1) Given an initial state Sr(1), that is, the current state i = Sr(1); (2) Randomly generate a state random number rand in [0,1] and calculate the cumulative transition probability interval corresponding to rand in state i: In the formula, since the state transfer matrix is ​​a sparse matrix after data dimension reduction, the judgment condition is set. If pm iM =0, indicating that no data falls on state i, and the connected state i+1 is taken to continue the simulation generation; if pm iM ≠0, then J1 and J1+1 are the states corresponding to the transition probability interval, that is, J1 is the next transition state; (3) Repeat steps (1) to (2) until a preset amount of transfer state is generated.

3. A device, characterized in that: It includes a memory and a processor, and the processor is used to implement the steps of the electrical integrated energy system reliability assessment method as described in any one of claims 1 and 2 when executing the computer management program stored in the memory.

4. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by a processor, the steps of the reliability assessment method of an electric integrated energy system as described in any one of claims 1 and 2 are implemented.

Citation Information

Patent Citations

  • Power generation system reliability rapid assessment method based on state clustering

    CN106056305A

  • Wind power grid-connection system operational reliability evaluation method considering uncertainty factors

    CN107681691A

  • Non-intrusive load decomposition method

    CN111428816A

  • Reliability evaluation method, device and equipment for new energy power system and storage medium

    CN112381137A

  • Method for calculating and analyzing multi-energy flow of electricity-gas coupled system in case of attack to controllable load

    CN112670976A