A distribution network line parameter identification method and system based on MH sampling

Through a method based on Metropolis-Hastings sampling, combined with power flow calculation and TPE method, the problem of missing data and low accuracy in distribution network line parameter identification is solved, and accurate parameter identification and cost reduction are achieved.

CN115000941BActive Publication Date: 2024-08-30NANJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210621082.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-08-30
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

Existing distribution network line and transformer parameter identification methods suffer from problems such as missing data, untimely updates, interference, and high costs, resulting in inaccurate calculations and low precision.

Method used

Using a method based on Metropolis-Hastings sampling, by given the stationary distribution of the line resistance and reactance parameters to be identified, the Metropolis-Hastings sampling method is used to generate sample values, and through power flow calculation and loss function design, combined with the TPE method, the parameter distribution interval is updated. The final iterative calculation obtains accurate line parameters.

Benefits of technology

It is possible to improve the accuracy and precision of parameter identification and reduce the sensitivity and cost to interference when the distribution network ledger data is limited.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115000941B
    Figure CN115000941B
Patent Text Reader

Abstract

The present invention discloses a distribution network line parameter identification method and system based on M-H sampling, including: given the stationary distribution of the line parameters to be identified; generating samples of the line parameters based on the Metropolis-Hastings sampling method; calculating the flow based on the sample values ​​obtained by sampling; designing the loss function according to the flow calculation results and the measured values; updating the parameter distribution sampling interval according to the loss function and the heuristic algorithm-Tree-structured Parzen Estimator Approach (TPE method). Finally, the line parameters to be identified are obtained through iterative calculation of the algorithm. The present invention can solve the problem that the distribution network ledger data is limited, resulting in inaccurate distribution network related calculations and low precision of other parameter identification algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system parameter identification, and in particular to a distribution network line parameter identification method and system based on MH sampling. Background Art

[0002] Accurate and reliable distribution network parameters are the basis for power grid operation control and various calculations. However, the parameters of distribution network lines and transformer operation will change dynamically with the influence of working conditions and operating environment. The data used in the calculation of distribution network related aspects comes from the power grid database, which has data missing and untimely data update. Some of the data are static parameters of lines and transformers, so it is inaccurate to use these parameters for related calculations.

[0003] There are three identification methods for distribution network line and transformer parameters: theoretical formula method, parameter measurement method, SCADA-based identification method, and PMU-based identification method. For the theoretical formula method, although the electromagnetic model of the line is greatly simplified, it does not consider the influence of factors such as temperature and sag, which leads to the inability to reflect the true situation of the line parameters to be identified in the transmission line; for the parameter measurement method, manual meter reading and instrument measurement are combined to obtain data for parameter calculation. Its disadvantage is that an additional test system must be added, which will be affected by interference factors such as induced voltage. This identification method can only reflect parameters under specific working conditions; for the SCADA-based identification method, the parameters to be identified are estimated as augmented quantities, and the measurement residual is used to correct the wrong parameters. However, this method is easily affected by measurement noise, and numerical instability will occur when solving. At the same time, more measurement equipment is required; for the PMU-based identification method, dual-end synchronous measurement data is used and combined with anti-error calculation for anti-error estimation, so as to realize parameter identification, but this method requires the installation of a measurement system at the node, resulting in high costs.

[0004] The Metropolis-Hastings sampling algorithm is a sampling algorithm based on MCMC. In the MCMC sampling algorithm, by introducing the idea of ​​the acceptance rate function, a conditional judgment structure of acceptance and rejection is used to satisfy the detailed stationary conditions of the Markov chain, and finally find the corresponding Markov chain state transfer matrix P. In practical applications, the MCMC sampling algorithm has the situation that most of the sampled values ​​are rejected for transfer. In this regard, a Metropolis-Hastings sampling method is proposed. MH sampling solves the problem of low MCMC sampling acceptance rate. By making corresponding modifications to the detailed stationary condition equation, the sampling range is expanded to obtain more samples. Summary of the invention

[0005] 1. Technical problems to be solved:

[0006] In view of the above technical problems, the present invention provides a distribution network line parameter identification method and system based on MH sampling to achieve parameter identification.

[0007] 2. Technical solution:

[0008] A distribution network line parameter identification method and system based on MH sampling, characterized in that it includes the following steps:

[0009] Step 1: Given the stationary distribution π(x) of the resistance and reactance parameters R and X of the line to be identified, the line parameter samples are generated based on the distribution network ledger data using the Metropolis-Hastings sampling method;

[0010] Step 2: Perform power flow calculation on the voltage value on the low voltage side for the sample value generated in step 1, and compare the calculated value with the measured voltage to construct a loss function;

[0011] Step 3: Update the parameter distribution sampling interval according to the loss function and TPE method;

[0012] Step 4: During the entire sampling process, the preset convergence accuracy is used to determine whether the algorithm iteration process is completed, and finally the corresponding sampling value is obtained, which is the line resistance and reactance to be identified.

[0013] Furthermore, the step 1 specifically includes:

[0014] S11: Given the stationary distribution π(x) of the line parameters R and X to be identified; setting the state transfer matrix Q(ij), i and j represent two states; setting the number of transfers of the parameter sample n1; setting the number of samples to be collected n2;

[0015] S12: using probability distribution sampling to obtain the initial state values ​​of line parameters R and X, which are r0 and x0 respectively;

[0016] S13: The initial state values ​​r0 and x0 are transferred according to the state transfer matrix Q(i|j), which is determined by the conditional probability distribution P(x n |x n-1 ) to obtain line sample r * 、x * ;

[0017] S14: Using the reference distribution, randomly sampling from the uniform distribution to obtain δ, and combining the acceptance rate function α(x n →x * ) to make a judgment: The specific process is: if δ<α(x n →x * ), x n =x*

[0018] If δ>α(x n →x * ), x n =x n-1 (1)

[0019] The acceptance rate function is defined as follows:

[0020]

[0021] (2) Where π(i) and π(j) are the probability distributions of states i and j respectively; Q(i,j) and Q(j,i) are the state transfer matrices;

[0022] S15: When the number of transition states n1 is met, the parameter sample generated by the steady state distribution is the sample we need, that is,

[0023] Furthermore, in S12, the probability distributions of the initial state values ​​of the line parameters R and X obtained by using probability distribution sampling are Gaussian respectively; and in S14, the distribution in the reference distribution is uniform distribution U(0,1).

[0024] Furthermore, in step 3, the updating of the parameter distribution sampling interval by the heuristic algorithm TPE specifically includes:

[0025] S31: In the TPE algorithm, the conditional probability p(x|y) is divided into two parts, l(x) and g(x), and modeled separately. l(x) and g(x) are fitted according to the loss function result, as shown in the following formula (3):

[0026]

[0027] (3) where x corresponds to the parameters R and X that need to be identified; y represents the value of the loss function obtained by power flow calculation;

[0028] The TPE method is used to implement the threshold y * The observation points x on both sides construct different distributions; the threshold y * is the quantile of y, that is, p(y<y * ) = γ, where the hyperparameter γ is usually selected as 0.25 based on experience;

[0029] S32: The optimal sample distribution in sample x is obtained by the following formula (4):

[0030]

[0031] (4) In the formula, y* represents the quantile of y, i.e., p(y<y *)=γ; calculated by formula (4), The parameter distribution interval with the smallest error distance is the optimal sample distribution.

[0032] Furthermore, step one also includes processing abnormal data with large fluctuations or unchanged changes in sample data;

[0033] The process of identifying large fluctuations or unchanged fluctuations is as follows: set the data precision to three decimal places, and measure the data change formula as follows:

[0034]

[0035] (5) Where: x t+1 、x t These are the data collected at t+1 and t times respectively;

[0036] When k = 0, it is defined as unchanged data; when k ≥ 1.5, it is defined as large data fluctuation;

[0037] If the data is abnormal, replace the data with the corresponding average value.

[0038] Furthermore, the power flow calculation in step 2 uses the end active power P, end reactive power Q, end voltage U, and end current I of the line for power flow calculation. The transmission line of its circuit topology model uses a π-type equivalent circuit, and the transformer model uses a Г-type equivalent circuit.

[0039] Furthermore, the loss function is designed based on the power flow calculation results, and the loss function results are used to determine whether the parameters identified by the algorithm reach the preset convergence accuracy ε, where the loss function is as follows:

[0040]

[0041] (6) where a and b are the preset related influence coefficients; μ and σ are the mean and variance of the voltage respectively; u i is the voltage of the ith line.

[0042] A distribution network line parameter identification system based on MH sampling, comprising:

[0043] Sample data acquisition module; data processing module; loss function design module; distribution update module; the sample data acquisition module is used to acquire the ledger data of the distribution network as sample data, given the stationary distribution π(x) of the resistance and reactance parameters R and X of the line to be identified, and generate samples of line parameters based on the Metropolis-Hastings sampling method;

[0044] The data processing module is used to perform power flow calculation on the sample values ​​obtained by sampling, calculate the voltage value on the low voltage side, and compare it with the measured voltage, so as to construct a loss function;

[0045] The loss function design module is used to design the loss function according to the voltage calculation value and measurement value of the low voltage side obtained by power flow calculation;

[0046] The update distribution module is used to update the parameter distribution sampling interval according to the loss function and the TPE method.

[0047] 3. Beneficial effects:

[0048] The present invention discloses a distribution network line parameter identification method and system based on MH sampling, and the calculation method includes: given the stationary distribution π(x) of the line parameters R and X to be identified; generating samples of the line parameters based on the Metropolis-Hastings sampling method; performing flow calculation based on the sample values ​​obtained by sampling; designing the loss function according to the flow calculation results and the measured values; and updating the parameter distribution sampling interval according to the loss function and the heuristic algorithm-TPE method. Finally, the line parameters R and X to be identified are obtained through iterative calculation of the algorithm. The method of the present invention solves the problem that the distribution network ledger data is limited, resulting in inaccurate distribution network related calculations and low precision of other parameter identification algorithms. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a flow chart of the identification method of the present invention;

[0050] Figure 2 It is a model diagram of the identification system in the present invention;

[0051] Figure 3 It is a line model diagram of power flow calculation in the present invention;

[0052] Figure 4 It is a transformer model diagram for power flow calculation in the present invention. DETAILED DESCRIPTION

[0053] The present invention will be described in detail below with reference to the accompanying drawings.

[0054] As attached Figure 1 To Attachment Figure 2 As shown, a distribution network line parameter identification method and system based on MH sampling is characterized by comprising the following steps:

[0055] Step 1: Given the stationary distribution π(x) of the resistance and reactance parameters R and X of the line to be identified, the line parameter samples are generated based on the distribution network ledger data using the Metropolis-Hastings sampling method;

[0056] Step 2: Perform power flow calculation on the voltage value on the low voltage side for the sample value generated in step 1, and compare the calculated value with the measured voltage to construct a loss function;

[0057] Step 3: Update the parameter distribution sampling interval according to the loss function and TPE method;

[0058] Step 4: During the entire sampling process, the preset convergence accuracy is used to determine whether the algorithm iteration process is completed, and finally the corresponding sampling value is obtained, which is the line resistance and reactance to be identified.

[0059] Furthermore, the step 1 specifically includes:

[0060] S11: Given the stationary distribution π(x) of the line parameters R and X to be identified; setting the state transfer matrix Q(i|j), where i and j represent two states; setting the number of transfers of the parameter sample n1; setting the number of samples to be collected n2;

[0061] S12: using probability distribution sampling to obtain the initial state values ​​of line parameters R and X, which are r0 and x0 respectively;

[0062] S13: The initial state values ​​r0 and x0 are transferred according to the state transfer matrix Q(i|j), which is determined by the conditional probability distribution P(x n |x n-1 ) to obtain line sample r * 、x * ;

[0063] S14: Using the reference distribution, randomly sampling from the uniform distribution to obtain δ, and combining the acceptance rate function α(x n →x * ) to make a judgment: The specific process is: if δ<α(x n →x * ), x n =x *

[0064] If δ>α(x n →x * ), x n =x n-1 (1)

[0065] The acceptance rate function is defined as follows:

[0066]

[0067] (2) Where π(i) and π(j) are the probability distributions of states i and j respectively; Q(i,j) and Q(j,i) are the state transfer matrices;

[0068] S15: When the number of transition states n1 is met, the parameter sample generated by the steady state distribution is the sample we need, that is,

[0069] Furthermore, in S12, the probability distributions of the initial state values ​​of the line parameters R and X obtained by using probability distribution sampling are Gaussian respectively; and in S14, the distribution in the reference distribution is uniform distribution U(0,1).

[0070] Furthermore, in step 3, the updating of the parameter distribution sampling interval by the heuristic algorithm TPE specifically includes:

[0071] S31: In the TPE algorithm, the conditional probability p(x|y) is divided into two parts, l(x) and g(x), and modeled separately. l(x) and g(x) are fitted according to the loss function result, as shown in the following formula (3):

[0072]

[0073] (3) where x corresponds to the parameters R and X that need to be identified; y represents the value of the loss function obtained by power flow calculation;

[0074] The TPE method is used to implement the threshold y * The observation points x on both sides construct different distributions; the threshold y * is the quantile of y, that is, p(y<y * ) = γ, where the hyperparameter γ is usually selected as 0.25 based on experience.

[0075] S32: The optimal sample distribution in sample x is obtained by the following formula (4):

[0076]

[0077] (4) In the formula, y* represents the quantile of y, i.e., p(y<y * )=γ; calculated by formula (4), The parameter distribution interval with the smallest error distance is the optimal sample distribution.

[0078] Furthermore, step one also includes processing abnormal data with large fluctuations or unchanged changes in sample data;

[0079] The process of identifying large fluctuations or unchanged fluctuations is as follows: set the data precision to three decimal places, and measure the data change formula as follows:

[0080]

[0081] (5) Where: x t+1 、x tThese are the data collected at t+1 and t times respectively;

[0082] When k = 0, it is defined as unchanged data; when k ≥ 1.5, it is defined as large data fluctuation;

[0083] If the data is abnormal, replace the data with the corresponding average value.

[0084] Furthermore, as attached Figure 3-4 As shown, the power flow calculation in step 2 uses the end active power P, end reactive power Q, end voltage U, and end current I of the line for power flow calculation. The transmission line of its circuit topology model uses a π-type equivalent circuit, and the transformer model uses a Г-type equivalent circuit.

[0085] Furthermore, the loss function is designed based on the power flow calculation results, and the loss function results are used to determine whether the parameters identified by the algorithm reach the preset convergence accuracy ε, where the loss function is as follows:

[0086]

[0087] (6) where a and b are the preset related influence coefficients; μ and σ are the mean and variance of the voltage respectively; u i is the voltage of the ith line.

[0088] A distribution network line parameter identification system based on MH sampling, comprising:

[0089] Sample data acquisition module; data processing module; loss function design module; distribution update module; the sample data acquisition module is used to acquire the ledger data of the distribution network as sample data, given the stationary distribution π(x) of the resistance and reactance parameters R and X of the line to be identified, and generate samples of line parameters based on the Metropolis-Hastings sampling method;

[0090] The data processing module is used to perform power flow calculation on the sample values ​​obtained by sampling, calculate the voltage value on the low voltage side, and compare it with the measured voltage, so as to construct a loss function;

[0091] The loss function design module is used to design the loss function according to the voltage calculation value and measurement value of the low voltage side obtained by power flow calculation;

[0092] The update distribution module is used to update the parameter distribution sampling interval according to the loss function and the TPE method.

[0093] Although the present invention has been disclosed as above in terms of preferred embodiments, they are not intended to limit the present invention. Anyone skilled in the art can make various changes or modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection defined by the claims of this application.

Claims

1. A distribution network line parameter identification method based on MH sampling, characterized in that: The following steps are involved: Step 1: Given the stationary distribution π(x) of the resistance and reactance parameters R and X of the line to be identified, the line parameter samples are generated based on the distribution network ledger data using the Metropolis-Hastings sampling method; Step 2: Perform power flow calculation on the voltage value on the low voltage side for the sample value generated in step 1, and compare the calculated value with the measured voltage to construct a loss function; Step 3: Update the parameter distribution sampling interval according to the loss function and TPE method; Step 4: During the entire sampling process, the preset convergence accuracy is used to determine whether the algorithm iteration process is completed, and finally the corresponding sampling value is obtained, which is the resistance and reactance of the line to be identified; The step 1 specifically includes: S11: Given the stationary distribution π(x) of the line parameters R and X to be identified; setting the state transfer matrix Q(i|j), where i and j represent two states; setting the number of transfers of the parameter sample n1; setting the number of samples to be collected n2; S12: using probability distribution sampling to obtain the initial state values ​​of line parameters R and X, which are r0 and x0 respectively; S13: The initial state values ​​r0 and x0 are transferred according to the state transfer matrix Q(i|j), which is determined by the conditional probability distribution P(x n |x n-1 ) to obtain line sample r * 、x * ; S14: Using the reference distribution, randomly sampling from the uniform distribution to obtain δ, and combining the acceptance rate function α(x n →x * ) to make a judgment: The specific process is: if δ<α(x n →x * ), x n =x * If d>a(x n →x * ),x n =x n-1 (1) The acceptance rate function is defined as follows: (2) Where π(i) and π(j) are the probability distributions of states i and j respectively; Q(i,j) and Q(j,i) are the state transfer matrices; S15: When the number of transition states n1 is met, the parameter sample generated by the steady state distribution is the sample we need, that is, In step 3, the update of the parameter distribution sampling interval through the heuristic algorithm-TPE specifically includes: S31: In the TPE algorithm, the conditional probability p(x|y) is divided into two parts, l(x) and g(x), and modeled separately. l(x) and g(x) are fitted according to the loss function result, as shown in the following formula (3): (3) where x corresponds to the parameters R and X to be identified; y represents the value of the loss function obtained by power flow calculation; the TPE method is used to implement the threshold y * The observation points x on both sides construct different distributions; the threshold y * is the quantile of y, that is, p(y<y * ) = γ, where the hyperparameter γ is usually selected as 0.25 based on experience; S32: The optimal sample distribution in sample x is obtained by the following formula (4): (4) In the formula, y* represents the quantile of y, i.e., p(y<y * )=γ; calculated by formula (4), The parameter distribution interval with the smallest error distance is the optimal sample distribution; The loss function is designed based on the power flow calculation results, and the loss function results are used to determine whether the parameters identified by this algorithm reach the preset convergence accuracy ε. The loss function is as follows: (6) where a and b are the preset related influence coefficients; μ and σ are the mean and variance of the voltage respectively; u i is the voltage of the ith line.

2. The method for identifying distribution network line parameters based on MH sampling according to claim 1, characterized in that: In S12, the probability distribution of the initial state values ​​of the line parameters R and X obtained by probability distribution sampling is Gaussian respectively; in S14, the distribution in the reference distribution is uniform distribution U(0,1).

3. The method for identifying distribution network line parameters based on MH sampling according to claim 1, characterized in that: Step 1 also includes processing abnormal data with large fluctuations or unchanged changes in sample data; The process of identifying large fluctuations or unchanged fluctuations is as follows: set the data precision to three decimal places, and measure the data change formula as follows: (5) Where: x t+1 、x t These are the data collected at t+1 and t times respectively; When k = 0, it is defined as unchanged data; when k ≥ 1.5, it is defined as large data fluctuation; If the data is abnormal, replace the data with the corresponding average value.

4. The method for identifying distribution network line parameters based on MH sampling according to claim 1, characterized in that: The power flow calculation in step 2 uses the end active power P, end reactive power Q, end voltage U, and end current I of the line for power flow calculation. The transmission line of its circuit topology model uses a π-type equivalent circuit, and the transformer model uses a Г-type equivalent circuit.

5. A distribution network line parameter identification system based on MH sampling, using a distribution network line parameter identification method based on MH sampling as claimed in any one of claims 1 to 4, characterized in that: include: Get sample data module; Data processing module; Loss function design module; Update distribution module; The sample data acquisition module is used to obtain the ledger data of the distribution network as sample data, and given the stationary distribution π(x) of the line resistance and reactance parameters R and X to be identified, the sample data is used to generate line parameter samples based on the Metropolis-Hastings sampling method; the data processing module is used to perform power flow calculation on the sample values ​​obtained by sampling, calculate the voltage value on the low-voltage side, and compare it with the measured voltage, so as to construct a loss function; The loss function design module is used to design the loss function according to the voltage calculation value and the measured value of the low voltage side obtained by the power flow calculation; The update distribution module is used to update the parameter distribution sampling interval according to the loss function and the TPE method.

Citation Information

Patent Citations

  • Distribution network equipment parameter identification method based on least square method

    CN109361211A

  • Method for estimating road section free flow velocity and intersection upstream arrival flow rate

    CN110148295A