The invention relates to a control method for a nonlinear uncertain system, in particular to an intelligent or wisdom proportional-integral-differential (WPID) control method.
For more than half a century, the classical control (cybernetics) method based on frequency domain design and the modern control (model theory) method based on time domain design have developed independently and formed their respective methodological systems. In the control engineering practice, the error between the control target and the actual behavior of the controlled object is easy to obtain, but also can be properly handled, so the proportional-integral-differential (PID) control strategy based on error to eliminate error has been widely used in the field of actual industrial control. For practical control engineering problems, it is often difficult to describe the internal mechanism, so the control strategy based on the modern control theory of mathematical model is difficult to be effectively applied in the actual control engineering. This is the disconnection between control engineering practice and control theory which has lasted for more than half a century and has not been solved well. The essence of classical control theory is to generate control strategy according to the deviation between the actual value and the control target. As long as the PID gains are reasonably tuned to make the closed-loop system stable, the control target can be achieved. This is the reason why it is widely used. However, the development of science and technology has put forward higher requirements for the accuracy, speed and robustness of the controller, and the disadvantages of PID control have gradually emerged: Although PID control can ensure the stability of the system, the dynamic quality of the closed-loop system is sensitive to the change of PID gains. This shortcoming leads to an irreconcilable contradiction between quickness and overshoot in the control system. Therefore, when the system operating conditions change, the controller gains also need to change, and this is the original motivation of various improved PID control methods, such as adaptive PID, nonlinear PID, neuron PID, intelligent PID, fuzzy PID, expert system PID and so on. Although a variety of improved PID controllers can improve the adaptive control ability of the system by on-line tuning of the PID gains, however, for the control problem of nonlinear uncertain system, the existing PID control is still powerless, especially the anti-disturbance ability is poor. In addition, the PID control principle is to form a control signal according to the weighted sum for the past (I), the present (P) and the future (change trend D) of error, although as long as the reasonable selection of PID three gains can exert effective control, however, the error and the integral and differential of the error are three physical quantities with completely different properties. The control signal formed by the independent weighted sum of the three dimensionless gains and the three physical quantities with different properties contains two theoretical defects: One is that it violates the rules of algebra, the second is that the control forces of three different attributes show their own uncoordinated control behavior in the process of control. Because of the inherent irrationality of PID, the experts, scholars and engineers in control theory and control engineering have been working hard on the tuning problem of PID gain for nearly a century. However, up to now, no solution with simple model structure, easy gain setting, good dynamic quality, high control precision and strong anti-disturbance ability has been found.
The technical problem to be solved by the invention is to overcome the above-mentioned defects existing in the prior art and provide an intelligent PID control method with simple model structure, easy parameter setting, good dynamic quality, high control precision and strong anti-disturbance ability.
Combined with the actual control of the inverted pendulum system, the present application provides an intelligent PID control method, comprising:
(1) according to the known desired output swing angular yd and the known actual output swing angular y=y1 in the inverted pendulum system, the tracking error e1 of the swing angle and the integral e0 of the error e1 are established as follows:
e
1
=y
d
−y, e
0=∫0te1dτ
(2) after obtaining the swing angular error e1 according to step (1), calculating the differential of the swing angular error to obtain the angular speed error e2 as follows:
e
2
={dot over (y)}
d
−y
2
Wherein, {dot over (y)}d is the known desired angular speed and y2={dot over (y)}1={dot over (y)} is the known actual angular speed;
(3) after obtaining e1, e0 and e2 according to the steps (1) and (2), the PID controller is designed as follows:
u=b
0
−1(ÿd+kpe1+kie0+kde2)
where, b0=1/J, and J is the moment of inertia; kp, ki and kd are the proportional gain, integral gain and differential gain of the PID controller respectively; ÿd is the known desired angular acceleration;
(4) according to the PID controller in step (3), the Wisdom PID or WPID tuning rule is defined as:
where, zc is the adaptive center speed factor and 0≤σ<zc is the deviation of the adaptive center speed;
(5) according to the WPID tuning rule in step (4), in order to effectively avoid the overshoot and oscillation caused by integral saturation and differential peak value, the adaptive central speed factor zc is defined as:
z
c
=αh
−1(1−0.9e−βt)
where, h is the integral step size, 0<α<1 and 0<β<1.
The invention defines the controlled system dynamics, internal uncertainties and external disturbances as a total disturbance, an error dynamic system excited by the total disturbance is established according to the error between the desired output and the actual output of the controlled system, and then a PID controller model based on WPID tuning rule is designed. The WPID control system not only has robust stability with a large range, but also has a good anti-disturbance robustness.
The invention not only completely weakens the concepts of system classification such as linear and nonlinear, deterministic and uncertain, time-varying and time-invariant, but also adjusts the gains of WPID completely according to the speed factor, thus effectively solves the difficult problem of traditional PID gain tuning and realizes the wisdom PID control in the real sense.
In addition, the outstanding advantages of the invented WPID mainly include as follows:
(1) large range robust stability;
(2) parameter-free online optimization;
(3) simple structure, small amount of calculation and good real-time;
(4) fast response speed and high control precision;
(5) strong anti-disturbance ability.
The specific implementation mode of the invention is described in detail in combination with the attached drawings and the inverted pendulum system.
1. Mapping Ideas from Nonlinear Uncertain System to Unknown Linear System
Let the model of a second-order nonlinear uncertain system be:
where, y1 and y2 are the two states of the controlled system, u is the control input and y=y1 is the actual output of the controlled system, f(y1,y2,t) and g(y1,y2,t) are smooth functions of the controlled system, respectively, and g(y1,y2,t) is a nonnegative function, d is the external disturbance.
In order to facilitate the practical application, the abstract controlled system (1) is combined with the actual inverted pendulum system (22) described by the subsequent simulation experiment plant 2 to illustrate the specific application of an intelligent PID control method of the present invention.
Consider an inverted pendulum system similar to system (1):
were y1 is the swing angle, y2 is the angular speed; g is the acceleration of gravity; M is the mass of swing rod; L is the length of the pendulum; J is the moment of inertia; Vs is the coefficient of viscous friction; D is the external disturbance and u is the torque input.
For an inverted pendulum system similar to system (1), the corresponding model functions are
An unknown total disturbance y3 is defined as:
y
3
=f(y1,y2,t)+d+g(y1,y2,t)u−b0u (2)
then, an inverted pendulum system similar to system (1) can be mapped to the following unknown linear system:
wherein, b0≠0 is a control coefficient determined by a nonlinear function g(y1,y2,t), and b0=1/J for an inverted pendulum system.
Since the unknown linear system (3) is the equivalent mapping of the nonlinear uncertain system (1), the effective controller formed by system (3) can realize the effective control of system (1).
The significance of the total disturbance is that any known or unknown complex nonlinear system can be mapped to the form of an unknown linear system (3). Not only that, since the definition of total disturbance also completely desalinizes the concept of system classification for linear and nonlinear, determining and uncertainties, time varying and invariance, affine and non affine and so on, thus it effectively solves the problems of how to apply effective control methods to the controlled system with different attributes in the last hundred years.
How to exert effective control on the unknown linear system (3) is the core technology of the invention, namely the WPID tuning technology.
2. Wisdom PID (WPID) Controller Design
For the control problem of an inverted pendulum system similar to an unknown linear system (3), according to the known desired and actual output angular of the inverted pendulum system, the tracking control error of the swing angular is established as follows:
e
1
=y
d
−y
1 (4)
Where, yd is the known desired output angular, and y=y1 is the known actual output angular.
Combined with system (3), differential e2 and integral e0 of the error are respectively:
e
2
=ė
1
={dot over (y)}
d
−{dot over (y)}
1
={dot over (y)}
d
−y
2 (5)
e
0=∫0te1dτ (6)
Where, {dot over (y)}d is the derivative of the swing angular, and is also the known the desired angular speed; y2={dot over (y)}1={dot over (y)} is the known actual angular speed in the inverted pendulum system.
Equation (5) is differentiated, and the differentiated Equation (5) was combined with the unknown linear system (3) to obtain an angular acceleration error Equation (7):
ė
2
=ë
1
=ÿ
d
−y
3
−b
0
u (7)
Where, ÿd is the known desired angular acceleration, y3 is an unknown total disturbance, and b0=1/J.
Considering ė0=e1 and ė1=e2, combined with formula (7), a controlled error system is established as follows:
Obviously, the controlled error system (CES) (8) is a third-order error dynamic system (EDS). In order to make EDS stable, PID controller u and Wisdom PID (WPID) tuning rule are designed as follows:
u=(ÿd+kpe1+kie0+kde2)/b0 (9)
and WPID tuning rule:
where, kp, ki and kd are the proportional gain, integral gain and differential gain of the PID controller respectively, and z1>0, z2>0 and z3>0 are three speed factors respectively, and they all have dimensions of 1/second.
Since WPID tuning rule (10) is actually the dimensional conversion rule of three PID gains, therefore three speed factors not only established the dimension conversion relation for PID gains so as to make PID control law follow the dimension matching rule, but also established the internal relationship between the three gains so as to make the proportional control force, integration control force and differential control force with different properties can realize coordinated control behavior with different functions and consistent goals in the control process so as to solve the basic theoretical problems with two inherent defects for traditional PD.
3. WPID control System Analysis
Theorem 1. When |y3|≤ε<∞, and z1>0, z2>0 and z3>0, the WPID closed-loop control system formed by the WPID tuning rule (10) is robust and stable in a large range, and has good disturbance resistance robustness.
(1) Stability Analysis
By combining the WPID tuning rule (10), PID controller (9) and the controlled error system (8), an error dynamic system (EDS) excited by total disturbance inverse phase can be established:
Take the Laplace Transform of formula (11), then:
The PID closed-loop control system can be obtained as follows:
(s3+kds2+kps+k)E1(s)=−sY3(s) (13)
By substituting the WPID tuning rule (10) into the PID closed-loop system (13), the WPID closed-loop system can be written as:
(s+z1)(s+z2)(s+z3)E1(s)=sY3(s) (14)
Obviously, the WPID closed-loop system (14) is a third-order error dynamic system under the reverse phase excitation of unknown total disturbance, and its system transmission function is:
According to the complex frequency domain analysis theory of the system, the WPID closed-loop system (15) is stable in a large range while three speed factors z1>0, z2>0 and z3>0, and since the three speed factors have nothing to do with the model of the controlled system, the WPID closed-loop system (15) is robust stable in a large range.
(2) Anti-Disturbance Robustness Analysis
{circle around (1)} for z1≠z2≠z3, the unit impulse response of the system is:
Obviously, while z1>0, z2>0 and z3>0, we have
For |y3|≤ε<∞, we have
it is shown that the tracking error e1(t) and its differential e2(t)=ė1(t) of the controlled system can approach the stable equilibrium origin (0,0) from any non-zero initial state uniformly.
The above analysis shows that WPID closed-loop system is not only robust and stable in a large range, but also can achieve precise control in theory for z1≠z2≠z3 and z1>0, z2>0 and z3>0, and |y3|≤ε<∞.
{circle around (2)} for z1=z2=z3=zc>0, the unit impulse response of the system is:
h(t)=t(0.5z,t−1)e−z
Obviously, as z1=z2=z3=zc>0, we have
for |y3|≤ε<∞, we have:
it is shown that the tracking error e1(t) and its differential e2(t)=ė1(t) of the controlled system can approach the stable equilibrium origin (0,0) from any non-zero initial state uniformly.
The above analysis shows that WPID closed-loop system is not only robust and stable in a large range, but also can achieve precise control in theory for z1=z2=z3=zc>0 and |y3|≤ε<∞. Because the robust stability of the WPID closed-loop system is independent of the specific model of the total disturbance, the WPID closed-loop system has good anti-disturbance robustness.
4. Speed Factor Tuning Method of WPID
Although Theorem 1 proves that the WPID closed-loop control system is robust and stable in a large range for z1>0, z2>0 and z3>0, it shows that the three speed factors as z1, z2 and z3 for WPID all have a large tuning margin. According to Equation (16), the larger zj (j=1, 2, 3) is, the faster the unit impulse response approaches 0, and the three speed factors are required to be close or the same. For this purpose, set z1=zc−σ, z2=zc, z3=zc+σ and 0≤σ<zc, respectively, wherein, zc is the central speed factor and σ is the deviation of the central speed factor. Therefore, WPID tuning rule (10) is simplified as:
where zc>0 and 0≤σ<zc.
In particular, while σ=0, we have z1=z2=z3=zc>0, and according to the tuning rule (18) of WPID, then:
According to WPID tuning rules (18) and (19), zc is not only an important speed factor for tuning three PID gains as kp, ki and kd, but also an internal link factor among three different attribute links, such as proportion, integral and differential. It is the central speed factor that makes three different attribute links, such as proportion, integral and differential, form an indivisible organic unity so that the control forces of the three different attribute links can realize the coordinated control behaviors with different functions and consistent goals in the control process, which corrects the uncoordinated control behavior of the three different attributes of the traditional PID. According to the WPID tuning rule (18) or (19), compared with the traditional PID controller, the central speed factor of the invention establishes the theoretical system of PID gain tuning, and effectively solves the difficult problem of traditional PID tuning.
As zc>0 and 0≤σ<zc, the WPID tuning rule (18) or (19) can guarantee the large-scale robust stability of the WPID closed-loop system. In order to make the WPID control system have fast response speed and strong anti-disturbance ability, it is required that the larger the zc, the better. However, if zc is too large, the system will appear overshoot and oscillation due to the excessive integral control force, otherwise, the response speed and anti-disturbance ability of the system will be reduced. Therefore, the central speed factor of WPID is required to be reasonably tuned. The specific methods are as follows:
In order to effectively avoid overshoot and oscillation caused by integral saturation and differential peak value during the dynamic response process of the control system, the adaptive central speed factor is usually used, namely:
z
c
=αh
−1(1−0.9e−βt) (20)
where h is the integral step size, 0<α<1 and 0<β<1.
The block diagram of WPID control system is shown in
5. Test and Analysis of WPID Control System
To verify the effectiveness of a WPID control method of the invention, The following simulation experiments are carried out for the control problem of nonlinear uncertain objects with two different models. The relevant simulation conditions of WPID controller are set as follows:
Let h=0.01, α=0.18, β=0.5 and σ=0.5, then zc=18(1−0.9e−0.5t). According to the gain tuning rule (18), k=3zc2−0.25, ki=zc(zc2−0.25) and kd=3zc.
In all the following simulation experiments, the gain parameters of WPID are exactly the same.
Set the first controlled plant be a nonlinear non-affine uncertain system as:
where f(t,y1,y2)=ey
Set the initial state as: y1(0)=0.5 and y2(0)=0, and let b0=1 for 1≤g(t,y1,y2)≤2.
Set the second controlled plant be an inverted pendulum system as:
where y1 is the swing angular, y2 is the angular rate, g is the acceleration of gravity, M is the mass of swinging rod, L is the pendulum length, J=ML2 is the moment of inertia, Vs is the coefficient of viscous friction, and d is an external disturbance.
Set g=9.8 m/s2, Vs=0.18, M=1.1 kg, L=1 m, and the initial state as: y1(0)=0.1π and y2(0)=2; let b0=1/J.
(1) Dynamic Performance Test
In order to verify the control performance of the wisdom PID control method, dynamic performance tests are carried out on the controlled objects of two different models as shown in the controlled object model (21) and (22) respectively, so as to test control performance about fast, accurate and stable for WPID.
Simulation Experiment 1. Test the Control Performance for the First Controlled System
Let the expected output be yd=sin(t), when there is no external disturbance, Test results of the control method of the invention are shown in
Simulation Experiment 2. Test the Control Performance Test for the Inverted Pendulum System
The control goal for the inverted pendulum is to make it approach the unstable equilibrium origin (0,0) as soon as possible from an arbitrary non-zero initial state (y10,y20).
When there is no external disturbance, the simulation results of the control method of the invention are shown in
When there is no external disturbance, the above dynamic control performance test results show that using WPID with identical gain parameters to control two objects (21) and (22) with completely different models has achieved good control effect, which not only has the characteristics of fast response speed, high control precision, good robustness and stability, but also has a good versatility. Compared with all kinds of existing controllers, the invention reflects the unique advantages of the WPID control method.
(2) Anti-Disturbance Performance Test
In order to verify the anti-disturbance ability of the WPID control method of the invention, the anti-disturbance ability of the controlled objects with two different models as shown in system (21) and (22) is tested respectively. The test results are as follows:
Simulation Experiment 3. Test Anti-Disturbance Capability for the First Controlled System
When there is external disturbance of square wave oscillation with amplitude of ±1 during (9 s˜11 s), set the expected output to be yd=sin(t), the simulation results of the control method of the invention are shown in
Simulation Experiment 4. Test Anti-Disturbance Ability for the Inverted Pendulum System
When there is external disturbance of square wave oscillation with amplitude of ±1 during (4 s˜6 s), the simulation results of the control method of the invention are shown in
The above test results of anti-disturbance ability show that the WPID controller using the same adaptive central speed factor can achieve good anti-disturbance robust control effect on the controlled objects (21) and (22) with two different models.
6. Conclusions
Although PID controller, SMC and ADRC based on error to eliminate error are the three mainstream controllers widely used in the field of control engineering, however, the limitations of the traditional PID controller are also very obvious: firstly, the gain robustness is poor, so it is difficult to set the gain; the other is poor robustness against disturbance. Although all kinds of improved PID controllers, such as adaptive PID controller, nonlinear PID controller, parameter self-learning nonlinear PID controller, fuzzy PID controller, optimal PID controller, neuron PID controller, expert PID controller and so on to a large extent overcome parameter tuning problem for the traditional PID controller, the anti-disturbance robustness of the improved PID controller is still poor, and the computation is large. Although SMC has good robustness and stability, there is an irreconcilable contradiction between high frequency chattering and anti-disturbance ability. Although ADRC has good stability performance and strong anti-disturbance ability, however, there are too many controller parameters, too much calculation of related nonlinear functions, complex control system structure, and difficult to analyze the stability of the control system.
Compared with the existing three mainstream controllers, the WPID control method of the invention concentrates the respective advantages of the three mainstream controllers and eliminates their limitations, namely, it has the advantages of simple PID structure, good robustness and stability of SMC, and strong anti-disturbance ability of ADRC, which it not only effectively avoids the difficulty of PID parameter tuning, but also effectively solves the problem that SMC can not be reconcilable between high frequency chattering and anti-disturbance ability, and also effectively avoids the problem that ADRC controller has too many parameters and too much calculation. The invention of WPID control method has completely overthrown the control theory system for nearly a century, which makes the scholars and engineers who are engaged in the research of control theory and control engineering can get a thorough liberation from the complicated gain tuning research work.
The invention has wide application value in electric power, transportation, machinery, chemical industry, light industry, aerospace and other fields.
This application is a continuation of International Patent Application No. PCT/CN2018/099809, filed on Aug. 10, 2018. The content of the aforementioned applications, including any intervening amendments thereto, is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2018/099809 | Aug 2018 | US |
Child | 17169495 | US |