A parallel reservoir scheduling method, device, electronic device and storage medium
By establishing a parallel reservoir dispatching model and correcting independent variables, the problem of water resource spatial constraints in multi-reservoir and multi-user reservoir dispatching is solved, and the global optimality of reservoir dispatching and rational allocation of resources are achieved.
Patent Information
- Application Number
- CN202110840764.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-07-25
AI Technical Summary
Existing reservoir dispatching methods are mainly limited to single-reservoir and single-user model assumptions, which are difficult to apply to multi-reservoir and multi-user parallel reservoir dispatching problems. They do not fully consider the spatial constraint characteristics of the water resource system, which affects the optimality of dispatching.
A parallel reservoir dispatching method is proposed. By obtaining basic information data, a parallel reservoir dispatching model is established, and the current solution of the variables to be optimized is obtained using the model solution, and then tested and corrected to ensure that the dispatching plan meets water balance, ecological water demand, For storage capacity and water supply constraints, an independent variable correction strategy is adopted to avoid local optimization and ensure global optimality.
A parallel reservoir dispatching model considering distributed water supply and water resources spatial constraints is implemented, which improves the universality of the model and the global optimality of the dispatching plan, avoids local optimization phenomena, and provides an effective and reasonable allocation plan for water resources.
Smart Images

Figure CN113537800B
Abstract
Description
Technical Field
[0001] This disclosure pertains to the field of reservoir scheduling, specifically relating to a parallel reservoir scheduling method, apparatus, electronic equipment, and storage medium. Background Technology
[0002] Parallel reservoir operation is an important tool for water resource development and utilization. It regulates the uneven spatial and temporal distribution of natural water inflow by leveraging the compensatory effects of reservoir hydrology and capacity. Optimal operation of parallel reservoirs with multiple reservoirs and multiple users is constrained by many factors and involves complex hydraulic compensation relationships. It is characterized by its large scale, high dimensionality, numerous variables, and complex structure, making it a challenging and hot topic in reservoir operation research.
[0003] Currently, research on reservoir scheduling methods by scholars both domestically and internationally is mainly based on the aggregation-decomposition approach. This involves first calculating the total water supply of the aggregated virtual reservoir (i.e., the water supply rule), and then decomposing the water supply task into individual sub-reservoirs (i.e., the water allocation rule). The main water supply rules include the hedging rule and the standard operation policy; the main water allocation rules include the New York Rule, the space rule, and the parametric rule. However, these rules are limited to the assumption of a single reservoir and a single user model, making them difficult to apply to the scheduling problems of parallel reservoirs with multiple reservoirs and multiple users.
[0004] In addition, current scheduling rules rarely consider the spatial constraints of water resource systems. Water resources have unique upstream-downstream and tributary-mainstream relationships; that is, water can only be transferred from upstream to downstream, and from tributaries to the main stream, and vice versa. This unique spatial physical characteristic is determined by the river network structure and unidirectional flow, and will greatly affect the optimality of reservoir scheduling. Summary of the Invention
[0005] The purpose of this disclosure is to overcome the shortcomings of current reservoir scheduling rules, which are limited to single-reservoir, single-user model assumptions and do not fully consider the spatial constraints of water resource systems. This disclosure proposes a parallel reservoir scheduling method, device, electronic equipment, and storage medium. The parallel reservoir scheduling scheme obtained through this disclosure has the advantages of strong systematicity and good applicability, ensuring the global optimality of the results.
[0006] The first aspect of this disclosure proposes a method for parallel reservoir scheduling, including:
[0007] Obtain basic information data of parallel reservoirs;
[0008] A parallel reservoir scheduling model is established, and the basic information data of the parallel reservoirs is used to solve the parallel reservoir scheduling model to obtain the current solution of the variable to be optimized in the parallel reservoir scheduling model;
[0009] The current solution of the variable to be optimized is tested, and after the test is completed, the optimal scheduling scheme of the parallel reservoirs is obtained.
[0010] In one embodiment of this disclosure, the step of verifying the current solution of the variable to be optimized includes:
[0011] Select from the current solutions of the variables to be optimized the current solutions that violate the constraints of the parallel reservoir scheduling model to form a set of violated variables;
[0012] Search for independent variables from the set of violation variables, wherein the independent variables are those that, by modifying any other violation variable in the set of violation variables, do not change their own state of violating the constraints of the scheduling model;
[0013] The independent variables are then modified.
[0014] In one embodiment of this disclosure, establishing the parallel reservoir scheduling model includes:
[0015] 1) The objective function expression of the scheduling model is determined as follows:
[0016]
[0017] Among them, s i,t Let be the water storage of the i-th reservoir at the end of time period t; Let be the water supply volume of the i-th tributary user at the end of time period t; C represents the water supply volume to the main stream users at the end of time period t; i (s i,t Let be the benefit function of the water storage of the i-th reservoir at the end of time period t; The benefit function for water supply to the i-th tributary user at the end of time period t; The benefit function for water supply to mainstream users at the end of time period t; the subscript t represents the scheduling period.
[0018]
[0019] Where, ω s,i ω represents the weight of the benefit function for the water storage of the i-th reservoir; trib,i The weight of the benefit function for water supply to the i-th tributary user; ω main The weights of the benefit function for the i-th mainstream user are: The parameter m is the exponent of the benefit function, and m>1;
[0020] 2) Determine the constraints of the scheduling model, including:
[0021] Water balance constraints:
[0022]
[0023] Ecological water demand constraints:
[0024]
[0025] Reservoir capacity constraints:
[0026]
[0027] Water supply constraints for tributary users:
[0028]
[0029] Water supply constraints for main stream users:
[0030]
[0031] Tributary discharge constraints:
[0032]
[0033] Among them, s i,t-1 Let be the initial water storage of the i-th reservoir at the beginning of time period t; I represents the discharge volume of the i-th tributary at the end of time period t; i,t Let be the inflow volume of the i-th reservoir at the beginning of time period t; and These are the maximum and minimum storage capacities of the i-th reservoir at the end of time period t, respectively. The maximum water supply for the i-th tributary user at the end of time period t; The maximum water supply to the main stream users at the end of time period t; The minimum ecological flow downstream of the main stream at the end of time period t.
[0034] In one embodiment of this disclosure, the step of using the basic information data of the parallel reservoirs to solve the parallel reservoir scheduling model and obtain the current solution of the variable to be optimized in the parallel reservoir scheduling model specifically involves:
[0035] The current solution expression for the variable to be optimized in the parallel reservoir scheduling model is as follows:
[0036]
[0037]
[0038]
[0039]
[0040] in, Let be the current solution for the water storage of the i-th reservoir at the end of time period t. The current solution for water supply to the i-th tributary user at the end of time period t. Let t be the current solution for the water supply to the main stream users at the end of time period t. This is the current solution for the discharge volume of the i-th tributary at the end of time period t;
[0041] WA i.t WT represents the available water volume of the i-th tributary at the end of time period t; WA represents the total available water volume of the parallel reservoirs at the end of time period t; WT represents the total target value of the parallel reservoirs at the end of time period t; WT-WA represents the water shortage of the parallel reservoirs at the end of time period t; parameters These are the water shortage allocation coefficients for each reservoir, each tributary user, and each main stream user during time period t, respectively.
[0042] WA i,t =s i,t-1 +I i,t
[0043]
[0044]
[0045]
[0046]
[0047]
[0048] Among them, parameters
[0049] In one embodiment of this disclosure, selecting current solutions that violate the constraints of the parallel reservoir scheduling model from the current solutions to form a set of violation variables includes:
[0050] Determine the current solution:
[0051] If none of the current solutions violate the constraints of the parallel reservoir scheduling model, then the current solution is the optimal solution for the variable to be optimized. After verification, the optimal scheduling scheme of the parallel reservoirs is obtained, including: the optimal solution for the water storage of each reservoir at the end of the scheduling period, the optimal solution for the water supply of each tributary user, the optimal solution for the water supply of the main stream user, and the optimal solution for the water discharge of each tributary.
[0052] If there is a current solution that violates the constraints of the parallel reservoir scheduling model, then the current solution that violates the constraints of the parallel reservoir scheduling model is recorded as a violation variable, and all the violation variables are combined into the violation variable set.
[0053] The method for determining the current solution is to calculate the relative deviation of each current solution, as shown in the following expression:
[0054]
[0055] Where θ s,i θ represents the relative deviation of the current solution for the water storage capacity of the i-th reservoir; trib,i The relative deviation of the initial solution for water supply to the i-th tributary user; θ main The relative deviation of the current solution for water supply to mainstream users; θ l,i Defined as the relative deviation of the current solution for the discharge volume of the i-th tributary.
[0056] In one embodiment of this disclosure, searching for independent variables from the set of violation variables includes:
[0057] 1) Select any one of the violation variables from the set of violation variables as the corrected violation variable, and calculate the remaining water deficit of the system corresponding to the corrected violation variable. Specifically as follows:
[0058] If the correction violation variable is any one of the violation sets Then the variable that violates the correction is denoted as i0∈{1,2,...,n}; if The expression for calculating the remaining water shortage in the system is as follows:
[0059]
[0060] If the correction violates the variable in the violation set Then the variable that violates the correction is denoted as i0∈{1,2,...,n}; if The expression for calculating the remaining water shortage in the system is as follows:
[0061]
[0062] If the correction violates the variable in the violation set and The expression for calculating the remaining water shortage in the system is as follows:
[0063]
[0064] If the correction violation variable is any one of the violation sets Then the variable that violates the correction is denoted as i0∈{1,2,...,n}; if The expression for calculating the remaining water shortage in the system is as follows;
[0065]
[0066] If the correction violation variable is any one of the violation sets and or any and or and The expression for calculating the remaining water shortage in the system is as follows:
[0067]
[0068] 2) Calculate the water shortage allocation coefficient of the remaining violation variable in the remaining system from the violation set corresponding to the correction of the violation variable; specifically as follows:
[0069] 2-1) If the modified violation variable is any one of the violation sets and or The method for calculating the water shortage allocation coefficients of the remaining violating variables in the violation set within the residual system is as follows:
[0070] If the remaining violation variable is any If i≠i0, then calculate the following formula: Water shortage allocation coefficient in the remaining system:
[0071]
[0072] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0073]
[0074] If the remaining violated variables are Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0075]
[0076] 2-2) If the violation variable to be corrected is any one of the violation sets and or The method for calculating the water shortage allocation coefficients of the remaining violating variables in the violation set within the residual system is as follows:
[0077] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0078]
[0079] If the remaining violation variable is any If i≠i0, then calculate the following formula: Water shortage allocation coefficient in the remaining system:
[0080]
[0081] If the remaining violated variables are Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0082]
[0083] 2-3) If the violation variable to be corrected is in the violation set And satisfy or The method for calculating the water shortage allocation coefficients of the remaining violating variables in the violation set within the residual system is as follows:
[0084] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0085]
[0086] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0087]
[0088] 2-4) If the modified violation variable is any one of the violation sets and The method for calculating the water shortage allocation coefficients of the remaining violating variables in the violation set within the residual system is as follows:
[0089] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0090]
[0091] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0092]
[0093] If the remaining violated variables are Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0094]
[0095] 3) Calculate the relative deviations of each remaining violation variable in the remaining system, as shown in the following expressions:
[0096]
[0097] 4) Search for independent variables from the set of violated variables. The specific steps are as follows:
[0098] 4-1) Let there be k violations in the set of violations. Construct a k×k relative deviation matrix, where the diagonal elements θ of this matrix are... 11 ,θ 22 ,...,θ kk The values are taken as the relative deviations of the k violating variables, and the initial values of other elements in the matrix are empty; where the subscripts of the diagonal elements are i = j ∈ K = {1, 2, ..., k}, i represents the row number of the matrix, and j represents the column number of the matrix; the expression for the relative deviation matrix is as follows:
[0099]
[0100] 4-2) Command number i = 1;
[0101] 4-3) Remove the diagonal elements θ of the i-th row. i,i After correcting the value to the interval boundary value of the relative deviation it violates, the value of the remaining element in the i-th row of the matrix is calculated, where θ i,j The value is the relative deviation of the j-th violation variable in the remaining system after selecting the i-th violation variable in the violation set as the corrected violation variable;
[0102] 4-4) Let i = i + 1, and then return to 4-3) until i = k. Then, we can obtain the relative deviation of the remaining violation variables in the remaining system in the violation set corresponding to each violation variable after it is selected as the corrected violation variable. This gives us the corrected relative deviation matrix.
[0103] 4-5) Iterate through each column of the corrected relative deviation matrix obtained in step 4-4) and determine:
[0104] If the minimum value of any element other than the diagonal element in the column is less than 0, or the maximum value of any element other than the diagonal element is less than 1, then the violation variable corresponding to the diagonal element of the column is an independent variable.
[0105] In one embodiment of this disclosure, the modification of the independent variable includes:
[0106] 1) Make corrections based on the type of constraints violated by the independent variables, including:
[0107] 1-1) If an independent variable violates any of the following constraints: reservoir capacity constraint, tributary user water supply constraint, or main stream user water supply constraint, then the value of the independent variable is corrected to the corresponding boundary value in the constraint condition it violates, and this value is taken as the optimal solution for that independent variable; where,
[0108] If the independent variable is any Furthermore, if the reservoir capacity constraint is violated, the value of this independent variable should be corrected to... or The optimal solution for this independent variable The expression is as follows:
[0109]
[0110] If the independent variable is any Furthermore, if the water supply constraints for tributary users are violated, the value of this independent variable will be corrected to 0 or... The optimal solution for this independent variable The expression is as follows:
[0111]
[0112] If the independent variable is Furthermore, if the water supply constraints for mainstream users are violated, the value of this independent variable will be corrected to 0 or... The optimal solution for this independent variable The expression is as follows:
[0113]
[0114] 1-2) If the independent variable is any If the tributary discharge constraint is violated, the tributary containing the independent variable is labeled j. Then, the value of the independent variable is corrected to the corresponding boundary value in the violated constraint and used as the optimal solution for that independent variable. The optimal solution for calculating the reservoir storage capacity on tributary j Optimal solution for water supply to tributary users The expression is as follows:
[0115]
[0116]
[0117] Among them, WT j,t Let t be the total target value for reservoir water storage and water supply to users of the j-th tributary during time period t; These are the adjusted water shortage allocation coefficients for the j-th reservoir and the j-th tributary user, respectively;
[0118]
[0119]
[0120]
[0121] Among them, parameters
[0122] 2) Remove the variables corresponding to each optimal solution from the set of variables to be optimized, and then solve the parallel reservoir scheduling model again.
[0123] A second aspect of this disclosure provides a parallel reservoir scheduling device, comprising:
[0124] The acquisition module is used to acquire basic information data of parallel reservoirs;
[0125] The parallel reservoir scheduling model solution module is used to establish a parallel reservoir scheduling model, solve the parallel reservoir scheduling model using the basic information data of the parallel reservoirs, and obtain the current solution of the variable to be optimized in the parallel reservoir scheduling model;
[0126] The verification module is used to verify the current solution of the variable to be optimized. After the verification is completed, the optimal scheduling scheme of the parallel reservoir is obtained.
[0127] A third aspect of this disclosure provides an electronic device, comprising:
[0128] At least one processor; and a memory communicatively connected to said at least one processor;
[0129] The memory stores instructions that can be executed by the at least one processor, the instructions being configured to perform a parallel reservoir scheduling method as described in the preceding claims.
[0130] A fourth aspect of this disclosure provides a computer-readable storage medium storing computer instructions for causing the computer to execute the aforementioned parallel reservoir scheduling method.
[0131] The features and beneficial effects of this disclosure are as follows:
[0132] This disclosure establishes a parallel reservoir scheduling model considering distributed water supply and spatial constraints of water resources, improving the model's universality. It provides concise calculation expressions for scheduling schemes, including optimal reservoir storage, optimal water supply to tributary users, optimal water supply to main stream users, and optimal tributary discharge. It transforms complex nonlinear problems into linear problems, solving not only the reservoir storage problem but also the water supply allocation problem among main stream and tributary users. It provides a method for detecting violated variables and corrects previous misconceptions in correcting violated variables, namely, not all violated variables need correction, only independent variables. It provides a search method for independent variables, rather than previous random or empirical corrections, greatly improving the accuracy of corrections. It also provides a correction method for independent variables, requiring appropriate correction strategies based on the type of constraint violation. This disclosure avoids local optimization phenomena, ensuring global optimality of results, and can be practically applied to parallel reservoir scheduling systems, providing an effective solution for the rational allocation of local water resources. Attached Figure Description
[0133] Figure 1 This is a general flowchart of a parallel reservoir scheduling method according to an embodiment of this disclosure.
[0134] Figure 2 This is a basic model diagram in a specific example disclosed in this publication.
[0135] Figure 3 This is a diagram of an independent variable modified model, which is a specific example of this disclosure. Detailed Implementation
[0136] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0137] The first aspect of this disclosure proposes a method for scheduling parallel reservoirs, the overall process of which is as follows: Figure 1 As shown, it includes the following steps:
[0138] 1) Obtain basic information data of parallel reservoirs;
[0139] In the embodiments of this disclosure, the basic information data includes: the inflow volume I of each reservoir in the parallel reservoirs at the beginning of the scheduling period. i,t The initial water storage s of each reservoir in the parallel reservoirs during the initial scheduling period i,t-1 The maximum storage capacity of each reservoir in the parallel reservoirs at the end of the scheduling period. and minimum storage capacity Water demand of each tributary user at the end of the scheduling period Maximum water supply to main stream users at the end of the scheduling period and the minimum ecological flow downstream of the main stream at the end of the scheduling period.
[0140] In this embodiment of the disclosure, there are no requirements on the data scale of the scheduling period, and it is applicable to any scheduling cycle such as seconds, minutes, hours, days, months, quarters, and years.
[0141] 2) Establish a parallel reservoir scheduling model;
[0142] In this embodiment of the disclosure, the scheduling model is a multi-objective optimization scheduling model that considers water balance, reservoir capacity, water supply to tributary users, water supply to main stream users, water discharge from tributaries, and ecological water demand constraints. The objective function is established to maximize the total benefits of the system's reservoir water storage, water supply to tributary users, and water supply to main stream users.
[0143] In one specific embodiment of this disclosure, the basic model of the parallel reservoir is as follows: Figure 2 As shown in the illustration. In the embodiments of this disclosure, the parallel reservoirs are considered to include n reservoirs, n tributary users, one main stream user, and the ecological water demand downstream of the main stream. Each tributary user is supplied with water solely by one upstream reservoir, while the main stream user is supplied with water jointly by the n upstream parallel reservoirs. Each tributary user and each reservoir has a one-to-one correspondence. Furthermore, the entire system must also meet the minimum ecological flow requirement downstream of the main stream.
[0144] 2-1) The objective function expression of the scheduling model is determined as follows:
[0145]
[0146] Among them, s i,t Let be the water storage of the i-th reservoir at the end of time period t; Let be the water supply volume of the i-th tributary user at the end of time period t; C represents the water supply volume to the main stream users at the end of time period t; i (s i,t Let be the benefit function of the water storage of the i-th reservoir at the end of time period t; The benefit function for water supply to the i-th tributary user at the end of time period t; The benefit function for water supply to mainstream users at the end of time period t; in the embodiments of this disclosure, the above three types of benefit functions are set as convex functions; the subscript t represents the scheduling time period.
[0147] 2-2) Determine the constraints of the scheduling model, including:
[0148] Water balance constraints:
[0149]
[0150] Ecological water demand constraints:
[0151]
[0152] Reservoir capacity constraints:
[0153]
[0154] Water supply constraints for tributary users:
[0155]
[0156] Water supply constraints for main stream users:
[0157]
[0158] Tributary discharge constraints:
[0159]
[0160] Among them, s i,t-1 Let be the initial water storage of the i-th reservoir at the beginning of time period t; I represents the discharge volume of the i-th tributary at the end of time period t; i,t Let be the inflow volume of the i-th reservoir at the beginning of time period t; and These are the maximum and minimum storage capacities of the i-th reservoir at the end of time period t, respectively. The maximum water supply for the i-th tributary user at the end of time period t; The maximum water supply to the main stream users at the end of time period t; The minimum ecological flow downstream of the main stream at the end of time period t; in the embodiments of this disclosure and The subscript i indicates the i-th branch.
[0161] In one embodiment of this disclosure, the benefit functions for reservoir water storage, tributary user water supply, and main stream user water supply are defined as follows:
[0162]
[0163] Where ω s,i ω represents the weight of the benefit function for the water storage of the i-th reservoir; trib,i The weight of the benefit function for water supply to the i-th tributary user; ω main Let be the benefit function weight for the i-th main stream user. A larger weight indicates a more important reservoir water storage or user water supply target. For example, the water storage s of the i-th reservoir at the end of time period t. i,t The more important it is, the higher its corresponding weight ω. s,i The larger it is, the more weights in the system sum to 1. The parameter m is the exponent of the benefit function, and m > 1 is required to satisfy the model's assumption that the benefit function is convex. The weights ω = {ω s,i ,ω trib,i ,ω main |i=1,2,...,n} and the exponent m are the input parameters of the model, where the weight ω can be set according to the reservoir water storage and user water supply priority, and the exponent m can be set to any number greater than 1, which is often set to 2 in engineering. 3) Solve for the variables to be optimized in the scheduling model to obtain the current solution of each variable to be optimized.
[0164] In the initial solution, the variables to be optimized in the scheduling model include: the water storage of each reservoir at the end of the scheduling period, the water supply of each tributary user, the water supply of the main stream user, and the water discharge of each tributary.
[0165] In the embodiments of this disclosure, the effects of water balance constraint (1a) and ecological water demand constraint (1b) are first considered to obtain the current solution of the variable to be optimized. Then, in step 4), it is checked whether each current solution satisfies other spatial constraints (equations (1c)-(1f)). The expression of the current solution is as follows:
[0166]
[0167]
[0168]
[0169]
[0170] in, Let be the current solution for the water storage of the i-th reservoir at the end of time period t. The current solution for water supply to the i-th tributary user at the end of time period t. Let t be the current solution for the water supply to the main stream users at the end of time period t. This is the current solution for the discharge volume of the i-th tributary at the end of time period t.
[0171] Based on the basic information data from step 1), the constant terms in equations (3)-(6) can be calculated: WA i.t Let be the available water volume of the i-th tributary at the end of time period t, calculated as shown in equation (7); WA be the total available water volume of the parallel reservoirs at the end of time period t, calculated as shown in equation (8); WT be the total target value of the parallel reservoirs at the end of time period t, including the total available water volume of each reservoir. Users of each branch Mainstream users and minimum ecological flow in the downstream of the main stream The calculation expression is shown in equation (9); WT-WA represents the water shortage of the parallel reservoirs at the end of time period t; parameters Let be the water shortage allocation coefficients of each reservoir, each tributary user, and the main stream user during time period t, respectively. The calculation expressions are as shown in equations (10)-(12), where parameters are introduced. and To simplify the formula.
[0172] WA i,t =s i,t-1 +I i,t (7)
[0173]
[0174]
[0175]
[0176]
[0177]
[0178] 4) Check if any of the current solutions obtained in step 3) violates the constraints of the scheduling model:
[0179] If so, then record the current solution as the violation variable, form a violation variable set from all the violation variables, and then proceed to step 5);
[0180] Otherwise, if all current solutions satisfy the constraints of the scheduling model, there are no violated variables, and each current solution is the optimal solution for the corresponding variable to be optimized. After the optimal solutions are obtained for the water storage of each reservoir, the water supply of each tributary user, the water supply of the main stream user, and the water discharge of each tributary at the end of the scheduling period, all the optimal solutions form the optimal scheduling scheme for the parallel reservoirs during the scheduling period.
[0181] In the embodiments of this disclosure, it is examined whether each current solution that has satisfied the water balance constraint (1a) and ecological water demand constraint (1b) of the scheduling model also simultaneously satisfies other spatial constraints of the scheduling model (equations (1c)-(1f)). Substituting the analytical expressions of each current solution, i.e., equations (3)-(6), into the spatial constraint equations (1c)-(1f), the violation variables (i.e., the relative deviations corresponding to the variable types corresponding to the current solution) can be obtained, as shown in the following expressions:
[0182]
[0183] Where, θ s,i θ represents the relative deviation of the current solution for the water storage capacity of the i-th reservoir; trib,i The relative deviation of the initial solution for water supply to the i-th tributary user; θ mainThe relative deviation of the current solution for water supply to mainstream users; θ l,i The relative deviation of the current solution for the discharge volume of the i-th tributary;
[0184] Substituting the basic information data from step 1) into the above formula, the relative deviation value corresponding to each current solution obtained in step 3 can be calculated. Each relative deviation value must be within the interval [0,1] to indicate that its corresponding current solution satisfies other spatial constraints of the scheduling model (Equations (1c)-(1f)).
[0185] Furthermore, θ s,i >1 indicates Violation of the minimum reservoir capacity constraint ( Violation of equation (1c)); θ s,i <0 indicates Violation of the maximum reservoir capacity constraint ( Violation of equation (1c)); θ s,i =1 means Located in the lower boundary, θ s,i =0 means Located at the upper boundary,
[0186] θ trib,i >1 indicates Violation of the minimum water supply constraint for tributary users ( Violation of formula (1d)); θ trib,i <0 indicates Violation of the maximum water supply constraint for tributary users ( Violation of formula (1d)); θ trib,i =1 means Located in the lower boundary, θ trib,i =0 means Located at the upper boundary,
[0187] θ main >1 indicates Minimum water supply in the water supply constraints for main stream users ( Violation of equation (1e)); θ main <0 indicates Violation of the maximum water supply constraint in the main stream user water supply ( Violation of equation (1e)); θ main =1 means Located in the lower boundary, θ main =0 means Located at the upper boundary,
[0188] θl,i >1 indicates Violation of the minimum discharge limit in the tributary discharge constraint ( Violation of equation (1f); From the water balance constraint (equation (1a)), it can be seen that the discharge volume of the i-th tributary is It cannot be greater than the available water volume WA of the i-th tributary. i.t , That is, θ l,i ≥0 always holds true; θ l,i =1 means Located in the lower boundary, θ l,i =0 means Located at the upper boundary,
[0189] After verifying all current solutions obtained in step 3), the set of violated variables is obtained.
[0190] 5) Search for independent variables that need to be corrected from the set of violated variables.
[0191] In the set of violation variables obtained in step 4), not all violation variables need to be corrected; only some of them do. This disclosure refers to these variables as independent variables. For an independent variable, correcting any violation variable in the set of violation variables cannot change the state of the independent variable itself in violation of the scheduling model constraints.
[0192] For example, if there are two violating variables in the set of violating variables, respectively and (where i can be any reservoir or tributary), the relative deviation values corresponding to the two violation variables are θ. s,i =1.2>1 (that is to say) ) and θ l,i =1.2>1 (that is to say) Adjust reservoir storage capacity. Set its value to the boundary it violates. (that is to say) At this time θ s,i If the value is 1), then the water resources need to be redistributed within the remaining system (i.e., the remaining portion after excluding the violating variable from the parallel reservoirs). If, after redistribution, the original violating variable... Violating the status is still not feasible, for example, after the update. The relative deviation of the violation variable in the remaining system (The upper horizontal line indicates the remaining system); while the adjusted tributary discharge volume... However, this leads to the violation of variables. The state changes from a violating state to a feasible state. This indicates that there are two violating variables. and There is only one independent variable, that is As independent variables, they need to be modified.
[0193] This situation arises because any correction to a violating variable affects the redistribution of water resources in the remaining system, thus influencing the remaining violating variables. From the perspective of relative bias (Equations (13a)-(13d)), any correction to a violating variable will affect the water shortage in the remaining system. and the water shortage distribution coefficient of the remaining system This affects the relative deviation of the remaining system. By comparing the relative deviations By considering the feasible interval [0,1], it can be determined whether the remaining other violating variables have changed from a violating state of the scheduling model constraint to a feasible state due to the correction of the violating variable.
[0194] Therefore, to find the independent variables that need correction, we first need to obtain the impact of correcting any one violating variable on the relative bias of the remaining violating variables; then, by iterating, we find the independent variables that always remain in a state of constraint violation. The specific steps are as follows:
[0195] 5-1) Based on the basic information data from step 1), select any one of the violation variables from the set of violation variables as the corrected violation variable, and calculate the correction of the remaining water deficit of the system based on this corrected violation variable. Impact:
[0196] Remaining system water shortage The calculation expression is calculated based on the type of the variable that violates the correction:
[0197] If the correction violation variable is any one of the violation sets Here, i0 is used to replace i to mark the branch (i.e., index) corresponding to the violation variable, where i0∈{1,2,...,n}, that is... like Then calculate according to equation (14a):
[0198]
[0199] If the correction violation variable is any one of the violation sets Then the variable that violates the correction is denoted as i0∈{1,2,...,n}; if Then calculate according to equation (14b):
[0200]
[0201] If the correction violates the variable in the violation set and Then calculate according to formula (14c);
[0202]
[0203] If the violation variable is any one of the violation set and Then calculate according to formula (14d);
[0204]
[0205] If the violation variable is any one of the violation set and or any and or and Then calculate according to equation (14e);
[0206]
[0207] 5-2) Based on the basic information data from step 1, the impact of correcting any violation variable on the water shortage allocation coefficient of the remaining violation variables in the residual system can be calculated, where the water shortage allocation coefficient of each violation variable in the residual system is... Any one of them;
[0208] 5-2-1) If the violation variable to be corrected is any one of the violation sets and or The method for calculating the water shortage allocation coefficients of the remaining violating variables in the violation set in the residual system is as follows:
[0209] If the remaining violation variable is any If i≠i0, then calculate according to equation (15a):
[0210]
[0211] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0212]
[0213] If the remaining violated variables are Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0214]
[0215] 5-2-2) If the modified violation variable is any one of the violation sets and or The method for calculating the water shortage allocation coefficients of the remaining violating variables in the violation set within the residual system is as follows:
[0216] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0217]
[0218] If the remaining violation variable is any If i≠i0, then calculate the following formula: Water shortage allocation coefficient in the remaining system:
[0219]
[0220] If the remaining violated variables are Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0221]
[0222] 5-2-3) If the violation variable to be corrected is in the violation set And satisfy or The method for calculating the water shortage allocation coefficient of the remaining system corresponding to each violation variable in the violation set is as follows:
[0223] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0224]
[0225] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0226]
[0227] 5-2-4) If the modified violation variable is any one of the violation sets and The method for calculating the water shortage allocation coefficients of the remaining violating variables in the violation set within the residual system is as follows:
[0228] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0229]
[0230] If the remaining violation variable is any Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0231]
[0232] If the remaining violated variables are Then calculate according to the following formula. Water shortage allocation coefficient in the remaining system:
[0233]
[0234] 1-3) Substituting the residual system water deficit corresponding to the corrected violation variable and the water deficit allocation coefficient of other violation variables in the residual system into equation (13), the relative deviation of the remaining violation variables in the residual system can be calculated. The expressions are calculated based on the types of other violated variables as follows:
[0235]
[0236] 5-4) Search for independent variables from the set of violated variables. The specific steps are as follows:
[0237] 5-4-1) Assuming there are k violations in the set of violations, construct a k×k relative deviation matrix, where the diagonal elements θ of this matrix are... 11 ,θ 22 ,...,θ kk The values are taken as the relative deviation values obtained from step 4 for the k violation variables, and the initial values of other elements in the matrix are empty; where the subscripts of each element on the diagonal are i = j ∈ K = {1, 2, ..., k}, i represents the row number of the matrix, and j represents the column number of the matrix; the expression of the relative deviation matrix is as follows:
[0238]
[0239] 5-4-2) Command number i = 1 (starting correction from the first violated variable);
[0240] 5-4-3) Remove the diagonal element θ from the i-th row. i,i The value is corrected to the interval boundary value of the relative deviation it violates; then, using equations (19a)-(19d), the value of the remaining element in the i-th row of the matrix is calculated, where θi,j The value is the relative deviation of the j-th violation variable in the remaining system after selecting the i-th violation variable in the violation set as the corrected violation variable.
[0241] For example, when i = 1, let θ 1,1 =1 or 0 (if θ 1,1 If the corresponding violated variable is located at the lower bound of the constraint, then modify θ. 1,1 If θ is 1; 1,1 If the corresponding violation variable is located at the upper bound of the constraint, then modify θ. 1,1 (0).
[0242] In one embodiment of this disclosure, the violation variable matrix is represented by θ 1,1 Taking 1 as an example, we horizontally traverse the elements in the first row whose column numbers are j = {2, 3, ..., k}. Based on the type of the violation variable corresponding to each element, we use equations (19a)-(19d) to obtain θ. 1,1 The relative deviations of the remaining violating variables after correction The resulting matrix is as follows:
[0243]
[0244] 5-4-4) Let i = i+1, and then return to step 5-4-3) until i = k. Then, obtain the relative deviation of the remaining violation variables in the remaining system in the violation set corresponding to each violation variable after it is selected as the corrected violation variable, and obtain the corrected relative deviation matrix.
[0245] In one embodiment of this disclosure, after all the relative deviation values of the violation variables have been corrected once (and all corrected to 1), the matrix form is obtained as follows:
[0246]
[0247] 5-4-5) Traverse each column of the corrected relative deviation matrix obtained in step 5-4-4) and determine:
[0248] If the minimum value of any element other than the diagonal element in the column is less than 0, or the maximum value of any element other than the diagonal element is less than 1, then the violation variable corresponding to the diagonal element of the column is an independent variable.
[0249] The search methods described above can be used to identify the independent variables that require correction.
[0250] 6) Modify independent variables;
[0251] In embodiments of this disclosure, modifying independent variables includes:
[0252] 6-1) Make corrections based on the type of constraints violated by the independent variables;
[0253] 6-1-1) If the independent variable obtained in step 5 violates any of the following constraints: reservoir capacity constraint (1c), tributary user water supply constraint (1d), or main stream user water supply constraint (1e), then the value of the independent variable is corrected to the boundary value it violates and used as the optimal solution for that independent variable. In one embodiment of this disclosure, the corresponding solution models are as follows: Figure 3 (a), Figure 3 (b) and Figure 3 As shown in (c); the specific correction method is as follows:
[0254] If the independent variable violates the reservoir capacity constraint equation (1c), then the value of the independent variable is corrected to... or Its optimal solution The expression is as follows:
[0255]
[0256] If the independent variable violates the tributary user water supply constraint (Equation 1d), then the value of the independent variable is corrected to 0 or Its optimal solution The expression is as follows:
[0257]
[0258] If the independent variable violates the main stream user water supply constraint (Equation 1e), then the value of the independent variable is corrected to 0 or Its optimal solution The expression is as follows:
[0259]
[0260] 6-1-2) If the independent variable obtained in step 5) violates the tributary discharge constraint equation (1f), then the tributary containing the independent variable is labeled j, and the value of the independent variable is corrected to the boundary value it violates and used as the optimal solution for the independent variable, i.e. Its corresponding solution model is as follows Figure 3 As shown in (d), the optimal solution for the reservoir storage capacity on tributary j is then calculated. Optimal solution for water supply to tributary users The expression is as follows:
[0261]
[0262]
[0263] Based on the basic information data from step 1), the constant terms in analytical expressions (23)-(24) can be calculated: where WA j.t WT represents the available water volume of the j-th tributary during time period t; j,t Let t be the total target value of reservoir water storage and water supply to users of the j-th tributary during time period t, i.e., Equation (25); Let be the adjusted water shortage allocation coefficients for the j-th reservoir and the j-th tributary user, respectively, as shown in equations (26) and (27), where the parameter is introduced. To simplify the formula:
[0264]
[0265]
[0266]
[0267] 6-2) Remove all variables that have obtained the optimal solution from the set of variables to be optimized, and then return to step 3).
[0268] A second aspect of this disclosure provides a parallel reservoir scheduling device, comprising:
[0269] The acquisition module is used to acquire basic information data of parallel reservoirs;
[0270] The parallel reservoir scheduling model solution module is used to establish a parallel reservoir scheduling model, solve the parallel reservoir scheduling model using the basic information data of the parallel reservoirs, and obtain the current solution of the variable to be optimized in the parallel reservoir scheduling model;
[0271] The verification module is used to verify the current solution of the variable to be optimized. After the verification is completed, the optimal scheduling scheme of the parallel reservoir is obtained.
[0272] A third aspect of this disclosure provides an electronic device, comprising:
[0273] At least one processor; and a memory communicatively connected to said at least one processor;
[0274] The memory stores instructions that can be executed by the at least one processor, and the instructions are configured to execute the above-described parallel reservoir scheduling method.
[0275] A fourth aspect of this disclosure provides a computer-readable storage medium storing computer instructions for causing the computer to execute the aforementioned parallel reservoir scheduling method.
[0276] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0277] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform a parallel reservoir scheduling method according to the above embodiments.
[0278] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0279] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0280] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0281] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this application pertain.
[0282] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0283] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0284] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.
[0285] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0286] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A parallel reservoir scheduling method, characterized in that: include: Obtain basic information data of parallel reservoirs; Establishing a parallel reservoir dispatching model, solving the parallel reservoir dispatching model using basic information data of the parallel reservoirs, and obtaining a current solution of the variables to be optimized in the parallel reservoir dispatching model; Testing the current solution of the variable to be optimized, and after the testing is completed, obtaining the optimal dispatching plan of the parallel reservoirs; Wherein, the establishment of the parallel reservoir scheduling model includes: 1) The objective function expression of the scheduling model is as follows: Among them, s i,t is the water storage capacity of the i-th reservoir at the end of period t; is the water supply to the ith tributary user at the end of period t; C is the water supply to the main stream users at the end of period t; i (s i,t ) is the benefit function of the storage of the ith reservoir at the end of period t; is the benefit function of water supply to the ith tributary user at the end of period t; d t main is the benefit function of water supply to mainstream users at the end of period t; the subscript t represents the dispatching period; Among them, ω s,i is the benefit function weight of the i-th reservoir; ω trib,i The weight of the benefit function for supplying water to the i-th tributary user; ω main is the benefit function weight of the ith mainstream user, Parameter m is the exponent of the benefit function, m>1; 2) Determine the constraints of the scheduling model, including: Water balance constraints: Ecological water demand constraints: Reservoir capacity constraints: Water supply constraints for tributary users: Water supply constraints for mainstream users: Constraints on water discharge from tributaries: Among them, s i,t-1 is the initial water storage of the i-th reservoir at the beginning of period t; I is the discharge of the ith tributary at the end of period t; i,t is the water inflow of the i-th reservoir at the beginning of period t; and are the maximum storage capacity and minimum storage capacity of the i-th reservoir at the end of period t, respectively; is the maximum water supply to the ith tributary user at the end of period t; is the maximum water supply to the main stream users at the end of period t; is the minimum ecological flow in the downstream of the main stream at the end of period t; The method of solving the parallel reservoir scheduling model by using the basic information data of the parallel reservoirs to obtain the current solution of the variables to be optimized in the parallel reservoir scheduling model is specifically: The current solution expression of the variables to be optimized in the parallel reservoir operation model is as follows: in, is the current solution of the storage capacity of the i-th reservoir at the end of period t, is the current solution for water supply to the ith tributary user at the end of period t, is the current solution of water supply to main stream users at the end of period t, is the current solution of the discharge of the ith tributary at the end of period t; WA i.t is the available water volume of the ith tributary at the end of period t; WA is the total available water volume of the parallel reservoirs at the end of period t; WT is the total target value of the parallel reservoirs at the end of period t; WT-WA represents the water shortage of the parallel reservoirs at the end of period t; parameters They are the water shortage allocation coefficient of each reservoir in period t, the water shortage allocation coefficient of each tributary user in period t, and the water shortage allocation coefficient of the mainstream user in period t; W.A. i,t = s i,t-1 +I i,t Among them, the parameters 2. The method according to claim 1, characterized in that The checking of the current solution of the variable to be optimized comprises: Selecting the current solutions that violate the constraint conditions of the parallel reservoir operation model from the current solutions of the variables to be optimized to form a set of violating variables; Searching for an independent variable from the set of violating variables, the independent variable being a violating variable whose state of violating the constraint condition of the scheduling model will not be changed by modifying any other violating variable in the set of violating variables; The independent variables are modified.
3. The method according to claim 2, characterized in that The current solutions that violate the constraint conditions of the parallel reservoir scheduling model are selected from the current solutions of the variables to be optimized to form a set of violating variables, including: Determine the current solution: If the current solutions do not violate the constraints of the parallel reservoir scheduling model, then the current solutions are the optimal solutions corresponding to the variables to be optimized. After the verification, the optimal scheduling scheme of the parallel reservoirs is obtained, including: the optimal solution of the water storage capacity of each reservoir at the end of the scheduling period, the optimal solution of the water supply to users of each tributary, the optimal solution of the water supply to users of the main stream, and the optimal solution of the water discharge of each tributary; If there is a current solution in the current solution that violates the constraint condition of the parallel reservoir scheduling model, the current solution that violates the constraint condition of the parallel reservoir scheduling model is recorded as a violating variable, and all the violating variables are formed into the violating variable set; The method for determining the current solution is to calculate the relative deviation of each current solution, and the expression is as follows: Among them, θ s,i is the relative deviation of the current solution of the water storage capacity of the i-th reservoir; θ trib,i The relative deviation of the initial solution for supplying water to the i-th tributary user; θ main The relative deviation of the current solution for supplying water to mainstream users; θ l,i It is defined as the relative deviation of the current solution of the discharge volume of the i-th tributary.
4. The method according to claim 3, characterized in that The step of searching for an independent variable from the set of violating variables comprises: 1) Select any one of the violation variables from the set of violation variables as a correction violation variable, and calculate the water shortage of the remaining system corresponding to the correction of the correction violation variable The details are as follows: If the modified violation variable is any of the violations in the set The corrected violation variable is recorded as like Then the water shortage calculation expression of the remaining system is as follows; If the modified violation variable is in the violation set The corrected violation variable is recorded as like The water shortage calculation expression of the remaining system is as follows: If the modified violation variable is in the violation set and The water shortage calculation expression of the remaining system is as follows: If the modified violation variable is any of the violations in the set The corrected violation variable is recorded as i0∈{1,2,...,n}; if The water shortage calculation expression of the remaining system is as follows: If the modified violation variable is any of the violations in the set and or any and or and The water shortage calculation expression of the remaining system is as follows: 2) Calculating the water shortage distribution coefficient of the remaining violation variables in the violation set corresponding to the correction of the corrected violation variable in the remaining system; specifically as follows: 2-1) If the modified violation variable is any of the violation sets and or Then the calculation method of the water shortage distribution coefficient of the remaining violation variables in the violation set in the remaining system is as follows: If the remaining violating variable is any If i≠i0, the following formula is used to calculate the The water deficit distribution coefficient in the remaining system is: If the remaining violating variable is any Then calculate the following formula The water deficit distribution coefficient in the remaining system is: If the remaining violating variable is Then calculate the following formula The water deficit distribution coefficient in the remaining system is: 2-2) If the corrected violation variable is any of the violation sets and or Then the calculation method of the water shortage distribution coefficient of the remaining violation variables in the violation set in the remaining system is as follows: If the remaining violating variable is any Then calculate the The water deficit distribution coefficient in the remaining system is: If the remaining violating variable is any Then calculate the The water deficit distribution coefficient in the remaining system is: If the remaining violating variable is Then calculate the The water deficit distribution coefficient in the remaining system is: 2-3) If the corrected violation variable is in the violation set And meet or Then the calculation method of the water shortage distribution coefficient of the remaining violation variables in the violation set in the remaining system is as follows: If the remaining violating variable is any Then calculate the The water deficit distribution coefficient in the remaining system is: If the remaining violating variable is any Then calculate the The water deficit distribution coefficient in the remaining system is: 2-4) If the modified violation variable is any of the violation sets and Then the calculation method of the water shortage distribution coefficient of the remaining violation variables in the violation set in the remaining system is as follows: If the remaining violating variable is any Then calculate the following formula The water deficit distribution coefficient in the remaining system is: If the remaining violating variable is any Then calculate the following formula The water deficit distribution coefficient in the remaining system is: If the remaining violating variable is Then calculate the The water deficit distribution coefficient in the remaining system is: 3) Calculate the relative deviation of each remaining violation variable in the remaining system. The expressions are as follows: 4) Search for independent variables from the set of violating variables. The specific steps are as follows: 4-1) Let there be k violating variables in the violating variable set, and establish a k×k relative deviation matrix, where the diagonal elements θ of the matrix are 11 ,θ 22 ,...,θ kk The values of are taken as the relative deviations of the k violating variables, and the initial values of the elements in other positions in the matrix are empty; the subscripts of the diagonal elements i=j∈K={1,2,...,k}, i represents the row number of the matrix, and j represents the column number of the matrix; the relative deviation matrix expression is as follows: 4-2) Set row number i=1; 4-3) Replace the diagonal element θ of the i-th row i,i After the value is corrected to the interval boundary value of the relative deviation it violates, the value of the remaining elements in the i-th row of the matrix is calculated, where θ i,j The value of is the relative deviation of the jth violating variable in the set in the remaining system after selecting the i-th violating variable in the violating set as the corrected violating variable; 4-4) Let i=i+1, and then return to 4-3) until i=k, and obtain the relative deviation of the remaining violating variables in the corresponding violating set after each violating variable is selected as the corrected violating variable in the remaining system, and obtain the corrected relative deviation matrix; 4-5) Traverse each column of the corrected relative deviation matrix obtained in step 4-4) and determine: If the minimum value of the elements other than the diagonal elements in the column is less than 0 or the maximum value of the elements other than the diagonal elements is less than 1, then the violating variable corresponding to the diagonal element of the column is the independent variable.
5. The method according to claim 4, characterized in that The modifying of the independent variable comprises: 1) Make corrections based on the type of constraints violated by the independent variables, including: 1-1) If the independent variable violates any of the reservoir capacity constraints, tributary user water supply constraints or main stream user water supply constraints, the value of the independent variable is corrected to the corresponding boundary value in the violated constraint and is taken as the optimal solution of the independent variable; If the independent variable is any and the reservoir capacity constraint is violated, then the value of the independent variable is corrected to or The optimal solution for the independent variable The expression is as follows: If the independent variable is any If the water supply constraint of the tributary user is violated, the value of the independent variable is corrected to 0 or The optimal solution for the independent variable The expression is as follows: If the independent variable is If the water supply constraint of the main stream user is violated, the value of the independent variable is corrected to 0 or The optimal solution for the independent variable The expression is as follows: 1-2) If the independent variable is any If the tributary discharge constraint is violated, the tributary where the independent variable is located is marked with j, and then the value of the independent variable is corrected to the corresponding boundary value in the violated constraint and used as the optimal solution of the independent variable, that is, Calculate the optimal solution for the reservoir water storage capacity on tributary j Optimal solution for water supply to tributary users The expression is as follows: Among them, WT j,t is the total target value of reservoir water storage and tributary user water supply for the jth tributary in period t; are the adjusted water shortage allocation coefficients for the jth reservoir and the jth tributary user, respectively; Among them, the parameters 2) Excluding the variables corresponding to each optimal solution from the set of variables to be optimized, and then resolving the parallel reservoir scheduling model.
6. A parallel reservoir dispatching device for executing the method as claimed in claim 1, characterized in that: include: An acquisition module is used to obtain basic information data of parallel reservoirs; A parallel reservoir dispatching model solving module is used to establish a parallel reservoir dispatching model, solve the parallel reservoir dispatching model using the basic information data of the parallel reservoirs, and obtain the current solution of the variables to be optimized in the parallel reservoir dispatching model; The testing module is used to test the current solution of the variable to be optimized, and after the test is completed, the optimal dispatching plan of the parallel reservoirs is obtained.
7. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; Wherein, the memory stores instructions executable by the at least one processor, and the instructions are configured to execute a parallel reservoir scheduling method as described in any one of claims 1 to 5 above.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute a parallel reservoir scheduling method as described in any one of claims 1-5.
