Open channel gate regulation and control method based on nonlinear model predictive control algorithm
Through the nonlinear model predictive control algorithm and Kalman filter technology based on the Saint-Venant equation, combined with the zebra optimization algorithm, the problem of reduced prediction accuracy caused by the linear assumption of water level and flow in the existing technology is solved, and more accurate water level prediction and flow are achieved. Gate control improves the water supply efficiency of the irrigation system.
Patent Information
- Application Number
- CN202410618537.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-17
AI Technical Summary
The existing internal predictive control algorithm's linear assumption of water level and flow results in a reduced accuracy of the predictive model, which cannot accurately reflect the nonlinear physical process of the irrigation canal and pool, resulting in a decline in the performance of the predictive control algorithm.
A nonlinear model predictive control algorithm based on the Saint-Venant equation is used to construct the water divider model and gate control model, combined with Kalman filter for real-time state correction, and use the zebra optimization algorithm to solve the control strategy to achieve water level prediction and gate control.
It improves the accuracy of water level prediction, reduces the frequency of gate adjustment, ensures stable flow and water level of the irrigation water supply system, and improves the water supply efficiency of the system.
Smart Images

Figure CN118734672A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of water conveyance engineering, and in particular to an open channel gate control method based on a nonlinear model predictive control algorithm. Background Art
[0002] With the increase in population and the development of agriculture, the demand for agricultural water continues to grow, especially in areas where water resources are unevenly distributed in time and space. Ensuring a reliable and stable water supply is essential to promote sustainable agricultural development. However, outdated equipment and improperly designed irrigation water supply systems pose challenges to maintaining the stability of canal water levels and flows, resulting in a decrease in the system's water supply efficiency. Therefore, it is necessary to modernize irrigation canals to ensure more stable water levels and flows and improve agricultural water safety. Generally speaking, in order to avoid potential safety hazards caused by large changes in water levels in open channel irrigation systems (OCIS), manual operation is mostly used upstream of the gate to adjust the water level. However, when complex water conditions occur in the canal water network, manual operation does not perform well, making the automated control of canal water levels the focus of current research. A variety of automated control algorithms have been developed, from the distributed feedback control algorithm focusing on the proportional integral delay model (PID) at the beginning; then to the centralized feedback control algorithm and linear quadratic regulator (LQR) focusing on model predictive control (MPC); and later gradually evolved into intelligent control. Among them, MPC has been proven to be suitable for real-time water level control of irrigation channels and ponds under complex water distribution changes because of its feedback mechanism and real-time rolling prediction capabilities.
[0003] MPC refers to a large class of algorithms, which usually consists of an internal prediction model, objective function optimization, constraints, and rolling optimization strategies. The prediction accuracy of the internal prediction model will greatly affect the performance of the control algorithm. In 1871, the Saint-Venant equations (SVEs) were proposed and applied to describe one-dimensional flow in open channels. However, SVEs are difficult to directly couple with feedback mechanisms and perform real-time result corrections, and cannot be directly used as internal prediction models for control algorithms. The numerical model load of solving SVEs using discrete difference methods is relatively large, so various simplified models have emerged. There are usually two methods to build an internal prediction model suitable for irrigation canals and ponds: one is to discretize and linearize SVEs to construct a linear state vector space: for example, the single-inlet single-outlet (SISO) model derived from linearized SVEs; the other modeling method is completely different from SVEs. It directly uses the dynamic characteristics of canal water level and flow to construct a computational model of the water level-flow relationship: for example, the integral hysteresis (ID) model and the integral zero hysteresis (IDZ) model. If the ID model is used as the internal prediction model of MPC and control interval constraints and water level soft constraints are added, the gate adjustment time can be shortened without affecting the water level regulation. Although this model has been widely used, it makes many linear assumptions about the physical characteristics of the channel pool. When the nonlinear characteristics of the water level are obvious, it cannot accurately reflect the real physical process; on the other hand, the control action generated by the adjustment instructions generated by the model controller does not strictly follow the linear relationship with the flow rate, which will cause the prediction results of the internal prediction model to deviate significantly from the actual situation in the future, which greatly reduces the performance of the predictive control algorithm. Summary of the invention
[0004] In view of the above-mentioned problems, the present invention is proposed.
[0005] Therefore, the technical problem solved by the present invention is: how to solve the problem that the linear assumption of water level and flow rate in the existing internal prediction control algorithm leads to reduced accuracy of the prediction model.
[0006] To solve the above technical problems, the present invention provides the following technical solutions: an open channel gate control method based on a nonlinear model predictive control algorithm, comprising: using the Saint-Venant equation as a prediction model of the nonlinear model predictive control system, and constructing a diversion outlet model and a gate control model; establishing a real-time state correction framework, and using Kalman filtering to feed back the diversion outlet flow change to the prediction model; bringing the corrected state quantity into the real-time state correction framework, and performing water level prediction in combination with the control strategy; establishing an optimization model with the goal of minimizing the sum of squares of measured water level deviations and the number of gate controls, and using the zebra optimization algorithm to solve the control strategy; using a rolling optimization closed-loop control strategy, dynamically correcting the water level prediction result according to the difference between the measured value and the predicted value, and executing the control strategy.
[0007] As a preferred solution of the open channel gate control method based on the nonlinear model predictive control algorithm described in the present invention, the water diversion model is obtained based on flow balance calculation, and the specific formula is as follows:
[0008] Q e =Q f +Q i ;
[0009] Among them, Q e Q is the flow rate of the channel section before the water diversion outlet; f is the flow rate of the channel section after the diversion outlet; Q i is the diversion outlet flow rate.
[0010] The gate control model is based on flow calculation, which is specifically obtained according to the continuity equation and the water level-flow relationship. The specific formula is:
[0011]
[0012] Among them, Q is the gate flow rate; e is the gate opening; b is the gate width; Z u Z is the water level just upstream of the gate; d is the water level immediately downstream of the gate; C d is the flow coefficient; G is the comprehensive flow coefficient, which includes the influence of gate operation and hydraulic conditions.
[0013] As a preferred solution of the open channel gate control method based on the nonlinear model predictive control algorithm described in the present invention, the process of establishing the real-time state correction framework includes the following steps: obtaining the discretized format of the Saint-Venant equation through discretization processing; coupling the discretized Saint-Venant equation with the Kalman filter framework; wherein the coupling includes a prediction process and an update process; using measured data to correct the state, specifically assuming that each water diversion outlet has an uncertain water diversion flow change q, and correcting the state vector.
[0014] The Saint-Venant equation is a basic equation describing one-dimensional flow in an open channel, which consists of the continuity equation and the momentum equation. The specific formula is:
[0015]
[0016]
[0017] Among them, A is the cross-sectional area of the water flow; Q is the flow velocity; Z is the water level; g is the gravitational acceleration; C is the friction coefficient; R is the hydraulic radius; t is the time; and x is the position along the flow direction.
[0018] The specific formula of the discretized Saint-Venant equation is:
[0019] α1Qi-1 / 2 +β1Z i +γ1Q i+1 / 2 =δ1;
[0020] α2Z i +β2Q i+1 / 2 +γ2Z i+1 =δ2;
[0021] Among them, Q and Z represent the flow and water level values to be solved at step t+1, respectively. The subscripts i, i+1 / 2 and i-1 / 2 represent the variables at staggered grid points i, i+1 / 2 and i-1 / 2, respectively. α1, β1, γ1, δ1, α2, β2, γ2, δ2 are the variables calculated from the variables Q and Z at time step t.
[0022] Combining the discretized Saint-Venant equations, we get the equation describing the relationship between the water levels of node i and its neighboring nodes:
[0023] α i Z i-1 +β i Z i +γ i Z i+1 =δ i ;
[0024] Among them, α i , β i , γ i , δ i is the variable calculated from variables Q and Z at time step t.
[0025] As a preferred solution of the open channel gate control method based on the nonlinear model predictive control algorithm described in the present invention, the formula of the prediction process is:
[0026] X t+1|t =M t X t|t +ω t ,ω t ~N(0,W t );
[0027] Among them, X t+1|t represents the prediction phase vector when the time step is t+1; M t represents the system model matrix when the time step is t; X t\t represents the update phase vector when the time step is t; ω t is the system model error, N(0, W t ) is a normal distribution, 0 is the mean, W t is a diagonal covariance matrix, which represents the distribution characteristics of the error.
[0028] The formula for the update process is,
[0029]
[0030] Among them, X t+1|t+1 represents the phase vector updated by the Kalman filter at time step t+1; K represents the Kalman gain matrix; Y t+1 obs represents the observation vector measured at time step t+1; H represents the observation matrix that maps the observation position to the state vector X.
[0031] The discretized Saint-Venant equation is coupled with the Kalman filter framework and expressed in matrix form as follows:
[0032]
[0033] Among them, the vector Z t and Z t+1 They represent the water level changes at time steps t and t+1, respectively, Z = [Z1, Z2, ..., Z Nc ] T , where N c represents the total number of staggered grid points, M t Z is the transformed system model matrix.
[0034] As a preferred solution of the open channel gate control method based on the nonlinear model predictive control algorithm described in the present invention, the state vector correction process includes the following steps: adding the state vector considering the uncertain water diversion flow change q as an additional state variable to the state variable of data assimilation to form a corrected state variable:
[0035] X * =[X,Q] T ;
[0036] Where Q = [q1,q2,…,q Nq ] T , N q is the number of water outlets; X * is the modified state variable.
[0037] The modified state variable is brought into the real-time state modification framework, and the water level prediction is performed in combination with the control strategy, including the following steps: * Bringing it into the numerical model, we get the EnKF framework for water level prediction under uncertain water diversion disturbance:
[0038]
[0039]
[0040] in,
[0041]
[0042]
[0043] Where, X * t+1|t is the prediction phase vector at the corrected time step t+1; X t+1|t represents the prediction phase vector when the time step is t+1; M * t is the new system model matrix calculated using the revised task; X t\t represents the update phase vector at time step t; Q * t|t is the process noise covariance formula when the time step is t after correction; Y t+1 obs represents the observation vector measured at time step t+1; Y t+1 obs* represents the observation vector measured at the corrected time step t+1; H represents the observation matrix that maps the observation position to the state vector X; H * represents the corrected observation matrix; K * t+1|t is the new Kalman gain matrix, which is calculated using the new system prediction state variables, observation variable error covariance, and observation error variance; Q * t|t is the additional state vector when the time step is t; Q * t+1|t is the additional state vector at time step t+1.
[0044] Input the control strategy to be implemented and make water level prediction;
[0045] The water level prediction results are corrected. When the water level prediction value Z is used to predict the future water level of the observation point with step length t+i, the water level prediction value Z is not directly used. t+i|t , but uses the measured water level at step length t Assimilation water level Z t|t The difference between them is used to correct the calculated water level. The correction formula is:
[0046]
[0047] Among them, Z f,t+1|t It represents the final prediction value of the observation point at time step t+i generated by the internal model based on the calculation result of time step t; Z t+i|tis the predicted water level of the observation point at time step t+i; Z t|t is the assimilated water level of the observation point at time step t; is the measured water level at the observation point at time step t.
[0048] As a preferred solution of the open channel gate control method based on the nonlinear model predictive control algorithm described in the present invention, the optimization model adopts a multi-objective optimization algorithm to solve the optimal strategy, and the objective function is:
[0049]
[0050] Among them, h it and h' it are the calculated water level value and the measured water level value of the i-th water level station at time t, respectively; r and s are the number of regulating gates and the total number of observation points, respectively; n is the number of control gates; A1 and A2 are the sum of weighted water level deviations and the weight of gate control time, respectively.
[0051] The optimization constraint conditions of the optimization model are as follows: the gate flow rate shall not be greater than the maximum allowable gate flow rate; the gate opening shall not be greater than the maximum opening and closing height of the gate.
[0052] The population matrix of the zebra optimization algorithm is:
[0053]
[0054] Where X is the population of gate control schemes; Xi is the i-th gate control scheme; Xi,j is the value of the j-th problem variable proposed by the i-th problem; N is the number of population members; m is the number of decision variables; the objective function is evaluated according to each proposed value of the problem variable; the value obtained by the objective function is represented by a vector:
[0055]
[0056] Where F is the vector of objective function values; F i is the i-th objective function value obtained; when the objective function value is the smallest, it is the optimal candidate solution.
[0057] As a preferred solution of the open channel gate control method based on the nonlinear model predictive control algorithm described in the present invention, a closed-loop rolling optimization strategy is adopted, that is, a neural network performs single-step prediction, uses the data at time t to predict the data at time t+1, and rolls in new data and eliminates old data.
[0058] To solve the above technical problems, the present invention further provides the following technical solutions: an open channel gate control system based on a nonlinear model predictive control algorithm, comprising a data acquisition module for collecting real-time water level and flow data; a model construction module for constructing a nonlinear internal prediction model based on the Saint-Venant equation; a state correction module for feeding back the measured data into the prediction model, using Kalman filtering to perform real-time correction of the state quantity, and predicting the water level based on the corrected state; an optimization solution module for establishing an optimization model with the goal of minimizing the sum of squares of measured water level deviations and the number of gate controls, and using the zebra optimization algorithm to solve the optimal control strategy; a control execution module for using a rolling optimization closed-loop control strategy to dynamically correct the water level prediction result according to the difference between the measured value and the predicted value, and execute the control strategy to control the gate.
[0059] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of the open channel gate control method based on the nonlinear model predictive control algorithm as described above are implemented.
[0060] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the open channel gate control method based on the nonlinear model predictive control algorithm as described above are implemented.
[0061] Beneficial effects of the present invention: The nonlinear model predictive controller NM-MPC proposed in the present invention can obtain more accurate water level prediction under flexible water diversion disturbances and can significantly reduce the frequency of gate adjustment. In an open channel irrigation system, when the water level of a large irrigation channel pool undergoes significant nonlinear changes, regardless of whether the water diversion changes are predictable, the present invention shows excellent water level prediction advantages, enabling the irrigation water supply system to maintain a stable flow and water level, greatly improving the water supply efficiency of the system. The present invention achieves real-time tracking of flow changes, thereby improving the water level prediction accuracy of the model, while reducing the number of channel pool gate control times, improving gate control efficiency, and ensuring the stability of channel pool water level and flow in the open channel irrigation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0063] Figure 1 An overall flow chart of an open channel gate control method based on a nonlinear model predictive control algorithm is provided for one embodiment of the present invention.
[0064] Figure 2 A schematic diagram of a test channel pool for an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0065] Figure 3 A flow rate variation diagram of water diversion outlet No. 6 in a test scheme of an open channel gate regulation method based on a nonlinear model predictive control algorithm provided in one embodiment of the present invention.
[0066] Figure 4 A diagram of NM-MPC water level prediction results in the case where water diversion is predictable for an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0067] Figure 5 A diagram of NM-MPC water level prediction results when water diversion is unpredictable for an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0068] Figure 6 A diagram of NM-MPC water level prediction results of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0069] Figure 7 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0070] Figure 8 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0071] Fig. 9 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0072] Fig.10 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0073] Fig.11 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0074] Fig.12 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0075] Fig.13 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention.
[0076] Fig.14 A diagram of an open channel gate control method based on a nonlinear model predictive control algorithm provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0077] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0078] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0079] Example 1
[0080] Reference Figure 1 , which is an embodiment of the present invention, provides an open channel gate control method based on a nonlinear model predictive control algorithm. When the water demand of the open channel irrigation system changes, the nonlinear predictive controller NM-MPC with a one-dimensional hydrodynamic model as the internal model can be used to more accurately predict the water level change. Based on the predicted water level, the ZOA algorithm is used to optimize and solve the optimal gate control strategy, and the rolling predictive control is used to execute the control strategy, which can greatly improve the gate control efficiency and ensure the stability of the irrigation channel water level and flow.
[0081] The present invention can be summarized into the following three parts:
[0082] 1. Based on the hydraulic numerical simulation theory, after analyzing the flow characteristics of channels, gates and diversion outlets, each building is generalized and coupled with the Saint-Venant equation to form a hydrodynamic simulation model that can simulate different water inflows and different gate scheduling strategies.
[0083] 2. The discretized Saint-Venant equation is coupled with the Kalman filter framework, and the state vector is corrected using the measured data to establish a real-time state correction framework that takes into account the change in water diversion flow. The predicted water level is then corrected using the difference between the measured water level and the assimilated water level to avoid the impact of cumulative errors on the prediction accuracy.
[0084] 3. Based on the generated regulation and prediction model, an optimization model is established, and the ZOA algorithm is used for optimization and solution to generate and execute the optimal gate control strategy.
[0085] The open channel gate control method based on the nonlinear model predictive control algorithm provided in this embodiment specifically includes the following steps:
[0086] S1: The Saint-Venant equation is used as the prediction model of the nonlinear model predictive control system, and the water diversion model and gate control model are constructed.
[0087] S1.1: The basic equations describing one-dimensional flow in an open channel are the Saint-Venant equations (SVEs), which consist of the continuity equation and the momentum equation and are expressed as:
[0088]
[0089]
[0090] Where A is the cross-sectional area of the water flow, m 3 ; Q is the flow rate, m 3 / s; Z is the water level, m; g is the acceleration due to gravity, m / s 2 ; C is the friction coefficient, m 1 / 2 / s; R is the hydraulic radius, m; t is the time; x is the position along the flow direction.
[0091] S1.2: Construct a water diversion model. The channel that transmits water to the outside is called a water diversion. The water diversion is the channel for the river to supply water to the outside world. The change of the flow rate at the water diversion is an important factor leading to the change of the water level in the channel. The modeling of the water diversion model is mainly based on the flow balance calculation formula:
[0092] Q e =Q f +Q i ;
[0093] Among them, Q e is the flow rate of the channel section before the water diversion outlet, m 3 / s;Q f is the flow rate of the channel section after the diversion outlet, m 3 / s;Q i is the diversion outlet flow, m 3 / s.
[0094] S1.3: Construct a gate control model. In water transfer projects, control gates are often arranged in the river to control the water level and flow. The control gate generally adjusts the flow rate in the open channel by adjusting the gate opening. Based on the flow calculation formula, the gate model is established according to the continuity equation and the water level-flow relationship:
[0095]
[0096] Where Q is the gate flow rate, m 3 / s; e is the gate opening, m; b is the gate width, m; Z u is the water level immediately upstream of the gate, m; Z d is the water level immediately downstream of the gate, m; C d is the flow coefficient, m 1 / 2 / s. G is the comprehensive flow coefficient, which includes the influence of gate operation and hydraulic conditions.
[0097] Preferably, the Saint-Venant equations (SVEs) one-dimensional hydrodynamic numerical model is used as the internal prediction model of the nonlinear model predictive control system, which can accurately reflect the nonlinear characteristics of the open channel hydrodynamic process and improve the accuracy of water level prediction. Traditional linear models often have large prediction deviations when the water level changes greatly.
[0098] S2: Establish a real-time state correction framework and use Kalman filtering to feed back the flow changes of the water diversion outlet into the prediction model.
[0099] S2.1: Numerical model discretization.
[0100] The staggered conservative scheme is used to discretize the hydrodynamic calculation model first, and the discretization format of the Saint-Venant equation is obtained:
[0101] α1Q i-1 / 2 +β1Z i +γ1Q i+1 / 2 =δ1;
[0102] α2Z i +β2Q i+1 / 2 +γ2Z i+1 =δ2;
[0103] Where Q and Z represent the flow and water level values to be solved at time step t+1, respectively. Subscripts i, i+1 / 2, and i-1 / 2 represent the variables at staggered grid points i, i+1 / 2, and i-1 / 2, respectively. α1, β1, γ1, δ1, α2, β2, γ2, δ2 are the variables calculated from variables Q and Z at time step t.
[0104] Combining the above two equations, we can get the equation describing the relationship between the water level of node i and its adjacent nodes:
[0105] α i Z i-1 +β i Z i +γ i Z i+1 =δ i ;
[0106] Among them, α i , β i , γ i , δi is the variable calculated from variables Q and Z at time step t.
[0107] S2.2: The discrete model coupled Kalman filter framework (also known as the standard EnKF framework) has two main processes, namely the prediction process and the update process. The prediction process is described by the following formula:
[0108] X t+1|t =M t X t|t +ω t ,ω t ~N(0,W t );
[0109] Among them, X t+1|t represents the prediction phase vector when the time step is t+1; M t represents the system model matrix when the time step is t; X t\t represents the update phase vector when the time step is t; ω t is the system model error. N(0, W t ) is a normal distribution, 0 is the mean, W t is a diagonal covariance matrix, which represents the distribution characteristics of the error.
[0110] The update process can be described by the state update equation:
[0111]
[0112] Among them, X t+1|t+1 represents the phase vector updated by the Kalman filter at time step t+1; K represents the Kalman gain matrix; Y t+1 obs represents the observation vector measured at time step t+1; H represents the observation matrix that maps the observation position to the state vector X.
[0113] The discretized Saint-Venant equation is coupled with the standard EnKF and expressed in matrix form:
[0114]
[0115] Among them, the vector Z t and Z t+1 They represent the water level changes at time steps t and t+1, respectively, Z = [Z1, Z2, …, Z Nc ] T , where N c represents the total number of staggered grid points, M t Z is the transformed system model matrix.
[0116] S2.3: Use measured data to make state corrections.
[0117] Specifically, in irrigation canals and ponds, there is uncertainty in the flow process of water intake, and the randomness of the change in water consumption at the water intake will lead to a poor prediction effect of the internal prediction model. In order to cope with sudden uncertain water diversion disturbances, it is assumed that each water diversion has an uncertain water diversion flow change q, and the state vector is corrected.
[0118] Preferably, by establishing a real-time state correction framework that takes into account uncertain flow changes at the water diversion outlet, the actual flow changes at the water diversion outlet are fed back to the prediction model through Kalman filtering, thereby improving the responsiveness to sudden flow disturbances.
[0119] S3: Bring the corrected state quantity into the numerical model and use the control strategy to predict the water level.
[0120] S3.1: Bring the modified state variables into the numerical model.
[0121] The state vector considering the uncertain diversion outlet flow change q is added as an additional state variable to the state variable of data assimilation to form the modified state variable:
[0122] X * =[X,Q] T ;
[0123] Where Q = [q1,q2,…,q Nq ] T , N q is the number of water outlets; X * is the modified state variable.
[0124] The corrected state variable X * Bringing it into the numerical model, we get the EnKF framework for water level prediction under uncertain water diversion disturbance:
[0125]
[0126]
[0127] in,
[0128]
[0129]
[0130] Among them, M * t is the new system model matrix calculated using the modified task. K* t+1|t is the new Kalman gain matrix, which is calculated using the new system predicted state variables, observed variable error covariance, and observed error variance.
[0131] S3.2: Input the control strategy required and make water level prediction.
[0132] Specifically, on the basis of the real-time control model, corresponding control strategies are specified according to the needs of each channel and pool, and the control strategies are input into the prediction model to predict the changes in channel and pool water levels under different water diversion flow changes.
[0133] S3.3: Correct the water level prediction results.
[0134] In the present invention, the control interval and the model update interval under data feedback are both set to 10 minutes, and a larger spatial interval is used to reduce the computational complexity and reduce the computational time. Since modeling errors will occur when using numerical models with larger spatial intervals for prediction, there is a certain degree of error between the assimilated value and the true value. Although the error in each step of calculating the water level state is relatively small, the cumulative effect of the error generated has a greater impact.
[0135] In accordance with the formula When the water level prediction value Z is used to predict the future water level of the observation point with step length t+i, the water level prediction value Z is not directly used. t+i|t , but uses the measured water level at step length t Assimilation water level Z t|t The difference between them is used to correct the calculated water level. The correction formula is:
[0136]
[0137] Among them, Z f,t+1|t It represents the final prediction value of the observation point at time step t+i generated by the internal model based on the calculation result of time step t; Z t+i|t is the predicted water level of the observation point at time step t+i; Z t|t is the assimilated water level of the observation point at time step t; is the measured water level at the observation point at time step t.
[0138] Preferably, through this gate optimization control strategy, the sum of squares of measured water level deviations and the number of gate controls are used as dual-objective optimizations, taking into account both water level control accuracy and gate control efficiency.
[0139] S4: Establish an optimization model with the goal of minimizing the sum of squares of measured water level deviations and the number of gate regulation times, and use the zebra optimization algorithm to solve the optimal regulation strategy.
[0140] S4.1: Establish optimization model: optimization objectives, optimization variables, and optimization constraints.
[0141] Specifically, in order to take into account both the safety requirements of water level control and the economic considerations of gate control, a multi-objective optimization algorithm is used to solve the optimal strategy, with the minimum sum of the squares of the measured water level deviations at each observation point and the number of gate adjustments as the optimization objectives. The objective function expression is:
[0142]
[0143] Among them, h it and h' it are the calculated water level value and the measured water level value of the i-th water level station at time t, respectively; r and s are the number of regulating gates and the total number of observation points, respectively; n is the number of control gates; A1 and A2 are the sum of weighted water level deviations and the weight of gate control time, respectively. The larger A1 and A2 are, the better the optimization effect is.
[0144] The application area of the present invention is an open channel pool that uses regulating gates to achieve pool segmentation. In the m pool segments, there are two variables that need to be optimized, namely the water level deviation between the measured water level and the predicted water level and the number of gate adjustments.
[0145] The specific optimization constraints are as follows:
[0146] The gate flow rate shall not be greater than the gate's maximum allowable flow rate:
[0147] Q i,j ≤Q i,max ;
[0148] Among them, Q i,j is the flow rate of the i-th control gate in the j-th period, m 3 / s;Q i,max is the maximum flow rate through the control gate, m 3 / s.
[0149] The gate opening shall not be greater than the maximum opening and closing height of the gate:
[0150] e≤h max ;
[0151] Where, e is the gate opening, m; h is max is the maximum opening and closing height of the gate, m.
[0152] S4.2: Optimize and solve. There are multiple decision variables and constraints when solving the above model. There are many large search spaces that do not satisfy feasible solutions in the optimization algorithm. Therefore, the choice of algorithm and the way to handle constraints play a key role in finding the optimal gate control solution. The present invention uses a new bionic metaheuristic algorithm, the zebra optimization algorithm (ZOA), to effectively solve this problem.
[0153] In the ZOA algorithm, the position of each zebra in the search space determines the value of the decision variable, and the initial position of the zebra in the search space is randomly assigned. The population matrix of ZOA is:
[0154]
[0155] Where X is the population of gate control schemes; Xi is the i-th gate control scheme; Xi,j is the value of the j-th problem variable proposed by the i-th; N is the number of population members; and m is the number of decision variables. The objective function is evaluated based on each proposed value of the problem variable. The value obtained by the objective function is represented by a vector:
[0156]
[0157] Where F is the vector of objective function values; F i is the objective function value obtained for the ith time. By comparing the objective function values, the quality of the candidate solutions corresponding to them can be effectively analyzed, and the best candidate solution for a given problem can be identified. The present invention is a minimization problem, so the solution with the smallest objective function value is the best candidate solution.
[0158] The optimization process is divided into the foraging phase and the defense phase. The position update formula in the foraging phase is:
[0159]
[0160]
[0161] in, is the value of the jth iteration; is the latest status of the i-th zebra based on the first stage; is the objective function value; PZ is the best member of the population, the pioneer zebra; PZ j is the PZ in the jth iteration; r is a random number between [0,1]; I = round(1+rand), rand is a random number between [0,1], so I∈[1,2], the larger I is, the greater the change to the population.
[0162] The position update formula in the defense phase is:
[0163]
[0164]
[0165] in, is the value of the j-th dimension; is the latest status of the i-th zebra based on the second stage; is the objective function value; t is the iteration profile; T is the maximum number of iterations; R = 0.01; Ps represents the probability of choosing one of two randomly generated solutions in the interval [0,1]; AZ is the state of the attacked zebra, AZ j is the value after the jth iteration.
[0166] Each iteration of the ZOA algorithm updates the population members based on the foraging phase and the defense phase. The best candidate solution is updated and saved during the continuous iteration until the algorithm is completely finished. ZOA will use the best candidate solution as the optimal solution for the given problem. The total computational complexity of ZOA is O(N·m·(2c·T)).
[0167] S5: Adopt the closed-loop control strategy of rolling optimization, dynamically correct the water level prediction results according to the difference between the measured value and the predicted value, and implement the optimal control strategy.
[0168] The present invention adopts a closed-loop rolling optimization strategy, that is, a neural network is used for single-step prediction, the data at time t is used to predict the data at time t+1, new data is added in a rolling manner, and old data is eliminated. In this control mode, after each iteration, the control action at the near moment in the strategy generated in step 4 is executed, and at the next control moment, the water level prediction process of step 2 and the optimization process of step 5 are repeated until the optimal water level prediction result and the optimal gate control scheme are obtained.
[0169] Preferably, the multi-objective optimization problem is effectively solved by introducing the zebra optimization algorithm (ZOA), avoiding falling into the local optimal solution. In addition, the closed-loop control strategy of rolling optimization is adopted to dynamically correct the prediction result according to the difference between the measured water level and the predicted water level, thereby improving the accuracy of long-term prediction.
[0170] In summary, the nonlinear model predictive controller NM-MPC proposed in the present invention can obtain more accurate water level prediction under flexible water diversion disturbance and can significantly reduce the frequency of gate adjustment. In an open channel irrigation system, when the water level of a large irrigation channel pool undergoes significant nonlinear changes, regardless of whether the water diversion changes are predictable, the present invention shows excellent water level prediction advantages, enabling the irrigation water supply system to maintain a stable flow and water level, greatly improving the water supply efficiency of the system.
[0171] Example 2
[0172] Reference Figure 2-Figure 3 , which is an embodiment of the present invention, provides an open channel gate control system based on a nonlinear model predictive control algorithm, comprising:
[0173] Data acquisition module, used to collect real-time water level and flow data;
[0174] A model building module for building a nonlinear internal prediction model based on the Saint-Venant equation;
[0175] The state correction module is used to feed back the measured data to the prediction model, use Kalman filtering to correct the state quantity in real time, and predict the water level based on the corrected state;
[0176] The optimization solution module is used to establish an optimization model with the goal of minimizing the sum of squares of measured water level deviations and the number of gate regulation times, and uses the zebra optimization algorithm to solve the optimal regulation strategy;
[0177] The control execution module is used to adopt a rolling optimization closed-loop control strategy, dynamically correct the water level prediction result according to the difference between the measured value and the predicted value, and execute the regulation strategy to control the gate.
[0178] Example 3
[0179] It is an embodiment of the present invention, which is different from the previous embodiment in that:
[0180] 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 invention, 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 for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. 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, etc., which can store program codes.
[0181] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0182] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0183] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0184] Example 4
[0185] Reference Figure 2 to Figure 14 , which is an embodiment of the present invention, provides an open channel gate control method based on a nonlinear model predictive control algorithm. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0186] like Figure 1 As shown, the No. 2 test river section developed by the Canal Automation Algorithm Committee of the American Society of Civil Engineering is selected as the test river section of the present invention. The No. 2 test river section is relatively large, with a total of eight channels and pools, each of which is separated by a control gate, and the downstream section of each channel pool has a water diversion outlet. The end of the river section is closed, and the downstream section of the last channel pool is assumed to be a control gate. The flow coefficient of each gate is assumed to be 0.8, the dead zone is 5mm, and the other relevant parameter indicators are shown in Table 1:
[0187] Table 1 Parameters of the ASCE No. 2 test canal in the study
[0188]
[0189]
[0190] The implementation process of the experiment is as follows:
[0191] Step 1: Set the research channel control variables and research scenarios.
[0192] The initial flow rate at the most downstream is 3m 3 / s, the initial flow rate at the water inlet is 11m 3 / s. The initial flow rate of each channel outlet is 1m 3 / s. At 5h, the flow rate of the diversion outlet of channel pool 6 increased from 1m 3 / s increased to 3m 3 / s, the flow rate of other water outlets is always maintained at 1m 3 / s. The specific details of the channel and pool water flow and diversion outlet flow change project are as follows Figure 3 shown.
[0193] The research scenarios are set as follows: water diversion is predictable (i.e., the control model can collect information on changes in downstream water demand in advance) and water diversion is unpredictable (i.e., the control model cannot collect information on changes in downstream water demand), and the ability of the proposed control method to cope with various changes in downstream water demand is compared and evaluated.
[0194] Step 2: Controller configuration and optimization algorithm establishment.
[0195] NM-MPC is used as the control algorithm of the case study simulation model, and the model characteristic parameters related to the case study are obtained in advance through the hydrodynamic simulation model. The specific parameter values are shown in Table 2.
[0196] Table 2 Model characteristic parameters
[0197]
[0198]
[0199] The calculation time interval of the internal prediction model in the NM-MPC model is set to 3 minutes, the number of computing nodes is 45, the model update interval under the control interval and data feedback is 10 minutes, and the E-WOA algorithm is used as the optimization solution algorithm.
[0200] The results of the experiment are as follows: The case tested the ability of NM-MPC to predict the water level changes at the observation point upstream of the gate when the flow rate of the downstream diversion outlet changes. In addition, the impact of gate regulation on water level changes was analyzed in order to obtain the best gate control plan through the MPC controller.
[0201] 1. Analysis of NM-MPC prediction performance.
[0202] (1) Prediction performance when the flow rate of the water diversion outlet changes.
[0203] The prediction start times are 300min, 330min, 360min, 420min and 480min respectively. The water level prediction results of the downstream water level observation points of the six pools under the two scenarios are as follows: Figure 4 and Figure 5 As shown, Figure 4 This is the regulation result when the water diversion disturbance is predictable. When the change of water diversion flow is predictable, no matter when the prediction starts, the water level prediction result of the NM-MPC model for the observation point is always close to the measured value, showing good prediction performance. Figure 5 This is the regulation result under the condition of unpredictable water diversion disturbance. When the water diversion flow rate change is unpredictable, at 300 minutes, the actual water level in the channel pool remains unchanged, and NM-MPC cannot predict the change of water level; at 330 minutes, the change of water diversion outlet flow causes a sudden change in water level, and NM-MPC begins to predict the water level change at the observation point, but NM-MPC needs to spend a certain amount of time to assimilate and correct, so the water level prediction accuracy at this time is relatively low; but at 360 minutes, NM-MPC has completed the water level correction, and the water level prediction result of the observation point is close to the measured value.
[0204] (2) Prediction performance when the flow rate at the water diversion outlet changes.
[0205] Manually adjust the opening of gate 7 to reduce the outlet flow of channel 6 by 2m at 300min. 3 / s, the adjustment range is calculated by reverse calculation based on the overflow formula of gate No. 7, and the openings of other control gates remain unchanged. Figure 6 The water level prediction of the downstream water level observation point of Channel Pool 6 is shown. The results show that no matter when the water level prediction starts, the water level prediction effect of NM-MPC is excellent. When the gate opening of the control gate changes, the channel pool flow will not change steadily due to the change of the gate opening. The gate water level change and flow change show a nonlinear relationship, but NM-MPC is a nonlinear model and shows excellent performance when the water level changes.
[0206] 2.MPC controller control results.
[0207] The water level change in each channel pool and the control process of the regulating gate are described by using the simulated value of the water level and gate opening minus the deviation of the initial value. Figure 7 to Figure 10 As shown in the figure, when the diversion flow is predictable, the maximum water level deviations of Channel Pool 5 and Channel Pool 6 predicted by NM-MPC are 0.035m and 0.034m respectively, and there is almost no gate callback. This shows that NM-MPC can maintain a more stable water level trend during the control process, thereby obtaining a more accurate predicted water level and generating a more reasonable gate control strategy.
[0208] like Figure 11 to Figure 14As shown in the figure, when the diversion flow is unpredictable, the maximum water level deviations of Channel Pool 5 and Channel Pool 6 predicted by NM-MPC are 0.083m and 0.092m respectively, and the number of gate adjustments is 30 times. Although the gate opening adjustment of NM-MPC is relatively conservative when the downstream diversion changes, as time goes by, the internal prediction model of NM-MPC gradually adjusts the model-calculated water level using measured data. With the completion of the flow correction, the generated gate control strategy gradually becomes reasonable.
[0209] From the results of this experimental case, we can see that in NM-MPC, the prediction accuracy of NM-MPC is greatly improved by adding flow correction in the assimilation process, which can effectively solve the water level control problem caused by sudden or unpredictable changes in water demand. Under the same water diversion disturbance, NM-MPC can obtain a better gate control strategy, greatly reduce the number of gate controls, and significantly improve the gate control efficiency.
[0210] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. An open channel gate control method based on a nonlinear model predictive control algorithm, characterized in that: include: The Saint-Venant equation is used as the prediction model of the nonlinear model predictive control system, and the water diversion model and gate control model are constructed; Establish a real-time state correction framework and use Kalman filtering to feed back the flow changes of the water diversion outlet into the prediction model; Bring the corrected state quantity into the real-time state correction framework, and perform water level prediction in combination with the control strategy; An optimization model is established with the goal of minimizing the sum of squares of measured water level deviations and the number of gate regulation times, and the zebra optimization algorithm is used to solve the regulation strategy. A rolling optimization closed-loop control strategy is adopted to dynamically correct the water level prediction results according to the difference between the measured value and the predicted value, and then implement the regulation strategy.
2. The open channel gate control method based on the nonlinear model predictive control algorithm according to claim 1, characterized in that: The water diversion model is calculated based on flow balance, and the specific formula is as follows: Q e =Q f +Q i ; Among them, Q e Q is the flow rate of the channel section before the water diversion outlet; f is the flow rate of the channel section after the diversion outlet; Q i is the diversion outlet flow rate; The gate control model is based on flow calculation, which is specifically obtained according to the continuity equation and the water level-flow relationship. The specific formula is: Among them, Q is the gate flow rate; e is the gate opening; b is the gate width; Z u Z is the water level just upstream of the gate; d is the water level immediately downstream of the gate; C d is the flow coefficient; G is the comprehensive flow coefficient, which includes the influence of gate operation and hydraulic conditions.
3. The open channel gate control method based on the nonlinear model predictive control algorithm according to claim 2, characterized in that: The process of establishing the real-time status correction framework includes the following steps: The discretization format of Saint-Venant equation is obtained through discretization processing; The discretized Saint-Venant equation is coupled with the Kalman filter framework; wherein the coupling includes a prediction process and an update process; The measured data is used to correct the state, specifically, assuming that each water diversion outlet has an uncertain water diversion flow change q, and the state vector is corrected; The Saint-Venant equation is a basic equation describing one-dimensional flow in an open channel, which consists of the continuity equation and the momentum equation. The specific formula is: Among them, A is the cross-sectional area of the water flow; Q is the flow velocity; Z is the water level; g is the acceleration of gravity; C is the friction coefficient of the friction; R is the hydraulic radius; t is the time; x is the position along the flow direction; The specific formula of the discretized Saint-Venant equation is: a1Q i-1 / 2 +β1Z i +γ1Q i+1 / 2 =δ1' a2Z i +β2Q i+1 / 2 +γ2Z i+1 =δ2; Where Q and Z represent the flow and water level values to be solved at time step t+1, respectively; subscripts i, i+1 / 2 and i-1 / 2 represent the variables at staggered grid points i, i+1 / 2 and i-1 / 2, respectively; α1, β1, γ1, δ1, α2, β2, γ2, δ2 are the variables calculated from variables Q and Z at time step t; Combining the discretized Saint-Venant equations, we get the equation describing the relationship between the water levels of node i and its neighboring nodes: α i WITH i-1 +β i WITH i +γ i WITH i+1 =δ i ; Among them, α i , β i , γ i , δ i is the variable calculated from variables Q and Z at time step t.
4. The open channel gate control method based on the nonlinear model predictive control algorithm according to claim 3, characterized in that: The formula for the prediction process is, X t+1|t =M t X t|t +oh t ,oh t ~N(0,W t ); Among them, X t+1|t represents the prediction phase vector when the time step is t+1; M t represents the system model matrix when the time step is t; X t\t represents the update phase vector when the time step is t; ω t is the system model error; N(0, W t ) is a normal distribution, 0 is the mean, W t is the diagonal covariance matrix, which represents the distribution characteristics of the error; The formula for the update process is, Among them, X t+1|t+1 represents the phase vector updated by the Kalman filter at time step t+1; K represents the Kalman gain matrix; Y t+1 obs represents the observation vector measured at time step t+1; H represents the observation matrix that maps the observation position to the state vector X; The discretized Saint-Venant equation is coupled with the Kalman filter framework and expressed in matrix form as follows: Among them, the vector Z t and Z t+1 They represent the water level changes at time steps t and t+1, respectively, Z = [Z1, Z2, …, Z Nc ] T , where N c represents the total number of staggered grid points, M t Z is the transformed system model matrix.
5. The open channel gate control method based on the nonlinear model predictive control algorithm according to claim 4, characterized in that: The correction process of the state vector comprises the following steps: The state vector considering the uncertain water diversion flow change q is added as an additional state variable to the state variable of data assimilation to form the modified state variable: X * =[X,Q] T ; Where Q = [q1,q2,…,q Nq ] T , N q is the number of water outlets; X is the state variable; X * is the modified state variable; The method of bringing the corrected state quantity into the real-time state correction framework and performing water level prediction in combination with the control strategy includes the following steps: The corrected state variable X * Bringing it into the numerical model, we get the EnKF framework for water level prediction under uncertain water diversion disturbance: in, Where, X * t+1|t is the prediction phase vector at the corrected time step t+1; X t+1|t represents the prediction phase vector when the time step is t+1; M * t is the new system model matrix calculated using the revised task; X t\t represents the update phase vector at time step t; Q * t|t is the process noise covariance formula when the time step is t after correction; Y t+1 obs represents the observation vector measured at time step t+1; Y t+1 obs* represents the observation vector measured at the corrected time step t+1; H represents the observation matrix that maps the observation position to the state vector X; H * represents the corrected observation matrix; K * t+1|t is the new Kalman gain matrix, which is calculated using the new system prediction state variables, observation variable error covariance, and observation error variance; Q * t|t is the additional state vector when the time step is t; Q * t+1|t is the additional state vector at time step t+1; Input the control strategy to be implemented and make water level prediction; The water level prediction results are corrected. When the water level prediction value Z is used to predict the future water level of the observation point with step length t+i, the water level prediction value Z is not directly used. t+i|t , but uses the measured water level at step length t Assimilation water level Z t|t The difference between them is used to correct the calculated water level. The correction formula is: Among them, Z f,t+1|t It represents the final prediction value of the observation point at time step t+i generated by the internal model based on the calculation result of time step t; Z t+i|t is the predicted water level of the observation point at time step t+i; Z t|t is the assimilated water level of the observation point at time step t; is the measured water level at the observation point at time step t.
6. The open channel gate control method based on the nonlinear model predictive control algorithm according to claim 5, characterized in that: The optimization model uses a multi-objective optimization algorithm to solve the optimal strategy, and the objective function is: Among them, h it and h' it are the calculated water level value and the measured water level value of the i-th water level station at time t; r and s are the number of control gates and the total number of observation points, respectively; n is the number of control gates; A1 and A2 are the sum of weighted water level deviations and the weight of gate control time, respectively; The optimization constraints of the optimization model are: The gate flow rate shall not be greater than the gate's maximum allowable flow rate; The gate opening shall not be greater than the maximum opening and closing height of the gate; The population matrix of the zebra optimization algorithm is: Where X is the population of gate control schemes; Xi is the i-th gate control scheme; Xi,j is the value of the j-th problem variable proposed by the i-th problem; N is the number of population members; m is the number of decision variables; the objective function is evaluated according to each proposed value of the problem variable; the value obtained by the objective function is represented by a vector: Where F is the vector of objective function values; F i is the i-th objective function value obtained; when the objective function value is the smallest, it is the optimal candidate solution.
7. The open channel gate control method based on the nonlinear model predictive control algorithm according to claim 6, characterized in that: A closed-loop rolling optimization strategy is adopted, that is, the neural network performs single-step prediction, uses the data at time t to predict the data at time t+1, and rolls in new data and eliminates old data.
8. A system using the open channel gate control method based on the nonlinear model predictive control algorithm as claimed in any one of claims 1 to 7, characterized in that: include: Data acquisition module, used to collect real-time water level and flow data; A model building module for building a nonlinear internal prediction model based on the Saint-Venant equation; The state correction module is used to feed back the measured data to the prediction model, use Kalman filtering to correct the state quantity in real time, and predict the water level based on the corrected state; The optimization solution module is used to establish an optimization model with the goal of minimizing the sum of squares of measured water level deviations and the number of gate regulation times, and uses the zebra optimization algorithm to solve the optimal regulation strategy; The control execution module is used to adopt a rolling optimization closed-loop control strategy, dynamically correct the water level prediction result according to the difference between the measured value and the predicted value, and execute the regulation strategy to control the gate.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the open channel gate control method based on the nonlinear model predictive control algorithm described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the open channel gate control method based on a nonlinear model predictive control algorithm according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Cascaded multi-ditch gate lockage discharge coefficient calibration method
CN106874622A
Water transfer project multi-target predictive control algorithm for guiding gate regulation and control
CN115167308A
Intelligent water network real-time decision control system and instruction generation method
CN116594325A
Open channel sluice model prediction control method based on Saint-Venant equation set
CN117666351A
Nonlinear optimization method for stochastic predictive control
WO2021240905A1
Cited By
Visual automatic control system for yellow phosphorus production
CN118938788A
Method and system for calibrating overflow coefficient and hydrodynamic parameter of gate in irrigation area
CN119249670A
Modeling method of Saint-Venant equation set containing gate based on model order reduction technology
CN119416541A
Power station water level prediction control method, system and equipment based on model order reduction and medium
CN120949838A
Multi-point hydraulic cooperative control method, device, medium and product for irrigating open channel
CN121501032A
