Cascade reservoir power generation scheduling method and system based on VAE and dynamic programming
By using variational autoencoders and dynamic programming methods in cascade reservoir power generation dispatching, mining historical dispatching rules and optimizing dispatching strategies solve the problems of dispatching complexity and inconvenient data acquisition in the existing system, and achieve an increase in power generation and The water consumption rate is reduced and the intelligent dispatching effect is improved.
Patent Information
- Application Number
- CN202410915527.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-01
AI Technical Summary
The existing power generation dispatching system has not yet implemented automatic budgeting and independent decision-making functions, and data acquisition is inconvenient, making the power generation dispatching of cascade reservoirs complex and time-consuming, making it difficult to realize intelligent dispatching.
Using methods based on variational autoencoders (VAE) and dynamic programming, through configuring parameters and training models, the historical dispatching rules are mined, the optimization search space is narrowed, the power generation and water consumption rate of the cascade reservoirs are optimized, and the dispatching effect is improved.
It has achieved an increase in power generation and a reduction in water consumption rate in cascade reservoirs, improved the intelligent level of power generation dispatching, simplified the dispatching process, and improved dispatching accuracy.
Smart Images

Figure CN118739431A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water resources and reservoir scheduling and operation management, and in particular to a cascade reservoir power generation scheduling method based on VAE and dynamic programming. Background Art
[0002] In recent years, with the large-scale development and construction of cascade reservoirs in major river basins in my country, the joint optimization and dispatching of cascade reservoirs has provided a feasible way to maximize the operating benefits of hydropower station reservoirs. With the rapid development of computer technology, the use of information technology, intelligent optimization and knowledge reasoning technology to promote the reform and development of river basin water conservancy and realize the automation and intelligent dispatching of relevant water conservancy projects is the future development trend of the water conservancy industry. Therefore, further seeking more intelligent dispatching methods and applying relevant theoretical methods to actual production can further improve the functions of the existing power generation dispatching system and improve the level of intelligence of system power generation dispatching.
[0003] There are often complex hydraulic and electrical connections between the upstream and downstream reservoirs of cascade reservoirs. The joint dispatch of cascade reservoirs is a multi-constrained, high-dimensional, dynamic and nonlinear problem. In the current practical application of power generation dispatching, the power generation plan needs to be repeatedly calculated manually until it meets the dispatcher's wishes. The existing power generation dispatching system acts as a "dispatching calculator" and has not yet realized automatic budgeting and autonomous decision-making functions, and it is inconvenient to obtain data between systems. Summary of the invention
[0004] The embodiment of the present application provides a cascade reservoir power generation scheduling method based on VAE and dynamic programming, which is used to increase the power generation of cascade reservoirs and reduce the water consumption rate, thereby improving the power generation scheduling effect of cascade reservoirs.
[0005] The embodiment of the present application proposes a cascade reservoir power generation scheduling method based on VAE and dynamic programming, including: Taking the maximum power generation of cascade reservoirs as the objective function, the parameters of the variational autoencoder and the dynamic programming successive approximation algorithm are configured; Determine the dispatching habits of dispatchers based on historical dispatching plan data, and establish a mapping relationship between control objectives and influencing factors; Conduct training based on the water level and output of each cascade hydropower station reservoir during the dispatch period to determine the dispatching rules that meet the control objectives and dispatching habits; Use the current scheduling rules as scheduling constraints and substitute them into the dynamic programming successive approximation algorithm to reduce the optimization search space; For each reservoir in the cascade reservoirs, the optimal operation strategy is obtained according to the single reservoir optimization method and used as the initial solution for joint operation; Considering the joint operation conditions of multiple reservoirs, the operation strategies of multiple reservoirs are optimized in sequence until the convergence conditions are reached, which is used as the scheduling optimization result of cascade reservoir power generation.
[0006] Optionally, the objective function is to maximize the power generation of cascade reservoirs: in, The power generation capacity of cascade reservoirs; k i For the i The output coefficient of each hydropower station; H i,t For the i Hydropower Station No. t The water head of the period; Q i,t For the i Hydropower Station No. t The power generation flow during the period; For the t The duration of the time period.
[0007] Optionally, the parameters for configuring the variational autoencoder include: The number of neurons in the fully connected layer corresponding to the mean and variance logarithms is 10; The decoder input dimension is 10, consisting of a fully connected layer of 256 neurons, followed by a fully connected layer of 9216 neurons; The network weights were initialized using the Glorot uniform distribution method, the batch gradient descent size for training was 32, and Adam was used as the optimizer.
[0008] Optionally, parameters for configuring the dynamic programming successive approximation algorithm include: Output coefficient, characteristic water level, number of dynamic programming (DP) discrete points, characteristic curve, number and length of calculation periods, number of DPSA iterations and convergence conditions of each reservoir in the cascade reservoirs.
[0009] Optionally, the dispatching habits of dispatchers are determined based on historical dispatching plan data, and a mapping relationship between control objectives and influencing factors is established, including: Based on the historical operation data of cascade power stations and the process data of historical dispatch plans, it is defined at time Next, for the future moment The scheduling plan output is x ij , then all i All the time j The scheduling plan output at all times meets: Among them, m and n are ordinal numbers.
[0010] Optionally, training is conducted based on the water level and output of each cascade hydropower station reservoir during the scheduling period to determine the scheduling rules that meet the control objectives and scheduling habits, including: Map the scheduling plan output to the distribution of latent variables to obtain the latent variables Z The posterior distribution of Z The posterior distribution of satisfies: Where: is the posterior distribution; is the prior distribution, is the multivariate standard normal distribution; is the real distribution; Introducing the encoder , through the neural network training parameters and , so that the encoder is close to the true posterior distribution , and use KL The divergence determines the gap between the encoder and the true posterior distribution, satisfying: The objective function of the model is obtained by the maximum likelihood method, which satisfies: In the formula, and are the parameters of the posterior distribution model respectively; is the decoder model; is the regularization term.
[0011] Optionally, training is conducted based on the water level and output of each cascade hydropower station reservoir during the scheduling period to determine the scheduling rules that meet the control objectives and scheduling habits, and also include: The objective function is split into two terms, the first of which is the regularization term, which is the encoder model With prior distribution of KL Divergence, satisfies: in, It follows a normal distribution. It follows a standard normal distribution. X To represent the encoder as a function of the input data; The second item is the generation model, that is, the decoder. For the output process data, let it obey the normal distribution, then the analytical solution corresponding to the generation model satisfies: In the formula, and Indicates that the input is Z, the output of the neural network is the mean and variance, and the right side of the equation represents the mean square error as a whole.
[0012] Optionally, training is conducted based on the water level and output of each cascade hydropower station reservoir during the scheduling period to determine the scheduling rules that meet the control objectives and scheduling habits, and also include: The historical output data stochastic simulation model based on variational autoencoder VAE is divided into three stages: The first stage is the scheduling plan data processing stage, which is used to convert the historical scheduling plan data into K -means method is used for classification, and we get k Cluster ; The second stage is the encoding stage, which is used to obtain the mean and variance through the encoder and reparameterize to transform the sampling process into a differentiable one. The reparameterization process is specifically used to introduce random variables that obey the standard normal distribution. , from the random variable After sampling, the linear change Get hidden variables Z ; The third stage is the decoding stage, where the latent variables are obtained. Z New samples are obtained by the generative model .
[0013] An embodiment of the present application also proposes a cascade reservoir power generation scheduling system based on variational autoencoder and dynamic programming, including a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the cascade reservoir power generation scheduling method based on VAE and dynamic programming as described above are implemented.
[0014] The method of the present application adopts a variational autoencoder algorithm to mine historical scheduling rules, and obtains scheduling methods corresponding to different scheduling objectives by training and learning the historical behavioral habits of scheduling personnel. The methods are then introduced into a dynamic programming successive approximation algorithm to narrow the optimization range of the optimal scheduling method, reduce the complexity of the optimization calculation, and improve the accuracy of the optimization results, thereby increasing the power generation of cascade reservoirs, reducing water consumption, and improving the power generation scheduling effect of cascade reservoirs.
[0015] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings: Figure 1 A basic flow diagram of the cascade reservoir power generation dispatching method according to an embodiment of the present application; Figure 2 It is a schematic diagram of the monthly operating water level range of each hydropower station in the cascade reservoirs from 2017 to 2022 in the implementation case of the cascade reservoir power generation scheduling method of the embodiment of the present application; Figure 3 It is a schematic diagram of the average monthly output range of each hydropower station in the cascade reservoirs from 2017 to 2022 in the implementation case of the cascade reservoir power generation dispatching method of the embodiment of the present application; Figure 4 This is a schematic diagram of the comparison of long-term scheduling output and water level in 2020 in the implementation case of the cascade reservoir power generation scheduling method of an embodiment of the present application. DETAILED DESCRIPTION
[0017] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0018] The present application embodiment proposes a cascade reservoir power generation scheduling method based on VAE and dynamic programming, such as Figure 1 As shown, the following steps are included: In step S1, the maximum power generation of the cascade reservoirs is used as the objective function, and the parameters of the variational autoencoder and the dynamic programming successive approximation algorithm are configured. In some embodiments, the maximum power generation of the cascade reservoirs is used as the objective function to satisfy: in, The power generation capacity of cascade reservoirs; k i For the i The output coefficient of each hydropower station; H i,t For the i Hydropower Station No. t The water head of the period; Q i,t For the i Hydropower Station No. t The power generation flow during the period; For thet The duration of the time period. Constraints may include reservoir water balance constraints, cascade flow connections, water level storage function, downstream (ecological) flow constraints, water level constraints, output constraints, initial and final water level constraints, time period power requirement constraints, specific water level constraints at the beginning of the flood season and the end of the water storage period, holiday power consumption interval constraints, water level drawdown and recharge constraints, etc.
[0019] In some embodiments, parameters for configuring a variational autoencoder (VAE) include: The number of neurons in the fully connected layer corresponding to the mean and variance logarithms is 10; The decoder input dimension is 10, consisting of a fully connected layer of 256 neurons, followed by a fully connected layer of 9216 neurons; The network weights were initialized using the Glorot uniform distribution method, the batch gradient descent size for training was 32, and Adam was used as the optimizer.
[0020] In some embodiments, the parameters for configuring the dynamic programming successive approximation algorithm include: Output coefficient, characteristic water level, number of dynamic programming (DP) discrete points, characteristic curve, number and length of calculation periods, number of DPSA iterations and convergence conditions of each reservoir in the cascade reservoirs.
[0021] In step S2, the dispatching habits of the dispatching personnel are determined based on the historical dispatching plan data, and a mapping relationship between the control target and the change of the influencing factor is established. In some embodiments, step S2 specifically includes: Based on the historical operation data of cascade power stations (inflow into each reservoir, historical water level operation process, historical dispatching instructions, historical water level constraints, etc.), and taking the process data of historical dispatching plan as the basis, it is defined at time Next, for the future moment The scheduling plan output is x ij , then all i All the time j The scheduling plan output at all times meets: Among them, m and n are ordinal numbers.
[0022] In step S3, training is performed based on the water level and output of each cascade hydropower station reservoir during the scheduling period to determine a scheduling rule that meets the control target and scheduling habits. In some embodiments, step S3 specifically includes: Since the distribution of the output scheduling plan is unknown, the embodiment of the present application maps the scheduling plan output to the distribution of the latent variable through the latent variable to obtain the latent variable Z The posterior distribution of Represents that the hidden variable Z The posterior distribution of satisfies: Where: is the posterior distribution; is the prior distribution, is the multivariate standard normal distribution; is the true distribution.
[0023] because Unknown, the posterior distribution cannot be directly derived, the embodiment of the present application introduces the encoder , through the neural network training parameters and , so that the encoder is close to the true posterior distribution , and use KL The divergence determines how far away the encoder is from the true posterior distribution. KL Divergence is also called relative entropy. It is non-negative. When two distributions are completely consistent, their KL The divergence is 0, KL The smaller the divergence, the closer the two distributions are. KL Divergence satisfies: The objective function of the model is obtained by the maximum likelihood method, which satisfies: In the formula, and are the parameters of the posterior distribution model respectively; is the decoder model; It is a regularization term, which makes the encoder close to the standard normal distribution, prevents the variance from being 0 during training, and improves the generation effect.
[0024] In step S4, the current dispatching rules are used as dispatching constraints and substituted into the dynamic programming successive approximation algorithm to reduce the optimization search space. In some embodiments, the dispatching constraints mainly refer to the quantized and reconstructed holiday power consumption constraints, water level drawdown and recharge constraints, and key node reservoir energy storage requirements learned by the VAE algorithm.
[0025] In step S5, for each reservoir of the cascade reservoirs, the optimal operation strategy is obtained according to the single reservoir optimization method, and used as the initial solution for the joint operation. In a specific example, the optimal operation strategy of each reservoir is obtained according to the single reservoir optimization method, and dynamic programming (DP), successive optimization method (POA), etc. can be used.
[0026] In step S6, the operation conditions of multiple reservoirs are considered, and the operation strategies of multiple reservoirs are optimized in sequence until the convergence condition is reached, which is used as the scheduling optimization result of cascade reservoir power generation. In a specific example, the convergence condition can be set to stop the calculation when the maximum number of iterations of the algorithm is reached, or it can be set to stop the calculation when the latest iteration result is no longer greater than the previous iteration result.
[0027] The method of the present application adopts a variational autoencoder algorithm to mine historical scheduling rules, and obtains scheduling methods corresponding to different scheduling objectives by training and learning the historical behavioral habits of scheduling personnel. The methods are then introduced into a dynamic programming successive approximation algorithm to narrow the optimization range of the optimal scheduling method, reduce the complexity of the optimization calculation, and improve the accuracy of the optimization results, thereby increasing the power generation of cascade reservoirs, reducing water consumption, and improving the power generation scheduling effect of cascade reservoirs.
[0028] In some embodiments, training is performed based on the water level and output of each cascade hydropower station reservoir during the scheduling period to determine the scheduling rules that meet the control objectives and scheduling habits, and further includes: The objective function is split into two terms, the first of which is the regularization term, which is the encoder model With the prior distribution of KL Divergence, satisfies: in, It follows a normal distribution. It follows a standard normal distribution. X To represent the encoder as a function of the input data; The second item is the generation model, that is, the decoder. For the output process data, let it obey the normal distribution, then the analytical solution corresponding to the generation model satisfies: In the formula, and Indicates that the input is Z , the output of the neural network is the mean and variance, and the right side of the equation represents the mean square error as a whole.
[0029] In some embodiments, training is performed based on the water level and output of each cascade hydropower station reservoir during the scheduling period to determine the scheduling rules that meet the control objectives and scheduling habits, and further includes: The historical output data stochastic simulation model based on variational autoencoder VAE is divided into three stages: The first stage is the scheduling plan data processing stage, which is used to convert the historical scheduling plan data into K -means method is used for classification, and we get k Cluster ; The second stage is the encoding stage, which is used to obtain the mean and variance through the encoder and reparameterize to transform the sampling process into a differentiable one. The reparameterization process is specifically used to introduce random variables that obey the standard normal distribution. , from the random variable After sampling, the linear change Get hidden variables Z ; The third stage is the decoding stage, where the latent variables are obtained. Z New samples are obtained by the generative model .
[0030] The embodiment of the present application also proposes an implementation case of a cascade reservoir power generation dispatching method based on VAE and dynamic programming. This embodiment takes a cascade reservoir composed of multiple hydropower station reservoirs in a certain river basin as an example. The year with abundant water supply is selected as an example, the connection between historical operation data is mined through the VAE model, the constraint conditions are quantified by manual dispatching experience, and the long-term intelligent dispatching results are obtained through a step-by-step optimization algorithm. The constraints involved are mainly: 1. Holiday electricity consumption range constraints: For example, during the Spring Festival, the overall electricity consumption decreases.
[0031] 2. Constraints on water level drawdown and recharge: The water level of each hydropower station reservoir should be drawn down to the flood limit water level before the flood season, and should be recharged to as close to or reach the normal water level as possible at the end of the flood season. For example, the flood limit water level of the Hongjiadu Hydropower Station reservoir is 1138m, and the normal water level is 1140m. The operating control water level is 1138m during the main flood season from June to August, and the operating control water level is 1140m during the post-flood season from September to October.
[0032] 3. Unit vibration zone constraints: The output of each power station unit should avoid the vibration zone. For example, the vibration zones of the three units of Hongjiadu Hydropower Station are 0-30MW and 95-165MW.
[0033] 4. Discharge flow constraints: The minimum discharge constraint of each hydropower station reservoir is the discharge flow constraints for ecology, shipping, etc., and the maximum discharge is the maximum discharge capacity of power generation, flood discharge and other facilities.
[0034] 5. Target water level constraint: the water level expected to be reached at the end of the reservoir operation period of each hydropower station.
[0035] In addition to meeting the above-mentioned water level drawdown and recharge constraints, unit vibration zone constraints, downstream flow constraints, and target water level constraints, the long-term intelligent scheduling plan can further quantify the constraints based on the scheduling experience discovered.
[0036] (1) Constrained Quantification The historical monthly average water level and average output process from 2017 to 2022 were selected to preliminarily determine the constraint quantification results of the monthly operating water level and average output of each hydropower station. According to the flood season division of each reservoir in the cascade hydropower station reservoir group, the period when the reservoir gradually releases stored water before the flood season and frees up flood control storage capacity to maximize the flood control benefits is defined as the pre-flood drawdown period, which is generally from March to May; the period at the end of the flood season when water is gradually stored to the target water level through "storing surplus water to supplement dry season" scheduling to give full play to the comprehensive benefits of power generation, water supply, shipping, ecology, etc. in the dry season is defined as the end-flood water storage period, which is generally from September to November. Based on the mining of the changing laws of the historical data of the operating water level range and output range of the cascade hydropower station reservoirs before and at the end of the flood season, the results are as shown in the attached figure. Figure 2 , 3 and Table 1: Table 1 Operating water level range and output range of a cascade hydropower station reservoir group before and after the flood season Method according to the embodiment of the present application 1) First-level reservoir: Combining the VAE model with the water level variation law in previous research results, in the pre-flood drawdown period from April to May, the reservoir generally controls the water level between [1087.0m, 1090.0m], and the output is between [54.0MW, 186.8MW]. In the end-flood water storage period from September to October, the reservoir generally controls the water level between [1090.0m, 1122.0m], and the output is between [60.0MW, 221.8MW].
[0037] 2) Second-level reservoir: Combining the VAE model with the water level variation law in the previous research results, in the pre-flood drawdown period from March to April, the reservoir generally controls the water level at around 950m, and the output is between [90.0MW, 413.5MW]; in the end-flood water storage period from September to October, the reservoir generally controls the water level at around 970m, and the output is between [240.6MW, 421.3MW].
[0038] 3) The third-level reservoir: Combining the VAE model with the cascade dispatching operation principle in the previous research results, the reservoir will generally control the water level between [835.0m, 836.0m], that is, try to maintain it at about 1.5m below the normal high water level, and the output will be between [130.0MW, 349.6MW].
[0039] 4) The fourth-level reservoir: Combining the VAE model with the water level variation law in the previous research results, in the pre-flood drawdown period of April-May, the reservoir will generally control the water level at around 740m, and the output will be between [163.2MW, 630.5MW]; in the end-flood water storage period of September-October, the reservoir will generally control the water level at around 760m, and the output will be between [254.0MW, 445.0MW].
[0040] 5) Fifth-level reservoir: Combining the VAE model with the cascade dispatching operation principle in the previous research results, during the pre-flood drawdown period from March to April, the reservoir generally controls the water level between [846.0m, 850.0m] and the output between [90.0MW, 180.0MW]; during the end-flood water storage period from September to October, the reservoir generally controls the water level between [855.0m, 867.0m] and the output between [90.0MW, 180.0MW].
[0041] 6) Level 6 reservoir: The reservoir will generally control the water level between [717.0m, 718.0m], that is, try to maintain operation at about 1.5m below the normal high water level, and the output will be between [75.0MW, 150.0MW].
[0042] 7) Seventh-level reservoir: Combining the VAE model with the water level variation law in the previous research results, in the pre-flood drawdown period of March-April, the reservoir will generally control the water level between [600.0m, 604.0m], and the output will be between [596.7MW, 1430.6MW]; in the end-of-flood water storage period of September-October, the reservoir will generally control the water level above 625m, and the output will be between [1029.1MW, 1861.6MW].
[0043] 8) The eighth-level reservoir: Combining the VAE model with the cascade dispatching operation principle in the previous research results, during the pre-flood drawdown period of March to April, the reservoir will generally control the water level between [438.0m, 439.0m], that is, try to maintain it at about 1.5m below the normal high water level, and the output will be between [414.6MW, 484.2MW]; during the end-flood water storage period of September to October, the reservoir will generally control the water level between [438.0m, 439.0m], that is, try to maintain it at about 1.5m below the normal high water level, and the output will be between [430.5MW, 689.6MW].
[0044] 9) Ninth-level reservoir: Combining the VAE model with the cascade dispatching operation principle in the previous research results, during the pre-flood drawdown period of March-April, the reservoir will generally control the water level between [363.0m, 364.0m], that is, try to maintain it at about 1.5m below the normal high water level, and the output will be between [412.0MW, 802.3MW]; during the end-flood water storage period of September-October, the reservoir will generally control the water level between [363.0m, 364.0m], that is, try to maintain it at about 1.5m below the normal high water level, and the output will be between [494.2MW, 719.4MW].
[0045] Calculation results According to the above constraint quantification results, taking the inflow of the cascade hydropower station reservoir group in a certain year as input, the operating water level range and output range of each cascade hydropower station reservoir in each historical month can be obtained. According to this range, the scope of the constraint conditions can be narrowed, and then the DPSA algorithm is used for solution to calculate the long-term intelligent scheduling operating water level and output process of each hydropower station reservoir. See the attached figure. Figure 4 The power generation and water consumption rate of each hydropower station reservoir are shown in Table 2 Table 2 Comparison of long-term intelligent dispatching power generation and planned power generation in a certain year It can be seen that the power generation of each power station is calculated by the proposed method, and the overall power generation of the cascade is slightly increased. The results show that the overall power generation of the cascade still has room for improvement compared with the power generation of the actual power generation plan.
[0046] The intelligent power generation scheduling model established in this application is mainly to solve the problem that the current system requires multiple manual adjustments. Scheduling is performed by learning from previous scheduling experience to achieve the effect of reducing the amount of calculation.
[0047] An embodiment of the present application also proposes a cascade reservoir power generation scheduling system based on variational autoencoder and dynamic programming, including a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the cascade reservoir power generation scheduling method based on VAE and dynamic programming as described above are implemented.
[0048] The method of the present application adopts a variational autoencoder algorithm to mine historical scheduling rules, and obtains scheduling methods corresponding to different scheduling objectives by training and learning the historical behavioral habits of scheduling personnel. The methods are then introduced into a dynamic programming successive approximation algorithm to narrow the optimization range of the optimal scheduling method, reduce the complexity of the optimization calculation, and improve the accuracy of the optimization results, thereby increasing the power generation of cascade reservoirs and reducing the water consumption rate, and improving the power generation scheduling effect of cascade reservoirs.
[0049] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present disclosure with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. It is not limited to the examples described in this specification or during the implementation of this application, and its examples will be interpreted as non-exclusive.
[0050] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art may use other embodiments when reading the above description.
[0051] The above embodiments are merely exemplary embodiments of the present disclosure. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present disclosure, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present invention.
Claims
1. A method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming, characterized in that: include: Taking the maximum power generation of cascade reservoirs as the objective function, the parameters of the variational autoencoder and the dynamic programming successive approximation algorithm are configured; Determine the dispatching habits of dispatchers based on historical dispatching plan data, and establish a mapping relationship between control objectives and influencing factors; Conduct training based on the water level and output of each cascade hydropower station reservoir during the dispatch period to determine the dispatching rules that meet the control objectives and dispatching habits; Use the current scheduling rules as scheduling constraints and substitute them into the dynamic programming successive approximation algorithm to reduce the optimization search space; For each reservoir in the cascade reservoirs, the optimal operation strategy is obtained according to the single reservoir optimization method and used as the initial solution for joint operation; Considering the joint operation conditions of multiple reservoirs, the operation strategies of multiple reservoirs are optimized in sequence until the convergence conditions are reached, which is used as the scheduling optimization result of cascade reservoir power generation.
2. The method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming according to claim 1, characterized in that: The objective function is to maximize the power generation of cascade reservoirs: in, The power generation capacity of cascade reservoirs; k i For the i The output coefficient of each hydropower station; H i,t For the i Hydropower Station No. t The water head of the period; Q i,t For the i Hydropower Station No. t The power generation flow during the period; For the t The duration of the time period.
3. The method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming as claimed in claim 2, characterized in that: The parameters for configuring the variational autoencoder include: The number of neurons in the fully connected layer corresponding to the mean and variance logarithms is 10; The decoder input dimension is 10, consisting of a fully connected layer of 256 neurons, followed by a fully connected layer of 9216 neurons; The network weights were initialized using the Glorot uniform distribution method, the batch gradient descent size for training was 32, and Adam was used as the optimizer.
4. The method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming as claimed in claim 3, characterized in that: The parameters for configuring the dynamic programming successive approximation algorithm include: Output coefficient, characteristic water level, number of dynamic programming (DP) discrete points, characteristic curve, number and length of calculation periods, number of DPSA iterations and convergence conditions of each reservoir in the cascade reservoirs.
5. The method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming as claimed in claim 4, characterized in that: Determine the dispatching habits of dispatchers based on historical dispatching plan data, and establish a mapping relationship between control objectives and influencing factors, including: Based on the historical operation data of cascade power stations and the process data of historical dispatch plans, it is defined at time Next, for the future moment The scheduling plan output is x ij , then all i All the time j The scheduling plan output at all times meets: Among them, m and n are ordinal numbers.
6. The method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming as claimed in claim 5, characterized in that: Based on the water level and output of each cascade hydropower station reservoir during the dispatch period, training is carried out to determine the dispatching rules that meet the control objectives and dispatching habits, including: Map the scheduling plan output to the distribution of latent variables to obtain the latent variables Z The posterior distribution of Z The posterior distribution of satisfies: Where: is the posterior distribution; is the prior distribution, is the multivariate standard normal distribution; is the real distribution; Introducing the encoder , through the neural network training parameters and , so that the encoder is close to the true posterior distribution , and use KL The divergence determines the gap between the encoder and the true posterior distribution, satisfying: The objective function of the model is obtained by the maximum likelihood method, which satisfies: In the formula, and are the parameters of the posterior distribution model respectively; is the decoder model; is the regularization term.
7. The method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming as claimed in claim 6, characterized in that: Training is conducted based on the water level and output of each cascade hydropower station reservoir during the dispatch period to determine the dispatching rules that meet the control objectives and dispatching habits, including: The objective function is split into two terms, the first of which is the regularization term, which is the encoder model With prior distribution of KL Divergence, satisfies: in, It follows a normal distribution. It follows a standard normal distribution. X To represent the encoder as a function of the input data; The second item is the generation model, that is, the decoder. For the output process data, let it obey the normal distribution, then the analytical solution corresponding to the generation model satisfies: In the formula, and Input is Z , the output is the mean and variance of the neural network, and the right side of the equation represents the mean square error as a whole.
8. The method for dispatching power generation of cascade reservoirs based on VAE and dynamic programming as claimed in claim 7, characterized in that: Training is conducted based on the water level and output of each cascade hydropower station reservoir during the dispatch period to determine the dispatching rules that meet the control objectives and dispatching habits, including: The historical output data stochastic simulation model based on variational autoencoder VAE is divided into three stages: The first stage is the scheduling plan data processing stage, which is used to convert the historical scheduling plan data into K -means method is used for classification, and we get k Cluster ; The second stage is the encoding stage, which is used to obtain the mean and variance through the encoder and reparameterize to transform the non-differentiable sampling process into a differentiable one. The reparameterization process is specifically used to introduce random variables that obey the standard normal distribution. , from the random variable After sampling, the linear change Get hidden variables Z ; The third stage is the decoding stage, where the latent variables are obtained. Z New samples are obtained by the generative model .
9. A cascade reservoir power generation dispatching system based on variational autoencoder and dynamic programming, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the cascade reservoir power generation scheduling method based on VAE and dynamic programming as described in any one of claims 1 to 8 are implemented.
