Adaptive predictive control method for gates based on gray box model

Through the gate adaptive predictive control method based on the gray box model, the problem of high computing resource consumption of the traditional channel operation control system is solved, efficient and stable water resources management is achieved, and labor costs are reduced.

CN117234083BActive Publication Date: 2024-10-22CHINA INST OF WATER RESOURCES & HYDROPOWER RES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311315737.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2024-10-22
Estimated Expiration
2043-10-11

AI Technical Summary

Technical Problem

The traditional channel operation control system relies on manual operation and is difficult to meet variable and precise irrigation needs. Moreover, the single-person, single-gate control mode makes it difficult to achieve efficient wheel irrigation. The black-box model consumes a lot of computing resources in channel control and is difficult to apply in large irrigation areas.

Method used

The adaptive predictive control method of the gate based on the gray box model is adopted. By constructing the gray box model of uncertainty interference, the lag time and parameters are identified, and the gate control objective function is optimized by combining the genetic algorithm to achieve intelligent control of the gate.

Benefits of technology

It effectively copes with the uncertainty disturbance in the long-distance water transportation process of channels, improves the efficiency of water resource allocation and management level, and reduces the labor cost of irrigation area management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117234083B_ABST
    Figure CN117234083B_ABST
Patent Text Reader

Abstract

The invention discloses a gate adaptive prediction control method based on a gray box model, which comprises S1 constructing a gray box model of uncertainty interference and performing time discretization processing on the model; S2 identifying the lag time and identification parameters in the discretized gray box model; S3 acquiring a verification set and inputting the verification set into the gray box model to obtain a prediction data set; S4 judging whether the prediction data set and the verification set meet the model accuracy, and if so, entering S5, otherwise returning to S2; S5 determining the diversion water level of the corresponding channel section based on an irrigation prescription map, and using the gray box model to predict the water level difference before the gate and the number of gate actions of the channel section under the diversion water level; S6 using the water level difference before the gate and the number of gate actions as inputs of a gate control objective function, and optimizing the gate control objective function; S7 using the optimized water level difference before the gate and the number of gate actions as control parameters of an integrated measurement and control gate, and starting the gate to output the irrigation amount in the irrigation prescription map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a gate control technology, and in particular to a gate adaptive prediction control method based on a gray box model. Background Art

[0002] The control goal of the channel water supply and distribution system is to provide stable water supply services to users or downstream channels. Water level control is a reliable method to ensure the stability of water supply and the safety of channel operation. The upstream, midstream and downstream of the channel section are used as water level control points. When users have water intake plans or downstream channels have water distribution needs, gate action is usually used as the control object to ensure the stability of the water level at the control point and provide efficient and safe water supply services. The traditional channel operation control system basically relies on manual operation. As scientific researchers gradually make irrigation area water demand plans variable, the traditional control method relying on manual operation is difficult to meet the needs of variable and precise irrigation. During the gate control process, due to the subjective experience of the operator, it is very easy to cause inaccurate water supply flow, and the control mode of one person and one gate is difficult to achieve efficient rotation irrigation.

[0003] With the rapid development of automation technology, the irrigation area gate group control system is developing towards intelligent automation operation, relying on technical support such as sensors, the Internet of Things and video surveillance. The core of irrigation area water supply and distribution channel control is the channel control algorithm, and the channel control model is the internal structure of the algorithm. The channel control algorithm mainly includes PI control algorithm, optimal control algorithm, model predictive control algorithm, robust control algorithm, etc. Channel control models include black box models represented by neural networks. Black box models have no clear model structure and model parameters. They are mostly based on the establishment of a multi-input single-output neural network structure as a model construction method. The model structure and parameters are predicted based solely on channel operation data. The advantage is that there is no need to obtain the channel physical structure parameters in advance and can cope with uncertain disturbances caused by meteorological conditions. The main disadvantage of using the black box model as a channel control model is the complexity of its operation process. There is a hidden layer in the neural network structure from input to output. During the channel operation process, the computing resources required to complete the model structure and parameter prediction from data acquisition to model structure and parameter prediction are huge, and it is usually difficult to provide huge computing resource support in large irrigation areas. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the gate adaptive predictive control method based on the gray box model provided by the present invention solves the problem that the existing channel control method needs to consume huge computing resources during regulation.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] A gate adaptive predictive control method based on a gray box model is provided, which comprises the following steps:

[0007] S1. For the irrigation area water supply and distribution system, a gray box model of uncertainty interference is constructed, and the gray box model is time discretized;

[0008] S2, according to the water level before the gate, the water level after the gate and the water level after the water diversion gate of each channel section, the parameter identification method is used to identify the lag time and identification parameters in the discretized gray box model;

[0009] S3, obtaining the water level before the gate, the water level after the gate and the water level after the diversion gate of each channel section at multiple times as a verification set, and inputting the verification set into the gray box model to obtain a prediction data set;

[0010] S4, determine whether the prediction data set and the validation set meet the model accuracy, if so, proceed to step S5, otherwise return to step S2;

[0011] S5, obtaining an irrigation prescription map of the irrigation area, and determining the diversion water level of the corresponding canal section based on the irrigation prescription map, and then using a gray box model to predict the water level difference before the gate and the number of gate operations of the canal section under the diversion water level;

[0012] S6, taking the water level difference before the gate and the number of gate operations as the input of the gate control objective function, and optimizing the gate control objective function by using a genetic algorithm to obtain the optimal water level difference before the gate and the number of gate operations;

[0013] S7. Use the optimal water level difference before the gate and the number of gate operations as the control parameters of the integrated measurement and control gate, and start the gate to output the irrigation amount in the irrigation prescription map.

[0014] Furthermore, the expression of the gray box model is:

[0015]

[0016] Where θ = [α i ,α i+1 ] T is the identification parameter; y i+1,u (t) is the upstream water level of the i+1th gate at time t; y i+1,d (t) is the downstream water level of the i+1th gate at time t; y i,u (t-τ i ) is t-τ i The upstream water level of the i-th gate at time y i,d (t-τ i ) is t-τ i The downstream water level of the i-th gate at time; p i (t-τ i ) is the t-τth i The opening of the gate at time i; p i+1 (t) is the opening of the i+1th gate at the tth time; τ iis the time required for water to flow from the i-th gate to the i+1-th gate; s i (t) and b i are the water intake and average leakage from the i-th gate to the i+1-th gate respectively;

[0017] The expression of the discretized gray box model is:

[0018]

[0019] Among them, y i+1,u (t+1) is the upstream water level of the i+1th gate at time t+1.

[0020] Furthermore, the gate control objective function is expressed as:

[0021]

[0022] x(k+1)=s(x(k),u(k),d(k))

[0023] g(x(k+1),u(k))≤b(k)

[0024] Among them, J(k) is the objective function; x(k) and x(k+1) are the gate water levels at the kth moment and the k+1th moment respectively; u(k) is the gate opening output at the kth moment; d(k) is the water diversion disturbance at the kth moment; b(k) is the gate action limit at the kth moment; f(.), s(.) and g(.) are the cost function, the function describing the system dynamics, and the constraint function respectively.

[0025] Furthermore, in step S2, a correlation coefficient calculation method is used to identify the lag time in the discretized gray box model, and a least square method is used to perform parameter identification on the discretized gray box model to obtain identification parameters.

[0026] Furthermore, the method of using the least square method to identify parameters of the discretized gray box model includes:

[0027] For any discrete random system, the least squares method description equation is:

[0028]

[0029] Among them, n a is the order of the system output term; a n b n are the coefficients that need to be identified for the system output and input items; n b is the order of the system input term; e(k) is the error disturbance term; z(k), z(k-1) and z(kn a ) are the kth, k-1th and knth discrete random systems respectively.a The observed values ​​(water level) of the output; u(k), u(k-1) and u(kn b ) are the kth, k-1th and knth discrete random systems respectively. b The input value of the time (gate opening);

[0030] The least squares format of input and output of discrete random systems:

[0031] z(k)=h T (k)θ+e(k)

[0032] Among them, h is the sample set consisting of the water level before the gate, the water level after the gate, and the water level after the diversion gate of each channel section; h T (k) is the transposition of the model input and output data sets;

[0033] The criterion function of the least squares method is:

[0034]

[0035] Among them, M(θ) is the criterion function;

[0036] According to the criterion function, the solution equation of the parameters to be identified under the recursive least squares method is:

[0037] P(k)=P(k-1)-K(k)h T (k)P(k-1)

[0038] K(k)=P(k-1)h(k)[h T (k)P(k-1)h(k)+1] -1

[0039]

[0040] Among them, P(k), K(k) are the gain matrices defined during the solution; are the parameters that need to be identified.

[0041] Furthermore, the gate in the channel is a gate hole outflow, and the relationship between the gate hole outflow flow and the water level is:

[0042]

[0043] Among them, Q is the outflow flow rate of the gate hole; ube is the flow coefficient, the width of the water-passing section, and the gate opening height; g is the gravitational acceleration; and H is the water level at the outflow of the gate hole.

[0044] The beneficial effects of the present invention are as follows: the gray box model constructed in this scheme is based on the measured data of the channel operation process. Through the system identification method, a gray box model is established to describe the relationship between the gate action and the water level of the channel section. The gray box model obtained in this way can effectively cope with the uncertainty disturbance in the long-distance water transmission process of the channel, and efficiently and stably respond to the water intake needs of users.

[0045] At the same time, optimizing the gate control objective function based on genetic algorithm can effectively solve the conflict between the water level difference before the gate and the number of gate actions, so that the conflicting control targets of the water level error before the gate and the gate action can reach the optimal state at the same time. Then, the gate can be intelligently controlled based on these two parameters to improve the efficiency of water resource allocation and management level, and significantly reduce the manpower cost of irrigation area management. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is a flow chart of the gate adaptive predictive control method based on the gray box model.

[0047] Figure 2 This is a schematic diagram of the irrigation canal structure of this plan. DETAILED DESCRIPTION

[0048] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0049] refer to Figure 1 , Figure 1 The flowchart of the gate adaptive predictive control method based on the gray box model is shown; Figure 1 As shown, the method includes steps S1 to S7.

[0050] In step S1, a gray box model of uncertainty interference is constructed for the irrigation area water supply and distribution system, and the gray box model is time discretized; the expression of the gray box model is:

[0051]

[0052] Where θ = [α i ,α i+1 ] T To identify the parameters, α in this scheme i ,α i+1 ,p i ,p i+1 None of them have specific meanings, and their subscripts refer to the gates; y i+1,u(t) is the upstream water level of the i+1th gate at time t; y i+1,d (t) is the downstream water level of the i+1th gate at time t; y i,u (t-τ i ) is t-τ i The upstream water level of the i-th gate at time y i,d (t-τ i ) is t-τ i The downstream water level of the i-th gate at time; p i (t-τ i ) is the t-τth i The opening of the gate at time i; p i+1 (t) is the opening of the i+1th gate at the tth time; τ i is the time required for water to flow from the i-th gate to the i+1-th gate; s i (t) and b i are the water intake and average leakage from the i-th gate to the i+1-th gate respectively;

[0053] The expression of the discretized gray box model is:

[0054]

[0055] Among them, y i+1,u (t+1) is the upstream water level of the i+1th gate at time t+1.

[0056] For i = 1, 2, ..., N S , the complete irrigation district channel control model is as follows:

[0057]

[0058] In step S2, according to the water level before the gate, the water level after the gate and the water level after the water diversion gate of each canal section, the parameter identification method is used to identify the lag time and identification parameters in the gray box model; the irrigation canal system of this scheme can refer to Figure 2 ,The water level before the gate, the water level after the gate and the water level after the diversion gate involved in this scheme are all obtained by sensors.

[0059] In step S3, the water level before the gate, the water level after the gate and the water level after the diversion gate of each channel section at multiple times acquired by the sensor are used as a verification set, and the verification set is input into the gray box model to obtain a prediction data set;

[0060] In step S4, it is determined whether the prediction data set and the validation set meet the model accuracy. If yes, it proceeds to step S5, otherwise it returns to step S2. The specific determination process is as follows:

[0061] The actual water level y( i ) as the validation set y( i )test =y( i )(i=1,2,…,N s ), the water level before the gate calculated by the model For the prediction set Calculate the model accuracy using the following formula:

[0062]

[0063] When MAE≤0.005, the model accuracy is met, otherwise the model accuracy is not met.

[0064] In step S5, an irrigation prescription map of the irrigation area is obtained, wherein the irrigation prescription map includes the irrigation amount required by the irrigation area; the water diversion level of the corresponding canal section is determined based on the irrigation prescription map, and then the gray box model is used to predict the water level difference before the gate and the number of gate operations of the canal section under the water diversion level;

[0065] In step S6, the water level difference before the gate and the number of gate actions are used as inputs of the gate control objective function, and the gate control objective function is optimized using a genetic algorithm to obtain the optimal water level difference before the gate and the number of gate actions;

[0066] During implementation, the gate control objective function is preferably:

[0067]

[0068] x(k+1)=s(x(k),u(k),d(k))

[0069] g(x(k+1),u(k))≤b(k)

[0070] Wherein, J(k) is the objective function; x(k) and x(k+1) are the gate water levels at the kth moment and the k+1th moment respectively; u(k) is the gate opening output at the kth moment; d(k) is the water diversion disturbance at the kth moment; b(k) is the gate action limit at the kth moment; N p is the total time period; f(.), s(.) and g(.) are the cost function, the function describing the system dynamics, and the constraint function, respectively.

[0071] In actual engineering applications, if the water level difference in front of the gate is to be minimized, it is inevitable that the gate needs to be operated multiple times. However, for the environmental conditions of the irrigation channel, the more times the gate is operated, the more power consumption it brings. Therefore, the number of gate operations and the water level difference are two conflicting control objectives. This scheme uses the gate opening as the control output and adjusts the related gate opening according to the water level difference to ensure the stability of the water level in front of the gate. In the gate control process, this scheme adopts the non-dominated sorting genetic algorithm (NSGA-Ⅱ), and its basic steps are as follows:

[0072] S6.1, select parents from the population by using binary tournament selection based on a predefined fitness (rank) function, crowding distance, and constraints. Note that the crowding distance measures the proximity of a given individual to other individuals. Therefore, a large crowding distance means a more diverse distribution of choices;

[0073] S6.2, generating offspring from selected parents by using crossover and mutation operators;

[0074] S6.3, sort the current population and offspring according to the non-dominated rule. Finally, N1 individuals can be obtained, corresponding to the Pareto optimal solution. is the set of all Pareto solutions, where u1=[u1(1),…,u1(N p )] T .

[0075] In step S7, the optimal water level difference before the gate and the number of gate actions are used as control parameters of the integrated measurement and control gate, and the gate is started to output the irrigation amount in the irrigation prescription map.

[0076] In one embodiment of the present invention, the method of using the least squares method to perform parameter identification on the discretized gray box model includes:

[0077] For any discrete random system, the least squares method description equation is:

[0078]

[0079] Among them, n a is the order of the system output term; a n b n are the coefficients that need to be identified for the system output and input items; n b is the order of the system input term; e(k) is the error disturbance term; z(k), z(k-1) and z(kn a ) are the kth, k-1th and knth discrete random systems respectively. a The observed values ​​(water level) of the output; u(k), u(k-1) and u(kn b ) are the kth, k-1th and knth discrete random systems respectively. b The input value of the time (gate opening);

[0080] The least squares format of input and output of discrete random systems:

[0081] z(k)=h T (k)θ+e(k)

[0082] Among them, h is the sample set consisting of the water level before the gate, the water level after the gate, and the water level after the diversion gate of each channel section of the channel;

[0083] The criterion function of the least squares method is:

[0084]

[0085] Among them, M(θ) is the criterion function;

[0086] According to the criterion function, the solution equation of the parameters to be identified under the recursive least squares method is:

[0087] P(k)=P(k-1)-K(k)h T (k)P(k-1)

[0088] K(k)=P(k-1)h(k)[h T (k)P(k-1)h(k)+1] -1

[0089]

[0090] Among them, P(k), K(k) are the gain matrices defined during the solution; are the parameters that need to be identified.

[0091] Since the basic flow pattern of the gate in the channel is the gate hole outflow, in this scheme, the gray box model of this scheme is constructed based on the relationship between the gate hole outflow flow and the water level, where the relationship between the gate hole outflow flow and the water level is:

[0092]

[0093] Among them, Q is the outflow flow rate of the gate hole; u, b and e are the flow coefficient, the width of the water-passing section, and the gate opening height respectively; g is the gravitational acceleration; and H is the water level at the outflow of the gate hole.

[0094] In summary, the gray box model constructed in this scheme can effectively deal with the uncertainty disturbances in the long-distance water transmission process of the channel, and efficiently and stably respond to the water needs of users.

Claims

1. The gate adaptive predictive control method based on the gray box model is characterized by: Includes steps: S1. For the irrigation area water supply and distribution system, a gray box model of uncertainty interference is constructed, and the gray box model is time discretized; S2, according to the water level before the gate, the water level after the gate and the water level after the water diversion gate of each channel section, the parameter identification method is used to identify the lag time and identification parameters in the discretized gray box model; S3, obtaining the water level before the gate, the water level after the gate and the water level after the diversion gate of each channel section at multiple times as a verification set, and inputting the verification set into the gray box model to obtain a prediction data set; S4, determine whether the prediction data set and the validation set meet the model accuracy, if so, proceed to step S5, otherwise return to step S2; S5, obtaining an irrigation prescription map of the irrigation area, and determining the diversion water level of the corresponding canal section based on the irrigation prescription map, and then using a gray box model to predict the water level difference before the gate and the number of gate operations of the canal section under the diversion water level; S6, taking the water level difference before the gate and the number of gate operations as the input of the gate control objective function, and optimizing the gate control objective function by using a genetic algorithm to obtain the optimal water level difference before the gate and the number of gate operations; S7, using the optimal water level difference before the gate and the number of gate actions as the control parameters of the integrated measurement and control gate, and starting the gate to output the irrigation amount in the irrigation prescription map; The expression of the gray box model is: in, To identify the parameters; for t Moment i +1 upstream water level of the gate; for t Moment i +1 downstream water level of the gate; for Moment i The water level upstream of the gate; for Moment i The downstream water level of the gate; For the Moment i The opening of the gate; For the t Moment i+1 The opening of the gate; For the water to flow i Gate flow to i +1 time required for the gate; and Respectively i Gate to i +1 The water intake and average leakage of the gate; The expression of the discretized gray box model is: in, for t +1 moment i +1 The upstream water level of the gate.

2. The gate adaptive predictive control method based on the gray box model according to claim 1 is characterized in that: The expression of the gate control objective function is: in, J ( k ) is the objective function; x ( k ) and x ( k +1) respectively k Moment and k +1 gate water level; u ( k ) is in the k The gate opening output at all times; d ( k ) is the k The water diversion disturbance at every moment; b ( k ) is the k The gate action limit at all times; N p is the total time period; f (.), s (.)and g (.) are cost function, function describing system dynamics, and constraint function respectively.

3. The gate adaptive predictive control method based on the gray box model according to claim 1 is characterized in that: In step S2, a correlation coefficient calculation method is used to identify the lag time in the discretized gray box model, and a least square method is used to perform parameter identification on the discretized gray box model to obtain identification parameters.

4. The gate adaptive predictive control method based on the gray box model according to claim 3 is characterized in that: The methods for parameter identification of discretized gray box models using the least squares method include: For any discrete random system, the least squares method description equation is: in, n a is the order of the system output term; , are the coefficients that need to be identified for the system output and input items respectively; n b is the order of the system input term; e ( k ) is the error disturbance term; z ( k ), z ( k -1) and z ( k - n a ) are the discrete random systems k sequence k -1st and k - n a The observed value of the output (water level); u ( k ), u ( k -1) and u ( k - n b ) are the discrete random systems k sequence k -1st and k - n b The input value of times; The least squares format of the input and output of a discrete random system is: in, h A sample set consisting of the water level before the gate, the water level after the gate and the water level after the diversion gate for each channel section; Transpose the model input and output datasets; The criterion function of the least squares method is: in, M ( θ ) is the criterion function; According to the criterion function, the solution equation of the parameters to be identified under the recursive least squares method is: in, P ( k ), K ( k ) are the gain matrices defined during solution; are the parameters that need to be identified.

5. The gate adaptive predictive control method based on the gray box model according to any one of claims 1 to 4, characterized in that: The gate in the channel is the gate hole outflow, and the relationship between the gate hole outflow flow and the water level is: in, Q is the outflow rate of the gate hole; u , b and e They are flow coefficient, water flow section width, and gate opening height; g is the acceleration due to gravity; H It is the water level at the outflow of the gate.