Urban water science dispatching method, device, storage medium and electronic equipment
The evaluation of urban water dispatching plans is simplified through prediction models and scoring rules, which solves the complex problem of evaluating the hydraulic model of the water supply network and achieves fast and accurate evaluation and optimization of dispatching plans.
Patent Information
- Application Number
- CN202410658230.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-27
AI Technical Summary
In the process of urban water dispatch, the evaluation of dispatch plans based on the hydraulic model of the water supply network is complex and cumbersome, making it difficult to determine a reasonable dispatch plan.
The prediction model is used to predict the outlet pressure, outlet flow rate, clean water tank level and water pump energy consumption of urban water plants, and the optimal dispatch plan is determined through scoring rules to simplify the evaluation process.
Quickly and accurately evaluate the dispatch plan, reducing the difficulty of determining a reasonable dispatch plan and improving the rationality and superiority of the dispatch plan.
Smart Images

Figure CN118246699B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water dispatching, and in particular to a method, device, storage medium and electronic equipment for scientific dispatching of urban water affairs. Background Art
[0002] Urban water dispatch refers to the scientific dispatch and management of water resources to ensure the safety, efficiency and sustainability of urban water supply. This involves unified planning, coordination and management of water sources, water plants, water supply networks, water users and other links to achieve optimal allocation and rational use of water resources. The main tasks of urban water dispatch include: reasonably arranging water intake plans at water sources according to urban water demand; coordinating the production and water supply plans of various water plants to ensure stable and sufficient water supply.
[0003] At present, with the acceleration of urbanization and the increasing complexity of water demand, urban water dispatching faces many challenges. The most important one is how to achieve the rationality and superiority of urban water dispatching plans. The usual approach is: based on the hydraulic model of the water supply network, evaluate the effect of the urban water dispatching plan to determine a better dispatching plan. However, in the process of urban water dispatching, the water supply network involved is relatively complex. Based on the hydraulic model of the water supply network, the process of simulating and evaluating the dispatching plan is relatively complicated and cumbersome, which makes it difficult to determine a reasonable dispatching plan. Summary of the invention
[0004] In order to reduce the difficulty of determining a reasonable scheduling plan, the present application provides a method, device, storage medium and electronic equipment for scientific scheduling of urban water affairs.
[0005] In a first aspect of the present application, a method for scientifically dispatching urban water services is provided, which specifically includes:
[0006] Obtaining a first prediction model corresponding to the urban water plant, where the first prediction model is used to predict the outlet pressure and outlet flow of the urban water plant;
[0007] Determine the total water demand of urban users in the scheduling short-term evaluation period, and obtain the target water pump state of the urban water plant in the single scheduling plan at the scheduling moment, and based on the target water pump state and the total water demand, predict the target factory pressure and target factory flow corresponding to the scheduling short-term evaluation period through the first prediction model, wherein the scheduling short-term evaluation period is a short-term time period from the scheduling moment to the short-term preset moment;
[0008] Determine the target inlet flow rate corresponding to the urban water plant under the single scheduling scheme, predict the target clear water tank level change corresponding to the urban water plant during the scheduling short-term evaluation period based on the target outlet flow rate and the target inlet flow rate through a second prediction model corresponding to the urban water plant, and determine the target clear water tank level during the scheduling short-term evaluation period according to the target clear water tank level change, wherein the second prediction model is used to predict the clear water tank level change of the urban water plant;
[0009] Based on the target water pump state and the target factory pressure, the target water pump energy consumption of the urban water plant is predicted by a third prediction model corresponding to the urban water plant, wherein the third prediction model is used to predict the water pump energy consumption of the urban water plant;
[0010] Based on the target factory pressure, target clear water tank level, target water pump energy consumption and preset scheduling times corresponding to each of the individual scheduling plans, the total score of the corresponding individual scheduling plan is determined by a preset scoring rule, and the individual scheduling plan with the largest total score is determined as the optimal scheduling plan.
[0011] By adopting the above technical solution, according to the total water demand of urban users in the short-term evaluation period of scheduling and the target pump state of each water pump in the urban water plant in the single scheduling plan to be executed at the scheduling moment, the factors affecting the factory pressure and target factory flow generated after the execution of the single scheduling plan at the scheduling moment, that is, in the short-term evaluation period of scheduling, are determined. Further, through the first prediction model, based on the target water pump state and the total water demand, the target factory pressure and target factory flow in the short-term evaluation period of scheduling are predicted. Further, the target inflow flow of the urban water plant after the execution of the single scheduling plan is determined, and the target inflow flow and target factory flow in the short-term evaluation period of scheduling are input into the second prediction model, and finally the target clear water tank level in the short-term evaluation period of scheduling after the execution of the single scheduling plan is determined. Then, the target water pump status and target factory pressure are input into the third prediction model to obtain the target water pump energy consumption in the short-term evaluation period of scheduling. Finally, based on the four indicators of target factory pressure, target clear water tank level, target water pump energy consumption and preset scheduling times, the corresponding single scheduling plan is scored to better evaluate the rationality and superiority of the single scheduling plan. Finally, the single scheduling plan with the largest total score is determined as the optimal scheduling plan, so as to quickly and accurately evaluate the scheduling plan and reduce the difficulty of determining a reasonable scheduling plan.
[0012] Optionally, based on the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each of the single scheduling schemes, a total score of the corresponding single scheduling scheme is determined by a preset scoring rule, specifically including:
[0013] The target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each of the individual scheduling schemes are scored respectively through a preset scoring function to obtain a corresponding indicator score;
[0014] According to the short-term evaluation period of the scheduling, the corresponding first weight is determined, and the second weight corresponding to the target factory pressure, the target clear water tank level, the target water pump energy consumption and the preset scheduling times is determined by the hierarchical analysis method;
[0015] According to the first weight and the second weight, a weighted average is performed on the scores of each indicator to obtain a total score of the corresponding single scheduling solution.
[0016] By adopting the above technical solution, after determining the indicator scores of the four indicators of target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times for each individual scheduling plan, the performance of each indicator is then evaluated from the time dimension, that is, the first weight is determined at each moment in the short-term evaluation period of the scheduling. Further, from the indicator dimension, the second weight of each indicator is determined separately to evaluate its influence on the rationality of the corresponding individual scheduling plan. Finally, according to the first weight and the second weight of the indicator, the corresponding indicator is weighted and averaged to obtain the total score of the corresponding individual scheduling plan, thereby achieving an objective and comprehensive evaluation of the rationality and superiority of the individual scheduling plan.
[0017] Optionally, the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each of the single scheduling schemes are scored respectively by a preset scoring function to obtain corresponding indicator scores, specifically including:
[0018] The target factory pressure corresponding to each of the single scheduling schemes is scored by a preset first scoring function to obtain a corresponding first indicator score, wherein when the target factory pressure exceeds the upper pressure limit, the greater the target factory pressure, the lower the first indicator score; when the target factory pressure does not exceed the lower pressure limit, the greater the target factory pressure, the greater the first indicator score; when the target factory pressure is between the lower pressure limit and the upper pressure limit, the first indicator score is 1;
[0019] The target clear water tank liquid level corresponding to each of the single scheduling schemes is scored by a preset second scoring function to obtain a corresponding second indicator score, wherein when the target clear water tank liquid level exceeds the upper limit of the liquid level, the larger the target clear water tank liquid level is, the lower the second indicator score is; when the target clear water tank liquid level does not exceed the lower limit of the liquid level, the larger the target clear water tank liquid level is, the larger the second indicator score is; when the target clear water tank liquid level is between the lower limit of the liquid level and the upper limit of the liquid level, the second indicator score is 1;
[0020] The target water pump energy consumption corresponding to each of the single scheduling schemes is scored by a preset third scoring function to obtain a corresponding third indicator score, wherein the third scoring function is semi-normally distributed, and the greater the target water pump energy consumption, the smaller the third indicator score;
[0021] The preset scheduling times corresponding to each of the single scheduling schemes are scored using a preset fourth scoring function to obtain a corresponding fourth indicator score, and the fourth scoring function is an indicative function.
[0022] By adopting the above technical solution, the first indicator score of the target factory pressure of a single scheduling scheme is determined through the first scoring function, so as to evaluate the rationality of the factory pressure after the execution of this single scheduling scheme at the scheduling moment to a certain extent. Similarly, the rationality of the clear water tank level, water pump energy consumption and preset scheduling times after this single scheduling scheme is evaluated in turn through the second scoring function, the third scoring function and the fourth scoring function, so as to facilitate the subsequent evaluation of the rationality and superiority of the execution of this single scheduling scheme at the scheduling moment.
[0023] Optionally, the obtaining of the first prediction model corresponding to the urban water plant specifically includes:
[0024] Constructing an equation expression for the outlet pressure or outlet flow of the urban water plant;
[0025] Determine the final value of each parameter in the equation expression, substitute each final value into the equation expression, obtain the first prediction model and store it in a database, and obtain the first prediction model from the database. The equation expression is:
[0026]
[0027]
[0028] In the formula, is the discharge pressure or discharge flow of the urban water plant at time t; is the total water demand at time t; is the state of pump i at time t, is a dummy variable for intraday periods. If time t belongs to intraday period j, then Otherwise, take , is the transformation parameter of the total water demand, with a value range of (0, +∞), parameter c is the intercept term, and parameter Total water demand conversion Change the factory pressure or factory flow The effect of The effect of starting the pump on the change of the factory pressure or factory flow rate, is the threshold of the pump i state at time t, parameter is the effect of the intraday dummy variable on the change of the factory pressure or factory flow, and the parameter is the error term.
[0029] By adopting the above technical solution, and The product of can better reflect the influence of each pump on the factory pressure or factory flow. The influence of each pump is accumulated to get Since the intraday period will also affect the factory pressure or factory flow, and The product of reflects the impact of each intraday period on the factory pressure or factory flow, and sums up the intraday period and The product of , thus better reflecting the overall impact of all intraday time periods on the factory pressure or factory flow. Finally, the impact of the total water demand on the factory pressure or factory flow is taken into account, and the equation expression of the factory pressure or factory flow is finally determined. Further, the final value of each parameter in the equation expression is determined, substituted into the equation expression, and the first prediction model that can accurately predict the factory pressure or factory flow is determined.
[0030] Optionally, the method further includes:
[0031] If the dispatching operation in the optimal dispatching scheme is the opening and closing of the water pump of the urban water plant, then when it is necessary to determine the future long-term optimal dispatching scheme from the current moment to the long-term preset moment, determine the dispatching trigger moment corresponding to each of the single dispatching schemes in the period from the dispatching moment to the long-term preset moment, the dispatching trigger moment is the future moment when the factory pressure is lower than the lower pressure limit or the factory pressure exceeds the upper pressure limit, and the dispatching moment is earlier than the long-term preset moment;
[0032] Based on the scoring rule, selecting the best scheduling scheme to be triggered from the scheduling schemes corresponding to each scheduling triggering moment of the same single scheduling scheme;
[0033] Combine each of the single scheduling schemes with the corresponding optimal scheduling schemes to be triggered to obtain a scheme chain, and determine the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each of the scheme chains;
[0034] Through the scoring rules, based on the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each of the solution chains, the total score of the corresponding solution chain is determined, and the starting point solution in the solution chain with the largest total score is determined as the future long-term optimal scheduling solution. The starting point solution is the scheduling solution with the earliest scheduling time node in the corresponding solution chain.
[0035] By adopting the above technical solution, the optimal scheduling scheme to be triggered at each scheduling triggering moment of a single scheduling scheme is evaluated through the preset scoring rules. Then, the single scheduling scheme is combined with the corresponding optimal scheduling schemes to be triggered to obtain a scheme chain. Each scheme chain is regarded as an overall scheduling scheme. The total score of the scheme chain is determined through the preset scoring rules, and the starting point scheme in the scheme chain with the largest total score is selected as the future long-term optimal scheduling scheme, so as to more accurately determine the long-term optimal scheduling scheme at the scheduling moment.
[0036] Optionally, the method comprises:
[0037] Determine the total score of each of the solution chains as the target dependent variable, and determine the starting solution in each of the solution chains as the target independent variable;
[0038] The functional relationship between the target independent variable and the target dependent variable is fitted by a preset neural network model to obtain a value function.
[0039] By adopting the above technical solution, the functional relationship between the target dependent variable and the target independent variable is fitted through a preset neural network model to obtain a value function. Therefore, when determining the long-term optimal scheduling plan in the future, there is no need to simulate the effect after the entire plan chain is executed. It is only necessary to determine the value function through the starting plan in the plan chain, and determine the starting plan in the plan chain with the largest value function as the long-term optimal scheduling plan. In this way, based on long-term considerations, a more superior scheduling plan at the scheduling moment can be obtained more quickly.
[0040] Optionally, determining the target inflow flow corresponding to the urban water plant under the single scheduling scheme specifically includes:
[0041] Determining the status of the raw water pumps in the raw water pump room in the single scheduling scheme;
[0042] Based on the raw water pump state, a target inlet flow rate corresponding to the urban water plant is predicted by a preset fourth prediction model, and the fourth prediction model is used to predict the inlet flow rate of the urban water plant.
[0043] By adopting the above technical scheme, since the pump status of the raw water pump room will affect the water outlet flow of the raw water pump room, and further affect the inflow flow of the urban water plant, therefore, the raw water pump status in a single scheduling scheme at the scheduling moment is determined and input into the fourth prediction model. The target inflow flow in the short-term evaluation period after the single scheduling scheme can be predicted, thereby facilitating the subsequent determination of the optimal scheduling scheme based on the target inflow flow.
[0044] In a second aspect of the present application, a scientific urban water dispatching device is provided, which specifically includes:
[0045] A model acquisition module, used to acquire a first prediction model corresponding to the urban water plant, wherein the first prediction model is used to predict the outlet pressure and outlet flow of the urban water plant;
[0046] A factory determination module is used to determine the total water demand of urban users in the scheduling short-term evaluation period, and obtain the target water pump state of the urban water plant in the single scheduling plan at the scheduling moment, and based on the target water pump state and the total water demand, predict the target factory pressure and target factory flow corresponding to the scheduling short-term evaluation period through the first prediction model, and the scheduling short-term evaluation period is a short-term time period from the scheduling moment to the short-term preset moment;
[0047] A liquid level determination module, used to determine the target inlet flow rate corresponding to the urban water plant under the single scheduling scheme, based on the target outlet flow rate and the target inlet flow rate, through the second prediction model corresponding to the urban water plant, predict the target clear water tank liquid level change corresponding to the urban water plant during the scheduling period of the scheduling short-term evaluation period, and determine the target clear water tank liquid level during the scheduling period of the scheduling short-term evaluation period according to the target clear water tank liquid level change, the second prediction model is used to predict the clear water tank liquid level change of the urban water plant;
[0048] an energy consumption determination module, configured to predict the target water pump energy consumption of the urban water plant through a third prediction model corresponding to the urban water plant based on the target water pump state and the target factory pressure, wherein the third prediction model is used to predict the water pump energy consumption of the urban water plant;
[0049] A scheme determination module is used to determine the total score of the corresponding single scheduling scheme based on the target factory pressure, target clear water tank level, target water pump energy consumption and preset scheduling times corresponding to each of the single scheduling schemes through a preset scoring rule, and determine the single scheduling scheme with the largest total score as the optimal scheduling scheme.
[0050] By adopting the above technical solution, the model acquisition module obtains the first prediction model, and then the factory determination module predicts the target factory pressure and target factory flow of the urban water plant in the short-term evaluation period of scheduling based on the total water demand and the target water pump state through the first prediction model. Then the liquid level determination module predicts the target clear water tank liquid level change through the second prediction model, and then determines the corresponding target clear water tank liquid level in the short-term evaluation period of scheduling. Then, the energy consumption determination module predicts the target water pump energy consumption through the third prediction model based on the target water pump state and the target factory pressure. Finally, the scheme determination module scores each individual scheduling scheme, and determines the single scheduling scheme with the largest total score as the optimal scheduling scheme.
[0051] In a third aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps described in any one of the first aspects are performed.
[0052] In a fourth aspect of the present application, an electronic device is provided, specifically comprising:
[0053] A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the processor is used to load and execute the computer program stored in the memory so that the electronic device performs the method as described in any one of the first aspects.
[0054] In summary, the present application includes at least one of the following beneficial technical effects: through the first prediction model, based on the target water pump state and the total water demand, the target factory pressure and the target factory flow are predicted. Further, the target inflow flow of the urban water plant after the execution of a single scheduling plan is determined, and the target inflow flow and the target factory flow at the scheduling moment are input into the second prediction model, and finally the target clear water tank level after the execution of the single scheduling plan is determined. Then the target water pump state and the target factory pressure are input into the third prediction model to obtain the target water pump energy consumption in the short-term evaluation period of the scheduling, and finally the corresponding single scheduling plan is scored on the four indicators of target factory pressure, target clear water tank level, target water pump energy consumption and preset scheduling times, so as to better evaluate the rationality and superiority of the single scheduling plan, and finally the single scheduling plan with the largest total score is determined as the optimal scheduling plan, so as to quickly and accurately evaluate the scheduling plan and reduce the difficulty of determining a reasonable scheduling plan. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flow chart of a method for scientifically dispatching urban water affairs provided in an embodiment of the present application;
[0056] Figure 2 is a schematic diagram of a scoring function provided in an embodiment of the present application;
[0057] Figure 3 It is a flow chart of another method for scientifically dispatching urban water affairs provided in an embodiment of the present application;
[0058] Figure 4 It is a structural schematic diagram of a scientific dispatching device for urban water affairs provided in an embodiment of the present application;
[0059] Figure 5 It is a structural schematic diagram of another urban water science dispatching device provided in an embodiment of the present application.
[0060] Explanation of the accompanying drawings: 11. Model acquisition module; 12. Factory determination module; 13. Liquid level determination module; 14. Energy consumption determination module; 15. Solution determination module; 16. Long-term optimization module; 17. Rapid optimization module. DETAILED DESCRIPTION
[0061] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0062] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a concrete way.
[0063] In the description of the embodiments of the present application, the term "and / or" is only a kind of association relationship describing the associated objects, indicating that there may be three kinds of relationships, for example, A and / or B, which can represent: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0064] See also Figure 1The present application embodiment discloses a flow chart of a method for scientifically dispatching urban water affairs, which can be implemented by a computer program or run on an urban water affairs scientific dispatching device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application, specifically including:
[0065] S101: Obtain a first prediction model corresponding to the urban water plant, where the first prediction model is used to predict the outlet pressure and outlet flow of the urban water plant.
[0066] Specifically, the city water plant is an important part of the city water supply system, which supplies tap water that meets the drinking water standards to users in the city through water pumps. In the embodiment of the present application, the city water plant can be a single water plant, and in other embodiments, the city water plant can also represent multiple water plants. Among them, the city water plant includes a clear water tank, which refers to a storage structure for the city water plant to evenly supply water and meet the uneven water use of users. The specific process is: when the city water plant supplies water, the water from the water source is first transported to the city water plant through the raw water pump room, and finally to the clear water tank, so as to control the liquid level in the clear water tank within a reasonable range. Furthermore, the first prediction model corresponding to the urban water plant is obtained. Since the factory pressure and factory flow of the urban water plant are affected by the total water demand of urban users and the water pump state of the urban water plant, that is, the opening and closing of the water pump, for example, the water pump state remains unchanged, the greater the total water demand, the smaller the factory pressure is usually; under the condition that the total water demand remains unchanged, when the urban water plant or other urban water plants turn on the water pump, the factory pressure of this urban water plant will increase. Based on this relationship, the first preset prediction model is constructed, so that the first preset prediction model can predict the factory pressure and factory flow of this urban water plant in the future according to the total water demand and the water pump state. Among them, the factory pressure refers to the pressure when the urban water flows out of the water outlet of the urban water plant, which is used to ensure that the water can be smoothly transported to various areas of the city. The factory flow refers to the amount of water from the water outlet of the urban water plant per unit time, reflecting the water supply capacity and efficiency of the urban water plant.
[0067] In one achievable implementation, the first prediction model corresponding to the urban water plant is obtained, specifically:
[0068] The equation for constructing the discharge pressure or discharge flow of a city water plant is:
[0069]
[0070] In the formula, is the discharge pressure or discharge flow of the urban water plant at time t; is the total water demand at time t; is the state of pump i at time t, is a dummy variable for intraday periods. If time t belongs to intraday period j, then Otherwise, take , is the transformation parameter of the total water demand, with a value range of (0, +∞), parameter c is the intercept term, and parameter Total water demand conversion Change the factory pressure or factory flow The effect of It is the conversion parameter of factory pressure or factory flow. The effect of starting the pump on the change of the factory pressure or factory flow rate, is the threshold of the pump i state at time t, parameter is the effect of the intraday dummy variable on the change of the factory pressure or factory flow, and the parameter is the error term. M represents the water pump M, and K represents the intraday period K.
[0071] when Less than hour, If it is 0, the pump status change will not affect the factory pressure or factory flow. When time t does not belong to the intraday period j, , that is, the intraday period has no effect on the factory pressure or factory flow.
[0072] It should be noted that water pump i can be the water pump of this city’s water plant, or it can be the water pump of this city’s water plant and / or the water pump of other water plants in the city. In addition, since the change in the distribution ratio of the total water demand among urban users affects the factory pressure or factory flow, and this distribution ratio is closely related to the intraday time period. Therefore, in this embodiment of the application, the intraday time period dummy variable is also used as an independent variable. Among them, the intraday time period can be understood as the time period that affects the factory pressure or factory flow, and the intraday time period dummy variable is a virtual variable that represents the impact of the intraday time period on the factory pressure or factory flow, and usually takes a value of 0 or 1. In other embodiments, if water pump i is a variable frequency pump, then It can be the ratio of the frequency of pump i at time t to its rated frequency, thus reflecting the state of the pump at time t. Similarly, parameter The effect of increasing the pump frequency by 1 unit on the change in the factory pressure or factory flow rate can be calculated.
[0073] Further, the final value of each parameter in the equation expression is determined, each final value is substituted into the equation expression, a first prediction model is obtained and stored in a database, and the first prediction model is obtained from the database. The specific process is: obtaining historical data of the factory pressure or factory flow, total water demand and water pump status within a first preset time before the current moment, wherein the first preset time may be the past 1 year or 3 years, and then using the nonlinear least squares method (NLS) to determine the parameters in the equation expression , , , and The corresponding estimated value is obtained, and based on each estimated value, the prior distribution of the corresponding parameter is constructed, thereby limiting the range of the parameter value. Further, based on the historical data in the second preset time before the current moment and the prior distribution of each parameter, the Markov Chain Monte Carlo (MCMC) is used to obtain the mean of the posterior distribution corresponding to each parameter, and the mean of the posterior distribution is determined as the final value of the corresponding parameter, and each final value is substituted into the equation expression to obtain the first prediction model and store it in the database. When the factory pressure or factory flow prediction in the future time is required, the first preset model is directly obtained from the database. It should be noted that the second preset time can be the past 30 days. In addition, the MCMC algorithm is an algorithm that uses Markov chains to sample from random distributions. The specific process of using the MCMC algorithm to determine the mean of the posterior distribution corresponding to each parameter is: constructing a likelihood function based on the historical data in the second preset time, that is, comparing the historical data with the predicted data of the first prediction model in training, calculating the likelihood value, and finally constructing the likelihood function. Then, the product of the likelihood function and the prior distribution is calculated to obtain the posterior distribution. Finally, the sample of the parameter is generated by the MCMC algorithm, and the corresponding Markov chain is constructed to continuously approximate the posterior distribution. Finally, the statistics of the posterior distribution (such as the mean, etc.) are calculated by the samples approximating the posterior distribution. This is because it is difficult to directly calculate the statistics of a complex posterior distribution. In other embodiments, the Hamiltonian Monte Carlo (HMC) algorithm can also be used to determine the mean of the posterior distribution corresponding to each parameter. The specific process is as follows: 1. Hamiltonian system modeling: 1) For a given probability distribution p(θ1), construct its corresponding negative log-likelihood as the potential energy function U(θ1). 2) Introduce a set of momentum variables q with the same dimension as the parameter vector, and assign a uniform distribution as the kinetic energy function K(q). 2. Dynamic simulation: 1) Position update: Use the position update law of Hamiltonian dynamics (based on Newton's second law) to calculate the instantaneous velocity of the parameter vector at the current momentum, and update the parameter position by integration (usually using a Leapfrog integrator). Here, the time step ϵ and the gradient of the potential energy function ∂U / ∂θ1 are the key parameters. 2) Momentum update: After each position update, the potential energy function U(θ1) and the kinetic energy function K(q) are recalculated according to the new position, and the Hamiltonian function H(θ1,q) is updated. Then, the Metropolis-Hastings acceptance criterion is used to decide whether to accept the new parameter position. The acceptance probability is usually calculated based on the difference between the new and old Hamiltonian functions. 3. Iteration and sampling: Repeat the above dynamic simulation process to generate a series of samples. In each iteration, the system evolves according to the current Hamiltonian function and acceptance criterion, and generates a new sample. These samples will asymptotically obey the target distribution p(θ1).4. Convergence judgment: Set the convergence judgment criteria to determine when to stop the iteration. Finally, calculate the mean of the posterior distribution based on the generated samples.
[0074] S102: Determine the total water demand of urban users during the scheduling short-term evaluation period, and obtain the target water pump status of the urban water plant in a single scheduling plan at the scheduling moment. Based on the target water pump status and the total water demand, predict the target factory pressure and target factory flow corresponding to the scheduling short-term evaluation period through the first prediction model. The scheduling short-term evaluation period is a short-term time period from the scheduling moment to the short-term preset moment.
[0075] Specifically, if the water dispatching personnel need to determine the best dispatching scheme after the current moment, then first determine the total water demand of urban users at each moment in the short-term evaluation period of the dispatching. A feasible determination method is: through the historical data of the total water demand of urban users and the corresponding covariate characteristics, the time series dense encoder (TiDE) is trained to obtain the trained future water demand prediction model, where the time series dense encoder is suitable for long-term time series prediction. The covariate characteristics are time covariates (for example, the number of minutes in an hour, the number of hours in a day, the number of days in a week, etc.), the number of days to holidays (for example, the number of days to the Mid-Autumn Festival, the number of days to the Labor Day, etc.), weather variables (for example, the highest temperature, the lowest temperature, whether it rains, etc.) and holiday information (for example, working days are 0, Saturdays and Sundays are 1, and ordinary holidays are 2, etc.), because these covariate characteristics will affect the total water demand of urban users. Finally, the total water demand of urban users at each moment in the short-term evaluation period of the dispatching is predicted by this future water demand prediction model. The scheduling time is the time node for executing a single scheduling plan in the future.
[0076] Furthermore, a single scheduling scheme is selected from a preset scheme set, and the scheme set includes at least one scheduling scheme that can be executed at a future scheduling moment, and the single scheduling scheme is one of the scheduling schemes in the scheme set. The state of each water pump in the urban water plant in the selected single scheduling scheme is determined as the target water pump state. For example, the target water pump state can be that one water pump in the urban water plant is turned on or one water pump is turned off. Furthermore, the target water pump state and the total water demand of this single scheduling scheme are input into the first prediction model, that is, the target water pump state is used as , taking the total water demand as Substitute into the equation expression for determining the final value of the parameter, and obtain the target factory pressure and target factory flow of the city water plant at the corresponding moment in the scheduling short-term evaluation period. In other embodiments, if the status of water pumps of other water plants in the city also exists in a single scheduling plan, then the target water pump status, the water pump status of other water plants in the city at the scheduling moment, and the total water demand in each period in the scheduling short-term evaluation period are input into the first prediction model for prediction.
[0077] It should be noted that, for example, if the scheduling time is 10 o'clock, after a single scheduling plan is executed at 10 o'clock, the factory pressure and factory flow of the urban water plant within half an hour after the execution are determined, then the short-term evaluation period of scheduling is 10 o'clock-10:30. To a certain extent, the effect of the execution of this single scheduling plan is evaluated, which is convenient for the subsequent determination of the optimal scheduling plan.
[0078] S103: Determine the target inlet flow rate corresponding to the urban water plant under a single scheduling plan, and based on the target outflow flow rate and the target inlet flow rate, predict the target clear water tank liquid level change corresponding to the urban water plant during the short-term scheduling evaluation period through the second prediction model corresponding to the urban water plant, and determine the target clear water tank liquid level during the short-term scheduling evaluation period according to the target clear water tank liquid level change. The second prediction model is used to predict the clear water tank liquid level change of the urban water plant.
[0079] Specifically, after a single scheduling plan is executed, the target outflow pressure and target outflow flow of the urban water plant at each moment in the scheduling short-term evaluation period are determined, and it is necessary to further determine the target inflow flow of the urban water plant corresponding to this single scheduling plan in the scheduling short-term evaluation period after the scheduling moment is executed, where the target inflow flow refers to the raw water flow entering the urban water plant at the scheduling moment. A feasible determination method is to extract the raw water pump state of the raw water pump room from this single scheduling plan, that is, whether the raw water pump in the raw water pump room is turned on or off. Furthermore, since the outflow of the raw water pump room will increase after a new pump is turned on, in the absence of valve adjustment and other urban water plants, the inflow into the downstream urban water plant will increase synchronously. Therefore, the historical pump status of each group of raw water pump rooms and the corresponding historical inflow of urban water plants in the past 30 days are obtained and used as training samples. Then, the training samples are divided into training set, validation set and test set in a ratio of 8:1:1. Then, the training samples in the training set are input into the existing machine learning model, trained, and the model performance is optimized. Then, the training samples in the validation set are used to monitor the training process to prevent overfitting. Finally, the test set is input into the model to evaluate the performance of the model, and finally a trained model that can predict the corresponding inflow based on the pump status of the raw water pump room is obtained, that is, the inflow prediction model. Among them, the machine learning model can adopt a convolutional neural network model. Further, the raw water pump status is input into the inflow prediction model, so as to predict the target inflow corresponding to the urban water plant.
[0080] Furthermore, the target outgoing flow and the target ingoing flow are input into the second prediction model to obtain the target clear water tank liquid level change corresponding to the urban water plant at each moment during the scheduling short-term evaluation period, wherein the second prediction model is constructed based on the functional relationship of clear water tank liquid level change = (incoming flow - outgoing flow) / clear water tank bottom area, which is the prior art and will not be repeated here. Finally, the clear water tank liquid level at the current moment of the urban water plant and the target clear water tank liquid level change during the scheduling short-term evaluation period are cumulatively summed to obtain the target clear water tank liquid level of the urban water plant during the scheduling short-term evaluation period.
[0081] S104: Based on the target water pump state and the target factory pressure, the target water pump energy consumption of the urban water plant is predicted by a third prediction model corresponding to the urban water plant, where the third prediction model is used to predict the water pump energy consumption of the urban water plant.
[0082] Specifically, the target water pump state and target factory pressure in the short-term evaluation period of the city water plant scheduling are input into the third prediction model to predict the target water pump energy consumption in the short-term evaluation period of the city water plant scheduling, wherein the target water pump energy consumption refers to the total energy consumption of all water pumps that have been turned on in the city water plant. With the water pump state and factory pressure of the city water plant as independent variables and the water pump energy consumption as the dependent variable, when the factory pressure remains unchanged, the water pump state is turned on and its energy consumption increases; when the water pump state remains unchanged, the factory pressure increases and the water pump energy consumption usually decreases. Obtain the historical data of each group of historical water pump status, historical factory pressure and historical water pump energy consumption in the past 30 days, and use them as training samples. Then divide the training samples into training set, validation set and test set in accordance with the division ratio of 6:2:2. Then input the training samples in the training set into the existing machine learning model, train it, optimize the model performance, use the training samples in the validation set to monitor the training process to prevent overfitting, input the test set into the model, evaluate the performance of the model, and finally obtain a trained model that can predict the corresponding water pump energy consumption based on the water pump status and factory pressure, that is, the third prediction model. Further, input the target water pump status and target factory pressure at each moment in the short-term evaluation period of the scheduling into the third prediction model to predict the corresponding target water pump energy consumption. By analogy, the target factory pressure, target clear water tank level and target water pump energy consumption corresponding to other single scheduling schemes in the scheme set can be determined. Among them, the machine learning model can adopt a recurrent neural network model or a long short-term memory network model.
[0083] S105: Based on the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each individual scheduling plan, the total score of the corresponding individual scheduling plan is determined through a preset scoring rule, and the individual scheduling plan with the largest total score is determined as the optimal scheduling plan.
[0084] In an achievable implementation, the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each individual scheduling scheme are scored respectively through a preset scoring function to obtain a corresponding indicator score;
[0085] According to the short-term evaluation period of the dispatch, the corresponding first weight is determined, and the second weight corresponding to the target factory pressure, the target clear water tank level, the target water pump energy consumption and the preset dispatch times is determined by the hierarchical analysis method;
[0086] The scores of each indicator are weighted according to the first weight and the second weight to obtain the total score of the corresponding single scheduling solution.
[0087] Specifically, the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each single scheduling scheme in the scheme set are scored one by one through a preset scoring function to obtain a corresponding index score, the maximum value of the index score is 1, and the minimum value is 0. Specifically: for the same single scheduling scheme, the corresponding target factory pressure is scored through a preset first scoring function to obtain a corresponding first index score. In the embodiment of the present application, the first scoring function is a "trapezoidal" scoring function, such as Figure 2 As shown in (a), when the target factory pressure exceeds the upper pressure limit, the greater the target factory pressure, the lower the first indicator score; when the target factory pressure does not exceed the lower pressure limit, the greater the target factory pressure, the greater the first indicator score; when the target factory pressure is between the lower pressure limit and the upper pressure limit, the first indicator score is 1.
[0088] Furthermore, the corresponding target clear water tank level is scored by a preset second scoring function to obtain a corresponding second indicator score. The second scoring function is also a "trapezoidal" scoring function, such as Figure 2 As shown in (b), when the target clean water tank liquid level exceeds the upper limit value of the liquid level, the larger the target clean water tank liquid level is, the lower the second indicator score is; when the target clean water tank liquid level does not exceed the lower limit value of the liquid level, the larger the target clean water tank liquid level is, the larger the second indicator score is; when the target clean water tank liquid level is between the lower limit value and the upper limit value of the liquid level, the second indicator score is 1.
[0089] Furthermore, the corresponding target water pump energy consumption is scored by a preset third scoring function to obtain a corresponding third indicator score. The third scoring function is a semi-normal distribution, such as Figure 2 As shown in (c), the greater the target water pump energy consumption, the smaller the third indicator score.
[0090] Furthermore, the preset fourth scoring function is used to score the corresponding preset scheduling times to obtain the corresponding fourth indicator score. The fourth scoring function is an indicative function, wherein the indicative function is a function that takes a value of 1 when a certain condition is met and takes a value of 0 otherwise. When there is no scheduling action in a single scheduling scheme at the scheduling moment, the preset scheduling times is 0, and the fourth indicator score is 1; when there is a scheduling action, the preset scheduling times is not 0, and the fourth indicator score is 0. A feasible way to determine the preset scheduling times is that the relevant personnel of the water affairs scheduling input through the terminal, and the terminal can be a smart phone or a personal computer. In addition, when the preset scheduling times is 0, the rationality and superiority of the corresponding single scheduling scheme are the highest. In other embodiments, the fourth indicator score corresponding to the preset scheduling number can also be matched through the fourth indicator score matching table preset in the database. The fewer the preset scheduling number, the higher the rationality and superiority of the corresponding single scheduling scheme, and the higher the corresponding fourth indicator score. The fourth indicator score matching table includes different preset scheduling numbers and corresponding fourth indicator scores, all of which are set based on manual experience. A feasible setting method is: the preset scheduling number is 0, and the corresponding fourth indicator score is 1; the preset scheduling number is 1, and the corresponding fourth indicator score is 0.9; the preset scheduling number is 2, and the corresponding fourth indicator score is 0.8; the preset scheduling number is 3, and the corresponding fourth indicator score is 0.7, and so on. The preset scheduling number increases by 1, and the corresponding fourth indicator score decreases by 0.1. In another embodiment, the fourth scoring function can also be a function with a semi-normal distribution. The fewer the preset scheduling number, the higher the corresponding fourth indicator score.
[0091] After the scores of each indicator of a single scheduling plan are determined, the corresponding first weight is determined according to the decreasing exponential function preset in the database at each moment in the short-term evaluation period of the scheduling. The first weight decreases in the form of an exponential function as the moment increases. The smaller the moment is, the closer it is to the current moment. The more objective the predicted factory pressure, clear water tank level or pump energy consumption after executing the single scheduling plan at the scheduling moment is, the greater the first weight is. Among them, the decreasing exponential function is set by personnel based on experience. One feasible setting method is: the decreasing exponential function is set to f(x) = 0.9 x, f(x) is the first weight, and x is the time. Then, the second weight corresponding to each indicator in the target factory pressure, the target clear water tank level, the target pump energy consumption and the preset scheduling times is determined by the hierarchical analysis method. These indicators are factors that affect the rationality and superiority of a single scheduling scheme at the scheduling time. Among them, the analytic hierarchy process (AHP) is a decision analysis method that helps decision makers make choices between multiple criteria or goals by constructing a multi-level structural model. Among them, the specific process of determining the second weight corresponding to each indicator by the analytic hierarchy process is: assigning the relative importance of each indicator to the remaining indicators based on the 1-9 scale method, where, for example, the relative importance of indicator A to indicator B represents: the relative importance of indicator A to the evaluation of the scheduling scheme compared to the importance of indicator B to the evaluation of the scheduling scheme. Further, based on each assignment, a judgment matrix is constructed, and the elements in each column of the judgment matrix represent the relative importance of a single indicator to each of the remaining indicators. Finally, the product of each column in the judgment matrix is calculated, the square root of each product is taken, and each square root is normalized to finally obtain the second weight of each indicator.
[0092] Finally, the first weight and the second weight are used to perform a weighted average of the scores of each indicator of the same single scheduling scheme at each moment in the short-term scheduling evaluation period, namely, the first indicator score, the second indicator score, the third indicator score and the fourth indicator score, to obtain the total score of the corresponding single scheduling scheme. The higher the total score, the more reasonable and superior the single scheduling scheme. Furthermore, the single scheduling scheme with the largest total score among the many single scheduling schemes at the scheduling moment is determined as the optimal scheduling scheme at the scheduling moment.
[0093] See also Figure 3 The present application embodiment discloses a flow chart of another method for scientifically dispatching urban water affairs, which can be implemented by a computer program or run on an urban water affairs scientific dispatching device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application, specifically including:
[0094] S201: Obtain a first prediction model corresponding to the urban water plant, where the first prediction model is used to predict the outlet pressure and outlet flow of the urban water plant.
[0095] S202: Determine the total water demand of urban users during the scheduling short-term evaluation period, and obtain the target water pump status of the urban water plant in a single scheduling plan at the scheduling moment. Based on the target water pump status and the total water demand, the target factory pressure and target factory flow corresponding to the scheduling short-term evaluation period are predicted through the first prediction model. The scheduling short-term evaluation period is a short-term time period from the scheduling moment to the short-term preset moment.
[0096] S203: Determine the target inlet flow rate corresponding to the urban water plant under a single scheduling plan, and based on the target outflow rate and the target inlet flow rate, predict the target clear water tank liquid level change corresponding to the urban water plant during the short-term scheduling evaluation period through the second prediction model corresponding to the urban water plant, and determine the target clear water tank liquid level during the short-term scheduling evaluation period according to the target clear water tank liquid level change. The second prediction model is used to predict the clear water tank liquid level change of the urban water plant.
[0097] S204: Based on the target water pump state and the target factory pressure, the target water pump energy consumption of the urban water plant is predicted by a third prediction model corresponding to the urban water plant, where the third prediction model is used to predict the water pump energy consumption of the urban water plant.
[0098] S205: Based on the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each individual scheduling plan, the total score of the corresponding individual scheduling plan is determined through a preset scoring rule, and the individual scheduling plan with the largest total score is determined as the optimal scheduling plan.
[0099] For details, please refer to steps S101-S105, which will not be described in detail here.
[0100] S206: If the scheduling operation in the optimal scheduling plan is the start and stop of the water pump in the urban water plant, then when it is necessary to determine the future long-term optimal scheduling plan from the current moment to the long-term preset moment, determine the scheduling trigger moment corresponding to each single scheduling plan in the time period from the scheduling moment to the long-term preset moment.
[0101] Specifically, if the dispatching operation in the optimal dispatching scheme at the dispatching time is the opening and closing of the water pumps in the urban water plant, for example, the dispatching time is 7:00, and Water Plant A starts one water pump. Among them, the long-term preset time is preset in advance, the dispatching time is earlier than the long-term preset time, the short-term preset time is also earlier than the long-term preset time, and the currently determined optimal dispatching scheme is short-term, and is not optimal for the long-term period from the current time to the long-term preset time. Then further optimizing the dispatching scheme involves discrete variable optimization, because the number of opening and closing of water pumps in urban water plants is a discrete value. Among them, the optimization of discrete variables refers to the optimization of water pump opening and closing, including the time and number of water pump opening and closing. Furthermore, the scheduling trigger moment corresponding to each individual scheduling scheme in the time period from the scheduling moment to the long-term preset moment is determined, wherein the scheduling trigger moment is the future moment when the factory pressure of the urban water plant is lower than the lower pressure limit or the factory pressure exceeds the upper pressure limit, wherein when the factory pressure is lower than the lower pressure limit or exceeds the upper pressure limit, continuing to maintain the existing water pump state will cause the water supply of some users to be unable to be effectively supplied. At this time, the water pump must be increased or reduced. The moment when the conditions for maintaining the safety of the water supply process are no longer met is called the scheduling trigger moment. A feasible way to determine the scheduling trigger moment is: use the first prediction model to predict the factory pressure of the urban water plant at each moment after the scheduling moment in real time, and when the factory pressure exceeds the upper pressure limit or the factory pressure is lower than the lower pressure limit, the corresponding moment is determined as the scheduling trigger moment. It should be noted that each individual scheduling scheme is a scheduling scheme corresponding to the scheduling moment.
[0102] S207: Based on the scoring rule, select the best scheduling scheme to be triggered from the various scheduling schemes corresponding to each scheduling triggering moment of the same single scheduling scheme.
[0103] S208: Combine each single scheduling plan with the corresponding optimal scheduling plans to be triggered to obtain a plan chain, and determine the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each plan chain.
[0104] S209: Through the scoring rules, based on the final factory pressure, final clear water tank level, final pump energy consumption and final scheduling times corresponding to each solution chain, the total score of the corresponding solution chain is determined, and the starting solution in the solution chain with the largest total score is determined as the future long-term optimal scheduling solution.
[0105] Specifically, after the scheduling triggering moment of each single scheduling scheme within the time period from the scheduling moment to the long-term preset moment is determined, for each scheduling scheme corresponding to each scheduling triggering moment of the same single scheduling scheme, the index scores corresponding to the factory pressure, the liquid level of the clean water tank, the energy consumption of the water pump and the preset scheduling times are determined through the preset scoring function, and finally the corresponding total score is determined, and the scheduling scheme with the largest total score is further selected to be determined as the optimal scheduling scheme to be triggered at the corresponding scheduling triggering moment. In this way, each scheduling triggering moment of the same single scheduling scheme is determined to have a corresponding optimal scheduling scheme to be triggered. For details, please refer to step S105, which will not be repeated here.
[0106] Further, this single scheduling scheme is combined with the corresponding optimal scheduling schemes to be triggered to obtain a scheme chain, and so on, to obtain the scheme chain corresponding to all single scheduling schemes. Then, each scheme chain is taken as a whole scheduling scheme to determine its corresponding final factory pressure, final clear water tank level, final pump energy consumption and final scheduling times. For details, please refer to steps S101-S104, which will not be repeated here. Then, through the preset scoring function, the final factory pressure, final clear water tank level, final pump energy consumption and final scheduling times of each scheme chain are scored in turn, and the total score of the corresponding scheme chain is finally determined. Finally, the starting scheme in the scheme chain with the largest total score is selected to determine it as the future long-term optimal scheduling scheme, that is, to determine the scheduling scheme with a more reasonable scheduling time from a long-term perspective. Among them, the fewer the final scheduling times corresponding to the single scheme chain, that is, the fewer the existing scheduling actions, the better the overall scheduling scheme composed of the scheme chain. In addition, the starting scheme is the scheduling scheme with the earliest scheduling time node in the corresponding scheme chain.
[0107] In other embodiments, the total score of each solution chain can be determined as the target dependent variable, and the starting solution in each solution chain can be determined as the target independent variable. Furthermore, the functional relationship between the target dependent variable and the target independent variable can be fitted by a preset neural network model to obtain a value function, so that when the long-term optimal scheduling solution is subsequently determined, there is no need to simulate the effect of the entire solution chain after being executed. It is only necessary to determine the value function through the starting solution in the solution chain, and determine the starting solution with the largest value function as the optimal long-term scheduling solution at the scheduling moment. Among them, the neural network model can be a convolutional neural network model, and in other embodiments, it can also be a BP neural network model.
[0108] The implementation principle of the scientific dispatching method for urban water affairs in the embodiment of the present application is as follows: through the first prediction model, based on the target water pump state and the total water demand, the target factory pressure and the target factory flow are predicted. Further, the target inflow flow of the urban water plant after the execution of a single dispatching scheme is determined, and the target inflow flow and the target factory flow at the dispatching moment are input into the second prediction model, and finally the target clear water tank level after the execution of the single dispatching scheme is determined. Then the target water pump state and the target factory pressure are input into the third prediction model to obtain the target water pump energy consumption in the short-term evaluation period of the dispatching, and finally the corresponding single dispatching scheme is scored on the four indicators of target factory pressure, target clear water tank level, target water pump energy consumption and preset dispatching times, so as to better evaluate the rationality and superiority of the single dispatching scheme, and finally the single dispatching scheme with the largest total score is determined as the optimal dispatching scheme, so as to quickly and accurately evaluate the dispatching scheme and reduce the difficulty of determining a reasonable dispatching scheme.
[0109] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0110] See also Figure 4 , which is a schematic diagram of the structure of the urban water science dispatching device provided in the embodiment of the present application. The urban water science dispatching device can be implemented as all or part of the device through software, hardware or a combination of both. The device includes a model acquisition module 11, a factory determination module 12, a liquid level determination module 13, an energy consumption determination module 14 and a solution determination module 15.
[0111] A model acquisition module 11 is used to acquire a first prediction model corresponding to the urban water plant, where the first prediction model is used to predict the outgoing pressure and outgoing flow of the urban water plant;
[0112] The outgoing water determination module 12 is used to determine the total water demand of urban users in the scheduling short-term evaluation period, and obtain the target water pump state of the urban water plant in the single scheduling plan at the scheduling moment, and predict the target outgoing water pressure and target outgoing water flow corresponding to the scheduling short-term evaluation period through the first prediction model based on the target water pump state and the total water demand. The scheduling short-term evaluation period is a short-term time period from the scheduling moment to the short-term preset moment;
[0113] The liquid level determination module 13 is used to determine the target inlet flow rate corresponding to the urban water plant under the single scheduling scheme, and based on the target outlet flow rate and the target inlet flow rate, predict the target clear water tank liquid level change corresponding to the urban water plant during the scheduling period of the short-term evaluation period through the second prediction model corresponding to the urban water plant, and determine the target clear water tank liquid level during the scheduling period of the short-term evaluation period according to the target clear water tank liquid level change, and the second prediction model is used to predict the clear water tank liquid level change of the urban water plant;
[0114] An energy consumption determination module 14 is used to predict the target water pump energy consumption of the urban water plant through a third prediction model corresponding to the urban water plant based on the target water pump state and the target factory pressure, and the third prediction model is used to predict the water pump energy consumption of the urban water plant;
[0115] The scheme determination module 15 is used to determine the total score of the corresponding single scheduling scheme based on the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each single scheduling scheme through a preset scoring rule, and determine the single scheduling scheme with the largest total score as the optimal scheduling scheme.
[0116] Optionally, the solution determination module 15 is specifically used to:
[0117] Through the preset scoring function, the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each individual scheduling plan are scored respectively to obtain the corresponding indicator score;
[0118] According to the short-term evaluation period of the dispatch, the corresponding first weight is determined, and the second weight corresponding to the target factory pressure, the target clear water tank level, the target water pump energy consumption and the preset dispatch times is determined by the hierarchical analysis method;
[0119] According to the first weight and the second weight, a weighted average is performed on the scores of each indicator to obtain the total score of the corresponding single scheduling solution.
[0120] Optionally, the solution determination module 15 is further configured to:
[0121] The target factory pressure corresponding to each single scheduling scheme is scored by a preset first scoring function to obtain a corresponding first indicator score, wherein when the target factory pressure exceeds the upper pressure limit, the larger the target factory pressure is, the lower the first indicator score is; when the target factory pressure does not exceed the lower pressure limit, the larger the target factory pressure is, the larger the first indicator score is; when the target factory pressure is between the lower pressure limit and the upper pressure limit, the first indicator score is 1;
[0122] The target clear water tank liquid level corresponding to each single scheduling scheme is scored by a preset second scoring function to obtain a corresponding second indicator score, wherein when the target clear water tank liquid level exceeds the upper limit of the liquid level, the larger the target clear water tank liquid level is, the lower the second indicator score is; when the target clear water tank liquid level does not exceed the lower limit of the liquid level, the larger the target clear water tank liquid level is, the larger the second indicator score is; when the target clear water tank liquid level is between the lower limit of the liquid level and the upper limit of the liquid level, the second indicator score is 1;
[0123] The target water pump energy consumption corresponding to each single scheduling scheme is scored through a preset third scoring function to obtain a corresponding third indicator score. The third scoring function is semi-normally distributed. The greater the target water pump energy consumption, the smaller the third indicator score.
[0124] The preset scheduling times corresponding to each single scheduling scheme are scored by using a preset fourth scoring function to obtain a corresponding fourth indicator score. The fourth scoring function is an indicative function.
[0125] Optionally, the model acquisition module 11 is specifically used for:
[0126] Construct equation expressions for the discharge pressure or discharge flow of urban water plants;
[0127] Determine the final value of each parameter in the equation expression, substitute each final value into the equation expression, obtain the first prediction model and store it in the database, and obtain the first prediction model from the database.
[0128] Optional, such as Figure 5 As shown, the device also includes a long-term optimization module 16, which is specifically used to:
[0129] If the dispatching operation in the optimal dispatching scheme is the opening and closing of the water pump of the urban water plant, then when it is necessary to determine the future long-term optimal dispatching scheme from the current moment to the long-term preset moment, the dispatching triggering moment corresponding to each single dispatching scheme in the period from the dispatching moment to the long-term preset moment is determined. The dispatching triggering moment is the future moment when the factory pressure is lower than the lower pressure limit or the factory pressure exceeds the upper pressure limit, and the dispatching moment is earlier than the long-term preset moment;
[0130] Based on the scoring rule, the best scheduling scheme to be triggered is selected from the various scheduling schemes corresponding to each scheduling triggering moment of the same single scheduling scheme;
[0131] Combine each single scheduling plan with the corresponding optimal scheduling plans to be triggered to obtain a plan chain, and determine the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each plan chain;
[0132] Through the scoring rules, based on the final factory pressure, final clear water tank level, final pump energy consumption and final scheduling times corresponding to each solution chain, the total score of the corresponding solution chain is determined, and the starting solution in the solution chain with the largest total score is determined as the future long-term optimal scheduling solution.
[0133] Optionally, the device further includes a fast optimization module 17, which is specifically used for:
[0134] The total score of each solution chain is determined as the target dependent variable, and the starting solution in each solution chain is determined as the target independent variable;
[0135] The functional relationship between the target independent variable and the target dependent variable is fitted through the preset neural network model to obtain the value function.
[0136] Optionally, the liquid level determination module 13 is specifically used for:
[0137] Determine the status of raw water pumps in the raw water pump room in a single dispatch plan;
[0138] Based on the raw water pump status, the target inflow flow corresponding to the urban water plant is predicted by a preset fourth prediction model, and the fourth prediction model is used to predict the inflow flow of the urban water plant.
[0139] It should be noted that the urban water science dispatching device provided in the above embodiment only uses the division of the above functional modules as an example when executing the urban water science dispatching method. In actual applications, the above functional distribution can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the urban water science dispatching device provided in the above embodiment and the urban water science dispatching method embodiment belong to the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0140] An embodiment of the present application further discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, a scientific scheduling method for urban water affairs of the above embodiment is adopted.
[0141] Among them, the computer program can be stored in a computer-readable medium, the computer program includes computer program code, the computer program code can be in the form of source code, object code, executable file or certain middleware, etc. The computer-readable medium includes any entity or device that can carry the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the computer-readable medium includes but is not limited to the above-mentioned components.
[0142] Among them, through this computer-readable storage medium, a scientific scheduling method for urban water affairs in the above embodiment is stored in a computer-readable storage medium, and is loaded and executed on a processor to facilitate the storage and application of the above method.
[0143] An embodiment of the present application also discloses an electronic device, in which a computer program is stored in a computer-readable storage medium. When the computer program is loaded and executed by a processor, the above-mentioned urban water science scheduling method is adopted.
[0144] The electronic device may be a desktop computer, a laptop computer, a cloud server or other electronic device, and the electronic device includes but is not limited to a processor and a memory. For example, the electronic device may also include input and output devices, a network access device, and a bus.
[0145] Among them, the processor can adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. can also be adopted. The general-purpose processor can adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.
[0146] Among them, the memory can be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device, or it can be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the electronic device. Moreover, the memory can also be a combination of an internal storage unit and an external storage device of the electronic device. The memory is used to store computer programs and other programs and data required by the electronic device. The memory can also be used to temporarily store data that has been output or is to be output, and this application does not impose any restrictions on this.
[0147] Among them, through this electronic device, a scientific scheduling method for urban water affairs in the above embodiment is stored in the memory of the electronic device, and is loaded and executed on the processor of the electronic device for easy use.
[0148] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A scientific dispatching method for urban water affairs, characterized in that: The method comprises: Obtaining a first prediction model corresponding to the urban water plant, where the first prediction model is used to predict the outlet pressure and outlet flow of the urban water plant; Determine the total water demand of urban users in the scheduling short-term evaluation period, and obtain the target water pump state of the urban water plant in the single scheduling plan at the scheduling moment, and based on the target water pump state and the total water demand, predict the target factory pressure and target factory flow corresponding to the scheduling short-term evaluation period through the first prediction model, wherein the scheduling short-term evaluation period is a short-term time period from the scheduling moment to the short-term preset moment; Determine the target inlet flow rate corresponding to the urban water plant under the single scheduling scheme, predict the target clear water tank level change corresponding to the urban water plant during the scheduling short-term evaluation period based on the target outlet flow rate and the target inlet flow rate through a second prediction model corresponding to the urban water plant, and determine the target clear water tank level during the scheduling short-term evaluation period according to the target clear water tank level change, wherein the second prediction model is used to predict the clear water tank level change of the urban water plant; Based on the target water pump state and the target factory pressure, the target water pump energy consumption of the urban water plant is predicted by a third prediction model corresponding to the urban water plant, wherein the third prediction model is used to predict the water pump energy consumption of the urban water plant; Based on the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each of the single scheduling schemes, the total score of the corresponding single scheduling scheme is determined by a preset scoring rule, and the single scheduling scheme with the largest total score is determined as the optimal scheduling scheme; If the dispatching operation in the optimal dispatching scheme is the opening and closing of the water pump of the urban water plant, then when it is necessary to determine the future long-term optimal dispatching scheme from the current moment to the long-term preset moment, determine the dispatching trigger moment corresponding to each of the single dispatching schemes in the period from the dispatching moment to the long-term preset moment, the dispatching trigger moment is the future moment when the factory pressure is lower than the lower pressure limit or the factory pressure exceeds the upper pressure limit, and the dispatching moment is earlier than the long-term preset moment; Based on the scoring rule, selecting the best scheduling scheme to be triggered from the scheduling schemes corresponding to each scheduling triggering moment of the same single scheduling scheme; Combining each of the single scheduling schemes with the corresponding optimal scheduling schemes to be triggered to obtain a scheme chain, and determining the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each of the scheme chains; Through the scoring rules, based on the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each of the scheme chains, the total score of the corresponding scheme chain is determined, and the starting scheme in the scheme chain with the largest total score is determined as the future long-term optimal scheduling scheme, and the starting scheme is the scheduling scheme with the earliest scheduling time node in the corresponding scheme chain; the total score of each of the scheme chains is determined as the target dependent variable, and the starting scheme in each of the scheme chains is determined as the target independent variable; The functional relationship between the target independent variable and the target dependent variable is fitted by a preset neural network model to obtain a value function.
2. The urban water affairs scientific dispatching method according to claim 1 is characterized in that: Based on the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each of the single scheduling schemes, the total score of the corresponding single scheduling scheme is determined by a preset scoring rule, specifically including: The target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each of the individual scheduling schemes are scored respectively through a preset scoring function to obtain a corresponding indicator score; According to the short-term evaluation period of the scheduling, the corresponding first weight is determined, and the second weight corresponding to the target factory pressure, the target clear water tank level, the target water pump energy consumption and the preset scheduling times is determined by the hierarchical analysis method; According to the first weight and the second weight, a weighted average is performed on the scores of each indicator to obtain a total score of the corresponding single scheduling solution.
3. The urban water affairs scientific dispatching method according to claim 2 is characterized in that: The preset scoring function is used to score the target factory pressure, target clear water tank level, target pump energy consumption and preset scheduling times corresponding to each of the single scheduling schemes, and obtain the corresponding indicator scores, which specifically include: The target factory pressure corresponding to each of the single scheduling schemes is scored by a preset first scoring function to obtain a corresponding first indicator score, wherein when the target factory pressure exceeds the upper pressure limit, the greater the target factory pressure, the lower the first indicator score; when the target factory pressure does not exceed the lower pressure limit, the greater the target factory pressure, the greater the first indicator score; when the target factory pressure is between the lower pressure limit and the upper pressure limit, the first indicator score is 1; The target clear water tank liquid level corresponding to each of the single scheduling schemes is scored by a preset second scoring function to obtain a corresponding second indicator score, wherein when the target clear water tank liquid level exceeds the upper limit of the liquid level, the larger the target clear water tank liquid level is, the lower the second indicator score is; when the target clear water tank liquid level does not exceed the lower limit of the liquid level, the larger the target clear water tank liquid level is, the larger the second indicator score is; when the target clear water tank liquid level is between the lower limit of the liquid level and the upper limit of the liquid level, the second indicator score is 1; The target water pump energy consumption corresponding to each of the single scheduling schemes is scored by a preset third scoring function to obtain a corresponding third indicator score, wherein the third scoring function is semi-normally distributed, and the greater the target water pump energy consumption, the smaller the third indicator score; The preset scheduling times corresponding to each of the single scheduling schemes are scored using a preset fourth scoring function to obtain a corresponding fourth indicator score, and the fourth scoring function is an indicative function.
4. The urban water affairs scientific dispatching method according to claim 1 is characterized in that: The obtaining of the first prediction model corresponding to the urban water plant specifically includes: Constructing an equation expression for the outlet pressure or outlet flow of the urban water plant; Determine the final value of each parameter in the equation expression, substitute each final value into the equation expression, obtain the first prediction model and store it in a database, and obtain the first prediction model from the database. The equation expression is: ; ; In the formula, is the discharge pressure or discharge flow of the urban water plant at time t; is the total water demand at time t; is the state of pump i at time t, is a dummy variable for intraday periods. If time t belongs to intraday period j, then Otherwise, take , is the transformation parameter of the total water demand, with a value range of (0, +∞), parameter c is the intercept term, and parameter Total water demand conversion Change the factory pressure or factory flow The effect of The effect of starting the pump on the change of the factory pressure or factory flow rate, is the threshold of the pump i state at time t, parameter is the effect of the intraday dummy variable on the change of the factory pressure or factory flow, and the parameter is the error term, M represents the total number of pumps, and K represents the total number of time periods within a day.
5. The urban water science dispatching method according to claim 1, characterized in that: The determining of the target inflow flow rate corresponding to the urban water plant under the single scheduling scheme specifically includes: Determining the status of the raw water pumps in the raw water pump room in the single scheduling scheme; Based on the raw water pump state, a target inlet flow rate corresponding to the urban water plant is predicted by a preset fourth prediction model, and the fourth prediction model is used to predict the inlet flow rate of the urban water plant.
6. A scientific dispatching device for urban water affairs, characterized in that: include: A model acquisition module (11) is used to acquire a first prediction model corresponding to the urban water plant, wherein the first prediction model is used to predict the outlet pressure and outlet flow of the urban water plant; A factory delivery determination module (12) is used to determine the total water demand of urban users in the scheduling short-term evaluation period, and obtain the target water pump state of the urban water plant in the single scheduling plan at the scheduling moment, and based on the target water pump state and the total water demand, predict the target factory delivery pressure and target factory delivery flow corresponding to the scheduling short-term evaluation period through the first prediction model, wherein the scheduling short-term evaluation period is a short-term time period from the scheduling moment to the short-term preset moment; A liquid level determination module (13) is used to determine the target inlet flow rate corresponding to the urban water plant under the single scheduling scheme, and based on the target outlet flow rate and the target inlet flow rate, predict the target clear water tank liquid level change corresponding to the urban water plant during the scheduling period of the scheduling short-term evaluation period through a second prediction model corresponding to the urban water plant, and determine the target clear water tank liquid level during the scheduling period of the scheduling short-term evaluation period according to the target clear water tank liquid level change, wherein the second prediction model is used to predict the clear water tank liquid level change of the urban water plant; an energy consumption determination module (14), configured to predict the target water pump energy consumption of the urban water plant based on the target water pump state and the target factory pressure by using a third prediction model corresponding to the urban water plant, wherein the third prediction model is used to predict the water pump energy consumption of the urban water plant; A scheme determination module (15) is used to determine the total score of the corresponding single scheduling scheme based on the target factory pressure, target clear water tank liquid level, target water pump energy consumption and preset scheduling times corresponding to each of the single scheduling schemes according to a preset scoring rule, and determine the single scheduling scheme with the largest total score as the optimal scheduling scheme; A long-term optimization module (16), for determining, if the scheduling operation in the optimal scheduling scheme is the start and stop of the water pump of the urban water plant, a scheduling trigger time corresponding to each of the single scheduling schemes within the period from the scheduling time to the long-term preset time when it is necessary to determine the future long-term optimal scheduling scheme from the current time to the long-term preset time, wherein the scheduling trigger time is a future time when the factory pressure is lower than the lower pressure limit or the factory pressure exceeds the upper pressure limit, and the scheduling time is earlier than the long-term preset time; Based on the scoring rule, selecting the best scheduling scheme to be triggered from the scheduling schemes corresponding to each scheduling triggering moment of the same single scheduling scheme; Combining each of the single scheduling schemes with the corresponding optimal scheduling schemes to be triggered to obtain a scheme chain, and determining the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each of the scheme chains; By means of the scoring rules, based on the final factory pressure, final clear water tank level, final water pump energy consumption and final scheduling times corresponding to each of the scheme chains, the total score of the corresponding scheme chain is determined, and the starting scheme in the scheme chain with the largest total score is determined as the future long-term optimal scheduling scheme, and the starting scheme is the scheduling scheme with the earliest scheduling time node in the corresponding scheme chain; A fast optimization module (17), used for determining the total score of each solution chain as a target dependent variable, and determining the starting solution in each solution chain as a target independent variable; The functional relationship between the target independent variable and the target dependent variable is fitted by a preset neural network model to obtain a value function.
7. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is loaded and executed by a processor, the method according to any one of claims 1 to 5 is adopted.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor loads and executes the computer program, the method according to any one of claims 1 to 5 is adopted.
