A reservoir water supply scheduling system based on Floyd algorithm
By optimizing the reservoir water supply path using the Floyd algorithm, the problem of low water supply efficiency caused by computational complexity in existing technologies is solved, and efficient and economical reservoir water supply scheduling is achieved.
Patent Information
- Application Number
- CN202211569232.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-08
AI Technical Summary
Existing reservoir water supply scheduling systems based on Dijkstra's algorithm are computationally complex, resulting in low water supply efficiency.
The Floyd algorithm is adopted, and the water level and flow are monitored in real time through the reservoir information platform. Combined with historical data, the water supply path is optimized. The shortest water supply path is calculated using the T, P, F matrix update algorithm, and the water supply is controlled in real time through the scheduling platform.
It improved the timeliness and efficiency of the reservoir water supply scheduling system, simplified the calculation process, and reduced water supply costs.
Smart Images

Figure CN115759700B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water conservancy engineering technology, specifically to a reservoir water supply scheduling system based on the Floyd algorithm. Background Technology
[0002] Reservoir scheduling can be categorized into flood control scheduling and beneficial operation scheduling. Flood control scheduling is further divided into two types: reservoirs with no downstream flood control responsibility and reservoirs with downstream flood control responsibility. The former only needs to address the dam's safe passage through the flood season, and generally adopts a scheduling method where water is released once the reservoir level reaches a certain elevation. The latter should consider both the dam's safe passage through the flood season and downstream flood control safety. During scheduling, the reservoir's storage and release volume should be determined strictly according to the judgment conditions used (such as flood control characteristic reservoir water level, inflow peak flow, etc.). Within the reservoir's flood control standard, scheduling should be carried out according to downstream flood control requirements. If the inflow exceeds the reservoir's flood control standard, scheduling should prioritize dam safety. Beneficial operation scheduling includes irrigation, power generation, water supply, and navigation. It generally aims to maximize the water supply during the water demand period and often uses reservoir scheduling maps drawn based on measured inflow runoff data to specifically control the reservoir's water supply.
[0003] By utilizing the reservoir's storage capacity, and based on actual inflow and hydrological forecasts, the inflow runoff is stored and released in a planned manner. Under the premise of ensuring project safety, the reservoir is scheduled according to its primary and secondary functions and the principle of comprehensive water resource utilization, so as to achieve the goals of flood control and water benefit, and to meet the needs of various sectors of the national economy to the greatest extent. The theory and methods of reservoir scheduling gradually developed with the large-scale construction of reservoirs and hydropower stations in the early 20th century, and gradually realized the comprehensive utilization and scheduling of reservoir groups.
[0004] The authorized publication number "CN110499736B" describes "a reservoir water supply scheduling system based on Dijkstra's algorithm, including a reservoir information platform and a scheduling platform; the specific algorithm steps of the scheduling platform are as follows: 1) determine the flow time between the reservoir i to be supplied and each adjacent water supply reservoir; 2) determine the water supply time for each adjacent water supply reservoir to provide a specified water supply to the reservoir i to be supplied; 3) determine the total water supply time of the adjacent reservoirs to the reservoir i to be supplied; 4) introduce two sets (S, U); 5) initialize the two sets; 6) find the point with the shortest total water supply time from set U and add it to set S; 7) update the total water supply time of set U; 8) repeat steps 6 and 7 to obtain the shortest total water supply time between the reservoir i to be supplied and other reservoirs. In this reservoir water supply scheduling system based on Dijkstra's algorithm, the scheduling platform determines the reservoir to be supplied and sends control commands to the reservoir that needs water supply according to the algorithm, controlling the reservoir that needs water supply to supply water to the reservoir to be supplied."
[0005] The aforementioned patents can significantly improve the effectiveness of reservoir water supply, but the calculations of the reservoir water supply scheduling system are relatively complex, resulting in low reservoir water supply efficiency. Summary of the Invention
[0006] The purpose of this invention is to provide a reservoir water supply scheduling system based on the Floyd algorithm, thereby solving the problems mentioned in the background art.
[0007] To achieve the above objectives, the present invention provides the following technical solution: a reservoir water supply scheduling system based on the Floyd algorithm, comprising: a reservoir information platform and a scheduling platform. The reservoir information platform includes the real-time water level of the reservoir, the flow rate when the reservoir supplies water to adjacent reservoirs, and the flow velocity when the reservoir supplies water to adjacent reservoirs. The scheduling platform compares and analyzes the data from the information platform with past scheduling information, identifies the reservoirs that require water, and then sends control commands to the reservoirs that require water supply according to the algorithm, controlling the reservoirs that can supply water to supply water to the reservoirs that require water. The specific algorithm steps of the scheduling platform are as follows: 1) Determine the distance S between each reservoir. By collecting the water flow velocity v between each reservoir, the flow time of each reservoir can be obtained as t = S / v. 2) The T matrix is used to represent the required time. The initial state of the matrix T is the water supply flow time between each reservoir node. If two reservoirs are not directly accessible, the time between these two reservoir nodes is assumed to be infinite. The P matrix is used to represent the water supply path between reservoir nodes. The initial state of the P matrix is that each position in the matrix is set as the target reservoir node. After iterative updates, the P matrix records the intermediate reservoir nodes passed through by the optimal path from node i to node j. The F matrix is used to represent the cost per unit flow of each path. 3) Assuming the number of nodes in the graph is N, then matrices T, P, F, and P need to be modified. f After N updates, initially, the value of node a[i][j] in matrix T is the weight from node i to node j, which represents the water flow time from node i to node j. If node i and node j are not adjacent, then a[i][j] = ∞. The value of matrix P is the value of j in node b[i][j]. The value of node c[i][j] in matrix F is the unit flow cost from node i to node j. If node i and node j are not adjacent, then c[i][j] = ∞. The value of node c[i][j] in matrix F is the weight from node i to node j, which represents the unit flow water cost from node i to node j. f The value is the value of j in node d[i][j]; next, we start to process matrices T, P, F, P fPerform N updates. During the first update, if a[i][j] > a[i][0] + a[0][j] (a[i][0] + a[0][j]] represents the time or cost of passing through the first node between i and j, where passing through the first node means that the reservoir with number 0 is the first intermediate node between i and j), then update a[i][j] to a[i][0] + If a[0][j] is updated, b[i][j] = 0. If c[i][j] > c[i][0] + c[0][j] (c[i][0] + c[0][j] represents the cost between i and j via the first node), then update c[i][j] to c[i][0] + c[0][j], and update d[i][j] = 0. Similarly, in the k-th update, if a[i][j] > a[i][k-1] + a[k-1][j], then update a[i][j] to a[i][k-1] + a[k-1][j], b[i][j] = k-1, c[i][j] > c[i][k-1] + c[k-1][j]. (c[i][0]+c[0][j]] represents the cost between i and j through the first node), then update c[i][j] to c[i][k-1]+c[k-1][j], d[i][j]=k-1. When inserting a node between two nodes is better than not inserting one, then update the time in matrix T and the path in matrix P. 4) Repeat step 3 until the path from each node to all other nodes is optimal; 5) The scheduling information is used to generate statistical data, which is then used as historical data for reference.
[0008] Furthermore, the dispatching platform includes a display module and an early warning module. The display module is used to display various data of each reservoir online in real time. The early warning module judges the data based on the collected information and the set warning line. In automatic mode, it selects the water supply method according to the preset settings and sends SMS reminders to relevant personnel. In manual mode, it sends SMS reminders to relevant personnel through the communication module and manually adjusts the water supply.
[0009] Furthermore, based on historical data, the optimal water supply path with the lowest total cost per unit flow can be selected under the same conditions to reduce scheduling costs.
[0010] This invention provides a reservoir water supply scheduling system based on the Floyd algorithm. It offers the following advantages: This Floyd algorithm-based reservoir water supply scheduling system, through an algorithm set on the scheduling platform, can quickly calculate the shortest distance between any two points and update the results in real time, improving the timeliness and efficiency of the reservoir water supply scheduling system. It also avoids the low water supply efficiency caused by overly complex calculations in traditional reservoir water supply scheduling systems. Attached Figure Description
[0011] Figure 1 This is a schematic diagram of the structure of a reservoir water supply scheduling system based on the Floyd algorithm according to the present invention. Detailed Implementation
[0012] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0013] Examples of embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the invention, and should not be construed as limiting the invention.
[0014] The present invention will be further described below with reference to the accompanying drawings and embodiments: Please see Figure 1 This invention provides a technical solution: a reservoir water supply scheduling system based on the Floyd algorithm, comprising: The reservoir information platform and the dispatching platform are used to monitor the real-time water level of the reservoir, the flow rate when the reservoir supplies water to neighboring reservoirs, and the flow velocity when the reservoir supplies water to neighboring reservoirs. The dispatching platform compares and analyzes the data from the information platform with past dispatching information to identify the reservoirs that need water. Then, based on the algorithm, it sends control commands to the reservoirs that need water supply to control the reservoirs that can supply water to supply water to the reservoirs that need water. The specific algorithm steps of the scheduling platform are as follows: 1) Determine the distance S between each reservoir. By collecting the water flow velocity v between each reservoir, the flow time of each reservoir can be obtained as t = S / v. 2) The T matrix is used to represent the required time. The initial state of the T matrix is the water supply flow time between each node. If two nodes are not directly accessible, the time between these two nodes is set to infinity. The P matrix is used to represent the path. The initial state of the P matrix is the target node, and after modification, it is the nodes passed through. The F matrix is used to represent the cost per unit flow of each path.
[0015] Initial matrix T
[0016] Initial matrix P Assuming the number of nodes in the graph is N, then matrices T, P, F, and P need to be processed. fAfter N updates, initially, the value of node a[i][j] in matrix T is the weight from node i to node j. If node i and node j are not adjacent, then a[i][j] = ∞. The value of matrix P is the value of j in node b[i][j]. The value of node c[i][j] in matrix F is the unit flow cost from node i to node j. The value of node c[i][j] in matrix F is the weight from node i to node j. If node i and node j are not adjacent, then c[i][j] = ∞. f The value is the value of j in node d[i][j]. Next, we start working on matrices T, P, F, and P. f Perform N updates. In the first update, if a[i][j] > a[i][0] + a[0][j] (where a[i][0] + a[0][j] represents the time or cost of passing through the first node between i and j), then update a[i][j] to a[i][0] + a[0][j] and update b[i][j] = 0. If c[i][j] > c[i][0] + c[0][j] (where c[i][0] + c[0][j] represents the cost of passing through the first node between i and j), then update c[i][j] to c[i][0] + c[0][j ... c[0][j], update d[i][j]=0. Similarly, during the k-th update, if a[i][j]>a[i][k-1]+a[k-1][j], then update a[i][j] to a[i][k-1]+a[k-1][j], b[i][j]=k-1, c[i][j]>c[i][k-1]+c[k-1][j] (c[i][0]+c[0][j]] represents the cost between i and j through the first node), then update c[i][j] to c[i][k-1]+c[k-1][j], d[i][j]=k-1. When inserting a node between two nodes is better than not inserting one, then update the time in matrix T and the path in matrix P. If the calculation starts from 0 as the intermediate point:
[0017] Matrix T0
[0018] Matrix P0 4) Repeat step 3 until the path from each node to all other nodes is optimal; 5) The scheduling information forms statistical data, which is used as historical data for reference. Through the algorithm set by the scheduling platform, the shortest distance between any two points can be quickly calculated and updated in real time according to the calculation results. This improves the timeliness of the reservoir water supply scheduling system, increases water supply efficiency, and avoids the problem of low water supply efficiency caused by the complex calculation of the reservoir water supply scheduling system.
[0019] Specifically, the dispatching platform includes a display module and an early warning module. The display module is used to display various data of each reservoir online in real time. The early warning module judges the data based on the collected information and the set warning line. In automatic mode, it selects the water supply method according to the preset and sends SMS reminders to relevant personnel. In manual mode, it sends SMS reminders to relevant personnel through the communication module and manually adjusts the water supply.
[0020] Specifically, based on historical data, the minimum cost flow can be selected under the same circumstances to achieve the same effect and save scheduling costs.
[0021] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the inventive concept of the present invention, and these all fall within the protection scope of the present invention.
Claims
1. A reservoir water supply scheduling system based on the Floyd algorithm, characterized in that, include: The reservoir information platform includes a reservoir information platform and a scheduling platform. The reservoir information platform includes the real-time water level of the reservoir, the flow rate when the reservoir supplies water to adjacent reservoirs, and the flow velocity when the reservoir supplies water to adjacent reservoirs. The scheduling platform compares and analyzes the data from the information platform with past scheduling information, identifies the reservoirs that need water, and then sends control commands to the reservoirs that need water supply according to the algorithm, controlling the reservoirs that can supply water to supply water to the reservoirs that need water. The specific algorithm steps of the scheduling platform are as follows: 1) Determine the distance S between each reservoir. By collecting the water flow velocity v between each reservoir, the flow time of each reservoir can be obtained as t = S / v. 2) The T matrix is used to represent the required time. The initial state of the matrix T is the water supply flow time between each reservoir node. If two reservoirs are not directly accessible, the time between these two reservoir nodes is assumed to be infinite. The P matrix is used to represent the water supply path between reservoir nodes. The initial state of the P matrix is that each position in the matrix is set as the target reservoir node. After iterative updates, the P matrix records the intermediate reservoir nodes passed through by the optimal path from node i to node j. The F matrix is used to represent the cost per unit flow of each path. 3) Assuming the number of nodes in the graph is N, then matrices T, P, F, and P need to be modified. f After N updates, initially, the value of node a[i][j] in matrix T is the weight from node i to node j, which is the water supply flow time from node i to node j. If node i and node j are not adjacent, then a[i][j] = ∞. The initial state of matrix P is b[i][j] = j. The value of node c[i][j] in matrix F is the unit flow cost from node i to node j. If node i and node j are not adjacent, then c[i][j] = ∞. The value of node c[i][j] in matrix F is the weight from node i to node j, which is the unit flow water supply cost from node i to node j. Matrix P f The initial state is d[i][j]=j; next, we start working on matrices T, P, F, P f Perform N updates. In the first update, if a[i][j] > a[i][0] + a[0][j], where a[i][0] + a[0][j] represents the sum of water supply flow times from node i to node j when reservoir number 0 is the intermediate node in the first update, then update a[i][j] to a[i][0] + If a[0][j] is updated, b[i][j] = 0. If c[i][j] > c[i][0] + c[0][j], c[i][0] + c[0][j] represents the sum of unit flow water supply costs from node i to node j when reservoir number 0 is the intermediate node in the first update. Then update c[i][j] to c[i][0] + c[0][j], and update d[i][j] = 0. Similarly, in the k-th update, if a[i][j] > a[i][k-1] + a[k-1][j], then update a[i][j] to a[i][k-1] + a[k-1][j], b[i][j] = k-1, and c[i][j] > c[i][k-1] + c[k-1][j]. c[i][k-1]+c[k-1][j] represents the sum of the unit flow water supply costs from node i to node j via node k-1. Then, update c[i][j] to c[i][k-1]+c[k-1][j], d[i][j]=k-1. When inserting a node between two nodes is better than not inserting one, then update the time in matrix T and the path in matrix P. 4) Repeat step 3 until the path from each node to all other nodes is optimal; 5) The scheduling information is used to generate statistical data, which is then used as historical data for reference.
2. A reservoir water supply scheduling system based on the Floyd algorithm according to claim 1, characterized in that: The dispatching platform includes a display module and an early warning module. The display module is used to display various data of each reservoir online in real time. The early warning module judges the collected information and the set warning line. In automatic mode, it selects the water supply method according to the preset mode and sends SMS reminders to relevant personnel. In manual mode, it sends SMS to relevant personnel through the communication module to issue early warnings and manually adjusts the water supply.
3. A reservoir water supply scheduling system based on the Floyd algorithm according to claim 1, characterized in that: Based on historical data, the optimal water supply path with the lowest total cost per unit flow rate is selected under the same conditions to reduce scheduling costs.
Citation Information
Patent Citations
A reservoir water supply scheduling system based on Dijkstra's algorithm
CN110499736B
Method for solving optimal paths with unavoidable node sets
CN106779225A
Floyd algorithm-based logistics resource scheduling management platform
CN106980907A
