CN111695580B - A method and system for eigenmode matching when state matrix parameters change continuously - Google Patents

A method and system for eigenmode matching when state matrix parameters change continuously Download PDF

Info

Publication number
CN111695580B
CN111695580B CN201910187438.8A CN201910187438A CN111695580B CN 111695580 B CN111695580 B CN 111695580B CN 201910187438 A CN201910187438 A CN 201910187438A CN 111695580 B CN111695580 B CN 111695580B
Authority
CN
China
Prior art keywords
section
difference
root
vector
matrix
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
CN201910187438.8A
Other languages
Chinese (zh)
Other versions
CN111695580A (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.)
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
NARI Group Corp
Nari Technology Co Ltd
Electric Power Research Institute of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
NARI Group Corp
Nari Technology Co Ltd
Electric Power Research Institute of State Grid Jiangsu Electric Power Co Ltd
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 State Grid Corp of China SGCC, State Grid Jiangsu Electric Power Co Ltd, NARI Group Corp, Nari Technology Co Ltd, Electric Power Research Institute of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201910187438.8A priority Critical patent/CN111695580B/en
Publication of CN111695580A publication Critical patent/CN111695580A/en
Application granted granted Critical
Publication of CN111695580B publication Critical patent/CN111695580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Water Supply & Treatment (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Public Health (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Complex Calculations (AREA)

Abstract

本发明公开了一种状态矩阵参数连续变化时的特征模式匹配方法,所述方法包括:获取待匹配状态矩阵序列并分别计算各状态矩阵特征根;逐个断面计算标准特征根向量λS与当前断面特征根向量λk的逐差矩阵D;按照λS元素的分类在λk中迭代搜索与λS各元素具有连续性的特征根,根据结果调整λk中特征根排序;根据λS与λk的差异度εk,结合迭代次数判别该断面匹配完成或标记误差过大,输出该断面匹配结果λk'并继续进行下一断面特征根的匹配。本发明基于特征根对矩阵参数变化的连续特性,实现状态矩阵连续变化时对应特征模式的自动匹配,相比现有方法极大的提高了电力系统振荡分析过程中特征模式匹配的效率与准确性。

Figure 201910187438

The invention discloses a characteristic pattern matching method when state matrix parameters change continuously. The method includes: acquiring a sequence of state matrices to be matched and calculating the characteristic roots of each state matrix respectively; calculating a standard characteristic root vector λ S and a current cross section one by one The difference-by-difference matrix D of the eigenroot vector λk; according to the classification of λS elements, iteratively searches λk for the eigenvalues that have continuity with each element of λS , and adjusts the order of the eigenvalues in λk according to the results; according to λS and λ The difference degree ε k of k is combined with the number of iterations to judge whether the section matching is completed or the marking error is too large, output the section matching result λ k ' and continue to match the characteristic root of the next section. The invention realizes the automatic matching of the corresponding characteristic patterns when the state matrix changes continuously based on the continuous characteristic of the characteristic root to the change of the matrix parameters, and greatly improves the efficiency and accuracy of the characteristic pattern matching in the process of power system oscillation analysis compared with the existing method. .

Figure 201910187438

Description

一种状态矩阵参数连续变化时的特征模式匹配方法和系统A method and system for eigenmode matching when state matrix parameters change continuously

技术领域technical field

本发明涉及一种状态矩阵参数连续变化时的特征模式匹配方法和系统,属于电力系统技术领域。The invention relates to a characteristic pattern matching method and system when state matrix parameters change continuously, belonging to the technical field of electric power systems.

背景技术Background technique

分析电力系统振荡特性时,轨迹断面特征根方法沿着受扰轨迹分段线性化,从一系列线性时变微分方程中提取原系统振荡的瞬时特征;分析过程中需要在一段时间内针对状态矩阵的连续变化求解相应特征根。然而,实际求解时特征根会在相邻断面出现排序与相关性不匹配的问题,具体表现为随时间连续变化的状态矩阵对应特征根轨迹失去连续性,这对于辨识关键时间断面与危险特征模式带来很大不便,为进一步分析电力系统振荡瞬时特性造成困难。When analyzing the oscillation characteristics of the power system, the characteristic root method of the trajectory section is piecewise linearized along the disturbed trajectory, and the instantaneous characteristics of the original system oscillation are extracted from a series of linear time-varying differential equations; The continuous variation of , solves the corresponding eigenroot. However, in the actual solution, the eigenroot will have a problem of mismatching in the ordering and correlation of adjacent sections, which is manifested in the loss of continuity of the trajectories of the eigenvalues corresponding to the state matrix that changes continuously with time. It brings great inconvenience and makes it difficult to further analyze the transient characteristics of power system oscillation.

另一方面,传统原点特征根方法为了研究参数对危险特征模式阻尼的灵敏度,需要连续改变状态矩阵元素数值并分析对应原点特征根的变化量。常规方法并不跟踪特征根排序随状态矩阵参数的演化,因此,在计算原点特征根参数灵敏度时传统方法会遇到与轨迹断面特征根同样的问题,具体表现为随参数连续变化的状态矩阵对应特征根轨迹失去连续性。On the other hand, in order to study the sensitivity of parameters to the damping of dangerous eigenmodes, the traditional eigenroot method needs to continuously change the value of the elements of the state matrix and analyze the variation of the corresponding origin eigenroot. The conventional method does not track the evolution of the eigenroot ordering with the parameters of the state matrix. Therefore, the traditional method will encounter the same problem as the eigenroot of the trajectory section when calculating the sensitivity of the eigenroot parameter at the origin, which is manifested in the state matrix corresponding to the continuous change with the parameters. The characteristic root locus loses continuity.

该现象在气动弹性稳定性领域一些关于颤振的研究中被称为“窜支”,一般根据分析经验使用人工调整的方式匹配连续变化状态矩阵的特征模式,从而获得连续的特征根轨迹进行后续分析。实际电力系统分析时,轨迹断面特征根动辄上千的断面数为人工进行特征模式匹配带来巨大的工作量,现有方法不能满足工程应用时高效性与准确性的要求,目前电力系统技术领域这部分研究依然是空白。This phenomenon is called "channeling branch" in some studies on flutter in the field of aeroelastic stability. Generally, manual adjustment is used to match the eigenmode of the continuously changing state matrix according to the analysis experience, so as to obtain a continuous characteristic root locus for subsequent follow-up. analyze. In the actual power system analysis, the number of cross-sections of the trajectory cross-sections is often over a thousand, which brings a huge workload for manual feature pattern matching. The existing methods cannot meet the requirements of high efficiency and accuracy in engineering applications. At present, the field of power system technology This part of the research is still blank.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于解决工程中数据分析时使用人工调整的方式匹配连续变化状态矩阵的特征模式所带来的困难,提供一种状态矩阵参数连续变化时的特征模式匹配方法和系统,能够准确实现电力系统振荡分析过程中状态矩阵参数连续变化时对应特征模式的自动化匹配。The purpose of the present invention is to solve the difficulty caused by using manual adjustment to match the characteristic pattern of the continuously changing state matrix during data analysis in engineering, and to provide a characteristic pattern matching method and system when the parameters of the state matrix change continuously, which can accurately realize Automatic matching of corresponding eigenmodes when state matrix parameters continuously change during power system oscillation analysis.

为达到上述目的,本发明是采用下述技术方案实现的:To achieve the above object, the present invention adopts the following technical solutions to realize:

一种状态矩阵参数连续变化时的特征模式匹配方法,所述方法包括如下步骤:A characteristic pattern matching method when a state matrix parameter changes continuously, the method comprises the following steps:

获取待匹配状态矩阵序列并分别计算各状态矩阵的特征根向量作为各断面待匹配的特征根向量;Obtain the sequence of state matrices to be matched and calculate the eigenvectors of each state matrix as the eigenvectors of each section to be matched;

从第二断面开始,逐个断面地将当前断面的标准特征根向量与其待匹配的特征根向量匹配,其中第二个断面的标准特征根向量为第一个断面状态矩阵的特征根;将当前断面的匹配结果作为下一个断面的标准特征根向量;重复本步骤直至所有断面的待匹配状态矩阵序列全部匹配完成。Starting from the second section, match the standard eigenvectors of the current section with the eigenvectors to be matched one by one, where the standard eigenvectors of the second section are the eigenvalues of the state matrix of the first section; The matching result is used as the standard feature root vector of the next section; this step is repeated until all the matching state matrix sequences of all sections are completed.

进一步地,将当前断面的标准特征根向量与其待匹配的特征根向量匹配的方法如下:Further, the method for matching the standard eigenvectors of the current section with the eigenvectors to be matched is as follows:

1)计算当前断面的标准特征根向量λS与当前断面待匹配的特征根向量λk的逐差矩阵D;优选地,逐差矩阵D的计算方法包括:1) calculate the standard eigenvector λ S of the current section and the difference-by-difference matrix D of the eigenvector λ k of the current section to be matched; Preferably, the calculation method of the difference-by-difference matrix D includes:

设dij为n×n阶逐差矩阵D第i行第j列的元素,dij=(λS.ik.j)2,λS,i为当前断面的标准特征根向量λS的第i个元素,λk,j为当前断面的待匹配特征根向量λk的第j个元素,其中i为1到n之间的自然数,j为1到n之间的自然数。Let d ij be the element of the i-th row and the j-th column of the n×n-order difference-by-difference matrix D, d ij =(λ Sikj ) 2 , λ S,i be the i-th element of the standard eigenvector λ S of the current section λ k,j is the jth element of the feature root vector λ k of the current section to be matched, where i is a natural number between 1 and n, and j is a natural number between 1 and n.

2)按照实部和虚部绝对值大小对λS元素的分类;优选地,分类方法为将虚部绝对值大于ο的特征根分类为复数根;将实部与虚部绝对值均小于ο的特征根分类为零根;将虚部绝对值小于ο实部小于-ο的特征根分类为负实根;将虚部绝对值小于ο实部大于ο的特征根分类为正实根,其中ο为预先设定的极小值。2) the classification of λ S elements according to the size of the absolute value of the real part and the imaginary part; preferably, the classification method is to classify the characteristic root whose absolute value of the imaginary part is greater than o as a complex root; the absolute value of the real part and the imaginary part are all less than o The eigenroot of σ is classified as zero root; the eigenroot whose absolute value of imaginary part is less than ο and whose real part is less than -ο is classified as negative real root; the eigenroot whose absolute value of imaginary part is less than ο and whose real part is greater than ο is classified as positive real root, where ο is a preset minimum value.

3)根据分类结果在λk中迭代搜索与λS元素具备连续性的特征根并调整λk中特征根排序得到当前断面的匹配结果λk'。3) According to the classification result, iteratively search λ k for the eigenvalues that have continuity with λ S elements and adjust the order of eigenroots in λ k to obtain the matching result λ k ' of the current section.

进一步地,步骤3)的方法如下:第一步,令l=1;Further, the method of step 3) is as follows: the first step, make l=1;

第二步,若λS.l为零根或负实根,λS.l代表λS的第l个元素,则选择逐差矩阵D中第l行,计算该行最小值对应列序号为m,在逐差矩阵D中交换第l列与第m列,并同时交换当前断面的待匹配的特征根向量λk中λk.l与λk.m的位置,λk.l代表λk的第l个元素,λk.m代表λk的第m个元素;令l=l+1,若l<n则重新执行第二步,否则继续第三步;In the second step, if λ Sl is a zero root or a negative real root, and λ Sl represents the l-th element of λ S , select the l-th row in the difference-by-difference matrix D, calculate the minimum value of this row and the corresponding column number is m. Swap the lth column and the mth column in the difference matrix D, and at the same time exchange the positions of λ kl and λ km in the eigenvector λ k of the current section to be matched, where λ kl represents the lth element of λ k , and λ km represents The mth element of λ k ; let l=l+1, if l<n, re-execute the second step, otherwise continue to the third step;

第三步,将迭代次数Nk置为1;The third step is to set the number of iterations N k to 1;

第四步,令p=1;The fourth step, let p=1;

第五步,λS.p为正实根或复数根,λS.p代表行向量λS的第p个元素,选择逐差矩阵D中第p行并计算该行最小值对应列序号为q,若λk.p为实数根且λk.q为复数根,其中λk.p代表行向量λk的第p个元素,λk.q代表行向量λk的第q个元素,则在逐差矩阵D中交换第p列与第q列,并同时交换向量λk中λk.p与λk.q的位置,否则执行以下步骤;The fifth step, λ Sp is a positive real root or a complex root, λ Sp represents the p-th element of the row vector λ S , select the p-th row in the difference-by-difference matrix D and calculate the minimum value of this row. The corresponding column number is q, if λ kp is a real root and λ kq is a complex root, where λ kp represents the p-th element of the row vector λ k , and λ kq represents the q-th element of the row vector λ k , then in the difference-by-difference matrix D, exchange the p-th column with Column q, and exchange the positions of λ kp and λ kq in the vector λ k at the same time, otherwise perform the following steps;

若λS.p为实数根,则在逐差矩阵D中交换第p列与第q列,并同时交换交换向量λk中λk.p与λk.q的位置;若λS.p为复数根,计算交换前后相对误差

Figure BDA0001993321310000041
Figure BDA0001993321310000042
其中cset是预先设定的常数;If λ Sp is a real root, exchange the p- th column and the q-th column in the difference-by-difference matrix D, and exchange the positions of λ kp and λ kq in the exchange vector λ k at the same time; error
Figure BDA0001993321310000041
Figure BDA0001993321310000042
where c set is a preset constant;

若ξfb,则在逐差矩阵D中交换第p列与第q列,并同时交换向量λk中λk.p与λk.q的位置,If ξ fb , exchange the p-th column and the q-th column in the difference-by-difference matrix D, and exchange the positions of λ kp and λ kq in the vector λ k at the same time,

若ξf≤ξb,则不调整向量λk中元素的排序;令p=p+1,若p<n则重新执行第五步,否则继续第六步;If ξ f ≤ξ b , do not adjust the order of elements in the vector λ k ; let p=p+1, if p<n, re-execute the fifth step, otherwise continue to the sixth step;

第六步,完成单次迭代后,将匹配结果记为λk',计算向量λS与匹配结果向量λk'的差异度

Figure BDA0001993321310000043
The sixth step, after completing a single iteration, record the matching result as λ k ', and calculate the degree of difference between the vector λ S and the matching result vector λ k '
Figure BDA0001993321310000043

若εk≥εset且Nk<Nset,其中εset为预设的误差阈值,Nset为预设的迭代次数上限,则执行Nk=Nk+1并重复第二步至第六步;否则输出断面匹配结果λk'。If ε k ≥ ε set and N k <N set , where ε set is the preset error threshold and N set is the preset upper limit of the number of iterations, execute N k =N k +1 and repeat steps 2 to 6 step; otherwise, output the section matching result λ k '.

附图说明Description of drawings

图1是本发明实施例提供的状态矩阵参数连续变化时的特征模式匹配方法。FIG. 1 is a feature pattern matching method provided by an embodiment of the present invention when a state matrix parameter changes continuously.

具体实施方式Detailed ways

下面结合附图对本发明作进一步描述。以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。The present invention will be further described below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solutions of the present invention more clearly, and cannot be used to limit the protection scope of the present invention.

步骤S1,获取待匹配状态矩阵序列并分别计算各状态矩阵的特征根向量λ作为各断面的待匹配向量。In step S1, a sequence of state matrices to be matched is obtained, and the eigenvectors λ of each state matrix are calculated respectively as the vectors to be matched for each section.

假设共有N个断面,每个断面可以计算一个特征根向量。在具体实施例中,针对各个断面获取其待匹配状态矩阵序列的方法为:对于轨迹断面特征根方法,提取电力系统振荡瞬时特征时,对电力系统受扰轨迹逐个时间断面分段线性化得到状态矩阵序列;对于原点特征根方法,研究参数与特征根关系时,根据参数变化生成状态矩阵序列。上述两种方法获得任意断面状态矩阵为n阶方阵,计算其特征根向量为1×n行向量,记为λk=[λk.1k.2,…,λk.n]。Assuming a total of N sections, each section can calculate a eigenvector. In a specific embodiment, the method for obtaining the state matrix sequence to be matched for each section is: for the characteristic root method of the trajectory section, when extracting the instantaneous characteristics of oscillation of the power system, the disturbed trajectory of the power system is segmented and linearized for each time section to obtain the state. Matrix sequence; for the origin eigenroot method, when studying the relationship between parameters and eigenroots, a state matrix sequence is generated according to parameter changes. The above two methods can obtain the state matrix of any section as an n-order square matrix, and its characteristic root vector is calculated as a 1×n row vector, denoted as λ k =[λ k.1k.2 ,...,λ kn ].

步骤S2,从第二断面开始,逐个断面地将当前断面的标准特征根向量与其待匹配的特征根向量匹配,其中第二个断面的标准特征根向量为第一个断面状态矩阵的特征根;将当前断面的匹配结果作为下一个断面的标准特征根向量;重复本步骤直至所有断面的待匹配状态矩阵序列全部匹配完成,即一共有N个断面要进行匹配,第1个断面λ不匹配直接作为标准向量对第2个断面λ进行匹配,然后将第2个断面匹配结果作为标准向量对第3个断面λ进行匹配,以此类推直至最后一个断面匹配结束。Step S2, starting from the second section, matching the standard eigenvectors of the current section with the eigenvectors to be matched section by section, wherein the standard eigenvectors of the second section are the eigenvalues of the first section state matrix; Use the matching result of the current section as the standard eigenvector of the next section; repeat this step until the matching state matrix sequence of all sections is completed, that is, there are a total of N sections to be matched, and the first section λ does not match directly. Match the second section λ as a standard vector, and then use the matching result of the second section as a standard vector to match the third section λ, and so on until the end of the last section matching.

本实施例中,将当前断面的标准特征根向量与当前断面待匹配的特征根向量匹配的方法如下:In this embodiment, the method for matching the standard characteristic root vector of the current section with the characteristic root vector to be matched in the current section is as follows:

逐个断面计算标准特征根向量λS与当前断面待匹配特征根向量λk的逐差矩阵D。Calculate the difference-by-difference matrix D of the standard eigenvector λS and the eigenvector λk of the current section to be matched one by one.

第1个断面不进行匹配,将λ1(第1个断面状态矩阵的特征根,1×n行向量)设为第2个断面的标准特征根向量λS,对第二个断面后的任意断面k,将上一断面匹配结果λk-1'(第k-1个断面匹配后的特征根向量,1×n行向量)设为当前断面的标准特征根相量λSThe first section is not matched, and λ 1 (the eigenvalue of the state matrix of the first section, a 1×n row vector) is set as the standard eigenvector λ S of the second section. For section k, set the matching result of the previous section λ k-1 ' (the eigenvector of the k-1th section after matching, 1×n row vector) as the standard eigenvalue phasor λ S of the current section;

设dij为逐差矩阵D(n阶方阵)第i行第j列的元素,dij=(λS.ik.j)2,其中i为1到n之间的自然数,j为1到n之间的自然数,λS,i为标准特征根向量λS的第i个元素,λk,j为待匹配特征根向量λk的第j个元素。Let d ij be the element of the i-th row and the j-th column of the difference-by-difference matrix D (n-order square matrix), d ij =(λ Sikj ) 2 , where i is a natural number between 1 and n, and j is 1 to A natural number between n, λ S, i is the ith element of the standard eigenvector λ S , λ k, j is the j th element of the eigenroot vector λ k to be matched.

步骤S3,按照λS元素的分类在λk中迭代搜索与λS各元素具有连续性的特征根,根据结果调整λk中特征根排序。Step S3, according to the classification of λ S elements, iteratively searches λ k for characteristic roots that are continuous with each element of λ S , and adjusts the order of the characteristic roots in λ k according to the results.

对人为给定的极小值ο,将虚部绝对值大于ο的特征根分类为复数根;将实部与虚部绝对值均小于ο的特征根分类为零根;将虚部绝对值小于ο实部小于-ο的特征根分类为负实根;将虚部绝对值小于ο实部大于ο的特征根分类为正实根。For a given minimum value ο, the eigenroot whose absolute value of the imaginary part is greater than ο is classified as a complex root; the eigenroot whose absolute value of the real part and the imaginary part are both less than ο is classified as a zero root; the absolute value of the imaginary part is less than ο. The eigenroot whose real part is less than -ο is classified as negative real root; the eigenroot whose absolute value of imaginary part is less than ο real part is greater than ο is classified as positive real root.

在λk中迭代搜索与λS各元素具有连续性的特征根并根据结果调整λk中特征根排序。在本实施例中,包括以下步骤:Iteratively searches for the eigenvalues that are continuous with each element of λS in λk and adjusts the order of eigenroots in λk according to the results. In this embodiment, the following steps are included:

第一步,令l=1;The first step, let l=1;

第二步,若λS.l为零根或负实根(λS.l代表λS的第i个元素),则选择逐差矩阵D中第i行,计算该行最小值对应列序号为m,在逐差矩阵D中第l列与第m列,并同时交换交换行向量λk中λk.l与λk.m的位置(λk.l代表行向量λk的第l个元素),令l=l+1,若l<n则重新执行第二步,否则继续第三步;In the second step, if λ Sl is a zero root or a negative real root (λ Sl represents the ith element of λ S ), select the ith row in the difference-by-difference matrix D, and calculate the minimum value of this row. The corresponding column number is m. The lth column and the mth column in the difference-by-difference matrix D, and at the same time exchange the positions of λ kl and λ km in the row vector λ kkl represents the l-th element of the row vector λ k ), let l=l+1 , if l<n, re-execute the second step, otherwise continue to the third step;

第三步,将迭代次数Nk置为1;The third step is to set the number of iterations N k to 1;

第四步,令p=1;The fourth step, let p=1;

第五步,λS.p为正实根或复数根(λS.p代表行向量λS的第p个元素),选择逐差矩阵D中第p行并计算该行最小值对应列序号为q,若λk.p为实数根且λk.q为复数根(λk.p代表行向量λk的第p个元素,λk.q代表行向量λk的第q个元素),则在逐差矩阵D中交换第p列与第q列,并同时交换向量λk中λk.p与λk.q的位置,否则继续根据λS.p性质进一步判别。The fifth step, λ Sp is a positive real root or a complex root (λ Sp represents the p-th element of the row vector λ S ), select the p-th row in the difference-by-difference matrix D and calculate the minimum value of this row. The corresponding column number is q, if λ kp is a real root and λ kq is a complex root (λ kp represents the p-th element of the row vector λ k , λ kq represents the q-th element of the row vector λ k ), then exchange the p-th column in the difference-by-difference matrix D and the qth column, and exchange the positions of λ kp and λ kq in the vector λ k at the same time, otherwise continue to further judge according to the properties of λ Sp .

若λS.p为实数根,则在逐差矩阵D中交换第p列与第q列,并同时交换向量λk中λk.p与λk.q的位置;若λS.p为复数根,计算交换前后相对误差

Figure BDA0001993321310000071
Figure BDA0001993321310000072
其中cset是为了防止λS.p或λS.q数值过小引入数值误差而人为设定的常数,数值一般设定为行向量λS全部元素绝对值(复数为模值)的平均值
Figure BDA0001993321310000073
若ξfb,则在逐差矩阵D中交换第p列与第q列,并同时交换向量λk中λk.p与λk.q的位置,若ξf≤ξb,则不调整行向量λk中元素的排序。令p=p+1,若p<n则重新执行第五步,否则继续第六步。If λ Sp is a real number root, exchange the p-th column and the q-th column in the difference-by-difference matrix D, and exchange the positions of λ kp and λ kq in the vector λ k at the same time; if λ Sp is a complex number root, calculate the relative error before and after the exchange
Figure BDA0001993321310000071
Figure BDA0001993321310000072
Among them, c set is a constant set artificially to prevent the value of λ Sp or λ Sq from being too small to introduce numerical errors.
Figure BDA0001993321310000073
If ξ fb , exchange the p-th column and the q-th column in the difference-by-difference matrix D, and exchange the positions of λ kp and λ kq in the vector λ k at the same time. If ξ f ≤ξ b , the row vector is not adjusted The ordering of elements in λk . Let p=p+1, if p<n, execute the fifth step again, otherwise continue to the sixth step.

第六步,完成单次迭代后,将交换相应元素后的特征根向量记为λk'并作为匹配结果,计算行向量λS与匹配结果行向量λk'的差异度

Figure BDA0001993321310000081
若εk≥εset且Nk<Nsetset为预设的误差阈值,Nset为预设的迭代次数上限),则执行Nk=Nk+1并重复第二步至第六步;否则继续执行步骤S4。The sixth step, after completing a single iteration, record the characteristic root vector after exchanging the corresponding elements as λ k ' and use it as the matching result, and calculate the degree of difference between the row vector λ S and the matching result row vector λ k '
Figure BDA0001993321310000081
If ε k ≥ ε set and N k <N setset is the preset error threshold, N set is the preset upper limit of the number of iterations), then execute N k =N k +1 and repeat the second to sixth steps step; otherwise, continue to step S4.

步骤S4,根据λS与λk的差异度εk,结合迭代次数判别该断面匹配完成或标记误差过大,输出该断面匹配结果λk'。Step S4, according to the degree of difference ε k between λ S and λ k , in combination with the number of iterations, it is determined that the section matching is complete or the marking error is too large, and the section matching result λ k ' is output.

若εkset则输出调整排序后的行向量λk';若εk≥εset且Nk≥Nset则输出行向量λk'并标记该断面匹配误差过大需人工校正。If ε kset , output the adjusted row vector λ k '; if ε k ≥ ε set and N k ≥ N set , output the row vector λ k ' and mark the section matching error is too large and needs manual correction.

步骤S5,将λk'作为下一断面的标准特征根相量,重复步骤S2至步骤S4,直至所有断面的待匹配状态矩阵序列全部匹配完成。In step S5, λ k ' is used as the standard characteristic root phasor of the next section, and steps S2 to S4 are repeated until all the to-be-matched state matrix sequences of all sections are matched.

本发明基于矩阵特征根对于矩阵参数变化的连续特性,实现状态矩阵连续变化时对相邻断面特征模式的自动化匹配,相比现有方法极大的提高了电力系统振荡分析过程特征根排序的效率与准确性。Based on the continuous characteristic of the matrix characteristic root for the change of the matrix parameters, the invention realizes the automatic matching of the characteristic pattern of the adjacent section when the state matrix changes continuously, and greatly improves the efficiency of the characteristic root sorting in the power system oscillation analysis process compared with the existing method. with accuracy.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the technical principles of the present invention, several improvements and modifications can also be made. These improvements and Deformation should also be regarded as the protection scope of the present invention.

Claims (8)

1.一种状态矩阵参数连续变化时的特征模式匹配方法,其特征在于,所述方法包括如下步骤:1. a characteristic pattern matching method when a state matrix parameter changes continuously, it is characterised in that the method comprises the steps: 获取待匹配状态矩阵序列并分别计算各状态矩阵的特征根向量作为各断面待匹配的特征根向量;Obtain the sequence of state matrices to be matched and calculate the eigenvectors of each state matrix as the eigenvectors of each section to be matched; 从第二断面开始,逐个断面地将当前断面的标准特征根向量与其待匹配的特征根向量匹配,其中第二个断面的标准特征根向量为第一个断面状态矩阵的特征根;将当前断面的匹配结果作为下一个断面的标准特征根向量;重复本步骤直至所有断面的待匹配状态矩阵序列全部匹配完成;Starting from the second section, match the standard eigenvectors of the current section with the eigenvectors to be matched one by one, where the standard eigenvectors of the second section are the eigenvalues of the state matrix of the first section; The matching result is used as the standard feature root vector of the next section; this step is repeated until all the matching state matrix sequences of all sections are completed; 将当前断面的标准特征根向量与当前断面待匹配的特征根向量匹配的方法如下:The method of matching the standard eigenvector of the current section with the eigenvector of the current section to be matched is as follows: 计算当前断面的标准特征根向量λS与当前断面待匹配的特征根向量λk的逐差矩阵D;Calculate the difference-by-difference matrix D of the standard eigenvector λS of the current section and the eigenvector λk of the current section to be matched; 按照实部和虚部绝对值大小对λS元素的分类;Classification of λ S elements according to the absolute value of real and imaginary parts; 根据分类结果在λk中迭代搜索与λS元素具备连续性的特征根并调整λk中特征根排序得到当前断面的匹配结果λk';According to the classification result, iteratively search λk for the eigenroot that has continuity with the λS element, and adjust the order of eigenroots in λk to obtain the matching result λk ' of the current section; 根据分类结果在λk中迭代搜索与λS元素具备连续性的特征根并调整λk中特征根排序得到当前断面的匹配结果λk'的具体方法如下:According to the classification result, iteratively search λ k for the characteristic roots that have continuity with the λ S element and adjust the order of the characteristic roots in λ k to obtain the matching result λ k ' of the current section. The specific method is as follows: 第一步,令l=1;The first step, let l=1; 第二步,若λS.l为零根或负实根,λS.l代表λS的第l个元素,则选择逐差矩阵D中第l行,计算该行最小值对应列序号为m,在逐差矩阵D中交换第l列与第m列,并同时交换当前断面的待匹配的特征根向量λk中λk.l与λk.m的位置,λk.l代表λk的第l个元素,λk.m代表λk的第m个元素;令l=l+1,若l<n则重新执行第二步,否则继续第三步;In the second step, if λ Sl is a zero root or a negative real root, and λ Sl represents the l-th element of λ S , select the l-th row in the difference-by-difference matrix D, calculate the minimum value of this row and the corresponding column number is m. Swap the lth column and the mth column in the difference matrix D, and at the same time exchange the positions of λ kl and λ km in the eigenvector λ k of the current section to be matched, where λ kl represents the lth element of λ k , and λ km represents The mth element of λ k ; let l=l+1, if l<n, re-execute the second step, otherwise continue to the third step; 第三步,将迭代次数Nk置为1;The third step is to set the number of iterations N k to 1; 第四步,令p=1;The fourth step, let p=1; 第五步,λS.p为正实根或复数根,λS.p代表行向量λS的第p个元素,选择逐差矩阵D中第p行并计算该行最小值对应列序号为q,若λk.p为实数根且λk.q为复数根,其中λk.p代表行向量λk的第p个元素,λk.q代表行向量λk的第q个元素,则在逐差矩阵D中交换第p列与第q列,同时交换向量λk中λk.p与λk.q的位置,否则执行以下步骤;The fifth step, λ Sp is a positive real root or a complex root, λ Sp represents the p-th element of the row vector λ S , select the p-th row in the difference-by-difference matrix D and calculate the minimum value of this row. The corresponding column number is q, if λ kp is a real root and λ kq is a complex root, where λ kp represents the p-th element of the row vector λ k , and λ kq represents the q-th element of the row vector λ k , then in the difference-by-difference matrix D, exchange the p-th column with In the qth column, exchange the positions of λ kp and λ kq in the vector λ k at the same time, otherwise perform the following steps; 若λS.p为实数根,则在逐差矩阵D中交换第p列与第q列,同时交换向量λk中λk.p与λk.q的位置;若λS.p为复数根,计算交换前后相对误差
Figure FDA0003656148750000021
Figure FDA0003656148750000022
其中cset是预先设定的常数;
If λ Sp is a real root, exchange the p-th column and the q-th column in the difference-by-difference matrix D, and at the same time exchange the positions of λ kp and λ kq in the vector λ k ; if λ Sp is a complex number root, calculate the relative error before and after the exchange
Figure FDA0003656148750000021
Figure FDA0003656148750000022
where c set is a preset constant;
若ξfb,则在逐差矩阵D中交换第p列与第q列,同时交换行向量λk中λk.p与λk.q的位置,If ξ fb , exchange the p-th column and the q-th column in the difference-by-difference matrix D, and at the same time exchange the positions of λ kp and λ kq in the row vector λ k , 若ξf≤ξb,则不调整向量λk中元素的排序;令p=p+1,若p<n则重新执行第五步,否则继续第六步;If ξ f ≤ξ b , do not adjust the order of elements in the vector λ k ; let p=p+1, if p<n, re-execute the fifth step, otherwise continue to the sixth step; 第六步,完成单次迭代后,将匹配结果记为λk',计算向量λS与匹配结果向量λk'的差异度
Figure FDA0003656148750000031
The sixth step, after completing a single iteration, record the matching result as λ k ', and calculate the degree of difference between the vector λ S and the matching result vector λ k '
Figure FDA0003656148750000031
若εk≥εset且Nk<Nset,其中εset为预设的误差阈值,Nset为预设的迭代次数上限,则执行Nk=Nk+1并重复第二步至第六步;否则输出断面匹配结果λk'。If ε k ≥ ε set and N k <N set , where ε set is the preset error threshold and N set is the preset upper limit of the number of iterations, execute N k =N k +1 and repeat steps 2 to 6 step; otherwise, output the section matching result λ k '.
2.根据权利要求1所述状态矩阵参数连续变化时的特征模式匹配方法,其特征在于,获取待匹配状态矩阵序列的方法包括:2. the characteristic pattern matching method when the state matrix parameter according to claim 1 changes continuously, it is characterized in that, the method that obtains the state matrix sequence to be matched comprises: 对于轨迹断面特征根方法,提取电力系统振荡瞬时特征时,对电力系统受扰轨迹逐个时间断面分段线性化得到状态矩阵序列;For the trajectory section characteristic root method, when extracting the instantaneous characteristics of the power system oscillation, the state matrix sequence is obtained by piecewise linearization of the disturbed trajectory of the power system for each time section; 对于原点特征根方法,研究参数与特征根关系时,根据参数变化生成状态矩阵序列。For the origin eigenroot method, when studying the relationship between parameters and eigenroots, the state matrix sequence is generated according to the parameter changes. 3.根据权利要求1所述状态矩阵参数连续变化时的特征模式匹配方法,其特征在于,逐差矩阵D的计算方法包括:3. according to the characteristic pattern matching method when the state matrix parameter continuously changes according to claim 1, it is characterized in that, the calculation method of the difference-by-difference matrix D comprises: 设dij为n×n阶逐差矩阵D第i行第j列的元素,dij=(λS.ik.j)2,λS,i为当前断面的标准特征根向量λS的第i个元素,λk,j为当前断面的待匹配特征根向量λk的第j个元素,其中i为1到n之间的自然数,j为1到n之间的自然数。Let d ij be the element of the i-th row and the j-th column of the n×n-order difference-by-difference matrix D, d ij =(λ Sikj ) 2 , λ S,i be the i-th element of the standard eigenvector λ S of the current section λ k,j is the jth element of the feature root vector λ k of the current section to be matched, where i is a natural number between 1 and n, and j is a natural number between 1 and n. 4.根据权利要求1所述状态矩阵参数连续变化时的特征模式匹配方法,其特征在于,按照实部和虚部绝对值大小对λS元素进行分类的方法包括:4. according to the characteristic pattern matching method when the state matrix parameter continuously changes according to claim 1, it is characterized in that, according to real part and imaginary part absolute value size, the method that λ S element is classified comprises: 将虚部绝对值大于ο的特征根分类为复数根;将实部与虚部绝对值均小于ο的特征根分类为零根;将虚部绝对值小于ο实部小于-ο的特征根分类为负实根;将虚部绝对值小于ο实部大于ο的特征根分类为正实根,其中ο为预先设定的极小值。The eigenroot whose absolute value of the imaginary part is greater than ο is classified as a complex root; the eigenroot whose absolute value of the real part and the imaginary part are both less than ο is classified as a zero root; the eigenroot whose absolute value of the imaginary part is less than ο and the real part is less than -ο is classified is a negative real root; the characteristic root whose absolute value of the imaginary part is less than ο and the real part is greater than ο is classified as a positive real root, where ο is a preset minimum value. 5.根据权利要求1所述状态矩阵参数连续变化时的特征模式匹配方法,其特征在于,常数cset设定为行向量λS全部元素绝对值的平均值,表达式如下:5. according to the characteristic pattern matching method when the state matrix parameter continuously changes according to claim 1, it is characterized in that, constant c set is set as the mean value of the absolute value of all elements of row vector λ S , and the expression is as follows:
Figure FDA0003656148750000041
Figure FDA0003656148750000041
其中λS,i为当前断面的标准特征根向量λS的第i个元素,i为1到n之间的自然数。Where λ S,i is the i-th element of the standard eigenvector λ S of the current section, and i is a natural number between 1 and n.
6.根据权利要求1所述状态矩阵参数连续变化时的特征模式匹配方法,其特征在于,输出该断面匹配结果λk'的方法包括:6. according to the characteristic pattern matching method when the state matrix parameter continuously changes according to claim 1, it is characterized in that, the method for outputting this section matching result λ k ' comprises: 若εkset则输出调整排序后的行向量λk';若εk≥εset且Nk≥Nset则输出行向量λk'并标记该断面匹配误差过大需人工校正。If ε kset , output the adjusted row vector λ k '; if ε k ≥ ε set and N k ≥ N set , output the row vector λ k ' and mark the section matching error is too large and needs manual correction. 7.一种采用如权利要求1~6任一所述的状态矩阵参数连续变化时的特征模式匹配方法的系统,其特征在于,包括:7. A system using the characteristic pattern matching method when the state matrix parameter continuously changes according to any one of claims 1 to 6, characterized in that, comprising: 特征根向量计算模块,用于获取待匹配状态矩阵序列并分别计算各状态矩阵的特征根向量作为各断面待匹配的特征根向量;The eigenvector calculation module is used to obtain the sequence of state matrices to be matched and calculate the eigenvectors of each state matrix as the eigenvectors of each section to be matched; 特征根向量匹配模块,用于从第二断面开始,逐个断面地将当前断面的标准特征根向量与其待匹配的特征根向量匹配,其中第二个断面的标准特征根向量为第一个断面状态矩阵的特征根;将当前断面的匹配结果作为下一个断面的标准特征根向量;重复本步骤直至所有待匹配状态矩阵序列全部匹配完成。The eigenvector matching module is used to match the standard eigenvectors of the current section with the eigenvectors to be matched section by section starting from the second section, where the standard eigenvectors of the second section are the state of the first section The characteristic root of the matrix; the matching result of the current section is used as the standard characteristic root vector of the next section; this step is repeated until all the state matrix sequences to be matched are all matched. 8.根据权利要求7所述的状态矩阵参数连续变化时的特征模式匹配方法的系统,其特征在于,特征根向量匹配模块包括:8. the system of the characteristic pattern matching method when the state matrix parameter according to claim 7 changes continuously, it is characterized in that, the characteristic root vector matching module comprises: 逐差矩阵D计算模块,用于计算当前断面的标准特征根向量λS与当前断面待匹配的特征根向量λk的逐差矩阵D。The difference-by-difference matrix D calculation module is used to calculate the difference-by-difference matrix D of the standard eigenvector λ S of the current section and the eigenroot vector λ k of the current section to be matched.
CN201910187438.8A 2019-03-13 2019-03-13 A method and system for eigenmode matching when state matrix parameters change continuously Active CN111695580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910187438.8A CN111695580B (en) 2019-03-13 2019-03-13 A method and system for eigenmode matching when state matrix parameters change continuously

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910187438.8A CN111695580B (en) 2019-03-13 2019-03-13 A method and system for eigenmode matching when state matrix parameters change continuously

Publications (2)

Publication Number Publication Date
CN111695580A CN111695580A (en) 2020-09-22
CN111695580B true CN111695580B (en) 2022-07-08

Family

ID=72474821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910187438.8A Active CN111695580B (en) 2019-03-13 2019-03-13 A method and system for eigenmode matching when state matrix parameters change continuously

Country Status (1)

Country Link
CN (1) CN111695580B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255199A (en) * 2018-10-16 2019-01-22 南瑞集团有限公司 Power system oscillation characteristic analysis method based on disturbed track section oscillation energy

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255199A (en) * 2018-10-16 2019-01-22 南瑞集团有限公司 Power system oscillation characteristic analysis method based on disturbed track section oscillation energy

Also Published As

Publication number Publication date
CN111695580A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
US11914937B2 (en) Computational framework for modeling of physical process
AU2021245165B2 (en) Method and device for processing quantum data
CN110334726A (en) A method for identifying and repairing abnormal data of electric load based on density clustering and LSTM
CN113569742B (en) Broadband electromagnetic interference source identification method based on convolutional neural network
CN111310348A (en) A material constitutive model prediction method based on PSO-LSSVM
CN105425583B (en) The control method of penicillin production process based on coorinated training LWPLS
CN108170029B (en) Parameter self-tuning method based on partial derivative information for MIMO full-format model-free controller
CN106646103A (en) Voltage sag source locating method based on multi-measuring-point positive sequence voltage optimal matching
CN112817312A (en) Path planning method based on double search optimization algorithm
CN114021483A (en) Ultra-short-term wind power prediction method based on time domain characteristics and XGboost
CN107272412A (en) A kind of identifying approach of intermittent wind tunnel flow field control
CN117540317A (en) Distribution network abnormal line change relation identification method based on cosine similarity and isolated forest
CN102184421A (en) Training method of support vector regression machine
CN108459993A (en) Based on the complicated High Dimensional Systems optimization method for quickly chasing after peak sampling
US10628541B2 (en) Method and apparatus for selecting integrated circuit device neural network modeling sample
CN116484495A (en) An Aerodynamic Data Fusion Modeling Method Based on Design of Experiments
CN109634240B (en) A new dynamic process monitoring method based on dynamic principal component analysis
CN111695580B (en) A method and system for eigenmode matching when state matrix parameters change continuously
CN110398942A (en) A Parameter Identification Method for Industrial Production Process Control
CN113762646A (en) Photovoltaic short-term power intelligent prediction method and system
CN105787507B (en) LS SVMs on-line study methods based on budget supporting vector collection
CN114154855B (en) Regional power distribution network state analysis method
CN106569982A (en) GPR online soft measurement method and system with singular point detection compensation function
CN110943473A (en) A generator coherence identification method based on wide-area measurement system and clustering theory
CN106055883B (en) Transient stability evaluation input feature validity analysis method based on improved Sammon mapping

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