Data-driven Gaussian reinforcement learning-based optimal tracking control industrial process method
Through the data-driven Gaussian reinforcement learning method, Gaussian process modeling and reinforcement learning algorithms are used to solve the linear quadratic tracking problem under the random disturbance of the system in the industrial process, and achieve self-learning of the optimal control strategy and stable tracking of the system.
Patent Information
- Application Number
- CN202410554610.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-30
AI Technical Summary
In industrial processes, random disturbances in the system and difficulties in data acquisition make optimal controller design challenging. Especially when the system dynamics are unknown, how to design a controller that can achieve linear quadratic tracking is a major problem.
A data-driven Gaussian reinforcement learning method is used to model the unknown system through Gaussian process, design a proportional integral differential controller, and propose a Gaussian process reinforcement learning algorithm to achieve self-learning of the optimal control strategy.
In the case of disturbances with unknown system dynamics and Gaussian characteristics, linear quadratic tracking control is realized, which improves the stability and tracking accuracy of the control system and reduces the dependence on data acquisition.
Smart Images

Figure BDA0004825632020000051 
Figure FDA0004825632010000024 
Figure DA00048256320238335562
Abstract
Description
Technical Field
[0001] The present invention relates to an industrial process control method, in particular to a data-driven optimal tracking control industrial process method based on Gaussian reinforcement learning. Background Art
[0002] The optimal tracking control problem is to achieve the tracking of the system output to a given trajectory by designing a controller, which can achieve stable control of process parameters in industrial processes. However, systems in industrial processes usually have random disturbances, and it is not easy to obtain the parameters of the system online in real time due to economic reasons, which poses a huge challenge to the design of the controller. Ignoring the impact of disturbances will have a serious impact on the stability of the system. How to design an optimal controller to achieve linear quadratic tracking using only a small amount of data under the influence of system disturbances is still a major problem in the field of optimization control.
[0003] It is noted that existing data-driven reinforcement learning algorithms still have some limitations, including the difficulty in obtaining data online and the handling of random disturbances to the system. In recent years, the use of Gaussian processes to predict system states and the observation that disturbances have the characteristics of Gaussian distribution provide new ideas for solving linear quadratic tracking problems with unknown system dynamics.
[0004] In actual industrial processes, it is extremely challenging to design an optimal controller to optimize the control system parameters due to the influence of system disturbances and data acquisition. In practice, the nonlinear dynamics of industrial processes can be approximated as a linear model with an unmodeled system, because industrial processes usually operate at equilibrium points. It is of great significance to design an optimal controller for the linear quadratic tracking problem of systems with random disturbances using Gaussian processes and reinforcement learning when the system dynamics are unknown. Summary of the invention
[0005] The purpose of the present invention is to provide a data-driven optimal tracking control method for industrial processes based on Gaussian reinforcement learning. The present invention develops a self-learning method that does not rely on system dynamics to solve the linear quadratic tracking problem of systems with unknown system dynamics and disturbances with Gaussian characteristics, thereby realizing the optimal tracking control strategy.
[0006] The objective of the present invention is achieved through the following technical solutions:
[0007] A data-driven optimal tracking control method for industrial processes based on Gaussian reinforcement learning, the method comprising the following two steps:
[0008] Step 1: Based on the Gaussian process, the system with unknown dynamics and random disturbances is modeled as a Gaussian prediction model;
[0009] The step 1 of establishing the system is as follows:
[0010] x k+1 =Ax k +Bi k +ε∈~N(0,∑ ε ) (1)
[0011] is the system status, is the control input ε is an external disturbance that follows a Gaussian distribution, with a mean function m = 0, ∑ ε is the variance. A, B are unknown matrices with appropriate dimensions, k (k = 0, 1, 2…).
[0012] r k+1 =Fr k (2)
[0013] is the desired reference trajectory and F is a matrix with appropriate dimensions.
[0014] The typical linear quadratic tracking problem is to adjust the control input u k , so that the system state x k Follow the desired trajectory, i.e. force the following error to zero.
[0015] e k =x k -r k (3)
[0016] The following proportional-integral-derivative controller form is given:
[0017]
[0018] Among them, K p , K i , K d represent the proportional control gain, integral control gain and differential control gain respectively. Further (4) can be written as
[0019] x c,k+1 =A c x c,k +B c u c,k
[0020] u k =C c x c,k +D c e c,k (5)
[0021] in
[0022] Bc =[K i -K d ] T
[0023] C c =[II], D c =K p +K i +K d (6)
[0024] Substituting (3) and (5) into (1), we obtain
[0025] e k+1 =(BD c +A)e k +BC c x c , k+(AF)r k +ε (7)
[0026] Introducing variables Integrating (5)-(7) yields
[0027]
[0028] in
[0029]
[0030] This gives the cost function
[0031]
[0032] in, is the utility function, Q≥0, R>0 is a symmetric matrix, and E=(·) is the expectation.
[0033] Further based on Gaussian process
[0034]
[0035]
[0036]
[0037] Among them, μ k+1 is the predicted mean of the Gaussian process, ∑ k+1 is the Gaussian process prediction variance, K is the kernel matrix, Assuming that the system state at time k is known, the performance index (10) can be written as
[0038]
[0039] Step 2: Propose a Gaussian process-based reinforcement learning algorithm to achieve self-learning of the optimal control strategy;
[0040] The specific steps are as follows:
[0041] Step 1: Given the initial random variable x0 and control input u 0 . Set j = 0;
[0042] Step 2: Collect historical data and obtain the Gaussian prediction model from (11)-(13):
[0043] Step 3: Update weights using (26)
[0044] The specific derivation process is as follows:
[0045] Linear Quadratic Pursuit Problem: Finding the Optimal Control Strategy By solving (15)
[0046]
[0047] Thus we get
[0048]
[0049]
[0050] From (16) and (17) above, we can get
[0051]
[0052]
[0053] in
[0054]
[0055] Prove that there is an optimal control strategy Then the value function and Q function can be expressed as (18), (19). Proof: Taking the logarithm of both sides of (15) yields
[0056]
[0057] Due to (8), (20) can be further written as
[0058]
[0059] in, Introduce (21) into (16)
[0060]
[0061] in,
[0062] When the variance is small, the value function and Q function can be approximated as exponential quadratic forms. Due to (19), equation (16) can be written as:
[0063]
[0064] in, ∑′ k+1 =diag(∑ k+1 , 0, 0).
[0065] The following loss function is defined by (24):
[0066]
[0067] Setting w j =vec(H j ), use the gradient descent method to train w j+1 .
[0068]
[0070] Where l represents the learning rate, Represents the Crocker inner product operation.
[0071] Step 4: Update the control strategy parameters through (27)
[0072]
[0073] Step 5: Determine whether (ζ is a very small positive number) If yes, go to step 6;
[0074] Otherwise, j=j+1, return to step 3;
[0075] Step 6: Performance strategy evaluation: Calculate the proportional-integral-derivative control parameters through (6)-(9)
[0076] The advantages and effects of the present invention are:
[0077] 1. When designing the optimal tracking strategy, the present invention noted that the disturbance has Gaussian distribution characteristics, and adopted Gaussian process for system prediction modeling.
[0078] 2. The present invention proposes a reinforcement learning algorithm based on Gaussian process, which makes it possible to implement an optimal tracking control strategy in proportional-integral-differential form using only Gaussian predicted data that is not actually measured. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 A flowchart of the Gaussian reinforcement learning algorithm for linear quadratic tracking problems of the present invention;
[0080] Figure 2 This is the tracking error diagram of the present invention. DETAILED DESCRIPTION
[0081] The present invention will be further described below in conjunction with the embodiments shown in the accompanying drawings.
[0082] The present invention is dedicated to developing a self-learning method that does not rely on system dynamics to solve the linear quadratic tracking problem of a system with unknown system dynamics and disturbances with Gaussian characteristics, which specifically includes the following steps:
[0083] Step 1: Design a proportional-integral-derivative controller for a typical linear quadratic tracking problem.
[0084] Step 2: Based on the Gaussian process, the system with unknown system dynamics is modeled by Gaussian prediction to achieve real-time update of system data;
[0085] Step 3: Propose a Gaussian reinforcement learning algorithm to achieve self-learning of the optimal control strategy;
[0086] The step 1 is:
[0087] Consider the following system:
[0088] x k+1 =Ax k +Bu k +ε∈~N(0,∑ ε ) (1)
[0089] is the system status, is the control input ε is an external disturbance that follows a Gaussian distribution, with a mean function m = 0, ∑ ε is the variance. A, B are unknown matrices with appropriate dimensions, k (k = 0, 1, 2…).
[0090] r k+1 =Fr k (2)
[0091] is the desired reference trajectory and F is a matrix with appropriate dimensions.
[0092] The typical linear quadratic tracking problem is to adjust the control input u k , so that the system state x k Follow the desired trajectory, i.e. force the following error to zero.
[0093] e k =x k -r k (3)
[0094] The following proportional-integral-derivative controller form is given:
[0095]
[0096] Among them, K p , K i , K d represent the proportional control gain, integral control gain and differential control gain respectively. Further (4) can be written as
[0097] x c,k+1 =A c x c,k +B c u c,k
[0098] u k =C c x c,k +D c e c,k (5)
[0099] in
[0100] B c =[K i -K d ] T
[0101] C c =[II], D c =K p +K i +K d (6)
[0102] Substituting (3) and (5) into (1), we obtain
[0103] e k+1 =(BD c +A)e k +BC c x c , k+(AF)r k +ε (7)
[0104] Introducing variables Integrating (5)-(7) yields
[0105]
[0106] in
[0107]
[0108] This gives the cost function
[0109]
[0110] in, is the utility function, Q≥0, R>0 is a symmetric matrix, and E=(·) is the expectation.
[0111] The step 2 is:
[0112] Linear Quadratic Pursuit Problem: Finding the Optimal Control Strategy By solving (11)
[0113]
[0114] Thus we get
[0115]
[0116]
[0117] Sub-problem 1: Prove the optimal control strategy This can make system (1) stable.
[0118] The step 3 is:
[0119] Proposed Gaussian process-based reinforcement learning algorithm:
[0120] 1. Given the initial random variable x0 and control input u 0 . Set j = 0;
[0121] 2. Collect historical data and use (14)-(16) to obtain the Gaussian prediction model:
[0122]
[0123]
[0124]
[0125] 3. Update weights using (17)
[0126]
[0127] Among them, l represents the learning rate, Represents the Crocker inner product operation.
[0128] 4. Update the control strategy parameters through (18)
[0129]
[0130] 5. Determine whether (ζ is a very small positive number) If yes, go to step 6;
[0131] Otherwise, j=j+1, return to step 3;
[0132] 6. Calculate the proportional integral differential control parameters through (6)-(9)
[0133] Example
[0134] In an embodiment of the present invention, a data-driven optimal tracking control method for an industrial process based on Gaussian reinforcement learning is a data-driven optimal tracking control method based on a Gaussian reinforcement learning algorithm, comprising the following steps:
[0135] Step 1: Consider the following system
[0136] x k+1 =Ax k +Bu k +ε∈~N(0,∑ ε ) (1)
[0137] is the system status, is the control input ε is an external disturbance that follows a Gaussian distribution, with a mean function m = 0, ∑ ε is the variance. A, B are unknown matrices with appropriate dimensions, k (k = 0, 1, 2…).
[0138] r k+1 =Fr k (2)
[0139] is the desired reference trajectory and F is a matrix with appropriate dimensions.
[0140] The typical linear quadratic tracking problem is to adjust the control input u k , so that the system state x k Follow the desired trajectory, i.e. force the following error to zero.
[0141] e k =x k -r k (3)
[0142] The following proportional-integral-derivative controller form is given:
[0143]
[0144] Among them, K p , K i , K d represent the proportional control gain, integral control gain and differential control gain respectively. Further (4) can be written as
[0145] x c,k+1 =A c x c,k +B c u c,k
[0146] u k =C c x c,k +D c e c,k (5)
[0147] in
[0148] B c =[K i -K d ] T
[0149] C c =[II], D c =K p +K i +K d (6)
[0150] Substituting (3) and (5) into (1), we obtain
[0151] e k+1 =(BD c +A)e k +BC c x c , k+(AF)r k +ε (7)
[0152] Introducing variables Integrating (5)-(7) yields
[0153]
[0154] in
[0155]
[0156] This gives the cost function
[0157]
[0158] in, is the utility function, Q≥0, R>0 is a symmetric matrix, and E=(·) is the expectation.
[0159] Step 2: Due to economic reasons, it is not easy to obtain the system parameter status online in the industrial process. In order to meet the data requirements of the reinforcement learning algorithm and take into account the characteristics of the Gaussian distribution of the system disturbance, the Gaussian process is introduced to predict the system.
[0160] Assuming that historical data has been collected, the prior mean function can be defined and covariance function
[0161]
[0162] in are any two input vectors in the training sample. ∧ is a diagonal matrix, α f is the variability of the potential function, α ε is the noise variance, δ ij is the Crocker inner product function. Given the training input Training output y = [x2, x3, ..., x k ] can get the prediction distribution based on Gaussian process .
[0163]
[0164]
[0165]
[0166] Among them, μ k+1 is the predicted mean of the Gaussian process, ∑ k+1 is the Gaussian process prediction variance, K is the kernel matrix, Assuming that the system state at time k is known, the performance index (10) can be written as
[0167]
[0168] Linear Quadratic Pursuit Problem: Finding the Optimal Control Strategy By solving (16)
[0169]
[0170] Thus we get
[0171]
[0172]
[0173] Sub-problem 1: Prove the optimal control strategy This can make system (1) stable.
[0174] prove:
[0175]
[0176] In step 3, from the above (17) and (18), we can get
[0177]
[0178]
[0179] in
[0180]
[0181] Subproblem 1: Prove that there is an optimal control strategy Then the value function and Q function can be expressed as (20), (21).
[0182] Proof: Taking the logarithm of both sides of (16) yields
[0183]
[0184] Due to (8), (22) can be further written as
[0185]
[0186] in, Introduce (23) into (17)
[0187]
[0188] in,
[0189] When the variance is small, the value function and Q function can be approximated as exponential quadratic forms. Due to (21), equation (17) can be written as:
[0190]
[0191] in, ∑′ k+1 =diag(∑ k+1 , 0, 0).
[0192] The following loss function is defined by (26):
[0193]
[0194] Setting w j=vec(H j ), use the gradient descent method to train w j+1 .
[0195]
[0196] Among them, l represents the learning rate, Represents the Crocker inner product operation.
[0197]
[0198] The proposed Gaussian reinforcement learning algorithm consists of the following steps:
[0199] Step 1: Given the initial random variable x0 and control input u 0 . Set j = 0;
[0200] Step 2: Collect historical data and use (12)-(14) to obtain the Gaussian prediction model;
[0201] Step 3: Update weights using (28)
[0202] Step 4: Update the control strategy parameters through (29)
[0203] Step 5: Determine whether (ζ is a very small positive number) If yes, go to step 6;
[0204] Otherwise, j=j+1, return to step 3;
[0205] Step 6: Calculate the proportional-integral-differential control parameters through (6)-(9)
[0206] For the Gaussian reinforcement learning algorithm proposed above, the online update problem of the system state can be solved by Gaussian prediction, and under the action of the controller, the system can track the given trajectory. In addition, the influence of disturbances with Gaussian characteristics on the system is also considered.
[0207] In the present invention, Figure 1 As shown, in order to prove the effectiveness of the proposed algorithm, MATLAB software is used and experimental examples are used to verify the effectiveness of the algorithm proposed in the present invention.
[0208] Practical example: Consider the following system
[0209]
[0210]
[0211] Let R = 1, Q = diag(6, 6) Figure 2 The performance of traditional reinforcement learning and Gaussian-based reinforcement learning for linear quadratic tracking is shown.
[0212] In the embodiment of the present invention, based on the designed digital controller, the optimal tracking control problem is solved, and the experimental results are reflected in the simulation process. Figure 1 is the flowchart of Gaussian reinforcement learning algorithm, Figure 2 is a comparison of the effects of applying Gaussian reinforcement learning and traditional reinforcement learning on the linear quadratic tracking problem. Figure 2 It can be seen that the algorithm proposed in the present invention can make the tracking error effect better, thereby realizing the optimal tracking problem based on Gaussian reinforcement learning.
Claims
1. A data-driven optimal tracking control method for industrial processes based on Gaussian reinforcement learning, Features: The method comprises the following two steps: Step 1: Based on the Gaussian process, the system with unknown dynamics and random disturbances is modeled as a Gaussian prediction model; The step 1 system is as follows: x k+1 =Ax k +Bu k +ε∈~N(0,∑ ε ) (1) is the system status, is the control input ε is an external disturbance that follows a Gaussian distribution, with a mean function m = 0, ∑ ε is the variance; A, B are unknown matrices with appropriate dimensions, k (k = 0, 1, 2...); r k+1 =Fr k (2) is the expected reference trajectory, F is a matrix with suitable dimensions; The typical linear quadratic tracking problem is to adjust the control input u k , so that the system state x k Follow the desired trajectory, i.e. force the following error to zero; e k =x k -r k (3) The following proportional-integral-derivative controller form is given: Among them, K p , K i , K d represent proportional control gain, integral control gain and differential control gain respectively; further (4) can be written as x c,k+1 =A c x c,k +B c u c,k u k =C c x c,k +D c e c,k (5) in C c =[I I],D c =K p +K i +K d (6) Substituting (3) and (5) into (1), we obtain e k+1 =(BD c +A)e k +BC c x c , k+(AF)r k +ε (7) Introducing variables Integrating (5)-(7) yields in This gives the cost function in, is the utility function, Q ≥ 0, R > 0 is a symmetric matrix, and E = (·) is the expectation; Further based on Gaussian process Among them, μ k+1 is the predicted mean of the Gaussian process, Σ k+1 is the Gaussian process prediction variance, K is the kernel matrix, Assuming that the system state at time k is known, the performance index (10) can be written as Step 2: Propose a Gaussian process-based reinforcement learning algorithm to achieve self-learning of the optimal control strategy; The specific steps are as follows: Step 1: Given the initial random variable x 0 and control input u 0 ; Set j = 0; Step 2: Collect historical data and obtain the Gaussian prediction model from (11)-(13): Step 3: Update weights using (26) The specific derivation process is as follows: Linear Quadratic Pursuit Problem: Finding the Optimal Control Strategy By solving (15) Thus we get From (16) and (17) above, we can get in Prove that there is an optimal control strategy Then the value function and Q function can be expressed as (18), (19); Proof: Taking the logarithm of both sides of (15) yields Due to (8), (20) can be further written as in, Introduce (21) into (16) in, When the variance is small, the value function and Q function can be approximated as exponential quadratic forms; due to (19), equation (16) can be written as: in, ∑′ k+1 =diag(∑ k+1 , 0, 0). The following loss function is defined by (24): Setting w j =vec(H j ), use the gradient descent method to train w j+1 ; Among them, l represents the learning rate, represents the Crocker inner product operation; Step 4: Update the control strategy parameters through (27) Step 5: Determine whether (ζ is a very small positive number) If yes, go to step 6; Otherwise, j=j+1, return to step 3; Step 6: Performance strategy evaluation: Calculate the proportional-integral-derivative control parameters through (6)-(9)
