Non-strategy model-free output feedback optimal tracking control method for two-dimensional batch processes
Through non-strategy reinforcement learning technology, a model-free output feedback optimal tracking control method is designed, using two-dimensional augmented state space and input and output sequences to solve the problems of model dependence and difficult state measurement in intermittent processes, and achieve system performance improvement. Improvement and cost reduction.
Patent Information
- Application Number
- CN202210962598.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-08-11
AI Technical Summary
In modern process industries, intermittent processes have attracted attention due to their high flexibility and strong applicability. However, due to the difficulty in establishing accurate mathematical models, existing control methods rely on models, resulting in a decrease in the robustness and convergence of the closed-loop system, and the system state Difficult to measure accurately, a model-free control method is required.
A non-strategic model-free output feedback optimal tracking control method is proposed. The system is described by a two-dimensional augmented state space equation including the output error, and the optimal controller gain based on the model is designed. The input-output sequence is introduced and non-strategic reinforcement is used. Learning technology avoids state observer design and only uses input and output data for learning to obtain optimal controller gain.
It effectively solves the problem of difficulty in establishing accurate models for intermittent processes, improves system performance, avoids dependence on models, and reduces costs. It ensures the rationality of the algorithm by analyzing unbiasedness and convergence, and achieves optimal tracking of the system. performance.
Smart Images

Figure CN115327904B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of industrial process control, and in particular relates to a two-dimensional intermittent process non-strategy model-free output feedback optimal tracking control method. Background Art
[0002] In order to balance environmental protection, improve production quality, production efficiency and market competitiveness, reduce production costs, and update production equipment to make it more automated, modern process industries have become more and more complex, making it difficult to establish an accurate mathematical model for them. However, intermittent processes are able to meet the market needs of modern society due to their high flexibility and strong applicability. In the face of the increasing demand for small-scale, high value-added products, intermittent processes have received more and more attention. In the early days, most industrial batch processes were manual or simple sequences, which led to people applying control methods in continuous processes to intermittent processes. Due to the repeatability of intermittent processes, iterative learning control was applied to intermittent processes. The controllers designed by the above methods all rely on models, which will cause the control performance of closed-loop systems, such as robustness and convergence, to decrease. It is difficult to establish a very accurate model in the actual production process, so it is necessary to use a model-free method to design controllers in intermittent processes.
[0003] Reinforcement learning is a branch of machine learning. After various scholars have made breakthroughs in the study of machine learning, reinforcement learning has also become a research hotspot. The algorithm proposed in this paper uses non-strategy technology in reinforcement learning to learn through the data generated by the real-time interaction between the "agent" and the environment. It can be better applied to actual production processes that are difficult to model. At the same time, due to the complexity of modern production processes, it is difficult to accurately measure the state of the system. Therefore, it is more hoped that the optimal control strategy of the system can be found through easily measurable output information. To this end, a non-strategy model-free output feedback optimal tracking control method for a two-dimensional intermittent process with unknown system dynamic information is studied, and the optimal controller gain is obtained by learning only using data. Summary of the invention
[0004] The present invention takes into account the case where the system dynamic information is unknown, and proposes a non-strategy model-free output feedback optimal tracking control method for intermittent processes. This method can effectively solve the problem that it is difficult to establish an accurate model for intermittent production processes. At the same time, only input and output data are used for control, avoiding the setting of a state observer. After multiple learning, the optimal controller gain is obtained, which can track the set value well and improve system performance.
[0005] The present invention is achieved through the following technical solutions:
[0006] The present invention adopts a two-dimensional augmented state space equation containing output errors to describe the two-dimensional intermittent process with unknown system dynamic information, then designs the optimal controller gain based on the model for subsequent comparison, then introduces the input and output sequence into the state, designs a new model-free control algorithm, and finally analyzes the proposed algorithm for unbiasedness and convergence. The algorithm proposed by the present invention can overcome the controller's dependence on the model, while avoiding the design of the state observer, using non-strategy reinforcement learning technology, efficiently utilizing data, and improving system performance.
[0007] Step 1: Describe the two-dimensional batch process control problem;
[0008] First, the state space of the batch process can be expressed as:
[0009]
[0010] Among them, x(k,p) represents the system state of the current batch at the current time, u(k,p) represents the control input of the system under the current batch at the current time, y(k,p) represents the system output of the current batch at the current time, k represents the time direction, and p represents the batch. In order to improve the stability of the system, the combination of the increment of the system state along the batch direction and the output error is used to represent the expanded state. According to equation (1), it can be specifically expressed as:
[0011]
[0012] In which, define Δ p θ(k,p)=θ(k,p)-θ(k,p-1) is the difference of variable θ along the batch direction;
[0013] In order to improve the tracking performance and degree of freedom of the system, the output error is expanded into the state, and the expanded state equation is expressed as:
[0014]
[0015] in, is the new state after expansion, e(k,p)=y r -y(k,p) is the expected output y r The error with the actual output y(k,p), r(k,p) = Δ p u(k,p) is the increment of control input,
[0016] represents the identity matrix of appropriate dimension;
[0017] A cost function form extremum problem is given to deal with the optimal tracking control problem.
[0018]
[0019] And control strategy
[0020] r(k,p)=K1X(k,p)+K2X(k+1,p-1) (5)
[0021] The function f(X(i,j),X(i+1,j-1),r(i,j)) takes the following quadratic form:
[0022]
[0023] Among them, Q y1 >0, Q y2 >0 and R>0 are user-defined weight matrices;
[0024] Step 2: Design the optimal controller for the two-dimensional batch process;
[0025] The quadratic function given by equation (4) can be defined as follows:
[0026]
[0027] Under the condition that the control strategy r(k,p) is controllable, the following two-dimensional cost function can be given:
[0028]
[0029] The Q function can be defined as:
[0030]
[0031] Further, equation (9) can be transformed into:
[0032]
[0033] in,
[0034]
[0035] At the optimal gain and There exists an optimal value function
[0036]
[0037] According to the Q function, the two-dimensional Bellman equation can be obtained:
[0038]
[0039] According to the optimality principle, let Get the optimal control strategy:
[0040]
[0041] in,
[0042] Step 3: Introduce easily measurable input and output sequence information;
[0043] When the system is observable, the system state can be represented by easily measurable input and output information:
[0044] X(k,p)=Mξ(k,p) (15)
[0045] in,
[0046] M=[M r M p M y ],
[0047]
[0048]
[0049]
[0050]
[0051]
[0052] And there is
[0053]
[0054]
[0055] Step 4: Design the output feedback optimal controller;
[0056] Based on the sequence information introduced in equation (15), a new control strategy is constructed:
[0057]
[0058] in,
[0059] After introducing easily measurable input and output information, equation (13) can be expressed as:
[0060]
[0061] in,
[0062]
[0063]
[0064] Based on the non-policy reinforcement learning algorithm, the target strategy r is introduced j (k,p) is used to learn the data generated by the behavior strategy r(k,p), and obtain:
[0065]
[0066] in,
[0067] After introducing the new strategy, the two-dimensional Bellman equation is as follows:
[0068]
[0069] According to the Kronecker product and the least squares principle, we can get:
[0070] θ j (k,p)L j+1 =ρ j (k,p) (20)
[0071] in,
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079]
[0080]
[0081] The controller gain is calculated as:
[0082]
[0083] In a two-dimensional system, the batch and time-direction data generated by the behavior strategy are collected and stored in θ respectively. j (k,p) and ρ j (k,p); then give an initial controller gain that can stabilize the system; use equations (20) and (21) to solve and The solution is stopped until the difference between the controller gains generated by two adjacent iterations is extremely small.
[0084] Step 5: Analyze the unbiasedness and convergence of the control algorithm;
[0085] In order to verify that the proposed algorithm is unbiased, the detection noise n(k,p) is introduced into the behavior strategy r(k,p), and the new state space is:
[0086]
[0087] The new two-dimensional Bellman equation is:
[0088]
[0089] Substituting equation (22) into equation (23), we have
[0090]
[0091]
[0092] Obviously, equation (24) is equivalent to equation (19), so the So, after the detection noise is introduced, the two-dimensional Bellman equation can be obtained There will be no bias, and thus the controller gain will not have any bias. Therefore, the proposed algorithm is unbiased.
[0093] To verify the convergence of the algorithm, first, the two-dimensional Bellman equation can be written as:
[0094]
[0095] Substituting equation (13) into equation (25) yields:
[0096]
[0097]
[0098]
[0099] Further available The iterative relationship of the matrix:
[0100]
[0101] in
[0102]
[0103] Obviously, and Therefore, when the initial iteration conditions are given and the number of iterations is approximately infinite, the solution of the Riccati equation is It can converge to the optimal solution. At the same time, due to the similar convergence trend of P matrix and H matrix, It can also converge to the optimal solution.
[0104] The advantages and effects of the present invention are:
[0105] The present invention aims at the complex problems that it is difficult to accurately model a two-dimensional intermittent process with unknown dynamic information and it is difficult to measure complete state information, and proposes a non-strategy model-free output feedback optimal tracking control method for a two-dimensional intermittent process. This invention utilizes input and output information that is easy to measure, and can effectively avoid the design of a state observer. It only uses data in the batch and time directions to design a controller when the dynamic information of the system is unknown, thus avoiding dependence on the model. At the same time, this invention adopts non-strategy reinforcement learning technology, which can efficiently utilize data, reduce costs and improve performance. The rationality of the proposed algorithm is guaranteed by analyzing the unbiasedness and convergence. BRIEF DESCRIPTION OF THE DRAWINGS
[0106] Figure 1 is the convergence process of the controller gain K1 matrix;
[0107] Figure 2 is the convergence process of the controller gain K2 matrix;
[0108] Figure 3 The control input curve under the algorithm proposed for this invention;
[0109] Figure 4 This is the output tracking curve under the algorithm proposed by the invention. DETAILED DESCRIPTION
[0110] In order to further illustrate the present invention, the present invention is described in detail below with reference to the accompanying drawings and examples, but they should not be construed as limiting the protection scope of the present invention.
[0111] Embodiment 1:
[0112] The injection molding process is a way to convert plastic particles into various products, which is a typical intermittent process. It has high production efficiency and stable production quality, meets the trend of industrial civilization towards high processing, and is mainly used in electronic products, automotive industrial products, construction engineering and anti-corrosion engineering. The filling stage is the first step in the injection molding process. The shorter the injection time, the higher the molding efficiency; therefore, it is very important to control the injection speed and valve opening. In this part, the algorithm proposed in the present invention is used to process these two parameters.
[0113] Based on a large number of experiments, the discrete input and output form between the injection speed and valve opening of the two-dimensional injection molding process is:
[0114]
[0115] Where y(z) and u(z) are the Z-transforms of the output and input, respectively, and z is the Z-transform factor. Equation (30) can be further written as:
[0116] y(k+1,p)=1.582y(k,p)-0.5916y(k-1,p)+1.69u(k,p)+1.419u(k-1,p) (31)
[0117] Define the state variable x(k,p)=[y(k,p) y(k-1,p) u(k-1,p)] T According to (1), we can get
[0118] In the simulation, the weight parameters Q1 = 20*diag[1 1 1 1], Q2 = 10*diag[1 1 1 1] and R = 1 are set. To verify the effectiveness of the proposed method, the Riccati equation is first used to solve the optimal P * Matrix, get the optimal controller gain of the dependent model; secondly, compare the controller gain generated by the proposed method with the former to determine the rationality of the proposed method. The optimal controller gain is as follows:
[0119]
[0120]
[0121] After multiple learnings, the controller gain generated by the proposed method is:
[0122]
[0123]
[0124] As shown in 1 and 2, as the number of batches increases, the controller gains K1 and K2 gradually converge to the optimum. Therefore, the optimization effect of this method is better. The control input curve and output tracking curve obtained by the non-strategy model-free output feedback optimal tracking control method for two-dimensional intermittent processes are shown in Figure 3 , 4 As shown. Given the output setting value y r =40mm / s. It can be seen from the figure that with the increase of batch number, the tracking error gradually decreases and the tracking effect continues to improve.
[0125] In summary, the present invention aims at the complex problems that it is difficult to accurately model the two-dimensional intermittent process with unknown dynamic information and it is difficult to measure the complete state information, and proposes a non-strategy model-free output feedback optimal tracking control method for the two-dimensional intermittent process; this invention utilizes the input and output information that is easy to measure, and can effectively avoid the design of the state observer, and only uses the data in the batch direction and the time direction to design the controller when the dynamic information of the system is unknown, thus avoiding the dependence on the model; at the same time, this invention adopts the non-strategy reinforcement learning technology, which can efficiently utilize the data, reduce the cost and improve the performance; by analyzing the unbiasedness and convergence, the rationality of the proposed algorithm is guaranteed.
[0126] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. The optimal tracking control method of non-strategy model-free output feedback for two-dimensional intermittent process, the specific steps are as follows: Step 1: Describe the two-dimensional batch process control problem; First, the state space of the batch process can be expressed as: in, x(k,p) represents the system state of the current batch at the current time, u(k,p) represents the control input of the system under the current batch at the current time, y(k,p) represents the system output of the current batch at the current time, k represents the time direction, p represents the batch, A, B and C are the system matrix, input matrix and output matrix with appropriate dimensions respectively; In order to improve the stability of the system, the combination of the increment of the system state along the batch direction and the output error is used to represent the expanded state. According to equation (1), it can be specifically expressed as: In which, define Δ p θ(k,p)=θ(k,p)-θ(k,p-1) is the difference of variable θ along the batch direction; In order to improve the tracking performance and degree of freedom of the system, the output error is expanded into the state, and the expanded state equation is expressed as: in, is the new state after expansion, e(k,p)=y r -y(k,p) is the expected output y r The error with the actual output y(k,p), r(k,p) = Δ p u(k,p) is the increment of control input, Y(k,p)=Δ p y(k,p), I represents the identity matrix of appropriate dimension; A cost function form extremum problem is given to deal with the optimal tracking control problem. Among them, i represents the time direction, j represents the batch direction, and the control strategy r(k,p)=K 1 X(k,p)+K 2 X(k+1,p-1) (5) Among them, K 1 represents the control gain of the system at time k for batch p, K 2 is the control gain of the p-1 batch of the system at time k+1; The function f(X(i,j),X(i+1,j-1),r(i,j)) takes the following quadratic form: in, and R>0 is a user-defined weighting matrix; Step 2: Design the optimal controller for the two-dimensional batch process; The quadratic function given by equation (4) can be defined as follows: Under the condition that the control strategy r(k,p) is controllable, the following two-dimensional cost function can be given: The Q function can be defined as: Further, equation (9) can be transformed into: in, At the optimal gain and There exists an optimal value function And the optimal Q function Q * (X(k,p),X(k+1,p-1),r(k,p)), comparing the relationship between the two, we can get According to the Q function, the two-dimensional Bellman equation can be obtained: According to the optimality principle, let The optimal control strategy is obtained: in, Step 3: Introduce easily measurable input and output sequence information; When the system is observable, the system state can be represented by easily measurable input and output information: X(k,p)=Mξ(k,p)(16) Where M = [M r M p M y , And there is Step 4: Design the output feedback optimal controller; Based on the sequence information introduced in equation (16), a new control strategy is constructed: in, After introducing easily measurable input and output information, equation (14) can be expressed as: in, M * =(M T M) -1 M T ; Based on the non-policy reinforcement learning algorithm, the target strategy r is introduced j (k,p) is used to learn the data generated by the behavior strategy r(k,p), and obtain: in, After introducing the new strategy, the two-dimensional Bellman equation is as follows: According to the Kronecker product and the least squares principle, we can get: i j (k,p)L j+1 =ρ j (k,p) (21) in, ρ j (k,p)X T (k,p)Q 1 X(k,p)+X T (k+1,p-1)Q 2 X(k+1,p-1)+r(k,p) T Rr(k,p), The controller gain is calculated as: Step 5: Analyze the unbiasedness and convergence of the control algorithm; Introducing detection noise n(k,p) into the behavior strategy r(k,p), regardless of whether the detection noise is 0, equation (20) is solved to unchanged, therefore, the proposed algorithm is unbiased; When the initial iteration conditions are given and the number of iterations is approximately infinite, the solution of the Riccati equation is It can converge to the optimal solution. At the same time, due to the similar convergence trend of P matrix and H matrix, It can also converge to the optimal solution.
