Optimized dispatching method and device for wind power and pumped storage combined system
The optimization dispatch method of wind power and pumped-storage combined system through deep learning and Monte Carlo tree search algorithm solves the problems of long solution time and local optimal solution of wind power and pumped-storage combined system, and achieves efficient and accurate wind power and pumped storage combined system. Joint storage system dispatching improves the economy and reliability of the system.
Patent Information
- Application Number
- CN202411033852.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-15
AI Technical Summary
It is difficult for the existing technology to effectively reduce the solution time of the combined wind power and pumped-storage system while ensuring high-quality solutions. Especially when dealing with the randomness and volatility of wind power output, it is easy to fall into local optimal solutions and premature convergence.
A daily stochastic optimal dispatching method for wind power and pumped-storage combined systems based on deep learning prediction and Monte Carlo tree search optimization is adopted. The value function is constructed through a deep reinforcement learning algorithm and combined with the Monte Carlo tree search algorithm to optimize the decision-making process to ensure rapid convergence and high efficiency. search.
It significantly improves the efficiency and accuracy of system dispatching, solves the dimensionality disaster of traditional optimization algorithms in high-dimensional stochastic problems, improves the economy and reliability of combined wind power and pumped storage systems, and enhances the dispatching flexibility of the power system. and renewable energy absorption capacity.
Smart Images

Figure CN118783549A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power systems, and in particular to a method and device for optimizing the dispatching of a wind power and pumped storage combined system. Background Art
[0002] With the continuous growth of renewable energy generation, balancing generation plans has become an important issue in the global energy industry. Due to the reliability and rapidity of pumped storage units in power regulation, they have long been responsible for regulation tasks in many power systems. In recent years, the ecological effects of hydropower development have been studied and improved. At the same time, the regulation of pumped storage units has become increasingly important for hybrid power systems, such as wind and photovoltaic hybrid power systems, but the output of wind farms is random and deviations will occur when executing plans.
[0003] Although modern intelligent optimization algorithms have effectively solved the problem of large computational complexity and susceptibility to the curse of dimensionality in traditional optimization algorithms, they are unable to fundamentally solve the problem of premature convergence and susceptibility to falling into local optimal solutions. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method and device for optimizing the dispatching of a wind power and pumped storage combined system, so as to effectively reduce the solution time while ensuring a high-quality solution.
[0005] In order to solve the above technical problems, the present invention provides a method for optimizing the dispatching of a wind power and pumped storage combined system, comprising:
[0006] Step S1, establishing a daily random optimization dispatch model for a wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization;
[0007] Step S2, determining the constraints of the daily stochastic optimization scheduling model, including the reservoir capacity constraint of the pumped storage power station, the daily initial and final storage capacity balance constraint, and the mutually exclusive operation constraint of power generation and pumping;
[0008] Step S3, dividing the state space and action space and performing discretization processing, the state space is composed of the random value of wind power output, the upper reservoir capacity of the pumped storage reservoir and the total system deviation, and the action space is composed of the power generation and pumping power set of the pumped storage power station;
[0009] Step S4, using a deep reinforcement learning algorithm to solve the daily random optimization scheduling model, by constructing a value function and ensuring its rapid convergence to adapt to the randomness and volatility of wind power output;
[0010] Step S5, optimizing the decision-making process of the deep reinforcement learning algorithm through the Monte Carlo tree search algorithm.
[0011] Preferably, the daily random optimization dispatch model of the wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization established in step S1 specifically includes:
[0012] According to the prediction model of wind turbines, the output model of wind turbines is established as follows:
[0013]
[0014] Where: m is the number of units in the i-th wind farm; is the power generation of the jth unit in the i-th wind farm in each period;
[0015] The output model of the pumped storage unit is established as follows:
[0016]
[0017] Where: P pmax , P pmin They are the maximum and minimum power generation capacity of the pumped storage power station units, P dmax , P dmin are the maximum and minimum pumping power of the pumped storage power station unit; V u (t), V d (t) are the capacities of the upper reservoir and the lower reservoir in each period; η p , η d They are the power generation efficiency and pumping efficiency of the pumped storage power station units;
[0018] The balance constraint of power extraction and generation in each hour of the day is:
[0019]
[0020] Q p =η p η d Q d
[0021] Where: Q p , Q d They are the total power generation and total water pumping of the pumped-storage power station units per hour;
[0022] In the daily stochastic optimization operation model of wind power and pumped storage combined system, the balance constraint of system power is:
[0023]
[0024] Where: P D (t) is the load demand in the tth period. The distribution function curve of the wind power forecast error in the tth period is discretized into N values, and the power corresponding to each value is P w,i(t)(i∈[1,N]);
[0025] The minimum absolute value deviation between the planned output and the actual output of the wind power and pumped storage combined system is as follows:
[0026]
[0027] Where: T is the number of time periods, R(t) is the index function of time period t; V(t) is the storage capacity of the upper and middle reservoirs of the pumped storage power station at the beginning of time period t; P h (t) is the power output of the pumped storage power station unit during period t, P h (t)<0 is the pumping power, P h (t)>0 is the power generation;
[0028]
[0029] Where: After the error distribution function curve of wind power forecast in period t is discretized into N values, its corresponding power is P w,i (t)(i∈[1,N]), the corresponding probability is p w,i ;P D (t) is the planned output of wind power and pumped storage combined system in period t; P p (t) is the power output of the unit corresponding to the period t; P d (t) is the pumping power corresponding to the unit in period t; when the pumped storage power station unit is in the power generation state, n p The value of is 1. When the pumped storage power station unit is in the motor state, n p The value of is 0, n d (t)On the contrary.
[0030] Preferably, in step S2, the reservoir capacity constraint conditions of the pumped storage power station are as follows:
[0031] V min ≤V(t)≤V max
[0032] Where: V min is the minimum storage capacity of the reservoir, V max is the maximum storage capacity of the reservoir;
[0033] The storage capacity balance constraints at the beginning and end of the day are as follows:
[0034] V0=V 24
[0035] Where: The pumped storage reservoir is regulated daily, and the storage capacity of the reservoir is the same at the beginning and end of each day;
[0036] The mutually exclusive operation constraints of power generation and pumping are as follows:
[0037] np (t)·n d (t) = 0, n p (t)≠n d (t)
[0038] Where: n p (t) indicates whether the pumped storage power station unit is in power generation state at time period t: if n p (t) is equal to 1, indicating that the unit is generating electricity in period t; if n p (t) is equal to 0, indicating that the unit did not generate electricity during period t; n d (t) indicates whether the pumped storage power station unit is in the pumping state at time period t: if n d (t) is equal to 1, indicating that the unit is pumping water during period t; if n d (t) is equal to 0, indicating that the unit did not pump water during period t.
[0039] Preferably, in step S3, dividing the state space specifically includes: determining the random value of wind power output, the upper reservoir capacity of the pumped storage reservoir and the total deviation; dividing the action space specifically includes: determining the set of power generation and pumping power of the pumped storage power station.
[0040] Preferably, the discretization processing specifically includes: discretization of state variables using interval division, and discretization of action variables based on actually operable power steps.
[0041] Preferably, in step S4, when using a deep reinforcement learning algorithm to solve the daily random optimization scheduling model, it further includes:
[0042] A double-headed neural network structure is adopted. The input layer receives the wind power output forecast value and the upper reservoir capacity in time period t, and the output layer generates the action probability and value function of pumping or generating electricity.
[0043] Update the value function using the value iteration formula.
[0044] Preferably, in step S5, when the decision process of the deep reinforcement learning algorithm is optimized by the Monte Carlo tree search algorithm, the method further comprises:
[0045] In the selection phase, the UCB formula is applied for node selection;
[0046] In the simulation stage, the pumping or power generation is simulated according to the action probability and the value function to obtain the expected output deviation in time period t.
[0047] Preferably, the Monte Carlo tree search algorithm updates the neural network weights according to the simulation results in the back propagation stage to achieve self-learning and optimization of the model, specifically including:
[0048] Calculate the neural network prediction error for time period t;
[0049] Apply the gradient descent algorithm to update the neural network weights.
[0050] Preferably, the step S4 specifically includes:
[0051] Step S41, ensure the daily regulation function of the pumped-storage reservoir by setting the reservoir storage at the beginning and end to be equal;
[0052] Step S42, initialize the algorithm parameters, set the number of iterations k, and define the learning rate and other key parameters;
[0053] Step S43, enter the nth iteration process, where n starts from 1 until k;
[0054] Step S44, apply the Monte Carlo tree search algorithm to perform daily stochastic optimization of the wind power-pumped storage combined system to determine the optimal strategy at the current time node;
[0055] Step S45, after completing the nth iteration, evaluate and record the state of the current node, the action probability taken, and the value function;
[0056] Step S46, use the stored historical data and the newly obtained iteration results to update the neural network model to optimize the prediction of the action probability and the value function;
[0057] Step S47, check whether all iterations are completed. If n < k, update to the next time node, increment n by 1, and return to step S43 to continue the iteration; if the iteration is completed, terminate the algorithm.
[0058] The present invention also provides an optimized scheduling device for a wind power and pumped storage combined system, including:
[0059] A model establishment module for establishing a daily stochastic optimization scheduling model of a wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization;
[0060] A constraint condition determination module for determining the constraint conditions of the daily stochastic optimization scheduling model, including the reservoir storage constraint of the pumped-storage power station, the balance constraint of the reservoir storage at the beginning and end of the day, and the mutual exclusion operation constraint between power generation and pumping;
[0061] A discretization processing module for dividing the state space and the action space and performing discretization processing. The state space is composed of the random value of wind power output, the upper reservoir storage of the pumped-storage reservoir, and the total system deviation, and the action space is composed of the power generation and pumping power sets of the pumped-storage power station;
[0062] A solution module, for solving the daily random optimization scheduling model using a deep reinforcement learning algorithm, by constructing a value function and ensuring its rapid convergence to adapt to the randomness and volatility of wind power output;
[0063] The optimization module is used to optimize the decision-making process of the deep reinforcement learning algorithm through the Monte Carlo tree search algorithm.
[0064] The implementation of the present invention has the following beneficial effects: through the innovative combination of deep learning and Monte Carlo tree search algorithm, the efficiency and accuracy of system scheduling are significantly improved. This method can accurately predict the random output of wind power and adjust the operation of pumped storage power stations in real time to cope with the volatility of wind power. The use of deep reinforcement learning algorithm to solve the daily random optimization scheduling model ensures the rapid convergence of the value function and effectively solves the dimensionality disaster that occurs when traditional optimization algorithms deal with high-dimensional random problems. At the same time, the introduction of the Monte Carlo tree search algorithm further optimizes the decision-making process and realizes efficient search in large-scale state space. The present invention not only improves the economy and reliability of the wind power and pumped storage combined system, but also enhances the scheduling flexibility of the power system and its ability to absorb renewable energy. It is of great significance to promote the green transformation of the energy structure and improve the intelligent management level of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0066] Figure 1 It is a flow chart of a method for optimizing the dispatching of a wind power and pumped storage combined system according to an embodiment of the present invention.
[0067] Figure 2 It is a flow chart of solving the daily stochastic optimization problem of a wind power and pumped storage combined system by using the Monte Carlo tree algorithm in an embodiment of the present invention.
[0068] Figure 3a is a schematic diagram of the optimization results of the Monte Carlo algorithm when the number of node simulation points is 500 in an embodiment of the present invention, Figure 3b is a schematic diagram of the optimization results of the Monte Carlo algorithm when the number of node simulation points is 5000 in an embodiment of the present invention, Figure 3c It is a schematic diagram of the optimization results of the Monte Carlo algorithm when the number of node simulation points is 10,000 in an embodiment of the present invention.
[0069] Figure 4It is a flow chart of solving the daily random optimization problem of a wind power-pumped storage combined system by using a Monte Carlo tree search algorithm in an embodiment of the present invention.
[0070] Figure 5a is a schematic diagram of the optimization result of the Monte Carlo search algorithm when each node is searched 500 times in an embodiment of the present invention, Figure 5b is a schematic diagram of the optimization results of the Monte Carlo search algorithm when each node is searched 5000 times in an embodiment of the present invention, Figure 5c It is a schematic diagram of the optimization result of the Monte Carlo search algorithm when each node is searched 10,000 times in an embodiment of the present invention.
[0071] Figure 6 It is a flow chart of an embodiment of the present invention that uses deep learning combined with a Monte Carlo tree search algorithm to solve the daily stochastic optimization problem of a wind power-pumped storage combined system.
[0072] Figure 7a 1 is a schematic diagram of the optimization result of 1000 iterations with a learning rate α=0.003 in an embodiment of the present invention, Figure 7b 2 is a schematic diagram of the optimization result of 2000 iterations with a learning rate α=0.003 in an embodiment of the present invention. Figure 7c It is a schematic diagram of the optimization result of 3000 iterations with a learning rate α=0.003 in an embodiment of the present invention. DETAILED DESCRIPTION
[0073] The following descriptions of the embodiments refer to the accompanying drawings to illustrate specific embodiments in which the present invention may be implemented.
[0074] Please refer to Figure 1 As shown, an embodiment of the present invention provides a method for optimizing the dispatching of a wind power and pumped storage combined system, comprising:
[0075] Step S1, establishing a daily random optimization dispatch model for a wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization;
[0076] Step S2, determining the constraints of the daily stochastic optimization scheduling model, including the reservoir capacity constraint of the pumped storage power station, the daily initial and final storage capacity balance constraint, and the mutually exclusive operation constraint of power generation and pumping;
[0077] Step S3, dividing the state space and action space and performing discretization processing, the state space is composed of the random value of wind power output, the upper reservoir capacity of the pumped storage reservoir and the total system deviation, and the action space is composed of the power generation and pumping power set of the pumped storage power station;
[0078] Step S4, using a deep reinforcement learning algorithm to solve the daily random optimization scheduling model, by constructing a value function Q and ensuring its rapid convergence to adapt to the randomness and volatility of wind power output;
[0079] Step S5, optimizing the decision-making process of the deep reinforcement learning algorithm through the Monte Carlo tree search algorithm.
[0080] Through the above steps, it can be seen that the embodiment of the present invention can effectively deal with the randomness and volatility of wind power output, and quickly converge the value function Q through the deep reinforcement learning algorithm, solving the dimensionality curse problem of the traditional algorithm in high-dimensional space. At the same time, combined with the Monte Carlo tree search algorithm, the search efficiency and accuracy of the decision-making process are improved, ensuring the stability and economy of the wind power and pumped storage combined system in daily random optimization scheduling, and realizing efficient coordinated optimization of renewable energy and pumped storage.
[0081] Specifically, the daily random optimization dispatch model of the wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization established in step S1 of the embodiment of the present invention specifically includes:
[0082] (1) Output model of wind turbine
[0083] According to the prediction model of wind turbines, the output model of wind turbines is as follows:
[0084]
[0085] Where: m is the number of units in the i-th wind farm; It is the power generation of the jth unit in the i-th wind farm in each time period.
[0086] (2) Output model of pumped storage unit
[0087] The power constraints for pumping and generating electricity in a pumped storage power station are:
[0088]
[0089] Where: P pmax , P pmin They are the maximum and minimum power generation capacity of the pumped storage power station units, P dmax , P dmin are the maximum and minimum pumping power of the pumped storage power station unit; V u (t), V d (t) are the capacities of the upper reservoir and the lower reservoir in each period; η p , η d They are the power generation efficiency and pumping efficiency of the pumped-storage power station units.
[0090] The balance constraint of power extraction and generation in each hour of the day is:
[0091]
[0092] Q p =η p η d Q d
[0093] Where: Q p , Q d They are the total power generation and total water pumping of the pumped-storage power station units per hour.
[0094] (3) Daily stochastic optimization operation model of wind power and pumped storage combined system
[0095] The balance constraint of system power is:
[0096]
[0097] Where: P D (t) is the load demand in the tth period. Here, the distribution function curve of the wind power prediction error in the tth period is discretized into N values, and the power corresponding to each value is P w,i (t)(i∈[1,N]).
[0098] Since the reservoir capacity of the pumped storage power station is limited and cannot meet the actual demand, there must be a deviation between the planned output and the actual output of the wind power and pumped storage combined system in practice. The goal is to minimize the absolute value deviation between the planned output and the actual output of the wind power and pumped storage combined system, which can be described as:
[0099]
[0100] Where: Each day is divided into 24 periods, T is the number of periods, R(t) is the index function of period t; V(t) is the storage capacity of the upper and middle reservoirs of the pumped storage power station at the beginning of period t; P h (t) is the power output of the pumped storage power station unit during period t, P h (t)<0 is the pumping power, P h (t)>0 is the generated power.
[0101]
[0102] Where: After the error distribution function curve of wind power forecast in period t is discretized into N values, its corresponding power is P w,i (t)(i∈[1,N]), the corresponding probability is p w,i ;P D (t) is the planned output of wind power and pumped storage combined system in period t; P p (t) is the power output of the unit corresponding to the period t; P d (t) is the pumping power corresponding to the unit in period t. When the pumped storage power station unit is in the power generation state, n pThe value of is 1. When the pumped storage power station unit is in the motor state, n p The value of is 0, n d (t)On the contrary.
[0103] Step S2 determines the constraints of the daily stochastic optimization scheduling model, including the reservoir capacity constraint of the pumped storage power station, the daily initial and final storage capacity balance constraint, and the mutually exclusive operation constraint of power generation and pumping, as follows:
[0104] (1) Reservoir capacity constraints of pumped storage power stations:
[0105] V min ≤V(t)≤V max
[0106] Where: V min is the minimum storage capacity of the reservoir, V max It is the maximum storage capacity of the reservoir.
[0107] (2) Storage capacity balance constraints at the beginning and end of the day:
[0108] V0=V 24
[0109] Wherein: The pumped storage reservoir is regulated daily, and the storage capacity of the reservoir is the same at the end of each day.
[0110] (3) Mutually exclusive operation constraints of power generation and pumping:
[0111] n p (t)·n d (t) = 0, n p (t)≠n d (t)
[0112] Where: The unit cannot be in the state of generating electricity and pumping water at the same time. p (t) indicates whether the pumped storage power station unit is in power generation state at time period t: if n p (t) is equal to 1, indicating that the unit is generating electricity in period t; if n p (t) is equal to 0, indicating that the unit did not generate electricity during period t; n d (t) indicates whether the pumped storage power station unit is in the pumping state at time period t: if n d (t) is equal to 1, indicating that the unit is pumping water during period t; if n d (t) is equal to 0, indicating that the unit did not pump water during period t.
[0113] Step S3 is to define and discretize the decision environment.
[0114] The wind farm in a certain area is composed of 80 wind turbines with an installed capacity of 1.5MW, with a total installed capacity of 120MW; there are 4 reversible units in the pumped storage power station, and the unit parameters are shown in Table 1. The maximum storage capacity of the upper reservoir is 3.2 million m 3 , the minimum storage capacity is 1.6 million m 3 The maximum power generation head is 58m; the maximum storage capacity of the lower reservoir is 1.92 million m 3 The minimum storage capacity is 250,000 m 3 The adjustable storage capacity is 1.67 million m 3 , the maximum lift is 52m and the minimum lift is 24m.
[0115] Table 1 Unit parameters of pumped storage power station
[0116]
[0117]
[0118] The embodiment of the present invention first establishes a decision environment for daily random optimization scheduling of a wind power and pumped storage combined system. It is necessary to define an intelligent agent and an interactive environment. A pumped storage power station can provide decision variables, so the pumped storage power station is defined as an intelligent agent. The interactive environment is a power system of a wind power and pumped storage combined system. The variables in the decision environment are defined as follows:
[0119] (1) State space
[0120] The random value of wind power output, the upper reservoir capacity of the pumped storage reservoir and the total deviation in the wind power and pumped storage combined system are taken as the state space, that is:
[0121]
[0122] (2) Action Space
[0123] The set of power generation and pumping power of the pumped storage power station is taken as the action space, that is:
[0124] A(t)={P h (t)}
[0125] The power generation of the pumped storage power station unit is the action variable, and the upper reservoir capacity is the state variable. Both are continuous variables. In the reinforcement learning algorithm, the action variable and the state variable need to be converted into discrete variables. The state variable and the action variable are closely related. The state variable can reflect the target well, and can also reflect the size of the action variable, satisfying the "no aftereffect" and reflecting the entire recursive process. In the daily stochastic optimization scheduling problem of the wind power and pumped storage combined system, the upper reservoir capacity is used as the state variable, and the reservoir capacity is discretized into interval form from small to large. ΔV is the length of each interval after discretization:
[0126]
[0127] There are a total of (V min ,ΔV),(ΔV,2ΔV)...(V max -ΔV,V max ) There are M discrete intervals in total.
[0128] The action variables include pumping action and power generation action. The current state S can be determined by the actual wind power output and the water level of the pumped storage power station in period t. t By comparing the actual output of current wind power with the planned output of the wind power and pumped storage combined system, it is possible to determine whether the pumped storage power station units in the wind power and pumped storage combined system are in the pumping state or the power generation state.
[0129] The action variables of the pumped storage power station units should also be discretized into interval form, and ΔP is the length of each interval after discretization:
[0130]
[0131] P pmax is the maximum power generation capacity of the pumped storage power station unit, P dmax are the maximum pumping power of the pumped storage power station unit, (P pmax +P dmax )·n is the power range of n total units under maximum power generation and pumping power, that is, (0, ΔA), (ΔA, 2ΔA), ..., ((P pmax +P dmax )·n-ΔA,(P pmax +P dmax )·n), divided into N discrete intervals.
[0132] The present invention divides the generating power and pumping power of the pumped-storage power station into a discrete interval of every 2MW, with a total of 36 action intervals, which is conducive to node search. When the actual output of wind power is equal to the planned output of the wind power and pumped-storage combined system, neither generating action nor pumping action is taken.
[0133] The following introduces the application of three algorithms, namely Monte Carlo, Monte Carlo tree search, and a combination of deep learning and Monte Carlo tree search, in the daily stochastic optimization scheduling of a wind-storage combined system in a certain region.
[0134] (I) Using Monte Carlo algorithm to solve the daily random optimization scheduling model
[0135] The Monte Carlo algorithm is mainly divided into three steps: constructing a random probability process, sampling from the probability distribution, and solving the estimate. The first is a process with random properties, and the probability must be correctly described and simulated. For example, the most classic problem of finding pi is a deterministic problem, which must be transformed into a random problem, that is, the probability of the simulated point falling within the circle; then, the probability model can be regarded as composed of probability distribution, so generating a known probability distribution random variable is the basis for realizing the MC algorithm simulation; the last step is to realize the simulation and establish the estimate as the optimal solution to the problem.
[0136] The Monte Carlo tree algorithm is applied to the daily stochastic optimization problem of wind power and pumped storage combined system. The flow chart is as follows: Figure 2 As shown, the specific steps are as follows:
[0137] Step 1: Set the simulation point number k. The pumped storage reservoir is regulated daily to ensure that the storage capacity of the reservoir at the beginning and end is equal to V0 = V 24 .
[0138] Step 2: Start the nth simulation and randomly select the currently available action pumping / power generation action A.
[0139] Step 3: Simulate 24 operations on this day and calculate the total difference f between the wind power output and the predicted output.
[0140] Step 4: Record the total difference f between the pumping / generation action A and the deviation between the wind power output and the predicted output.
[0141] Step 5: If n is equal to k, compare to get the minimum total difference f and record the corresponding action A; if n is not equal to k, return to step 2.
[0142] Step 6: Determine whether the specified number of runs has been reached. If not, return to step 2 to continue the above steps.
[0143] Monte Carlo is a very common statistical simulation method. MC simulates random samples through approximation processing. It is very flexible and has simple implementation steps. In the initial stage, there is still a big gap between the optimal solution and the planned output of the wind power and pumped storage combined system and the actual output. As the number of node simulation points increases, the actions taken in each state tend to be more optimal. The fit between the planned output and the actual output of the wind power and pumped storage combined system is getting higher and higher. Figure 3a-3c The optimization results of the Monte Carlo algorithm under different simulation points for each node are shown respectively.
[0144] Table 2 below shows the deviation optimization results of setting each node to simulate 5000 points and running them 5 times. Basically, the optimization results of each run are not much different.
[0145] Table 2 Monte Carlo algorithm optimization results of simulating 5000 points and running 5 times
[0146]
[0147] In this setting, each node simulates 500 points, 1000 points, 5000 points, and 10000 points. Table 3 below shows the average deviation optimization results after running 10 times, 50 times, and 100 times.
[0148] Table 3 Monte Carlo algorithm optimization results under different simulation points for each node
[0149]
[0150] It can be seen from Table 2 that each node simulates 5000 points. After running 5 times, the output deviations are 20, 20, 24, 20, and 16, all around 18. It can be seen from Table 3 that with the increase in the number of node simulation points, from 500 points to 10,000 points, the deviation between the planned output and the actual output of the wind power and pumped storage combined system is getting smaller and smaller, and the result is closer to the optimal solution. The node simulation point number of 5000 points reaches the expectation, and the effect of simulating 10,000 points is not much improved, and the average deviation of 50 runs is basically stable. As long as the number of simulated points is sufficient, the optimal solution can be achieved, but the solution time will increase significantly. Basically, simulating 5000 points is very close to the optimal solution, and the solution time is short.
[0151] (II) Using Monte Carlo Tree Search Algorithm to Solve the Daily Stochastic Optimization Scheduling Model
[0152] Monte Carlo Tree Search (MCTS) is a method for finding the best decision in a given domain by randomly sampling in the decision space and building a search tree based on the results. The basic idea of MCTS is that a tree is built by repeatedly simulating a complete game. The root is the original state at the beginning of the game, and the end means the end of the game. In addition to the root and the end, the nodes of the path represent each step of the game. There are four key stages in the tree growth process: selection, expansion, simulation, and backpropagation. According to the selection strategy, the selection decides which node to adopt, which is the most important step. The balance between exploration and exploitation needs to be considered in the selection strategy. Exploration is to try to find a better way in the unsampled branches, and expansion is to expand the solution space by taking the selected node as a child node. There is no node that can be moved. It is called the end node. The leaf node represents two states: one is the end node, and the other is the node that has not been expanded. The simulation is to move from the expanded node randomly or according to the heuristic strategy until the end node is reached. When the end node is reached, the end value will be given, which reflects the pros and cons of the simulation. The process of propagating the end value from the end node to the root node is called backpropagation.
[0153] In the embodiment of the present invention, the upper confidence bound (UCB) algorithm is used to determine exploration and utilization. The specific formula is as follows:
[0154]
[0155] Where V i is the estimated value of the node, n i is the number of times the node is visited, N is the total number of times the parent node is visited, and C is an adjustable fixed parameter.
[0156] The Monte Carlo tree search algorithm is applied to the daily stochastic optimization problem of the wind power-pumped storage system. The flow chart is as follows: Figure 4 As shown, the specific steps are as follows:
[0157] Step 1: Set the simulation point number k. The pumped storage reservoir is regulated daily to ensure that the storage capacity of the reservoir at the beginning and end is equal to V0 = V 24 .
[0158] Step 2: Start the nth search and randomly select the currently available action pumping / power generation action A.
[0159] Step 3: Search whether the current node is a child node. If not, select a node through UCB. If it is, select the current node.
[0160] Step 4: Determine whether the value of the current node is 0. If so, simulate the whole day process. Otherwise, expand according to the current node and select the expanded node for simulation.
[0161] Step 5: Record the total difference f between the pumping / generation action A and the deviation between the wind power output and the predicted output.
[0162] Step 6: Update the node.
[0163] Step 7: Determine whether the specified number of runs has been reached. If not, return to step 2 to continue the above steps.
[0164] The Monte Carlo Tree Search algorithm is based on a tree data structure and is an effective heuristic search algorithm in a large search space. MCTS obtains the optimal action for each state by continuously increasing the number of node searches. In the initial stage, there is still a big gap between the optimal solution and the planned output of the wind power and pumped storage combined system and the actual output. As the number of node searches increases, the actions taken in each state are more inclined to the optimal solution, and the fit between the planned output of the wind power and pumped storage combined system and the actual output is getting higher and higher. Figure 5a-5c The optimization results of the Monte Carlo tree search algorithm under different search times for each node are shown respectively.
[0165] Table 4 below shows the deviation optimization results of setting the number of searches for each node to 10,000 and running the optimization results 5 times. Basically, the difference in the optimization results of each run is not large.
[0166] Table 4 Monte Carlo tree search algorithm optimization results with 5 runs and 10,000 searches per node
[0167]
[0168] The search times for each node are set to 500, 1000, 5000, 10000, and 50000 times respectively. Table 5 below shows the average deviation optimization results after running 10, 50, and 100 times.
[0169] Table 5 Monte Carlo tree search algorithm optimization results under different search times for each node
[0170]
[0171] It can be seen from Table 4 that the number of searches for each node is 10,000. After running 5 times respectively, the output deviations are 34, 36, 32, 30, and 32, all around 34. It can be seen from Table 5 that with the increase in the number of node searches, from 500 to 50,000 times, the deviation between the planned output and the actual output of the wind power and pumped storage combined system becomes smaller and smaller, and the result is closer to the optimal solution. The node search reaches the expectation after 10,000 times, and the effect is not much improved after 50,000 times of searching. Moreover, the average deviation after running 10 times is basically stable. Although the accuracy of the Monte Carlo tree search solution is not as high as the feasibility of the Monte Carlo simulation, its solution time will be shorter.
[0172] (III) Using deep learning combined with Monte Carlo tree search algorithm to solve the daily random optimization scheduling model
[0173] MCTS mainly has four steps: selection, expansion, simulation and back propagation. In DMCTS based on the combination of deep learning and Monte Carlo tree search, neural networks are used to guide MCTS to make judgments. Through a double-headed neural network, six layers of neural network input, and five layers of neural network output, the neural network output layer is the state, probability, and value of the node, that is, the action probability and situation evaluation. The root node starts to select leaf nodes. If it is not finished, it is updated according to the score of the neural network output layer, and expanded according to the action strategy of the neural network. If it is finished, it is updated according to the result. In traditional MCTS, there is no better strategy, and it can only be searched on a large scale. After reaching the situation of the leaf node, multiple random strategies and multiple simulations are required to obtain the situation evaluation, which is much less efficient than DMCTS based on the combination of deep learning and Monte Carlo tree search.
[0174] Deep learning combined with Monte Carlo tree search algorithm is applied to the daily stochastic optimization problem of wind power-pumped storage combined system. The flow chart is as follows Figure 6 As shown, the specific steps are as follows:
[0175] Step 1: Pumped storage reservoir is regulated daily to ensure that the storage capacity of the reservoir is equal at the beginning and end. 24 ;
[0176] Step 2: Set the number of iterations k and set parameters such as learning rate;
[0177] Step 3: Start the nth iteration;
[0178] Step 4: Daily stochastic optimization of wind power-pumped storage combined system using the same Monte Carlo tree search algorithm;
[0179] Step 5: Complete the nth iteration and obtain the state, probability, and value of the current node;
[0180] Step 6: Get data from the buffer to update the neural network, and then start a new iteration;
[0181] Step 7: Determine whether the algorithm has reached the specified number of iterations. If not, update the current time node to the next time node and return to step 3 to continue the iteration.
[0182] Use neural networks to guide MCTS to make judgments, through a double-headed neural network, six-layer neural network input, and five-layer neural network output, to replace the expansion and simulation in the four steps. The output layer of the neural network is the state, probability, and value of the node, that is, the action probability and situation evaluation. The root node starts to select leaf nodes. If it has not ended, it will be updated according to the score of the neural network output layer, and expanded according to the action strategy of the neural network. If it ends, it will be updated according to the result. That is, MCTS collects data and then updates the neural network. The nodes selected in MCTS are selected through neural networks. Under a certain learning rate, the neural network is updated at regular intervals. After the number of iterations increases, the actions taken in each state tend to the optimal solution, and the planned output of the wind power and pumped storage combined system is more and more fit to the actual output. Figure 7a-7c The optimization results at different iteration numbers with a learning rate of α=0.003 are shown respectively.
[0183] The algorithm is based on the combination of deep learning and Monte Carlo tree search. Its parameters such as learning rate α and number of iterations affect its convergence and convergence speed. Through the PyTorch1.7 platform, the various parameters of the algorithm are repeatedly trained, and comparative analysis is performed under different parameters and different numbers of iterations to determine the optimal parameters and optimal number of iterations.
[0184] Taking the learning rate α=0.003 as an example, the optimization results under different numbers of iterations are shown in Table 6 below.
[0185] Table 6 Optimization results with different iterations of learning rate α = 0.003
[0186]
[0187] Comparisons are made under different learning rates and different numbers of iterations, and the optimization results are shown in Table 7 below.
[0188] Table 7 Comparison of optimization results under different learning rates and different numbers of iterations
[0189]
[0190] It can be seen from Table 6 that when the learning rate α = 0.003, after 3000 iterations, the algorithm based on the combination of deep learning and Monte Carlo tree search has converged, and the deviation between the planned output and the actual output of the wind power and pumped storage combined system remains unchanged after 5000 iterations. It can be seen from Table 7 that when the optimization results are compared under different learning rates and different iteration numbers, when the number of iterations is 1000, the value of α is too large, and the deviation between the planned output and the actual output of the wind power and pumped storage combined system is too small, and α = 0.005 is the critical point; when the number of iterations is 3000, the value of α is too large, and the deviation between the planned output and the actual output of the wind power and pumped storage combined system is too large, and α = 0.003 is the critical point. Therefore, the learning rate α needs to decrease with the increase in the number of iterations. When the learning rate α = 0.003 and the number of iterations is 3000, the result is already the optimal solution.
[0191] (IV) Comparative analysis of optimization results
[0192] The three algorithms of the present invention, namely, Monte Carlo, Monte Carlo tree search, and combination of deep learning and Monte Carlo tree search, are applied to the daily random optimization scheduling of wind power and pumped storage combined system in a certain area. When the number of node simulation points of MC is 5000 points, the number of node searches of MCTS is 10000 times, the learning rate α of DMCTS is 0.003, and the number of iterations is 3000 times, the deviation between the planned output and the actual output of the MC, MCTS, and DMCTS wind power and pumped storage combined system is basically the smallest, and the result is more inclined to the optimal solution.
[0193] The comparison table of the optimal solution results of SDP, MC, MCTS, and DMCTS is shown in Table 8 below.
[0194] Table 8 Comparison of optimization results of SDP, MC, MCTS, and DMCTS
[0195]
[0196] It can be seen from Table 8 that when the number of node simulation points of MC is 5000, the number of node searches of MCTS is 10000, the learning rate of DMCTS is α=0.003, and the number of iterations is 3000, the effect of MCTS is the worst, and the deviation between the planned output and the actual output of the wind power and pumped storage combined system reaches 34MW. The effect of DMCTS is the best, and the deviation between the planned output and the actual output of the wind power and pumped storage combined system is only 12MW.
[0197] Corresponding to the above-mentioned wind power and pumped storage combined system optimization dispatching method in the first embodiment of the present invention, the second embodiment of the present invention further provides a wind power and pumped storage combined system optimization dispatching device, including:
[0198] Model building module, used to build a daily stochastic optimization dispatch model for wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization;
[0199] The constraint determination module is used to determine the constraint conditions of the daily stochastic optimization scheduling model, including the reservoir capacity constraint of the pumped storage power station, the daily initial and final storage capacity balance constraint, and the mutually exclusive operation constraint of power generation and pumping;
[0200] A discretization processing module is used to divide the state space and action space and perform discretization processing, wherein the state space is composed of the random value of wind power output, the upper reservoir capacity of the pumped storage reservoir and the total system deviation, and the action space is composed of the power generation and pumping power set of the pumped storage power station;
[0201] A solution module, for solving the daily random optimization scheduling model using a deep reinforcement learning algorithm, by constructing a value function and ensuring its rapid convergence to adapt to the randomness and volatility of wind power output;
[0202] The optimization module is used to optimize the decision-making process of the deep reinforcement learning algorithm through the Monte Carlo tree search algorithm.
[0203] For the working principle and process of this embodiment, please refer to the description of the aforementioned embodiment 1 of the present invention, which will not be repeated here.
[0204] Compared with the prior art, the beneficial effect brought by the embodiment of the present invention is that, through the innovative combination of deep learning and Monte Carlo tree search algorithm, the efficiency and accuracy of system dispatch are significantly improved. This method can accurately predict the random output of wind power and adjust the operation of pumped storage power stations in real time to cope with the volatility of wind power. The deep reinforcement learning algorithm is used to solve the daily random optimization scheduling model to ensure the rapid convergence of the value function and effectively solve the dimensionality disaster that occurs when traditional optimization algorithms deal with high-dimensional random problems. At the same time, the introduction of the Monte Carlo tree search algorithm further optimizes the decision-making process and realizes efficient search in large-scale state space. The present invention not only improves the economy and reliability of the wind power and pumped storage combined system, but also enhances the dispatch flexibility of the power system and its ability to absorb renewable energy. It is of great significance to promote the green transformation of the energy structure and improve the intelligent management level of the power grid.
[0205] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A wind power and pumped storage combined system optimization dispatching method, characterized in that: include: Step S1, establishing a daily random optimization dispatch model for a wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization; Step S2, determining the constraints of the daily stochastic optimization scheduling model, including the reservoir capacity constraint of the pumped storage power station, the daily initial and final storage capacity balance constraint, and the mutually exclusive operation constraint of power generation and pumping; Step S3, dividing the state space and action space and performing discretization processing, the state space is composed of the random value of wind power output, the upper reservoir capacity of the pumped storage reservoir and the total system deviation, and the action space is composed of the power generation and pumping power set of the pumped storage power station; Step S4, using a deep reinforcement learning algorithm to solve the daily random optimization scheduling model, by constructing a value function and ensuring its rapid convergence to adapt to the randomness and volatility of wind power output; Step S5, optimizing the decision-making process of the deep reinforcement learning algorithm through the Monte Carlo tree search algorithm.
2. The method according to claim 1, characterized in that The daily random optimization dispatch model of the wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization established in step S1 specifically includes: According to the prediction model of wind turbines, the output model of wind turbines is established as follows: Where: m is the number of units in the i-th wind farm; is the power generation of the jth unit in the i-th wind farm in each period; The output model of the pumped storage unit is established as follows: Where: P pmax , P pmin They are the maximum and minimum power generation capacity of the pumped storage power station units, P dmax , P dmin are the maximum and minimum pumping power of the pumped storage power station unit; V u (t), V d (t) are the capacities of the upper reservoir and the lower reservoir in each period; η p , η d They are the power generation efficiency and pumping efficiency of the pumped storage power station units; The balance constraint of power extraction and generation in each hour of the day is: Q p =the p or d Q d Where: Q p , Q d They are the total power generation and total water pumping of the pumped-storage power station units per hour; In the daily stochastic optimization operation model of wind power and pumped storage combined system, the balance constraint of system power is: Where: P D (t) is the load demand in the tth period. The distribution function curve of the wind power forecast error in the tth period is discretized into N values, and the power corresponding to each value is P w,i (t)(i∈[1,N]); The minimum absolute value deviation between the planned output and the actual output of the wind power and pumped storage combined system is as follows: Where: T is the number of time periods, R(t) is the index function of time period t; V(t) is the storage capacity of the upper and middle reservoirs of the pumped storage power station at the beginning of time period t; P h (t) is the power output of the pumped storage power station unit during period t, P h (t)<0 is the pumping power, P h (t)>0 is the power generation; Where: After the error distribution function curve of wind power forecast in period t is discretized into N values, its corresponding power is P w,i (t)(i∈[1,N]), the corresponding probability is p w,i ;P D (t) is the planned output of wind power and pumped storage combined system in period t; P p (t) is the power output of the unit corresponding to the period t; P d (t) is the pumping power corresponding to the unit in period t; when the pumped storage power station unit is in the power generation state, n p The value of is 1. When the pumped storage power station unit is in the motor state, n p The value of is 0, n d (t)On the contrary.
3. The method according to claim 1, characterized in that In step S2, the reservoir capacity constraint conditions of the pumped storage power station are as follows: V min ≤V(t)≤V max Where: V min is the minimum storage capacity of the reservoir, V max is the maximum storage capacity of the reservoir; The storage capacity balance constraints at the beginning and end of the day are as follows: V0=V 24 Where: The pumped storage reservoir is regulated daily, and the storage capacity of the reservoir is the same at the beginning and end of each day; The mutually exclusive operation constraints of power generation and pumping are as follows: n p (t)·n d (t)=0,n p (t)≠n d (t) Where: n p (t) indicates whether the pumped storage power station unit is in power generation state at time period t: if n p (t) is equal to 1, indicating that the unit is generating electricity in period t; if n p (t) is equal to 0, indicating that the unit did not generate electricity during period t; n d (t) indicates whether the pumped storage power station unit is in the pumping state at time period t: if n d (t) is equal to 1, indicating that the unit is pumping water during period t; if n d (t) is equal to 0, indicating that the unit did not pump water during period t.
4. The method according to claim 1, characterized in that In step S3, dividing the state space specifically includes: determining the random value of wind power output, the upper reservoir capacity of the pumped storage reservoir and the total deviation; dividing the action space specifically includes: determining the set of power generation and pumping power of the pumped storage power station.
5. The method according to claim 4, characterized in that The discretization process specifically includes: discretization of state variables using interval division, and discretization of action variables based on actually operable power steps.
6. The method according to claim 1, characterized in that In the step S4, when the deep reinforcement learning algorithm is used to solve the daily random optimization scheduling model, it further includes: A double-headed neural network structure is adopted. The input layer receives the wind power output forecast value and the upper reservoir capacity in time period t, and the output layer generates the action probability and value function of pumping or generating electricity. Update the value function using the value iteration formula.
7. The method according to claim 6, characterized in that In step S5, when the decision process of the deep reinforcement learning algorithm is optimized by the Monte Carlo tree search algorithm, it further includes: In the selection phase, the UCB formula is applied for node selection; In the simulation stage, the pumping or power generation is simulated according to the action probability and the value function to obtain the expected output deviation in time period t.
8. The method according to claim 7, characterized in that In the back propagation phase, the Monte Carlo tree search algorithm updates the neural network weights according to the simulation results to achieve self-learning and optimization of the model, specifically including: Calculate the neural network prediction error for period t; Apply the gradient descent algorithm to update the neural network weights.
9. The method according to claim 1, characterized in that The step S4 specifically includes: Step S41, ensure the daily regulation function of the pumped-storage reservoir by setting the reservoir capacities of the initial and final reservoirs to be equal; Step S42, initialize the algorithm parameters, set the number of iterations k, and define the learning rate and other key parameters; Step S43, enter the nth iteration process, where n starts from 1 until k; Step S44, apply the Monte Carlo tree search algorithm to perform daily stochastic optimization of the wind power-pumped storage combined system to determine the optimal strategy at the current time node; Step S45, after completing the nth iteration, evaluate and record the state of the current node, the action probability taken, and the value function; Step S46, use the stored historical data and the newly obtained iteration results to update the neural network model to optimize the prediction of the action probability and the value function; Step S47, check whether all iterations are completed. If n < k, update to the next time node, increment n by 1, and return to Step S43 to continue the iteration; if the iteration is completed, terminate the algorithm.
10. A wind power and pumped storage combined system optimization dispatching device, characterized in that: Comprising: A model establishment module for establishing a daily stochastic optimization scheduling model of a wind power and pumped storage combined system based on deep learning prediction and Monte Carlo tree search optimization; A constraint condition determination module for determining the constraint conditions of the daily stochastic optimization scheduling model, including the reservoir capacity constraint of the pumped-storage power station, the daily initial and final reservoir capacity balance constraint, and the mutually exclusive operation constraint between power generation and pumping; A discretization processing module for dividing the state space and the action space and performing discretization processing. The state space consists of the random value of wind power output, the upper reservoir capacity of the pumped-storage reservoir, and the total system deviation, and the action space consists of the power generation and pumping power sets of the pumped-storage power station; A solution module for solving the daily stochastic optimization scheduling model using the deep reinforcement learning algorithm by constructing a value function and ensuring its rapid convergence to adapt to the randomness and volatility of wind power output; An optimization module for optimizing the decision-making process of the deep reinforcement learning algorithm through the Monte Carlo tree search algorithm.
