CN114337427A - Rotational inertia identification method of recursive least square method with forgetting factor - Google Patents
Rotational inertia identification method of recursive least square method with forgetting factor Download PDFInfo
- Publication number
- CN114337427A CN114337427A CN202111554956.2A CN202111554956A CN114337427A CN 114337427 A CN114337427 A CN 114337427A CN 202111554956 A CN202111554956 A CN 202111554956A CN 114337427 A CN114337427 A CN 114337427A
- Authority
- CN
- China
- Prior art keywords
- matrix
- recursive
- formula
- parameter
- rotational inertia
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 239000011159 matrix material Substances 0.000 claims abstract description 59
- 239000013598 vector Substances 0.000 claims description 5
- 150000001875 compounds Chemical class 0.000 claims description 3
- 238000005070 sampling Methods 0.000 claims description 3
- 238000005259 measurement Methods 0.000 claims description 2
- 230000008859 change Effects 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013016 damping Methods 0.000 description 2
- 230000004907 flux Effects 0.000 description 2
- 238000013488 ordinary least square regression Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000007850 degeneration Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Control Of Electric Motors In General (AREA)
- Feedback Control In General (AREA)
Abstract
The invention discloses a rotational inertia identification method of a recursive least square method with forgetting factors. The method comprises the following steps: writing an asynchronous motor motion equation into a recursive least square form, and determining an output variable, a parameter to be identified and an observation matrix; defining observation quantity length, forgetting factor, initialization covariance matrix and identification parameters; calculating a gain matrix of the current moment; calculating the covariance of the current moment; updating the parameter estimation value; updating the objective function value; and comparing the calculated objective function value with a preset objective function value, continuously updating, and finally calculating to obtain the motor rotational inertia information. The invention introduces the rotational inertia identification method of the recursive least square method with forgetting factors, and improves the system control performance of the motor under the conditions of load rotational inertia change and the like.
Description
Technical Field
The invention relates to the technical field of motor rotational inertia identification, in particular to a rotational inertia identification method of a recursive least square method with forgetting factors.
Background
In a modern high-performance alternating current motor speed regulation control system, a vector control technology is widely applied to high-performance control of various alternating current motors due to the advantages of excellent performance, simple and reliable method and the like. The key point of the realization of the vector control technology is decoupling, the premise of the decoupling is accurate flux linkage estimation, and the accuracy of the flux linkage estimation greatly depends on motor parameters, so that the identification of the motor parameters plays an important basic role in the vector control technology. In addition to being limited by the accuracy of identification of motor parameters, is also affected by load characteristics. In characteristics such as torque and moment of inertia of the load, the moment of inertia has a great influence on the dynamic performance of the motor operation. In a small ac motor control system, the moment of inertia of the load is typically several times or even ten times the moment of inertia of the motor rotor, and thus variations in the moment of inertia of the load can have a significant effect on the mechanical properties of the system. For example, in a multi-axis robot widely used in the field of industrial control, the moment of inertia of a motor load may change when an object is transferred, and if the moment of inertia cannot be identified in real time, the dynamic performance of the system may be affected. Therefore, online identification of the total rotational inertia of the alternating current motor control system is an effective means for improving the performance of the control system.
The least square method is a common and most basic identification method, and the thinking of the method is to select a state variable and an observation variable of a model, calculate the sum of squares of errors between an observed value and an actual value, adjust model parameters to enable the sum of squares to be minimum, and consider the model parameters to be equal to actual system parameters at the moment. The method is widely applied, can be used for dynamic and static systems, is suitable for both off-line identification and on-line identification, and has the characteristics of unbiased, consistent, effective and the like of identification results. Based on the ordinary least square method, also the recursive least square method, the weighted least square method and the like are widely applied, wherein the recursive least square method solves the defects that the ordinary least square method is complex in calculation and occupies the memory of a processor by avoiding repeated matrix calculation and matrix inversion. In the field of motor parameter identification, a motor model is simplified and equivalent to a linear model directly related to motor parameters, and then online identification is performed by using a recursive least square method. However, the recursive least squares method, when applied to time-varying parameter identification, suffers from the problem of parameter saturation. Because the time-varying parameter identification is performed on line, new observation data is continuously obtained, and the new data and the old data have the same weight in the identification process, the result of the new data identification is affected by the old data along with the identification, thereby generating larger deviation.
Disclosure of Invention
The invention aims to provide a rotational inertia identification method of a recursive least square method with a forgetting factor, so as to improve the system control performance of a motor under the conditions of load rotational inertia change and the like.
The technical solution for realizing the purpose of the invention is as follows: a rotational inertia identification method of a recursive least square method with forgetting factors comprises the following steps:
Step 2, defining observation quantity length, forgetting factor, initializing covariance matrix P (0) and parameter theta (0) to be identified;
step 3, calculating a gain matrix K (t) at the current moment;
step 4, calculating the covariance P (t) at the current moment;
Step 6, updating the objective function value Jt(θ);
Step 7, converting the objective function value Jt(theta) and a predetermined objective function value Jset() By comparison, if Jt(θ)>Jset() If t is t +1 and returnsAnd returning to the step 3, otherwise, outputting the rotational inertia information of the motor.
Compared with the prior art, the invention has the following remarkable advantages: (1) the forgetting factor is introduced, so that the weight occupied by old data can be reduced, when the parameter to be identified is subjected to sudden change, a new value can be identified at a higher response speed, the smaller the forgetting factor is, the smaller the weight occupied by the old data is, the higher the response speed is, and the problem of parameter saturation is effectively solved; (2) the rotational inertia identification method of the recursive least square method with forgetting factors is adopted, and the system control performance of the motor under the conditions of load rotational inertia change and the like is improved.
Drawings
Fig. 1 is a flowchart of a rotational inertia recognition method of the recursive least square method with forgetting factor in the present invention.
Fig. 2 is a system block diagram of a rotational inertia identification method of the recursive least square method with forgetting factors in the present invention.
Detailed Description
With reference to fig. 1, the rotational inertia identification method of the recursive least square method with forgetting factors of the invention comprises the following steps:
Step 2, defining observation quantity length, forgetting factor, initializing covariance matrix P (0) and parameter theta (0) to be identified;
step 3, calculating a gain matrix K (t) at the current moment;
step 4, calculating the covariance P (t) at the current moment;
Step 6, updating the objective function value Jt(θ);
Step 7, converting the objective function value Jt(theta) and a predetermined objective functionValue Jset() By comparison, if Jt(θ)>Jset() And if the value is t +1, returning to the step 3, otherwise, outputting the motor rotational inertia information.
Further, step 1, establishing a recursive least square model of the asynchronous motor, and determining an output quantity y, a parameter theta to be identified and an observation matrixThe method comprises the following specific steps:
step 1.1, constructing a system regression equation, specifically comprising:
y(i)=θ1u1(i)+θ2u2(i)+…+θnun(i)i=1,2,3,…,m (32)
in the formula u1(i),u2(i),…,un(i) Is at tiThe system input observed at time, y (i) is at tiSystem output of time observation; theta ═ theta1,θ2,...,θnThe parameter matrix to be identified is a regression coefficient; n is the system order;
step 1.2, converting into a matrix form, specifically:
Y=[y(1) y(2) … y(m)]T (33)
θ=[θ1 θ2 … θn]T (34)
e=[e1 e2 … em]T (36)
there is a measurement equation:
Y=Φθ+e (37)
in the formula, Y is a system output matrix, phi is a system input matrix, theta is a parameter array to be identified, and e is a residual error;
step 1.3, establishing an error in a mode of an objective function to obtain
Where J is an objective function, also known as a cost function;
step 1.4, selecting a group of estimated values of thetaMinimizing the objective function J, so deriving J from θ, making the derivative value 0, has:
obtaining:
namely a least squares estimation formula.
Further, defining observation length, forgetting factor, initialization covariance matrix P (0), and parameter θ (0) to be identified in step 2 specifically as follows:
step 2.1, discretizing an estimation formula, and describing by using a difference equation form:
wherein y (k) is the output sample value at the k-th time of the system, u (k) is the input sample value at the k-th time of the system, and k is the k-th time; a is1...an,b0...bnIs the parameter to be identified.
Step 2.2, introducing a shift operator:
A(Z-1)y(k)=B(Z-1)u(k) (42)
in the formula (I), the compound is shown in the specification,are all coefficient matrices, Z-xRepresenting lag x sampling periods, u being the number of output quantities and v being the number of input quantities;
the rewrite is:
wherein e (k) is a generalized error, specifically:
e(k)=A(Z-1)y(k)-B(Z-1)u(k) (44)
step 2.3, discrete vectors and matrixes are introduced, and the formula (12) is as follows:
Y=[y(n+1)y(n+2)…y(n+N)]T (45)
e=[e(n+1) e(n+2) … e(n+N)]T (46)
θ=[a1 a2 … an b0 b1 … bn]T (47)
in the formula, Y is a system output matrix, phi is a system input matrix, theta is a parameter array to be identified, e is a residual error, N is a system order, and N is an Nth moment;
arranging into a matrix of the form Y ═ Φ θ + e to obtain:
step 2.4, changing J to eTe, a complete flat mode is prepared to obtain a difference form least square estimation formula:
wherein Y is a systemOutput matrix, phi is the system input matrix, phiTIs a transpose of the input matrix of the system,is the identification result matrix, e is the residual error;
step 2.5, adding an observation time, wherein the observed input quantity is u (N +1), the output quantity is y (N +1), and the method comprises the following steps:
θ=[a1 a2 … an b0 b1 … bn]T (51)
e=[e(n+1) e(n+2) … e(n+N+1)]T (52)
step 2.6, obtaining a parameter estimation matrix, specifically:
step 2.7, introducing matrix inversion lemma, including:
in the formula (I), the compound is shown in the specification,is to ask forThe obtained covariance matrix is generally initialized to be a diagonal matrix, and the value of the covariance matrix is 1e 4-1 e 10; k (N) is a correction matrix;
y (N +1) is a new output observation;is to estimateAnd (4) obtaining the output estimation value of the (N +1) th time.
The formula (26) to the formula (28) is a recursive least square method identification formula.
Step 2.8, introducing a forgetting factor, which is specifically as follows:
in the formula, lambda is a forgetting factor, lambda is more than 0 and less than or equal to 1, and usually lambda is more than or equal to 0.9 and less than or equal to 0.99; when λ is 1, the degeneration is the ordinary recursive least squares method. The initial covariance matrix is set toThe forgetting factor is set to λ 0.98.
Further, the calculating of the gain matrix k (n) at the current time is specifically as follows:
further, the calculation of the covariance p (n) at the current time in step 4 is specifically as follows:
in the formula, E is a unit diagonal matrix.
Further, updating the parameter estimation value in step 5The method comprises the following specific steps:
further, updating the objective function value J as described in step 6t(θ), specifically as follows:
the mechanical equation of the asynchronous motor is as follows:
wherein J is the system moment of inertia, ωrIs the mechanical angular velocity, T, of the rotor of the motoreIs the motor outputting an electromagnetic torque, TLIs the load torque and B is the damping coefficient.
Neglecting the damping torque and discretizing to obtain:
in the formula, T is a sampling period and is set to 1 μ s.
Neglecting the load variation term, the equation for Y Φ θ has:
finally, the rotational inertia of the system can be identified by the output electromagnetic torque of the asynchronous motor and the mechanical angular speed of the rotor.
In conclusion, the invention adopts the identification method of the rotational inertia of the asynchronous motor based on the forgetting factor recursion least square method, and improves the system control performance of the motor under the conditions of load rotational inertia change and the like.
Claims (7)
1. The rotational inertia identification method of the recursive least square method with the forgetting factor is characterized by comprising the following steps of:
step 1, establishing a recursive least square model of an asynchronous motor, and determining an output quantity y, a parameter theta to be identified and an observation matrix
Step 2, defining observation quantity length, forgetting factor, initializing covariance matrix P (0) and parameter theta (0) to be identified;
step 3, calculating a gain matrix K (t) at the current moment;
step 4, calculating the covariance P (t) at the current moment;
Step 6, updating the objective function value Jt(θ);
Step 7, converting the objective function value Jt(theta) and a predetermined objective function value Jset() By comparison, if Jt(θ)>Jset() And if the value is t +1, returning to the step 3, otherwise, outputting the motor rotational inertia information.
2. The method for identifying the moment of inertia by the recursive least square method with forgetting factors according to claim 1, wherein the step 1 is implemented by establishing a recursive least square model of the asynchronous motor, determining the output quantity y, the parameter theta to be identified and the observation matrixThe method comprises the following specific steps:
step 1.1, constructing a system regression equation, specifically comprising:
y(i)=θ1u1(i)+θ2u2(i)+…+θnun(i) i=1,2,3,…,m (1)
in the formula u1(i),u2(i),…,un(i) Is at tiThe system input observed at time, y (i) is at tiSystem output of time observation; theta ═ theta1,θ2,...,θnThe parameter matrix to be identified is a regression coefficient; n is the system order;
step 1.2, converting into a matrix form, specifically:
Y=[y(1) y(2) … y(m)]T (2)
θ=[θ1 θ2 … θn]T (3)
e=[e1 e2 … em]T (5)
there is a measurement equation:
Y=Φθ+e (6)
in the formula, Y is a system output matrix, phi is a system input matrix, theta is a parameter array to be identified, and e is a residual error;
step 1.3, establishing an error in a mode of an objective function to obtain
Where J is an objective function, also known as a cost function;
step 1.4, selecting a group of estimated values of thetaMinimizing the objective function J, so deriving J from θ, making the derivative value 0, has:
obtaining:
namely a least squares estimation formula.
3. The method for identifying rotational inertia by recursive least squares with forgetting factor according to claim 1, wherein the observation length, the forgetting factor, the initialized covariance matrix P (0), and the parameter θ (0) to be identified in step 2 are defined as follows:
step 2.1, discretizing an estimation formula, and describing by using a difference equation form:
wherein y (k) is the output sample value at the k-th time of the system, u (k) is the input sample value at the k-th time of the system, and k is the k-th time; a is1…an,b0...bnIs a parameter to be identified;
step 2.2, introducing a shift operator:
A(Z-1)y(k)=B(Z-1)u(k) (11)
in the formula (I), the compound is shown in the specification,are all coefficient matrices, Z-xRepresenting lag x sampling periods, u being the number of output quantities and v being the number of input quantities;
the rewrite is:
wherein e (k) is a generalized error, specifically:
e(k)=A(Z-1)y(k)-B(Z-1)u(k) (13)
step 2.3, discrete vectors and matrixes are introduced, and the formula (12) is as follows:
Y=[y(n+1) y(n+2) … y(n+N)]T (14)
e=[e(n+1) e(n+2) … e(n+N)]T (15)
θ=[a1 a2 … an b0 b1 … bn]T (16)
in the formula, Y is a system output matrix, phi is a system input matrix, theta is a parameter array to be identified, e is a residual error, N is a system order, and N is an Nth moment;
arranging into a matrix of the form Y ═ Φ θ + e to obtain:
step 2.4, changing J to eTe, a complete flat mode is prepared to obtain a difference form least square estimation formula:
where Y is the system output matrix, phi is the system input matrix, phiTIs a transpose of the input matrix of the system,is the identification result matrix, e is the residual error;
step 2.5, adding an observation time, wherein the observed input quantity is u (N +1), the output quantity is y (N +1), and the method comprises the following steps:
θ=[a1 a2 … an b0 b1 … bn]T (20)
e=[e(n+1) e(n+2) … e(n+N+1)]T (21)
step 2.6, obtaining a parameter estimation matrix, specifically:
step 2.7, introducing matrix inversion lemma, including:
wherein P (N) ([ phi ])T(N)Φ(N)]-1Is to ask forThe obtained covariance matrix is generally initialized to be a diagonal matrix, and the value of the covariance matrix is 1e 4-1 e 10; k (N) is a correction matrix;
y (N +1) is a new output observation;is to estimateThe (N +1) th output estimation value is obtained;
formula (26) -formula (28) is a recursive least square identification formula;
step 2.8, introducing a forgetting factor, which is specifically as follows:
in the formula, lambda is a forgetting factor, and lambda is more than or equal to 0.9 and less than or equal to 0.99.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111554956.2A CN114337427B (en) | 2021-12-17 | 2021-12-17 | Rotary inertia identification method of recursive least square method with forgetting factor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111554956.2A CN114337427B (en) | 2021-12-17 | 2021-12-17 | Rotary inertia identification method of recursive least square method with forgetting factor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114337427A true CN114337427A (en) | 2022-04-12 |
CN114337427B CN114337427B (en) | 2024-06-07 |
Family
ID=81051878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111554956.2A Active CN114337427B (en) | 2021-12-17 | 2021-12-17 | Rotary inertia identification method of recursive least square method with forgetting factor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114337427B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116522059A (en) * | 2023-06-29 | 2023-08-01 | 南昌三瑞智能科技有限公司 | Least square fitting method and motor discrete transmission data processing method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452247A (en) * | 2016-12-12 | 2017-02-22 | 广东工业大学 | Method and device for identifying rotational inertia of permanent magnet synchronous motors |
CN107124132A (en) * | 2017-05-22 | 2017-09-01 | 珠海格力节能环保制冷技术研究中心有限公司 | A kind of method for identification of rotational inertia and identifier |
CN107367692A (en) * | 2017-06-07 | 2017-11-21 | 东莞市德尔能新能源股份有限公司 | A kind of least square method lithium battery model parameter identification method with forgetting factor |
CN109586645A (en) * | 2018-11-27 | 2019-04-05 | 中国地质大学(武汉) | A kind of permanent magnet synchronous motor inertia recognition methods and equipment |
CN111707412A (en) * | 2020-07-10 | 2020-09-25 | 哈尔滨工业大学 | Large-scale triaxial air bearing table rotational inertia online identification system and inertia algorithm |
-
2021
- 2021-12-17 CN CN202111554956.2A patent/CN114337427B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452247A (en) * | 2016-12-12 | 2017-02-22 | 广东工业大学 | Method and device for identifying rotational inertia of permanent magnet synchronous motors |
CN107124132A (en) * | 2017-05-22 | 2017-09-01 | 珠海格力节能环保制冷技术研究中心有限公司 | A kind of method for identification of rotational inertia and identifier |
CN107367692A (en) * | 2017-06-07 | 2017-11-21 | 东莞市德尔能新能源股份有限公司 | A kind of least square method lithium battery model parameter identification method with forgetting factor |
CN109586645A (en) * | 2018-11-27 | 2019-04-05 | 中国地质大学(武汉) | A kind of permanent magnet synchronous motor inertia recognition methods and equipment |
CN111707412A (en) * | 2020-07-10 | 2020-09-25 | 哈尔滨工业大学 | Large-scale triaxial air bearing table rotational inertia online identification system and inertia algorithm |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116522059A (en) * | 2023-06-29 | 2023-08-01 | 南昌三瑞智能科技有限公司 | Least square fitting method and motor discrete transmission data processing method |
Also Published As
Publication number | Publication date |
---|---|
CN114337427B (en) | 2024-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2763832B2 (en) | Control device and method for plant including unknown dynamics | |
CN110716430B (en) | Servo system rapid suction repetitive control method adopting equivalent disturbance compensation | |
CN114337427A (en) | Rotational inertia identification method of recursive least square method with forgetting factor | |
Beineke et al. | Comparison of parameter identification schemes for self-commissioning drive control of nonlinear two-mass systems | |
CN110829934A (en) | Permanent magnet alternating current servo intelligent control system based on definite learning and mode control | |
CN110084324B (en) | Kalman filtering parameter self-adaptive updating method based on extreme learning machine | |
CN113486523B (en) | Global identification method for linear variable parameter vibration system | |
CN114977928A (en) | Parameter self-tuning method for speed ring and position ring of permanent magnet synchronous servo system | |
CN106533285B (en) | Permanent magnet DC motor method for controlling number of revolution based on Kriging model | |
Husain et al. | Observers for position and speed estimations in switched reluctance motors | |
Kaminski et al. | Neural speed controller based on two state variables applied for a drive with elastic connection | |
JPH08202405A (en) | Robust-adaptive control method | |
Łuczak et al. | The study of neural estimator structure influence on the estimation quality of selected state variables of the complex mechanical part of electrical drive | |
Stelmashchuk | Identification of static moment and inertia moment of electric drive with the method of least squares | |
JP2906255B2 (en) | Servo control device | |
CN116633217A (en) | Electric actuator speed identification method based on vector control without speed sensor | |
CN117970819B (en) | Optimal control method and system for nonlinear electromechanical system under state constraint | |
Shafiq et al. | Real-time adaptive tracking of DC motor speed using U-model based IMC | |
Kwad et al. | A real-time nonlinear hammerstein model for bidirectional dc motor based on multi-layer neural networks | |
CN112260590A (en) | Control method based on IAUKF in permanent magnet linear synchronous motor | |
CN116149262B (en) | Tracking control method and system of servo system | |
Sunny et al. | High performance parameter observation of induction motor with sensorless vector Control using extended Kalman filter | |
Vanegas et al. | Non-linear State Estimation of a DC Series Motor: A Review and a Novel Tuning Method | |
JPH0272404A (en) | Deciding method for membership function | |
CN117713620A (en) | Linear motor system disturbance estimation method based on multi-expansion state observer fusion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |