A power system angle stability boundary migration method based on modal mapping encoding

By combining modal mapping coding and convolutional neural networks, we have achieved rapid and accurate prediction of the power angle safety boundary under different DC disturbance fault scenarios in power systems. This solves the problem of inaccurate boundary migration in existing technologies and improves the system's safety assessment capabilities.

CN123158583APending Publication Date: 2026-11-24CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611295742.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to quickly and accurately determine the power angle safety boundary position of a power system under different DC disturbance fault scenarios, making it difficult to quantify the distance between the operating point and the boundary and to conduct safety margin assessments.

Method used

A modal mapping-based coding method is adopted. By constructing a multidimensional modal mapping fault code, key influencing factors are screened and the input dimension is reduced. A convolutional neural network is used to establish a boundary transfer mapping to achieve the prediction of the safety boundary of new fault scenarios.

Benefits of technology

It provides a physically meaningful input basis, reduces input redundancy, improves training efficiency and generalization ability, can adapt to nonlinear boundary changes, and supports fast boundary migration and online updates in multi-fault scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158583A_ABST
    Figure CN123158583A_ABST
Patent Text Reader

Abstract

This invention discloses a power system power angle stability boundary migration method based on modal mapping coding, comprising: constructing a multidimensional modal mapping fault code based on multiple sets of DC disturbance fault samples to obtain a DC disturbance code under the modal mapping; screening key influencing factors and reducing the input dimension based on the DC disturbance code to obtain a first fault feature vector after dimensionality reduction; training based on the dimensionality-reduced fault feature vector to obtain a trained boundary migration map; calculating a second fault feature vector corresponding to a new DC disturbance fault scenario after dimensionality reduction, and inputting the second fault feature vector after dimensionality reduction into the boundary migration map for boundary prediction, so as to determine the power angle safety domain constraint according to the obtained predicted boundary. This invention can quickly and accurately obtain the corresponding safety boundary position for different DC disturbance fault scenarios, providing technical support for characterizing the transient power angle safety domain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system safety and stability analysis and operation control technology, and more specifically, to a power system power angle stability boundary migration method and system based on modal mapping coding. Background Technology

[0002] The location of the transient power angle safety domain boundary is affected by fault intensity, fault location, and nonlinear transient processes, making it difficult to determine analytically. In current engineering practice, a common approach is to input fault information and initial power flow values ​​into an agent or classifier, directly outputting a logical criterion for power angle stability / instability. While this method can provide a fast logical judgment, it can only answer "stable" or "unstable," failing to explicitly provide the safety boundary threshold or quantify the distance of the operating point from the boundary. Therefore, it is inconvenient to directly use for safety margin assessment and control decisions.

[0003] On the other hand, the explicit power angle safety domain boundary obtained based on the extended equal area rule and dynamic safety domain theory is usually for a certain type of fault scenario and relies on offline plotting of a large number of simulation samples to fit the boundary. After the fault scenario changes, it is necessary to re-simulate and redraw the boundary, lacking a migration mechanism for fault changes.

[0004] To achieve boundary migration, some existing practices often directly use pre-accident power flow, fault location, fault size, etc. as input features to establish a mapping. However, the input features themselves lack a physical interpretable basis corresponding to the system's transient power angle response, resulting in limited generalization ability and boundary positioning accuracy under unknown fault combinations.

[0005] Therefore, how to quickly and accurately obtain the corresponding safety boundary position for different DC disturbance fault scenarios is the key to whether the transient power angle safety domain characterization method can be applied in engineering. Summary of the Invention

[0006] This invention proposes a power system power angle stability boundary migration method and system based on modal mapping coding to solve the problem of how to quickly and accurately obtain the corresponding safety boundary position for different DC disturbance fault scenarios.

[0007] To address the aforementioned problems, according to one aspect of the present invention, a power system power angle stability boundary migration method based on modal mapping coding is provided, the method comprising: A multi-dimensional mode mapping fault code is constructed based on multiple sets of DC disturbance fault samples to obtain the DC disturbance code under the mode mapping. Based on the DC disturbance coding, key influencing factors are screened and the input dimension is reduced to obtain the first fault feature vector after dimensionality reduction. Training is performed based on the dimensionality-reduced fault feature vectors to obtain the trained boundary migration mapping. Calculate the dimension-reduced second fault feature vector corresponding to the new DC disturbance fault scenario, and input the dimension-reduced second fault feature vector into the boundary migration mapping for boundary prediction, so as to determine the power angle safety domain constraint based on the obtained prediction boundary.

[0008] Preferably, the method involves constructing a multi-dimensional mode-mapping fault code based on multiple sets of DC disturbance fault samples to obtain the DC disturbance code under the mode mapping, including: DC disturbance faults are represented as active power disturbance vectors at the node side, and the disturbance power at the node side is calculated based on DC disturbance fault samples. for: ;in, H Represents the total number at a certain moment H A DC disturbance occurs, ΔP h Let h be the power of the disturbance. e lh For the perturbation positioning matrix, the first... h The disturbance locations are l h Then the positioning matrix is e lh Nodes where DC disturbances occur l h The element at the corresponding position is 1, and the element at other positions is 0; The node-side disturbance is distributed to the synchronization machine side via the network, and the disturbance power of the node-side disturbance distributed to the synchronization machine side via the network is obtained. for: ; B F This is the disturbance power allocation coefficient matrix; Mapping the disturbance power on the synchronous machine side to the dominant mode space yields the disturbance projection of the DC disturbance in the k*th dominant mode: ;in, This indicates element-wise multiplication. For the kth * The modal coefficient matrix corresponding to each unstable mode; By stitching together the disturbance projections corresponding to each disturbance point, the DC disturbance code under mode mapping is obtained: .

[0009] Preferably, the method determines the disturbance power allocation coefficient matrix in the following manner: , , in, B FThis is the disturbance power allocation coefficient matrix. B gg It is a diagonal matrix. C The generator-bus correlation matrix, Y add To extend to the equivalent network admittance matrix of the internal potential nodes of the generator, For the first i The transient reactance parameters of the synchronous machine.

[0010] Preferably, the process of selecting key influencing factors and reducing the input dimension based on the DC disturbance coding to obtain the first fault feature vector after dimension reduction includes: Each component of the DC disturbance code is used as a candidate input dimension, and each candidate dimension corresponds to the disturbance response component of a certain synchronous machine at a certain fault point. Using F groups of fault scenarios with known boundary labels from the fault sample library, calculate each candidate dimension. j The mutual information between the encoded value and the corresponding boundary label y is used as the importance score of the candidate dimension j. D j ;in, , y=1 For stability, y= 0 represents instability. Mutual information is used to measure dimensions. j The degree of statistical dependence between the distribution of encoded values ​​and the distribution of boundary labels; Candidate dimensions with importance scores greater than or equal to a preset score threshold are selected to determine the first fault feature vector after dimensionality reduction. .

[0011] Preferably, training is performed based on the dimensionality-reduced fault feature vectors to obtain the trained boundary migration map, including: Based on the first fault feature vector after dimensionality reduction, a supervised training sample set is constructed: ,in, This represents the safety boundary location corresponding to the f-th fault scenario; is the first fault feature vector after dimensionality reduction; F is the number of fault scenarios with known boundary labels; Using convolutional neural networks f N A mapping from dimensionality-reduced fault features to boundary locations is established, and the network parameters are solved by minimizing the mean square error on the training samples to obtain the trained boundary migration mapping: .

[0012] Preferably, determining the power angle safety domain constraint based on the obtained prediction boundary includes: , Where A is the boundary normal vector matrix of the security region. For the power injection matrix, To predict the boundary.

[0013] According to another aspect of the present invention, a power system power angle stability boundary migration system based on mode mapping coding is provided, the system comprising: The DC disturbance coding acquisition unit is used to construct a multi-dimensional mode mapping fault code based on multiple sets of DC disturbance fault samples and acquire the DC disturbance code under the mode mapping. The dimension reduction unit is used to screen key influencing factors and reduce the input dimension based on the DC disturbance coding to obtain the first fault feature vector after dimension reduction. The mapping unit is used to train based on the dimensionality-reduced fault feature vector to obtain the trained boundary migration mapping. The boundary prediction unit is used to calculate the dimension-reduced second fault feature vector corresponding to the new DC disturbance fault scenario, and input the dimension-reduced second fault feature vector into the boundary migration mapping for boundary prediction, so as to determine the power angle safety domain constraint based on the obtained prediction boundary.

[0014] Preferably, the DC disturbance coding acquisition unit constructs a multi-dimensional mode mapping fault code based on multiple sets of DC disturbance fault samples, and acquires the DC disturbance code under the mode mapping, including: DC disturbance faults are represented as active power disturbance vectors at the node side, and the disturbance power at the node side is calculated based on DC disturbance fault samples. for: ;in, H Represents the total number at a certain moment H A DC disturbance occurs, ΔP h Let h be the power of the disturbance. e lh For the perturbation positioning matrix, the first... h The disturbance locations are l h Then the positioning matrix is e lh Nodes where DC disturbances occur l h The element at the corresponding position is 1, and the element at other positions is 0; The node-side disturbance is distributed to the synchronization machine side via the network, and the disturbance power of the node-side disturbance distributed to the synchronization machine side via the network is obtained. for: ; B F This is the disturbance power allocation coefficient matrix; Mapping the disturbance power on the synchronous machine side to the dominant mode space yields the disturbance projection of the DC disturbance in the k*th dominant mode: ;in, This indicates element-wise multiplication. For the kth * The modal coefficient matrix corresponding to each unstable mode; By stitching together the disturbance projections corresponding to each disturbance point, the DC disturbance code under mode mapping is obtained: .

[0015] Preferably, the DC disturbance coding acquisition unit determines the disturbance power allocation coefficient matrix using the following method: , , in, B F This is the disturbance power allocation coefficient matrix. B gg It is a diagonal matrix. C The generator-bus correlation matrix, Y add To extend to the equivalent network admittance matrix of the internal potential nodes of the generator, For the first i The transient reactance parameters of the synchronous machine.

[0016] Preferably, the dimensionality reduction unit performs key influencing factor screening and input dimension reduction based on the DC disturbance coding to obtain a first fault feature vector after dimensionality reduction, including: Each component of the DC disturbance code is used as a candidate input dimension, and each candidate dimension corresponds to the disturbance response component of a certain synchronous machine at a certain fault point. Using F groups of fault scenarios with known boundary labels from the fault sample library, calculate each candidate dimension. j The encoded value and the corresponding boundary label y The mutual information between them serves as the importance score for candidate dimension j. D j ;in, , y=1 For stability, y= 0 represents instability. Mutual information is used to measure dimensions. j The degree of statistical dependence between the distribution of encoded values ​​and the distribution of boundary labels; Candidate dimensions with importance scores greater than or equal to a preset score threshold are selected to determine the first fault feature vector after dimensionality reduction. .

[0017] Preferably, the mapping unit is trained based on the dimensionality-reduced fault feature vector to obtain the trained boundary migration mapping, including: Based on the first fault feature vector after dimensionality reduction, a supervised training sample set is constructed: ,in, This represents the safety boundary location corresponding to the f-th fault scenario; is the first fault feature vector after dimensionality reduction; F is the number of fault scenarios with known boundary labels; Using convolutional neural networks f N A mapping from dimensionality-reduced fault features to boundary locations is established, and the network parameters are solved by minimizing the mean square error on the training samples to obtain the trained boundary migration mapping: .

[0018] Preferably, the boundary prediction unit determines the power angle safety domain constraint based on the obtained prediction boundary, including: , Where A is the boundary normal vector matrix of the security region. For the power injection matrix, To predict the boundary.

[0019] According to another aspect of the present invention, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any one of the steps of a power system power angle stability boundary migration method based on modal mapping coding.

[0020] According to another aspect of the present invention, the present invention provides an electronic device, comprising: The aforementioned computer-readable storage medium; and One or more processors for executing a program in the computer-readable storage medium.

[0021] This invention provides a power system power angle stability boundary migration method and system based on modal mapping coding, which has superior performance compared with existing technologies: First, the modal mapping code constructed in this invention simultaneously reflects the location of DC disturbances, the magnitude of disturbances, the distribution relationship of disturbances to the synchronous machine side via the network, and the degree of participation of each unit under the dominant mode, providing a physically meaningful input basis for boundary migration and supporting a unified coding expression for single-point and multi-point DC fault combination scenarios. Secondly, this invention proposes a key influencing factor screening method based on mutual information. By sorting and truncating the mutual information scores of each dimension, it effectively reduces the dimensionality of the fault coding input dimension while preserving the physical meaning of the input. This screening method is computationally simple and easy to implement. It can reduce input redundancy and improve training efficiency under the condition of a limited fault sample library. At the same time, it is easy to interpret the screening results in conjunction with the physical meaning of the specific synchronizer. Furthermore, this invention uses a neural network to establish a continuous nonlinear mapping between the dimensionality-reduced fault features and the safety boundary location, which can adapt to the nonlinear boundary changes caused by fault intensity, fault location and multi-point fault combinations, and has better generalization ability after the input dimension is reduced. Finally, the power angle stability boundary formed by the present invention can be directly used to construct the safety domain of the operating mode under new fault scenarios, avoiding the need to carry out large-scale time-domain simulation and boundary identification for each new fault scenario. This provides an effective method for batch generation and online rapid updating of the transient power angle safety domain of the power system under multiple fault scenarios. Attached Figure Description

[0022] Exemplary embodiments of the present invention can be more fully understood by referring to the following figures: Figure 1 This is a flowchart of a power system power angle stability boundary migration method 100 based on modal mapping coding according to an embodiment of the present invention; Figure 2 This is a 68-node experimental topology diagram according to an embodiment of the present invention; Figure 3 This is a schematic diagram showing the safety domain boundary distribution of all simulation samples in modal 2 space according to an embodiment of the present invention; Figure 4 This is a schematic diagram of fault coding for an N-2 DC fault in mode 2 space according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the mutual information values ​​between the 32-dimensional input variables and the power angle stability boundary according to an embodiment of the present invention. Figure 6 This is a boundary migration verification diagram based on mode coding under N-2 DC fault according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the power system power angle stability boundary migration system 700 based on modal mapping coding according to an embodiment of the present invention. Detailed Implementation

[0023] Exemplary embodiments of the invention will now be described with reference to the accompanying drawings. However, the invention may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided to fully and completely disclose the invention and to fully convey its scope to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the drawings is not intended to limit the invention. In the drawings, the same units / elements are referred to by the same reference numerals.

[0024] Unless otherwise stated, the terms used herein (including technical terms) have their common meaning as understood by one of ordinary skill in the art. Furthermore, it is understood that terms defined in commonly used dictionaries should be understood to have a meaning consistent with the context of their relevant field, and not to be interpreted as having an idealized or overly formal meaning.

[0025] The purpose of this invention is to provide a power system power angle stability boundary migration method based on modal mapping coding, so as to achieve efficient and accurate migration prediction of transient power angle safety boundaries under different DC disturbance fault scenarios.

[0026] Limitation 1: Existing intelligent assessment methods for transient power angle safety often directly input power flow, fault location, and fault magnitude before the accident into the agent to establish a mapping between input variables and power angle stability. This approach lacks physical interpretability, resulting in redundant input features, overfitting of the agent, and low prediction accuracy.

[0027] Objective 1: One objective of this invention is to construct a mode mapping code for DC disturbance faults, so that the fault location, disturbance magnitude, network allocation relationship and dominant power angle instability mode participation characteristics are uniformly expressed in the same code.

[0028] Limitation 2: When the number of system units is large, or when multiple DC fault combinations need to be handled simultaneously, the encoding dimension of the input features will increase exponentially. Directly using the original encoding of all dimensions for boundary mapping modeling can easily introduce redundant information and reduce generalization ability. In fact, some encoded components provide little to no effective information about boundary changes, yet they are still used as input dimensions in modeling, increasing the unnecessary complexity of agent transfer.

[0029] Objective 2: Another objective of this invention is to use mutual information to filter and reduce the dimensionality of the encoding dimension, and extract the input subset that is most strongly associated with the boundary position while preserving the physical meaning.

[0030] Existing limitation 3: Current technology has not yet developed an intelligent migration method for the transient power angle safety boundary under various scenarios such as changes in the magnitude of DC disturbances in power systems.

[0031] Objective 3: The final objective of this invention is to establish a neural network mapping relationship based on the filtered encoding and boundary labels to achieve migration prediction of safety boundaries under different fault scenarios.

[0032] The proposed method for power system power angle stability boundary migration based on modal mapping coding mainly includes three modules: fault coding based on modal mapping, key influencing factor screening and input dimension reduction, and boundary migration based on neural network.

[0033] This invention uses the known input condition of the defined safety domain boundary normal vector. Based on this, the invention is implemented according to the following process: First, for multiple sets of DC disturbance fault samples, the node-side disturbance power is constructed and distributed through a network to obtain the synchronous machine-side disturbance power. This power is then weighted element-wise with the target mode shape to form the original mode mapping code. For multi-point DC fault scenarios, the codes of each fault point are concatenated side-by-side to form a multi-dimensional fault code input. Second, mutual information is used to measure and rank the statistical dependence between each coding dimension and the boundary position label. The dimension with the larger mutual information is taken as the key influencing factor to obtain the dimensionality-reduced fault features. Then, using the dimensionality-reduced fault features as input and the determined boundary positions under the corresponding fault scenario as labels, a neural network boundary transfer model is trained. Finally, for new DC disturbance faults, a dimensionality-reduced code is constructed according to the same key dimension subset and input into the trained neural network to obtain the predicted boundary, forming the transferred safety domain constraint.

[0034] To clarify the meaning of the symbols used for input quantities in this application, the security domain normal vector and boundary labels can be interpreted as follows. For multi-machine systems with fixed AC topology and power-on mode, the synchronization stiffness matrix can be used to define the symbols. B K Inertia matrix T J and mode matrix Describe the relative motion mode of the work angle: (1) (2) Generator equivalent power injection change Δ P e With the change in work angle Δ δ The following relationship exists between them: (3) By transforming the modal space, the changes in the generator's internal potential and power angle can be projected into the modal space, resulting in: (4) Therefore, the rate of change of the power angle value in the modal space relative to the generator's internal potential can be defined as the normal vector matrix of the safety domain boundary in the true power injection space. A : (5) In a given fault scenario f The following can be obtained through simulation. n The generator output of each group in the operation mode constitutes a power injection matrix. P 0, will the first i The power injection matrix of the group operation mode is based on the normal vector matrix. A Mapping onto the modal space yields: (6) Among them, i Group running mode s i Arranged from smallest to largest, in all s i Find the boundary value in the middle, when it is lower than s i In all operating modes: if the proportion of unstable samples to the total number of samples is less than a specified threshold, then that point is considered unsafe. s i Defined as the security domain boundary value under this fault. g .

[0035] Figure 1 This is a flowchart of a power system power angle stability boundary migration method 100 based on modal mapping coding according to an embodiment of the present invention. Figure 1 As shown, the power system power angle stability boundary migration method 100 based on modal mapping coding provided by the embodiment of the present invention starts from step 101. In step 101, a multi-dimensional modal mapping fault code is constructed based on multiple sets of DC disturbance fault samples to obtain the DC disturbance code under modal mapping.

[0036] Preferably, the method involves constructing a multi-dimensional mode-mapping fault code based on multiple sets of DC disturbance fault samples to obtain the DC disturbance code under the mode mapping, including: DC disturbance faults are represented as active power disturbance vectors at the node side, and the disturbance power at the node side is calculated based on DC disturbance fault samples. for: ;in, H Represents the total number at a certain moment H A DC disturbance occurs, ΔP h Let h be the power of the disturbance. e lh For the perturbation positioning matrix, the first... h The disturbance locations are l h Then the positioning matrix is e lh Nodes where DC disturbances occur l h The element at the corresponding position is 1, and the element at other positions is 0; The node-side disturbance is distributed to the synchronization machine side via the network, and the disturbance power of the node-side disturbance distributed to the synchronization machine side via the network is obtained. for: ; B F This is the disturbance power allocation coefficient matrix; Mapping the disturbance power on the synchronous machine side to the dominant mode space yields the disturbance projection of the DC disturbance in the k*th dominant mode: ;in, This indicates element-wise multiplication. For the kth * The modal coefficient matrix corresponding to each unstable mode; By stitching together the disturbance projections corresponding to each disturbance point, the DC disturbance code under mode mapping is obtained: .

[0037] Preferably, the method determines the disturbance power allocation coefficient matrix in the following manner: , , in, B F This is the disturbance power allocation coefficient matrix. B gg It is a diagonal matrix. C The generator-bus correlation matrix, Y add To extend to the equivalent network admittance matrix of the internal potential nodes of the generator, For the first i The transient reactance parameters of the synchronous machine.

[0038] In this invention, the first step is to construct a multi-dimensional modal mapping fault code. Specifically, this includes: First, the DC disturbance fault is represented as a node-side active power disturbance vector. For multi-point DC disturbances, assume that at a certain moment there are a total of H The first DC disturbance occurred, the second h The disturbance locations are l h The disturbance magnitude is Δ P h The unit vector corresponding to the perturbation node is e lh This allows us to obtain the disturbance power from the node-side disturbance to the synchronizer side via the network. for: (7) Secondly, the node-side disturbances are distributed to the synchronization machine side via the network: (8) in, B F This is the disturbance power allocation coefficient matrix, used to characterize the weight of the DC active disturbance on the node side as it is distributed to the synchronous machine side via the network; B F The solution process is as follows: Construct a diagonal matrix based on the transient reactances of each synchronizer. B gg .

[0039] (9) In the formula, For the first i The transient reactance parameters of the synchronous machine.

[0040] The disturbance power allocation coefficient matrix can be further constructed. B F .

[0041] (10) In the formula, C Generator-bus correlation matrix; Y add This is the equivalent network admittance matrix extended to the potential nodes within the generator.

[0042] Finally, we get B F Then, the disturbance power on the synchronous machine side is mapped to the dominant mode space to obtain the DC disturbance in the [missing information]. k * Perturbation projection under the dominant mode: (11) in, This indicates element-wise multiplication. This encoding simultaneously reflects the location and magnitude of the DC disturbance, its distribution through the network to the synchronous generator, and the degree of participation of each unit in the power angle separation under the dominant mode. For multi-point DC disturbances, the codes corresponding to each disturbance point can be further concatenated to obtain the DC disturbance code under mode mapping: (12) In step 102, key influencing factors are screened and the input dimension is reduced based on the DC disturbance coding to obtain the first fault feature vector after dimensionality reduction.

[0043] Preferably, the process of selecting key influencing factors and reducing the input dimension based on the DC disturbance coding to obtain the first fault feature vector after dimension reduction includes: Each component of the DC disturbance code is used as a candidate input dimension, and each candidate dimension corresponds to the disturbance response component of a certain synchronous machine at a certain fault point. Using F groups of fault scenarios with known boundary labels from the fault sample library, calculate each candidate dimension. j The mutual information between the encoded value and the corresponding boundary label y is used as the importance score of the candidate dimension j. D j;in, , y=1 For stability, y= 0 represents instability. Mutual information is used to measure dimensions. j The degree of statistical dependence between the distribution of encoded values ​​and the distribution of boundary labels; Candidate dimensions with importance scores greater than or equal to a preset score threshold are selected to determine the first fault feature vector after dimensionality reduction. .

[0044] In this invention, the second step involves screening key influencing factors and reducing the input dimension. Specifically, this includes: First, the original fault code is... Z multi Each component is used as a candidate input dimension, and each candidate dimension corresponds to the disturbance response component of a certain synchronous machine at a certain fault point.

[0045] Secondly, utilizing the known boundary labels in the fault sample library F Group failure scenarios, calculate each candidate dimension j The encoded value and the corresponding boundary label y ( y= 1 represents stability. y= Mutual information between (0 represents instability) is used as the importance score for this dimension. D j . No. j The importance scores of the candidate dimensions are represented as follows: (13) in, Mutual information is used to measure dimensions. j The degree of statistical dependence between the distribution of encoded values ​​and the distribution of boundary labels.

[0046] For discrete variables, mutual information is calculated as follows: (14) Among them, Ω j For the first j A discrete set of candidate dimensions, Ω y For the discrete value set of boundary labels, p j,y ( a,b )for z j =a and y = b The joint probability, p j ( a )and p g (b ) represent the corresponding marginal probabilities. I The larger the value, the closer the relationship between the change in the value of this dimension and the change in the boundary position, and the more important it is for boundary migration.

[0047] Finally, by setting a mutual information score threshold and retaining dimensions with scores exceeding the threshold, the dimensionality-reduced fault feature vector is obtained. This method is used for subsequent neural network training and prediction. It directly uses mutual information to measure the statistical dependence of each original dimension on the boundary label, which is simple to calculate and easy to implement. Each dimension after dimensionality reduction still corresponds to the original encoded component of the specific fault point and the specific synchronizer, without generating new combined variables, which is convenient for engineering interpretation in combination with physical meaning.

[0048] In step 103, training is performed based on the dimensionality-reduced fault feature vectors to obtain the trained boundary migration map.

[0049] Preferably, training is performed based on the dimensionality-reduced fault feature vectors to obtain the trained boundary migration map, including: Based on the first fault feature vector after dimensionality reduction, a supervised training sample set is constructed: ,in, This represents the safety boundary location corresponding to the f-th fault scenario; is the first fault feature vector after dimensionality reduction; F is the number of fault scenarios with known boundary labels; Using convolutional neural networks f N A mapping from dimensionality-reduced fault features to boundary locations is established, and the network parameters are solved by minimizing the mean square error on the training samples to obtain the trained boundary migration mapping: .

[0050] In this invention, the third step involves performing boundary migration modeling based on a neural network. Specifically, this includes: First, based on the dimensionality-reduced fault features obtained in step two, a supervised training sample set is constructed: (15) in, For the first f The safety boundary location corresponding to each fault scenario.

[0051] Secondly, a convolutional neural network is used. f N A mapping from dimensionality-reduced fault features to boundary locations is established. The network parameters are solved by minimizing the mean square error on the training samples to obtain the trained boundary migration mapping. (16) In step 104, the dimension-reduced second fault feature vector corresponding to the new DC disturbance fault scenario is calculated, and the dimension-reduced second fault feature vector is input into the boundary migration mapping for boundary prediction, so as to determine the power angle safety domain constraint based on the obtained prediction boundary.

[0052] Preferably, determining the power angle safety domain constraint based on the obtained prediction boundary includes: , Where A is the boundary normal vector matrix of the security region. For the power injection matrix, To predict the boundary.

[0053] In this invention, boundary prediction is performed at the end. Specifically, this includes: For new DC disturbance fault scenarios, construct the original code in the same way as in step one, and extract dimensionality-reduced features based on the set of key influencing factors fixed during the training phase. Z n Input the trained neural network to obtain the prediction boundary. g new .

[0054] Accordingly, the power angle safety domain constraint under the new DC disturbance fault scenario is: (17) The power angle stability boundary migration method for power systems based on modal mapping coding provided by this invention has excellent performance: First, the modal mapping code constructed in this invention simultaneously reflects the location of DC disturbances, the magnitude of disturbances, the distribution relationship of disturbances to the synchronous machine side via the network, and the degree of participation of each unit under the dominant mode, providing a physically meaningful input basis for boundary migration and supporting a unified coding expression for single-point and multi-point DC fault combination scenarios. Secondly, this invention proposes a key influencing factor screening method based on mutual information. By sorting and truncating the mutual information scores of each dimension, it effectively reduces the dimensionality of the fault coding input dimension while preserving the physical meaning of the input. This screening method is computationally simple and easy to implement. It can reduce input redundancy and improve training efficiency under the condition of a limited fault sample library. At the same time, it is easy to interpret the screening results in conjunction with the physical meaning of the specific synchronizer. Furthermore, this invention uses a neural network to establish a continuous nonlinear mapping between the dimensionality-reduced fault features and the safety boundary location, which can adapt to the nonlinear boundary changes caused by fault intensity, fault location and multi-point fault combinations, and has better generalization ability after the input dimension is reduced. Finally, the power angle stability boundary formed by the present invention can be directly used to construct the safety domain of the operating mode under new fault scenarios, avoiding the need to carry out large-scale time-domain simulation and boundary identification for each new fault scenario. This provides an effective method for batch generation and online rapid updating of the transient power angle safety domain of the power system under multiple fault scenarios.

[0055] The following specific examples illustrate the embodiments of the present invention. In an embodiment of the present invention, taking the experimental topology of a 68-node power system in five zones as an example, the structure is as follows: Figure 2 As shown in the figure. This embodiment of the system includes 16 synchronous machines, where node 20 is the DC output terminal and node 17 is the DC input terminal. A fixed network topology is used, with all 16 units powered on. An N-2 DC fault scenario is set, where node 20 and node 17 experience simultaneous DC faults. Eighty-two combinations of dual-end faults of varying magnitudes are constructed, with 1000 operating modes randomly generated for each fault combination. Simulation verification shows that the N-2 dual-zone DC fault in this embodiment primarily excites mode 2. By projecting and delimiting the operating modes under mode 2, 82 sets of power angle safety domain stability boundary values ​​are generated, as shown in the figure. Figure 3 As shown.

[0056] Specifically, the process of determining the stability boundary of the security domain includes: (1) Constructing multidimensional modal mapping fault codes This implementation further constructs the input encoding of DC faults in mode 2 space. Taking a 1200MW DC input fault at node 17 and a 1000MW DC output fault at node 20 as examples, the original disturbance power allocation values ​​and the disturbance power allocation values ​​after mode space transformation for the two faults are as follows: Figure 4 As shown.

[0057] Depend on Figure 4 It can be seen that, based on the original disturbance power, the fault at node 17 mainly manifests as a positive active disturbance, and concentrates its impact on the units near unit 13; the fault at node 20 manifests as a negative disturbance, mainly affecting units 4 and 5. After mode 2 weighting, the fault at node 17 forms the most significant positive component at unit 13, and retains a secondary contribution at units 12 and 16; the fault at node 20 mainly manifests as the participation of units 4 and 5 and their adjacent units.

[0058] (2) Screening of key influencing factors and dimensionality reduction of input dimensions Mutual information values ​​are calculated for the multi-dimensional modal mapping fault coding. The unit dimension under a 17-node fault disturbance assignment is defined as dimensions 1–16, and the unit dimension under a 20-node fault disturbance assignment is defined as dimensions 17–32. The mutual information value between the 32-dimensional input and the power angle stability boundary is calculated as follows: Figure 5 As shown.

[0059] By setting the mutual information margin coefficient to 0.2, 10-32 dimensional feature inputs can be selected as key influencing factors. Subsequently, 10-32 dimensional variables can be used as inputs for training, and 10-32 dimensional variables can be used as inputs for the transfer agent.

[0060] (3) Boundary migration modeling based on neural networks This embodiment employs a convolutional neural network for boundary migration prediction, using 10-32 dimensional variables as inputs for training and testing the agent model. The model hyperparameters are optimized using a controlled variable method, and repeated random subsampling cross-validation is used to evaluate the boundary migration model. The model is repeated 100 times, with 10% of the fault samples randomly selected as the test set in each validation, and the remaining samples used to train the convolutional neural network migration model. This process is repeated multiple times, randomly dividing the fault samples, and the predicted results are compared with the mean of the predictions to the true boundary values. Figure 6 As shown.

[0061] The experimental results show that the mean prediction points of each fault sample are mainly distributed near the ideal diagonal, and the average root mean square error (RMSE) of 100 simulations is 2.025. This indicates that the convolutional neural network can learn the nonlinear mapping relationship between the N-2 fault code and the boundary migration amount, and achieve effective prediction of fault boundary values.

[0062] To compare the advantages of the proposed encoding method in terms of transfer accuracy compared to traditional methods, this embodiment selects different encoding schemes for comparison. The transfer performance of the proposed encoding method is compared with that of: a traditional encoding method that only inputs 2D fault location + 2D fault size, and an encoding method without mutual information dimensionality reduction. The evaluation method also employs repeated random subsampling cross-validation. The comparison results of the root mean square error of the transfer are shown in Table 1.

[0063] Table 1. Comparison of root mean square error of transfer models under different encoding methods

[0064] The comparison results show that the modal mapping fault coding proposed in this invention can significantly improve the generalization ability and prediction accuracy of the transfer model. The input dimension reduction through mutual information does not cause a decrease in prediction accuracy. The selected features can better describe the fault and network information, ensuring high-precision transfer.

[0065] Figure 7 This is a schematic diagram of the structure of a power system power angle stability boundary migration system 700 based on modal mapping coding according to an embodiment of the present invention. Figure 7As shown, the power system power angle stability boundary migration system 700 based on modal mapping coding provided in this embodiment of the invention includes: a DC disturbance coding acquisition unit 701, a dimensionality reduction unit 702, a mapping unit 703, and a boundary prediction unit 704.

[0066] Preferably, the DC disturbance coding acquisition unit 701 is used to construct a multi-dimensional mode mapping fault code based on multiple sets of DC disturbance fault samples, and to acquire the DC disturbance code under the mode mapping.

[0067] Preferably, the DC disturbance coding acquisition unit 701 constructs a multi-dimensional mode mapping fault code based on multiple sets of DC disturbance fault samples, and acquires the DC disturbance code under the mode mapping, including: DC disturbance faults are represented as active power disturbance vectors at the node side, and the disturbance power at the node side is calculated based on DC disturbance fault samples. for: ;in, H Represents the total number at a certain moment H A DC disturbance occurs, ΔP h Let h be the power of the disturbance. e lh For the perturbation positioning matrix, the first... h The disturbance locations are l h Then the positioning matrix is e lh Nodes where DC disturbances occur l h The element at the corresponding position is 1, and the element at other positions is 0; The node-side disturbance is distributed to the synchronization machine side via the network, and the disturbance power of the node-side disturbance distributed to the synchronization machine side via the network is obtained. for: ; B F This is the disturbance power allocation coefficient matrix; Mapping the disturbance power on the synchronous machine side to the dominant mode space yields the disturbance projection of the DC disturbance in the k*th dominant mode: ;in, This indicates element-wise multiplication. For the kth * The modal coefficient matrix corresponding to each unstable mode; By stitching together the disturbance projections corresponding to each disturbance point, the DC disturbance code under mode mapping is obtained: .

[0068] Preferably, the DC disturbance coding acquisition unit 701 determines the disturbance power allocation coefficient matrix in the following manner: , , in, B F This is the disturbance power allocation coefficient matrix. B gg It is a diagonal matrix. C The generator-bus correlation matrix, Y add To extend to the equivalent network admittance matrix of the internal potential nodes of the generator, For the first i The transient reactance parameters of the synchronous machine.

[0069] Preferably, the dimensionality reduction unit 702 is used to screen key influencing factors and reduce the input dimension based on the DC disturbance coding to obtain the first fault feature vector after dimensionality reduction.

[0070] Preferably, the dimensionality reduction unit 702 performs key influencing factor screening and input dimension reduction based on the DC disturbance coding to obtain a first fault feature vector after dimensionality reduction, including: Each component of the DC disturbance code is used as a candidate input dimension, and each candidate dimension corresponds to the disturbance response component of a certain synchronous machine at a certain fault point. Using F groups of fault scenarios with known boundary labels from the fault sample library, calculate each candidate dimension. j The encoded value and the corresponding boundary label y The mutual information between them serves as the importance score for candidate dimension j. D j ;in, , y=1 For stability, y= 0 represents instability. Mutual information is used to measure dimensions. j The degree of statistical dependence between the distribution of encoded values ​​and the distribution of boundary labels; Candidate dimensions with importance scores greater than or equal to a preset score threshold are selected to determine the first fault feature vector after dimensionality reduction. .

[0071] Preferably, the mapping unit 703 is used to train based on the dimensionality-reduced fault feature vector to obtain the trained boundary migration mapping.

[0072] Preferably, the mapping unit 703 is trained based on the dimensionality-reduced fault feature vector to obtain the trained boundary migration mapping, including: Based on the first fault feature vector after dimensionality reduction, a supervised training sample set is constructed: ,in, This represents the safety boundary location corresponding to the f-th fault scenario; is the first fault feature vector after dimensionality reduction; F is the number of fault scenarios with known boundary labels; Using convolutional neural networks f N A mapping from dimensionality-reduced fault features to boundary locations is established, and the network parameters are solved by minimizing the mean square error on the training samples to obtain the trained boundary migration mapping: .

[0073] Preferably, the boundary prediction unit 704 is used to calculate the dimension-reduced second fault feature vector corresponding to the new DC disturbance fault scenario, and input the dimension-reduced second fault feature vector into the boundary migration mapping for boundary prediction, so as to determine the power angle safety domain constraint based on the obtained prediction boundary.

[0074] Preferably, the boundary prediction unit 704 determines the power angle safety domain constraint based on the acquired prediction boundary, including: , Where A is the boundary normal vector matrix of the security region. For the power injection matrix, To predict the boundary.

[0075] The power system power angle stability boundary migration system 700 based on modal mapping coding in an embodiment of the present invention corresponds to the power system power angle stability boundary migration method 100 based on modal mapping coding in another embodiment of the present invention, and will not be described again here.

[0076] According to another aspect of the present invention, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any one of the steps of a power system power angle stability boundary migration method based on modal mapping coding.

[0077] According to another aspect of the present invention, the present invention provides an electronic device, comprising: The aforementioned computer-readable storage medium; and One or more processors for executing a program in the computer-readable storage medium.

[0078] The present invention has been described with reference to a few embodiments. However, it will be apparent to those skilled in the art that other embodiments besides those disclosed above fall equivalently within the scope of the present invention.

[0079] Generally, all terms used in this invention are interpreted according to their ordinary meaning in the art, unless otherwise expressly defined herein. All references to “a / the / the [device, component, etc.]” ​​are openly interpreted as at least one instance of said device, component, etc., unless otherwise expressly stated. The steps of any method disclosed herein need not be performed in the exact order disclosed, unless explicitly stated otherwise.

[0080] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0081] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0082] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0083] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the present invention.

Claims

1. A power system power angle stability boundary migration method based on modal mapping coding, characterized in that, The method includes: A multi-dimensional mode mapping fault code is constructed based on multiple sets of DC disturbance fault samples to obtain the DC disturbance code under the mode mapping. Based on the DC disturbance coding, key influencing factors are screened and the input dimension is reduced to obtain the first fault feature vector after dimensionality reduction. Training is performed based on the dimensionality-reduced fault feature vectors to obtain the trained boundary migration mapping. Calculate the dimension-reduced second fault feature vector corresponding to the new DC disturbance fault scenario, and input the dimension-reduced second fault feature vector into the boundary migration mapping for boundary prediction, so as to determine the power angle safety domain constraint based on the obtained prediction boundary.

2. The method according to claim 1, characterized in that, A multi-dimensional mode-mapping fault code is constructed based on multiple sets of DC disturbance fault samples to obtain the DC disturbance code under the mode mapping, including: DC disturbance faults are represented as active power disturbance vectors at the node side, and the disturbance power at the node side is calculated based on DC disturbance fault samples. for: ;in, H Represents the total number at a certain moment H A DC disturbance occurs, ΔP h Let h be the power of the disturbance. e lh For the perturbation positioning matrix, the first... h The disturbance locations are l h Then the positioning matrix is e lh Nodes where DC disturbances occur l h The element at the corresponding position is 1, and the element at other positions is 0; The node-side disturbance is distributed to the synchronization machine side via the network, and the disturbance power of the node-side disturbance distributed to the synchronization machine side via the network is obtained. for: ; B F This is the disturbance power allocation coefficient matrix; Mapping the disturbance power on the synchronous machine side to the dominant mode space yields the disturbance projection of the DC disturbance in the k*th dominant mode: ;in, This indicates element-wise multiplication. For the kth * The modal coefficient matrix corresponding to each unstable mode; By stitching together the disturbance projections corresponding to each disturbance point, the DC disturbance code under mode mapping is obtained: .

3. The method according to claim 2, characterized in that, The method determines the disturbance power allocation coefficient matrix in the following manner: , , in, B F This is the disturbance power allocation coefficient matrix. B gg It is a diagonal matrix. C The generator-bus correlation matrix, Y add To extend to the equivalent network admittance matrix of the internal potential nodes of the generator, For the first i The transient reactance parameters of the synchronous machine.

4. The method according to claim 1, characterized in that, Based on the DC disturbance coding, key influencing factors are screened and the input dimension is reduced to obtain the first fault feature vector after dimensionality reduction, including: Each component of the DC disturbance code is used as a candidate input dimension, and each candidate dimension corresponds to the disturbance response component of a certain synchronous machine at a certain fault point. Using F groups of fault scenarios with known boundary labels from the fault sample library, calculate each candidate dimension. j The encoded value and the corresponding boundary label y The mutual information between them serves as the importance score for candidate dimension j. D j ;in, , y=1 For stability, y= 0 represents instability. Mutual information is used to measure dimensions. j The degree of statistical dependence between the distribution of encoded values ​​and the distribution of boundary labels; Candidate dimensions with importance scores greater than or equal to a preset score threshold are selected to determine the first fault feature vector after dimensionality reduction. .

5. The method according to claim 1, characterized in that, Training is performed based on the dimensionality-reduced fault feature vectors to obtain the trained boundary migration map, including: Based on the first fault feature vector after dimensionality reduction, a supervised training sample set is constructed: ,in, This represents the safety boundary location corresponding to the f-th fault scenario; is the first fault feature vector after dimensionality reduction; F is the number of fault scenarios with known boundary labels; Using convolutional neural networks f N A mapping from dimensionality-reduced fault features to boundary locations is established, and the network parameters are solved by minimizing the mean square error on the training samples to obtain the trained boundary migration mapping: .

6. The method according to claim 1, characterized in that, The power angle safety region constraints are determined based on the obtained prediction boundaries, including: , Where A is the boundary normal vector matrix of the security region. For the power injection matrix, To predict the boundary.

7. A power system power angle stability boundary migration system based on modal mapping coding, characterized in that, The system includes: The DC disturbance coding acquisition unit is used to construct a multi-dimensional mode mapping fault code based on multiple sets of DC disturbance fault samples and acquire the DC disturbance code under the mode mapping. The dimension reduction unit is used to screen key influencing factors and reduce the input dimension based on the DC disturbance coding to obtain the first fault feature vector after dimension reduction. The mapping unit is used to train based on the dimensionality-reduced fault feature vector to obtain the trained boundary migration mapping. The boundary prediction unit is used to calculate the dimension-reduced second fault feature vector corresponding to the new DC disturbance fault scenario, and input the dimension-reduced second fault feature vector into the boundary migration mapping for boundary prediction, so as to determine the power angle safety domain constraint based on the obtained prediction boundary.

8. The system according to claim 7, characterized in that, The DC disturbance coding acquisition unit constructs a multi-dimensional mode mapping fault code based on multiple sets of DC disturbance fault samples, and acquires the DC disturbance code under the mode mapping, including: DC disturbance faults are represented as active power disturbance vectors at the node side, and the disturbance power at the node side is calculated based on DC disturbance fault samples. for: ;in, H Represents the total number at a certain moment H A DC disturbance occurs, ΔP h Let h be the power of the disturbance. e lh For the perturbation positioning matrix, the first... h The disturbance locations are l h Then the positioning matrix is e lh Nodes where DC disturbances occur l h The element at the corresponding position is 1, and the element at other positions is 0; The node-side disturbance is distributed to the synchronization machine side via the network, and the disturbance power of the node-side disturbance distributed to the synchronization machine side via the network is obtained. for: ; B F This is the disturbance power allocation coefficient matrix; Mapping the disturbance power on the synchronous machine side to the dominant mode space yields the disturbance projection of the DC disturbance in the k*th dominant mode: ;in, This indicates element-wise multiplication. For the kth * The modal coefficient matrix corresponding to each unstable mode; By stitching together the disturbance projections corresponding to each disturbance point, the DC disturbance code under mode mapping is obtained: .

9. The system according to claim 8, characterized in that, The DC disturbance coding acquisition unit determines the disturbance power allocation coefficient matrix using the following method: , , in, B F This is the disturbance power allocation coefficient matrix. B gg It is a diagonal matrix. C The generator-bus correlation matrix, Y add To extend to the equivalent network admittance matrix of the internal potential nodes of the generator, For the first i The transient reactance parameters of the synchronous machine.

10. The system according to claim 7, characterized in that, The dimensionality reduction unit performs key influencing factor screening and input dimension reduction based on the DC disturbance encoding to obtain the first fault feature vector after dimensionality reduction, including: Each component of the DC disturbance code is used as a candidate input dimension, and each candidate dimension corresponds to the disturbance response component of a certain synchronous machine at a certain fault point. Using F groups of fault scenarios with known boundary labels from the fault sample library, calculate each candidate dimension. j The mutual information between the encoded value and the corresponding boundary label y is used as the importance score of the candidate dimension j. D j ;in, , y=1 For stability, y= 0 represents instability. Mutual information is used to measure dimensions. j The degree of statistical dependence between the distribution of encoded values ​​and the distribution of boundary labels; Candidate dimensions with importance scores greater than or equal to a preset score threshold are selected to determine the first fault feature vector after dimensionality reduction. .

11. The system according to claim 7, characterized in that, The mapping unit is trained based on the dimensionality-reduced fault feature vector to obtain the trained boundary migration mapping, including: Based on the first fault feature vector after dimensionality reduction, a supervised training sample set is constructed: ,in, This represents the safety boundary location corresponding to the f-th fault scenario; is the first fault feature vector after dimensionality reduction; F is the number of fault scenarios with known boundary labels; Using convolutional neural networks f N A mapping from dimensionality-reduced fault features to boundary locations is established, and the network parameters are solved by minimizing the mean square error on the training samples to obtain the trained boundary migration mapping: .

12. The system according to claim 7, characterized in that, The boundary prediction unit determines the power angle safety domain constraint based on the obtained prediction boundary, including: , Where A is the boundary normal vector matrix of the security region. For the power injection matrix, To predict the boundary.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 1-6.

14. An electronic device, characterized in that, include: The computer-readable storage medium as described in claim 13; as well as One or more processors for executing a program in the computer-readable storage medium.