Extraction method of multi-objective optimization dispatching rules for water network regulation and storage projects
By constructing a multi-objective optimization dispatch simulation model and Bayesian hyperparameter optimization XGBoost dispatch function fitting model, combined with the DREAM algorithm, it solves the problem that traditional methods are difficult to deal with the scheduling of large-scale water network storage engineering groups and the uncertainty of algorithm parameters. Efficient multi-objective optimization scheduling rule extraction is achieved.
Patent Information
- Application Number
- CN202410081225.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-01-19
AI Technical Summary
The traditional multi-objective joint dispatching method for water network regulation and storage engineering groups is difficult to meet the needs of large-scale water network regulation and storage engineering groups, and ignores or underestimates the uncertainty of machine learning algorithm parameters, affecting the optimization effect of dispatching rules.
The multi-objective optimization scheduling rule extraction method for water network regulation and storage engineering groups is adopted, including selecting influencing factors, building a multi-objective optimization scheduling simulation model, calculating parameter sensitivity, constructing an XGBoost scheduling function fitting model for Bayesian hyperparameter optimization, and passing The DREAM algorithm performs Bayesian inference, considers the uncertainty of hyperparameters of machine learning algorithms, and optimizes scheduling rules.
It effectively solves the multi-objective joint dispatching needs of large-scale water network regulation and storage projects, eliminates the impact of algorithm parameter uncertainty on model simulation results, and improves the optimization effect of dispatching rules.
Smart Images

Figure CN118153734B
Abstract
Description
Technical Field
[0001] The invention relates to water conservancy dispatching technology, in particular to a method for extracting multi-objective optimization dispatching rules for a water network storage project group. Background Art
[0002] The regional water network project is based on the natural river and lake water system, with water diversion and regulation projects as channels, water transmission and distribution canal systems as veins, and backbone regulation and storage projects as nodes. It is an effective measure to solve the uneven spatial distribution of water resources, improve the water resource guarantee rate in the receiving areas, alleviate the contradiction between water supply and demand in water-scarce areas, and achieve rational allocation of water resources. It is an important way to promote economic development and comprehensive development and utilization of water resources in water-scarce areas.
[0003] Generally speaking, water network regulation and storage projects represented by reservoirs usually need to consider multiple goals such as water supply, flood control, power generation, and ecology. The comprehensive development and utilization of water resources with multi-objective joint scheduling of large-scale water network regulation and storage projects has become the mainstream. Traditional scheduling rule extraction methods can only cope with the scheduling of a single regulation and storage project or a few regulation and storage projects. Faced with the needs of comprehensive consideration of water networks at all levels and the reality of the ever-expanding scale of water network regulation and storage projects, traditional methods are no longer competent. Artificial intelligence methods such as machine learning provide a new way to extract rules for multi-objective joint scheduling of large-scale water network regulation and storage projects. In addition, the uncertainty of algorithm parameters is one of the key factors that determine whether such emerging methods can obtain the optimal scheduling rules. However, this is also an aspect that is easily overlooked or underestimated in existing research. Therefore, the patent of this invention proposes a method for extracting multi-objective optimization scheduling rules for water network regulation and storage projects that takes into account the uncertainty of machine learning algorithm parameters to solve the above two problems. Summary of the invention
[0004] The purpose of the invention is to provide a method for extracting multi-objective optimization scheduling rules for a water network regulation and storage project group to solve the above-mentioned problems existing in the prior art.
[0005] Technical solution, a method for extracting multi-objective optimization dispatching rules for a water network storage project group, comprising the following steps:
[0006] Step S1, selecting the influencing factors of the water network regulation and storage project, constructing the initial influencing factor set of the water network regulation and storage project, constructing a multi-objective optimization scheduling simulation model for the water network regulation and storage project group, and using the multi-objective optimization scheduling simulation model for the water network regulation and storage project group to calculate the optimal scheduling plan under different influencing factors;
[0007] Step S2: Calculate the parameter sensitivity of the influencing factors based on the optimal scheduling scheme under different influencing factors obtained by simulation, sort the influencing factors according to the sensitivity, select sensitive influencing factors, construct a sensitive influencing factor set, reduce the weight of the constructed sensitive influencing factor set, and obtain a scheduling rule input variable set;
[0008] Step S3, construct an XGBoost scheduling function fitting model based on Bayesian hyperparameter optimization, divide the scheduling rule input variable set into a training set and a verification set, input the training set into the XGBoost scheduling function fitting model for simulation calculation, obtain a simulated scheduling set, select an evaluation index to compare the simulated scheduling set and the verification set data, adjust and correct the XGBoost scheduling function according to the comparison results, and obtain a multi-objective optimization scheduling rule for the water network storage project group;
[0009] Step S4: select a% and b% as the quantile conditions of the scheduling function respectively, determine the ba% uncertainty interval to represent the algorithm hyperparameter uncertainty, a and b are positive numbers between 0 and 100, and use the optimal hyperparameter value and the scheduling function under the a% and b% quantile conditions of the algorithm parameter posterior probability density function respectively as the scheduling rule considering the uncertainty of the machine learning algorithm hyperparameters. Use the DREAM algorithm to perform Bayesian inference on the hyperparameters of the XGBoost scheduling function fitting model, and obtain the multi-objective optimization scheduling rule for the water network storage project group within the ba% uncertainty interval.
[0010] According to one aspect of the present application, step S1 further comprises:
[0011] Step S11, selecting the influencing factors of the water network regulation and storage project, and constructing the initial influencing factor set of the water network regulation and storage project, the influencing factors include: current inflow, initial water storage state of the reservoir, state and dispatching decision of the previous period, annual runoff, water supply target, ecological target, power generation target and downstream section flood control target;
[0012] Step S12, construct a multi-objective optimization scheduling simulation model for a water network storage project group, input the initial influencing factor set into the multi-objective optimization scheduling simulation model for a water network storage project group, simulate and calculate to obtain the optimal scheduling plan under different influencing factors.
[0013] According to one aspect of the present application, step S12 further comprises:
[0014] Step S12a, constructing a multi-objective optimization scheduling simulation model for a water network regulation and storage project group;
[0015] Step S12b, setting constraints, the constraints are: water balance constraint, upper water level constraint, lower water level constraint, maximum flow constraint, minimum flow constraint, minimum load constraint, turbine expected output constraint, initial water level control of the dispatching period, final water level control of the dispatching period, and water level amplitude constraint;
[0016] Step S12c, using a variety of multi-objective genetic algorithms to solve the multi-objective optimization scheduling simulation model of the water network storage project group, and obtain a non-inferior solution set and a corresponding non-inferior scheduling scheme set;
[0017] Step S12d: adopt a multi-attribute decision-making method to select the best scheduling solution from the set of non-inferior scheduling solutions corresponding to the set of non-inferior solutions.
[0018] According to one aspect of the present application, step S2 further comprises:
[0019] Step S21, based on the distribution of the influencing factors, the value range of the influencing factors is divided into N intervals in turn, and N samples are sampled using the improved Tent chaotic mapping method, and the parameter sensitivity is calculated, and the most sensitive parameters are selected according to the sensitivity from large to small, and Y sensitive influencing factors are selected from the influencing factor set, where Y is a positive integer greater than 0;
[0020] Step S22: fit Y sensitive influencing factors using a scheduling period of T time steps to construct a set of Y×T sensitive influencing factors;
[0021] Step S23: Reduce the weight of the constructed Y×T sensitive influencing factor set to obtain a Z×T sensitive influencing factor set, which is the scheduling rule input variable set.
[0022] According to one aspect of the present application, step S3 further comprises:
[0023] Step S31, constructing an XGBoost scheduling function fitting model based on Bayesian hyperparameter optimization;
[0024] Step S32, dividing the scheduling rule input variable set into a training set and a validation set, inputting the training set into the XGBoost scheduling function fitting model for simulation calculation, and obtaining a simulation scheduling set;
[0025] Step S33, selecting evaluation indicators to compare the simulation scheduling set and the verification set data, the evaluation indicators include: selecting the certainty coefficient, the average relative error, the root mean square error and the average relative error, adjusting and correcting the XGBoost scheduling function according to the comparison results, and obtaining the multi-objective optimization scheduling rules of the water network storage project group.
[0026] According to one aspect of the present application, step S31 is further:
[0027] Step S31a, constructing an XGBoost model;
[0028] Step S31b, using the proxy model and acquisition function methods to perform Bayesian optimization on the hyperparameters;
[0029] Step S31c, construct an XGBoost scheduling function fitting model based on Bayesian optimization.
[0030] According to one aspect of the present application, step S4 is further:
[0031] Step S41, respectively select a% and b% as the quantile conditions of the scheduling function, determine the ba% uncertainty interval to represent the algorithm hyperparameter uncertainty, a and b are positive numbers between 0 and 100, and respectively use the optimal hyperparameter value and the scheduling function under the a% and b% quantile conditions of the algorithm parameter posterior probability density function as the scheduling rule considering the uncertainty of the machine learning algorithm hyperparameters;
[0032] Step S42: Use the DREAM algorithm to perform Bayesian inference on the hyperparameters of the XGBoost scheduling function fitting model to obtain a multi-objective optimization scheduling rule for the water network storage project group within the ba% uncertainty interval.
[0033] According to one aspect of the present application, step S42 is further:
[0034] Step S42a, according to the given prior distribution of the model parameters, an initial population is given, and the posterior probability density of each point in the initial population is calculated;
[0035] Step S42b, generate a candidate point in the chain, replace the sample according to the crossover probability, and calculate the posterior probability density and the acceptance probability of Metropolis;
[0036] Step S42c, determine whether to accept, if the candidate point is accepted, move the chain forward, otherwise, stay at the current position and remove useless chains according to IQR statistics;
[0037] Step S42d, calculate the Gelman-Rubin convergence index of all dimensions in sequence, and stop the calculation when the convergence index of all dimensions is greater than the threshold.
[0038] According to another aspect of the present application, a system for extracting multi-objective optimization scheduling rules for a water network storage project group considering parameter uncertainty is provided, comprising:
[0039] at least one processor; and
[0040] a memory communicatively connected to at least one of the processors; wherein,
[0041] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the multi-objective optimization scheduling rule extraction method for the water network storage project group described in any of the above technical solutions.
[0042] Beneficial effect: The multi-objective optimization scheduling rule extraction method of water network regulation and storage project groups is adopted to solve the problem that traditional methods are no longer competent in the face of the demand for coordinated consideration of water networks at all levels and the reality of the ever-expanding scale of water network regulation and storage project groups. At the same time, it avoids the influence of algorithm parameter uncertainty on model simulation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flow chart of the present invention.
[0044] Figure 2 It is a flow chart of step S1 of the present invention.
[0045] Figure 3 It is a flow chart of step S2 of the present invention.
[0046] Figure 4 It is a flow chart of step S3 of the present invention.
[0047] Figure 5 It is a flow chart of step S4 of the present invention. DETAILED DESCRIPTION
[0048] like Figure 1 According to one aspect of the present application, a method for extracting multi-objective optimization scheduling rules for a water network storage project group is provided, characterized in that it includes the following steps:
[0049] Step S1, selecting the influencing factors of the water network regulation and storage project, constructing the initial influencing factor set of the water network regulation and storage project, constructing a multi-objective optimization scheduling simulation model for the water network regulation and storage project group, and using the multi-objective optimization scheduling simulation model for the water network regulation and storage project group to calculate the optimal scheduling plan under different influencing factors;
[0050] Step S2: Calculate the parameter sensitivity of the influencing factors based on the optimal scheduling scheme under different influencing factors obtained by simulation, sort the influencing factors according to the sensitivity, select sensitive influencing factors, construct a sensitive influencing factor set, reduce the weight of the constructed sensitive influencing factor set, and obtain a scheduling rule input variable set;
[0051] Step S3, construct an XGBoost scheduling function fitting model based on Bayesian hyperparameter optimization, divide the scheduling rule input variable set into a training set and a verification set, input the training set into the XGBoost scheduling function fitting model for simulation calculation, obtain a simulated scheduling set, select an evaluation index to compare the simulated scheduling set and the verification set data, adjust and correct the XGBoost scheduling function according to the comparison results, and obtain a multi-objective optimization scheduling rule for the water network storage project group;
[0052] Step S4 selects a% and b% as the quantile conditions of the dispatch function, determines the uncertainty interval of ba% to represent the uncertainty of the algorithm hyperparameters, respectively uses the dispatch function under the conditions of a% and b% quantiles of the optimal hyperparameter value and the algorithm parameter posterior probability density function as the dispatch rule considering the uncertainty of the hyperparameters of the machine learning algorithm, and uses the DREAM algorithm to perform Bayesian inference on the hyperparameters of the XGBoost dispatch function fitting model to obtain the multi-objective optimization dispatch rule of the water network storage project group in the uncertainty interval of ba%. a and b are positive numbers between 0 and 100, and b>a.
[0053] Traditional dispatching rule extraction methods can only cope with the dispatching of a single regulation and storage project or a few regulation and storage projects, and cannot meet the computing requirements for the dispatching of multiple regulation and storage project groups. Therefore, this embodiment adopts artificial intelligence methods such as machine learning to calculate the rule extraction of multi-objective joint dispatching of large-scale water network regulation and storage project groups. At the same time, considering that the machine learning model contains multiple hyperparameters, and these hyperparameters have a great influence on the algorithm effect, this embodiment provides a multi-objective optimization dispatching rule extraction method for water network regulation and storage project groups. While solving the problem of insufficient computing power in traditional aspects, it also eliminates the influence of hyperparameters on the algorithm effect, and can meet the needs of rule extraction for multi-objective joint dispatching of large-scale water network regulation and storage project groups.
[0054] According to one aspect of the present application, step S1 further comprises:
[0055] Step S11, selecting the influencing factors of the water network regulation and storage project, and constructing the initial influencing factor set of the water network regulation and storage project, the influencing factors include: current inflow, initial water storage state of the reservoir, state and dispatching decision of the previous period, annual runoff, water supply target, ecological target, power generation target and downstream section flood control target;
[0056] In this embodiment, all relevant influencing factors in the water network are taken into consideration to construct an initial influencing factor set. For example, the flow of the previous node, the water storage status of the previous regulation and storage project and the next regulation and storage project are all included in the initial influencing factor set. The elements in the initial influencing factor set also have an upstream and downstream source-sink relationship in space, and a correlation between the previous time period and the next time period in time.
[0057] Step S12, construct a multi-objective optimization scheduling simulation model for a water network storage project group, input the initial influencing factor set into the multi-objective optimization scheduling simulation model for a water network storage project group, simulate and calculate to obtain the optimal scheduling plan under different influencing factors.
[0058] According to one aspect of the present application, step S12 further comprises:
[0059] Step S12a, constructing a multi-objective optimization scheduling simulation model for a water network regulation and storage project group;
[0060] In this embodiment, an objective function is constructed, and the objectives include: minimizing the sum of squares of user water shortage depths during the scheduling period, maximizing the ecological flow guarantee rate, maximizing the total power generation, and minimizing the water transfer cost.
[0061] Step S12b, setting constraints, the constraints are: water balance constraint, upper water level constraint, lower water level constraint, maximum flow constraint, minimum flow constraint, minimum load constraint, turbine expected output constraint, initial water level control of the dispatching period, final water level control of the dispatching period, and water level amplitude constraint;
[0062] Step S12c, using a variety of multi-objective genetic algorithms to solve the multi-objective optimization scheduling simulation model of the water network storage project group, and obtain a non-inferior solution set and a corresponding non-inferior scheduling scheme set;
[0063] In this embodiment, three multi-objective genetic algorithms, NSGA-Ⅱ, NSGA-Ⅲ and RVEA, are used to solve the multi-objective optimization scheduling simulation model of the water network storage project group. After solving the model, what is obtained is not an optimal solution, but a Pareto frontier, which has a group of non-inferior solutions, that is, a non-inferior solution set, and each non-inferior solution corresponds to a non-inferior scheduling plan.
[0064] Step S12d: adopt a multi-attribute decision-making method to select the best scheduling solution from the set of non-inferior scheduling solutions corresponding to the set of non-inferior solutions.
[0065] In this embodiment, the entropy weight TOPSIS method is used to select the optimal scheduling method from non-inferior scheduling schemes. When assigning weights, the objective weighting method entropy weight method is used to assign weights, which increases uncertainty and preference and is a mathematical expression of the decision-making strategy.
[0066] In some embodiments, S12 further includes: decomposing the scheduling problem into multiple stages according to the characteristics and requirements of the scheduling problem, each stage has its own goals and constraints, forming a multi-stage scheduling model; determining the goals and constraints, input and output variables, objective functions and constraint functions, and optimization methods of each stage.
[0067] Based on real-time data and prediction results, adaptive algorithms are used to dynamically adjust scheduling rules, solve the scheduling model for each stage, and generate corresponding scheduling plans:
[0068] Adjust the scheduling rules according to real-time data and prediction results, such as modifying the weight of the objective function, adjusting the parameters of the constraint function, changing the settings of the optimization method, etc. Solve the scheduling model of each stage according to the adjusted scheduling rules to obtain the optimal solution for each stage. Combine the optimal solutions for each stage into a complete scheduling plan.
[0069] According to one aspect of the present application, step S2 further comprises:
[0070] Step S21, based on the distribution of the influencing factors, the value range of the influencing factors is divided into N intervals in turn, and N samples are sampled using the improved Tent chaotic mapping method, and the parameter sensitivity is calculated, and the most sensitive parameters are selected according to the sensitivity from large to small, and Y sensitive influencing factors are selected from the influencing factor set, where Y is a positive integer greater than 0;
[0071] In order to obtain better traversal uniformity for sampling, Logistic chaotic mapping is used. However, existing studies have shown that the distribution probability of Logistic chaotic mapping is higher in the range of 0 to 0.05 and 0.95 to 1. This unevenness has a great influence on the speed and accuracy of calculation. Therefore, in this embodiment, the improved Tent chaotic mapping is used for sampling. Compared with the Logistic chaotic mapping, the Tent chaotic mapping has better traversal uniformity and faster convergence speed. In order to avoid the sampling falling into unstable periodic points or small periodic points, a random variable is used to improve the Tent chaotic mapping, and then each sampling point is perturbed several times, and only one influencing factor is perturbed each time. The above steps are repeated until all sampling points are traversed to calculate the parameter sensitivity. Then, the most sensitive parameter can be selected by sorting the sensitivity from large to small.
[0072] Step S22: fit Y sensitive influencing factors using a scheduling period of T time steps to construct a set of Y×T sensitive influencing factors;
[0073] Step S23: Reduce the weight of the constructed Y×T sensitive influencing factor set to obtain a Z×T sensitive influencing factor set, which is the scheduling rule input variable set. T, Y, N, and Z are positive integers.
[0074] The sensitive influencing factor set of Y×T constructed is reduced in weight to remove the interference of redundant influencing factors on the results. The specific reduction method is as follows:
[0075] Calculate the absolute value of the ratio of the actual output value of each indicator to its input vector in turn, sum the calculated data, and the proportion of the absolute value calculated by a single indicator in the sum is the relative importance of the indicator. The greater the relative importance, the more significant the effect of the influencing factor on the scheduling plan, and the more important its position in the influencing factor set.
[0076] Under the condition of keeping other indicators unchanged, different change scenarios are set, and the factor values of a certain sample are used as input vectors as the simulation model input to simulate the relative changes of the actual output value, and the sensitivity of the actual output value to each indicator is obtained, and the relative contribution rate is obtained. The relative contribution rate quantitatively evaluates the impact of the changes in each indicator on the multi-attribute decision-making. The larger the value, the more sensitive the decision result is to the indicator.
[0077] The relative importance and relative contribution rate quantitatively characterize the relative importance and sensitivity information of each indicator. In the actual indicator screening process, there is still a large degree of subjective arbitrariness and fuzzy uncertainty as to which indicators will be finally deleted and retained. Therefore, in this embodiment, in order to more effectively combine the relative importance and relative contribution rate information for indicator screening, a comprehensive indicator that can take both into account is defined. When the comprehensive value is more than one order of magnitude smaller than the mean of all indicators, it is considered that the relative importance and relative contribution rate of the indicator are significantly lower than the average level of all indicators, and the indicator can be deleted. In order to quantitatively describe this discrimination process, in this embodiment, The example further defines a comprehensive discrimination index, which reflects the difference in magnitude between the comprehensive value and all indicators. For example, when the comprehensive discrimination index is greater than 0, it indicates that the comprehensive value of the indicator is greater than the average level; when the comprehensive discrimination index is less than 0, it indicates that the comprehensive value of the indicator is less than the average level; in particular, when the comprehensive discrimination index is not greater than negative 1, it indicates that the comprehensive value of the indicator differs from the mean of all indicators by more than one order of magnitude and is significantly lower than the average level, and it can be deleted. The comprehensive discrimination index not greater than negative 1 is used as the threshold for indicator screening, and indicator screening is transformed from a subjective analysis and judgment process to a quantitative calculation process.
[0078] In a further embodiment, it also includes using data mining technology and expert knowledge to extract scheduling rules based on the optimization results of the scheduling plan, and combining these rules with expert knowledge to form a more comprehensive and reliable scheduling strategy, while analyzing and evaluating the scheduling results to find out the advantages and disadvantages of the scheduling and the direction of improvement.
[0079] Use the Apriori algorithm to extract scheduling rules from the scheduling plan, and use expert knowledge to verify, modify and supplement the extracted scheduling rules to form a more comprehensive and reliable scheduling strategy. Use evaluation indicators to analyze and evaluate the scheduling results to find out the advantages, disadvantages and improvement directions of the scheduling.
[0080] According to one aspect of the present application, step S3 further comprises:
[0081] Step S31, constructing an XGBoost scheduling function fitting model based on Bayesian hyperparameter optimization;
[0082] Step S32, dividing the scheduling rule input variable set into a training set and a validation set, inputting the training set into the XGBoost scheduling function fitting model for simulation calculation, and obtaining a simulation scheduling set;
[0083] Step S33, selecting evaluation indicators to compare the simulation scheduling set and the verification set data, the evaluation indicators include: selecting the certainty coefficient, the average relative error, the root mean square error and the average relative error, adjusting and correcting the XGBoost scheduling function according to the comparison results, and obtaining the multi-objective optimization scheduling rules of the water network storage project group.
[0084] The dispatching rules of water network storage and regulation projects are ultimately the function mapping relationship between the decision variables and influencing factors of the current period of the storage and regulation project. The water level at the end of the period is selected as the output variable, and the corresponding decision variable is the water level at the end of the period. The extraction of dispatching rules for water network storage and regulation projects belongs to a regression problem, that is, the deterministic optimization dispatching results or the actual dispatching results are used as sample sets, and the function mapping relationship is fitted and solved by a certain method. In this embodiment, the extreme gradient boosting machine learning algorithm, namely XGBoost, is used for fitting. The purpose of hyperparameter optimization is to find the hyperparameter combination that makes the algorithm perform best on the validation set. Hyperparameters are different from general model parameters and need to be set before model training, such as model learning rate, SVM penalty coefficient and ANN layer number. In this embodiment, the Bayesian optimization algorithm is used to optimize the hyperparameters of machine learning algorithms such as XGBoost.
[0085] According to one aspect of the present application, step S31 is further:
[0086] Step S31a, constructing an XGBoost model;
[0087] The XGBoost algorithm was proposed by Dr. Chen Tianqi. It is a variant of the GBDT algorithm and is an improvement on the ensemble learning algorithm. Its core is the integration of gradient boosting trees. GBDT only uses CART trees as base classifiers and only uses first-order derivatives during optimization. XGBoost can be used to solve both classification and regression problems. Users can customize loss functions and it supports multiple base classifiers. When using it, adding regularization terms to the loss function and performing Taylor second-order expansion on the integer can effectively control the complexity of the model and improve the generalization of the model. It also has high computational efficiency, low complexity, and high accuracy.
[0088] Step S31b, using the proxy model and acquisition function methods to perform Bayesian optimization on the hyperparameters;
[0089] Machine learning algorithms have shown excellent performance in processing large data sets, but all machine learning models contain multiple hyperparameters, which have a great impact on the algorithm performance. Therefore, the setting of hyperparameters in machine learning models is crucial and directly affects the simulation effect and generalization ability of machine learning models.
[0090] Hyperparameter tuning of machine learning models is a black box optimization problem. Commonly used methods include grid search, random search, particle swarm algorithm, genetic algorithm, etc. Grid search and random search can only obtain local optimal solutions based on neighborhood information, and the amount of calculation is large and the operation efficiency is low. Evolutionary algorithms require enough initial sample points and the optimization efficiency is not high. The main optimization idea of the Bayesian optimization algorithm used in machine learning hyperparameter optimization is: for a given optimization goal, the posterior distribution of the objective function is continuously updated through the existing parameter information, so as to better adjust and update the current parameter value.
[0091] The Bayesian optimization algorithm used in this embodiment has the following advantages:
[0092] 1. Use Gaussian process fitting to optimize the objective function, consider previous parameter information, and continuously update prior information;
[0093] 2. The number of iterations is small and the speed is fast. A near-optimal solution can be obtained after a few objective function evaluations.
[0094] 3. The global optimum can still be found for non-convex problems.
[0095] Bayesian optimization consists of two key parts: one is to use a probabilistic proxy model to represent the original black box function with high evaluation cost, namely the proxy model; the other is to use the posterior probability distribution of the proxy model to construct an active selection strategy, namely the acquisition function. The proxy model adopts Gaussian process, and the acquisition function adopts PI, EI, and UCB.
[0096] Gaussian process is a non-parametric probabilistic proxy model. It has been considered a powerful and convenient model optimization algorithm in terms of modeling loss functions. Gaussian process extends the concept of multidimensional Gaussian distribution to infinite dimensions and is a generalization of multivariate Gaussian probability distribution.
[0097] In Bayesian optimization, the acquisition function is used to guide the algorithm to search for the optimal solution, that is, an active strategy to select the next most promising evaluation point by maximizing the acquisition function. The mathematical description of the acquisition function is: based on the posterior distribution of the observed data set, a function is constructed that maps from the input space, observation space, and hyperparameter space to the real number space, and the next evaluation point is selected by maximizing it.
[0098] In Bayesian optimization, there are three commonly used acquisition functions:
[0099] PI, PI prefers to select a location that is smaller than the current objective function value as the evaluation point, so as to achieve an improvement on the original objective function value. PI quantifies the probability that the observed value may improve the current optimal objective function value;
[0100] Although the EI and PI strategies can select the evaluation points with the highest probability of improvement, their shortcomings are also obvious. They regard all improvements as equal, and only consider the places where the model believes the objective function value is the largest. They only reflect the probability of improvement, and do not care about the magnitude of the improvement. This makes it easy to fall into the local optimum. Based on PI, a new strategy EI is derived. EI considers sampling from highly uncertain places and sampling from areas that may improve the current best observation at the same time, which is more reasonable in theory.
[0101] Step S31c, construct an XGBoost scheduling function fitting model based on Bayesian optimization.
[0102] In this embodiment, the calculation process of the XGBoost scheduling function fitting model based on Bayesian optimization is as follows:
[0103] 1. Obtain a set of calibration data points and divide the data set into a training set and a test set;
[0104] 2. Set the range of XGBoost hyperparameters to be optimized;
[0105] 3. Perform multiple Bayesian optimization searches on the training set;
[0106] 4. The parameter corresponding to the optimal average value of the cross-validation results is the best parameter;
[0107] 5. Train the XGBoost correction model using the optimal parameters;
[0108] 6. Test the generalization ability of the model and evaluate the prediction results.
[0109] According to one aspect of the present application, step S4 is further:
[0110] Step S41, respectively select a% and b% as the quantile conditions of the scheduling function, determine the ba% uncertainty interval to represent the algorithm hyperparameter uncertainty, a and b are positive numbers between 0 and 100, and respectively use the optimal hyperparameter value and the scheduling function under the a% and b% quantile conditions of the algorithm parameter posterior probability density function as the scheduling rule considering the uncertainty of the machine learning algorithm hyperparameters;
[0111] Step S42: Use the DREAM algorithm to perform Bayesian inference on the hyperparameters of the XGBoost scheduling function fitting model to obtain a multi-objective optimization scheduling rule for the water network storage project group within the ba% uncertainty interval.
[0112] In this embodiment, a multi-objective optimization scheduling rule for a water network storage project group without the influence of hyperparameters and a multi-objective optimization scheduling rule for a water network storage project group within an uncertainty interval considering the influence of hyperparameters are obtained. In actual applications, the operator can choose to extract the scheduling rule according to the specific situation.
[0113] In some embodiments, it also includes: according to the uncertainty management mechanism, using the DREAM algorithm to perform Bayesian inference, evaluate and manage the uncertainty in the scheduling rules, and adjust and update the scheduling rules according to the uncertainty evaluation results to improve the adaptability and efficiency of the scheduling.
[0114] The DREAM algorithm is used to perform Bayesian inference on the parameters in the dispatching rules to obtain the posterior probability distribution of the parameters. Uncertainty management mechanisms, including confidence intervals, sensitivity analysis, and risk analysis, are used to evaluate and manage the uncertainty in the dispatching rules, such as determining the confidence intervals of parameters, analyzing the sensitivity of parameters, and evaluating the risks of dispatching. Based on the uncertainty evaluation results, the dispatching rules are adjusted and updated, such as modifying the values of parameters, adding or reducing constraints, changing the optimization method, etc., to improve the adaptability and efficiency of dispatching.
[0115] According to one aspect of the present application, step S42 is further:
[0116] Step S42a, according to the given prior distribution of the model parameters, an initial population is given, and the posterior probability density of each point in the initial population is calculated;
[0117] Step S42b, generate a candidate point in the chain, replace the sample according to the crossover probability, and calculate the posterior probability density and the acceptance probability of Metropolis;
[0118] Step S42c, determine whether to accept, if the candidate point is accepted, move the chain forward, otherwise, stay at the current position and remove useless chains according to IQR statistics;
[0119] Step S42d, calculate the Gelman-Rubin convergence index of all dimensions in sequence, and stop the calculation when the convergence index of all dimensions is greater than the threshold.
[0120] Once the prior distribution and likelihood function of the model parameters are defined, the posterior distribution of the parameters can be obtained by Bayesian analysis. However, most dynamic system models are highly nonlinear, and it is difficult to summarize the posterior distribution of the parameters using analytical methods or analytical approximation methods. Monte Carlo simulation can generate samples from the posterior distribution and then obtain the properties of the desired posterior distribution of the parameters from the samples. However, the traditional MC simulation method is computationally inefficient for high-dimensional problems, so Markov chain Monte Carlo simulation is selected to generate samples of the posterior distribution of model parameters. The basis of the MCMC method is to establish a Markov chain, generate random walks in the exploration space, and continuously visit the stable frequency solutions caused by the stationary distribution. In order to explore the target distribution, the MCMC algorithm is used to generate the recommended distribution. According to the differences in the recommended distribution generation methods, different algorithms have been developed, and a series of improved and fusion algorithms have been derived from these basic algorithms.
[0121] The DREAM algorithm used in this embodiment shows excellent sampling efficiency in complex, high-dimensional, multimodal target distributions, and has been proven to provide better solutions than commonly used optimization algorithms in high-dimensional search spaces. The DREAM algorithm is rooted in the DE-MC algorithm and improves the DE-MC algorithm by using subspace sampling and setting useless chains to accelerate convergence to the target distribution and has better robustness.
[0122] In a further embodiment, the following example is given.
[0123] According to the idea of "preliminary selection-optimization-weight reduction", firstly, all the influencing factors affecting the regulation and storage projects on the water network are selected to construct an initial influencing factor set; then, sensitive influencing factors are optimized from the initial influencing factor set to construct a sensitive influencing factor set; finally, the sensitive factors are reduced to obtain the final set of scheduling rule input variables.
[0124] Construction of the initial influencing factor set (matrix): The input variables (influencing factors) of the water network regulation and storage project dispatching rules mainly include: inflow, initial water storage state of the reservoir, state and dispatching decision of the previous period, annual total water inflow, water supply index and other indicators (such as ecological index, downstream node flood control, power generation index, etc.). On this basis, the present invention takes into account all relevant influencing factors in the water network and constructs an initial influencing factor set (matrix), such as the flow of the previous node, the water storage state of the previous regulation and storage project and the next regulation and storage project, etc., and considers the dispatching period as T time steps, then an initial influencing factor set (matrix) of X×T can be constructed, in which each element of the matrix also has a spatial upstream and downstream source-sink relationship, and a temporal correlation between the previous period and the next period.
[0125] Construction of sensitive influencing factor set (matrix): Establish a multi-objective optimization scheduling simulation model for water network regulation and storage project groups to simulate the optimal scheduling plan under different influencing factors.
[0126] The present invention mainly considers the following four objectives:
[0127] Objective 1: Minimize the sum of squares of users’ water shortage depth during the dispatch period;
[0128]
[0129] Goal 2: Maximize ecological flow rate
[0130]
[0131] Goal 3: Maximum total power generation
[0132]
[0133] Goal 4: Minimize water transfer costs
[0134]
[0135] Where: E3 is the ecological flow guarantee rate of the downstream river of the cascade power stations during the dispatch period; EF i,t is the ecological flow of the downstream river at power station i during period t; EFT i,t is the target ecological flow of the downstream river at power station i during period t.
[0136] E is the total power generation of the cascade four-reservoir system; i is the reservoir number; t is the calculation period; n is the number of reservoirs; T is the number of time periods in the dispatch period or the time sequence at the end of the dispatch period; N i,t is the power generation output of the i-th reservoir in the t-th period; N i,t The power generation flow qf of the i-th reservoir and the t-th period i,t and net water head H i,t The two are related; ∆t is the number of hours in the calculation period t.
[0137] Where: M is the number of users (i=1,2,…,M, i=1 is the user around water source No. 1, i=2 is the user around water source No. 2, and so on); N is the number of water sources (j=1,2,…,N, j=1 is Lake A, j=2 is Lake B, j=3 is Water C); T is the number of scheduling periods; R j,i t D is the amount of water supplied from water source j to water user i; i t is the water demand of water user i in period t; W 1 t , W 2 t , W 3t They are the gravity flow of the river network, the water diversion volume of the local water source using the pump station, and the long-distance water transmission volume by pumping water from the river. k1, k2, and k3 are the corresponding costs of water supply from different water sources.
[0138] Set constraints, including water balance constraints, upper and lower water level constraints, maximum and minimum flow constraints, minimum load constraints, turbine expected output constraints, water level control at the beginning and end of the scheduling period, water level variation constraints, and flow variation constraints.
[0139] To solve the multi-objective optimization scheduling model, one or more multi-objective genetic algorithms (MOGAs), such as NSGA-Ⅱ, NSGA-Ⅲ and RVEA, are used. After solving the model, what is obtained is not an optimal solution, but a Pareto frontier, a group of non-inferior solutions, that is, a non-inferior solution set, and each non-inferior solution corresponds to a non-inferior scheduling solution. This step uses a multi-attribute decision-making method to select the best one from these non-inferior scheduling solutions. Then, whether it is sensitivity analysis or fitting of influencing factors to scheduling solutions, it is based on this solution, not on a group of non-inferior solutions.
[0140] Analyze the sensitivity of the influencing factor set: Taking the sensitivity analysis of 2 influencing factors and 3 value intervals as an example, the sampling steps are briefly described as follows: (1) Divide the value interval into 3 sub-intervals according to the distribution of each influence; (2) Randomly shuffle the 3 intervals of the 2 influencing factors respectively; (3) Sample from the middle of each sub-interval, and each vertical combination is a sample of the influencing factor. In actual operation, according to the distribution of each influencing factor, their value range (obtained based on historical long-series data statistics) is divided into N intervals, and then the improved Tent chaotic map is used to sample N samples. In order to avoid sampling falling into unstable periodic points or small periodic points, a random variable rand is used to improve the Tent chaotic map, and the iterative expression is as follows:
[0141]
[0142] Then, each sampling point is perturbed P times, and only one influencing factor among the P parameters is perturbed each time. The above steps are repeated until all sampling points are traversed. The influencing factor e i The sensitivity at one of the sampling points can be calculated as follows:
[0143]
[0144] Where: WL (·) represents the dispatching scheme output of the multi-objective optimization dispatching simulation model of the water network storage project group; f i is the parameter e i The disturbance is a predefined constant; the other variables have the same meaning as above. iThe sensitivity S i It can be expressed by the mean sensitivity at all sampling points, that is:
[0145]
[0146] After calculating the parameter sensitivity, the most sensitive parameter can be selected by sorting them from high to low sensitivity.
[0147] Construct a set (matrix) of sensitive influencing factors: Select Y sensitive influencing factors, and consider the scheduling period as T time steps, then a set (matrix) of Y×T sensitive influencing factors can be constructed.
[0148] Determine the input and output variable sets of the scheduling rules: Reduce the weight of the constructed Y×T sensitive influencing factor set (matrix) to remove the interference of redundant influencing factors on the results. The reduced weight Z×T sensitive influencing factor set (matrix) is used as the scheduling rule input variable set. The specific weight reduction method is as follows:
[0149] Identify the importance of indicators R j The larger the value, the more significant the effect of the influencing factor on the scheduling plan and the more important its position in the influencing factor set.
[0150] Identification index sensitivity G j ,The relative contribution rate quantitatively evaluates the impact of changes in each indicator on multi-attribute decision-making. The larger the value, the more sensitive the decision result is to the indicator.
[0151] Comprehensive judgment criteria for index screening: Relative importance and relative contribution rate quantitatively characterize the relative importance and sensitivity of each index, and can provide a reference for decision makers to screen indicators. However, in the actual index screening process, there is still a large degree of subjective arbitrariness and fuzzy uncertainty about which indicators will be deleted and retained. In order to more effectively combine the relative importance and relative contribution rate information for index screening, a comprehensive index F that can take into account both is defined. j =R j ×G j :In the formula, R j and G j are the relative importance and relative contribution rate of the jth indicator, respectively, and their value range is [0,1]. The above formula uses the product operation to make F j It has good numerical discrimination.
[0152] When Rj and Gj take larger values at the same time, F j The value is also larger; when R j and G j When one is larger and the other is smaller, F j The value is moderate; when R j and Gj When taking smaller values at the same time, F j The value is small. Therefore, we can j The value size determines the order of index deletion, that is, F j The smaller the index, the more likely it is to be deleted. j The value ratio of the overall index F j When the mean of is smaller than one order of magnitude, it is considered that the relative importance and relative contribution rate of the indicator are significantly lower than the average level of all indicators, and the indicator can be deleted. In order to quantitatively describe this discrimination process, we further define the comprehensive discrimination index P j :
[0153] ; Where: is the overall index F j The average value of .
[0154] P j ≤-1 is used as the threshold for index screening, which transforms index screening from a subjective analysis and judgment process to a quantitative calculation process. The sensitive impact factor set (matrix) of Z×T after weight reduction is used as the input variable set of scheduling rules.
[0155] Scheduling function fitting and hyperparameter optimization: The scheduling rules of water network regulation and storage projects are ultimately the functional mapping relationship between the decision variables and influencing factors of the regulation and storage project in the current period. The general mathematical expression of this mapping relationship is as follows:
[0156] Where: Y is the output variable, i.e. the water level at the end of the period; X is the input variable set.
[0157] The water level at the end of the period is selected as the output variable, and the corresponding decision variable is the water level at the end of the period. In fact, the extraction of dispatching rules for water network regulation and storage engineering groups belongs to a regression problem, that is, the deterministic optimization dispatching results or actual dispatching results are used as sample sets, and the function mapping relationship is fitted and solved by a certain method. This application uses the extreme gradient boosting (XGBoost) machine learning algorithm for fitting.
[0158] According to another aspect of the present application, a system for extracting multi-objective optimization scheduling rules for a water network regulation and storage project group considering parameter uncertainty is provided, which is characterized by comprising:
[0159] at least one processor; and
[0160] a memory communicatively connected to at least one of the processors; wherein,
[0161] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the multi-objective optimization scheduling rule extraction method for a water network storage project group as described in any one of the above items.
[0162] The preferred embodiments of the present invention are described in detail above; however, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, various equivalent transformations can be made to the technical solutions of the present invention, and these equivalent transformations all belong to the protection scope of the present invention.
Claims
1. A method for extracting multi-objective optimization dispatching rules for a water network storage project group, characterized in that: The steps include: Step S1, selecting the influencing factors of the water network regulation and storage project, constructing the initial influencing factor set of the water network regulation and storage project, constructing a multi-objective optimization scheduling simulation model for the water network regulation and storage project group, and using the multi-objective optimization scheduling simulation model for the water network regulation and storage project group to calculate the optimal scheduling plan under different influencing factors; Step S2: Calculate the parameter sensitivity of the influencing factors based on the optimal scheduling scheme under different influencing factors obtained by simulation, sort the influencing factors according to the sensitivity, select sensitive influencing factors, construct a sensitive influencing factor set, reduce the weight of the constructed sensitive influencing factor set, and obtain a scheduling rule input variable set; Step S3, construct an XGBoost scheduling function fitting model based on Bayesian hyperparameter optimization, divide the scheduling rule input variable set into a training set and a verification set, input the training set into the XGBoost scheduling function fitting model for simulation calculation, obtain a simulated scheduling set, select an evaluation index to compare the simulated scheduling set and the verification set data, adjust and correct the XGBoost scheduling function according to the comparison results, and obtain a multi-objective optimization scheduling rule for the water network storage project group; Step S4, respectively select a% and b% as the quantile conditions of the scheduling function, determine the ba% uncertainty interval to represent the algorithm hyperparameter uncertainty, respectively use the optimal hyperparameter value and the scheduling function under the a% and b% quantile conditions of the algorithm parameter posterior probability density function as the scheduling rule considering the hyperparameter uncertainty of the machine learning algorithm, use the DREAM algorithm to perform Bayesian inference on the hyperparameters of the XGBoost scheduling function fitting model, and obtain the multi-objective optimization scheduling rule of the water network storage project group in the ba% uncertainty interval, where a and b are positive numbers between 0 and 100; The step S2 is further as follows: Step S21, based on the distribution of the influencing factors, the value range of the influencing factors is divided into N intervals in turn, and N samples are sampled using the improved Tent chaotic mapping, and the parameter sensitivity is calculated, and the most sensitive parameters are selected according to the sensitivity from large to small, and Y sensitive influencing factors are selected from the influencing factor set, where Y is a positive integer greater than 0 and N is a natural number; Step S22: fit Y sensitive influencing factors using a scheduling period of T time steps to construct a set of Y×T sensitive influencing factors, where T is a natural number; Step S23, reduce the weight of the constructed Y×T sensitive influencing factor set to obtain a Z×T sensitive influencing factor set, which is the scheduling rule input variable set, where Z is a natural number; Wherein, step S21 is specifically as follows: (1) According to the distribution of each influence, the value interval is divided into p sub-intervals; (2) Randomly shuffle the p intervals of the q influencing factors respectively; (3) Sample from the middle of each subinterval. Each vertical combination is a sample of the influencing factor. During the operation, according to the distribution of each influencing factor, the value range obtained by the statistics of historical long-sequence data is divided into N intervals, and then the improved Tent chaotic map is used to sample N samples; in order to avoid the sampling falling into unstable periodic points or small periodic points, the random variable rand is used to improve the Tent chaotic map, and the iterative expression is as follows: ; Perturb each sampling point P times, and only perturb one of the P parameters each time. Repeat the above steps until all sampling points are traversed. The influencing factor e i The sensitivity at one of the sampling points can be calculated as follows: ; Where: WL (·) represents the dispatching scheme output of the multi-objective optimization dispatching simulation model of the water network storage project group; f i is the parameter e i The disturbance is a predefined constant; the parameter e i The sensitivity S i It is expressed by the mean sensitivity of all sampling points, namely: ; After calculating the parameter sensitivity, the most sensitive parameter can be selected by sorting them from high to low sensitivity.
2. The method for extracting multi-objective optimization scheduling rules for a water network storage and regulation project group according to claim 1, characterized in that: The step S1 is further as follows: Step S11, selecting the influencing factors of the water network regulation and storage project, and constructing the initial influencing factor set of the water network regulation and storage project, the influencing factors include: current inflow, initial water storage state of the reservoir, state and dispatching decision of the previous period, annual runoff, water supply target, ecological target, power generation target and downstream section flood control target; Step S12, construct a multi-objective optimization scheduling simulation model for a water network storage project group, input the initial influencing factor set into the multi-objective optimization scheduling simulation model for a water network storage project group, simulate and calculate to obtain the optimal scheduling plan under different influencing factors.
3. The method for extracting multi-objective optimization scheduling rules for a water network storage and regulation project group according to claim 2, characterized in that: The step S12 is further as follows: Step S12a, constructing a multi-objective optimization scheduling simulation model for a water network regulation and storage project group; Step S12b, setting constraints, the constraints are: water balance constraint, upper water level constraint, lower water level constraint, maximum flow constraint, minimum flow constraint, minimum load constraint, turbine expected output constraint, initial water level control of the dispatching period, final water level control of the dispatching period, and water level amplitude constraint; Step S12c, using a variety of multi-objective genetic algorithms to solve the multi-objective optimization scheduling simulation model of the water network storage project group, and obtain a non-inferior solution set and a corresponding non-inferior scheduling scheme set; Step S12d: adopt a multi-attribute decision-making method to select the best scheduling solution from the set of non-inferior scheduling solutions corresponding to the set of non-inferior solutions.
4. The method for extracting multi-objective optimization scheduling rules for a water network storage and regulation project group according to claim 1, characterized in that: The step S3 is further as follows: Step S31, constructing an XGBoost scheduling function fitting model based on Bayesian hyperparameter optimization; Step S32, dividing the scheduling rule input variable set into a training set and a validation set, inputting the training set into the XGBoost scheduling function fitting model for simulation calculation, and obtaining a simulation scheduling set; Step S33, selecting evaluation indicators to compare the simulation scheduling set and the verification set data, the evaluation indicators include: selecting the certainty coefficient, the average relative error, the root mean square error and the average relative error, adjusting and correcting the XGBoost scheduling function according to the comparison results, and obtaining the multi-objective optimization scheduling rules of the water network storage project group.
5. The method for extracting multi-objective optimization dispatching rules for a water network storage and regulation project group according to claim 1, characterized in that: The step S31 is further as follows: Step S31a, constructing an XGBoost model; Step S31b, using the proxy model and acquisition function methods to perform Bayesian optimization on the hyperparameters; Step S31c, construct an XGBoost scheduling function fitting model based on Bayesian optimization.
6. The method for extracting multi-objective optimization dispatching rules for a water network storage and regulation project group according to claim 1, characterized in that: The step S4 is further as follows: Step S41, respectively select a% and b% as the quantile conditions of the scheduling function, determine the ba% uncertainty interval to represent the uncertainty of the algorithm hyperparameters, and respectively use the scheduling function under the a% and b% quantile conditions of the optimal hyperparameter value and the algorithm parameter posterior probability density function as the scheduling rule considering the uncertainty of the machine learning algorithm hyperparameters; a and b are positive numbers between 0 and 100; Step S42: Use the DREAM algorithm to perform Bayesian inference on the hyperparameters of the XGBoost scheduling function fitting model to obtain a multi-objective optimization scheduling rule for the water network storage project group within a ba% uncertainty interval.
7. The method for extracting multi-objective optimization dispatching rules for a water network storage and regulation project group according to claim 6, characterized in that: The step S42 is further as follows: Step S42a, according to the given prior distribution of the model parameters, an initial population is given, and the posterior probability density of each point in the initial population is calculated; Step S42b, generate a candidate point in the chain, replace the sample according to the crossover probability, and calculate the posterior probability density and the acceptance probability of Metropolis; Step S42c, determine whether to accept, if the candidate point is accepted, move the chain forward, otherwise, stay at the current position and remove useless chains according to IQR statistics; Step S42d, calculate the Gelman-Rubin convergence index of all dimensions in sequence, and stop the calculation when the convergence index of all dimensions is greater than the threshold.
Citation Information
Patent Citations
Method for extracting joint dispatching rules of cascade hydropower station group based on random forest
CN108647829A
Reservoir scheduling risk group decision-making method under incomplete information condition
CN108734378A
Multi-uncertainty reservoir scheduling rule extraction method and system
CN110910004A
Reservoir dispatching operation rolling simulation method and device
CN113240181A
Reservoir optimization scheduling rule extraction method of dynamic time-varying structure
CN113962463A
