Electromagnetic transient simulation ill-conditioned matrix correction method and device, equipment and medium

Through Tikhonov regularization and iterative scaling technology, the calculation problems caused by the ill-conditioned admittance matrix in the electromagnetic transient simulation of the power system are solved, high-precision and efficient node voltage calculation is achieved, and the electromagnetic transient in the power system is solved. The computational efficiency, accuracy and stability of ill-conditioned matrices are contradictory in simulation.

CN118568386APending Publication Date: 2024-08-30GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410624912.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the electromagnetic transient simulation of the power system, when the admittance matrix becomes an ill-conditioned matrix, the node voltage calculation results are inaccurate or cannot be calculated, especially when the resistance is large or the parameter range spans a large range, the data accuracy of the computer equipment The impact is large, resulting in conflicts between calculation efficiency, accuracy and stability.

Method used

Using the Tikhonov regularization method, by minimizing the vector difference between the node admittance matrix and the node voltage product, the node voltage equivalent solution equation is constructed, and the iterative method and diagonal matrix scaling are used to improve the solution process of the ill-conditioned linear system. Reduce solution errors and avoid numerical solution divergence.

Benefits of technology

It achieves high-precision simulation under single-precision small step size, saves computing resources, expands the range of data that can be simulated by the system, and ensures the calculation efficiency, accuracy and stability of node voltages. It is especially suitable for electromagnetic transient simulation of large-scale power systems. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568386A
    Figure CN118568386A
Patent Text Reader

Abstract

The invention relates to the technical field of power systems, and discloses an electromagnetic transient simulation ill-conditioned matrix correction method, device and equipment and a medium, and the method comprises the steps: obtaining a node admittance matrix, a node injection current vector and a node historical current vector of a target node in a power system, calculating a vector difference between a node injection current vector and a node historical current vector; based on Tikhonov regularization, taking a product and a vector difference of a minimum node admittance matrix and a node voltage corresponding to a target node as a target, and constructing a node voltage equivalence solution equation of the target node; constructing a diagonal matrix based on the node admittance matrix; and solving the node voltage equivalent solution equation by using an iteration method, and scaling the node voltage and the node admittance matrix by using a diagonal matrix in the solving process to solve a target node voltage corresponding to the target node. According to the method, the solution error of the ill-conditioned matrix is reduced by using the Tikhonov regularization method, so that an approximate convergence solution is obtained, and numerical solution divergence is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to a method, device, equipment and medium for correcting an electromagnetic transient simulation sick matrix. Background Art

[0002] The electromagnetic transient simulation of linear power systems is mainly the process of solving linear equations to obtain the node voltages of each node in the power system. However, when the elements in the node admittance matrix coefficients are very small (such as a large resistance in the power system, the corresponding admittance value is very small) or the parameter range span in the power system is relatively large, the admittance matrix may become an ill-conditioned matrix due to the influence of the data accuracy settings of the simulation equipment such as computers. If the admittance matrix is ​​an ill-conditioned matrix, the calculation results of the node voltage will be very inaccurate, and even the node voltage cannot be calculated. Summary of the invention

[0003] In view of this, the present invention provides a method, device, equipment and medium for correcting an electromagnetic transient simulation ill-conditioned matrix to solve the problem in the related art that during the node voltage calculation process of the power system electromagnetic transient simulation, the accuracy of the node voltage calculation is affected because the admittance matrix becomes an ill-conditioned matrix.

[0004] In a first aspect, the present invention provides a method for correcting an electromagnetic transient simulation sick matrix, the method comprising:

[0005] Obtaining a node admittance matrix, a node injection current vector, and a node historical current vector of a target node in the power system, and calculating a vector difference between the node injection current vector and the node historical current vector;

[0006] Based on Tikhonov regularization, with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference, constructing an equivalent solution equation for the node voltage of the target node;

[0007] Constructing a diagonal matrix based on the node admittance matrix;

[0008] The node voltage equivalent solution equation is solved by using an iterative method, and during the solution process, the node voltage and the node admittance matrix are scaled by using the diagonal matrix to obtain the target node voltage corresponding to the target node.

[0009] The present invention uses the Tikhonov regularization method to minimize the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference as the goal, constructs the node voltage equivalent solution equation of the target node, and uses the iterative method to solve it. The solution error of the ill-conditioned matrix is ​​reduced by using the diagonal matrix constructed by the node admittance matrix to perform a scaling solution during the solution process, thereby obtaining an approximate convergent solution and avoiding the divergence of the numerical solution, thereby realizing high-precision simulation with a single-precision small step size, creating the possibility of selecting a data format with a short digital length and saving computing resources in the simulation calculation, and using the ill-conditioned matrix Tikhonov regularization algorithm allows the solution of linear systems with severe matrix pathology, and can also expand the data range that the system can simulate.

[0010] In an optional implementation, before constructing the node voltage equivalent solution equation of the target node based on Tikhonov regularization with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference, the method further includes:

[0011] Determining whether the node admittance matrix is ​​an ill-conditioned matrix;

[0012] When the node admittance matrix is ​​an ill-conditioned matrix, a step of constructing a node voltage equivalent solution equation for the target node based on Tikhonov regularization is performed with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference.

[0013] The present invention selects different solution schemes by judging whether the node admittance matrix is ​​an ill-conditioned matrix. When the node admittance matrix is ​​an ill-conditioned matrix, the solution of the ill-conditioned linear system in the electromagnetic transient simulation is improved by using the Tikhonov regularization method, thereby ensuring the calculation efficiency, calculation accuracy and stability of the node voltage in the electromagnetic transient simulation of the large-scale power system.

[0014] In an optional implementation manner, the node voltage equivalent solution equation of the target node is expressed by the following formula:

[0015] (G * G+μ 2 E)u=G * (II hist )

[0016] Where u is the node voltage vector, G is the node admittance matrix, I is the node injection current vector, I hist is the node historical current vector, G * is the transpose of the matrix G, μ is the regularization parameter, and E is the identity matrix.

[0017] In an optional implementation, constructing a diagonal matrix based on the node admittance matrix includes: constructing the diagonal matrix by the following formula:

[0018]

[0019] Among them, d kk is the diagonal element of the kth row of the diagonal matrix, ||G :,k ||2 is the bi-norm of the k-th column vector of G.

[0020] In an optional implementation, before constructing a diagonal matrix based on the node admittance matrix, the method further includes:

[0021] Based on the singular values ​​of the node admittance matrix, the node voltage equivalent solution equation is updated to obtain an updated node voltage equivalent solution equation.

[0022] The present invention uses the singular values ​​of the node admittance matrix to update the node voltage equivalent solution equation, which can further reduce the node voltage solution error and improve the accuracy of node voltage calculation. It can also cause matrix pathology when the order of magnitude span of component parameter values ​​in the circuit system is large, and realize the node voltage solution of linear systems with serious matrix pathology, thereby expanding the data range that can be simulated by the power system.

[0023] In an optional implementation manner, the updating of the node voltage equivalent solution equation based on the diagonal matrix to obtain an updated node voltage equivalent solution equation includes:

[0024] The node voltage equivalent solution equation is updated by the following formula:

[0025] (G * G+L μ * L μ )u=G * (II hist )

[0026] Among them, L μ =D μ V T , σ1,σ2…σ n are the singular values ​​of G, The characteristic vector of T is the transpose of V, L μ * For L μ The transpose of .

[0027] In a second aspect, the present invention provides an electromagnetic transient simulation sick matrix correction device, the device comprising:

[0028] An acquisition module, used to acquire a node admittance matrix, a node injection current vector and a node historical current vector of a target node in the power system, and calculate a vector difference between the node injection current vector and the node historical current vector;

[0029] A first processing module is used to construct a node voltage equivalent solution equation of the target node based on Tikhonov regularization with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference;

[0030] A second processing module, configured to construct a diagonal matrix based on the node admittance matrix;

[0031] The third processing module is used to solve the node voltage equivalent solution equation using an iterative method, and in the solution process use the diagonal matrix to scale the node voltage and the node admittance matrix to obtain the target node voltage corresponding to the target node.

[0032] In an optional embodiment, the device further comprises:

[0033] A judging module, used for judging whether the node admittance matrix is ​​an ill-conditioned matrix;

[0034] The fourth processing module is used to execute the step of constructing a node voltage equivalent solution equation of the target node based on Tikhonov regularization when the node admittance matrix is ​​an ill-conditioned matrix, with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference.

[0035] In an optional implementation manner, the node voltage equivalent solution equation of the target node is expressed by the following formula:

[0036] (G * G+μ 2 E)u=G * (II hist )

[0037] Where u is the node voltage vector, G is the node admittance matrix, I is the node injection current vector, I hist is the node historical current vector, G * is the transpose of the matrix G, μ is the regularization parameter, and E is the identity matrix.

[0038] In an optional implementation, the second processing module is specifically configured to construct the diagonal matrix using the following formula:

[0039]

[0040] Among them, d kkis the diagonal element of the kth row of the diagonal matrix, ||G :,k ||2 is the bi-norm of the k-th column vector of G.

[0041] In an optional embodiment, the device further comprises:

[0042] The fifth processing module is used to update the node voltage equivalent solution equation based on the singular values ​​of the node admittance matrix to obtain an updated node voltage equivalent solution equation.

[0043] In an optional implementation manner, the fifth processing module is specifically configured to update the node voltage equivalent solution equation using the following formula:

[0044] (G * G+L μ * L μ )u=G * (II hist )

[0045] Among them, L μ =D μ V T , σ1,σ2…σ n are the singular values ​​of G, The characteristic vector of T is the transpose of V, L μ * For L μ The transpose of .

[0046] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the electromagnetic transient simulation sick matrix correction method provided by the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0047] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the electromagnetic transient simulation sick matrix correction method provided by the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 is a flow chart of a method for correcting an electromagnetic transient simulation sick matrix according to an embodiment of the present invention;

[0050] Figure 2 is a flow chart of another electromagnetic transient simulation sick matrix correction method according to an embodiment of the present invention;

[0051] Figure 3 is a schematic diagram of a circuit structure of a power system according to an embodiment of the present invention;

[0052] Figure 4 A schematic diagram of node voltages is obtained by calculating and solving using existing technology;

[0053] Figure 5 is a schematic diagram of node voltages obtained by solving a sick matrix correction method for electromagnetic transient simulation according to an embodiment of the present invention;

[0054] Figure 6 is a structural block diagram of an electromagnetic transient simulation sick matrix correction device according to an embodiment of the present invention;

[0055] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0057] The electromagnetic transient simulation of linear power systems is mainly the process of solving linear equations. When the elements in the node admittance matrix coefficients are very small (for example, there is a large resistance in the system, and the corresponding admittance value is very small) or the parameter range span in the system is relatively large, the admittance matrix may become an ill-conditioned matrix. If the admittance matrix is ​​an ill-conditioned matrix, the calculation result will be very inaccurate. The matrix condition number is often used as an indicator to judge the ill-conditioned state of the matrix. The larger the matrix condition number, the higher the degree of matrix ill-conditioning, and a longer numeric data type is required to save the element values ​​of the matrix. However, with the development of power systems, the scale of electromagnetic transient simulation is getting larger and larger. In order to save computing resources, data types with short digital length can be used to improve computing efficiency. However, the problem of data accuracy is faced. In large-scale electromagnetic transient simulation of power systems, the contradiction between computing efficiency and computing accuracy and stability is more prominent.

[0058] The embodiment of the present invention provides a technical solution for solving the node voltage of the electromagnetic transient simulation of the power system by using the Tikhonov regularization method. By solving the equivalent least squares problem of the ill-conditioned linear equations, when solving the least squares problem, by optimizing the format of the scaling matrix and changing the original equation into an equivalent solution form, an approximate solution of the ill-conditioned linear equations can be obtained, thereby improving the solution accuracy of the ill-conditioned matrix and further improving the accuracy of the node voltage.

[0059] According to an embodiment of the present invention, an embodiment of a method for correcting an electromagnetic transient simulation sick matrix is ​​provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0060] In this embodiment, a method for correcting an electromagnetic transient simulation sick matrix is ​​provided, which is applied to a computer device. Figure 1 is a flow chart of a method for correcting an electromagnetic transient simulation sick matrix according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0061] Step S101 , obtaining a node admittance matrix, a node injection current vector, and a node historical current vector of a target node in a power system, and calculating a vector difference between the node injection current vector and the node historical current vector.

[0062] Specifically, the electromagnetic transient simulation of the power system is to solve the equation shown in formula (1):

[0063] Gu=II hist (1)

[0064] Where u is the node voltage vector, G is the node admittance matrix, I is the node injection current vector, I hist is the node historical current vector.

[0065] Step S102, based on Tychonoff regularization, with the goal of minimizing the product and vector difference of the node admittance matrix and the node voltage corresponding to the target node, construct an equivalent solution equation for the node voltage of the target node.

[0066] Specifically, since the node admittance matrix of the circuit is related to the circuit parameters and the simulation step size, it may be an ill-conditioned matrix. In order to obtain more accurate simulation results in electromagnetic transient simulation, a smaller simulation step size is usually used. However, from the formation of the admittance matrix, it can be seen that when the simulation step size is smaller, it will be easier to make the elements in the admittance matrix at different orders of magnitude, increase the matrix condition number, and increase the probability of matrix ill-conditioning. And in electromagnetic transient simulation calculations, especially real-time simulation operations, in order to save resources and improve efficiency, a data format with a shorter digital length, such as a single-precision data format, can be used. When solving a system with a large matrix condition number, it may cause numerical divergence and other solution instability problems. Therefore, an embodiment of the present invention proposes a solution for solving an ill-conditioned matrix by using an improved least squares Tikhonov regularization method, and reduces the solution error of the ill-conditioned matrix by using the Tikhonov regularization method. Thereby, the above formula (1) for solving the electromagnetic transient linear system equation is equivalent to minimizing ||Gu-(II hist )||, and change the objective function to formula (2):

[0067] ||Gu-(II hist )|| 2 +μ||u|| 2 (2)

[0068] Minimizing the above objective function obtains the node voltage equivalent solution equation of the target node, which is expressed by the following formula (3):

[0069] (G * G+μ 2 E)u=G * (II hist ) (3)

[0070] Where u is the node voltage vector, G is the node admittance matrix, I is the node injection current vector, I hist is the node historical current vector, G * is the transpose of the matrix G, μ is the regularization parameter, and E is the identity matrix.

[0071] Step S103: construct a diagonal matrix based on the node admittance matrix.

[0072] Specifically, the diagonal matrix is ​​constructed by the following formula (4):

[0073]

[0074] Among them, d kk is the diagonal element of the kth row of the diagonal matrix, ||G :,k ||2 is the bi-norm of the k-th column vector of G.

[0075] Step S104, using an iterative method to solve the node voltage equivalent solution equation, and in the solution process using a diagonal matrix to scale the node voltage and the node admittance matrix to obtain a target node voltage corresponding to the target node.

[0076] The embodiment of the present invention uses the Tikhonov regularization method to minimize the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference as the goal, constructs the node voltage equivalent solution equation of the target node, and uses the iterative method to solve it. The solution error of the ill-conditioned matrix is ​​reduced by using the diagonal matrix constructed by the node admittance matrix to perform a scaling solution during the solution process, thereby obtaining an approximate convergent solution and avoiding the divergence of the numerical solution, thereby achieving high-precision simulation with a single-precision small step size, creating the possibility of selecting a data format with a short digital length and saving computing resources in the simulation calculation, and using the ill-conditioned matrix Tikhonov regularization algorithm allows the solution of linear systems with severe matrix pathology, and can also expand the data range that the system can simulate.

[0077] In this embodiment, a method for correcting an electromagnetic transient simulation sick matrix is ​​provided, which is applied to a computer device. Figure 2 is a flow chart of a method for correcting an electromagnetic transient simulation sick matrix according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0078] Step S201, obtain the node admittance matrix, node injection current vector and node historical current vector of the target node in the power system, and calculate the vector difference between the node injection current vector and the node historical current vector. Figure 1 The relevant description of step S101 is not repeated here.

[0079] Step S202, determining whether the node admittance matrix is ​​an ill-conditioned matrix.

[0080] Specifically, it can be determined whether the condition number of the node admittance matrix exceeds a preset condition value. If so, the node admittance matrix is ​​considered to be an ill-conditioned matrix. In addition, the value range of each matrix element in the node admittance matrix can be compared with the computer processing accuracy. If the computer processing accuracy cannot meet the range span of the matrix element value, the node admittance matrix is ​​considered to be an ill-conditioned matrix. This is only an example, and the present invention is not limited to this.

[0081] Step S203, when the node admittance matrix is ​​an ill-conditioned matrix, based on Tychonoff regularization, the node voltage equivalent solution equation of the target node is constructed with the goal of minimizing the product and vector difference of the node admittance matrix and the node voltage corresponding to the target node. Figure 1 The description of step S102 is not repeated here.

[0082] Furthermore, when the node admittance matrix is ​​not an ill-conditioned matrix, an electromagnetic transient simulation solution method for the node voltage is constructed based on the node admittance matrix and the vector difference, and the target node voltage corresponding to the target node is obtained by solving.

[0083] The embodiment of the present invention selects different solution schemes by judging whether the node admittance matrix is ​​an ill-conditioned matrix. When the node admittance matrix is ​​an ill-conditioned matrix, the solution of the ill-conditioned linear system in the electromagnetic transient simulation is improved by using the Tikhonov regularization method, thereby ensuring the calculation efficiency, calculation accuracy and stability of the node voltage in the electromagnetic transient simulation of the large-scale power system.

[0084] Step S204 , based on the singular values ​​of the node admittance matrix, the node voltage equivalent solution equation is updated to obtain an updated node voltage equivalent solution equation.

[0085] Specifically, the node voltage equivalent solution equation is updated by the following formula (5):

[0086] (G * G+L μ * L μ )u=G * (II hist ) (5)

[0087] Among them, L μ =D μ V T ,

[0088] σ1,σ2…σ n are the singular values ​​of G, The characteristic vector of T is the transpose of V, L μ * For L μ The transpose of .

[0089] The embodiment of the present invention uses the singular values ​​of the node admittance matrix to update the node voltage equivalent solution equation, which can further reduce the node voltage solution error and improve the accuracy of node voltage calculation. It can also solve the problem of matrix pathology when the order of magnitude span of component parameter values ​​in the circuit system is large, and realize the node voltage solution of linear systems with serious matrix pathology, thereby expanding the data range that can be simulated in the power system.

[0090] Step S205: construct a diagonal matrix based on the node admittance matrix. Figure 1 The relevant description of step S103 is not repeated here.

[0091] Step S206, using an iterative method to solve the node voltage equivalent solution equation, and in the solution process using a diagonal matrix to scale the node voltage and the node admittance matrix to obtain a target node voltage corresponding to the target node.

[0092] Specifically, the following formula (6) is used for iterative solution:

[0093]

[0094] In the solution process, the diagonal matrix is ​​scaled using the following formula (7):

[0095]

[0096] The target node voltage corresponding to the target node is obtained by solving the following formula (8):

[0097]

[0098] Among them, u (0) is the initial value of the iteration u, r (0) is the initial iteration parameter, b is the initial value given, u (i) is the i-th iteration value of u, r (i) is the i-th iteration parameter, D is a diagonal matrix, Hewei are two intermediate parameters respectively.

[0099] By (G * G+μ 2 E) When approaching singular values, we can use diagonal matrices to scale The components are roughly the same size, and The condition number decreases and will not approach the singular value, so that the approximate solution of the ill-conditioned linear equations can be obtained and the accuracy of solving the ill-conditioned matrix can be improved.

[0100] The electromagnetic transient simulation ill-conditioned matrix correction scheme provided by the embodiment of the present invention will be described in detail below in conjunction with specific practical use cases.

[0101] For example, Figure 3 Take the power system circuit diagram shown in the figure as an example. In the figure, E1 to E7 represent 7 nodes in the power system, E1 is node 1, E2 is node 2, and so on. Assuming that the circuit uses a simulation step of 20μs, the node admittance matrix obtained is:

[0102]

[0103] The numerical experiment was conducted by using single-precision data format. The condition number of the matrix is ​​52971552, which exceeds the simulation range of single precision. Using the above formula (1) to directly solve the voltage of node 4 will cause numerical divergence. The solution result is as follows: Figure 4 shown.

[0104] Using the calculation scheme provided in the embodiment of the present invention, the regularization parameter μ=5*10 -5 , the approximate solution is obtained by using the Tikhonov regularization iteration, and the voltage of node 4 is obtained as Figure 5 As shown in the figure, the effectiveness of the scheme is proved by numerical calculation. Figure 4 and Figure 5 It can be seen that the method provided by the embodiment of the present invention can obtain an approximate convergent solution, avoid the divergence of the numerical solution, and thus achieve high-precision simulation with a small single-precision step size, which creates the possibility of selecting a data format with a short digital length in the simulation calculation and saving computing resources. At the same time, in view of the problem that the matrix may be ill-conditioned when the order of magnitude span of the component parameter values ​​in the circuit system is large, the use of the ill-conditioned matrix Tikhonov regularization algorithm allows the solution of linear systems with severe matrix ill-conditioning, and can also expand the data range that the system can simulate.

[0105] In this embodiment, an electromagnetic transient simulation sick matrix correction device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0106] This embodiment provides an electromagnetic transient simulation sick matrix correction device, such as Figure 6 As shown, including:

[0107] An acquisition module 601 is used to acquire a node admittance matrix, a node injection current vector and a node historical current vector of a target node in the power system, and calculate a vector difference between the node injection current vector and the node historical current vector;

[0108] The first processing module 602 is used to construct a node voltage equivalent solution equation of the target node based on Tikhonov regularization with the goal of minimizing the product and vector difference of the node admittance matrix and the node voltage corresponding to the target node;

[0109] The second processing module 603 is used to construct a diagonal matrix based on the node admittance matrix;

[0110] The third processing module 604 is used to solve the node voltage equivalent solution equation using an iterative method, and in the solution process, scale the node voltage and the node admittance matrix using a diagonal matrix to solve and obtain the target node voltage corresponding to the target node.

[0111] In some optional embodiments, the above device further includes:

[0112] A judgment module, used to judge whether the node admittance matrix is ​​an ill-conditioned matrix;

[0113] The fourth processing module is used to execute the steps of constructing the node voltage equivalent solution equation of the target node based on Tikhonov regularization to minimize the product and vector difference of the node admittance matrix and the node voltage corresponding to the target node when the node admittance matrix is ​​an ill-conditioned matrix.

[0114] In some optional implementations, the node voltage equivalent solution equation of the target node is expressed by the following formula:

[0115] (G * G+μ 2 E)u=G * (II hist )

[0116] Where u is the node voltage vector, G is the node admittance matrix, I is the node injection current vector, I hist is the node historical current vector, G * is the transpose of the matrix G, μ is the regularization parameter, and E is the identity matrix.

[0117] In some optional implementations, the second processing module 603 is specifically configured to construct a diagonal matrix using the following formula:

[0118]

[0119] Among them, d kk is the diagonal element of the kth row of the diagonal matrix, ||G :,k ||2 is the bi-norm of the k-th column vector of G.

[0120] In some optional embodiments, the device further comprises:

[0121] The fifth processing module is used to update the node voltage equivalent solution equation based on the singular values ​​of the node admittance matrix to obtain an updated node voltage equivalent solution equation.

[0122] In some optional implementations, the fifth processing module is specifically used to update the node voltage equivalent solution equation using the following formula:

[0123] (G * G+Lμ * L μ )u=G * (II hist )

[0124] Among them, L μ =D μ V T , σ1,σ2…σ n are the singular values ​​of G, The characteristic vector of T is the transpose of V, L μ * For L μ The transpose of .

[0125] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0126] The electromagnetic transient simulation sick matrix correction device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0127] The embodiment of the present invention also provides a computer device having the above Figure 6 The electromagnetic transient simulation sick matrix correction device is shown.

[0128] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0129] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0130] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0131] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0132] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0133] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0134] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0135] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0136] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for correcting an electromagnetic transient simulation ill-conditioned matrix, characterized in that: The method comprises: Obtaining a node admittance matrix, a node injection current vector, and a node historical current vector of a target node in the power system, and calculating a vector difference between the node injection current vector and the node historical current vector; Based on Tikhonov regularization, with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference, constructing an equivalent solution equation for the node voltage of the target node; Constructing a diagonal matrix based on the node admittance matrix; The node voltage equivalent solution equation is solved by using an iterative method, and during the solution process, the node voltage and the node admittance matrix are scaled by using the diagonal matrix to obtain the target node voltage corresponding to the target node.

2. The method according to claim 1, characterized in that: Before constructing a node voltage equivalent solution equation of the target node based on Tikhonov regularization with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference, the method further includes: Determining whether the node admittance matrix is ​​an ill-conditioned matrix; When the node admittance matrix is ​​an ill-conditioned matrix, a step of constructing a node voltage equivalent solution equation for the target node based on Tikhonov regularization is performed with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference.

3. The method according to claim 1, characterized in that The node voltage equivalent solution equation of the target node is expressed by the following formula: (G * G+μ 2 E)u=G * (I-I hist ) Where u is the node voltage vector, G is the node admittance matrix, I is the node injection current vector, I hist is the node historical current vector, G * is the transpose of the matrix G, μ is the regularization parameter, and E is the identity matrix.

4. The method according to claim 3, characterized in that The constructing a diagonal matrix based on the node admittance matrix includes: constructing the diagonal matrix by the following formula: Among them, d kk is the diagonal element of the kth row of the diagonal matrix, ||G :,k ||2 is the bi-norm of the k-th column vector of G.

5. The method according to claim 3, characterized in that: Before constructing a diagonal matrix based on the node admittance matrix, the method further includes: Based on the singular values ​​of the node admittance matrix, the node voltage equivalent solution equation is updated to obtain an updated node voltage equivalent solution equation.

6. The method according to claim 5, characterized in that The updating of the node voltage equivalent solution equation based on the diagonal matrix to obtain an updated node voltage equivalent solution equation includes: The node voltage equivalent solution equation is updated by the following formula: (G * G+L μ * L μ )u=G * (I-I hist ) Among them, L μ =D μ V T , σ1,σ2…σ n are the singular values ​​of G, The characteristic vector of T is the transpose of V, L μ * For L μ The transpose of .

7. An electromagnetic transient simulation ill-conditioned matrix correction device, characterized in that: The device comprises: An acquisition module, used to acquire a node admittance matrix, a node injection current vector and a node historical current vector of a target node in the power system, and calculate a vector difference between the node injection current vector and the node historical current vector; A first processing module is used to construct a node voltage equivalent solution equation of the target node based on Tikhonov regularization with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference; A second processing module, configured to construct a diagonal matrix based on the node admittance matrix; The third processing module is used to solve the node voltage equivalent solution equation using an iterative method, and in the solution process use the diagonal matrix to scale the node voltage and the node admittance matrix to obtain the target node voltage corresponding to the target node.

8. The device according to claim 7, characterized in that The device also includes: A judging module, used for judging whether the node admittance matrix is ​​an ill-conditioned matrix; The fourth processing module is used to execute the step of constructing a node voltage equivalent solution equation of the target node based on Tikhonov regularization when the node admittance matrix is ​​an ill-conditioned matrix, with the goal of minimizing the product of the node admittance matrix and the node voltage corresponding to the target node and the vector difference.

9. The device according to claim 7, characterized in that The node voltage equivalent solution equation of the target node is expressed by the following formula: (G * G+μ 2 E)u=G * (I-I hist ) Where u is the node voltage vector, G is the node admittance matrix, I is the node injection current vector, I hist is the node historical current vector, G * is the transpose of the matrix G, μ is the regularization parameter, and E is the identity matrix.

10. The device according to claim 7, characterized in that The second processing module is specifically configured to construct the diagonal matrix using the following formula: Among them, d kk is the diagonal element of the kth row of the diagonal matrix, ||G :,k ||2 is the bi-norm of the k-th column vector of G.

11. The device according to claim 7, characterized in that The device also includes: The fifth processing module is used to update the node voltage equivalent solution equation based on the singular values ​​of the node admittance matrix to obtain an updated node voltage equivalent solution equation.

12. The device according to claim 11, characterized in that The fifth processing module is specifically used to update the node voltage equivalent solution equation through the following formula: (G * G+L μ * L μ )u=G * (I-I hist ) Among them, L μ =D μ V T , σ1,σ2…σ n are the singular values ​​of G, The characteristic vector of T is the transpose of V, L μ * For L μ The transpose of .

13. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the electromagnetic transient simulation sick matrix correction method according to any one of claims 1 to 6 by executing the computer instructions.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the electromagnetic transient simulation sick matrix correction method according to any one of claims 1 to 6.