Iterative learning control method, device, equipment and medium for batch reactor

Through the iterative learning control method, using fuzzy logic system and adaptive parameter update, the problem of poor control accuracy of batch reactors is solved, adaptive control of nonlinear and uncertain dynamics is achieved, and control accuracy and productivity are improved.

CN114879500BActive Publication Date: 2024-10-22GUANGDONG POLYTECHNIC NORMAL UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210533565.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2024-10-22
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

Existing batch reactor control methods cannot effectively utilize historical data from repeated runs, resulting in poor control accuracy and inability to cope with non-affine nonlinear and uncertain dynamic characteristics.

Method used

Using the iterative learning control method, by establishing an adaptive iterative learning control law and a parameter update law, the fuzzy logic system and state vector sequence are used to successively estimate the control signal, update the adaptive parameters, gradually approach the ideal control sequence, and optimize the controller.

Benefits of technology

It improves the control accuracy of batch reactors, overcomes non-affine nonlinear and uncertain dynamic characteristics, simplifies the parameterized structure, reduces the amount of calculation and storage space, and adapts to changing running times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114879500B_ABST
    Figure CN114879500B_ABST
Patent Text Reader

Abstract

The present application relates to the field of automation technology, and discloses an iterative learning control method, device, equipment and medium for a batch reactor, wherein the method comprises: establishing a model of a batch reactor; based on the model of the batch reactor, obtaining the state of the batch reactor and obtaining a state vector sequence; establishing an adaptive iterative learning control law and an update law of the parameters of the adaptive iterative learning control law, and updating the adaptive iterative learning control law according to the update law of the parameters of the adaptive iterative learning control law; inputting the state vector sequence and the expected output sequence of the batch reactor into the adaptive iterative learning control law to obtain a control signal; applying the control signal to the model of the batch reactor to obtain the actual output sequence of the batch reactor in the current batch; judging whether the actual output sequence meets the accuracy requirement. The present application has the effect of optimizing the controller using historical data of repeated operation and high control accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automated control of chemical production, and in particular to an iterative learning control method, device, equipment and medium for a batch reactor. Background Art

[0002] Batch reactors are devices that carry out batch physical changes and chemical reactions in chemical production. Due to their wide application and importance in actual production processes, research on control methods of batch reactors has always attracted the attention of professional and technical personnel in the field of automation technology.

[0003] Due to the complexity and uncertainty of batch reactors and the environment, the mathematical model of batch reactors is often difficult to obtain accurately. It has the characteristics of non-affine nonlinearity, uncertain dynamics, unknown control direction, etc. At the same time, for the sake of operational safety and flexibility, the running time of each batch may be different, that is, the running time length has randomly varying. The traditional control method based on the system model cannot be directly applied to batch reactors, and cannot make good use of its repeated operation historical data to optimize its controller, resulting in unsatisfactory control effect and poor control accuracy.

[0004] With respect to the above-mentioned related technologies, the existing control method for batch reactors has the defect of being unable to make good use of historical data of repeated operations to optimize its controller, thus resulting in poor control accuracy. Summary of the invention

[0005] In order to solve the defect that the existing control method of batch reactor cannot well utilize the historical data of repeated operation to optimize the controller, thus resulting in poor control accuracy, the present application provides an iterative learning control method for a batch reactor.

[0006] In a first aspect, the present application provides an iterative learning control method for a batch reactor.

[0007] The present application is implemented by the following technical solution: an iterative learning control method for a batch reactor, comprising the following steps:

[0008] Step 1: Build a batch reactor model;

[0009] Step 2: Based on the model of the batch reactor, the state of the batch reactor is acquired to obtain a state vector sequence of the current batch of the batch reactor;

[0010] Step 3: Establish an adaptive iterative learning control law and an update law for the adaptive iterative learning control law parameters, and update the adaptive iterative learning control law according to the update law for the adaptive iterative learning control law parameters; wherein the expression of the adaptive iterative learning control law is:

[0011]

[0012] in, is the estimate of the adaptive parameter θ(t) when the batch reactor is run for the kth time, The update is performed by the update law of the adaptive iterative learning control law parameters; the adaptive parameter θ(t) is defined as θ(t) = ||W * (t)|| is a bounded time function, is the fuzzy parameter vector expected by the fuzzy logic system; S k (t) is the fuzzy basis function vector S k (x k (t),y d,k (t)) abbreviation, x k (t) is the state vector sequence, y d,k (t) is the expected output sequence, and ||S k (t)||=(S k (t)) T S k (t);

[0013] The adaptive iterative learning control law takes the state vector sequence and the expected output sequence of the batch reactor as input to obtain the control signal u k (t);

[0014] The update law of the adaptive iterative learning control law parameters is used to update the adaptive parameters For the u k (t) is updated, and the update law of the adaptive iterative learning control law parameters only considers T k ≤T d In this case, the calculation formula is:

[0015]

[0016] Among them, e k-1 (t+1) is the tracking error sequence of the system's k-1th operation, ||S k-1 (t)|| is the 2-norm of the fuzzy basis function vector at the k-1th run, γ is a constant, T k is the total time length of the kth operation of the batch reactor, T d is the total length of time the batch reactor is expected to operate;

[0017] Adaptive parameters for the current batch Adaptive parameters based on the last run batch and the tracking error function e of the last run batch k-1(t+1) is obtained to update the adaptive iterative learning control law of the current batch;

[0018] Step 4: inputting the state vector sequence and the expected output sequence of the batch reactor into the adaptive iterative learning control law to obtain a control signal;

[0019] Step 5: Applying the control signal to the model of the batch reactor to obtain the actual output sequence of the batch reactor in the current batch;

[0020] Step 6: Determine whether the actual output sequence meets the accuracy requirement; if not, enable the batch reactor to perform the next batch reaction, and return to execute steps 2 to 6 until the accuracy requirement is met; if so, stop iteration.

[0021] By adopting the above technical solution, the state information of the batch reactor is measured at each discrete time point to obtain the system state vector of the batch reactor; an adaptive iterative learning control law is established, and an update law of the adaptive iterative learning parameters is designed to update the adaptive iterative learning control law; the control signal generated by the adaptive iterative learning control law is applied to the batch reactor to obtain the actual output sequence of the batch reactor during the current batch operation time; the adaptive iterative learning controller is updated to form the control input of the next batch reactor; the current batch tracking error sequence of the batch reactor is established based on the actual output sequence and the expected output sequence; the error index is obtained based on the tracking error sequence to judge the approximation between the actual control sequence and the ideal control sequence and iterate continuously until the tracking error index is less than the allowable range. The update law of the adaptive iterative learning parameters is used to update the adaptive parameters in the adaptive iterative learning control law, and the adaptive parameters of the current batch are updated according to the adaptive parameters of the previous batch and the error index, thereby forming a new adaptive iterative learning control law, and then the optimized control signal of the current batch is obtained to perform the next iteration. This scheme uses the adaptive parameters and error function of the previous batch to optimize the control signal of the current batch to gradually approach the ideal control sequence. It can overcome the non-affine nonlinearity, multiple uncertain dynamics, unknown control direction and changing operating time of chemical process batch reactors, and use the historical data of repeated operation of batch reactors to optimize their controllers and improve control accuracy.

[0022] By adopting the above technical solution, the mathematical model of the batch reactor has non-affine nonlinearity, uncertain parameters and unknown control direction, and its ideal control sequence cannot be derived directly from the model. Using the measurable system state sequence x of the batch reactor k (t) and the expected output sequence y d,k (t), based on the fuzzy logic function, Perform successive estimation. When seeking the batch reactor control signal u k (t), without using the system model and parameter information, nor knowing the control direction of the system, the fuzzy logic system is used to calculate the state vector sequence x of the batch reactor. k (t) and the expected output sequence y d,k (t) is the input of the fuzzy logic system, and the input signal u of the current batch reactor can be obtained. k (t).

[0023] By adopting the above technical solution, considering that the system runs T each time k Random changes, in order to unify the adaptive parameters The domain of definition, application time point T k The information on compensation t∈{T k +1,T k +2,…,T d Missing at time value, solving the variable running time brings t∈{T k +1,T k +2,…,T d}The problem of missing information and inconsistent domain definition; adaptive iterative learning parameters based on the last run batch and the tracking error function e of the last run batch k-1 (t+1) Update adaptive parameters Implement successive iterations to update u k (t), thus successively approximating Improve tracking accuracy.

[0024] In a preferred example, the present application may be further configured as follows: the determining whether the actual output sequence meets the accuracy requirement comprises the following steps:

[0025] Establishing a tracking error sequence based on the actual output sequence and the expected output sequence;

[0026] Correcting the tracking error sequence;

[0027] An error index is obtained according to the tracking error sequence, and it is determined whether the error index is less than or equal to a preset value.

[0028] By adopting the above technical solution, a tracking error sequence is established by the difference between the actual output sequence and the expected output sequence, and then the maximum value of the tracking error sequence is used as the error index. The error index is compared with the preset value to determine whether the actual output sequence meets the accuracy requirement.

[0029] In a preferred example, the present application can be further configured as follows: the tracking error sequence is the difference between the actual output sequence and the expected output sequence, and the calculation formula is:

[0030] e k (t) = y k (t)-y d,k (t)

[0031] The method for correcting the tracking error sequence is:

[0032] Consider only T k ≤T d The situation, and the tracking error sequence at t∈{T k +1,T k +2,…,T d} to compensate for the missing information within the range of} to obtain the corrected tracking error sequence. The calculation formula at this time is:

[0033]

[0034] By adopting the above technical solution, considering that the system runs T each time k Random changes, in order to unify the tracking error sequence e k The domain of (t), the application time point T k The information on compensation t∈{T k +1,T k +2,…,T d Missing at time value, solving the variable running time brings t∈{T k +1,T k +2,…,T d}The problem of missing information and inconsistent domain definition is solved; the corrected tracking error sequence is obtained Through the corrected tracking error sequence, the error index can be calculated and whether the accuracy requirements are met can be determined.

[0035] In a preferred example, the present application may be further configured as follows: the error index is obtained according to the tracking error sequence, and the method for determining whether the error index meets the accuracy requirement is:

[0036] Calculate the maximum value of the tracking error sequence of the current batch and use it as the error indicator. The calculation formula is:

[0037]

[0038] Determine whether the error index is less than or equal to a preset value;

[0039] If yes, the accuracy requirement is met;

[0040] If not, the accuracy requirement is not met.

[0041] By adopting the above technical solution, the error index is the maximum value of the tracking error sequence of the current batch. According to whether the error index is less than or equal to the preset value, the approximation degree between the actual control sequence and the ideal control sequence is judged. When the error index is less than or equal to the preset value, the actual output sequence meets the accuracy requirement and the iteration is stopped. Otherwise, the adaptive parameters are updated. Further iterations are performed with new control signals.

[0042] In a preferred example, the present application can be further configured as follows: the batch reactor model is:

[0043]

[0044] Wherein, k represents the reaction batch of the batch reactor, t is the discrete sampling time point; x 1,k (t) and x 2,k (t) is the two system states of the batch reactor when the system is running for the kth time; d k (t) is the external disturbance during the k-th operation of the batch reactor, β 1 ,β 2 ,β 3 ,C α , g is a constant.

[0045] In a second aspect, the present application provides an iterative learning control device for a batch reactor.

[0046] The present application is realized by the following technical solution: an iterative learning control device for a batch reactor, comprising:

[0047] A modeling module for building models of batch reactors;

[0048] A state module, used for acquiring the state of the batch reactor based on the model of the batch reactor, and obtaining a state vector sequence of a current batch of the batch reactor;

[0049] An updating module is used to establish an adaptive iterative learning control law and an updating law of the adaptive iterative learning control law parameters; the adaptive iterative learning control law is updated according to the updating law of the adaptive iterative learning control law parameters; wherein the expression of the adaptive iterative learning control law is:

[0050]

[0051] in, is the estimate of the adaptive parameter θ(t) when the batch reactor is run for the kth time, The update is performed by the update law of the adaptive iterative learning control law parameters; the adaptive parameter θ(t) is defined as θ(t) = ||W * (t)|| is a bounded time function, is the fuzzy parameter vector expected by the fuzzy logic system; S k (t) is the fuzzy basis function vector S k (x k (t),y d,k (t)) abbreviation, x k (t) is the state vector sequence, y d,k (t) is the expected output sequence, and ||S k (t)||=(S k (t)) T S k (t);

[0052] The adaptive iterative learning control law takes the state vector sequence and the expected output sequence of the batch reactor as input to obtain the control signal u k (t);

[0053] The update law of the adaptive iterative learning control law parameters is used to update the adaptive parameters For the u k (t) is updated, and the update law of the adaptive iterative learning control law parameters only considers T k ≤T d In this case, the calculation formula is:

[0054]

[0055] Among them, e k-1 (t+1) is the tracking error sequence of the system's k-1th operation, ||S k-1 (t)|| is the 2-norm of the fuzzy basis function vector at the k-1th run, γ is a constant, T k is the total time length of the kth operation of the batch reactor, T d is the total length of time the batch reactor is expected to operate;

[0056] Adaptive parameters for the current batch Adaptive parameters based on the last run batch and the tracking error function e of the last run batch k-1 (t+1) is obtained to update the adaptive iterative learning control law of the current batch;

[0057] An input module, used for inputting the state vector sequence and the expected output sequence of the batch reactor into the adaptive iterative learning control law to obtain a control signal;

[0058] A control module, used for applying the control signal to the model of the batch reactor to obtain an actual output sequence of the batch reactor in the current batch;

[0059] The discrimination module is used to judge whether the actual output sequence meets the accuracy requirement; if not, the batch reactor is made to perform the next batch reaction, and the steps 2 to 6 are returned to be executed until the accuracy requirement is met; if it is met, the iteration is stopped.

[0060] In a third aspect, the present application provides a computer device.

[0061] The present application is implemented through the following technical solution: a computer device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the above-mentioned iterative learning control methods for batch reactors.

[0062] In a fourth aspect, the present application provides a computer-readable storage medium.

[0063] This application is achieved through the following technical solutions:

[0064] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the above-mentioned iterative learning control methods for a batch reactor.

[0065] In summary, the present application includes at least one of the following beneficial technical effects:

[0066] 1. Provide a batch reactor control method based on adaptive iterative learning. Compared with the control method based on the mathematical model of system-determined control direction, simplified parameterized structure and fixed operation time, this method can overcome the side effects of the non-affine nonlinearity, multiple uncertain dynamics, unknown control direction and variable operation time of chemical process batch reactors on control accuracy, maintain precise control accuracy and improve productivity;

[0067] 2. Batch reactor control method has only one adaptive parameter Compared with other adaptive iterative learning control methods, the number of parameters that need to be adaptively learned in each batch is greatly reduced, thereby greatly reducing the amount of calculation and storage space, making it easier to apply in practice. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A flowchart of an adaptive iterative learning controller is provided for an exemplary embodiment of the present application.

[0069] Figure 2A schematic diagram of an output error diagram under a batch reactor model provided for an exemplary embodiment of the present application.

[0070] Figure 3 A schematic diagram of the iteratively changing operating time length of a batch reactor provided for an exemplary embodiment of the present application.

[0071] Figure 4 A schematic diagram of the desired trajectory and system output with different iteration numbers provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0072] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but such modifications are protected by the patent law as long as they are within the scope of the claims of the present application.

[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0074] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0075] The following is combined with Figure 1-4 This application is described in further detail.

[0076] The present application embodiment discloses a batch reactor control method based on adaptive iterative learning. Figure 1 , including the following steps:

[0077] Step 1: Build a batch reactor model;

[0078] The batch reactor model is:

[0079]

[0080] Where k represents the reaction batch of the batch reactor, t is the discrete sampling time point; x 1,k (t) and x 2,k(t) is the batch reactor state when the system is running for the kth time; u k (t) is the system input, representing the coolant temperature of the batch reactor during the kth run; y k (t) is the actual output of the k-th run of the batch reactor, representing the actual reactant concentration of the k-th run of the batch reactor; d k (t) is the external disturbance during the k-th operation of the batch reactor, β 1 ,β 2 ,β 3 ,C α , g is the system parameter.

[0081] In this embodiment, the system parameters are selected as follows: β 1 =28.5,β 2 =21.5,β 3 =25.2,C α =0.036, g is 1; the expected output sequence is y d,k (t), the expected output sequence length is t∈{0,1,2,…,T d}, where T d is the expected operating time length of the batch reactor; the expected output sequence of the batch reactor in this embodiment is: Where m(k)∈[0,1] is a random function of the number of system runs k, that is, the expected output sequence of the batch reactor is not strictly repeated in each run, and m(k) varies between 0 and 1.

[0082] Step 2: Based on the model of the batch reactor, the state of the batch reactor is obtained to obtain a state vector sequence of the current batch of the batch reactor;

[0083] The batch reactor status obtained is x 1,k (t) and x 2,k (t) to obtain the state vector sequence x of the batch reactor k (t).

[0084] Step 3: Establish an adaptive iterative learning control law and an update law for adaptive iterative learning control law parameters, and update the adaptive iterative learning control law according to the update law for adaptive iterative learning control law parameters;

[0085] For the batch reactor model, there is an ideal control sequence, which is expressed as follows:

[0086]

[0087] Among them, y d,k (t) is the expected output sequence of the batch reactor at the kth time, and S(x k(t),y d,k (t)) are the fuzzy parameter vector and the corresponding fuzzy basis function vector expected by the fuzzy logic system, μ k (t) is the estimation error.

[0088] Due to the unknown non-affine nonlinear characteristics of the system, uncertain system dynamics and unknown control direction, It cannot be obtained directly; according to the measurable system state sequence x of the batch reactor k (t) and the expected output sequence y d,k (t), can be based on the fuzzy logic function Perform successive estimates, expressed as in and S(x k (t),y d,k (t)) are the fuzzy parameter vector and the corresponding fuzzy basis function vector expected by the fuzzy logic system, respectively, and the estimated error μ k (t) is bounded and sufficiently small.

[0089] The adaptive iterative learning control law is:

[0090]

[0091] in, is the estimate of the parameter θ(t) during the k-th operation of the batch reactor, The control law parameters are updated by adaptive iterative learning; the parameter θ(t) is defined as θ(t) = ||W * (t)|| is a bounded time function; S k (t) is the fuzzy basis function vector S k (x k (t),y d,k (t)) and ||S k (t)||=(S k (t)) T S k (t); The adaptive iterative learning control law takes the state vector sequence and the expected output sequence of the batch reactor as input to obtain the control signal u k (t).

[0092] Finding the batch reactor control signal u k (t), without using the system model and parameter information, nor knowing the control direction of the system, the fuzzy logic system is used to calculate the state vector sequence x of the batch reactor. k (t) and the expected output y d,k (t) is the input of the fuzzy logic system, and the input signal u of the current batch reactor can be obtained. k(t). Furthermore, the norm of the fuzzy parameter vector is used to replace the vector itself θ(t) = || W * (t)|| performs iterative adaptive learning, which greatly reduces the amount of calculation and storage space, making it easier to apply in practice. Implement successive iterations to update u k (t), thus successively approximating Improve tracking accuracy.

[0093] The update law of adaptive iterative learning parameters is to update the adaptive parameters To u k (t) is updated, and the update law of the adaptive iterative learning parameters only considers T k ≤T d In this case, the calculation formula is:

[0094]

[0095] Among them, e k-1 (t+1) is the tracking error function of the system's k-1th operation, ||S k-1 (t)|| is the 2-norm of the fuzzy basis function vector at the k-1th run, γ is a constant, T k is the total time length of the kth operation of the batch reactor, T d is the total length of time the batch reactor is expected to operate;

[0096] The adaptive parameters of the current batch Adaptive iterative learning of parameters based on the last run batch and the tracking error function e of the last run batch k-1 (t+1) is obtained to update the adaptive iterative learning control law of the current batch. Considering that the system runs T k Random changes, in order to unify the adaptive parameters The domain of definition, application time point T k The information on compensation t∈{T k +1,T k +2,…,T d Missing at time value, solving the variable running time brings t∈{T k +1,T k +2,…,T d}The problem of missing information and inconsistent domain definition; by updating the adaptive parameters one by one Implement successive iterations to update u k (t), thus successively approximating Improve tracking accuracy.

[0097] Step 4: Input the state vector sequence and the expected output sequence of the batch reactor into the adaptive iterative learning control law to obtain a control signal;

[0098] Step 5: Apply the control signal to the model of the batch reactor to obtain the actual output sequence of the batch reactor in the current batch;

[0099] Step 6: Determine whether the actual output sequence meets the accuracy requirement; if not, make the batch reactor perform the next batch reaction, and return to execute steps 2 to 6 until the accuracy requirement is met; if so, stop the iteration.

[0100] Judging whether the actual output sequence meets the accuracy requirements includes the following steps:

[0101] Establishing a tracking error sequence based on the actual output sequence and the expected output sequence;

[0102] Correct the tracking error sequence;

[0103] An error index is obtained according to the tracking error sequence, and it is determined whether the error index is less than or equal to a preset value.

[0104] The tracking error sequence of the current batch of the batch reactor is:

[0105] e k (t) = y k (t)-y d,k (t)

[0106] The tracking error sequence is used to judge the degree of approximation between the actual control sequence and the ideal control sequence.

[0107] The duration of each batch reactor run is T k and the expected running time T d There may be two situations: 1) The actual running time of the system T k Less than the expected running time T d , then the actual output sequence y k (t), error sequence e k (t) = y k (t)-y d,k (t), state vector sequence x k (t) = [x 1,k (t),x 2,k (t)] T , control input sequence u k (t) and external interference sequence d k (t) At time t∈{T k +1,T k +2,…,T d} The above information is missing; 2) The actual running time of the system T k Greater than the expected running time T d , then t∈{T d +1,T d +2,…,T k}The information in time is reduced by t∈{0,1,2,…,T d The tracking error on} is meaningless and can be directly truncated and discarded, which is equivalent to T k =T d Therefore, we only need to consider the variable running time length case T k ≤T d , in line with actual production needs.

[0108] Update the tracking error sequence to:

[0109]

[0110] Where T k ≤T d .

[0111] Considering that the system runs T k Random changes, in order to unify the domain of the tracking error variable, apply the time point T k The tracking error on t∈{T k +1,T k +2,…,T d}The missing tracking error information at the time point solves the missing tracking error information and e caused by the running time of the transformation k (t) The problem of inconsistent domain definition is solved by obtaining the corrected tracking error sequence

[0112] Reference Figure 2 , the error index is:

[0113]

[0114] Where k represents the reaction batch of the batch reactor, k = 1 represents the first operation, and the value of k increases by 1 each time the system runs thereafter; t∈{2,3,…,T k} is the discrete sampling time point of the controlled system, and the duration of each operation is T k It is not fixed, but changes randomly with the number of operations k, which means that the system has a variable operation time. The batch operation time T of the batch reactor in this embodiment changes iteratively k The relationship between the number of runs k is Figure 3The error index is the maximum value of the tracking error sequence in the current batch. The approximation between the actual control sequence and the ideal control sequence is determined based on whether the error index is less than or equal to the preset value. When the error index is less than or equal to the preset value, the actual output sequence meets the accuracy requirement and the iteration is stopped. Otherwise, the adaptive parameters are updated. Further iterations are performed with new control signals.

[0115] Reference Figure 4 , comparing the actual output y of the batch reactor at the 50th, 100th and 200th iterations k (t) and the expected output y d,k (t), it can be seen that the tracking performance of the output trajectory of the batch reactor becomes better and better as the number of iterations increases.

[0116] The implementation principle of the embodiment is as follows: this embodiment obtains the expected output sequence of the batch reactor at each discrete time point; obtains the state information of the batch reactor to obtain the system state vector of the batch reactor; establishes an adaptive iterative learning control law, applies a fuzzy logic system to achieve the approximation of the ideal control signal of the batch reactor, and designs an update law for the adaptive iterative learning parameters; applies the control signal generated by the adaptive iterative learning control law to the batch reactor to obtain the actual reactant concentration sequence of the batch reactor during the current batch operation time; establishes the current batch tracking error sequence of the batch reactor, which is used to update the adaptive iterative learning controller to form the control input of the next batch reactor; and iterates continuously until the tracking error index is less than the allowable range and the iteration is stopped.

[0117] An embodiment of the present application also provides an iterative learning control device for a batch reactor.

[0118] The iterative learning control device of the batch reactor comprises:

[0119] A modeling module for building models of batch reactors;

[0120] A state module, used for obtaining the state of the batch reactor based on the model of the batch reactor, and obtaining a state vector sequence of the current batch of the batch reactor;

[0121] An updating module is used to establish an adaptive iterative learning control law and an updating law of adaptive iterative learning control law parameters; the adaptive iterative learning control law is updated according to the updating law of the adaptive iterative learning control law parameters; wherein the expression of the adaptive iterative learning control law is:

[0122]

[0123] in, is the estimate of the adaptive parameter θ(t) when the batch reactor is run for the kth time, The update is performed by the update law of the adaptive iterative learning control law parameters; the adaptive parameter θ(t) is defined as θ(t) = ||W * (t)|| is a bounded time function, is the fuzzy parameter vector expected by the fuzzy logic system; S k (t) is the fuzzy basis function vector S k (x k (t),y d,k (t)) abbreviation, x k (t) is the state vector sequence, y d,k (t) is the expected output sequence, and ||S k (t)||=(S k (t)) T S k (t);

[0124] The adaptive iterative learning control law takes the state vector sequence and the expected output sequence of the batch reactor as input to obtain the control signal u k (t);

[0125] The update law of the adaptive iterative learning control law parameters is used to update the adaptive parameters For the u k (t) is updated, and the update law of the adaptive iterative learning control law parameters only considers T k ≤T d In this case, the calculation formula is:

[0126]

[0127] Among them, e k-1 (t+1) is the tracking error sequence of the system's k-1th operation, ||S k-1 (t)|| is the 2-norm of the fuzzy basis function vector at the k-1th run, γ is a constant, T k is the total time length of the kth operation of the batch reactor, T d is the total length of time the batch reactor is expected to operate;

[0128] Adaptive parameters for the current batch Adaptive parameters based on the last run batch and the tracking error function e of the last run batch k-1 (t+1) is obtained to update the adaptive iterative learning control law of the current batch;

[0129] An input module, used for inputting a state vector sequence and a desired output sequence of a batch reactor into an adaptive iterative learning control law to obtain a control signal;

[0130] A control module, used for applying a control signal to a model of a batch reactor to obtain an actual output sequence of the batch reactor in a current batch;

[0131] The discrimination module is used to judge whether the actual output sequence meets the accuracy requirement; if not, the batch reactor is made to perform the next batch reaction and return to execute steps 2 to 6 until the accuracy requirement is met; if it is met, the iteration is stopped.

[0132] The specific definition of an iterative learning control device for a batch reactor can be found in the definition of an iterative learning control method for a batch reactor mentioned above, which will not be repeated here. Each module in the above-mentioned iterative learning control device for a batch reactor can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0133] In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, any of the above-mentioned iterative learning control methods for batch reactors is implemented.

[0134] In one embodiment, a computer-readable storage medium is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0135] Step 1: Build a batch reactor model;

[0136] Step 2: Based on the model of the batch reactor, the state of the batch reactor is obtained to obtain a state vector sequence of the current batch of the batch reactor;

[0137] Step 3: Establish an adaptive iterative learning control law and an update law for adaptive iterative learning control law parameters, and update the adaptive iterative learning control law according to the update law for adaptive iterative learning control law parameters; wherein the expression of the adaptive iterative learning control law is:

[0138]

[0139] in, is the estimate of the adaptive parameter θ(t) when the batch reactor is run for the kth time, The update is performed by the update law of the adaptive iterative learning control law parameters; the adaptive parameter θ(t) is defined as θ(t) = ||W * (t)|| is a bounded time function, is the fuzzy parameter vector expected by the fuzzy logic system; S k (t) is the fuzzy basis function vector S k (x k (t),y d,k (t)) abbreviation, x k (t) is the state vector sequence, y d,k (t) is the expected output sequence, and ||S k (t)||=(S k (t)) T S k (t);

[0140] The adaptive iterative learning control law takes the state vector sequence and the expected output sequence of the batch reactor as input to obtain the control signal u k (t);

[0141] The update law of the adaptive iterative learning control law parameters is used to update the adaptive parameters For the u k (t) is updated, and the update law of the adaptive iterative learning control law parameters only considers T k ≤T d In this case, the calculation formula is:

[0142]

[0143] Among them, e k-1 (t+1) is the tracking error sequence of the system's k-1th operation, ||S k-1 (t)|| is the 2-norm of the fuzzy basis function vector at the k-1th run, γ is a constant, T k is the total time length of the kth operation of the batch reactor, T d is the total length of time the batch reactor is expected to operate;

[0144] Adaptive parameters for the current batch Adaptive parameters based on the last run batch and the tracking error function e of the last run batch k-1 (t+1) is obtained to update the adaptive iterative learning control law of the current batch;

[0145] Step 4: Input the state vector sequence and the expected output sequence of the batch reactor into the adaptive iterative learning control law to obtain a control signal;

[0146] Step 5: Apply the control signal to the model of the batch reactor to obtain the actual output sequence of the batch reactor in the current batch;

[0147] Step 6: Determine whether the actual output sequence meets the accuracy requirement; if not, make the batch reactor perform the next batch reaction, and return to execute steps 2 to 6 until the accuracy requirement is met; if so, stop the iteration.

[0148] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0149] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.

[0150] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. An iterative learning control method for a batch reactor, characterized in that: The following steps are involved: Step 1: Build a batch reactor model; Step 2: Based on the model of the batch reactor, the state of the batch reactor is acquired to obtain a state vector sequence of the current batch of the batch reactor; Step 3: Establish an adaptive iterative learning control law and an update law for the adaptive iterative learning control law parameters, and update the adaptive iterative learning control law according to the update law for the adaptive iterative learning control law parameters; wherein the expression of the adaptive iterative learning control law is: in, is the estimate of the adaptive parameter θ(t) when the batch reactor is run for the kth time, The update is performed by the update law of the adaptive iterative learning control law parameters; the adaptive parameter θ(t) is defined as θ(t) = ‖W * (t)‖ is a bounded function of time, is the fuzzy parameter vector expected by the fuzzy logic system; S k (t) is the fuzzy basis function vector S k (x k (t),y d,k (t)) abbreviation, x k (t) is the state vector sequence, y d,k (t) is the expected output sequence, and ‖S k (t)‖=(S k (t)) T S k (t); The adaptive iterative learning control law takes the state vector sequence and the expected output sequence of the batch reactor as input to obtain the control signal u k (t); The update law of the adaptive iterative learning control law parameters is used to update the adaptive parameters For the u k (t) is updated, and the update law of the adaptive iterative learning control law parameters only considers T k ≤T d In this case, the calculation formula is: Among them, e k-1 (t+1) is the tracking error sequence of the system's k-1th operation, ||S k-1 (t)|| is the 2-norm of the fuzzy basis function vector at the k-1th run, γ is a constant, T k is the total time length of the kth operation of the batch reactor, T d is the total length of time the batch reactor is expected to operate; Adaptive parameters for the current batch Adaptive parameters based on the last run batch and the tracking error function e of the last run batch k-1 (t+1) is obtained to update the adaptive iterative learning control law of the current batch; Step 4: inputting the state vector sequence and the expected output sequence of the batch reactor into the adaptive iterative learning control law to obtain a control signal; Step 5: Applying the control signal to the model of the batch reactor to obtain the actual output sequence of the batch reactor in the current batch; Step 6: Determine whether the actual output sequence meets the accuracy requirement; if not, enable the batch reactor to perform the next batch reaction, and return to execute steps 2 to 6 until the accuracy requirement is met; if so, stop iteration.

2. The iterative learning control method for a batch reactor according to claim 1, characterized in that: Determining whether the actual output sequence meets the accuracy requirement comprises the following steps: Based on the actual output sequence y k (t) and the expected output sequence y d,k (t) Establish the tracking error sequence e k (t); Correcting the tracking error sequence; An error index is obtained according to the tracking error sequence, and it is determined whether the error index meets the accuracy requirement.

3. The iterative learning control method for a batch reactor according to claim 2, characterized in that: The tracking error sequence is the difference between the actual output sequence and the expected output sequence, and the calculation formula is: e k (t)=y k (t)-y d,k (t) The method for correcting the tracking error sequence is: Consider only T k ≤T d The situation, and the tracking error sequence at t∈{T k +1,T k +2,…,T d } to compensate for the missing information within the range of} to obtain the corrected tracking error sequence. The calculation formula at this time is:

4. The iterative learning control method for a batch reactor according to claim 3, characterized in that: The method of obtaining the error index according to the tracking error sequence and judging whether the error index meets the accuracy requirement is: Calculate the maximum value of the tracking error sequence of the current batch and use it as the error indicator. The calculation formula is: Determine whether the error index is less than or equal to a preset value; If yes, the accuracy requirement is met; If not, the accuracy requirement is not met.

5. The iterative learning control method for a batch reactor according to claim 1, characterized in that: The batch reactor model is: Wherein, k represents the reaction batch of the batch reactor, t is the discrete sampling time point; x 1,k (t) and x 2,k (t) are the two system states of the batch reactor when the system is running for the kth time; d k (t) is the external disturbance during the k-th operation of the batch reactor, β1, β2, β3, C α , g is a constant.

6. An iterative learning control device for a batch reactor, characterized in that: include: A modeling module for building models of batch reactors; A state module, used for acquiring the state of the batch reactor based on the model of the batch reactor, and obtaining a state vector sequence of a current batch of the batch reactor; An updating module is used to establish an adaptive iterative learning control law and an updating law of the adaptive iterative learning control law parameters; the adaptive iterative learning control law is updated according to the updating law of the adaptive iterative learning control law parameters; wherein the expression of the adaptive iterative learning control law is: in, is the estimate of the adaptive parameter θ(t) when the batch reactor is run for the kth time, The update is performed by the update law of the adaptive iterative learning control law parameters; the adaptive parameter θ(t) is defined as θ(t) = ||W * (t)|| is a bounded time function, is the fuzzy parameter vector expected by the fuzzy logic system; S k (t) is the fuzzy basis function vector S k (x k (t),y d,k (t)) abbreviation, x k (t) is the state vector sequence, y d,k (t) is the expected output sequence, and ||S k (t)||=(S k (t)) T S k (t); The adaptive iterative learning control law takes the state vector sequence and the expected output sequence of the batch reactor as input to obtain the control signal u k (t); The update law of the adaptive iterative learning control law parameters is used to update the adaptive parameters For the u k (t) is updated, and the update law of the adaptive iterative learning control law parameters only considers T k ≤T d In this case, the calculation formula is: Among them, e k-1 (t+1) is the tracking error sequence of the system's k-1th operation, ||S k-1 (t)|| is the 2-norm of the fuzzy basis function vector at the k-1th run, γ is a constant, T k is the total time length of the kth operation of the batch reactor, T d is the total length of time the batch reactor is expected to operate; Adaptive parameters for the current batch Adaptive parameters based on the last run batch and the tracking error function e of the last run batch k-1 (t+1) is obtained to update the adaptive iterative learning control law of the current batch; An input module, used for inputting the state vector sequence and the expected output sequence of the batch reactor into the adaptive iterative learning control law to obtain a control signal; A control module, used for applying the control signal to the model of the batch reactor to obtain an actual output sequence of the batch reactor in the current batch; The discrimination module is used to judge whether the actual output sequence meets the accuracy requirement; if not, the batch reactor is made to perform the next batch reaction, and the steps 2 to 6 are returned to be executed until the accuracy requirement is met; if it is met, the iteration is stopped.

7. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Chemical batch process fuzzy iterative learning control method

    CN108829058A

  • Self-adaptive optimal iterative learning control method based on data driving

    CN112255920A

  • Variable-batch-length iterative learning optimization control method for mobile robot

    WO2022088471A1