CN108596475B - PMU data recovery method based on dynamic change of interpolation interval - Google Patents

PMU data recovery method based on dynamic change of interpolation interval Download PDF

Info

Publication number
CN108596475B
CN108596475B CN201810366777.8A CN201810366777A CN108596475B CN 108596475 B CN108596475 B CN 108596475B CN 201810366777 A CN201810366777 A CN 201810366777A CN 108596475 B CN108596475 B CN 108596475B
Authority
CN
China
Prior art keywords
data
restored
stage
lost
interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810366777.8A
Other languages
Chinese (zh)
Other versions
CN108596475A (en
Inventor
刘灏
毕天姝
杨智伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
North China Electric Power University
Original Assignee
North China Electric Power University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by North China Electric Power University filed Critical North China Electric Power University
Priority to CN201810366777.8A priority Critical patent/CN108596475B/en
Publication of CN108596475A publication Critical patent/CN108596475A/en
Application granted granted Critical
Publication of CN108596475B publication Critical patent/CN108596475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Theoretical Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Complex Calculations (AREA)

Abstract

本发明公开了属于PMU数据恢复技术领域的一种基于插值区间动态变化的PMU数据恢复方法。所述方法包括:根据PMU丢失数据的实际场景,定义了单点数据丢失场景和连续多点数据丢失场景;确定丢失数据的恢复顺序,提出了一种基于插值区间动态变化的优先级恢复方法;恢复丢失数据,提出了改进的三次样条插值函数,通过对变量提出约束条件,使得样条曲线更加平坦。本发明在系统处不同状态下,对不同类型的丢失数据均可有效恢复,解决了传统方法在连续多点数据丢失场景下的失真问题,对于保证PMU数据质量有着重大意义和较大价值。

Figure 201810366777

The invention discloses a PMU data recovery method based on the dynamic change of interpolation interval, which belongs to the technical field of PMU data recovery. The method includes: defining a single-point data loss scenario and a continuous multi-point data loss scenario according to the actual scenario of the PMU losing data; determining the recovery sequence of the lost data, and proposing a priority recovery method based on the dynamic change of the interpolation interval; To recover the lost data, an improved cubic spline interpolation function is proposed, which makes the spline curve flatter by putting forward constraints on the variables. The present invention can effectively recover different types of lost data in different states of the system, solves the distortion problem of the traditional method in the scenario of continuous multi-point data loss, and has great significance and great value for ensuring the quality of PMU data.

Figure 201810366777

Description

一种基于插值区间动态变化的PMU数据恢复方法A PMU data recovery method based on dynamic change of interpolation interval

技术领域technical field

本发明属于PMU数据恢复技术领域,尤其涉及一种基于插值区间动态变化的PMU数据恢复方法。The invention belongs to the technical field of PMU data recovery, and in particular relates to a PMU data recovery method based on dynamic changes of interpolation intervals.

背景技术Background technique

随着大规模可再生能源开发利用和智能电网的发展,我国当前已建成世界上服务人口最多、覆盖范围最广、输电电压等级最高、容纳可再生能源最多的超大规模复杂互联电力系统。电力系统的机理特性、分析方法和运行控制方式均发生根本性变化。电力系统整体性日益突出,跨区域、跨电压等级的系统性连锁故障逐渐成为一种常态,闭环精细化控制需求明显。同步相量测量单元(Phasor Measurement Units,PMUs)因其同步性、快速性和精确性,使电力系统动态实时监测成为可能,可为系统保护与闭环控制提供数据基础。目前,中国已安装投运了3000台左右PMU装置,覆盖全部220kV及以上变电站、主力发电厂和新能源并网汇集站。另外,大约2000台商用级PMU已安装在北美地区。然而,由于现场环境复杂,受到同步信号丢失、通信协议错误、系统过载、传输延迟等因素的影响,PMU不可避免地存在数据丢失等问题,严重影响其在动态监测与闭环控制等方面的应用,甚至威胁电网安全。在电网拓扑未知,仅有PMU量测信息的背景下,PMU数据丢失会导致电网脆弱且不可观,易受到扰动攻击甚至造成大停电事故。因此,PMU数据恢复已成为保障电力系统安全的关键问题。在现有技术中,大多采用时间序列法、矩阵低秩法、状态估计法等。这些方法均可以有效恢复单点丢失数据,然而对于连续多点数据丢失尚未有较好的恢复效果。With the development and utilization of large-scale renewable energy and the development of smart grid, my country has built a super-large-scale complex interconnected power system that serves the largest population, covers the widest range, has the highest transmission voltage level, and accommodates the most renewable energy in the world. The mechanism characteristics, analysis methods and operation control methods of power systems have undergone fundamental changes. The integrity of the power system has become increasingly prominent, and the systematic cascading failures across regions and voltage levels have gradually become a norm, and the demand for closed-loop refined control is obvious. Synchronized phasor measurement units (Phasor Measurement Units, PMUs) enable dynamic real-time monitoring of power systems because of their synchronization, rapidity and accuracy, and provide data foundation for system protection and closed-loop control. At present, about 3,000 PMU units have been installed and put into operation in China, covering all 220kV and above substations, main power plants and new energy grid-connected collection stations. In addition, approximately 2,000 commercial-grade PMUs have been installed in North America. However, due to the complex field environment and the influence of synchronization signal loss, communication protocol error, system overload, transmission delay and other factors, PMU inevitably has problems such as data loss, which seriously affects its application in dynamic monitoring and closed-loop control. Even threaten the security of the power grid. Under the background of unknown power grid topology and only PMU measurement information, the loss of PMU data will make the power grid fragile and unobservable, vulnerable to disturbance attacks and even cause blackouts. Therefore, PMU data recovery has become a key issue to ensure the security of the power system. In the prior art, time series method, matrix low-rank method, state estimation method, etc. are mostly used. All of these methods can effectively recover single-point data loss, but there is no good recovery effect for continuous multi-point data loss.

发明内容SUMMARY OF THE INVENTION

针对上述问题,本发明提出了一种基于插值区间动态变化的PMU数据恢复方法,其特征在于,包括以下步骤:In view of the above problems, the present invention proposes a PMU data recovery method based on the dynamic change of the interpolation interval, which is characterized in that it includes the following steps:

步骤1、建立PMU数据丢失的两种基本场景,包括单点数据丢失场景和连续多点数据丢失场景;Step 1. Establish two basic scenarios of PMU data loss, including single-point data loss scenarios and continuous multi-point data loss scenarios;

步骤2、分析数据的丢失类型,确定数据丢失场景;Step 2. Analyze the data loss type and determine the data loss scenario;

步骤3、确定丢失数据的恢复顺序,若在连续多点数据丢失场景下,考虑数据恢复的优先级分配,根据丢失数据个数的奇偶性,计算丢失数据的恢复顺序;若在单点数据丢失场景下,则无需考虑优先级分配;Step 3. Determine the recovery order of the lost data. In the scenario of continuous multi-point data loss, consider the priority allocation of data recovery, and calculate the recovery order of the lost data according to the parity of the number of lost data; if the data is lost at a single point In scenarios, priority allocation need not be considered;

步骤4、在确定丢失数据恢复顺序的基础上,利用改进的标准三次样条插值函数,对不同场景下的丢失数据进行恢复。Step 4. On the basis of determining the recovery sequence of the lost data, the improved standard cubic spline interpolation function is used to recover the lost data in different scenarios.

所述单点数据丢失场景是指在一段时间内,所获得一组PMU量测数据中仅存在单一数据丢失的场景。The single-point data loss scenario refers to a scenario in which only a single data loss exists in a set of PMU measurement data obtained within a period of time.

所述连续多点数据丢失场景是指在一段时间内,所获得一组PMU量测数据中存在连续多点数据丢失的场景。The continuous multi-point data loss scenario refers to a scenario in which there is continuous multi-point data loss in a set of obtained PMU measurement data within a period of time.

所述步骤3在连续多点数据丢失场景下,采用基于差值区间动态变化的优先级恢复方法计算丢失数据的恢复顺序,具体计算方法为:In the step 3, under the scenario of continuous multi-point data loss, the priority recovery method based on the dynamic change of the difference interval is used to calculate the recovery order of the lost data, and the specific calculation method is as follows:

(1)当连续丢失数据个数为奇数时(1) When the number of consecutive lost data is odd

假设在一段时间内,所获得一组PMU量测数据中存在5个连续丢失的数据,分别为Xn-2,Xn-1,Xn,Xn+1,Xn+2Assume that there are 5 consecutive missing data in a set of PMU measurement data obtained in a period of time, namely X n-2 , X n-1 , X n , X n+1 , X n+2 ;

步骤1、输入全部PMU数据X1,X2,...,Xm、丢失数据个数N、恢复次数M、相邻间隔Z,其中,M=N;Step 1. Input all PMU data X 1 , X 2 , . . . , X m , the number of lost data N, the number of recovery times M, and the adjacent interval Z, where M=N;

步骤2、计算第一阶段待恢复数据的选定点相邻间隔Z1,计算公式如下:Step 2. Calculate the adjacent interval Z 1 of the selected points of the data to be restored in the first stage, and the calculation formula is as follows:

Figure BDA0001637480930000021
Figure BDA0001637480930000021

步骤3、确定第一阶段待恢复数据Xn,其中

Figure BDA0001637480930000031
选择Xn前后各4个相邻间隔为Z1的点,利用改进的标准三次样条插值函数恢复数据XnStep 3. Determine the data X n to be restored in the first stage, where
Figure BDA0001637480930000031
Select 4 adjacent points with an interval of Z 1 before and after X n , and use the improved standard cubic spline interpolation function to restore the data X n ;

步骤4、计算第二阶段待恢复数据的选定点相邻间隔Z2,计算公式如下:Step 4. Calculate the adjacent interval Z 2 of the selected points of the data to be restored in the second stage, and the calculation formula is as follows:

Z2=Z1-1Z 2 =Z 1 -1

步骤5、确定第二阶段待恢复数据Xn-2和Xn+2,利用已有数据和第一个阶段恢复的数据Xn,利用改进的标准三次样条插值函数恢复数据Xn-2和Xn+2Step 5. Determine the data X n-2 and X n+2 to be restored in the second stage, use the existing data and the data X n restored in the first stage, and use the improved standard cubic spline interpolation function to restore the data X n-2 and X n+2 ;

步骤6、计算第三阶段待恢复数据的选定点相邻间隔Z3,计算公式如下:Step 6. Calculate the adjacent interval Z 3 of the selected point of the data to be restored in the third stage, and the calculation formula is as follows:

Z3=Z2-1Z 3 =Z 2 -1

步骤7、确定第三阶段待恢复数据Xn-1和Xn+1,利用已有数据和前两个阶段恢复的数据Xn、Xn-2和Xn+2,利用改进的标准三次样条插值函数恢复数据Xn-1和Xn+1Step 7. Determine the data Xn -1 and Xn +1 to be restored in the third stage, use the existing data and the data Xn , Xn -2 and Xn +2 restored in the first two stages, and use the improved standard three times The spline interpolation function restores the data X n-1 and X n+1 ;

(2)当连续丢失数据个数为偶数时(2) When the number of consecutive lost data is even

假设在一段时间内,所获得一组PMU量测数据中存在6个连续丢失的数据,分别为Xn-3,Xn-2,Xn-1,Xn,Xn+1,Xn+2Assume that there are 6 consecutive missing data in a set of PMU measurement data obtained in a period of time, namely X n-3 , X n-2 , X n-1 , X n , X n+1 , X n +2 ;

步骤a、输入全部PMU数据X1,X2,...,Xm、丢失数据个数N、恢复次数M、相邻间隔Z,其中,M=N;Step a. Input all PMU data X 1 , X 2 , . . . , X m , the number of lost data N, the number of recovery times M, and the adjacent interval Z, where M=N;

步骤b、计算第一阶段待恢复数据的选定点相邻间隔Z1,计算公式如下:Step b. Calculate the adjacent interval Z 1 of the selected points of the data to be restored in the first stage, and the calculation formula is as follows:

Figure BDA0001637480930000032
Figure BDA0001637480930000032

步骤c、确定第一阶段待恢复数据Xn-1和Xn,其中

Figure BDA0001637480930000033
选择与待恢复数据前后各4个相邻间隔为Z1的点,利用改进的标准三次样条插值函数恢复数据Xn-1和Xn;Step c, determine the data X n-1 and X n to be restored in the first stage, wherein
Figure BDA0001637480930000033
Select four adjacent points that are Z 1 before and after the data to be restored, and use the improved standard cubic spline interpolation function to restore the data X n-1 and X n ;

步骤d、计算第二阶段待恢复数据的选定点相邻间隔Z2,计算公式如下:Step d, calculate the adjacent interval Z 2 of the selected points of the data to be restored in the second stage, and the calculation formula is as follows:

Z2=Z1-1Z 2 =Z 1 -1

步骤e、确定第二阶段待恢复数据Xn-3和Xn+2,利用已有数据和第一个阶段恢复的数据Xn-1和Xn,利用改进的标准三次样条插值函数恢复数据Xn-3和Xn+2Step e. Determine the data X n-3 and X n+2 to be restored in the second stage, use the existing data and the data X n-1 and X n restored in the first stage, and use the improved standard cubic spline interpolation function to restore data Xn -3 and Xn +2 ;

步骤f、计算第三阶段待恢复数据的选定点相邻间隔Z3,计算公式如下:Step f, calculate the adjacent interval Z 3 of the selected point of the data to be restored in the third stage, and the calculation formula is as follows:

Z3=Z2-1Z 3 =Z 2 -1

步骤g、确定第三阶段待恢复数据Xn-2和Xn+1,利用已有数据和前两个阶段恢复的数据Xn-1、Xn、Xn-3和Xn+2,利用改进的标准三次样条插值函数恢复数据Xn-2和Xn+1Step g, determine the data Xn -2 and Xn +1 to be restored in the third stage, use the existing data and the data Xn -1 , Xn , Xn -3 and Xn +2 restored in the first two stages, The data Xn -2 and Xn +1 are recovered using a modified standard cubic spline interpolation function.

所述改进的标准三次样条插值函数的建模方法为:The modeling method of the improved standard cubic spline interpolation function is:

(1)构造三次样条插值函数(1) Construct a cubic spline interpolation function

给定函数given function

yi=f(xi),i=1,2,...,n (1)y i =f(x i ), i=1,2,...,n (1)

其中,in,

a=x0<x1<x2<...<xn=b,[a,b]a=x 0 <x 1 <x 2 <...<x n =b, [a, b]

如果S(x)=y在每个子区间[xk,xk+1](k=1,2,...,n-1)上,为不超过三次的多项式,且S(xi)=yi,i=1,2,...,n;并且S(x)、S′(x)、S″(x)在[a,b]上连续,则称S(x)为f(x)在节点x0,x1,x2,…xn上的三次样条插值函数;If S(x)=y is on each subinterval [x k , x k +1 ] (k=1, 2, . =y i , i=1,2,...,n; and S(x), S'(x), S"(x) are continuous on [a, b], then S(x) is called f (x) cubic spline interpolation function on nodes x 0 , x 1 , x 2 , ... x n ;

(2)令Mi=S″(xi),在区间[xi,xi+1]上,S(x)=Si(x)的二阶导数可表示为:(2) Let M i =S″(x i ), on the interval [x i , x i+1 ], the second derivative of S(x)=S i (x) can be expressed as:

Figure BDA0001637480930000041
Figure BDA0001637480930000041

其中,in,

hi=xi+1-xi h i =x i+1 -x i

(3)对公式(1)连续两次积分,得到:(3) Integrate formula (1) for two consecutive times to obtain:

Figure BDA0001637480930000051
Figure BDA0001637480930000051

Figure BDA0001637480930000052
Figure BDA0001637480930000052

由连续性S′(xi-)=S′(xi+),可得:From the continuity S'(x i- )=S'(x i+ ), we can get:

μiMi-1+2MiiMi=di(i=1,2,...,n-1) (5)μ i M i-1 +2M ii M i =d i (i=1,2,...,n-1) (5)

其中,in,

Figure BDA0001637480930000053
Figure BDA0001637480930000053

(4)根据边界条件S′(x0)=y0′,S′(xn)=yn′,将公式(5)表示为以下矩阵形式:(4) According to the boundary conditions S'(x 0 )=y 0 ', S'(x n )=y n ', formula (5) is expressed as the following matrix form:

Figure BDA0001637480930000054
Figure BDA0001637480930000054

方程(7)系数矩阵严格对角占优,有唯一解,The coefficient matrix of equation (7) is strictly diagonally dominant and has a unique solution,

S(x)在每个区间[xi,xi+1]上Si(x)为:S(x) S i (x) on each interval [ xi , x i+1 ] is:

Figure BDA0001637480930000055
Figure BDA0001637480930000055

(5)构造改进的三次样条插值函数(5) Constructing an improved cubic spline interpolation function

假设Si(x)在区间[xi-1,xi](i=1,2,...,n)上的极大值、极小值分别为Simax和Simin,则S(x)在区间[a,b]上的极值差为:Assuming that the maximum value and minimum value of S i (x) on the interval [x i-1 , x i ] (i=1, 2, ..., n) are S imax and S imin respectively , then S( The extreme value difference of x) on the interval [a, b] is:

Figure BDA0001637480930000061
Figure BDA0001637480930000061

假设S′(x0)=y0′,S′(xn)=yn′未知,由S(x)的极值差得到:Assuming that S'(x 0 )=y 0 ', S'(x n )=y n ' is unknown, it can be obtained from the extreme value difference of S(x):

Figure BDA0001637480930000062
Figure BDA0001637480930000062

式中,f(xi)为任意函数;a、b为自变量x取值区间;Mi为三次样条插值函数的二阶导数。In the formula, f(x i ) is an arbitrary function; a and b are the value intervals of the independent variable x; M i is the second derivative of the cubic spline interpolation function.

本发明的有益效果在于:The beneficial effects of the present invention are:

(1)本发明在系统处于不同状态下,对不同类型的丢失数据均可有效恢复数据,此外本发明不受电网拓扑结构的约束,仅通过输入PMU实时量测数据即可实现。解决了传统方法在连续多点数据丢失场景下的失真问题,为保证PMU数据质量提供了一种有效、可行的方法。(1) The present invention can effectively recover data for different types of lost data when the system is in different states. In addition, the present invention is not constrained by the topology of the power grid, and can be realized only by inputting the real-time measurement data of the PMU. It solves the distortion problem of the traditional method in the scenario of continuous multi-point data loss, and provides an effective and feasible method for ensuring the quality of PMU data.

(2)本发明提出的一种基于插值区间动态变化的优先级恢复策略,保证了取样间隔与奈奎斯特频率之间的关系,避免了PMU数据的周期信号受损,保证了恢复的准确性。(2) A priority recovery strategy based on the dynamic change of the interpolation interval proposed by the present invention ensures the relationship between the sampling interval and the Nyquist frequency, avoids the damage of the periodic signal of the PMU data, and ensures the accuracy of recovery sex.

(3)本发明对三次样条插值函数改进,给出关于变量M0和Mn的约束条件,保证了样条插值函数的一阶与二阶导数连续。同时避免了龙格现象,使得样条曲线更加平坦。(3) The present invention improves the cubic spline interpolation function, provides constraints on variables M 0 and Mn , and ensures that the first and second derivatives of the spline interpolation function are continuous. At the same time, the Runge phenomenon is avoided and the spline curve is flatter.

附图说明Description of drawings

附图1为一种基于插值区间动态变化的PMU数据恢复方法流程图;Accompanying drawing 1 is a kind of PMU data recovery method flow chart based on the dynamic change of interpolation interval;

附图2(a)为PMU单点数据丢失的基本场景;Figure 2(a) is the basic scenario of PMU single-point data loss;

附图2(b)为PMU连续多点数据丢失的基本场景;Accompanying drawing 2(b) is the basic scene of PMU continuous multi-point data loss;

附图3(a)为PMU不连续多点数据丢失场景;Figure 3 (a) is a PMU discontinuous multi-point data loss scenario;

附图3(b)为PMU复杂数据丢失场景;Figure 3(b) is a PMU complex data loss scenario;

附图4为奇数个数的PMU数据丢失情况;Accompanying drawing 4 is the PMU data loss situation of odd number;

附图5为偶数个数的PMU数据丢失情况;Accompanying drawing 5 is the PMU data loss situation of even number;

附图6为两种方法对不同类型丢失数据恢复结果对比;Accompanying drawing 6 compares two kinds of methods to different types of lost data recovery results;

附图7为某PMU的A相电压幅值与相角测量数据;Accompanying drawing 7 is the A-phase voltage amplitude and phase angle measurement data of a certain PMU;

附图8为稳态下单点丢失数据恢复结果TVE对比;Accompanying drawing 8 is the TVE comparison of single point loss data recovery result under steady state;

附图9为暂态下单点丢失数据数据恢复结果TVE对比;Accompanying drawing 9 is the TVE comparison of the data recovery result of single-point lost data under the transient state;

附图10(a)为稳态下连续多点丢失数据恢复结果;Accompanying drawing 10 (a) is the data recovery result of continuous multi-point loss under steady state;

附图10(b)为暂态下连续多点丢失数据恢复结果;Accompanying drawing 10(b) is the recovery result of continuous multi-point lost data under the transient state;

附图11为稳、暂态下丢失数据个数对传统方法TVE的影响;Accompanying drawing 11 is the influence of the number of lost data on the traditional method TVE under steady and transient state;

附图12(a)为稳态下丢失数据个数对本发明方法TVE的影响;Accompanying drawing 12 (a) is the influence of the number of lost data on TVE of the inventive method under steady state;

附图12(b)为暂态下丢失数据个数对本发明方法TVE的影响;Figure 12(b) is the influence of the number of lost data on the TVE of the method of the present invention under the transient state;

具体实施方式Detailed ways

下面结合附图和实施例对本发明进行详细说明。The present invention will be described in detail below with reference to the accompanying drawings and embodiments.

附图1为一种基于插值区间动态变化的PMU数据恢复方法流程图,如图1所示,所述方法包括以下步骤:Accompanying drawing 1 is a kind of PMU data recovery method flow chart based on interpolation interval dynamic change, as shown in Fig. 1, described method comprises the following steps:

步骤1:建立PMU数据丢失的两种基本场景,包括单点数据丢失场景和连续多点数据丢失场景;Step 1: Establish two basic scenarios of PMU data loss, including single-point data loss scenarios and continuous multi-point data loss scenarios;

步骤2:分析数据的丢失类型,确定数据丢失场景;Step 2: Analyze data loss types and determine data loss scenarios;

步骤3:确定丢失数据的恢复顺序,若在连续多点数据丢失场景下,考虑数据恢复的优先级分配,根据丢失数据个数的奇偶性,计算丢失数据的恢复顺序;若在单点数据丢失场景下,则无需考虑优先级分配;Step 3: Determine the recovery order of the lost data. In the scenario of continuous multi-point data loss, consider the priority allocation of data recovery, and calculate the recovery order of the lost data according to the parity of the number of lost data; if the data is lost at a single point In scenarios, priority allocation need not be considered;

步骤4:在确定丢失数据恢复顺序的基础上,通过对标准三次样条插值函数的改进,对不同场景下的丢失数据进行恢复。Step 4: On the basis of determining the recovery sequence of lost data, recover lost data in different scenarios by improving the standard cubic spline interpolation function.

具体的,在所述步骤1中,为了简化PMU数据丢失问题模型,便于恢复数据,本发明根据PMU数据的准确性、可用性、实时性,以及现场数据丢失的实际情况,定义了数据丢失的两种基本场景,分别为单点数据丢失场景和连续多点数据丢失场景。附图2(a)为单点数据丢失场景,附图2(b)为连续多点数据丢失场景,图2(a)-2(b)中,正方形代表一段时间内的PMU量测数据,其中,白色为丢失数据,黑色为已知数据。其它场景可等效为上述两种场景的不同组合。例如,不连续多点数据丢失场景可等效为多个单点数据丢失场景,如图3(a)所示;复杂数据丢失场景可等效为单点数据和连续多点数据丢失的组合,如图3(b)所示。根据图2(a)、3(a),可将单点数据丢失场景定义为在一段时间内,所获得一组PMU量测数据中仅存在某单一数据丢失的场景;根据图2(b)、3(b),可将连续多点数据丢失场景定义为在一段时间内,所获得一组PMU量测数据中存在连续多点数据丢失的场景。Specifically, in step 1, in order to simplify the PMU data loss problem model and facilitate data recovery, the present invention defines two data loss scenarios according to the accuracy, availability, real-time nature of PMU data, and the actual situation of data loss on site. There are two basic scenarios, namely single-point data loss scenario and continuous multi-point data loss scenario. Figure 2(a) is a single-point data loss scenario, and Figure 2(b) is a continuous multi-point data loss scenario. In Figures 2(a)-2(b), the squares represent the PMU measurement data within a period of time, Among them, white is missing data, black is known data. Other scenarios can be equivalent to different combinations of the above two scenarios. For example, a discontinuous multi-point data loss scenario can be equivalent to multiple single-point data loss scenarios, as shown in Figure 3(a); a complex data loss scenario can be equivalent to a combination of single-point data loss and continuous multi-point data loss, As shown in Figure 3(b). According to Figures 2(a) and 3(a), the single-point data loss scenario can be defined as a scenario in which only a single data loss exists in a set of PMU measurement data obtained within a period of time; according to Figure 2(b) , 3(b), the continuous multi-point data loss scenario can be defined as a scenario in which there is continuous multi-point data loss in a set of PMU measurement data obtained within a period of time.

具体的,在所述步骤3中,依据步骤1建立的PMU丢失数据的两种基本场景,确定丢失数据的恢复顺序,若在单点数据丢失场景下,则无需考虑优先级分配。若在连续多点数据丢失场景下,由于现有方法需要进行大量计算,且结果误差较大,因此本发明提出了一种基于插值区间动态变化的优先级恢复方法,所述方法考虑数据恢复的优先级分配,根据连续丢失数据个数的奇偶性,计算丢失数据的恢复顺序,可有效提高计算精度。针对连续丢失数据个数的奇偶性,分为以下两种情况进行讨论:Specifically, in the step 3, the recovery sequence of the lost data is determined according to the two basic scenarios in which the PMU loses data established in the step 1, and in the scenario of single-point data loss, priority assignment is not required. In the scenario of continuous multi-point data loss, since the existing method needs to perform a large amount of calculation and the result error is large, the present invention proposes a priority recovery method based on the dynamic change of the interpolation interval, which takes the data recovery into consideration. Priority allocation, according to the parity of the number of consecutive lost data, calculates the recovery sequence of lost data, which can effectively improve the calculation accuracy. Regarding the parity of the number of consecutively lost data, the following two cases are discussed:

(1)当连续丢失数据个数为奇数(1) When the number of consecutive lost data is odd

附图4为奇数个数的PMU数据丢失情况,如图4所示,假设Xn-2,Xn-1,Xn,Xn+1,Xn+2为5个连续丢失数据,其余为已知数据,在这种情况下,采用的优先级恢复方法具体步骤如下:Figure 4 shows the data loss situation of an odd number of PMUs. As shown in Figure 4, it is assumed that X n-2 , X n-1 , X n , X n+1 , and X n+2 are 5 consecutive lost data, and the rest For known data, in this case, the specific steps of the priority recovery method adopted are as follows:

步骤1、输入全部PMU数据X1,X2,...,Xm、丢失数据个数N、恢复次数M、相邻间隔Z,其中,M=N;Step 1. Input all PMU data X 1 , X 2 , . . . , X m , the number of lost data N, the number of recovery times M, and the adjacent interval Z, where M=N;

步骤2、计算第一阶段待恢复数据的选定点相邻间隔Z1,计算公式如下:Step 2. Calculate the adjacent interval Z 1 of the selected points of the data to be restored in the first stage, and the calculation formula is as follows:

Figure BDA0001637480930000091
Figure BDA0001637480930000091

步骤3、确定第一阶段待恢复数据Xn,其中

Figure BDA0001637480930000092
选择Xn前后各4个相邻间隔为Z1的点,利用改进的标准三次样条插值函数恢复数据XnStep 3. Determine the data X n to be restored in the first stage, where
Figure BDA0001637480930000092
Select 4 adjacent points with an interval of Z 1 before and after X n , and use the improved standard cubic spline interpolation function to restore the data X n ;

步骤4、计算第二阶段待恢复数据的选定点相邻间隔Z2,计算公式如下:Step 4. Calculate the adjacent interval Z 2 of the selected points of the data to be restored in the second stage, and the calculation formula is as follows:

Z2=Z1-1Z 2 =Z 1 -1

步骤5、确定第二阶段待恢复数据Xn-2和Xn+2,利用已有数据和第一个阶段恢复的数据Xn,利用改进的标准三次样条插值函数恢复数据Xn-2和Xn+2Step 5. Determine the data X n-2 and X n+2 to be restored in the second stage, use the existing data and the data X n restored in the first stage, and use the improved standard cubic spline interpolation function to restore the data X n-2 and X n+2 ;

步骤6、计算第三阶段待恢复数据的选定点相邻间隔Z3,计算公式如下:Step 6. Calculate the adjacent interval Z 3 of the selected point of the data to be restored in the third stage, and the calculation formula is as follows:

Z3=Z2-1Z 3 =Z 2 -1

步骤7、确定第三阶段待恢复数据Xn-1和Xn+1,利用已有数据和前两个阶段恢复的数据Xn、Xn-2和Xn+2,利用改进的标准三次样条插值函数恢复数据Xn-1和Xn+1Step 7. Determine the data Xn -1 and Xn +1 to be restored in the third stage, use the existing data and the data Xn , Xn -2 and Xn +2 restored in the first two stages, and use the improved standard three times The spline interpolation function restores the data Xn -1 and Xn +1 .

(2)当连续丢失数据个数为偶数(2) When the number of consecutive lost data is even

附图5为偶数个数的PMU数据丢失情况,如图5所示,假设Xn-3,Xn-2,Xn-1,Xn,Xn+1,Xn+2为6个连续丢失数据,其余为已知数据,在这种情况下,采用的优先级恢复方法具体步骤如下:Figure 5 shows the loss of even-numbered PMU data. As shown in Figure 5, it is assumed that X n-3 , X n-2 , X n-1 , X n , X n+1 , and X n+2 are 6 The data is lost continuously, and the rest are known data. In this case, the specific steps of the priority recovery method adopted are as follows:

步骤a、输入全部PMU数据X1,X2,...,Xm、丢失数据个数N、恢复次数M、相邻间隔Z,其中,M=N;Step a. Input all PMU data X 1 , X 2 , . . . , X m , the number of lost data N, the number of recovery times M, and the adjacent interval Z, where M=N;

步骤b、计算第一阶段待恢复数据的选定点相邻间隔Z1,计算公式如下:Step b. Calculate the adjacent interval Z 1 of the selected points of the data to be restored in the first stage, and the calculation formula is as follows:

Figure BDA0001637480930000093
Figure BDA0001637480930000093

步骤c、确定第一阶段待恢复数据Xn-1和Xn,其中

Figure BDA0001637480930000094
选择与待恢复数据前后各4个相邻间隔为Z1的点,利用改进的标准三次样条插值函数恢复数据Xn-1和Xn;Step c, determine the data X n-1 and X n to be restored in the first stage, wherein
Figure BDA0001637480930000094
Select four adjacent points that are Z 1 before and after the data to be restored, and use the improved standard cubic spline interpolation function to restore the data X n-1 and X n ;

步骤d、计算第二阶段待恢复数据的选定点相邻间隔Z2,计算公式如下:Step d, calculate the adjacent interval Z 2 of the selected points of the data to be restored in the second stage, and the calculation formula is as follows:

Z2=Z1-1Z 2 =Z 1 -1

步骤e、确定第二阶段待恢复数据Xn-3和Xn+2,利用已有数据和第一个阶段恢复的数据Xn-1和Xn,利用改进的标准三次样条插值函数恢复数据Xn-3和Xn+2Step e. Determine the data X n-3 and X n+2 to be restored in the second stage, use the existing data and the data X n-1 and X n restored in the first stage, and use the improved standard cubic spline interpolation function to restore data Xn -3 and Xn +2 ;

步骤f、计算第三阶段待恢复数据的选定点相邻间隔Z3,计算公式如下:Step f, calculate the adjacent interval Z 3 of the selected point of the data to be restored in the third stage, and the calculation formula is as follows:

Z3=Z2-1Z 3 =Z 2 -1

步骤g、确定第三阶段待恢复数据Xn-2和Xn+1,利用已有数据和前两个阶段恢复的数据Xn-1、Xn、Xn-3和Xn+2,利用改进的标准三次样条插值函数恢复数据Xn-2和Xn+1Step g, determine the data Xn -2 and Xn +1 to be restored in the third stage, use the existing data and the data Xn -1 , Xn , Xn -3 and Xn +2 restored in the first two stages, The data Xn -2 and Xn +1 are recovered using a modified standard cubic spline interpolation function.

根据采样定理,采用的间隔Z满足各个选定点之间间隔和待恢复点间隔相等,以保证取样间隔与奈奎斯特频率之间的关系。相比其他算法,采用该恢复方法不会使PMU数据的周期信号受损。According to the sampling theorem, the adopted interval Z satisfies that the interval between each selected point and the interval to be restored are equal to ensure the relationship between the sampling interval and the Nyquist frequency. Compared with other algorithms, the recovery method does not damage the periodic signal of the PMU data.

具体的,在所述步骤4中,在优先级恢复策略的基础上,本发明采用插值法对丢失数据进行恢复。利用已知数据求取三次样条插值函数,使其与已知数据具有较高拟合度,进而求取丢失数据。为了避免使用高阶多项式造成的龙格现象,本发明对三次样条插值函数进行了改进,在求出满足极值差约束条件下的改进三次样条插值函数,恢复丢失数据,所述改进的三次样条插值函数是在保证求得的样条插值函数的一阶与二阶导数连续的基础上,对变量提出约束条件,使得曲线光滑性好,具有较强的线性逼近能力,并且能有效表征数据变化情况,其建模方法如下所述:Specifically, in the step 4, on the basis of the priority recovery strategy, the present invention adopts the interpolation method to recover the lost data. The cubic spline interpolation function is obtained by using the known data, so that it has a high degree of fit with the known data, and then the missing data is obtained. In order to avoid the Runge phenomenon caused by the use of high-order polynomials, the present invention improves the cubic spline interpolation function, obtains the improved cubic spline interpolation function under the constraint condition of extreme value difference, and restores the lost data. The cubic spline interpolation function is based on ensuring the continuity of the first and second derivatives of the obtained spline interpolation function, and puts forward constraints on the variables, so that the curve has good smoothness, strong linear approximation ability, and can effectively To characterize data changes, the modeling method is as follows:

(1)构造三次样条插值函数(1) Construct a cubic spline interpolation function

给定函数given function

yi=f(xi),i=1,2,...,n (1)y i =f(x i ), i=1,2,...,n (1)

其中,in,

a=x0<x1<x2<...<xn=b,[a,b]a=x 0 <x 1 <x 2 <...<x n =b, [a, b]

如果S(x)=y在每个子区间[xk,xk+1](k=1,2,...,n-1)上,为不超过三次的多项式,且S(xi)=yi,i=1,2,...,n;并且S(x)、S′(x)、S″(x)在[a,b]上连续,则称S(x)为f(x)在节点x0,x1,x2,...xn上的三次样条插值函数。If S(x)=y is on each subinterval [x k , x k +1 ] (k=1, 2, . =y i , i=1,2,...,n; and S(x), S'(x), S"(x) are continuous on [a, b], then S(x) is called f (x) Cubic spline interpolation function at nodes x 0 , x 1 , x 2 , . . . x n .

(2)令Mi=S″(xi),由于三次样条插值法得到的插值公式可以保证在每段区间和边界处的一阶导数平滑,同时二阶导数连续。因此在[xi,xi+1]上,S(x)=Si(x)的二阶导数可表示成:(2) Let M i =S″( xi ), because the interpolation formula obtained by the cubic spline interpolation method can ensure that the first-order derivative is smooth at each interval and boundary, and the second-order derivative is continuous at the same time. Therefore, in [xi i , x i+1 ], the second derivative of S(x)=S i (x) can be expressed as:

Figure BDA0001637480930000111
Figure BDA0001637480930000111

其中,in,

hi=xi+1-xi h i =x i+1 -x i

(3)对公式(1)进行两次连续积分,得到:(3) Perform two consecutive integrals on formula (1) to obtain:

Figure BDA0001637480930000112
Figure BDA0001637480930000112

Figure BDA0001637480930000113
Figure BDA0001637480930000113

由连续性S′(xi-)=S′(xi+),可得:From the continuity S'(x i- )=S'(x i+ ), we can get:

μiMi-1+2MiiMi=di(i=1,2,...,n-1) (5)μ i M i-1 +2M ii M i =d i (i=1,2,...,n-1) (5)

其中,in,

Figure BDA0001637480930000121
Figure BDA0001637480930000121

(4)根据边界条件S′(x0)=y0′,S′(xn)=yn′,将公式(5)表示为以下矩阵形式:(4) According to the boundary conditions S'(x 0 )=y 0 ', S'(x n )=y n ', formula (5) is expressed as the following matrix form:

Figure BDA0001637480930000122
Figure BDA0001637480930000122

(5)构造改进的三次样条插值函数(5) Constructing an improved cubic spline interpolation function

由于三次样条插值函数是关于边界条件的函数,为了使样条曲线更为平坦,本发明根据电力系统变化的实际情况,求得极值差最小。Since the cubic spline interpolation function is a function of boundary conditions, in order to make the spline curve flatter, the present invention obtains the minimum extreme value difference according to the actual situation of the power system change.

假设Si(x)在区间[xi-1,xi](i=1,2,...,n)上的极值分别为Simax和Simin,则S(x)在区间[a,b]上的极值差为:Assuming that the extreme values of S i (x) in the interval [x i-1 , x i ] (i=1, 2, ..., n) are S imax and S imin respectively , then S(x) is in the interval [ The extreme value difference on a, b] is:

Figure BDA0001637480930000123
Figure BDA0001637480930000123

假设S′(x0)=y0′,S′(xn)=yn′未知,则S(x)的极值差即为关于M0和Mn的函数,得到关于M0和Mn的无约束非线性规划的目标函数为:Assuming that S'(x 0 )=y 0 ' and S'(x n )=y n ' are unknown, the extreme value difference of S(x) is a function of M 0 and Mn , and we can obtain about M 0 and M The objective function of the unconstrained nonlinear programming of n is:

Figure BDA0001637480930000124
Figure BDA0001637480930000124

公式(9)为关于M0和Mn的无约束非线性规划问题,由于目标函数含有极值运算,且参数由方程组确定,可以用单纯型替代法求解。Formula (9) is an unconstrained nonlinear programming problem about M 0 and Mn . Since the objective function contains extreme value operations and the parameters are determined by the equation system, it can be solved by the simplex substitution method.

实施例1Example 1

为了对本发明进一步详细说明,本实施例利用Matlab在系统稳态和暂态两种状态下进行仿真测试,并利用PMU实测数据验证,与现有算法的恢复结果进行比较。同步相量测量误差采用综合矢量误差(Total vector error,TVE)衡量,计算公式如下:In order to further describe the present invention in detail, this embodiment uses Matlab to perform simulation tests in two states of the system steady state and transient state, and uses the PMU measured data to verify and compare with the recovery results of the existing algorithms. The measurement error of the synchrophasor is measured by the total vector error (TVE), and the calculation formula is as follows:

Figure BDA0001637480930000131
Figure BDA0001637480930000131

式中,Xr(n)和Xi(n)分别表示输入信号理论值的实部和虚部,X′r(n)和X′i(n)分别表示输入信号估计值的实部和虚部。In the formula, X r (n) and X i (n) represent the real part and imaginary part of the theoretical value of the input signal, respectively, and X' r (n) and X' i (n) represent the real part and the estimated value of the input signal, respectively. imaginary part.

1、仿真测试1. Simulation test

电力系统稳态信号表达式如下:The steady state signal expression of the power system is as follows:

Figure BDA0001637480930000132
Figure BDA0001637480930000132

式中,Xm为相量幅值,f0为工频,

Figure BDA0001637480930000133
为初相角,且Xm=57.73V,f0=50Hz,
Figure BDA0001637480930000134
where X m is the phasor amplitude, f 0 is the power frequency,
Figure BDA0001637480930000133
is the initial phase angle, and X m =57.73V, f 0 =50Hz,
Figure BDA0001637480930000134

在理想条件下,上述信号的相量、频率与频率变化率不会发生任何变化,其输出结果恒定,因此在数据丢失时容易恢复。当系统发生频率偏移,则电力系统暂态信号表达式如下:Under ideal conditions, the phasor, frequency and frequency change rate of the above-mentioned signals will not change, and the output result will be constant, so it is easy to recover when data is lost. When the frequency offset occurs in the system, the transient signal expression of the power system is as follows:

Figure BDA0001637480930000135
Figure BDA0001637480930000135

式中,Δf为频率偏移量,且Δf=5Hz。In the formula, Δf is the frequency offset, and Δf=5Hz.

(1)最优插值点个数测试(1) Optimal number of interpolation points test

本发明采用插值法恢复数据,插值点个数直接影响数据恢复精度与计算速度。因此以上述频率偏移信号为例,测试最优插值点个数。The invention uses the interpolation method to restore data, and the number of interpolation points directly affects the data restoration accuracy and calculation speed. Therefore, take the above frequency offset signal as an example to test the optimal number of interpolation points.

随机选择单点丢失数据,采用不同插值点恢复丢失数据,重复100次实验,并记录结果,测试结果如表1所示,表1中TVE表示均值,结果表明丢失数据前后相邻的8点数据恢复结果最优。Randomly select a single point of lost data, use different interpolation points to restore the lost data, repeat the experiment 100 times, and record the results. The test results are shown in Table 1. In Table 1, TVE represents the mean value, and the results show that the adjacent 8 points of data before and after the lost data The recovery results are optimal.

表1 最优插值点个数Table 1 Optimal number of interpolation points

插值点数number of interpolation points 22 44 66 88 1010 TVE()TVE() 4.89%4.89% 0.160.16 0.060.06 0.070.07 0.070.07

(2)频率偏移时数据恢复结果(2) Data recovery result when frequency offset

利用本发明提出的数据恢复方法对频率偏移信号中不同类型的丢失数据进行恢复,并与现有方法进行对比,对比结果如图6所示,附图6表示频率偏移时,复平面内不同类型丢失数据的恢复效果,图中,横纵坐标轴分别表示实部和虚部,PS与LS为本发明方法和现有方法对单点丢失数据的恢复结果,PM与LS为本发明方法和已有方法对连续多点丢失数据的恢复结果。由图6可知,采用本发明的方法恢复单点丢失数据的TVE为0.07%,优于现有方法的3.06%。在连续多点数据丢失时,现有方法出现严重失真,而本发明提出的方法能够较好地恢复频率偏移信号,保持数据的变化趋势。两种方法的TVE对比结果如表2所示,由表2可知,TVELM随丢失数据增多逐渐增大,TVEPM非线性变化,可有效恢复丢失数据。The data recovery method proposed by the present invention recovers different types of lost data in the frequency offset signal, and compares it with the existing method. The comparison result is shown in Fig. 6. The recovery effects of different types of lost data, in the figure, the axis of abscissa represents the real part and the imaginary part respectively, PS and LS are the recovery results of the method of the present invention and the existing method to single-point lost data, PM and LS are the method of the present invention And the recovery results of the existing methods for continuous multi-point lost data. It can be seen from FIG. 6 that the TVE of recovering single-point lost data using the method of the present invention is 0.07%, which is better than 3.06% of the existing method. When continuous multi-point data is lost, serious distortion occurs in the existing method, but the method proposed in the present invention can better restore the frequency offset signal and maintain the change trend of the data. The TVE comparison results of the two methods are shown in Table 2. It can be seen from Table 2 that the TVELM gradually increases with the increase of the lost data, and the TVEPM changes nonlinearly, which can effectively recover the lost data.

表2 两种方法TVE对比Table 2 TVE comparison of two methods

Figure BDA0001637480930000141
Figure BDA0001637480930000141

2、PMU实测数据测试2. PMU measured data test

本发明分析了中国西部某新能源汇集地区的某次次同步振荡时PMU监测所得数据,并进行了数据恢复验证。某次次同步振荡时PMU的A相电压幅值与相角测量数据如图7所示。The invention analyzes the data obtained by the PMU monitoring during a certain synchronous oscillation in a new energy gathering area in western China, and performs data recovery verification. Figure 7 shows the measured data of the A-phase voltage amplitude and phase angle of the PMU during a certain synchronous oscillation.

(1)系统在稳、暂态下单点数据丢失恢复结果对比(1) Comparison of single-point data loss recovery results under stable and transient conditions of the system

当系统处于稳态时,分别采用本发明方法和现有方法恢复随机选择的单点丢失数据。丢失数据恢复结果TVE对比如图8所示,由图8可以看出,稳态下80%的TVEPS小于1%,仅30%的TVELS小于1%,且恢复结果误差变化较大,难以在实际中应用。When the system is in a steady state, the method of the present invention and the existing method are respectively used to recover the randomly selected single point lost data. The TVE comparison of the lost data recovery results is shown in Figure 8. It can be seen from Figure 8 that 80% of the TVEPS in steady state are less than 1%, and only 30% of the TVELS are less than 1%, and the error of the recovery results varies greatly, which is difficult to use in practice. application in.

当系统处于暂态时,采用同样的两种方法恢复随机选择的单点丢失数据。丢失数据恢复结果TVE对比如图9所示,图9中,PS对应主纵轴坐标,LS对应次纵轴坐标。由此可知,系统发生次同步振荡时,90%的TVEPS小于3%,恢复效果较好,仅少数TVELS小于5%,恢复数据严重失真。由于电压振荡,若丢失数据位于波峰或波谷位置,该方法仅通过前期数据难以恢复变化趋势。When the system is in a transient state, the same two methods are used to recover randomly selected single-point lost data. The TVE comparison of the lost data recovery results is shown in Figure 9. In Figure 9, PS corresponds to the primary vertical axis coordinate, and LS corresponds to the secondary vertical axis coordinate. It can be seen from this that when the subsynchronous oscillation occurs in the system, 90% of the TVEPS are less than 3%, and the recovery effect is good, and only a few TVELS are less than 5%, and the recovered data is seriously distorted. Due to the voltage oscillation, if the missing data is located at the peak or trough position, it is difficult to recover the change trend by this method only through the previous data.

(2)系统稳、暂态下连续多点数据丢失恢复结果对比(2) Comparison of the recovery results of continuous multi-point data loss under the stable and transient state of the system

当系统处于稳、暂态时,分别采用采用本发明方法和现有方法恢复连续多点丢失数据,其结果如图10(a)-10(b)所示,附图10(a)为稳态时测试结果,由图10(a)可得,稳态下本发明方法恢复连续丢失数据的能力较优,而TVELM随丢失数据增多逐渐增大,与仿真测试结果一致。附图10(b)为暂态时测试结果,由图10(b)可得,当系统处于暂态,TVELM变化情况与稳态时相同,恢复结果偏差较大,TVEPM在1%以下,恢复结果准确性高。When the system is in steady state and transient state, the method of the present invention and the existing method are used to restore continuous multi-point lost data, and the results are shown in Figures 10(a)-10(b). 10(a), the method of the present invention has better ability to recover continuously lost data in steady state, and TVELM gradually increases with the increase of lost data, which is consistent with the simulation test results. Figure 10(b) shows the test results in the transient state, which can be obtained from Figure 10(b). When the system is in a transient state, the TVELM changes are the same as those in the steady state, and the recovery result has a large deviation. The TVEPM is below 1%, and the recovery The results are highly accurate.

(3)分析丢失数据个数对TVE的影响(3) Analyze the impact of the number of missing data on TVE

通过改变丢失数据个数,对比两种方法在稳、暂态下恢复效果,即TVE变化情况,比较结果如图11、12(a)、12(b)所示,其中,附图11为稳、暂态下丢失数据个数对现有方法TVE的影响,图11中,Lst表示稳态下TVE变化,对应主纵轴坐标;Ltt表示暂态下TVE变化,对应次纵轴坐标。由图11可知,TVELst、TVELtt均随丢失数据个数的增加,线性增大。然而该方法仅利用丢失点之前的数据,无法准确校正每次恢复结果,从而使误差逐渐增大。By changing the number of lost data, compare the recovery effects of the two methods under steady and transient conditions, that is, the TVE changes. The comparison results are shown in Figures 11, 12(a), and 12(b). . The influence of the number of missing data in the transient state on the TVE of the existing method. In Figure 11, Lst represents the TVE change in the steady state, corresponding to the main vertical axis coordinate; Ltt represents the transient TVE change, corresponding to the secondary vertical axis coordinate. It can be seen from Figure 11 that both TVELst and TVELtt increase linearly with the increase of the number of lost data. However, this method only uses the data before the lost point, and cannot accurately correct each recovery result, so that the error gradually increases.

附图12(a)-12(b)为稳、暂态下丢失数据个数对本发明方法TVE的影响,由图12(a)-12(b)可得,在稳、暂态两种状态下本发明方法均可有效恢复数据。稳、暂态下精度远高于现有方法,稳态下丢失数据更易于恢复,暂态下TVE不超过1.1%。同时,随着丢失数据个数的增加,根据优先级恢复方法,其恢复顺序也不尽相同,因此TVE变化与丢失数据个数无明显关系,仍需进一步探究。Figures 12(a)-12(b) are the effects of the number of lost data on the TVE of the method of the present invention in steady and transient states, which can be obtained from Figures 12(a)-12(b), in steady and transient states The following methods of the present invention can effectively restore data. The accuracy in steady state and transient state is much higher than that of existing methods. Lost data in steady state is easier to recover, and TVE in transient state is less than 1.1%. At the same time, with the increase of the number of lost data, the recovery order is also different according to the priority recovery method. Therefore, the TVE change has no obvious relationship with the number of lost data, and further research is needed.

通过上述测试,分别验证了系统在暂、稳态时,在单点、连续多点丢失场景下恢复丢失数据,测试结果表明本方法具有良好的恢复效果。Through the above tests, it is verified that the system can recover lost data under single-point and continuous multi-point loss scenarios in temporary and steady state. The test results show that this method has a good recovery effect.

此实施例仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。This embodiment is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. , all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (1)

1.一种基于插值区间动态变化的PMU数据恢复方法,其特征在于,包括以下步骤:1. a PMU data recovery method based on interpolation interval dynamic change, is characterized in that, comprises the following steps: 步骤1、建立PMU数据丢失的两种基本场景,包括单点数据丢失场景和连续多点数据丢失场景;Step 1. Establish two basic scenarios of PMU data loss, including single-point data loss scenarios and continuous multi-point data loss scenarios; 所述单点数据丢失场景是指在一段时间内,所获得一组PMU量测数据中仅存在单一数据丢失的场景;The single-point data loss scenario refers to a scenario in which only a single data loss exists in a set of PMU measurement data obtained within a period of time; 所述连续多点数据丢失场景是指在一段时间内,所获得一组PMU量测数据中存在连续多点数据丢失的场景;The continuous multi-point data loss scenario refers to a scenario in which continuous multi-point data loss exists in a set of PMU measurement data obtained within a period of time; 步骤2、分析数据的丢失类型,确定数据丢失场景;Step 2. Analyze the data loss type and determine the data loss scenario; 步骤3、确定丢失数据的恢复顺序,若在连续多点数据丢失场景下,考虑数据恢复的优先级分配,根据丢失数据个数的奇偶性,计算丢失数据的恢复顺序;若在单点数据丢失场景下,则无需考虑优先级分配;Step 3. Determine the recovery order of the lost data. In the scenario of continuous multi-point data loss, consider the priority allocation of data recovery, and calculate the recovery order of the lost data according to the parity of the number of lost data; if the data is lost at a single point In scenarios, priority allocation need not be considered; 所述步骤3在连续多点数据丢失场景下,采用基于差值区间动态变化的优先级恢复方法计算丢失数据的恢复顺序,具体计算方法为:In the step 3, under the scenario of continuous multi-point data loss, the priority recovery method based on the dynamic change of the difference interval is used to calculate the recovery order of the lost data, and the specific calculation method is as follows: (1)当连续丢失数据个数为奇数时(1) When the number of consecutive lost data is odd 假设在一段时间内,所获得一组PMU量测数据中存在5个连续丢失的数据,分别为Xn-2,Xn-1,Xn,Xn+1,Xn+2Assume that in a period of time, there are 5 consecutive missing data in a set of PMU measurement data obtained, namely X n-2 , X n-1 , X n , X n+1 , X n+2 ; 步骤1、输入全部PMU数据X1,X2,...,Xm、丢失数据个数N、恢复次数M、相邻间隔Z,其中,M=N;Step 1. Input all PMU data X 1 , X 2 , . . . , X m , the number of lost data N, the number of recovery times M, and the adjacent interval Z, where M=N; 步骤2、计算第一阶段待恢复数据的选定点相邻间隔Z1,计算公式如下:Step 2. Calculate the adjacent interval Z 1 of the selected points of the data to be restored in the first stage, and the calculation formula is as follows:
Figure FDA0003181178990000011
Figure FDA0003181178990000011
步骤3、确定第一阶段待恢复数据Xn,其中
Figure FDA0003181178990000012
选择Xn前后各4个相邻间隔为Z1的点,利用改进的标准三次样条插值函数恢复数据Xn
Step 3. Determine the data X n to be restored in the first stage, where
Figure FDA0003181178990000012
Select 4 adjacent points with an interval of Z 1 before and after X n , and use the improved standard cubic spline interpolation function to restore the data X n ;
步骤4、计算第二阶段待恢复数据的选定点相邻间隔Z2,计算公式如下:Step 4. Calculate the adjacent interval Z 2 of the selected points of the data to be restored in the second stage, and the calculation formula is as follows: Z2=Z1-1Z 2 =Z 1 -1 步骤5、确定第二阶段待恢复数据Xn-2和Xn+2,利用已有数据和第一个阶段恢复的数据Xn,利用改进的标准三次样条插值函数恢复数据Xn-2和Xn+2Step 5. Determine the data X n-2 and X n+2 to be restored in the second stage, use the existing data and the data X n restored in the first stage, and use the improved standard cubic spline interpolation function to restore the data X n-2 and X n+2 ; 步骤6、计算第三阶段待恢复数据的选定点相邻间隔Z3,计算公式如下:Step 6. Calculate the adjacent interval Z 3 of the selected point of the data to be restored in the third stage, and the calculation formula is as follows: Z3=Z2-1Z 3 =Z 2 -1 步骤7、确定第三阶段待恢复数据Xn-1和Xn+1,利用已有数据和前两个阶段恢复的数据Xn、Xn-2和Xn+2,利用改进的标准三次样条插值函数恢复数据Xn-1和Xn+1Step 7. Determine the data Xn -1 and Xn +1 to be restored in the third stage, use the existing data and the data Xn , Xn -2 and Xn +2 restored in the first two stages, and use the improved standard three times The spline interpolation function restores the data X n-1 and X n+1 ; (2)当连续丢失数据个数为偶数时(2) When the number of consecutive lost data is even 假设在一段时间内,所获得一组PMU量测数据中存在6个连续丢失的数据,分别为Xn-3,Xn-2,Xn-1,Xn,Xn+1,Xn+2Assume that there are 6 consecutive missing data in a set of PMU measurement data obtained in a period of time, namely X n-3 , X n-2 , X n-1 , X n , X n+1 , X n +2 ; 步骤a、输入全部PMU数据X1,X2,...,Xm、丢失数据个数N、恢复次数M、相邻间隔Z,其中,M=N;Step a. Input all PMU data X 1 , X 2 , . . . , X m , the number of lost data N, the number of recovery times M, and the adjacent interval Z, where M=N; 步骤b、计算第一阶段待恢复数据的选定点相邻间隔Z1,计算公式如下:Step b. Calculate the adjacent interval Z 1 of the selected points of the data to be restored in the first stage, and the calculation formula is as follows:
Figure FDA0003181178990000021
Figure FDA0003181178990000021
步骤c、确定第一阶段待恢复数据Xn-1和Xn,其中
Figure FDA0003181178990000022
选择与待恢复数据前后各4个相邻间隔为Z1的点,利用改进的标准三次样条插值函数恢复数据Xn-1和Xn
Step c, determine the data X n-1 and X n to be restored in the first stage, wherein
Figure FDA0003181178990000022
Select four adjacent points that are Z 1 before and after the data to be restored, and use the improved standard cubic spline interpolation function to restore the data X n-1 and X n ;
步骤d、计算第二阶段待恢复数据的选定点相邻间隔Z2,计算公式如下:Step d, calculate the adjacent interval Z 2 of the selected points of the data to be restored in the second stage, and the calculation formula is as follows: Z2=Z1-1Z 2 =Z 1 -1 步骤e、确定第二阶段待恢复数据Xn-3和Xn+2,利用已有数据和第一个阶段恢复的数据Xn-1和Xn,利用改进的标准三次样条插值函数恢复数据Xn-3和Xn+2Step e. Determine the data X n-3 and X n+2 to be restored in the second stage, use the existing data and the data X n-1 and X n restored in the first stage, and use the improved standard cubic spline interpolation function to restore data Xn -3 and Xn +2 ; 步骤f、计算第三阶段待恢复数据的选定点相邻间隔Z3,计算公式如下:Step f, calculate the adjacent interval Z 3 of the selected point of the data to be restored in the third stage, and the calculation formula is as follows: Z3=Z2-1Z 3 =Z 2 -1 步骤g、确定第三阶段待恢复数据Xn-2和Xn+1,利用已有数据和前两个阶段恢复的数据Xn-1、Xn、Xn-3和Xn+2,利用改进的标准三次样条插值函数恢复数据Xn-2和Xn+1Step g, determine the data Xn -2 and Xn +1 to be restored in the third stage, use the existing data and the data Xn -1 , Xn , Xn -3 and Xn +2 restored in the first two stages, Use the improved standard cubic spline interpolation function to restore the data Xn -2 and Xn +1 ; 步骤4、在确定丢失数据恢复顺序的基础上,利用改进的标准三次样条插值函数,对不同场景下的丢失数据进行恢复;Step 4. On the basis of determining the recovery sequence of the lost data, use the improved standard cubic spline interpolation function to recover the lost data in different scenarios; 所述改进的标准三次样条插值函数的建模方法为:The modeling method of the improved standard cubic spline interpolation function is: (1)构造三次样条插值函数(1) Construct a cubic spline interpolation function 给定函数given function yi=f(xi),i=1,2,...,n (1)y i =f(x i ), i=1,2,...,n (1) 其中,in, a=x0<x1<x2<…<xn=b,[a,b]a=x 0 <x 1 <x 2 <...<x n =b, [a,b] 如果S(x)=y在每个子区间[xk,xk+1](k=1,2,...,n-1)上,为不超过三次的多项式,且S(xi)=yi,i=1,2,...,n;并且S(x)、S′(x)、S″(x)在[a,b]上连续,则称S(x)为f(x)在节点x0,x1,x2,…xn上的三次样条插值函数;If S(x)=y is on each subinterval [x k ,x k+1 ](k=1,2,...,n-1), is a polynomial of no more than three times, and S(x i ) =y i , i=1,2,...,n; and S(x), S′(x), S″(x) are continuous on [a, b], then S(x) is called f (x) cubic spline interpolation function on nodes x 0 , x 1 , x 2 ,...x n ; (2)令Mi=S″(xi),在区间[xi,xi+1]上,S(x)=Si(x)的二阶导数可表示为:(2) Let M i =S″(x i ), on the interval [x i ,x i+1 ], the second derivative of S(x)=S i (x) can be expressed as:
Figure FDA0003181178990000031
Figure FDA0003181178990000031
其中,in, hi=xi+1-xi h i =x i+1 -x i (3)对公式(1)连续两次积分,得到:(3) Integrate formula (1) for two consecutive times to obtain:
Figure FDA0003181178990000041
Figure FDA0003181178990000041
Figure FDA0003181178990000042
Figure FDA0003181178990000042
由连续性S′(xi-)=S′(xi+),可得:From the continuity S'(x i- )=S'(x i+ ), we can get: μiMi-1+2MiiMi=di(i=1,2,...,n-1) (5)μ i M i-1 +2M ii M i =d i (i=1,2,...,n-1) (5) 其中,in,
Figure FDA0003181178990000043
Figure FDA0003181178990000043
(4)根据边界条件S′(x0)=y0′,S′(xn)=yn′,将公式(5)表示为以下矩阵形式:(4) According to the boundary conditions S'(x 0 )=y 0 ', S'(x n )=y n ', formula (5) is expressed in the following matrix form:
Figure FDA0003181178990000044
Figure FDA0003181178990000044
方程(7)系数矩阵严格对角占优,有唯一解,The coefficient matrix of equation (7) is strictly diagonally dominant and has a unique solution, S(x)在每个区间[xi,xi+1]上Si(x)为:S(x) S i (x) on each interval [x i ,x i+1 ] is:
Figure FDA0003181178990000051
Figure FDA0003181178990000051
(5)构造改进的三次样条插值函数(5) Constructing an improved cubic spline interpolation function 假设Si(x)在区间[xi-1,xi](i=1,2,…,n)上的极大值、极小值分别为Simax和Simin,则S(x)在区间[a,b]上的极值差为:Assuming that the maximum and minimum values of S i (x) in the interval [x i-1 , xi ] (i=1,2,...,n) are S imax and S imin respectively , then S(x) The extreme value difference on the interval [a,b] is:
Figure FDA0003181178990000052
Figure FDA0003181178990000052
假设S′(x0)=y0′,S′(xn)=yn′未知,由S(x)的极值差得到:Assuming that S'(x 0 )=y 0 ', S'(x n )=y n ' is unknown, it can be obtained from the extreme value difference of S(x):
Figure FDA0003181178990000053
Figure FDA0003181178990000053
式中,f(xi)为任意函数;a、b为自变量x取值区间;Mi为三次样条插值函数的二阶导数。In the formula, f(x i ) is an arbitrary function; a and b are the value intervals of the independent variable x; M i is the second derivative of the cubic spline interpolation function.
CN201810366777.8A 2018-04-23 2018-04-23 PMU data recovery method based on dynamic change of interpolation interval Active CN108596475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810366777.8A CN108596475B (en) 2018-04-23 2018-04-23 PMU data recovery method based on dynamic change of interpolation interval

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810366777.8A CN108596475B (en) 2018-04-23 2018-04-23 PMU data recovery method based on dynamic change of interpolation interval

Publications (2)

Publication Number Publication Date
CN108596475A CN108596475A (en) 2018-09-28
CN108596475B true CN108596475B (en) 2021-11-30

Family

ID=63614708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810366777.8A Active CN108596475B (en) 2018-04-23 2018-04-23 PMU data recovery method based on dynamic change of interpolation interval

Country Status (1)

Country Link
CN (1) CN108596475B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10983492B1 (en) * 2020-08-07 2021-04-20 North China Electric Power University Adaptive PMU missing data recovery method
CN116737451B (en) * 2023-05-26 2024-06-04 珠海妙存科技有限公司 Data recovery method and device of flash memory, solid state disk and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100817092B1 (en) * 2007-03-14 2008-03-26 삼성전자주식회사 Measurement system for correcting overlapping measurement error and measurement method using the same
CN101651363B (en) * 2009-06-08 2011-07-20 国电南瑞科技股份有限公司 Loss sampling data processing method based on third-order spline interpolation method

Also Published As

Publication number Publication date
CN108596475A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN107123994B (en) Linear solving method of interval reactive power optimization model
CN105226650B (en) Micro-capacitance sensor reliability calculation method based on miniature combustion engine energy storage cooperation strategy
CN105656031B (en) The methods of risk assessment of power system security containing wind-powered electricity generation based on Gaussian Mixture distribution characteristics
CN103825269B (en) Rapid probabilistic load flow calculation method considering static power frequency characteristics of electric power system
CN102590685B (en) Current matching state estimating method of power distribution network
WO2013174144A1 (en) Continuous power flow calculation method based on wind power fluctuation rule
CN104504456B (en) A kind of transmission system planing method of applied probability distribution robust optimization
CN102664422B (en) Method for smoothing output power of wind power station by utilizing energy storage system
CN108448568A (en) Hybrid State Estimation Method of Distribution Network Based on Measurement Data of Multiple Time Periods
CN108074038A (en) A kind of power generation analogy method for considering regenerative resource and load multi-space distribution character
CN109274892B (en) A step-by-step identification method for camera parameters considering saturation effect
CN108596475B (en) PMU data recovery method based on dynamic change of interpolation interval
CN110829444A (en) Emergency load shedding method for alternating current and direct current network receiving end system considering random load model of static frequency and voltage characteristics
CN104578143B (en) A kind of compensation method of the uncertain large dead time suitable in generation of electricity by new energy machine
CN107302225A (en) A kind of regional power grid new energy power station capacity collocation method
CN109149566A (en) A kind of modeling method of the simulation model of the high-power minimum point prediction of missing lower frequency
CN107846039A (en) Consider the cluster wind-electricity integration modeling and analysis methods and system of wind speed correlation
CN104268435A (en) Method for calculating multimachine balance probability power flow
CN114755530B (en) Robust fault positioning method for power transmission line
CN105048445B (en) The active distribution network three-phase state method of estimation of meter and polymorphic type distributed power source
CN116415428A (en) Power distribution network asynchronous measurement joint correction method based on low-rank matrix recovery theory
Chen et al. An improved stochastic approach for PV's hosting capacity assessment based on binary search
CN107657071A (en) Time Domain Simulation Method of Power System Uncertainty Based on Improved Sparse Probability Allocation Method
CN108923469A (en) A kind of New-energy power system cascading failure analysis method
Yesil et al. Preliminary Studies on Dynamic Reduction of the Turkish Transmission Network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant