An online, adaptive power dispatch optimization method for distributed energy storage power stations

Through the online optimization training of the deep Q network model, the problem of insufficient static optimization of power dispatching in smart microgrids is solved, real-time adaptive matching of power supply and demand in smart microgrids is achieved, and the system operation efficiency is improved.

CN114240125BActive Publication Date: 2024-09-20GUANGDONG UNIV OF TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111517783.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2024-09-20
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

In the existing technology, the power dispatch optimization method of distributed energy storage power stations mainly relies on static or offline optimization algorithms, which cannot effectively respond to the dynamic changes between power generation and load in smart microgrids in real time, resulting in deterioration of power quality and reduction of system efficiency. .

Method used

Using the deep Q network model, combined with the historical power consumption data and electricity price data of smart microgrids, online optimization training is performed to calculate the optimal charging and discharging strategy of the energy storage system. Through the design of the deep Q network and the target deep Q network, the electric energy can be realized Adaptive matching of schedules.

Benefits of technology

It achieves real-time adaptive optimization of power supply and demand in smart microgrids, improves system operation efficiency, avoids training non-convergence problems caused by too many parameters, and enhances the network's approximation capability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114240125B
    Figure CN114240125B
Patent Text Reader

Abstract

The present invention discloses an online, adaptive power dispatch optimization method for distributed energy storage power stations, and establishes a framework of a deep Q network (DQN); under this framework, the optimal charge and discharge power of the energy storage system of the distributed energy storage power station can be calculated online based on the historical power consumption data of the smart microgrid, without overcharging or overdischarging, and without exceeding the rated operating conditions, and the energy storage system is used to cut the peak of the regional power grid to optimize the operating efficiency of the regional power grid. The established deep Q network framework includes a deep Q network and a target deep Q network. The design of the deep Q network enhances the approximation ability of the network by combining convolution, recursion, and feedforward. The existence of the target Q network avoids the non-convergence caused by too many parameters during the training of the deep network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric energy dispatch optimization, and in particular to an online, adaptive electric energy dispatch optimization method for a distributed energy storage power station. Background Art

[0002] Smart microgrids include a lot of distributed renewable power sources, which are sensitive to external climate and weather factors, so the power of distributed renewable energy generation is difficult to control. If the system cannot ensure the balance between power generation and load, the power quality will deteriorate, causing voltage and frequency deviations, and even power outages, and even induce the collapse of the power system. This requires the power system to retain a certain margin, but at the same time reduces the operating efficiency of the system. The most effective way to fundamentally solve this problem is to start from the power supply side and install distributed energy storage power stations in the system. When the system has sufficient power, it stores energy and releases power when power is scarce, solving the contradiction between supply and demand and achieving the purpose of optimizing and coordinating load resource control.

[0003] The application of energy storage technology will play a significant role in the design, planning, dispatching and control of smart grids, bringing about major changes in smart grids. How to break through the traditional model-based, static optimization methods and adopt data-based optimization methods to effectively achieve real-time adaptive optimization matching and dispatching of smart grid power supply and demand under the circumstances that power generation, distribution and power consumption networks are becoming increasingly large and complex, loads are becoming increasingly diversified, and users have higher and higher requirements for power quality is the fundamental of smart grid development.

[0004] Compared with the construction of large-scale centralized energy storage power stations (referring to battery energy storage power stations) with large investments, long approval processes and long construction periods, distributed energy storage power stations have the following advantages: First, they can be broken down into parts and can cooperate with factories and enterprises to use the existing factory buildings of factories and enterprises for transformation. The single scale is small, the investment is small and the construction period is short. Second, more and more factories and enterprises have installed photovoltaic power generation. Due to cost and management reasons, most factories and enterprises sell photovoltaic power directly to the grid. Cooperating with them to establish distributed energy storage power stations can realize local consumption. Third, decentralized small-scale energy storage power stations can realize local dispatch through intelligent dispatching systems, which can solve the problem of comprehensive dispatching of electricity in large energy storage power stations (such as pumped storage power stations and large energy storage battery stations), and it is also easy to solve the safety problems of large battery energy storage stations.

[0005] Therefore, distributed energy storage power station system is the first choice for the development of future energy storage system. However, the existing technical solutions have the following disadvantages:

[0006] (1) The current research on energy storage device optimization is relatively slow, and most of the proposed algorithms are based on offline optimization or static optimization (such as linear programming);

[0007] (2) As electricity consumption continues to become more intelligent, the uncertainty on the load side of the power grid has also increased, making traditional model-based static optimization algorithms increasingly inapplicable. Summary of the invention

[0008] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide an online, adaptive power dispatch optimization method for a distributed energy storage power station.

[0009] To achieve the above purpose, the technical solution provided by the present invention is:

[0010] An online, adaptive power dispatch optimization method for a distributed energy storage power station comprises the following steps:

[0011] S1. Build a power consumption database of the regional microgrid to be dispatched, and collect historical power consumption data of the regional microgrid to be dispatched {D t}, and the historical electricity price data C of the regional microgrid to be dispatched t ;

[0012] S2. Establish a deep Q network model and initialize parameters;

[0013] S3, defining the power optimization index of the regional microgrid;

[0014] S4. Combined with the power optimization index of the regional microgrid, the deep Q network model is trained online;

[0015] S5. Use the deep Q network model trained through online optimization in step S4 to calculate the control strategy for power dispatching. When the calculated control strategy affects the prefabricated cabin energy storage system, return to step S4 and perform online optimization training on the deep Q network model again.

[0016] Furthermore, in step S2, the established deep Q network framework includes two deep networks and their connection forms, wherein the two deep networks are: a deep Q network and a target deep Q network.

[0017] Furthermore, in step S2, the specific process of initializing parameters is as follows:

[0018] S2-1. Initialize the weights W of the deep Q network Q , and the weight W of the target Q network Q′ ,

[0019] in,

[0020] W Q =W Q′

[0021] and:

[0022] ||WQ || ∞ ≤0.05

[0023] ||W Q′ || ∞ ≤0.05

[0024] S2-2, setting the threshold ε for stopping iteration;

[0025] S2-3. Set the initial size N of the dataset E used for training init,D , total size N total,D ;

[0026] S2-4, initialize the number of online traversals L, and the updated time step interval T update , and the scheduling time interval T, where T update ≤T;

[0027] S2-5. Randomly select the data collected in step S1 and put it into the training data set E.

[0028] Furthermore, the step S3 defines the power optimization index of the regional microgrid, specifically including:

[0029]

[0030]

[0031]

[0032] Among them, J is the total indicator item, T is the scheduling time interval, and U t is the utility function at time t, C con is the construction cost of the battery, N cycle C is the number of times the battery can be charged and discharged in cycles, cap is the battery capacity, μ is the penalty function coefficient, u t is the charge and discharge power of the battery, positive numbers represent discharge, negative numbers represent charge, η c is the charging efficiency of the battery, η d is the discharge efficiency of the battery, SoC t is the state of charge of the battery, E b,rate is the rated capacity of the battery, D t is the active power consumed by the user, R t is the output power of renewable energy generation, C t is the dynamic electricity price, P avg The average power load of microgrid users is defined as the state variable s of the system. t =[R t D t C tSoC t ] T .

[0033] Furthermore, the online optimization scheduling in step S4 includes an outer loop and an inner loop, and the specific process includes:

[0034] S4-1, set the number of inner loops i = 1;

[0035] S4-2. At the beginning of each outer loop, the system state s is normalized. t ,get The normalized formula is:

[0036]

[0037] S4-3. Initialize state variable s t and time step t = 1;

[0038] S4-4. Randomly select action a with probability of threshold ε t =u t , otherwise, select actions according to the deep Q network to satisfy:

[0039]

[0040] S4-5. Execute action a in step S4-4 t , and observe the next state s t+1 ;

[0041] S4-6. Calculate the action a based on the utility function t The utility of U t ;

[0042] S4-7. Normalization t+1 ,get The array Store in training data set E;

[0043] S4-8, randomly select a group of samples from the training data set E, which contains M samples;

[0044] S4-9. For each sample extracted Calculate the output sample value y of the deep Q network j ,if is a terminal state, then y j =U j ;otherwise,

[0045] S4-10, for the selected M samples, is the input of the deep Q network, y jFor output, train the parameters W of the deep Q network Q ; and update the parameters W of the target Q network Q′ ,in

[0046] W Q′ ←τW Q +(1-τ)W Q′

[0047] S4-11, if t<T, but i<L, then t=t+1 and return to step S4-4; if t=T, but i<L, then end the inner loop and go to the next step;

[0048] S4-12, if i<E, i=i+1 and return to S4-2; if i=E, end the outer loop and the inner loop and proceed to the next step;

[0049] S4-13, determine whether the online algorithm converges. If || W Q -W Q′ ||≥ε, return to step S4-1; if ||W Q -W Q′ ||≤ε, go ​​to step S5

[0050] Compared with the existing technology, the principle and advantages of this solution are as follows:

[0051] 1) This scheme establishes the framework of Deep Q Network (DQN); under this framework, the optimal charging and discharging power of the distributed energy storage power station energy storage system can be calculated online based on the historical electricity consumption data of the smart microgrid, without overcharging or over-discharging, and without exceeding the rated operating conditions. The energy storage system is used to reduce the peak of the regional power grid and optimize the operating efficiency of the regional power grid.

[0052] 2) In this scheme, the established deep Q network framework includes a deep Q network and a target deep Q network. The design of the deep Q network enhances the network's approximation ability by combining convolution, recursion, and feedforward. The existence of the target Q network avoids the non-convergence caused by too many parameters during deep network training. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the services required for use in the embodiments or the prior art descriptions are 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.

[0054] Figure 1 It is a principle flow chart of an online, adaptive electric energy dispatch optimization method for a distributed energy storage power station of the present invention;

[0055] Figure 2 It is a schematic diagram of the principle of an online, adaptive electric energy dispatch optimization method for a distributed energy storage power station of the present invention. DETAILED DESCRIPTION

[0056] The present invention will be further described below in conjunction with specific embodiments:

[0057] like Figure 1 As shown, the online, adaptive power dispatch optimization method of a distributed energy storage power station described in this embodiment includes the following steps:

[0058] S1. Build a power consumption database of the regional microgrid to be dispatched, and collect historical power consumption data of the regional microgrid to be dispatched {D t}, and the historical electricity price data C of the regional microgrid to be dispatched t ;

[0059] S2. Establish a deep Q network model and initialize parameters;

[0060] The established deep Q network framework includes two deep networks and their connection forms, where the two deep networks are: a deep Q network and a target deep Q network.

[0061] The specific process of initializing parameters is as follows:

[0062] S2-1. Initialize the weights W of the deep Q network Q , and the weight W of the target Q network Q′ ,

[0063] in,

[0064] W Q =W Q′

[0065] and:

[0066] ||W Q || ∞ ≤0.05

[0067] ||W Q || ∞ ≤0.05

[0068] S2-2, setting the threshold ε for stopping iteration;

[0069] S2-3. Set the initial size N of the dataset E used for training init,D , total size N total,D ;

[0070] S2-4, initialize the number of online traversals L, and the updated time step interval Tupdate , and the scheduling time interval T, where T update ≤T;

[0071] S2-5. Randomly select the data collected in step S1 and put it into the training data set E.

[0072] S3. Define the power optimization indicators of the regional microgrid, including:

[0073]

[0074]

[0075]

[0076] Among them, J is the total indicator item, T is the scheduling time interval, and U t is the utility function at time t, C con is the construction cost of the battery, N cycle C is the number of times the battery can be charged and discharged in cycles, cap is the battery capacity, μ is the penalty function coefficient, u t is the charge and discharge power of the battery, positive numbers represent discharge, negative numbers represent charge, η c is the charging efficiency of the battery, η d is the discharge efficiency of the battery, SoC t is the state of charge of the battery, E b,rate is the rated capacity of the battery, D t is the active power consumed by the user, R t is the output power of renewable energy generation, C t is the dynamic electricity price, P avg The average power load of microgrid users is defined as the state variable s of the system. t =[R t D t C t SoC t ] T .

[0077] S4. Combined with the power optimization index of the regional microgrid, the deep Q network model is trained online; it includes an outer loop and an inner loop, and the specific process includes:

[0078] S4-1, set the number of inner loops i = 1;

[0079] S4-2. At the beginning of each outer loop, the system state s is normalized. t ,get The normalized formula is:

[0080]

[0081] S4-3. Initialize state variable s t and time step t = 1;

[0082] S4-4. Randomly select action a with probability of threshold ε t =u t , otherwise, select actions according to the deep Q network to satisfy:

[0083]

[0084] S4-5. Execute action a in step S4-4 t , and observe the next state s t+1 ;

[0085] S4-6. Calculate the action a based on the utility function t The utility of U t ;

[0086] S4-7. Normalization t+1 ,get The array Store in training data set E;

[0087] S4-8, randomly select a group of samples from the training data set E, which contains M samples;

[0088] S4-9. For each sample extracted Calculate the output sample value y of the deep Q network j ,if is a terminal state, then y j =U j ;otherwise,

[0089] S4-10, for the selected M samples, is the input of the deep Q network, y j For output, train the parameters W of the deep Q network Q ; and update the parameters W of the target Q network Q′ ,in

[0090] W Q′ ←τW Q +(1-τ)W Q′

[0091] S4-11, if t<T, but i<L, then t=t+1 and return to step S4-4; if t=T, but i<L, then end the inner loop and go to the next step;

[0092] S4-12, if i<E, i=i+1 and return to S4-2; if i=E, end the outer loop and the inner loop and proceed to the next step;

[0093] S4-13, determine whether the online algorithm converges. If || W Q -W Q′ ||>ε, return to step S4-1; if ||W Q -W Q′ ||≤ε, go ​​to step S5.

[0094] S5. Use the deep Q network model trained through online optimization in step S4 to calculate the control strategy for power dispatching. When the calculated control strategy affects the prefabricated cabin energy storage system, return to step S4 and perform online optimization training on the deep Q network model again.

[0095] The embodiments described above are only preferred embodiments of the present invention and are not intended to limit the scope of implementation of the present invention. Therefore, all changes made according to the shape and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An online, adaptive power dispatch optimization method for a distributed energy storage power station, characterized in that: The following steps are involved: S1. Build a power consumption database of the regional microgrid to be dispatched, and collect historical power consumption data of the regional microgrid to be dispatched {D t }, and the historical electricity price data C of the regional microgrid to be dispatched t ; S2. Establish a deep Q network model and initialize parameters; S3, defining the power optimization index of the regional microgrid; S4. Combined with the power optimization index of the regional microgrid, the deep Q network model is trained online; S5, using the deep Q network model trained online in step S4 to calculate the control strategy for electric energy dispatch, until the calculated control strategy affects the prefabricated cabin energy storage system, returning to step S4, and performing online optimization training on the deep Q network model again; In step S2, the established deep Q network framework includes two deep networks and their connection forms, wherein the two deep networks are: a deep Q network and a target deep Q network; Step S4 performs online optimization scheduling including an outer loop and an inner loop, and the specific process includes: S4-1, set the number of inner loops i = 1; S4-2. At the beginning of each outer loop, the system state s is normalized. t ,get The normalized formula is: S4-3. Initialize state variable s t and time step t = 1; S4-4. Randomly select action a with probability of threshold ε t =u t , otherwise, select actions according to the deep Q network to satisfy: S4-5. Execute action a in step S4-4 t , and observe the next state s t+1 ; S4-6. Calculate the action a based on the utility function t The utility of U t ; S4-7. Normalization t+1 ,get The array Store in training data set E; S4-8, randomly select a group of samples from the training data set E, which contains M samples; S4-9. For each sample extracted Calculate the output sample value y of the deep Q network j ,if is a terminal state, then y j =U j ;otherwise, S4-10, for the selected M samples, is the input of the deep Q network, y j For output, train the parameters W of the deep Q network Q ; and update the parameters W of the target Q network Q′ ,in W Q′ ←τW Q +(1-τ)W Q′ S4-11, if t<T, but i<L, then t=t+1 and return to step S4-4; if t=T, but i<L, then end the inner loop and go to the next step; S4-12, if i<E, i=i+1 and return to S4-2; if i=E, end the outer loop and the inner loop and proceed to the next step; S4-13, determine whether the online algorithm converges, if ||W Q -W Q′ ||≥ε, return to step S4-1; if ||W Q -W Q′ ||≤ε, go ​​to step S5.

2. According to claim 1, an online, adaptive power dispatch optimization method for a distributed energy storage power station is characterized in that: In step S2, the specific process of initializing parameters is as follows: S2-1. Initialize the weights W of the deep Q network Q , and the weight W of the target Q network Q′ , in, IN Q =In Q′ and: ||W Q || ∞ ≤0.05 ||W Q ′|| ∞ ≤0.05 S2-2, setting the threshold ε for stopping iteration; S2-3. Set the initial size N of the dataset E used for training init,D , total size N total,D ; S2-4, initialize the number of online traversals L, and the updated time step interval T update , and the scheduling time interval T, where T update ≤T; S2-5. Randomly select the data collected in step S1 and put it into the training data set E.

3. The online, adaptive power dispatch optimization method for a distributed energy storage power station according to claim 2, characterized in that: Step S3 defines the power optimization index of the regional microgrid, which specifically includes: Among them, J is the total indicator item, T is the scheduling time interval, and U t is the utility function at time t, C con is the construction cost of the battery, N cycle C is the number of times the battery can be charged and discharged in cycles, cap is the battery capacity, μ is the penalty function coefficient, u t is the charge and discharge power of the battery, positive numbers represent discharge, negative numbers represent charge, η c is the charging efficiency of the battery, η d is the discharge efficiency of the battery, SoC t is the state of charge of the battery, E b,rate is the rated capacity of the battery, D t is the active power of electricity used by the user, R t is the output power of renewable energy generation, C t is the dynamic electricity price, P avg The average power load of microgrid users is defined as the state variable s of the system. t =[R t D t C t SoC t ] T .

Citation Information

Patent Citations

  • Micro-power-grid energy storage scheduling method and device based on deep Q-value network (DQN) reinforcement learning

    CN109347149A

  • Microgrid energy scheduling method based on double-Q-value network deep reinforcement learning

    CN112117760A

  • New type micro-network system and system-based networking and scheduling method

    WO2018129829A1