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
symbolic
elimination
elimination method
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

本发明涉及一种用于符号线性系统的快速高斯约当消去方法,属于计算机技术领域。本方法包括以下步骤:1)根据工程系统问题,建立数学物理模型,拉氏变换后构建为线性系统,列出符号矩阵形式的系统状态空间方程;2)根据矩阵大小确定需要进行消去的次数,利用快速高斯约当消去方法直接构造出系统状态空间方程化简为对角矩阵后的准确结果;3)根据一一对应关系,计算出该系统输入、输出量之间的数学物理关系。本方法将复杂的高斯约当消去过程通过数学方法分析转换,直接根据初始的状态方程计算出化简后的状态方程,省去了中间过程的计算;此外,化简后的矩阵为对角线矩阵,为一一对应关系,减少了其他消去方法的回代过程,极大的提高了计算速度。

The invention relates to a fast Gaussian Jordan elimination method for symbolic linear systems, which belongs to the technical field of computers. The method includes the following steps: 1) according to the engineering system problem, a mathematical physical model is established, and a linear system is constructed after Laplace transformation, and the system state space equation in the form of a symbolic matrix is listed; 2) the number of times to be eliminated is determined according to the size of the matrix, Using the fast Gaussian Jordan elimination method to directly construct the accurate result of the system state space equation simplified into a diagonal matrix; 3) Calculate the mathematical and physical relationship between the input and output of the system according to the one-to-one correspondence. This method analyzes and transforms the complex Gaussian Jordan elimination process through mathematical methods, and directly calculates the simplified state equation based on the initial state equation, eliminating the calculation of the intermediate process; in addition, the simplified matrix is a diagonal The matrix is a one-to-one correspondence, which reduces the back-substitution process of other elimination methods and greatly improves the calculation speed.

Description

一种用于符号线性系统的快速高斯约当消去方法A Fast Gaussian Jordan Elimination Method for Symbolic Linear Systems

技术领域technical field

本发明属于计算机技术领域,涉及一种用于符号线性系统的快速高斯约当消去方法。The invention belongs to the technical field of computers and relates to a fast Gaussian Jordan elimination method for symbolic linear systems.

背景技术Background technique

随着计算机仿真技术的迅猛发展以及虚拟设计的兴起,工业生产加工过程中对仿真技术的在适用性、准确性、实时性、可靠性等性能的要求也越来越高。With the rapid development of computer simulation technology and the rise of virtual design, the requirements for the performance of simulation technology in terms of applicability, accuracy, real-time performance and reliability are getting higher and higher in the process of industrial production and processing.

目前,业界应用的多物理场建模软件主要包括Simulink、Ansys、MapleSim、Dymola、SimulationX、MWork等,其中主流软件主要以速度较快的数值计算为主,但其在计算过程中会由于截断误差的累积造成精度的降低,以及无法保留化简结果以便下次计算,无法应用到实时性要求较高的硬件在环检测技术上。而符号计算虽然能有效的避免中间过程的阶段误差,时不变系统实时性好,能够便于研发人员研究系统输入、输出量之间的关系,但是其计算过程速度慢。At present, the multi-physics modeling software used in the industry mainly includes Simulink, Ansys, MapleSim, Dymola, SimulationX, MWork, etc. Among them, the mainstream software mainly focuses on fast numerical calculations, but it will suffer from truncation errors during the calculation process. Accumulation results in a reduction in accuracy, and the simplification results cannot be retained for the next calculation, and cannot be applied to hardware-in-the-loop detection technology with high real-time requirements. Although symbolic calculation can effectively avoid the stage error in the intermediate process, the time-invariant system has good real-time performance, and can facilitate the research and development personnel to study the relationship between the input and output of the system, but the calculation process is slow.

发明内容Contents of the invention

有鉴于此,本发明的目的在于提供一种用于符号线性系统的快速高斯约当消去方法,该方法适用于多物理场建模软件中的符号线性系统化简求解,能够极大的提高线性系统进行快速高斯约当消去符号计算的速度。In view of this, the object of the present invention is to provide a fast Gaussian Jordan elimination method for symbolic linear systems, which is applicable to the simplification and solution of symbolic linear systems in multiphysics modeling software, and can greatly improve the linearity The speed at which the system performs fast Gaussian Jordan elimination symbol calculations.

为达到上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种用于符号线性系统的快速高斯约当消去方法,其特征在于:包括以下步骤:A fast Gaussian Jordan elimination method for symbolic linear systems, characterized in that: comprising the following steps:

步骤一:根据工程系统问题,建立数学物理模型,拉氏变换后构建为线性系统,列出符号矩阵形式的系统状态空间方程;Step 1: According to the engineering system problem, establish a mathematical physical model, construct a linear system after Laplace transformation, and list the system state space equation in the form of a symbolic matrix;

步骤二:根据矩阵大小确定需要进行消去的次数,利用快速高斯约当消去方法直接构造出系统状态空间方程化简为对角矩阵后的准确结果;Step 2: Determine the number of eliminations that need to be performed according to the size of the matrix, and use the fast Gaussian Jordan elimination method to directly construct the accurate result after the system state space equation is simplified to a diagonal matrix;

步骤三:根据一一对应关系,计算出该系统输入、输出量之间的数学物理关系。Step 3: Calculate the mathematical and physical relationship between the input and output quantities of the system according to the one-to-one correspondence.

进一步,步骤一中的根据工程系统问题,建立数学物理模型,拉氏变换后构建为线性系统,列出的符号矩阵形式系统状态空间方程的一般形式为:Ax=b,其中,为状态矩阵,x=[x1 x2 … xn]T为输出量,b=[b1 b2 … bn]T为输入量。Further, according to the engineering system problem in step 1, a mathematical physical model is established, and a linear system is constructed after Laplace transformation, and the general form of the state space equation of the listed symbolic matrix system is: Ax=b, where, is the state matrix, x=[x 1 x 2 … x n ] T is the output, b=[b 1 b 2 … b n ] T is the input.

进一步,步骤二中的确定需要消去的次数s表述为:由步骤一所得状态空间方程的增广矩阵(A|b)=(ai,j)n×m的大小n×m来确定,s=min(n,m),工程中通常n=m-1,s=n。Further, the determination of the number of times s that needs to be eliminated in step 2 is expressed as: determined by the size n×m of the augmented matrix (A|b)=(a i,j ) n×m of the state space equation obtained in step 1, s =min(n,m), usually n=m-1, s=n in engineering.

进一步,步骤二中的快速高斯约当(Gauss-Jordan)消去方法具体包括以下步骤:Further, the fast Gauss-Jordan (Gauss-Jordan) elimination method in step 2 specifically includes the following steps:

1)初始值设定:定义表示增广矩阵(A|b)经过k次消去后第i行第j列元素,表示增广矩阵(A|b)经过k次消去后第i行第j列元素的构造因子;给定当1≤i≤n,1≤j<m时,当1≤i≤n,j=m时, 1) Initial value setting: definition Indicates that the augmented matrix (A|b) undergoes k times of elimination and the i-th row and j-th column element, Indicates the construction factor of the element in row i and column j of the augmented matrix (A|b) after k times of elimination; given When 1≤i≤n, 1≤j<m, When 1≤i≤n, j=m,

2)进行第k次消去后(0≤k≤s),2) After the kth elimination (0≤k≤s),

当i>k,j>k时,元素的构造因子 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 ; When i>k, j>k, the construction factor of the 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 ;

当i<k,j>k时,元素的构造因子 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 ; When i<k,j>k, the construction factor of the 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 twenty one 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)结合步骤2),增广矩阵(A|b)进行第k次消去后(0≤k≤s)转变为(A|b)k,其中(A|b)k的元素满足:3) Combined with step 2), the augmented matrix (A|b) is transformed into (A|b) k after the k-th elimination (0≤k≤s), where the elements of (A|b) k satisfy:

aa ii ,, jj kk == aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii >> kk ,, jj >> kk aa ii ,, jj (( kk -- 11 )) aa kk ,, kk (( kk -- 11 )) ii == kk ,, jj >> kk aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii == kk -- 11 ,, jj >> kk (( -- 11 )) kk -- ii ++ 11 aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii &le;&le; kk -- 22 ,, jj >> kk

经过k=s次消去化简后的系统状态空间方程对角矩阵形式为:The diagonal matrix form of the system state space equation after k=s elimination and simplification is:

进一步,在步骤三中,根据步骤二中的化简结果,同时根据工程系统通常m=n+1,判断出该系统输入、输出量存在一一对应关系,并计算出它们之间的数学物理关系。Further, in step 3, according to the simplification result in step 2, and according to the engineering system usually m=n+1, it is judged that there is a one-to-one correspondence between the input and output of the system, and the mathematical physics between them is calculated relation.

本发明的有益效果在于:本发明所述的方法在化简速度上远优于传统方法,避免了高斯消去法的回代过程,节约了计算时间;同时,符号计算有利于保证计算结果的精度和明确的物理关系,能够极大的提高线性系统进行快速高斯约当消去符号计算的速度。The beneficial effects of the present invention are: the method of the present invention is far superior to the traditional method in terms of simplification speed, avoids the back-substitution process of Gaussian elimination method, and saves calculation time; at the same time, symbolic calculation is beneficial to ensure the accuracy of calculation results And the clear physical relationship can greatly improve the speed of fast Gauss Jordan elimination symbol calculation for linear systems.

附图说明Description of drawings

为了使本发明的目的、技术方案和有益效果更加清楚,本发明提供如下附图进行说明:In order to make the purpose, technical scheme and beneficial effect of the present invention clearer, the present invention provides the following drawings for illustration:

图1为本发明所述方法的流程示意图;Fig. 1 is a schematic flow sheet of the method of the present invention;

图2为本发明实施案例示意图。Fig. 2 is a schematic diagram of an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图,对本发明的优选实施例进行详细的描述。The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

图1为本发明所述方法的流程示意图,如图所示,本方法包括以下步骤:步骤一,根据工程系统问题,建立数学物理模型,拉氏变换后构建为线性系统,列出符号矩阵形式的系统状态空间方程;步骤二,根据矩阵大小确定需要进行消去的次数,利用快速高斯约当消去方法直接构造出系统状态空间方程化简为对角矩阵后的准确结果;步骤三,根据一一对应关系,计算出该系统输入、输出量之间的数学物理关系。Fig. 1 is the schematic flow chart of the method of the present invention, as shown in the figure, this method comprises the following steps: Step 1, according to engineering system problem, establishes mathematical physics model, builds into linear system after Laplace transform, lists symbolic matrix form The system state space equation; Step 2, determine the number of times to be eliminated according to the size of the matrix, and use the fast Gaussian Jordan elimination method to directly construct the accurate result after the system state space equation is simplified into a diagonal matrix; Step 3, according to one by one Correspondence, calculate the mathematical and physical relationship between the input and output of the system.

下面将结合附图1,对本发明的优选实施例进行详细的描述:Below in conjunction with accompanying drawing 1, preferred embodiment of the present invention is described in detail:

步骤一中的工程系统的系统状态空间方程的一般形式为:The general form of the system state space equation of the engineering system in step 1 is:

其中,x=[x1 x2 … xn]T为状态变量,y=[y1 y2 … yq]T为输出变量,u=[u1 u2 … up]T为输入变量,A=(ai,j(t))n×n为系统矩阵,B=(bi,j(t))n×p为控制、输入或分布矩阵,C=(ci,j(t))q×n为输出矩阵,D=(di,j(t))q×p为输出分布矩阵。Among them, x=[x 1 x 2 ... x n ] T is the state variable, y=[y 1 y 2 ... y q ] T is the output variable, u=[u 1 u 2 ... u p ] T is the input variable, A=(a i,j (t)) n×n is the system matrix, B=(b i,j (t)) n×p is the control, input or distribution matrix, C=( ci,j (t) ) q×n is the output matrix, D=(d i,j (t)) q×p is the output distribution matrix.

对于时不变系统,拉氏变换线性化后的矩阵形式的系统状态方程为:For a time-invariant system, the system state equation in matrix form after Laplace transform linearization is:

(( II sthe s -- AA )) &CenterDot;&Center Dot; Xx (( sthe s )) == BB &CenterDot;&CenterDot; Uu (( sthe s )) YY (( sthe s )) == CC &CenterDot;&Center Dot; Xx (( sthe s )) ++ DD. &CenterDot;&CenterDot; Uu (( sthe s ))

结合附图2,在本实施例中,状态变量 x = y 1 y &CenterDot; 1 y 2 y &CenterDot; 2 T , 输出变量y=[y1 y2]TIn conjunction with accompanying drawing 2, in the present embodiment, state variable x = the y 1 the y &CenterDot; 1 the y 2 the y &CenterDot; 2 T , output variable y=[y 1 y 2 ] T ,

输入变量u=[u 1u2]T,系统矩阵 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 , 控制、输入或分布矩阵 B = 0 - u 1 m 1 0 - u 2 m 2 , 输出矩阵C=[1 0 1 0],输出分布矩阵D=[0 0]。Input variable u=[u 1 u 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 0 1 0], output distribution matrix D=[0 0].

针对系统状态方程,进行拉氏变换后,其增广矩阵为For the system state equation, after Laplace transform, its augmented matrix is

(( (( II -- AA )) || (( BB Uu (( sthe s )) )) )) == sthe s -- 11 00 00 00 -- kk 11 mm 11 sthe s -- &eta;&eta; 11 mm 11 kk 11 mm 11 &eta;&eta; 11 mm 11 -- Uu 11 (( sthe s )) mm 11 00 00 sthe s -- 11 00 00 00 -- kk 22 mm 22 sthe s -- &eta;&eta; 22 mm 22 -- Uu 22 (( sthe s )) mm 22

所得状态空间方程的增广矩阵的大小为4×5,故需要消去的次数s=4。The size of the augmented matrix of the obtained state space equation is 4×5, so the number of elimination times s=4 is required.

利用快速高斯约当消去方法对其进行处理:It is processed using a fast Gaussian Jordan elimination method:

1)初始值设定:定义表示增广矩阵((I-A)|(BU(s)))经过k次消去后第i行第j列元素,表示增广矩阵((I-A)|(BU(s)))经过k次消去后第i行第j列元素的构造因子;给定当1≤i≤4,1≤j<5时,当1≤i≤4,j=5时, 1) Initial value setting: definition Indicates the augmented matrix ((IA)|(BU(s))) after k times of elimination, the i-th row and the j-th column element, Indicates the construction factor of the element in row i and column j of the augmented matrix ((IA)|(BU(s))) after k times of elimination; given When 1≤i≤4, 1≤j<5, When 1≤i≤4, j=5,

2)进行第k次消去后(0≤k≤4),2) After the kth elimination (0≤k≤4),

当i>k,j>k时,元素的构造因子 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 ; When i>k, j>k, the construction factor of the 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 ;

当i<k,j>k时,元素的构造因子 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 ; When i<k,j>k, the construction factor of the 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 twenty one 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)结合步骤2),增广矩阵((I-A)|(BU(s)))进行第k次消去后(0≤k≤4)转变为((I-A)|(BU(s)))k,其中((I-A)|(BU(s)))k的元素满足:3) Combined with step 2), the augmented matrix ((IA)|(BU(s))) is transformed into ((IA)|(BU(s))) after the k-th elimination (0≤k≤4) k , where the elements of ((IA)|(BU(s))) k satisfy:

aa ii ,, jj kk == aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii >> kk ,, jj >> kk aa ii ,, jj (( kk -- 11 )) aa kk ,, kk (( kk -- 11 )) ii == kk ,, jj >> kk aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii == kk -- 11 ,, jj >> kk (( -- 11 )) kk -- ii ++ 11 aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii &le;&le; kk -- 22 ,, jj >> kk

步骤二中的经过4次快速高斯约当消去方法化简后的系统状态空间方程对角矩阵形式为:The diagonal matrix form of the system state space equation after 4 times of fast Gaussian Jordan elimination method in step 2 is:

(( (( II -- AA )) || (( BB Uu (( sthe s )) )) )) 44 == 11 00 00 00 -- mm 22 sthe s 22 Uu 11 (( sthe s )) ++ &eta;&eta; 11 sUsU 22 (( sthe s )) ++ &eta;&eta; 22 sUsU 11 (( sthe s )) ++ kk 11 Uu 22 (( sthe s )) ++ kk 22 Uu 11 (( sthe s )) (( -- mm 22 sthe s 22 ++ &eta;&eta; 22 sthe s ++ kk 22 )) (( -- mm 11 sthe s 22 ++ &eta;&eta; 11 sthe s ++ kk 11 )) 00 11 00 00 sthe s (( -- mm 22 sthe s 22 Uu 11 (( sthe s )) ++ &eta;&eta; 11 sUsU 22 (( sthe s )) ++ &eta;&eta; 22 sUsU 11 (( sthe s )) ++ kk 11 Uu 22 (( sthe s )) ++ kk 22 Uu 11 (( sthe s )) )) (( -- mm 22 sthe s 22 ++ &eta;&eta; 22 sthe s ++ kk 22 )) (( -- mm 11 sthe s 22 ++ &eta;&eta; 11 sthe s ++ kk 11 )) 00 00 11 00 Uu 22 (( sthe s )) -- mm 22 sthe s 22 ++ &eta;&eta; 22 sthe s ++ kk 22 00 00 00 11 Uu 22 (( sthe s )) sthe s -- mm 22 sthe s 22 ++ &eta;&eta; 22 sthe s ++ kk 22

根据步骤二中的化简结果由(Ιs-A)·X(s)=B·U(s)可以判断出该系统输入、输出量存在一一对应关系,即According to the simplification result in step 2 (Ιs-A) X(s) = B U(s), it can be judged that there is a one-to-one correspondence between the input and output of the system, that is

YY 11 (( sthe s )) == -- mm 22 sthe s 22 Uu 11 (( sthe s )) ++ &eta;&eta; 11 sUsU 22 (( sthe s )) ++ &eta;&eta; 22 sUsU 11 (( sthe s )) ++ kk 11 Uu 22 (( sthe s )) ++ kk 22 Uu 11 (( sthe s )) (( -- mm 22 sthe s 22 ++ &eta;&eta; 22 sthe s ++ kk 22 )) (( -- mm 11 sthe s 22 ++ &eta;&eta; 11 sthe s ++ kk 11 ))

YY 22 (( sthe s )) == Uu 22 (( sthe s )) -- mm 22 sthe s 22 ++ &eta;&eta; 22 sthe s ++ kk 22

将本发明方法在Maple软件上编程实现后,对本实施案例进行化简处理,传统的高斯约当消去法的程序响应总时间为0.063秒,其中CPU进行的化简时间0.016秒,而本发明方法的程序总响应时间为0.046秒,其中CPU进行的化简时间几乎为0秒。可见,本发明方法在化简速度上远优于传统方法,避免了高斯消去法的回代过程,节约了计算时间;同时,符号计算有利于保证计算结果的精度和明确的物理关系。特别地,有限元分析过程中,网格化后的单元都可以看作是一个个串联或者并联的等效的质量——阻尼——弹簧系统,与该实施案例类似,采用本发明方法对其计算精度和计算速度都有很好的保证。After the method of the present invention is programmed on the Maple software, the implementation case is simplified. The total program response time of the traditional Gaussian Jordan elimination method is 0.063 seconds, and the simplification time carried out by the CPU is 0.016 seconds, while the method of the present invention The total response time of the program is 0.046 seconds, and the reduction time of the CPU is almost 0 seconds. It can be seen that the method of the present invention is far superior to the traditional method in simplification speed, avoids the back-substitution process of the Gaussian elimination method, and saves calculation time; at the same time, the symbolic calculation is beneficial to ensure the accuracy of the calculation result and the clear physical relationship. In particular, in the finite element analysis process, the meshed units can be regarded as equivalent mass-damping-spring systems connected in series or in parallel. Similar to this implementation case, the method of the present invention is used to The calculation accuracy and calculation speed are well guaranteed.

最后说明的是,以上优选实施例仅用以说明本发明的技术方案而非限制,尽管通过上述优选实施例已经对本发明进行了详细的描述,但本领域技术人员应当理解,可以在形式上和细节上对其作出各种各样的改变,而不偏离本发明权利要求书所限定的范围。Finally, it should be noted that the above preferred embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail through the above preferred embodiments, those skilled in the art should understand that it can be described in terms of form and Various changes may be made in the details without departing from the scope of the invention defined by the claims.

Claims (5)

1.一种用于符号线性系统的快速高斯约当消去方法,其特征在于:包括以下步骤:1. A fast Gaussian Jordan elimination method for symbolic linear systems, characterized in that: comprising the following steps: 步骤一:根据工程系统问题,建立数学物理模型,拉氏变换后构建为线性系统,列出符号矩阵形式的系统状态空间方程;Step 1: According to the engineering system problem, establish a mathematical physical model, construct a linear system after Laplace transformation, and list the system state space equation in the form of a symbolic matrix; 步骤二:根据矩阵大小确定需要进行消去的次数,利用快速高斯约当消去方法直接构造出系统状态空间方程化简为对角矩阵后的准确结果;Step 2: Determine the number of eliminations that need to be performed according to the size of the matrix, and use the fast Gaussian Jordan elimination method to directly construct the accurate result after the system state space equation is simplified to a diagonal matrix; 步骤三:根据一一对应关系,计算出该系统输入、输出量之间的数学物理关系。Step 3: Calculate the mathematical and physical relationship between the input and output quantities of the system according to the one-to-one correspondence. 2.根据权利要求1所述的一种用于符号线性系统的快速高斯约当消去方法,其特征在于:步骤一中的根据工程系统问题,建立数学物理模型,拉氏变换后构建为线性系统,列出的符号矩阵形式系统状态空间方程的一般形式为:Ax=b,其中,为状态矩阵,x=[x1 x2 … xn]T为输出量,b=[b1 b2 … bn]T为输入量。2. a kind of fast Gaussian Jordan elimination method that is used for symbolic linear system according to claim 1, is characterized in that: according to engineering system problem in the step 1, set up mathematical physics model, build into linear system after Laplace transform , the general form of the state-space equation of the system listed in symbolic matrix form is: Ax=b, where, is the state matrix, x=[x 1 x 2 … x n ] T is the output, b=[b 1 b 2 … b n ] T is the input. 3.根据权利要求2所述的一种用于符号线性系统的快速高斯约当消去方法,其特征在于:步骤二中的确定需要消去的次数s表述为:由步骤一所得状态空间方程的增广矩阵(A|b)=(ai,j)n×m的大小n×m来确定,s=min(n,m),工程中通常n=m-1,s=n。3. a kind of fast Gaussian Jordan elimination method that is used for symbolic linear system according to claim 2, is characterized in that: the number of times s that needs to eliminate in step 2 is expressed as: by the increase of state space equation of step 1 gained The wide matrix (A|b)=(a i,j ) is determined by the size n× m of n×m, s=min(n,m), usually n=m-1, s=n in engineering. 4.根据权利要求3所述的一种用于符号线性系统的快速高斯约当消去方法,其特征在于:步骤二中的快速高斯约当消去方法具体包括以下步骤:4. a kind of fast Gaussian Jordan elimination method for symbolic linear system according to claim 3, is characterized in that: the fast Gaussian Jordan elimination method in the step 2 specifically comprises the following steps: 1)初始值设定:定义表示增广矩阵(A|b)经过k次消去后第i行第j列元素,表示增广矩阵(A|b)经过k次消去后第i行第j列元素的构造因子;给定当1≤i≤n,1≤j<m时,当1≤i≤n,j=m时, 1) Initial value setting: definition Indicates that the augmented matrix (A|b) undergoes k times of elimination and the i-th row and j-th column element, Indicates the construction factor of the element in row i and column j of the augmented matrix (A|b) after k times of elimination; given When 1≤i≤n, 1≤j<m, When 1≤i≤n, j=m, 2)进行第k次消去后(0≤k≤s),2) After the kth elimination (0≤k≤s), 当i>k,j>k时,元素的构造因子 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 | ; When i>k, j>k, the construction factor of the element a i , j ( k ) = | a 11 0 ... a 1 , k 0 a 1 , j 0 &Center Dot; &Center Dot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &Center Dot; &Center Dot; &Center Dot; a k , 1 0 ... a k , k 0 a k , j 0 a i , 1 0 ... a i , k 0 a i , j 0 | ; 当i<k,j>k时,元素的构造因子 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 | ; When i<k,j>k, the construction factor of the 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 twenty one 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; &Center Dot; &Center Dot; &Center Dot; &Center Dot; &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)结合步骤2),增广矩阵(A|b)进行第k次消去后(0≤k≤s)转变为(A|b)k,其中(A|b)k的元素满足:3) Combined with step 2), the augmented matrix (A|b) is transformed into (A|b) k after the k-th elimination (0≤k≤s), where the elements of (A|b) k satisfy: aa ii ,, jj kk == aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii >> kk ,, jj >> kk aa ii ,, jj (( kk -- 11 )) aa kk ,, kk (( kk -- 11 )) ii == kk ,, jj >> kk aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii == kk -- 11 ,, jj >> kk (( -- 11 )) kk -- ii ++ 11 aa ii ,, jj (( kk )) aa kk ,, kk (( kk -- 11 )) ii &le;&le; kk -- 22 ,, jj >> kk 经过k=s次消去化简后的系统状态空间方程对角矩阵形式为:The diagonal matrix form of the system state space equation after k=s elimination and simplification is: 5.根据权利要求4所述的一种用于符号线性系统的快速高斯约当消去方法,其特征在于:在步骤三中,根据步骤二中的化简结果,同时根据工程系统通常m=n+1,判断出该系统输入、输出量存在一一对应关系,并计算出它们之间的数学物理关系。5. A kind of fast Gaussian Jordan elimination method for symbolic linear system according to claim 4, is characterized in that: in step 3, according to the simplification result in step 2, according to engineering system m=n usually simultaneously +1, it is judged that there is a one-to-one correspondence between the input and output of the system, and the mathematical and physical relationship between them is calculated.
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
US10489533B2 (en) Techniques for warm starting finite element analyses with deep neural networks
CN109145983A (en) A kind of real-time scene image, semantic dividing method based on lightweight network
CN102332046B (en) Gear crack propagation simulated wavelet extension finite element simulation analysis method
JP2019511033A5 (en)
CN110070918B (en) Coarse graining method based on intermolecular interaction
CN106202734A (en) global sensitivity analysis method based on Gaussian radial basis function
EP4287061A1 (en) Soil body state data calculation method and device based on boundary surface plasticity model
Stehlíková et al. An effective approximation for zero-coupon bonds and Arrow–Debreu prices in the Black–Karasinski model
CN104199441A (en) Blast furnace multiple working condition fault separation method and system based on sparse contribution plot
CN106650086A (en) Indirect air cooling system numerical simulation platform based on FLUENT software
CN102467593B (en) Nonlinear circuit time domain model reduction method and device
CN102033936A (en) Method for comparing similarity of time sequences
CN104899183A (en) Rapid Gauss-Jordan elimination method for symbolic linear system
CN103077274A (en) High-precision curve modeling intelligent method and device
Thakoor et al. Fast valuation of CEV American options
CN114756997B (en) Method and device for detecting ship hull plate curved surface design intersection line and storable medium
CN104037756B (en) A kind of Power System Stability Assessment method containing Complex Power device model
CN106066608A (en) The modelling by mechanism of multivariate continuous process model merges discrimination method with Experimental modeling
CN103678738A (en) Interconnection line model reduction method based on time domain multistep integration
CN110717271A (en) Substance evolution simulation method based on exponential time difference format solution
Raftari Application of He's homotopy perturbation method and variational iteration method for nonlinear partial integro-differential equations
CN105808833A (en) Online parameter identification method of parallel synchronous generator based on multi-data sets
CN106021191A (en) Network equivalence algorithm based on decomposition filtering
CN105068971B (en) A kind of OpenCL automation implementation methods of dot product
CN107315347A (en) One kind becomes rank fractional calculus Time Domain Analysis

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150909