CN104899183A - Rapid Gauss-Jordan elimination method for symbolic linear system - Google Patents
Rapid Gauss-Jordan elimination method for symbolic linear system Download PDFInfo
- 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
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
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
Work as i<k, during j>k, the structure requirement of element
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:
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:
By reference to the accompanying drawings 2, in the present embodiment, state variable
Output variable y=[y
1y
2]
t,
Input variable u=[u
1u
2]
t, system matrix
Control, input or distribution matrix
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
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
Work as i<k, during j>k, the structure requirement of element
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:
In step 2 through 4 quick Gausses about when the system state space equation diagonal matrix form after elimination method abbreviation is:
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
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
Work as i<k, during j>k, the structure requirement of element
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:
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.
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)
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 |
-
2015
- 2015-06-26 CN CN201510362146.5A patent/CN104899183A/en active Pending
Non-Patent Citations (5)
Title |
---|
YI LI: "An Explicit Construction of Gauss-Jordan Elimination Matrix", 《COMPUTER SCIENCE》 * |
吕志民 等: "基于符号变量运算的状态空间方程离散化", 《中山大学学报(自然科学版)》 * |
李轶: "基于降维的并行符号行列式计算", 《四川大学学报(工程科学版)》 * |
王戡: "馈能式磁流变减振器自供电特性研究", 《汽车科技》 * |
陈宗海: "《过程系统建模与仿真》", 31 October 1997, 中国科学技术大学出版社 * |
Cited By (1)
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 |