CN103488610A - Method of solving power grid equations based no non-zero element traversal of sparse storage - Google Patents

Method of solving power grid equations based no non-zero element traversal of sparse storage Download PDF

Info

Publication number
CN103488610A
CN103488610A CN201310404191.3A CN201310404191A CN103488610A CN 103488610 A CN103488610 A CN 103488610A CN 201310404191 A CN201310404191 A CN 201310404191A CN 103488610 A CN103488610 A CN 103488610A
Authority
CN
China
Prior art keywords
matrix
equation
zero entry
network
solving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310404191.3A
Other languages
Chinese (zh)
Other versions
CN103488610B (en
Inventor
欧开健
张树卿
李伟
童陆园
胡云
梁旭
郭海平
胡明亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
CSG Electric Power Research Institute
Research Institute of Southern Power Grid Co Ltd
Original Assignee
Tsinghua University
Research Institute of Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University, Research Institute of Southern Power Grid Co Ltd filed Critical Tsinghua University
Priority to CN201310404191.3A priority Critical patent/CN103488610B/en
Publication of CN103488610A publication Critical patent/CN103488610A/en
Application granted granted Critical
Publication of CN103488610B publication Critical patent/CN103488610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a method of solving power grid equations based no non-zero element traversal of sparse storage. The method includes the steps of 1, before analog time-step solution, forming a power system grid equation according to power grid structural parameters and failure disturbance information to be calculated; 2, factoring an equation coefficient matrix in the power system grid equation to obtain a post-factoring factor table matrix; 3, performing analog time-step solution. The method has the advantages that non-zero element retrieval and double cycle of the equation coefficient matrix and redundant operations and calculations in conditional judgment during application of the conventional solution methods of high-dimensional sparse linear equations can be eliminated as far as possible, the novel, utility method and process of solving the high-dimensional sparse linear equation sets is obtained, the efficiency of the method of solving the high-dimensional linear equation sets based on sparse storage and forward and back substitutions is improved, and the solution bottleneck of large-scale power systems and linear power network and circuit parts in efficient analog calculation and real-time (super real-time) simulation for large-scale power systems can be eliminated effectively.

Description

A kind of electrical network network equation method for solving of the non-zero entry traversal based on sparse storage
Technical field
The present invention relates to a kind of electrical network network equation method for solving of the non-zero entry traversal based on sparse storage, the present invention, for large-scale electrical power system electromechanical transient (surpassing) real-time simulation network equation rapid solving, belongs to the electric digital simulation technique of large net field.
Background technology
Relate generally to the calculating of the parts such as matrix, vector correlation computing, particularly linear electric power networks, circuit in electric system computational analysis and emulation, essence is that the linear equation that voltage, electric current are relevant solves.To large-scale electrical power system, the equation dimension is higher, usually reaches dimensions up to ten thousand, and its operand proportion is larger, thereby the High-dimensional Linear equation solution is one of principal element affected large-scale electrical power system computational analysis and simulated program and software operation efficiency.
How the linear equation matrix is carried out to Factorization in engineering, then based on factor table, by former generation, backward steps, solve linear equation.In addition, due to the design feature of electric power networks self, the matrix of describing above-mentioned linear equation adopts the sparsity structure storage more, in matrix, only contains a small amount of non-zero entry.Matrix is through Factorization, and packing factor table matrix also only contains a small amount of non-zero entry.
In electric system simulation, particularly, in strict real-time simulation, solve and the network equation of the whole network dynamic element solves alternately iteration to carry out.Wherein, dynamic element is discrete component access electric network, and each dynamic element is relatively independent in single solves, and the process of resolving can automatically decouple; can divide into groups is run simultaneously resolves, and dynamic element comprises the primary equipment such as motor, dynamic load and controls the secondary device such as protection.Yet, the electric network close-coupled that electric system is complete, network equation solves and is difficult to automatically decouple, thereby run simultaneously, resolves.Therefore, can network equation solves link becomes the Main Bottleneck that determines large-scale electrical power system simulation calculation efficiency, particularly, in (surpassing) real-time simulation, become the key factor that guarantee the emulation real-time.
Conventional higher-dimension sparse linear solving equations method, although effectively saved the calculator memory storage space, but in the former generation and backward steps of Solving Linear, except necessary floating number algebraic operation, also need by dual circulation, system of linear equations matrix of coefficients non-zero entry to be retrieved, wherein comprise some redundant operations, thereby reduced equation solution efficiency.Therefore, in (surpassing) real-time simulation, be necessary to eliminate as much as possible redundant operation and the computing in conventional High-dimensional Linear solving equations method flow, effectively improve High-dimensional Linear solving equations efficiency.
Summary of the invention
The electrical network network equation method for solving that the object of the invention is to consider the problems referred to above and provide a kind of non-zero entry based on sparse storage to travel through.The present invention can eliminate operation and the computing of redundancy in the retrieval of equation coefficient matrix non-zero entry in conventional higher-dimension sparse linear equation solution method and dual circulation, condition judgment as much as possible, form higher-dimension sparse linear solving equations method and the flow process of new practicality, the efficiency of lifting based on sparse storage and former generation C++ language High-dimensional Linear equation method, effectively eliminate the calculating of large-scale electrical power system efficient emulation and (surpassing) real-time simulation neutral line electric network and circuit part and solve bottleneck.
Technical scheme of the present invention is: the present invention is based on the electrical network network equation method for solving of the non-zero entry traversal of sparse storage, comprise the following steps:
1) before step solves when entering emulation, according to electric network composition parameter and fault disturbance information to be calculated, form the power system network equation, equation can be described as
I · = Y U · - - - ( 1 )
Wherein for electric system node Injection Current fundamental phasors,
Figure BDA0000378141170000023
for the Electric Power System Node Voltage fundamental phasors, Y is power system network node admittance battle array, and the equation dimension is designated as n;
2) before when entering emulation, step solves, equation coefficient matrix Y carries out Factorization in formula (1), obtains the factor table matrix after Factorization, is designated as
A=L+D+U (2)
Be wherein triangular portions under L factor table matrix, the main diagonal element part that D is the factor table matrix, the upper triangular portions that U is the factor table matrix;
Above-mentioned matrix all adopts sparse form to be stored, and non-zero entry by rows;
Record matrix L, U non-zero entry sum k l, k u;
Record matrix L, U non-zero entry place line number R l, R u, and record matrix L, U non-zero entry column C l, C u, in matrix L, i non-zero entry place row, column is designated as
Figure BDA0000378141170000031
in matrix U, i non-zero entry place row, column is designated as
Figure BDA0000378141170000032
While 3) entering emulation, step solves.
During during emulation above-mentioned steps 3), step solves, each simulation step length need be carried out network equation and be solved, and specifically comprises the steps:
31) be equation solution former generation procedure initialization intermediate variable x, x is n-dimensional vector, order
x = I · - - - ( 3 ) ;
32) according to matrix L non-zero entry quantity, substance loops following computing
x ( R L i ) = x ( R L i ) - L ( R L i , C L i ) × x ( C L i ) , i = 2 , . . . , k L - - - ( 4 ) ;
33) according to the whole diagonal elements of matrix D, substance loops following computing
x(i)=x(i)/D(i,i),i=1,…,n (5);
34) according to matrix U non-zero entry quantity, substance loops following computing
x ( R L i ) = x ( R L i ) - U ( R L i , C L i ) × x ( C L i ) , i = k U - 1 , . . . , 1 - - - ( 6 )
35) equation solution finishes, and the intermediate variable assignment is given
Figure BDA0000378141170000036
U · = x - - - ( 7 ) .
The Large Scale Sparse Solving Linear that the electric system computational analysis is relevant with circuit with generally relating to electric network in emulation, the system of equations dimension is often very high, and operand proportion is larger; Relatively the electrical network dynamic element calculates, and the system of linear equations that electric network is relevant with circuit resolves and is difficult to the subnetting parallelization and synchronously carries out, so the relevant linear equation of network solves the bottleneck that link becomes electric system calculating and simulation efficiency.In the former generation and backward steps of conventional higher-dimension sparse linear solving equations method, need to system of linear equations matrix of coefficients non-zero entry, be retrieved by dual circulation, wherein comprise some redundant operations.Therefore, in (surpassing) real-time simulation, be necessary to eliminate as much as possible redundant operation and the computing in conventional High-dimensional Linear solving equations method flow.The present invention is based on the electrical network network equation method for solving of the non-zero entry traversal of sparse storage, eliminate as much as possible operation and the computing of redundancy in the retrieval of equation coefficient matrix non-zero entry in conventional higher-dimension sparse linear equation solution method and dual circulation, condition judgment, form higher-dimension sparse linear solving equations method and the flow process of new practicality, promote the efficiency based on sparse storage and former generation C++ language High-dimensional Linear equation method.The present invention is the electrical network network equation method for solving that a kind of convenient and practical non-zero entry based on sparse storage travels through.
Embodiment
The present invention proposes a kind of electrical network network equation method for solving of the non-zero entry traversal based on sparse storage, the method comprises the following steps:
1) before step solves when entering emulation, according to electric network composition parameter and fault disturbance information to be calculated, form the power system network equation, equation can be described as
I · = Y U · - - - ( 1 )
Wherein
Figure BDA0000378141170000042
for electric system node Injection Current fundamental phasors,
Figure BDA0000378141170000043
for the Electric Power System Node Voltage fundamental phasors, be equation unknown quantity to be solved, Y is power system network node admittance battle array, the equation dimension is designated as n.
2) before when entering emulation, step solves, equation coefficient matrix Y carries out Factorization in formula (1), obtains the factor table matrix after Factorization, is designated as
A=L+D+U (2)
Be wherein triangular portions under L factor table matrix, the main diagonal element part that D is the factor table matrix, the upper triangular portions that U is the factor table matrix.
Above-mentioned matrix all adopts sparse form to be stored, and non-zero entry is by the row close-packed arrays, in computing machine with real part and the imaginary part of two type double precision array variable Coutinuous store A matrixes.
Record matrix L, U non-zero entry sum k l, k u, in computing machine with the long variable storage.
Record matrix L, U non-zero entry place line number R l, R u, and record matrix L, U non-zero entry column C l, C u, in computing machine with long array variable Coutinuous store; In matrix L, i non-zero entry place row, column is designated as
Figure BDA0000378141170000051
in matrix U, i non-zero entry place row, column is designated as
While 3) entering emulation, step solves, and each simulation step length need be carried out network equation and be solved, and adopts following steps.
31) be equation solution former generation procedure initialization intermediate variable x, x is n-dimensional vector, in computing machine, with real part and the imaginary part of two double-precision array variable Coutinuous store x, makes
x = I · - - - ( 3 )
32) according to matrix L non-zero entry quantity, substance loops following computing
x ( R L i ) = x ( R L i ) - L ( R L i , C L i ) × x ( C L i ) , i = 2 , . . . , k L - - - ( 4 )
Above-mentioned computing is complex operation.
33) according to the whole diagonal elements of matrix D, substance loops following computing
x(i)=x(i)/D(i,i),i=1,…,n (5)
Above-mentioned computing is complex operation.
34) according to matrix U non-zero entry quantity, substance loops following computing
x ( R L i ) = x ( R L i ) - U ( R L i , C L i ) × x ( C L i ) , i = k U - 1 , . . . , 1 - - - ( 6 )
Above-mentioned computing is complex operation.
35) equation solution finishes, and the intermediate variable assignment is given
U · = x - - - ( 7 )
On the computing machine that is configured to processor i72720m, internal memory 4g, tested, more conventional sparse linear solving equations method, this method efficiency improves approximately 3 times, be solved to example with 13 years rich large system electrical network network equations of south electric network, single solve the time by approximately 0.32 millisecond reduce to approximately 0.12 millisecond.

Claims (2)

1. the electrical network network equation method for solving of non-zero entry based on a sparse storage traversal is characterized in that comprising the following steps:
1) before step solves when entering emulation, according to electric network composition parameter and fault disturbance information to be calculated, form the power system network equation, equation can be described as
I · = Y U · - - - ( 1 )
Wherein
Figure FDA0000378141160000012
for electric system node Injection Current fundamental phasors,
Figure FDA0000378141160000013
for the Electric Power System Node Voltage fundamental phasors, Y is power system network node admittance battle array, and the equation dimension is designated as n;
2) before when entering emulation, step solves, equation coefficient matrix Y carries out Factorization in formula (1), obtains the factor table matrix after Factorization, is designated as
A=L+D+U (2)
Be wherein triangular portions under L factor table matrix, the main diagonal element part that D is the factor table matrix, the upper triangular portions that U is the factor table matrix;
Above-mentioned matrix all adopts sparse form to be stored, and non-zero entry by rows;
Record matrix L, U non-zero entry sum k l, k u;
Record matrix L, U non-zero entry place line number R l, R u, and record matrix L, U non-zero entry column C l, C u, in matrix L, i non-zero entry place row, column is designated as
Figure FDA0000378141160000014
in matrix U, i non-zero entry place row, column is designated as
Figure FDA0000378141160000015
While 3) entering emulation, step solves.
2. the electrical network network equation method for solving of non-zero entry based on sparse storage traversal according to claim 1, is characterized in that above-mentioned steps 3) emulation the time during step solves, each simulation step length need be carried out network equation and be solved, and specifically comprises the steps:
31) be equation solution former generation procedure initialization intermediate variable x, x is n-dimensional vector, order
x = I · - - - ( 3 ) ;
32) according to matrix L non-zero entry quantity, substance loops following computing
x ( R L i ) = x ( R L i ) - L ( R L i , C L i ) × x ( C L i ) , i = 2 , . . . , k L - - - ( 4 ) ;
33) according to the whole diagonal elements of matrix D, substance loops following computing
x(i)=x(i)/D(i,i),i=1,…,n (5);
34) according to matrix U non-zero entry quantity, substance loops following computing
x ( R L i ) = x ( R L i ) - U ( R L i , C L i ) × x ( C L i ) , i = k U - 1 , . . . , 1 - - - ( 6 ) ;
35) equation solution finishes, and the intermediate variable assignment is given
Figure FDA0000378141160000025
U · = x - - - ( 7 ) .
CN201310404191.3A 2013-09-06 2013-09-06 Method of solving power grid equations based no non-zero element traversal of sparse storage Active CN103488610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310404191.3A CN103488610B (en) 2013-09-06 2013-09-06 Method of solving power grid equations based no non-zero element traversal of sparse storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310404191.3A CN103488610B (en) 2013-09-06 2013-09-06 Method of solving power grid equations based no non-zero element traversal of sparse storage

Publications (2)

Publication Number Publication Date
CN103488610A true CN103488610A (en) 2014-01-01
CN103488610B CN103488610B (en) 2017-02-08

Family

ID=49828854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310404191.3A Active CN103488610B (en) 2013-09-06 2013-09-06 Method of solving power grid equations based no non-zero element traversal of sparse storage

Country Status (1)

Country Link
CN (1) CN103488610B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714927A (en) * 2014-12-17 2015-06-17 南昌大学 Method for solving node impedance matrix of electric system on basis of symmetry CU triangular decomposition
CN104865843A (en) * 2015-03-25 2015-08-26 南方电网科学研究院有限责任公司 Power system hybrid simulation fault unified processing method
CN107658880A (en) * 2017-11-16 2018-02-02 大连海事大学 Algorithm quicksort coefficient matrix computational methods based on incidence matrix computing
CN107834562A (en) * 2017-11-16 2018-03-23 大连海事大学 Algorithm quicksort coefficient matrix calculating method based on Matlab matrix operations
CN112328957A (en) * 2020-09-29 2021-02-05 北京清微智能科技有限公司 Fourier transform system and method based on implementation through neural network hardware system
CN114362144A (en) * 2021-12-07 2022-04-15 南方电网科学研究院有限责任公司 Method, device and equipment for evaluating stability of new energy multi-feed-in system
CN114841010A (en) * 2022-05-19 2022-08-02 南方电网科学研究院有限责任公司 Equivalent conductance matrix storage quantization method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6826585B2 (en) * 2000-11-16 2004-11-30 Hitachi Software Engineering Co., Ltd. Method and apparatus for solving simultaneous linear equations
CN1641957A (en) * 2004-01-06 2005-07-20 中国电力科学研究院 Tidal subgrid parallel computing method for power system
CN1929234A (en) * 2006-09-22 2007-03-14 天津大学 Parallel computation method for large-scale electrical power system network tidal current segmentation
CN102013680A (en) * 2010-12-13 2011-04-13 大连海事大学 Fast decoupled flow calculation method for power systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6826585B2 (en) * 2000-11-16 2004-11-30 Hitachi Software Engineering Co., Ltd. Method and apparatus for solving simultaneous linear equations
CN1641957A (en) * 2004-01-06 2005-07-20 中国电力科学研究院 Tidal subgrid parallel computing method for power system
CN1929234A (en) * 2006-09-22 2007-03-14 天津大学 Parallel computation method for large-scale electrical power system network tidal current segmentation
CN102013680A (en) * 2010-12-13 2011-04-13 大连海事大学 Fast decoupled flow calculation method for power systems

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
SHUQING ZHANG: "a novel real-time hybrid simulator base on two personal computers and analog interfaces for data exchange", 《POWER&ENERGY SOCIETY GENERAL MEETING,2009,PES 09.IEEE》 *
于永源等: "《电力系统分析》", 30 September 1987, 水利电力出版社出版 *
宣泰章: ""组合"因子表法在有限元法中的应用", 《上海第二工业大学学报》 *
张伯明等: "《高等电力网络分析习题解答》", 30 April 2009, 清华大学出版社 *
张树卿等: "基于线性功率-电压方程的快速潮流计算方法", 《电力自动化设备》 *
杨金刚: "大规模电力系统中的等值算法研究", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 *
苑维然等: "带有双重循环展开的非对称稀疏线性方程组快速直接解法", 《计算爆炸力学进展》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714927A (en) * 2014-12-17 2015-06-17 南昌大学 Method for solving node impedance matrix of electric system on basis of symmetry CU triangular decomposition
CN104865843A (en) * 2015-03-25 2015-08-26 南方电网科学研究院有限责任公司 Power system hybrid simulation fault unified processing method
CN104865843B (en) * 2015-03-25 2019-01-04 南方电网科学研究院有限责任公司 A kind of method that electric system hybrid simulation failure is uniformly processed
CN107658880A (en) * 2017-11-16 2018-02-02 大连海事大学 Algorithm quicksort coefficient matrix computational methods based on incidence matrix computing
CN107834562A (en) * 2017-11-16 2018-03-23 大连海事大学 Algorithm quicksort coefficient matrix calculating method based on Matlab matrix operations
CN107658880B (en) * 2017-11-16 2019-12-03 大连海事大学 The algorithm quicksort coefficient matrix calculation method of operation based on correlation matrix
CN107834562B (en) * 2017-11-16 2019-12-03 大连海事大学 Algorithm quicksort coefficient matrix calculating method based on Matlab matrix operation
CN112328957A (en) * 2020-09-29 2021-02-05 北京清微智能科技有限公司 Fourier transform system and method based on implementation through neural network hardware system
CN114362144A (en) * 2021-12-07 2022-04-15 南方电网科学研究院有限责任公司 Method, device and equipment for evaluating stability of new energy multi-feed-in system
CN114362144B (en) * 2021-12-07 2023-09-26 南方电网科学研究院有限责任公司 New energy multi-feed system stability evaluation method, device and equipment
CN114841010A (en) * 2022-05-19 2022-08-02 南方电网科学研究院有限责任公司 Equivalent conductance matrix storage quantization method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN103488610B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN103488610A (en) Method of solving power grid equations based no non-zero element traversal of sparse storage
Shu et al. A parallel transient stability simulation for power systems
CN106602570B (en) A kind of algorithm quicksort tidal current computing method based on Matlab
Elazab et al. Salp swarm algorithm‐based optimal control scheme for LVRT capability improvement of grid‐connected photovoltaic power plants: design and experimental validation
CN108270248B (en) Active safety correction control method based on quasi-steady-state sensitivity analysis
CN102420427B (en) Method for calculating voltage stability margin of regional power grid by considering outer network equivalence
CN102799950B (en) Network of ship reconstruction and optimization method based on particle cluster algorithm
CN103810646B (en) Improved projection integral algorithm based active power distribution system dynamic simulation method
CN104156542B (en) It is a kind of based on the active distribution system Simulation of stability method implicitly projected
CN103985058B (en) Available transfer capability calculation method based on improved multiple centrality-correction interior point method
CN106407158A (en) GPU accelerated method for performing batch processing of isomorphic sparse matrixes multiplied by full vectors
CN107196306B (en) Algorithm quicksort tidal current computing method based on Matlab sparse matrix
CN105552938B (en) Three-phase asymmetric distribution network voltage sag evaluation method
CN110543720A (en) State estimation method based on SDAE-ELM pseudo-measurement model
CN103049617A (en) Method for simplifying passive electromagnetic transient-state simulation model of large-scale power distribution network
CN103678900A (en) Network decoupling calculation method used for regional power distribution network real-time simulation
CN105391057A (en) GPU thread design method of power flow Jacobian matrix calculation
CN115577603B (en) Simulation method and system for reducing unit matrix dimension and related equipment
CN106169115A (en) A kind of based on resolving the two regional power grid low-limit frequency algorithm for estimating that numerical value combines
CN103915840A (en) Method for estimating state of large power grid based on Givens orthogonal increment line transformation
Su et al. Novel voltage-to-power sensitivity estimation for phasor measurement unit-unobservable distribution networks based on network equivalent
Orozco-Gutierrez et al. Enhanced simulation of total cross tied photovoltaic arrays
Chen et al. SCADA-rate parallel state estimation assessed with utility data
CN104978481A (en) Actual measurement modeling mehtod for photovoltaic plant electromechanical transient model
Gusev et al. Recursion based contingency analysis of an electrical power system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant