Liquid level control system and method
By adopting the predictive iterative learning control model in the liquid level control system and combining the predictive control and iterative learning methods, the problem of data attenuation in the networked system is solved, and the accuracy and system performance of the liquid level control are improved.
Patent Information
- Application Number
- CN202411099205.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-12
AI Technical Summary
In complex batch process liquid level control systems, conventional PID control strategies are difficult to achieve efficient and accurate liquid level control, especially in networked systems where data attenuation problems exist, affecting controller performance.
A liquid level control system based on a predictive iterative learning control model is used to obtain liquid level data in real time through sensors. A linear data model is used to establish a nonlinear mechanism model. The predictive control and iterative learning methods are combined to generate liquid level control instructions and reduce the impact of data attenuation on control. impact on device performance.
It improves the accuracy of liquid level control, enhances the control effect of the networked system, and enables high-precision liquid level tracking in the presence of data attenuation.
Smart Images

Figure CN118760247A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of liquid level control technology, and in particular to a liquid level control system and method. Background Art
[0002] Liquid level control is of irreplaceable importance in industrial systems. It can improve production efficiency and safety and is widely used in industries such as iron and steel metallurgy, petrochemicals, food processing, and solution filtration. For a type of complex batch process liquid level control system, it is difficult to achieve a good control effect using conventional PID control strategies, which has become an important factor affecting the production quality and economic benefits of enterprises. Therefore, the study of advanced liquid level control methods and strategies is of great significance to ensure the rationality, efficiency, and safety of industrial processes.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] In view of this, the embodiments of the present application at least provide a liquid level control system and method, which reduces the adverse effect of data attenuation problems existing in network system transmission on controller performance and improves the accuracy of liquid level control.
[0005] This application mainly includes the following aspects: In a first aspect, an embodiment of the present application provides a liquid level control system, the liquid level control system comprising a controller, an actuator and a sensor, the sensor being mounted on the surface of the liquid or water tank, the controller being communicatively connected with the sensor and the actuator respectively through a communication network; wherein, The sensor is used to obtain the liquid level data of the liquid in the water tank in real time and send the liquid level data to the controller; The controller is used to analyze the received liquid level data based on the predictive iterative learning control model to obtain a liquid level control result, generate a liquid level control instruction according to the liquid level control result, and send the liquid level control instruction to the actuator; the predictive iterative learning control model is a predictive model established along the iteration axis based on a linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank; The actuator is used to control the liquid level of the liquid in the water tank according to the received liquid level control instruction.
[0006] In a second aspect, an embodiment of the present application further provides a liquid level control method, the liquid level control method comprising: Receive the liquid level data of the liquid in the water tank sent by the sensor in real time; Analyzing the received liquid level data based on the predictive iterative learning control model to obtain a liquid level control result, generating a liquid level control instruction according to the liquid level control result, and sending the liquid level control instruction to the actuator so that the actuator controls the liquid level of the liquid in the water tank according to the received liquid level control instruction; The predictive iterative learning control model is a predictive model established along an iteration axis based on a linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank.
[0007] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the liquid level control method described in the second aspect.
[0008] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the liquid level control method described in the second aspect are executed.
[0009] The liquid level control system and method provided in the embodiment of the present application analyzes the received liquid level data based on the predictive iterative learning control model to obtain the liquid level control result, generates the liquid level control instruction according to the liquid level control result, and sends the liquid level control instruction to the actuator so that the actuator controls the liquid level of the liquid in the water tank according to the received liquid level control instruction, wherein the predictive iterative learning control model is a predictive model established along the iteration axis based on the linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank. In this way, the present application is aimed at a networked liquid level control system with repeated operation characteristics, and by combining predictive control and iterative learning control methods, the adverse effect of the data attenuation problem existing in the transmission of the networked system on the controller performance is reduced, and the accuracy of the liquid level control is improved.
[0010] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0012] Figure 1 A schematic diagram of the structure of a liquid level control system provided in an embodiment of the present application is shown; Figure 2 A schematic diagram of the liquid level curve of the water tank at the 3rd, 15th, and 40th iterations is shown; Figure 3 A schematic diagram of a curve showing the maximum tracking error position of PILC along the iteration axis; Figure 4 A schematic diagram of a curve showing the maximum tracking error of PILC along the iteration axis under different fading channel means is shown; Figure 5 A schematic diagram of a curve showing the maximum tracking error of PILC along the iteration axis under different fading channel variances is shown; Figure 6 A schematic diagram showing the effect of comparing PILC and PID in tracking the water tank level; Figure 7 The schematic diagram of the effect of comparing the control quantity of PILC and PID is shown; Figure 8 A flow chart of a liquid level control method provided in an embodiment of the present application is shown; Fig. 9 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0013] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0014] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0015] In order to enable those skilled in the art to use the contents of this application, the following implementation methods are given in combination with the specific application scenario "liquid level control". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.
[0016] The following methods, devices, electronic devices or computer-readable storage media of the embodiments of the present application can be applied to any scenario requiring liquid level control. The embodiments of the present application are not limited to specific application scenarios. Any scheme using the liquid level control system and method provided by the embodiments of the present application is within the scope of protection of the present application.
[0017] It is worth noting that before this application was filed, liquid level control has irreplaceable importance in industrial systems. It can improve production efficiency and safety and is widely used in industries such as steel metallurgy, petrochemicals, food processing, and solution filtration. For a class of complex batch process liquid level control systems, it is difficult to achieve good control effects using conventional PID control strategies, which has become an important factor affecting the production quality and economic benefits of enterprises. Therefore, the study of advanced liquid level control methods and strategies is of great significance to ensure the rationality, efficiency, and safety of industrial processes.
[0018] In recent years, more and more scholars have applied some advanced control strategies to liquid level control in traditional process systems and achieved satisfactory control effects. Without the need to establish an accurate model for water tank level control, an online fuzzy adaptive PID control with good stability and robustness was designed by combining the host computer and the programmable controller. In order to further improve the performance of the controller, fuzzy control and fuzzy integral control were introduced into the control scheme of the double-capacity water tank level, and the advantages and disadvantages of the two intelligent algorithms were analyzed. Also for the double-capacity water tank level control, Wang Junwei et al. designed a model predictive controller based on state equations, and verified through simulation that the designed method has more obvious advantages than the traditional PID controller. The above results can achieve good control effects in the point-to-point data transmission environment of the traditional process system, but the expansion of the scale of the physical system and the long-distance data transmission have made the limitations of the point-to-point transmission method increasingly exposed, and more and more modern industrial process control systems are designed as networked structures. There is still a lack of effective control methods for the limited communication resources and bandwidth of the network itself, as well as the attenuation channel problems caused by reflection, refraction and diffraction during the transmission process. Therefore, studying the compensation control method for the attenuated channel has important theoretical significance and practical value.
[0019] In industrial process systems, water pumps periodically deliver water from the pool to the water tank in batches, and control the water level in the water tank by the opening of the valve. This process has typical repetitive characteristics. For systems that run repeatedly in a limited time interval, iterative learning control only uses the error information and control information of the previous or previous actions to correct the current control input. Through the continuous repeated operation of the system, the actual output of the system can accurately track the expected reference trajectory. Iterative learning control has been widely used in many fields such as robots, trains, chemical processes, and multi-agents, and has achieved good control effects. In recent years, some results have been achieved in the application of iterative learning control to networked systems. For linear networked stochastic systems where both input and output data may experience data attenuation, Shen Dong corrected the transmission signal at a specific fading position and designed a P-type iterative learning controller using the corrected signal. For unknown nonlinear networked systems where data attenuation may occur, Bu Xuhui constructed event trigger conditions along the iteration domain and time domain in order to save communication resources in the iterative learning process, and proposed a model-free adaptive iterative learning control method (MFAILC) based on event triggering. The iterative controllers in the above studies are all driven and updated by the previous error information. Although they can improve the system performance during the repeated operation of the system, they do not take advantage of the network's characteristic of using data packets to transmit a large amount of data at a time. Predictive control is directly derived from the practical application of industrial process control, and is constantly improving and maturing in close integration with industrial applications. This control method can be divided into two parts: output prediction of the prediction model and prediction correction based on deviation. It can make full use of the characteristics of data packet transmission, use the latest data packet at the control end to calculate the multi-step prediction control quantity and package it for transmission to the actuator. Therefore, how to combine predictive control with iterative learning control, comprehensively consider the characteristics of networked liquid level control systems such as nonlinearity, large lag and large time constant, and design a predictive iterative learning controller that can solve the data attenuation problem in the system will be a technical difficulty of this study.
[0020] In response to the above problems, the embodiment of the present application analyzes the received liquid level data based on the predictive iterative learning control model to obtain the liquid level control result, generates the liquid level control instruction according to the liquid level control result, and sends the liquid level control instruction to the actuator, so that the actuator controls the liquid level of the liquid in the water tank according to the received liquid level control instruction, wherein the predictive iterative learning control model is a predictive model established along the iteration axis based on the linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank. In this way, the present application is aimed at a networked liquid level control system with repeated operation characteristics, and by combining predictive control and iterative learning control methods, the adverse effects of the data attenuation problem existing in the transmission of the networked system on the controller performance are reduced, and the accuracy of the liquid level control is improved.
[0021] To facilitate the understanding of the present application, the technical solution provided by the present application is described in detail below in conjunction with specific embodiments.
[0022] Figure 1 Schematic diagram of a liquid level control system 100 provided in an embodiment of the present application. Figure 1 As shown, the liquid level control system 100 provided in the embodiment of the present application includes a controller 110, an actuator 120 and a sensor 130. The sensor 130 is installed on the surface of the liquid or the water tank. The controller 110 is communicatively connected with the sensor 130 and the actuator 120 respectively through a communication network.
[0023] The sensor 130 is used to obtain the liquid level data of the liquid in the water tank in real time and send the liquid level data to the controller 110 .
[0024] The controller 110 is used to analyze the received liquid level data based on the predictive iterative learning control model to obtain a liquid level control result, generate a liquid level control instruction according to the liquid level control result, and send the liquid level control instruction to the actuator 120; the predictive iterative learning control model is a predictive model established along the iteration axis based on a linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank.
[0025] The actuator 120 is used to control the liquid level of the liquid in the water tank according to the received liquid level control instruction.
[0026] In the specific implementation, the networked liquid level control system 100 is mainly composed of three node components in structure, and these nodes work together to achieve accurate control of the liquid level. The first is the node composed of the sensor 130, which is installed on the surface of the liquid or container (such as a water tank) to monitor the liquid level changes in real time; the next is the control node, i.e. the controller 110, which is responsible for receiving and analyzing the data from the sensor 130; and the execution node, i.e. the actuator 120, which is specially designed to perform the corresponding control operation; in addition, the communication network can ensure that information can be smoothly transmitted between one node and another, forming a network covering the entire system.
[0027] It should be noted that the present application uses a predictive iterative learning control method to conduct theoretical and applied research on water tank liquid level control, and realizes high-precision liquid level tracking of a networked liquid level control system 100 in the presence of an attenuation channel on both the input and output sides. Specifically, first, the dynamic material balance relationship of the water tank is analyzed to establish its nonlinear mechanism model, and a dynamic linearization method is used to obtain its linear data model in the iteration domain. Then, a prediction model along the iteration axis is established based on the linear data model, and a predictive iterative learning control model is designed using the prediction information to achieve precise control of the water tank liquid level.
[0028] Here, the liquid level control system 100 has strong nonlinearity and hysteresis. When the system operating conditions change, the model-based control method will face huge challenges, while the model-free iterative learning control method can dynamically update the pseudo-partial derivatives of the system according to the input and output data of the system, thereby adapting to the changes in the control conditions. This application applies iterative learning control to a liquid level control system 100 with a large time constant and a large hysteresis for the first time. For a networked liquid level control system 100 with repeated operation characteristics, a predictive iterative learning control scheme is designed using only the system input and output data. The scheme includes a gain compensation part of the post-fading data, a predictive model of the iterative axis, and a learning control model driven by the predictive information to update. Specifically, by combining predictive control and iterative learning control methods, the adverse effects of the data attenuation problem existing in the transmission of the networked system on the performance of the controller 110 can be reduced, and the accuracy of the liquid level control can be improved.
[0029] It should be noted that, for the networked single-capacity water tank liquid level control system provided in the embodiment of the present application, the networked single-capacity water tank liquid level control system 100 is mainly composed of a water tank, a water tank, a weight sensor 130 (upper weight sensor, lower weight sensor), a controller 110 (such as a host computer) and an actuator 120 (such as a peristaltic pump), wherein the sensor 130, the controller 110 and the actuator 120 are connected via a network. Specifically, the networked single-capacity water tank liquid level control system may include a water inlet 1, an upper water tank, an upper weight sensor, a water inlet 2, a lower water tank, a lower weight sensor, a water reservoir, a water pumping port, a data transmission interface, a peristaltic pump and a host computer. Among them, the amount of water flowing in through the lower water inlet is , is the system input, and the outflow at the outlet is , the controlled object is the liquid level ,Specifically, the mathematical model of a single capacity water tank is derived by analyzing the ,dynamic characteristics of the liquid level.
[0030] In a possible implementation manner, the controller 110 is specifically configured to establish the linear data model according to the following steps: The ideal dynamic characteristic differential equation of a single-capacity water tank is derived by analyzing the dynamic characteristics of the water tank liquid level; Transforming the ideal dynamic characteristic differential equation to obtain a water tank mathematical model of a continuous time system; The water tank mathematical model is expressed as a discrete time system model, and a nonlinear system model is obtained by introducing an iteration index; The nonlinear system model is used to obtain the linear data model.
[0031] In a possible implementation manner, the ideal dynamic characteristic differential equation is: Formula (1); Formula (2); in, is the cross-sectional area of the water tank, is the water inflow from the lower water inlet of the water tank, is the outflow from the water tank outlet, is the liquid level of the water tank, For time, is the liquid outflow rate in the water tank, is the cross-sectional area of the water tank outlet pipe, is the gravity coefficient.
[0032] Here, the ideal dynamic characteristic differential equation of a single-capacity water tank is established based on the dynamic material balance relationship. According to the small-hole Bernoulli equation, the water outflow rate in the water tank is satisfy , rewrite formula (1) as: Formula (3).
[0033] In a possible implementation, the water tank mathematical model is: , the discrete-time system model is , the nonlinear system model is , the linear data model is ; in, , , is the sampling time, is the iteration index, About and A nonlinear function of , is a time-varying parameter used to characterize the system. Secondary system operation Parameters of the time system; is a non-negative constant, The representation system has a finite input, and the output of the system is also finite. Different actual systems Has different values.
[0034] In the specific implementation, , , are the output and input of the system respectively, then formula (3) can be expressed as Formula (4). Then, the “method of discretization with zero-order holder” is adopted, that is, the instantaneous value of the variable at the sampling time is used as its sampling value in the sampling period, and the water tank model of the continuous time system - Formula (4) is expressed as a discrete time system model: Formula (5); where is the sampling time. Considering the repeated operation characteristics of the system, formula (5) can be improved by introducing the iteration index , Expressed as Formula (6), record About and The nonlinear function of .
[0035] Before using the dynamic linearization method, it is determined whether formula (6) satisfies the following assumptions: Assumption 1 right has continuous partial derivatives.
[0036] Assumption 2 System (5) satisfies the generalized Lipschitz condition along the iteration axis. For any , , if there is ,but , in, is a positive constant value, , .
[0037] For the actual liquid level system, the control input energy of the system is bounded and easy to determine right The partial derivative of is continuous, and assumptions 1 and 2 are easily satisfied. Therefore, the nonlinear system model can be converted into the following linear data model using the dynamic linearization method: , formula (7), in , is a non-negative constant.
[0038] In a possible implementation, for attenuation channel model construction, Figure 2 Shows the networked system using the network to transmit output data and control data The present application comprehensively considers the problem of attenuation channels that may exist on both the input side and the output side. The existence of attenuation channels causes a multiplicative attenuation damage to the data during the propagation process. Therefore, the two multiplicative random variables , are used to describe the effect of the attenuation channel on the system output and control data The system output after fading and control data They are defined as: Formula (8); Formula (9); in, are the fading coefficients of independent and identically distributed Gaussian random variables, and their expectations are defined as: , the variance can be expressed as: , assuming that the mean and variance of the fading coefficients are known. , are two random white noise sequences with zero expectation.
[0039] In a possible implementation manner, the controller 110 is specifically configured to establish the predictive iterative learning control model according to the following steps: Determining a tracking error model based on the linear data model; Determining a predictive control algorithm model according to the tracking error model; According to the predictive control algorithm model, determining a pseudo partial derivative prediction algorithm model; The pseudo partial derivative prediction algorithm model is determined as the prediction iterative learning control model.
[0040] In a possible implementation, the tracking error model is: ; in, is the expected trajectory, For the The output of times , , for The estimated value of .
[0041] In the specific implementation, for the establishment of the predictive iterative learning control model, the prediction model is designed first. Specifically, the tracking error is defined as ,in is the expected trajectory. According to formula (7), The output can be expressed as Formula (10); In which, the expected trajectory is subtracted from both sides of formula (10) , then Second and The relationship between the tracking errors of the iterations is shown as follows: Formula (11); Since (11) It is unknown, remember for The estimated value of Representative Second system operation The parameters of the system at the moment, then formula (11) can be expressed as Formula (12).
[0042] Furthermore, based on formula (12), The step-by-step iterative prediction model is as follows: Formula (13); in, express Forward Prediction It is worth noting that in formula (13) and In the The iteration is unknown. Respectively represent , , , Second system operation Parameters of the time system.
[0043] Here, the definition , , Then the last line of formula (13) It can be expressed as the following vector form, Formula (14).
[0044] In a possible implementation manner, the controller 110 is specifically configured to determine the predictive control algorithm model according to the following steps: For a given tracking target , the control objective is to design an appropriate control input The system tracking error exist Converges to Using the prediction model formula (14), the designed cost function is Formula (15), using the optimization condition ,but can be expressed as Formula (16).
[0045] in, is the weighting factor, is the step factor. Here, due to the existence of the fading channel on the output side, Not available, but the controller 110 can obtain the measured value after fading , after gain compensation, the corrected system output is obtained .so quilt replace. Expressed as Using formula (16), based on the rolling optimization principle, only The first predicted value in drives the control input along the iteration axis Update, a predictive iterative learning control scheme is proposed as Formula (17); in, is a selection matrix. Similarly, considering the existence of the fading channel on the input side of the system, the control signal calculated by the controller 110 is is not available, use the corrected control signal Acting on water tank .
[0046] In a possible implementation manner, the controller 110 is specifically configured to determine the pseudo partial derivative prediction algorithm model according to the following steps: It can be seen from formula (16) that the key to designing the predictive controller 110 is to calculate the value of the pseudo partial derivative. Therefore, the pseudo partial derivative is estimated using the following parameter estimation criterion function. The estimation criterion function of the pseudo partial derivative is: Formula (18), where As described in formula (18), it is a typical quadratic function. The independent variables included in the function are , and ; Use optimized conditions , Characterizing quadratic index functions about Find the partial derivative, then can be expressed as: Formula (19); ,if or Formula (20); in, is the weight factor, is the step size factor, is a very small constant value. yes Using the estimation algorithm formula (21), we can get the The pseudo partial derivative estimate before is thus used , we can build an autoregressive model to predict The pseudo-partial derivative estimate of Formula (21); in, is the unknown coefficient ( , ), is the intrinsic order of the model. By definition , , formula (21) can be rewritten as Formula (22).
[0047] here, The unknown coefficients A vector composed of has no actual physical meaning. It can be determined by the following projection algorithm: Formula (23); ,if , in, and is a known non-negative constant, the initial value can be chosen to be a bounded constant vector, is a constant. Using formulas (21)-(23), the It can be obtained that the proposed predictive iterative learning control model is designed, where Is Estimated value of The vector composed of Indicates system parameters exist Run Estimated value of the moment.
[0048] In a possible implementation, the controller 110 is also used to compare the control effects of the predictive iterative learning control model and the traditional PID algorithm model on the liquid level using a comprehensive liquid level control experimental system, so as to determine the effectiveness of the predictive iterative learning control model through experimental verification.
[0049] In the specific implementation, the superiority of the proposed algorithm was verified by comparing it with the PID algorithm on the LC-T2 platform. The input side and output side of the system and the attenuation gain are selected as , The desired trajectory is set to a sine signal with an amplitude of 100 and a period of 300 seconds. , the running time of each iteration is 150 seconds, and the sampling interval is 0.1 seconds. The cross-sectional area of the water tank 154 , the cross-sectional area of the outlet pipe 0.5 , the initial water level of each iteration The parameters of the predictive iterative learning controller used in the embodiment of the present application are selected as follows: , , , , , The parameters in the pseudo partial derivative prediction algorithm formulas (21)-(23) are set as: , , , , ;in, is the step size factor, which is used to control the change of input quantity. It is introduced to make the algorithm flexible; is a positive number, which is set up to prevent the denominator from being zero; Is a small positive number that resets the estimated parameter When the sign of the controlled parameter is inconsistent with the sign of the initial value of the estimated parameter or the estimated value of the estimated parameter itself is small; is a normal value, used to ensure that the denominator in formula (23) is not zero; Is a constant value used to reset , that is, when the controlled parameter exceeds 20, Reset to .
[0050] Figure 2The figure shows the curve diagram of the liquid level of the water tank at the 3rd, 15th and 40th iterations. Figure 3 A schematic diagram showing the maximum tracking error of PILC along the iteration axis, Figure 4 The graph shows the maximum tracking error of PILC along the iteration axis under different fading channel means. Figure 5 The maximum tracking error of PILC along the iteration axis under different fading channel variances is shown in FIG. Figure 2 When there are attenuation channels on both the input and output sides of the system, the PILC algorithm is used. The liquid level of the system at the 3rd, 15th, and 40th iterations. To further analyze the performance of the PILC controller designed under different attenuation channels, three different values are selected from the mean and variance for experiments. For the mean, set They are 0.95, 0.85, 0.75 respectively, and the variance is fixed The corresponding maximum tracking error is Figure 4 shown. Figure 4 It shows that the smaller the mean value, the worse the data quality and the worse the tracking effect of the controller, but the maximum error can still converge to a suitable interval as the number of iterations increases. For the variance, let They are 0.1, 0.2, 0.4 respectively, and the mean is fixed ,in, is the variance of the attenuation gain on the output side, is the attenuation gain variance on the input side, is the mean value of the attenuation gain on the output side, is the mean attenuation gain on the input side. Figure 5 The maximum tracking error curve of the system under different variances. It can be found that a smaller variance indicates that the fading effect of communication is relatively deterministic and the designed controller can work effectively.
[0051] In order to illustrate the superiority of the proposed PILC algorithm over the traditional PID algorithm, a comparative experiment was conducted in the presence of a decay channel in the system. The PID controller used is shown in the following formula, and the controller parameters are , .
[0052] here, Figure 6 The schematic diagram shows the effect of PILC and PID in tracking the water tank level. Figure 7 The following figure shows the effect of PILC and PID control quantity comparison (a, b systems have attenuation channels; c, d systems do not have attenuation channels). The comparison of the tracking effect of the system on the desired tank level at the 40th iteration using the PILC algorithm and the tracking effect of the system on the desired trajectory using the PID algorithm is shown in Figure 2. Figure 6shown. Figure 6 It shows that the traditional PID algorithm cannot have a good control effect on a nonlinear system with a large time constant and large lag, such as a water tank. There is a large lag in the control of the liquid level of the water tank, and the PILC algorithm can improve the control effect by eliminating the lag through learning. The existence of the attenuation channel in the networked water tank level control system will cause the accuracy of the measured liquid level received by the controller and the control signal received by the actuator to decrease, and this data attenuation will cause a sudden change in the motor speed, which will greatly endanger the service life of the motor and even affect the stable operation of the motor. Figure 7 (a), (b), (c), and (d) show the changes in motor speed of the proposed PILC algorithm and the traditional PID algorithm in the two scenarios where the system has an attenuation channel and the system does not have an attenuation channel. From (a) and (b), it can be seen that when the system has an attenuation channel, the random decrease in data quality on the input and output sides of the traditional PID algorithm causes large speed fluctuations, which will greatly damage the actuator. The small fluctuations of the PILC algorithm are acceptable in engineering and can achieve stable control. As for (c) and (d), it can be seen that when the system does not have an attenuation channel, the motor speed of the PID is smooth, but there is a lag, and the system cannot respond immediately. Therefore, overall, the PILC control strategy is significantly better than the PID control strategy.
[0053] It should be noted that the effectiveness of the method was verified by comparative experiments using the liquid level control comprehensive experimental system LC-T2. The experimental results show that the predictive iterative learning control method provided by the present application can eliminate hysteresis through learning and achieve precise tracking compared to traditional PID. And in the case of the existence of an attenuation channel in the system, the random decline in the quality of input and output data causes large fluctuations in the speed of the PID algorithm, which will greatly damage the actuator. The predictive iterative learning algorithm can ensure that small fluctuations in the speed are acceptable in engineering and can achieve stable control. Therefore, in a networked liquid level control system with attenuation channels on both the input and output sides, the predictive iterative learning control method provided by the embodiment of the present application has more excellent control performance than traditional PID control.
[0054] Here, in order to solve the problem of attenuation channels on the input and output sides of the networked liquid level control system, the embodiment of the present application proposes a predictive iterative learning control method. This solution only uses the system input and output data, fully utilizing the characteristics of the networked control system using data packets for transmission. The controller uses the latest data packets to predict the multi-step control quantity and transmit it to the actuator. The predicted information is used to track the liquid level, thus improving the application method of iterative learning control in the networked control system. The LC-T2 platform experiment verifies the stability and effectiveness of the proposed method for the networked liquid level control system.
[0055] Based on the same application concept, the embodiments of the present application also provide a liquid level control method corresponding to the liquid level control system provided in the above embodiments. Since the principle of solving the problem by the device in the embodiments of the present application is similar to the liquid level control system in the above embodiments of the present application, the implementation of the method can refer to the implementation of the method, and the repeated parts will not be repeated.
[0056] like Figure 8 As shown, Figure 8 A flow chart of a liquid level control method provided in an embodiment of the present application, the liquid level control method comprising the following steps: S801: receiving the liquid level data of the liquid in the water tank sent by the sensor in real time; S802: Analyze the received liquid level data based on the predictive iterative learning control model to obtain a liquid level control result, generate a liquid level control instruction according to the liquid level control result, and send the liquid level control instruction to the actuator, so that the actuator controls the liquid level of the liquid in the water tank according to the received liquid level control instruction; The predictive iterative learning control model is a predictive model established along an iteration axis based on a linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank.
[0057] Based on the same application concept, see Fig. 9 As shown, it is a schematic diagram of the structure of an electronic device 900 provided in an embodiment of the present application, including: a processor 910, a memory 920 and a bus 930, the memory 920 stores machine-readable instructions executable by the processor 910, when the electronic device 900 is running, the processor 910 and the memory 920 communicate through the bus 930, and the machine-readable instructions are executed by the processor 910 when running to perform the steps of the liquid level control method described in any of the above embodiments.
[0058] Based on the same application concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the liquid level control method provided in the above embodiment are executed.
[0059] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned liquid level control method can be executed. By combining predictive control and iterative learning control methods for a networked liquid level control system with repeated operation characteristics, the adverse effect of data attenuation problems existing in the transmission of the networked system on the controller performance is reduced, and the accuracy of liquid level control is improved.
[0060] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.
[0061] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0062] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0063] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0064] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0065] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0066] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A liquid level control system, characterized in that: The liquid level control system includes a controller, an actuator and a sensor, wherein the sensor is installed on the surface of the liquid or the water tank, and the controller is connected to the sensor and the actuator through a communication network; wherein, The sensor is used to obtain the liquid level data of the liquid in the water tank in real time and send the liquid level data to the controller; The controller is used to analyze the received liquid level data based on the predictive iterative learning control model to obtain a liquid level control result, generate a liquid level control instruction according to the liquid level control result, and send the liquid level control instruction to the actuator; the predictive iterative learning control model is a predictive model established along the iteration axis based on a linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank; The actuator is used to control the liquid level of the liquid in the water tank according to the received liquid level control instruction.
2. The liquid level control system according to claim 1, characterized in that: The controller is specifically used to establish the linear data model according to the following steps: The ideal dynamic characteristic differential equation of a single-capacity water tank is derived by analyzing the dynamic characteristics of the water tank liquid level; Transforming the ideal dynamic characteristic differential equation to obtain a water tank mathematical model of a continuous time system; The water tank mathematical model is expressed as a discrete time system model, and a nonlinear system model is obtained by introducing an iteration index; The nonlinear system model is used to obtain the linear data model.
3. The liquid level control system according to claim 2, characterized in that: The ideal dynamic characteristic differential equation is: ; in, , is the cross-sectional area of the water tank, is the water inflow from the lower water inlet of the water tank, is the outflow from the water tank outlet, is the liquid level of the water tank, For time, is the liquid outflow rate in the water tank, is the cross-sectional area of the water tank outlet pipe, is the gravity coefficient.
4. The liquid level control system according to claim 3, characterized in that: The mathematical model of the water tank is: , the discrete-time system model is , the nonlinear system model is , the linear data model is ; in, , , is the sampling time, is the iteration index, About and A nonlinear function of , is a non-negative constant.
5. The liquid level control system according to claim 4, characterized in that: The controller is specifically used to establish the predictive iterative learning control model according to the following steps: Determining a tracking error model based on the linear data model; Determining a predictive control algorithm model according to the tracking error model; According to the predictive control algorithm model, determining a pseudo partial derivative prediction algorithm model; The pseudo partial derivative prediction algorithm model is determined as the prediction iterative learning control model.
6. The liquid level control system according to claim 5, characterized in that: The tracking error model is: ; in, is the expected trajectory, For the The output of times , , for The estimated value of .
7. The liquid level control system according to claim 1, characterized in that: The controller is also used to compare the control effects of the predictive iterative learning control model and the traditional PID algorithm model on the liquid level using a comprehensive liquid level control experimental system, so as to determine the effectiveness of the predictive iterative learning control model through experimental verification.
8. A liquid level control method, characterized in that: A controller used in a liquid level control system according to any one of claims 1 to 7, wherein the liquid level control system further comprises an actuator and a sensor, wherein the sensor is mounted on a surface of a liquid or a water tank, and wherein the controller is respectively connected to the sensor and the actuator in communication via a communication network; and the liquid level control method comprises: Receive the liquid level data of the liquid in the water tank sent by the sensor in real time; Analyzing the received liquid level data based on the predictive iterative learning control model to obtain a liquid level control result, generating a liquid level control instruction according to the liquid level control result, and sending the liquid level control instruction to the actuator so that the actuator controls the liquid level of the liquid in the water tank according to the received liquid level control instruction; The predictive iterative learning control model is a predictive model established along an iteration axis based on a linear data model, and the linear data model is a nonlinear mechanism model established by analyzing the dynamic material balance relationship of the water tank.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the liquid level control method as described in claim 8.
10. 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 liquid level control method according to claim 8 are executed.
Citation Information
Patent Citations
Computing system and method for approximating predictive models and time-series values
WO2018213617A1
Method and device for controlling a wastewatertank pumping system
WO2020161624A1
