Power flow analysis method and system based on simplified Jacobian matrix
By simplifying the trend analysis method of the Jacobian matrix, ignoring the phase angle retaining voltage amplitude and simplifying the iteration process, the problem of inefficient nonlinear trend calculation in large power systems is solved, and shorter calculation time and efficient trend analysis are achieved.
Patent Information
- Application Number
- CN202411055877.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, nonlinear current calculations are performed for a long time in large power systems, resulting in inefficiency. In particular, the Newton-Ravson method is iterated for too long when it contains hundreds or even thousands of busbars.
Using the trend analysis method based on the simplified Jacobian matrix, the active and reactive power correction amounts are calculated by collecting initial data, and the preset conditions are determined to determine whether the preset conditions are met. If they are met, the simplified Jacobian matrix is calculated, and the phase angle reserved voltage amplitude is ignored, which is simplified. Iterative process, solve the correction equation and output the target voltage amplitude correction amount.
Without losing calculation accuracy, the execution time of flow calculation is significantly shortened and efficiency is improved. It is suitable for real-time energy loss calculation, voltage control and reactive power planning of power systems.
Smart Images

Figure CN118970976A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power flow analysis, and in particular to a power flow analysis method and system based on a simplified Jacobian matrix. Background Art
[0002] The main function of the power system is to deliver electric energy to the load in a sufficient, efficient and economical manner. Under normal operation, the interconnected power system can be analyzed based on nonlinear nodes to form a power flow equation, but it must be solved through some effective power flow iteration methods. At present, there are two numerical solution methods for power flow analysis, namely the Gauss-Seidel method and the Newton-Raphson method. Among them, the Gauss-Seidel method is more suitable for parallel power flow analysis. It can couple the power flow solutions from different subsystems and obtain the power flow solution of the entire system. The Newton-Raphson method is widely used, but the execution time of this method is very slow in large power systems containing hundreds or even thousands of buses, because the Jacobian matrix needs to be recalculated in each iteration of the nonlinear power flow equation, which makes the iteration time relatively long, resulting in the problem of low efficiency of nonlinear power flow calculation.
[0003] In view of this, a power flow analysis method and system based on a simplified Jacobian matrix is needed. Summary of the invention
[0004] The embodiments of the present application provide a power flow analysis method and system based on a simplified Jacobian matrix, which are used to solve the problem of low efficiency of nonlinear power flow calculation.
[0005] A first aspect of an embodiment of the present application provides a power flow analysis method based on a simplified Jacobian matrix, comprising:
[0006] Collect the initial data of PQ nodes, PV nodes and balance nodes in the power system, and set the number of iterations for power flow calculation;
[0007] Calculate the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the Pv node respectively according to the initial data;
[0008] Determine whether the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet the preset conditions, and if so, calculate each element of the simplified Jacobian matrix, where the simplified Jacobian matrix is the Jacobian matrix after simplifying the phase angle;
[0009] A correction equation is solved based on each element of the simplified Jacobian matrix, and a correction amount of the target voltage amplitude is iterated and output.
[0010] Furthermore, the calculating, according to the initial data, respectively the correction amount of the active power of each iteration of the PQ node and the correction amount of the reactive power of each iteration of the Pv node, comprises:
[0011] The active power and reactive power of the PQ node and the PV node are counted respectively;
[0012] The active power deviation and reactive power deviation of the PQ node and the PV node at the kth iteration are respectively calculated according to the active power and reactive power of the PQ node and the PV node.
[0013] Furthermore, the respectively counting of active power and reactive power of the PQ node and the PV node includes:
[0014] The node power equation is as follows:
[0015]
[0016] Where: p i is the active power injected into node i, q i is the reactive power injected into node i, v i is the voltage amplitude of node i, v j is the voltage amplitude at node j, g ij is the line conductance between node i and node j, θ ij is the voltage phase angle between node i and node j, b ij is the line susceptance between node i and node j.
[0017] Furthermore, the calculating the active power deviation and reactive power deviation of the PQ node and the PV node at the kth iteration according to the active power and reactive power of the PQ node and the PV node respectively includes:
[0018] The node power deviation equation at the kth iteration is as follows:
[0019]
[0020] Where: is the active power deviation of node i in the kth iteration, is the reactive power deviation of node i at the kth iteration, is the active power of node i in the kth iteration, is the reactive power of node i at the kth iteration, is the voltage amplitude of node i at the kth iteration, is the voltage amplitude of node j in the kth iteration, is the line conductance between node i and node j at the kth iteration, is the voltage phase angle between node i and node j, is the line susceptance between node i and node j.
[0021] Furthermore, the calculation simplifies each element of the Jacobian matrix, including:
[0022] By simplifying the phase angle in the Jacobian matrix and retaining the voltage amplitude of the node;
[0023] Compute the elements of the simplified Jacobian matrix.
[0024] Furthermore, the expression of the simplified Jacobian matrix is as follows:
[0025] Let sinθ ij ≈0, cosθ ij ≈1, and keep v i and v j :
[0026]
[0027] Where: H ij 、N ij , J ij and L ij are the simplified Jacobian matrix elements respectively.
[0028] Furthermore, the determining whether the correction amount of each iteration of the active power of the PQ node and the correction amount of each iteration of the reactive power of the PV node meet preset conditions includes:
[0029] If not, the power of the balancing node and the line power are calculated.
[0030] A second aspect of the embodiment of the present application provides a power flow analysis system based on a simplified Jacobian matrix, including:
[0031] An initial data acquisition unit is used to collect initial data of PQ nodes, PV nodes and balance nodes in the power system and set the number of iterations of power flow calculation;
[0032] A correction amount calculation unit, used to calculate the correction amount of each iteration of the active power of the PQ node and the correction amount of each iteration of the reactive power of the PV node according to the initial data;
[0033] A correction amount determination unit, used to determine whether the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet preset conditions;
[0034] A simplified Jacobian matrix element calculation unit, used for calculating each element of the simplified Jacobian matrix when the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet preset conditions, wherein the simplified Jacobian matrix is a Jacobian matrix after simplifying the phase angle;
[0035] The correction value output unit of the target voltage amplitude is used to solve the correction equation based on each element of the simplified Jacobian matrix, iterate and output the correction value of the target voltage amplitude.
[0036] A third aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein when the processor executes the computer-readable instructions, the steps of the power flow analysis method based on the simplified Jacobian matrix as described in any one of the above are implemented.
[0037] A fourth aspect of an embodiment of the present application provides a readable storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the steps of the power flow analysis method based on the simplified Jacobian matrix as described in any one of the above are implemented.
[0038] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0039] This application first performs power flow calculation based on the collected initial primary data, sets the number of iterations, and calculates the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node. Secondly, it determines whether the calculated correction amount meets the preset conditions. If so, it calculates each element of the simplified Jacobian matrix; finally, it solves the correction equation, iterates and outputs the target voltage amplitude correction amount to correct the power flow model. This application is based on the traditional AC power flow model. While ignoring the phase angle, it simplifies the iteration process, does not affect the calculation accuracy of the bus voltage amplitude, and is superior to the traditional nonlinear power flow calculation method in terms of execution time. The method in this application has a shorter execution time. Without losing the calculation accuracy, the fast power flow calculation method of the simplified Jacobian matrix provides an efficient data basis for real-time calculations such as energy loss calculation, voltage control, reactive power planning, and safety verification of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of an embodiment of a power flow analysis method based on a simplified Jacobian matrix in the present invention;
[0041] Figure 2 It is a structural block diagram of an embodiment of a power flow analysis system based on a simplified Jacobian matrix in the present invention;
[0042] Figure 3 The figure is a structural block diagram of a computer device in the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0044] In this embodiment, the power flow analysis based on the simplified Jacobian matrix is used to simplify the iterative process of power flow analysis, which effectively improves the efficiency and accuracy of power flow calculation. The implementation method in this embodiment can be implemented in the system, in the server, or in the terminal, and is not specifically limited.
[0045] Embodiment 1
[0046] See also Figure 1 , an embodiment of a power flow analysis method based on a simplified Jacobian matrix in the present invention comprises the following steps:
[0047] S11. Collect initial data of PQ nodes, PV nodes and balance nodes in the power system, and set the number of iterations of power flow calculation;
[0048] In this embodiment, the initial data is collected based on the operating parameter information and topological structure of the power system, where the parameter information includes node information, information of each line, and transformer information, etc. The nodes are set to PQ nodes, Pv nodes, and balance nodes. It should be noted that the information collected here is the information of single-phase nodes of the power grid system. The number of iterations depends on the actual situation and is set to more than once here.
[0049] S12. Calculate the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node respectively according to the initial data;
[0050] The correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node are calculated according to the initial data, including:
[0051] 1. Count the active power and reactive power of PQ nodes and PV nodes respectively;
[0052] 2. Calculate the active power deviation and reactive power deviation of the PQ node and the PV node at the kth iteration according to the active power and reactive power of the PQ node and the PV node.
[0053] Specifically, the node power equation is expressed as follows:
[0054]
[0055] Where: pi is the active power injected into node i, q i is the reactive power injected into node i, v i is the voltage amplitude of node i, v j is the voltage amplitude at node j, g ij is the line conductance between node i and node j, θ ij is the voltage phase angle between node i and node j, b ij is the line susceptance between node i and node j.
[0056] The node power deviation equation at the kth iteration is as follows:
[0057]
[0058] Where: is the active power deviation of node i in the kth iteration, is the reactive power deviation of node i at the kth iteration, is the active power of node i in the kth iteration, is the reactive power of node i at the kth iteration, is the voltage amplitude of node i at the kth iteration, is the voltage amplitude of node j in the kth iteration, is the line conductance between node i and node j at the kth iteration, is the voltage phase angle between node i and node j, is the line susceptance between node i and node j.
[0059] S13. Determine whether the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet the preset conditions;
[0060] S14. When the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet the preset conditions, the elements of the simplified Jacobian matrix are calculated, and the simplified Jacobian matrix is the Jacobian matrix after simplifying the phase angle;
[0061] S15. Solve the correction equation based on the elements of the simplified Jacobian matrix, iterate and output the correction amount of the target voltage amplitude.
[0062] In this embodiment, the preset conditions are: When the calculated active power deviation and reactive power deviation meet the conditions, the elements of the simplified Jacobian matrix are directly calculated.
[0063] Specifically, the matrix form of the power flow equation is as follows:
[0064]
[0065] Where: P is the active power vector injected into the node, Q is the reactive power vector injected into the node, θ is the node voltage phase angle vector, V is the node voltage amplitude vector, H, N, M and L are the corresponding coefficient matrices respectively.
[0066] The calculation formula for each element in the Jacobian matrix is as follows:
[0067]
[0068] Where: H ij 、N ij , J ij and L ij are the simplified Jacobian matrix elements respectively.
[0069] In the distribution network, the amplitude of each bus voltage is approximately one, and the phase angle of each bus voltage is very small, approximately zero, so the following assumptions are made: let v i =v j ≈1, sinθ ij ≈0, cosθ ij ≈1, and the Jacobian matrix is simplified as follows:
[0070]
[0071] This is equivalent to linearizing the AC power flow model, introducing a linearization error. Assume that sinθ ij ≈0, cosθ ij ≈1, however, the method of handling voltage amplitude is different, retaining v i and v j The above model is modified as follows:
[0072]
[0073] By simplifying the phase angle and retaining the voltage amplitude, the Jacobian matrix is simplified to solve the above power flow correction matrix equation: The Newton method is used to calculate the voltage amplitude of each node, and then the new voltage of the node, that is, the target voltage amplitude, is calculated. Finally, the target voltage amplitude correction amount is obtained to correct the model and complete an iteration. After the first iteration is completed, the second iteration is performed according to this method, and so on, until all convergence conditions are met and the iteration is completed.
[0074] S16. When the correction amount of active power of the PQ node in each iteration and the correction amount of reactive power of the PV node in each iteration do not meet the preset conditions, the power of the balancing node and the line power are calculated.
[0075] In this embodiment, when the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node do not meet the preset conditions, that is, When , the system calculates the power of the balancing node and the line power.
[0076] The above embodiment makes further improvements on the Jacobian matrix, simplifies the iteration process while ignoring the phase angle, does not affect the calculation accuracy of the bus voltage amplitude, and solves the problem of slow calculation in each iteration process of power flow calculation.
[0077] Embodiment 2
[0078] See also Figure 2 , an embodiment of a power flow analysis system based on a simplified Jacobian matrix in the present invention comprises the following steps:
[0079] The initial data collection unit 101 is used to collect the initial data of the PQ nodes, PV nodes and balance nodes in the power system and set the number of iterations of the power flow calculation;
[0080] A correction amount calculation unit 102, used to calculate the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the Pv node according to the initial data;
[0081] The correction amount determination unit 103 is used to determine whether the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet the preset conditions;
[0082] The simplified Jacobian matrix element calculation unit 104 is used to calculate the simplified Jacobian matrix elements when the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the Pv node meet the preset conditions. The simplified Jacobian matrix is a Jacobian matrix after simplifying the phase angle.
[0083] The target voltage amplitude correction value output unit 105 is used to solve the correction equation based on each element of the simplified Jacobian matrix, iterate and output the target voltage amplitude correction value.
[0084] For the specific definition of the system, please refer to the definition of the method above, which will not be repeated here. Each module in the above system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0085] Embodiment 3
[0086] See also Figure 3The present invention provides a computer device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the steps of the above method are implemented.
[0087] Those of ordinary skill in the art will appreciate that the units of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0088] In the embodiments provided by the present invention, it should be understood that the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored. In addition, each functional unit in each embodiment of the present invention can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-0nlyMemory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disk or optical disk, etc., which can store program code.
[0090] It can be understood that the above embodiments are only used to illustrate the technical solutions of the present invention rather than 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 they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A power flow analysis method based on simplified Jacobian matrix, It is characterized in that include: Collect the initial data of PQ nodes, PV nodes and balance nodes in the power system, and set the number of iterations for power flow calculation; Calculate the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node respectively according to the initial data; Determine whether the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet the preset conditions, and if so, calculate each element of the simplified Jacobian matrix, where the simplified Jacobian matrix is the Jacobian matrix after simplifying the phase angle; A correction equation is solved based on each element of the simplified Jacobian matrix, and a correction amount of the target voltage amplitude is iterated and output.
2. The power flow analysis method based on the simplified Jacobian matrix according to claim 1, It is characterized in that The calculating, according to the initial data, respectively the correction amount of each iteration of the active power of the PQ node and the correction amount of each iteration of the reactive power of the PV node, comprises: The active power and reactive power of the PQ node and the PV node are counted respectively; The active power deviation and reactive power deviation of the PQ node and the PV node at the kth iteration are respectively calculated according to the active power and reactive power of the PQ node and the PV node.
3. The power flow analysis method based on the simplified Jacobian matrix according to claim 2, It is characterized in that The respectively counting of active power and reactive power of the PQ node and the PV node includes: The node power equation is as follows: Where: p i is the active power injected into node i, q i is the reactive power injected into node i, v i is the voltage amplitude of node i, v j is the voltage amplitude at node j, g ij is the line conductance between node i and node j, θ ij is the voltage phase angle between node i and node j, b ij is the line susceptance between node i and node j.
4. The power flow analysis method based on the simplified Jacobian matrix according to claim 2, It is characterized in that The calculating the active power deviation and reactive power deviation of the PQ node and the PV node at the kth iteration according to the active power and reactive power of the PQ node and the PV node respectively includes: The node power deviation equation at the kth iteration is as follows: Where: is the active power deviation of node i in the kth iteration, is the reactive power deviation of node i at the kth iteration, is the active power of node i in the kth iteration, is the reactive power of node i at the kth iteration, is the voltage amplitude of node i at the kth iteration, is the voltage amplitude of node j in the kth iteration, is the line conductance between node i and node j at the kth iteration, is the voltage phase angle between node i and node j, is the line susceptance between node i and node j.
5. The power flow analysis method based on the simplified Jacobian matrix according to claim 4, It is characterized in that The calculation simplifies each element of the Jacobian matrix, including: By simplifying the phase angle in the Jacobian matrix and retaining the voltage amplitude of the node; Compute the elements of the simplified Jacobian matrix.
6. The power flow analysis method based on the simplified Jacobian matrix according to claim 5, It is characterized in that The expression of the simplified Jacobian matrix is as follows: Let sinθ ij ≈0, cosθ ij ≈1, and keep v i and v j : Where: H ij 、N ij , J ij and L ij are the simplified Jacobian matrix elements respectively.
7. The power flow analysis method based on simplified Jacobian matrix according to claim 1, It is characterized in that The determining whether the correction amount of each iteration of the active power of the PQ node and the correction amount of each iteration of the reactive power of the PV node meet preset conditions includes: If not, the power of the balancing node and the line power are calculated.
8. A power flow analysis system based on simplified Jacobian matrix, It is characterized in that include: An initial data acquisition unit is used to collect initial data of PQ nodes, PV nodes and balance nodes in the power system and set the number of iterations of power flow calculation; A correction amount calculation unit, used for respectively calculating the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node according to the initial data; A correction amount determination unit, used to determine whether the correction amount of each iteration of the active power of the PQ node and the correction amount of each iteration of the reactive power of the PV node meet preset conditions; A simplified Jacobian matrix element calculation unit, used for calculating each element of the simplified Jacobian matrix when the correction amount of active power of each iteration of the PQ node and the correction amount of reactive power of each iteration of the PV node meet preset conditions, wherein the simplified Jacobian matrix is a Jacobian matrix after simplifying the phase angle; The correction value output unit of the target voltage amplitude is used to solve the correction equation based on each element of the simplified Jacobian matrix, iterate and output the correction value of the target voltage amplitude.
9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer-readable instructions, the steps of the power flow analysis method based on the simplified Jacobian matrix as described in any one of claims 1 to 7 are implemented.
10. A readable storage medium storing computer readable instructions. It is characterized in that When the computer-readable instructions are executed by a processor, the steps of the power flow analysis method based on the simplified Jacobian matrix as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Identification and calibration method and device for line parameters of power distribution network and electronic equipment
CN120724016A
Power flow simulation and clustering analysis method for power distribution network based on annual time sequence data
CN121682347A
