A method, device, electronic device and storage medium for dynamic optimization of battery energy storage system

By modeling the scheduling of battery energy storage systems as a multi-stage stochastic optimization problem and adopting an improved double-delay depth deterministic strategy gradient algorithm, the impact of electric vehicles on the power grid and the intractable battery aging cost are solved, and the problem is achieved The efficiency of power grid operation is improved and the speed of solving problems is accelerated.

CN114696351BActive Publication Date: 2024-10-18STATE GRID ANHUI ELECTRIC POWER CO LTD ELECTRIC POWER SCI RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210243348.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2024-10-18
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

The charging and discharging behavior of electric vehicles has an impact on the power grid, causing problems such as overloading of distribution network lines, voltage drops, and overloading of distribution transformers. Moreover, the aging cost of the battery energy storage system is difficult to handle in the optimization model, and the traditional actor-critic algorithm exists Defects include complex uncertainty modeling and poor convergence.

Method used

The battery energy storage system scheduling process is modeled as a multi-stage stochastic optimization model, using an improved double-delay deep deterministic policy gradient algorithm. By improving the sampling strategy of samples in the reinforcement learning process, the search space is reduced and the convergence speed is accelerated, which is suitable for large-scale Grid topology optimization calculation.

Benefits of technology

It achieves real-time optimization of the battery energy storage system, improves the operating efficiency of the power grid, reduces the solution space and computing resource requirements, and is suitable for actual power system deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114696351B_ABST
    Figure CN114696351B_ABST
Patent Text Reader

Abstract

The present invention proposes a method, device, electronic device and storage medium for dynamic optimization of a battery energy storage system, which belongs to the field of power system operation and control technology. The method includes: the energy state of the battery energy storage system, the interactive power between the power grid where the battery energy storage system is located and the large power grid, the electricity price, and the set power of the interaction between the power grid where the battery energy storage system is located and the large power grid constitute state variables; the active power of each node generator, the charging power and the discharging power of the battery energy storage system constitute action variables, and an optimization model for the battery energy storage system is established; a reward function for state variables and action variables is constructed; and the optimization model is solved to obtain the action variables at each moment, which are the optimization results of the battery energy storage system. The present invention has a fast operation speed, can realize real-time optimization of battery energy storage, improve the ability of the power grid to provide auxiliary services, and improve the operation efficiency of the power grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power system operation and control, and in particular relates to a method, device, electronic equipment and storage medium for dynamic optimization of a battery energy storage system. Background Art

[0002] With the increasing number of electric vehicles, electric vehicles will be widely connected to the power grid in the future. The charging and discharging behavior of electric vehicles will have an impact on the power grid that cannot be ignored, which is both a challenge and an opportunity. The service life of electric vehicle batteries is closely related to the charging and discharging power. Unreasonable charging and discharging power will shorten the battery life and increase the safety risk of battery fire. Due to the sharp increase in the number of electric vehicles, large-scale electric vehicles connected to the power grid will have an impact on the power grid, leading to a series of problems such as overload of distribution network lines, voltage drop, increased distribution network losses, and overload of distribution transformers. It may even exceed the bearing capacity of local distribution networks, bringing hidden dangers to the safe operation of the power grid. Therefore, it is necessary to analyze the usage patterns and usage characteristics of electric vehicles, and model the charging and discharging patterns of electric vehicles, and then rationally plan and design the geographical location and capacity of charging stations to improve the safety margin of the power grid.

[0003] The emergence of electric vehicles usually requires the construction of energy storage power stations. The construction of energy storage power stations can alleviate the power supply gap of the power grid and improve the utilization efficiency of equipment to meet the short-term maximum load. Among many energy storage technology routes, the response time of electrochemical energy storage devices is milliseconds, which has great technical advantages over conventional power regulation methods such as hydropower and thermal power. Battery energy storage power stations have strong load tracking ability, fast response speed, accurate control, two-way regulation and peak-to-valley shifting, and are important peak-shaving power sources. In the future, the form of energy access will be mainly distributed in virtual power plants. Therefore, the power system must respond to the changing needs of traditional services and create new opportunities for energy resource sharing and balancing. The network formed by interconnecting generators and energy storage systems owned by millions of users can serve as a platform to help match supply and demand and reduce inefficient duplication of energy investment. Therefore, how to effectively integrate battery energy storage systems into virtual power plants is an urgent issue to be studied.

[0004] However, the operation process of the battery energy storage system is multi-stage and dynamic, and the life of the battery is closely related to its charging and discharging behavior. In the long-term optimization operation of the energy storage system, the aging cost of the battery cannot be ignored. If the aging cost of the battery is taken into account in the optimization model, the battery energy storage optimization problem will become non-convex and difficult to handle. In order to meet these challenges, advanced control technology based on reinforcement learning is widely used in the optimization operation of energy storage systems. The reinforcement learning algorithm in the power grid is a decision-making method based on interactive information with the power grid environment, which is conducive to the optimal control in the virtual power plant. The actor-critic algorithm is a reinforcement learning method, which consists of two parts: one is policy gradient and the other is temporal difference learning. The learning process is carried out through the interaction between the critic's score and the actor's decision. The structure of the actor-critic algorithm is used to guide the charging and discharging behavior of the energy storage system. However, the traditional actor-critic method has problems such as complex uncertainty modeling, poor convergence, and difficulty in solving due to excessive state space, which has caused defects in practical technical applications. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a method, device, electronic device and storage medium for dynamic optimization of a battery energy storage system. The present invention proposes an improved double-delay deep deterministic policy gradient algorithm by modeling the scheduling process of the battery energy storage system into a multi-stage stochastic optimization model. By improving the sampling strategy of samples in the reinforcement learning process, the search space is reduced, the convergence speed is accelerated, the operation speed is fast, and the computing resources are less occupied. It is particularly suitable for optimization operations involving large-scale power grid topologies. It can not only optimize battery energy storage in real time, but also improve the ability of the power grid to provide auxiliary services and improve the operating efficiency of the power grid.

[0006] The first embodiment of the present invention provides a method for dynamic optimization of a battery energy storage system, comprising:

[0007] 1) The energy state of the battery energy storage system, the interactive power between the power grid where the battery energy storage system is located and the large power grid, the electricity price, and the set power of the interaction between the power grid where the battery energy storage system is located and the large power grid constitute state variables, and the active power of each node generator, the charging power and the discharging power of the battery energy storage system constitute action variables, and establish a battery energy storage system optimization model;

[0008] 2) constructing a reward function with respect to the state variable and the action variable;

[0009] 3) According to the optimization model and the reward function, the optimization model is solved using a double-delayed deep deterministic policy gradient method, and the action variables at each moment are obtained as the optimization results of the battery energy storage system.

[0010] In a specific embodiment of the present invention, the step of establishing a battery energy storage system optimization model includes:

[0011] 1-1) Establish the objective function of the battery energy storage system optimization model:

[0012]

[0013] Among them, t is the time decision variable, s t is the state at time t, a t is the action at time t, R(s t+i ,a t+i ) is in state s t+i Take action a t+i The generated reward, Pr is the transition probability, and γ is the decay coefficient; is the conditional probability Pr t+i |Pr t+i-1 Related expected value, superscript represents a random variable;

[0014] Among them, the action a at time t is defined t and status t as follows:

[0015]

[0016]

[0017] Among them, Pg i,t is the active power of the generator at node i at time t; are the charging power and discharging power of the battery energy storage system at time t; E t is the energy state of the battery energy storage system at time t, P 0,t is the interaction power between the power grid where the battery energy storage system is located and the large power grid at time t, c t is the real-time electricity price at time t, for t The set power for interaction between the grid where the battery energy storage system is located and the large grid at any given moment;

[0018] 1-2) Establish the constraints of the battery energy storage system optimization model, as follows:

[0019] 1-2-1) Linearized DistFlow power flow model constraints;

[0020]

[0021]

[0022]

[0023] Among them, i, j and k are the nodes of the power grid where the battery energy storage system is located, P ki,t and Q ki,t are the active power and reactive power of branch (k,i) at time t, V k,t and V i,t are the voltage amplitudes of nodes k and i at time t, respectively, i,t and Ql i,t are the load active power and load reactive power of node i at time t, Pg i,t and Qg i,t are the active power and reactive power of the generator at node i at time t, r ki and x ki are the resistance and reactance of the branch (k,i) respectively; T is the set of optimized moments, and N is the set of all nodes in the power grid where the battery energy storage system is located;

[0024] 1-2-2) Grid connection point power constraints;

[0025]

[0026] Among them, P 0,t is the power of the grid-connected node 0 at time t, are the lower and upper limits of the power of the grid connection point 0 node at time t respectively;

[0027] 1-2-3) Operational constraints of virtual power plants;

[0028]

[0029]

[0030]

[0031] in, V i , are the lower and upper limits of the voltage amplitude at node i, V i,t is the voltage amplitude of node i at time t, P ij,t ,Q ij,t are the active power and reactive power of branch (i, j) at time t, is the maximum transmission power of line (i, j);

[0032] 1-2-4) Battery energy storage charging, discharging and aging model constraints;

[0033]

[0034]

[0035]

[0036]

[0037] Among them, E t is the energy state of the battery energy storage system at time t, η ch ,η dis are the charging and discharging efficiency of the battery energy storage system, C N is the number of battery cycles until the battery is scrapped, ε is an adjustable coefficient, E max is the maximum capacity of the battery energy storage system, V B is the voltage level of the battery, E t , They are the lower and upper limits of the energy state of the battery energy storage system at time t respectively.

[0038] In a specific embodiment of the present invention, the reward function expression is as follows:

[0039] R t (s t ,a t )=α1R 1,t (s t ,a t )+α2R 2,t (s t ,a t )+α3R 3,t (s t ,a t )+α4R 4,t (s t ,a t )+α5R 5,t (s t ,a t ) (15)

[0040] Among them, R t is the reward function at time t, α i is the weight coefficient of the i-th item, i=1,2,3,4,5;

[0041]

[0042] Among them, a i ,b i ,c i are the quadratic cost coefficient, linear cost coefficient and constant cost coefficient of generator i respectively, Ω G is a collection of generators;

[0043]

[0044] Among them, c 1,t ,c2,t are the profit coefficients generated by using time-of-use electricity prices, and Δt is the interval time;

[0045]

[0046]

[0047] Among them, V i,t is the voltage amplitude of node i at time t, V, are the upper and lower limits of the voltage amplitude respectively;

[0048]

[0049] Among them, L t , C are the battery energy storage system life cycle throughput and the battery energy storage system investment cost respectively;

[0050] R 1,t (s t ,a t ) and R 2,t (s t ,a t ) are the operating costs of the generator and the energy storage at time t, respectively, R 3,t (s t ,a t ) is the error cost of system tracking and large grid interaction power at time t, R 4,t (s t ,a t ) is the penalty cost of voltage crossing the limit at time t, R 5,t (s t ,a t ) is the aging cost of the battery energy storage system at time t.

[0051] In a specific embodiment of the present invention, according to the optimization model and the reward function, the optimization model is solved using a double-delayed deep deterministic policy gradient method to obtain the action variables at each moment, which is the optimization result of the battery energy storage system, including:

[0052] Establish two actor networks and two critic networks respectively. The expressions are as follows:

[0053]

[0054]

[0055]

[0056] Among them, the actor network According to the status t Output action a at time tt , target actor network According to the state s at time t+1 t+1 Output target action at time t Critics Network According to action a t and status t calculate Critics target network Action according to target and the next state S t+1 calculate and θ i are the parameters of the actor network and the i-th critic network, and θ′ i are the parameters of the actor target network and the critic target network respectively;

[0057] Indicates that the ε noise follows a truncated normal distribution, and (-c, c) is the truncation interval;

[0058] Among them, the parameter update expressions of each network are as follows:

[0059]

[0060]

[0061] θ′ i ←αθ′ i +(1-α)θ i (26)

[0062] After the current moment ends, update the experience pool. The expression is as follows:

[0063] D←D∪{(s t ,a t ,R t ,s t+1 )} (27)

[0064] After the experience pool is updated, the samples in the experience pool are sampled, and the network is updated at the next current moment using the sampled samples; the sampling probability of the mth sample is:

[0065]

[0066] Among them, y m is the target Q value of the mth sample calculated by equation (22), Q m (s,a) is the current Q value of the mth sample, and n is the total number of samples;

[0067] Each action a at the current moment t That is, the optimization result at the current moment; the optimization result includes the charging power and discharging power of the battery energy storage system at the current moment, so as to realize dynamic optimization of the battery energy storage system.

[0068] A second aspect of the present invention provides a battery energy storage system dynamic optimization device, comprising:

[0069] An optimization model building module is used to form state variables with the energy state of the battery energy storage system, the interactive power between the power grid where the battery energy storage system is located and the large power grid, the electricity price, and the set power of the interaction between the power grid where the battery energy storage system is located and the large power grid, and form action variables with the active power of each node generator, the charging power and the discharging power of the battery energy storage system, so as to establish an optimization model for the battery energy storage system;

[0070] A reward function construction module, used to construct a reward function about the state variable and the action variable;

[0071] A solution module is used to solve the optimization model according to the optimization model and the reward function using a double-delayed deep deterministic policy gradient method, and the action variables at each moment are obtained as the optimization results of the battery energy storage system.

[0072] A third aspect of the present invention provides an electronic device, including:

[0073] at least one processor; and a memory communicatively coupled to the at least one processor;

[0074] The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the above-mentioned method for dynamic optimization of a battery energy storage system.

[0075] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above-mentioned method for dynamic optimization of a battery energy storage system.

[0076] The advantages and beneficial effects of the present invention are:

[0077] 1. The present invention adopts an improved double-delayed deep deterministic policy gradient method to fine-tune the modeling of the battery energy storage system, taking the aging cost of energy storage into account in the optimization operation, and improving the random search strategy of the experience pool of traditional reinforcement learning. Compared with the existing grid optimization method based on reinforcement learning, the solution space of the present invention is greatly reduced, the solution speed is significantly improved, and it is more suitable for deployment in actual power systems.

[0078] 2. The present invention adopts an improved flexible actor-critic algorithm to optimize the scheduling of energy storage systems. In the design of the reward function, the influence of various factors on the battery charging and discharging behavior is considered, and the battery energy storage system scheduling process is modeled as a multi-stage stochastic optimization problem. It can not only optimize the battery energy storage in real time, but also improve the ability of the power grid to provide auxiliary services and improve the operating efficiency of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 This is an overall flow chart of a method for dynamic optimization of a battery energy storage system proposed in an embodiment of the present invention. DETAILED DESCRIPTION

[0080] A method, device, electronic device and storage medium for dynamic optimization of a battery energy storage system proposed in an embodiment of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments.

[0081] The first embodiment of the present invention proposes a method for dynamic optimization of a battery energy storage system. The overall process is as follows: Figure 1 As shown, the following steps are included:

[0082] 1) Establish a battery energy storage system optimization model, which consists of an objective function and constraints; the specific steps are as follows:

[0083] 1-1) Establish the objective function of the battery energy storage system optimization model, the expression is as follows:

[0084]

[0085] Among them, t is the time decision variable, s t is the state at time t, a t is the action at time t, R(s t+i ,a t+i ) is in state s t+i Take action a t+i The generated reward, Pr is the transition probability, and γ is the decay coefficient. is the conditional probability Pr t+i |Pr t+i-1 Related expected value, superscript is to distinguish between deterministic variables and random variables, because is equivalent to the unknown state of the future at decision time t, so is modeled as a random variable.

[0086] In the reinforcement problem of this embodiment, the action a at time t is defined as t and status t as follows:

[0087]

[0088]

[0089] Among them, Pg i,t is the active power of the generator at node i (generator node) at time t; are the charging and discharging power of the battery energy storage system at time t; E t is the energy state of the battery energy storage system at time t, P 0,t is the interaction power between the power grid where the battery energy storage system is located and the large power grid at time t, c t is the real-time electricity price at time t, It is the set power for the interaction between the power grid where the battery energy storage system is located and the large power grid at time t.

[0090] 1-2) Establish the constraints of the battery energy storage system optimization model, as follows:

[0091] 1-2-1) LinearizedDistFlow (Linearized DistFlow) power flow model constraints;

[0092]

[0093]

[0094]

[0095] Among them, i, j and k are the nodes of the power grid where the battery energy storage system is located, P ki,t and Q ki,t are the active power and reactive power of branch (k,i) at time t, V k,t and V i,t are the voltage amplitudes of nodes k and i at time t, respectively, i,t and Ql i,t are the load active power and load reactive power of node i at time t, Pg i,t and Qg i,t are the active power and reactive power of the generator at node i at time t, r ki and x ki are the resistance and reactance of branch (k,i) respectively. T is the set of optimized moments, and N is the set of all nodes in the power grid where the battery energy storage system is located.

[0096] 1-2-2) Grid connection point power constraints;

[0097]

[0098] Among them, P 0,t is the power of the grid-connected node 0 at time t, They are respectively the lower and upper limits of the power of the grid-connected node 0 at time t.

[0099] 1-2-3) Operational constraints of virtual power plants;

[0100]

[0101]

[0102]

[0103] in, V i , are the lower and upper limits of the voltage amplitude at node i, V i,t is the voltage amplitude of node i at time t, P ij,t ,Q ij,t are the active power and reactive power of branch (i, j) at time t, is the maximum transmission power of line (i, j).

[0104] 1-2-4) Battery energy storage charging, discharging and aging model constraints;

[0105]

[0106]

[0107]

[0108]

[0109] Among them, E t is the energy state of the battery energy storage system at time t, η ch ,η dis are the charging and discharging efficiency of the battery energy storage system, C N is the number of battery cycles until the battery is scrapped, and ε is an adjustable coefficient (the specific value in this embodiment is ), E max is the maximum capacity of the battery energy storage system, V B is the voltage level of the battery, E t , They are the lower and upper limits of the energy state of the battery energy storage system at time t respectively.

[0110] Equation (11) describes the charging and discharging process of the battery energy storage system, Equation (13) describes the life throughput of the battery energy storage system, and Equation (14) describes the aging level of the battery energy storage system.

[0111] 2) Based on the optimization model established in step 1), combined with the simulation model, define the reward function;

[0112] R t (s t ,a t )=α1R 1,t (s t ,a t )+α2R 2,t (s t ,a t )+α3R 3,t (s t ,a t )+α4R 4,t (s t ,a t )+α5R 5,t (s t ,a t ) (15)

[0113] Among them, R t is the reward function at time t, α i (i=1, 2, 3, 4, 5) is the weight coefficient of the i-th item (in this embodiment, they are 0.1, 0.05, 0.07, 0.05 and 0.05 respectively). The weight coefficient is the result of automatic parameter adjustment. The embodiment shows that the optimization result will change significantly only when the order of magnitude of the weight coefficient changes. The specific definition is as follows:

[0114]

[0115] Among them, a i ,b i ,c i are the quadratic cost coefficient, linear cost coefficient and constant cost coefficient of generator i respectively, Ω G A collection of generators.

[0116]

[0117] Among them, c 1,t ,c 2,t are the profit coefficients generated by using time-of-use electricity prices, and Δt is the interval time.

[0118]

[0119]

[0120] Among them, V i,t is the voltage amplitude of node i at time t, V, are the upper and lower limits of the voltage amplitude.

[0121]

[0122] Among them, Lt , and C are the battery energy storage system life cycle throughput and the battery energy storage system investment cost respectively.

[0123] R 1,t (s t ,a t ) and R 2,t (s t ,a t ) are the operating costs of the generator and the energy storage at time t, respectively, R 3,t (s t ,a t ) is the error cost of system tracking and large grid interaction power at time t, R 4,t (s t ,a t ) is the penalty cost of voltage crossing the limit at time t, R 5,t (s t ,a t ) is the aging cost of the battery energy storage system at time t.

[0124] 3) Solving the optimization model;

[0125] 3-1) The embodiment of the present invention adopts an improved double-delay deep deterministic policy gradient solution method, which includes two critic networks for evaluating actions and selecting a smaller Q value for updating:

[0126]

[0127]

[0128]

[0129] Among them, the actor network According to the status t Output the current action a t . Target actor network According to the state s at time t+1 t+1 Output target action at time t Critics Network According to action a t and status t calculate (value function network), critic target network Action according to target and the next state s t+1 calculate (Value Function Network). and θ i are the parameters of the actor network and the i-th critic network, and θ′ i are the parameters of the actor target network and the critic target network respectively. In this embodiment, the initial parameters of each network are randomly initialized.

[0130] Formula (21) learns the behavior value function corresponding to the optimal strategy by minimizing the loss Formula (22) uses the Bellman equation to calculate the estimates of the two actions and takes the minimum value. Formula (23) adds small variance noise to the target strategy and averages the expected value of the small batch update action. It means that the ε noise follows a truncated normal distribution, and (-c, c) is the truncation interval.

[0131] The parameter update formula of each network is as follows:

[0132]

[0133]

[0134] θ′ i ←αθ′ i +(1-α)θ i (26)

[0135] 3-2) Using the sampling strategy of improving the traditional double-delay deep deterministic policy gradient algorithm;

[0136] The traditional method stores the experience data in the experience pool D, and re-acquires the grid operation status information s at t = t + 1 t+1 , using the calculated feedback variable value R t , and a random sampling strategy is used to update the neural network parameters. The random sampling strategy cannot guarantee the quality of the sampled data.

[0137] In the embodiment of the present invention, in the experience pool, data with higher values ​​should be selected, and the update expression of the experience pool is as follows:

[0138] D←D∪{(s t ,a t ,R t ,s t+1 )} (27)

[0139] Therefore, the present invention defines the sample sampling probability, the sampling probability of the mth sample:

[0140]

[0141] Among them, y m is the target Q value of the mth sample calculated by equation (22), Q m (s,a) is the current Q value of the mth sample, and n is the total number of samples.

[0142] After sampling is completed, return to step 3) and repeat the operation.

[0143] The solution process of this embodiment is to use the current Q value network to continuously output the action a at the current moment after initialization. t That is the current optimization result, and each network is continuously updated for subsequent optimization.

[0144] Actions at each moment t That is the optimization result obtained in this embodiment. According to the current state of the battery energy storage system, the charging and discharging power of the battery energy storage system at each moment is obtained, that is, the dynamic optimization of the battery energy storage system is completed.

[0145] To implement the above embodiment, a second aspect of the present invention provides a battery energy storage system dynamic optimization device, including:

[0146] An optimization model building module is used to form state variables with the energy state of the battery energy storage system, the interactive power between the power grid where the battery energy storage system is located and the large power grid, the electricity price, and the set power of the interaction between the power grid where the battery energy storage system is located and the large power grid, and form action variables with the active power of each node generator, the charging power and the discharging power of the battery energy storage system, so as to establish an optimization model for the battery energy storage system;

[0147] A reward function construction module, used to construct a reward function about the state variable and the action variable;

[0148] A solution module is used to solve the optimization model according to the optimization model and the reward function using a double-delayed deep deterministic policy gradient method, and the action variables at each moment are obtained as the optimization results of the battery energy storage system.

[0149] To implement the above embodiment, a third aspect of the present invention provides an electronic device, including:

[0150] at least one processor; and a memory communicatively coupled to the at least one processor;

[0151] The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the above-mentioned method for dynamic optimization of a battery energy storage system.

[0152] To implement the above embodiment, a fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above method for dynamic optimization of a battery energy storage system.

[0153] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0154] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes a method for dynamic optimization of a battery energy storage system in the above embodiment.

[0155] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0156] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0157] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0158] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0159] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0160] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0161] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0162] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0163] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A dynamic optimization method for a battery energy storage system, It is characterized in that include: 1) The energy state of the battery energy storage system, the interactive power between the power grid where the battery energy storage system is located and the large power grid, the electricity price, and the set power of the interaction between the power grid where the battery energy storage system is located and the large power grid constitute state variables, and the active power of each node generator, the charging power and the discharging power of the battery energy storage system constitute action variables, and establish a battery energy storage system optimization model; 2) constructing a reward function with respect to the state variable and the action variable; 3) According to the optimization model and the reward function, the optimization model is solved using a double-delayed deep deterministic policy gradient method, and the action variables at each moment are obtained as the optimization results of the battery energy storage system; Wherein, the establishment of a battery energy storage system optimization model includes: 1-1) Establish the objective function of the battery energy storage system optimization model: Among them, t is the time decision variable, s t is the state at time t, a t is the action at time t, R(s t+i ,a t+i ) is in state s t+i Take action a t+i The generated reward, Pr is the transition probability, and γ is the decay coefficient; is the conditional probability Pr t+i |Pr t+i-1 Related expected value, superscript represents a random variable; Among them, the action a at time t is defined t and status t as follows: Among them, Pg i,t is the active power of the generator at node i at time t; are the charging power and discharging power of the battery energy storage system at time t; E t is the energy state of the battery energy storage system at time t, P 0,t is the interaction power between the power grid where the battery energy storage system is located and the large power grid at time t, c t is the real-time electricity price at time t, is the set power for the interaction between the power grid where the battery energy storage system is located and the large power grid at time t; 1-2) Establish the constraints of the battery energy storage system optimization model, as follows: 1-2-1) Linearized DistFlow power flow model constraints; Among them, i, j and k are the nodes of the power grid where the battery energy storage system is located, P ki,t and Q ki,t are the active power and reactive power of branch (k,i) at time t, V k,t and V i,t are the voltage amplitudes of nodes k and i at time t, respectively, i,t and Ql i,t are the load active power and load reactive power of node i at time t, Pg i,t and Qg i,t are the active power and reactive power of the generator at node i at time t, r ki and x ki are the resistance and reactance of the branch (k,i) respectively; T is the set of optimized moments, and N is the set of all nodes in the power grid where the battery energy storage system is located; 1-2-2) Grid connection point power constraints; Among them, P 0,t is the power of the grid-connected node 0 at time t, are the lower and upper limits of the power of the grid connection point 0 node at time t respectively; 1-2-3) Operational constraints of virtual power plants; in, are the lower and upper limits of the voltage amplitude at node i, V i,t is the voltage amplitude of node i at time t, P ij,t ,Q ij,t are the active power and reactive power of branch (i, j) at time t, is the maximum transmission power of line (i, j); 1-2-4) Battery energy storage charging, discharging and aging model constraints; Among them, E t is the energy state of the battery energy storage system at time t, η ch ,η dis are the charging and discharging efficiency of the battery energy storage system, C N is the number of battery cycles until the battery is scrapped, ε is an adjustable coefficient, E max is the maximum capacity of the battery energy storage system, V B is the voltage level of the battery, are the lower and upper limits of the energy state of the battery energy storage system at time t respectively; The reward function expression is as follows: R t (s t ,a t )=a 1 R 1,t (s t ,a t )+a 2 R 2,t (s t ,a t )+a 3 R 3,t (s t ,a t )+a 4 R 4,t (s t ,a t )+a 5 R 5,t (s t ,a t ) (15) Among them, R t is the reward function at time t; α i is the weight coefficient of the i-th item, i=1,2,3,4,5; Among them, a i ,b i ,c i are the quadratic cost coefficient, linear cost coefficient and constant cost coefficient of generator i respectively, Ω G is a collection of generators; Among them, c 1,t ,c 2,t are the profit coefficients generated by using time-of-use electricity prices, and Δt is the interval time; Among them, V i,t is the voltage amplitude of node i at time t, are the upper and lower limits of the voltage amplitude respectively; Among them, L t , C are the battery energy storage system life cycle throughput and the battery energy storage system investment cost respectively; R 1,t (s t ,a t ) and R 2,t (s t ,a t ) are the operating costs of the generator and the energy storage at time t, respectively, R 3,t (s t ,a t ) is the error cost of system tracking and large grid interaction power at time t, R 4,t (s t ,a t ) is the penalty cost of voltage crossing the limit at time t, R 5,t (s t ,a t ) is the aging cost of the battery energy storage system at time t.

2. The optimization method according to claim 1, It is characterized in that The method of solving the optimization model according to the optimization model and the reward function using a double-delayed deep deterministic policy gradient method to obtain the action variables at each moment is the optimization result of the battery energy storage system, including: Establish two actor networks and two critic networks respectively. The expressions are as follows: Among them, the actor network According to the status t Output action a at time t t , target actor network According to the state s at time t+1 t+1 Output target action at time t Critics Network According to action a t and status t calculate Critics target network Action according to target and the next state s t+1 calculate and θ i are the parameters of the actor network and the i-th critic network, and θ i ′ are the parameters of the actor target network and the critic target network respectively; ε~clip(N(0,σ),-c,c) means that the ε noise follows a truncated normal distribution, and (-c,c) is the truncation interval; Among them, the parameter update expressions of each network are as follows: θ′ i ←θ′ i +(1-α)θ i (26) After the current moment ends, update the experience pool. The expression is as follows: D←D∪{(s t ,a t ,R t ,s t+1 )} (27) After the experience pool is updated, the samples in the experience pool are sampled, and the network is updated at the next current moment using the sampled samples; the sampling probability of the mth sample is: Among them, y m is the target Q value of the mth sample calculated by equation (22), Q m (s,a) is the current Q value of the mth sample, and n is the total number of samples; Each action a at the current moment t That is, the optimization result at the current moment; the optimization result includes the charging power and discharging power of the battery energy storage system at the current moment, so as to realize dynamic optimization of the battery energy storage system.

3. A battery energy storage system dynamic optimization device for executing the optimization method according to claim 1, It is characterized in that include: An optimization model building module is used to form state variables with the energy state of the battery energy storage system, the interactive power between the power grid where the battery energy storage system is located and the large power grid, the electricity price, and the set power of the interaction between the power grid where the battery energy storage system is located and the large power grid, and form action variables with the active power of each node generator, the charging power and the discharging power of the battery energy storage system, so as to establish an optimization model for the battery energy storage system; A reward function construction module, used to construct a reward function about the state variable and the action variable; A solution module is used to solve the optimization model according to the optimization model and the reward function using a double-delayed deep deterministic policy gradient method, and the action variables at each moment are obtained as the optimization results of the battery energy storage system.

4. An electronic device, It is characterized in that include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the optimization method described in any one of claims 1 to 2.

5. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the optimization method according to any one of claims 1-2.

Citation Information

Patent Citations

  • Power grid hybrid rolling scheduling method considering blocking and energy storage time-of-use power price

    CN109687530A

  • Power distribution network optimization method based on multi-agent depth determination strategy gradient algorithm

    CN113972645A