CN104899183A - Rapid Gauss-Jordan elimination method for symbolic linear system - Google Patents

Rapid Gauss-Jordan elimination method for symbolic linear system Download PDF

Info

Publication number
CN104899183A
CN104899183A CN201510362146.5A CN201510362146A CN104899183A CN 104899183 A CN104899183 A CN 104899183A CN 201510362146 A CN201510362146 A CN 201510362146A CN 104899183 A CN104899183 A CN 104899183A
Authority
CN
China
Prior art keywords
centerdot
matrix
gauss
elimination method
cancellation
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.)
Pending
Application number
CN201510362146.5A
Other languages
Chinese (zh)
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.)
Chongqing Institute of Green and Intelligent Technology of CAS
Original Assignee
Chongqing Institute of Green and Intelligent Technology of CAS
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 Chongqing Institute of Green and Intelligent Technology of CAS filed Critical Chongqing Institute of Green and Intelligent Technology of CAS
Priority to CN201510362146.5A priority Critical patent/CN104899183A/en
Publication of CN104899183A publication Critical patent/CN104899183A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a rapid Gauss-Jordan elimination method for a symbolic linear system, and belongs to the technical field of computers. The method comprises the steps of 1) building a mathematical physical model according to the problem of an engineering system, performing Laplace transform and then arranging into a linear system, and listing a system state space equation in a symbolic matrix form; 2) determining elimination times required according to the size of the matrix, and directly producing the accurate result after simplifying a system state space equation into a diagonal matrix by the rapid Gauss-Jordan elimination method; 3) calculating the mathematical physical relationship between the input quantity and the output quantity of the system according to the one-by-one correspondence relationship. According to the method, the complex Gauss-Jordan elimination process is analyzed and converted by the mathematical method; the simplified state equation can be directly calculated according to the initial state equation; the calculation of the medium process is saved; in addition, the simplified matrix is the diagonal matrix under the one-by-one correspondence relationship; therefore, the back substitution of other elimination method is reduced, and as a result, the calculation speed is greatly increased.

Description

A kind of quick Gauss for symbol linear system about works as elimination method
Technical field
The invention belongs to field of computer technology, relate to a kind of quick Gauss for symbol linear system and about work as elimination method.
Background technology
Along with the fast development of computer simulation technique and the rise of virtual design, also more and more higher in the requirement of the performances such as applicability, accuracy, real-time, reliability to emulation technology in commercial production process.
At present, the multiple physical field modeling software of industry application mainly comprises Simulink, Ansys, MapleSim, Dymola, SimulationX, MWork etc., wherein main software is mainly based on the numerical evaluation of speed, but it can cause the reduction of precision due to the accumulation of truncation error in computation process, and abbreviation result cannot be retained so that next time calculates, cannot be applied in the higher hardware in loop detection technique of requirement of real-time.And although symbolic computation effectively can avoid the truncation errors of pilot process, time-invariant system real-time is good, and can be convenient to the relation between the input of research staff's Study system, output quantity, its computation process speed is slow.
Summary of the invention
In view of this, a kind of quick Gauss for symbol linear system is the object of the present invention is to provide about to work as elimination method, the symbol linear system abbreviation that the method is applicable in multiple physical field modeling software solves, and can greatly improve linear system and carry out quick Gauss about when the speed of cancellation symbolic computation.
For achieving the above object, the invention provides following technical scheme:
Quick Gauss for symbol linear system about works as an elimination method, it is characterized in that: comprise the following steps:
Step one: according to engineering system problem, set up mathematics physics model, be configured to linear system after Laplace transformation, lists the system state space equation of sign matrix form;
Step 2: determine the number of times needing to carry out cancellation according to matrix size, utilizes quick Gauss about when elimination method directly constructs system state space equation abbreviation for the accurate result after diagonal matrix;
Step 3: according to one-to-one relationship, calculates the mathematical physics relation between the input of this system, output quantity.
Further, in step one according to engineering system problem, set up mathematics physics model, be configured to linear system after Laplace transformation, the general type of the sign matrix formal system state space equation listed is: Ax=b, wherein, for state matrix, x=[x 1x 2x n] tfor output quantity, b=[b 1b 2b n] tfor input quantity.
Further, the determination in step 2 needs the number of times s of cancellation to be expressed as: by augmented matrix (A|b)=(a of step one gained state space equation i,j) n × msize n × m determine, s=min (n, m), usual n=m-1, s=n in engineering.
Further, the quick Gauss in step 2 is about when (Gauss-Jordan) elimination method specifically comprises the following steps:
1) initial value setting: definition represent augmented matrix (A|b) the i-th row jth column element after k cancellation, represent the structure requirement of augmented matrix (A|b) i-th row jth column element after k cancellation; Given as 1≤i≤n, during 1≤j<m, as 1≤i≤n, j=m,
2) carry out (0≤k≤s) after kth time cancellation,
Work as i>k, during j>k, the structure requirement of element a i , j ( k ) = a 11 0 ... a 1 , k 0 a 1 , j 0 . . . . . . . . . . . . a k , 1 0 ... a k , k 0 a k , j 0 a i , 1 0 ... a i , k 0 a i , j 0 ;
Work as i<k, during j>k, the structure requirement of element a i , j ( k ) = a 11 0 ... a 1 , i - 1 0 a 1 , i + 1 0 ... a 1 , k 0 a 1 , j 0 a 21 0 ... a 2 , i - 1 0 a 2 , i + 1 0 ... a 2 , k 0 a 2 , j 0 . . . . . . . . . . . . . . . a k , 1 0 ... a k , i - 1 0 a k , i + 1 0 ... a k , k 0 a k , j 0 ;
3) integrating step 2), after augmented matrix (A|b) carries out kth time cancellation, (0≤k≤s) changes into (A|b) k, wherein (A|b) kelement meet:
a i , j k = a i , j ( k ) a k , k ( k - 1 ) i > k , j > k a i , j ( k - 1 ) a k , k ( k - 1 ) i = k , j > k a i , j ( k ) a k , k ( k - 1 ) i = k - 1 , j > k ( - 1 ) k - i + 1 a i , j ( k ) a k , k ( k - 1 ) i &le; k - 2 , j > k
System state space equation diagonal matrix form after k=s cancellation abbreviation is:
Further, in step 3, according to the abbreviation result in step 2, simultaneously according to the usual m=n+1 of engineering system, judge the input of this system, output quantity exists one-to-one relationship, and calculate the mathematical physics relation between them.
Beneficial effect of the present invention is: method of the present invention is much better than classic method in abbreviation speed, avoids the backward steps of Gaussian elimination, has saved computing time; Meanwhile, symbolic computation is conducive to ensureing the precision of result of calculation and clear and definite physical relation, can greatly improve linear system and carry out quick Gauss about when the speed of cancellation symbolic computation.
Accompanying drawing explanation
In order to make object of the present invention, technical scheme and beneficial effect clearly, the invention provides following accompanying drawing and being described:
Fig. 1 is the schematic flow sheet of the method for the invention;
Fig. 2 is the invention process case schematic diagram.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described in detail.
Fig. 1 is the schematic flow sheet of the method for the invention, and as shown in the figure, this method comprises the following steps: step one, according to engineering system problem, set up mathematics physics model, after Laplace transformation, be configured to linear system, list the system state space equation of sign matrix form; Step 2, determines the number of times needing to carry out cancellation according to matrix size, utilize quick Gauss about when elimination method directly constructs system state space equation abbreviation for the accurate result after diagonal matrix; Step 3, according to one-to-one relationship, calculates the mathematical physics relation between the input of this system, output quantity.
Below in conjunction with accompanying drawing 1, the preferred embodiments of the present invention are described in detail:
The general type of the system state space equation of the engineering system in step one is:
Wherein, x=[x 1x 2x n] tfor state variable, y=[y 1y 2y q] tfor output variable, u=[u 1u 2u p] tfor input variable, A=(a i,j(t)) n × nfor system matrix, B=(b i,j(t)) n × pfor controlling, inputting or distribution matrix, C=(c i,j(t)) q × nfor output matrix, D=(d i,j(t)) q × pfor exporting distribution matrix.
For time-invariant system, the system state equation of the matrix form after Laplace transformation linearization is:
( I s - A ) &CenterDot; X ( s ) = B &CenterDot; U ( s ) Y ( s ) = C &CenterDot; X ( s ) + D &CenterDot; U ( s )
By reference to the accompanying drawings 2, in the present embodiment, state variable x = y 1 y &CenterDot; 1 y 2 y &CenterDot; 2 T , Output variable y=[y 1y 2] t,
Input variable u=[u 1u 2] t, system matrix A = 0 1 0 0 k 1 m 1 &eta; 1 m 1 - k 1 m 1 - &eta; 1 m 1 0 0 0 1 0 0 k 2 m 2 &eta; 2 m 2 , Control, input or distribution matrix B = 0 - u 1 m 1 0 - u 2 m 2 , Output matrix C=[1 01 0], exports distribution matrix D=[0 0].
For system state equation, after carrying out Laplace transformation, its augmented matrix is
( ( I - A ) | ( B U ( s ) ) ) = s - 1 0 0 0 - k 1 m 1 s - &eta; 1 m 1 k 1 m 1 &eta; 1 m 1 - U 1 ( s ) m 1 0 0 s - 1 0 0 0 - k 2 m 2 s - &eta; 2 m 2 - U 2 ( s ) m 2
The size of the augmented matrix of gained state space equation is 4 × 5, therefore needs the number of times s=4 of cancellation.
Utilize quick Gauss about when elimination method processes it:
1) initial value setting: definition expression augmented matrix ((I-A) | (BU (s))) the i-th row jth column element after k cancellation, expression augmented matrix ((I-A) | (BU (s))) structure requirement of the i-th row jth column element after k cancellation; Given when 1≤i≤4, during 1≤j<5, when 1≤i≤4, during j=5,
2) carry out (0≤k≤4) after kth time cancellation,
Work as i>k, during j>k, the structure requirement of element a i , j ( k ) = a 11 0 ... a 1 , k 0 a 1 , j 0 . . . . . . . . . . . . a k , 1 0 ... a k , k 0 a k , j 0 a i , 1 0 ... a i , k 0 a i , j 0 ;
Work as i<k, during j>k, the structure requirement of element a i , j ( k ) = a 11 0 ... a 1 , i - 1 0 a 1 , i + 1 0 ... a 1 , k 0 a 1 , j 0 a 21 0 ... a 2 , i - 1 0 a 2 , i + 1 0 ... a 2 , k 0 a 2 , j 0 . . . . . . . . . . . . . . . a k , 1 0 ... a k , i - 1 0 a k , i + 1 0 ... a k , k 0 a k , j 0 ;
3) integrating step 2), after augmented matrix ((I-A) | (BU (s))) carries out kth time cancellation, (0≤k≤4) change ((I-A) | (BU (s))) into k, wherein ((I-A) | (BU (s))) kelement meet:
a i , j k = a i , j ( k ) a k , k ( k - 1 ) i > k , j > k a i , j ( k - 1 ) a k , k ( k - 1 ) i = k , j > k a i , j ( k ) a k , k ( k - 1 ) i = k - 1 , j > k ( - 1 ) k - i + 1 a i , j ( k ) a k , k ( k - 1 ) i &le; k - 2 , j > k
In step 2 through 4 quick Gausses about when the system state space equation diagonal matrix form after elimination method abbreviation is:
( ( I - A ) | ( B U ( s ) ) ) 4 = 1 0 0 0 - m 2 s 2 U 1 ( s ) + &eta; 1 sU 2 ( s ) + &eta; 2 sU 1 ( s ) + k 1 U 2 ( s ) + k 2 U 1 ( s ) ( - m 2 s 2 + &eta; 2 s + k 2 ) ( - m 1 s 2 + &eta; 1 s + k 1 ) 0 1 0 0 s ( - m 2 s 2 U 1 ( s ) + &eta; 1 sU 2 ( s ) + &eta; 2 sU 1 ( s ) + k 1 U 2 ( s ) + k 2 U 1 ( s ) ) ( - m 2 s 2 + &eta; 2 s + k 2 ) ( - m 1 s 2 + &eta; 1 s + k 1 ) 0 0 1 0 U 2 ( s ) - m 2 s 2 + &eta; 2 s + k 2 0 0 0 1 U 2 ( s ) s - m 2 s 2 + &eta; 2 s + k 2
The input of this system can be judged according to the abbreviation result in step 2 by (Ι s-A) X (s)=BU (s), output quantity exists one-to-one relationship, namely
Y 1 ( s ) = - m 2 s 2 U 1 ( s ) + &eta; 1 sU 2 ( s ) + &eta; 2 sU 1 ( s ) + k 1 U 2 ( s ) + k 2 U 1 ( s ) ( - m 2 s 2 + &eta; 2 s + k 2 ) ( - m 1 s 2 + &eta; 1 s + k 1 )
Y 2 ( s ) = U 2 ( s ) - m 2 s 2 + &eta; 2 s + k 2
By the inventive method on Maple software after programming realization, abbreviation process is carried out to the implementation case, traditional Gauss about when elimination method program response T.T. be 0.063 second, wherein CPU 0.016 second abbreviation time of carrying out, and the program overall response time of the inventive method is 0.046 second, the abbreviation time that wherein CPU carries out is almost 0 second.Visible, the inventive method is much better than classic method in abbreviation speed, avoids the backward steps of Gaussian elimination, has saved computing time; Meanwhile, symbolic computation is conducive to ensureing the precision of result of calculation and clear and definite physical relation.Especially, in finite element analysis process, unit after gridding can regard quality---damping---spring system of the equivalence of series connection or parallel connection one by one as, similar with this case study on implementation, adopts the inventive method all to have a good guarantee to its computational accuracy and computing velocity.
What finally illustrate is, above preferred embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although by above preferred embodiment to invention has been detailed description, but those skilled in the art are to be understood that, various change can be made to it in the form and details, and not depart from claims of the present invention limited range.

Claims (5)

1. the quick Gauss for symbol linear system about works as an elimination method, it is characterized in that: comprise the following steps:
Step one: according to engineering system problem, set up mathematics physics model, be configured to linear system after Laplace transformation, lists the system state space equation of sign matrix form;
Step 2: determine the number of times needing to carry out cancellation according to matrix size, utilizes quick Gauss about when elimination method directly constructs system state space equation abbreviation for the accurate result after diagonal matrix;
Step 3: according to one-to-one relationship, calculates the mathematical physics relation between the input of this system, output quantity.
2. a kind of quick Gauss for symbol linear system according to claim 1 about works as elimination method, it is characterized in that: in step one according to engineering system problem, set up mathematics physics model, linear system is configured to after Laplace transformation, the general type of the sign matrix formal system state space equation listed is: Ax=b, wherein for state matrix, x=[x 1x 2x n] tfor output quantity, b=[b 1b 2b n] tfor input quantity.
3. a kind of quick Gauss for symbol linear system according to claim 2 about works as elimination method, it is characterized in that: the determination in step 2 needs the number of times s of cancellation to be expressed as: by augmented matrix (A|b)=(a of step one gained state space equation i,j) n × msize n × m determine, s=min (n, m), usual n=m-1, s=n in engineering.
4. a kind of quick Gauss for symbol linear system according to claim 3 about works as elimination method, it is characterized in that: the quick Gauss in step 2 is about when elimination method specifically comprises the following steps:
1) initial value setting: definition represent augmented matrix (A|b) the i-th row jth column element after k cancellation, represent the structure requirement of augmented matrix (A|b) i-th row jth column element after k cancellation; Given as 1≤i≤n, during 1≤j<m, as 1≤i≤n, j=m,
2) carry out (0≤k≤s) after kth time cancellation,
Work as i>k, during j>k, the structure requirement of element a i , j ( k ) = | a 11 0 ... a 1 , k 0 a 1 , j 0 &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; a k , 1 0 ... a k , k 0 a k , j 0 a i , 1 0 ... a i , k 0 a i , j 0 | ;
Work as i<k, during j>k, the structure requirement of element a i , j ( k ) = | a 11 0 ... a 1 , i - 1 0 a 1 , i + 1 0 ... a 1 , k 0 a 1 , j 0 a 21 0 ... a 2 , i - 1 0 a 2 , i + 1 0 ... a 2 , k 0 a 2 , j 0 &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; a k , 1 0 ... a k , i - 1 0 a k , i + 1 0 ... a k , k 0 a k , j 0 | ;
3) integrating step 2), after augmented matrix (A|b) carries out kth time cancellation, (0≤k≤s) changes into (A|b) k, wherein (A|b) kelement meet:
a i , j k = a i , j ( k ) a k , k ( k - 1 ) i > k , j > k a i , j ( k - 1 ) a k , k ( k - 1 ) i = k , j > k a i , j ( k ) a k , k ( k - 1 ) i = k - 1 , j > k ( - 1 ) k - i + 1 a i , j ( k ) a k , k ( k - 1 ) i &le; k - 2 , j > k
System state space equation diagonal matrix form after k=s cancellation abbreviation is:
5. a kind of quick Gauss for symbol linear system according to claim 4 about works as elimination method, it is characterized in that: in step 3, according to the abbreviation result in step 2, simultaneously according to the usual m=n+1 of engineering system, judge the input of this system, output quantity exists one-to-one relationship, and calculate the mathematical physics relation between them.
CN201510362146.5A 2015-06-26 2015-06-26 Rapid Gauss-Jordan elimination method for symbolic linear system Pending CN104899183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510362146.5A CN104899183A (en) 2015-06-26 2015-06-26 Rapid Gauss-Jordan elimination method for symbolic linear system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510362146.5A CN104899183A (en) 2015-06-26 2015-06-26 Rapid Gauss-Jordan elimination method for symbolic linear system

Publications (1)

Publication Number Publication Date
CN104899183A true CN104899183A (en) 2015-09-09

Family

ID=54031852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510362146.5A Pending CN104899183A (en) 2015-06-26 2015-06-26 Rapid Gauss-Jordan elimination method for symbolic linear system

Country Status (1)

Country Link
CN (1) CN104899183A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291665A (en) * 2017-06-16 2017-10-24 中国科学院数学与系统科学研究院 A kind of elementary ordered series of numbers problem automatic calculation technology based on multinomial reduction

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
YI LI: "An Explicit Construction of Gauss-Jordan Elimination Matrix", 《COMPUTER SCIENCE》 *
吕志民 等: "基于符号变量运算的状态空间方程离散化", 《中山大学学报(自然科学版)》 *
李轶: "基于降维的并行符号行列式计算", 《四川大学学报(工程科学版)》 *
王戡: "馈能式磁流变减振器自供电特性研究", 《汽车科技》 *
陈宗海: "《过程系统建模与仿真》", 31 October 1997, 中国科学技术大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291665A (en) * 2017-06-16 2017-10-24 中国科学院数学与系统科学研究院 A kind of elementary ordered series of numbers problem automatic calculation technology based on multinomial reduction

Similar Documents

Publication Publication Date Title
CN104217074B (en) Electromagnetic transient implicit reduced-order simulation method based on matrix index
JP2008521138A (en) Method for analysis of control systems
CN104298809A (en) Nonlinear modeling solving method based on matrix index electromagnetic transient simulation
CN107145731B (en) A kind of accelerated method that high-fidelity spatio-temporal neutron kinetics calculate
CN107563074A (en) A kind of Optimization Design and Optimization Platform of fan/compressor end wall profile
CN105955031A (en) Non-linear-model-predictive-control FPGA hardware acceleration controller and acceleration realization method
CN113849910B (en) Dropout-based BiLSTM network wing resistance coefficient prediction method
CN104463381A (en) Building energy consumption predication method based on KPCA and WLSSVM
CN108334670A (en) A kind of complex model uncertainty correction method for finite element model based on perturbation method
CN106650086A (en) Indirect air cooling system numerical simulation platform based on FLUENT software
CN103400035A (en) High-reliability method for rapidly forecasting rolling dynamic derivative of aircraft
CN115438598A (en) Numerical method of Reynolds stress turbulence model based on general time root square scale
CN103679484A (en) Novel method for analyzing E-commerce consistency based on behavior Petri network
Teng et al. Generative adversarial surrogate modeling framework for aerospace engineering structural system reliability design
CN105989205A (en) Method for determining aircraft surface pulsating pressure
CN105224726A (en) Structured grid Dynamic mesh is used for the method for unstrctured grid flow field calculation device
CN104899183A (en) Rapid Gauss-Jordan elimination method for symbolic linear system
CN110472338B (en) Improved electromagnetic transient simulation method suitable for field programmable logic array
CN104678989A (en) State perception optimization method for improving fault diagnosability in noise environment
CN114021729B (en) Quantum circuit operation method and system, electronic device and medium
US10755015B2 (en) Agnostic model of semiconductor devices and related methods
CN102880188B (en) Aircraft modeling method based on maximum information-reliability online identification criterion
CN117252130B (en) Near-field pressure distribution prediction method, system and related equipment for aircraft
CN103400043B (en) Method calculated by a kind of complication system transferometer based on high accuracy multinomial operation
CN117892660B (en) Method and device for selecting reference Mach number in low-speed preprocessing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150909

RJ01 Rejection of invention patent application after publication