A method and device for intelligent decision-making of aggregated control of multi-point distributed energy storage system

Through deep Q network training and quantitative mathematical model optimization, it solves the problem that the global optimal solution to nonlinear problems in distributed energy storage systems is difficult to obtain, achieves system cost minimization and rapid adjustment of new energy consumption, and improves System flexibility and computational efficiency.

CN115459320BActive Publication Date: 2024-09-03STATE GRID HUBEI ELECTRIC POWER RES INST +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211132222.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2024-09-03
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

Existing distributed energy storage system control methods are difficult to obtain the global optimal solution when dealing with nonlinear, non-convex or discontinuous problems. The calculation is time-consuming and lacks generalization learning capabilities. It is difficult to effectively adjust the comprehensive operating costs and new energy sources of the system. Absorb stress.

Method used

The deep Q network is used to train the multi-point distributed energy storage system, establish a quantitative mathematical model, and obtain the optimal multi-point distributed energy storage action strategy through traversal search, taking into account power balance, adjustment instructions, charge and discharge power, and state of charge. and line power flow constraints to minimize system costs.

Benefits of technology

It achieves rapid and accurate adjustment of energy storage system power, enhances the system's flexibility and new energy absorption capabilities, reduces frequency stability risks, and improves the applicability and computing efficiency of the algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115459320B
    Figure CN115459320B
Patent Text Reader

Abstract

A method and device for intelligent decision-making of aggregate control of a multi-point distributed energy storage system, the method comprising: establishing a multi-point distributed energy storage control decision model with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area; initializing the multi-point energy storage aggregate intelligent body operating environment, and inputting the multi-point distributed energy storage control decision model into the multi-point energy storage aggregate intelligent body operating environment; training the multi-point energy storage aggregate intelligent body in the multi-point energy storage aggregate intelligent body operating environment based on a deep Q network to obtain a quantitative mathematical model of the Q network and its parameters; based on the quantitative mathematical model of the Q network and its parameters, traversing and searching in the preset distributed energy storage action space to obtain the optimal multi-point distributed energy storage action strategy. The present invention takes into account the impact of current decisions on the future, can comprehensively consider the goals of multiple time periods, maximize long-term benefits, and minimize the comprehensive operation and control comprehensive cost of the system, and quickly and accurately adjust the power of the energy storage system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of distributed energy storage system control decision-making, and specifically relates to a multi-point distributed energy storage system aggregate control intelligent decision-making method and device. Background Art

[0002] With the annual growth of installed capacity and proportion of new energy, the problem of new energy consumption such as abandoned solar and wind power has also become prominent. Especially in some areas, new energy represented by distributed photovoltaics has grown explosively, and the penetration rate of new energy in regional power grids has continued to increase, which has greatly increased the complexity of regional power grid operation and the pressure of new energy consumption. Improving the flexible adjustment capability of the system and expanding the space for the absorption of new energy have become important issues that need to be urgently addressed in the current construction of new power systems. Energy storage has the advantages of fast response speed, strong short-term power throughput capacity, and easy change of adjustment direction. On the one hand, it can change the time distribution of electric energy, and on the other hand, it can respond quickly when faults or fluctuations occur in the power system. By adding virtual inertia control to the control of energy storage, the total inertia of the system can be increased to a certain extent, and the frequency stability risk of the system can be reduced.

[0003] At present, the control of distributed energy storage systems is mainly based on serving local energy management and regulation needs. In terms of control decision methods, optimization algorithms such as linear programming have high computational efficiency, but they are difficult to escape local optimality when dealing with nonlinear, non-convex or non-continuous problems; heuristic algorithms can obtain the corresponding optimal solution or Pareto frontier under given conditions, but they have many restrictions, take a long time to calculate, and have insufficient algorithm generalization learning ability. Summary of the invention

[0004] In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides a multi-point distributed energy storage system aggregate control intelligent decision-making method and device, which takes into account the impact of current decisions on the future, can coordinate the goals of multiple time periods, maximize long-term benefits and minimize the comprehensive operation and control costs of the system, and quickly and accurately adjust the power of the energy storage system.

[0005] In order to achieve the above-mentioned object of the invention, the present invention adopts the following technical scheme:

[0006] A multi-point distributed energy storage system aggregate control intelligent decision-making method comprises the following steps:

[0007] A multi-point distributed energy storage control decision model is established with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area; an operation environment of the multi-point energy storage aggregation intelligent agent is initialized, and the multi-point distributed energy storage control decision model is input into the operation environment of the multi-point energy storage aggregation intelligent agent;

[0008] Based on the deep Q network, the multi-point energy storage aggregation intelligent agent in the multi-point energy storage aggregation intelligent agent operating environment is trained to obtain a quantitative mathematical model of the Q network and its parameters;

[0009] Based on the quantized mathematical model of the Q network and its parameters, a traversal search is performed in the preset distributed energy storage action space to obtain the optimal multi-point distributed energy storage action strategy.

[0010] Furthermore, the establishment of a multi-point distributed energy storage control decision model includes:

[0011] With the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area, and considering the power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints of each distributed energy storage system, a multi-point distributed energy storage system control decision model is established; wherein the objective function of the multi-point distributed energy storage system control decision model is as follows:

[0012]

[0013] Where: f is the control cost of the multi-point distributed energy storage system in the target area; T is the time period of the control scenario, and for the transient control scenario, T = 1; C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the target area at time t; C pf (t) is the penalty cost function for exceeding the limit of the corresponding line flow, node voltage, and battery charging and discharging safety constraints at time t;

[0014] The constraints of the multi-point distributed energy storage system control decision model include power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints, which are:

[0015] Power balance constraints:

[0016]

[0017] Where: M is the number of distributed energy storage systems; N is the number of network nodes; L is the number of network lines; P j is the charging and discharging power of the distributed energy storage at the jth location; PV i is the distributed photovoltaic power generation power of the i-th node; P EX The power exchanged with the external power grid; PD i is the load power of the i-th node; P l is the power loss of the lth line;

[0018] General regulation instruction constraints:

[0019]

[0020] Where: ΔP j is the charge and discharge power increment of the distributed energy storage at the jth location; ΔP ES It is the overall regulation instruction issued by the superior regulation system under the preset scenario;

[0021] Energy storage charging and discharging power constraints:

[0022] P j.min ≤|P j |≤P j,max (4)

[0023] Where: P j.min is the lower limit of the charging and discharging power of the distributed energy storage system at the jth location; P j.max is the upper limit of charging and discharging power of the distributed energy storage system at the jth location;

[0024] Energy storage state of charge constraints:

[0025] SOC j.min ≤SOC j ≤SOC j,max (5)

[0026]

[0027] Where: SOC j,min is the lower limit of the state of charge of the distributed energy storage system at the jth location; SOC j,max is the upper limit of the state of charge of the distributed energy storage system at the jth location; SOC j is the charge state of the distributed energy storage system at the jth location; Ej is the current energy state of the distributed energy storage system at the jth location; E rate j is the rated energy state of the distributed energy storage system at the jth location;

[0028] Line flow constraints:

[0029] I l <I l,max (7)

[0030] Where: I l is the current of the lth line; I l,max is the thermal stability current of the lth line;

[0031] Node voltage constraints:

[0032] U i.min ≤U i ≤U i,max (8)

[0033] Where: Ui,min is the lower limit of the voltage at the ith node; U i,max is the upper limit of the voltage at the ith node; U i is the voltage of the node at the ith location.

[0034] Furthermore, the initialization of the multi-point energy storage aggregation intelligent agent operating environment includes:

[0035] The state signal space S of the multi-point distributed energy storage aggregation agent is defined as:

[0036] S=[PV i (t),PD i (t),SOC j (t),TOU(t)] (9)Where: PV i (t) is the distributed photovoltaic power generation power of the node i at time t; PD i (t) is the load power of the node at time t; SOC j (t) is the state of charge of the distributed energy storage at the jth location at time t; TOU(t) is the time-of-use electricity price at time t;

[0037] The action signal space A of deep reinforcement learning for multi-point distributed energy storage aggregation control is defined as:

[0038] A=[P j (t)|g] (10)

[0039] Where: P j (t) is the charge and discharge power of the distributed energy storage at the jth location at time t; g is the discretization granularity of the continuous variable, which is expressed as a sampling period;

[0040] Based on the control cost of the multi-point distributed energy storage system in the target area at time t, the reward function R of deep reinforcement learning is defined as:

[0041] R=C es (t)+C grid (t)+C pf (t) (11)

[0042] Where: C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the region at time t; C pf (t) is the penalty cost function of the corresponding line flow, node voltage, and battery charging and discharging at time t.

[0043] Furthermore, the energy storage aggregation agent is trained based on the deep Q network to obtain the quantitative mathematical model of the Q network and its parameters, which specifically include:

[0044] Initializing the experience pool, the Q network and setting initial parameters of the Q network, wherein the parameters in the Q network are updated once every preset certain rounds; wherein the experience pool includes different distributed energy storage action strategies;

[0045] Based on the experience pool and the initial Q network, the multi-point energy storage aggregation agent in the operating environment of the multi-point energy storage aggregation agent is trained for multiple rounds until the number of rounds of training reaches the set maximum preset number of rounds. After the training is completed, the parameters of the final Q network are obtained, thereby obtaining the expression relationship between different distributed energy storage action strategies and their corresponding Q network value functions, and then obtaining the quantitative mathematical model and its parameters between the control action input and the control effect output of the multi-point distributed energy storage system with the Q network as the carrier.

[0046] Furthermore, the multi-round training of the multi-point energy storage aggregation agent in the multi-point energy storage aggregation agent operation environment based on the experience pool and the initial Q network specifically includes:

[0047] In each round, an initial operating state s of the current Q network is randomly selected;

[0048] According to the ε-greedy exploration and utilization mechanism, a random number between 0 and 1 is randomly generated. If the random number is greater than ε, the distributed energy storage action is executed. Otherwise, a random action a is executed;

[0049] Calculate the reward r and next state s′ after executing the distributed energy storage action a, and store (s, a, r, s′, done) in the experience pool D, where done is a Boolean variable indicating whether the new state s′ is a terminal state;

[0050] A preset number k of samples are randomly extracted from the experience pool D to train the deep convolutional network, and the stochastic gradient descent method is used to update the parameters ω of the current Q network during the sample training iteration;

[0051] Determine whether state s′ is a terminal state. If so, this round ends; otherwise, let s = s′ and return to the step of randomly generating a random number between 0 and 1 according to the ε-greedy exploration and utilization mechanism.

[0052] Further, the output of the quantized mathematical model of the Q network is Y=Q(s0,a|ω), where: a∈A, s0 is the initial operating state, ω is a parameter of the quantized mathematical model of the Q network, and A is a preset action space;

[0053] Based on the quantized mathematical model of the Q network and its parameters, the action space of distributed energy storage is traversed and searched to obtain the optimal multi-point distributed energy storage action strategy, including:

[0054] Based on the quantized mathematical model of the Q network and its parameter ω, and the initial operating state s0, a traversal search is performed in the preset action space A, and the action variable a=arg maxQ(s0,a|ω) corresponding to the output Y of the quantized mathematical model of the Q network reaching the maximum value is taken as the action strategy of distributed energy storage.

[0055] A multi-point distributed energy storage system aggregate control intelligent decision-making device, comprising:

[0056] A model building module, used to establish a multi-point distributed energy storage control decision model with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area;

[0057] An initialization module is used to initialize the multi-point energy storage aggregation intelligent body operating environment and input the multi-point distributed energy storage control decision model into the multi-point energy storage aggregation intelligent body operating environment;

[0058] A network training module is used to train the multi-point energy storage aggregation intelligent agent in the multi-point energy storage aggregation intelligent agent operating environment based on a deep Q network to obtain a quantitative mathematical model of the Q network and its parameters;

[0059] The energy storage action strategy acquisition module is used to perform a traversal search in a preset distributed energy storage action space based on the quantized mathematical model of the Q network and its parameters to obtain an optimal multi-point distributed energy storage action strategy.

[0060] Furthermore, the model building module builds a multi-point distributed energy storage control decision model, including:

[0061] With the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area, and considering the power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints of each distributed energy storage system, a multi-point distributed energy storage system control decision model is established; wherein the objective function of the multi-point distributed energy storage system control decision model is as follows:

[0062]

[0063] Where: f is the control cost of the multi-point distributed energy storage system in the target area; T is the time period of the control scenario, and for the transient control scenario, T = 1; C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the target area at time t; Cpf (t) is the penalty cost function for exceeding the limit of the corresponding line flow, node voltage, and battery charging and discharging safety constraints at time t;

[0064] The constraints of the multi-point distributed energy storage system control decision model include power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints, which are:

[0065] Power balance constraints:

[0066]

[0067] Where: M is the number of distributed energy storage systems; N is the number of network nodes; L is the number of network lines; P j is the charging and discharging power of the distributed energy storage at the jth location; PV i is the distributed photovoltaic power generation power of the i-th node; P EX The power exchanged with the external power grid; PD i is the load power of the i-th node; P l is the power loss of the lth line;

[0068] General regulation instruction constraints:

[0069]

[0070] Where: ΔP j is the charge and discharge power increment of the distributed energy storage at the jth location; ΔP ES It is the overall regulation instruction issued by the superior regulation system under the preset scenario;

[0071] Energy storage charging and discharging power constraints:

[0072] P j.min ≤|P j |≤P j,max (4)

[0073] Where: P j.min is the lower limit of the charging and discharging power of the distributed energy storage system at the jth location; P j.max is the upper limit of charging and discharging power of the distributed energy storage system at the jth location;

[0074] Energy storage state of charge constraints:

[0075] SOC j.min ≤SOC j ≤SOC j,max (5)

[0076]

[0077] Where: SOCj,min is the lower limit of the state of charge of the distributed energy storage system at the jth location; SOC j,max is the upper limit of the state of charge of the distributed energy storage system at the jth location; SOC j is the charge state of the distributed energy storage system at the jth location; Ej is the current energy state of the distributed energy storage system at the jth location; E rate j is the rated energy state of the distributed energy storage system at the jth location;

[0078] Line flow constraints:

[0079] I l <I l,max (7)

[0080] Where: I l is the current of the lth line; I l,max is the thermal stability current of the lth line;

[0081] Node voltage constraints:

[0082] U i.min ≤U i ≤U i,max (8)

[0083] Where: U i,min is the lower limit of the voltage at the ith node; U i,max is the upper limit of the voltage at the ith node; U i is the voltage of the node at the ith location.

[0084] A multi-point distributed energy storage system aggregate control intelligent decision-making system, comprising: a computer-readable storage medium and a processor;

[0085] The computer-readable storage medium is used to store executable instructions;

[0086] The processor is used to read the executable instructions stored in the computer-readable storage medium to execute any of the above-mentioned intelligent decision-making methods for aggregated control of a multi-point distributed energy storage system.

[0087] A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned intelligent decision-making methods for aggregated control of a multi-point distributed energy storage system.

[0088] The present invention proposes a multi-point distributed energy storage system aggregate control intelligent decision-making method and device, which has the following advantages:

[0089] 1. The energy storage aggregation agent is trained through the Q network (deep Q network, DQN), which considers the impact of current decisions on the future and no longer focuses on the size of the current value;

[0090] 2. After training the intelligent agent through DQN, the parameters of the Q network are determined, and the accurate form of the value function of different distributed energy storage action strategies under any operating environment can be obtained. Based on the action space of distributed energy storage, the optimal multi-point distributed energy storage action strategy can be obtained through multiple rounds of iterations, which increases the applicability of the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Figure 1 is a schematic diagram of a deep reinforcement learning process in an embodiment of the present invention;

[0092] Figure 2 It is the DQN deep reinforcement learning process in the embodiment of the present invention;

[0093] Figure 3 This is the IEEE 3-machine 9-node system structure diagram;

[0094] Figure 4 This is a schematic diagram of the Q network structure. DETAILED DESCRIPTION

[0095] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0096] The embodiment of the present invention provides a multi-point distributed energy storage system aggregate control intelligent decision-making method, comprising the following steps:

[0097] Step S101: Establishing a multi-point distributed energy storage control decision model with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area; Step S101 includes:

[0098] A control decision model for a multi-point distributed energy storage system is established with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area, taking into account the power balance constraints of the distributed energy storage system at each point, the total regulation instruction constraints, the energy storage charging and discharging power constraints, the energy storage charge state constraints, the line flow constraints, the node voltage constraints and other constraints.

[0099] The objective function is:

[0100]

[0101] Where: f is the control cost of the multi-point distributed energy storage system in the target area; T is the time period of the control scenario, and for the transient control scenario, T = 1; C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the target area at time t; C pf (t) is the penalty cost function for exceeding the limit of the corresponding line flow, node voltage, and battery charging and discharging safety constraints at time t;

[0102] The constraints of the multi-point distributed energy storage system control decision model include power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints, which are specifically described as follows:

[0103] Power balance constraints:

[0104]

[0105] Where: M is the number of distributed energy storage systems; N is the number of network nodes; L is the number of network lines; P j is the charging and discharging power of the distributed energy storage at the jth location (discharging is positive, charging is negative); PV i is the distributed photovoltaic power generation power of the i-th node; P EX The power exchanged with the external power grid; PD i is the load power of the i-th node; P l is the power loss of the lth line.

[0106] General regulation instruction constraints:

[0107]

[0108] Where: ΔP j is the charge and discharge power increment of the distributed energy storage at the jth location; ΔP ES It is the overall adjustment instruction issued by the superior control system under the preset scenario.

[0109] Energy storage charging and discharging power constraints:

[0110] P j.min ≤|P j |≤P j,max (4)

[0111] Where: P j.min is the lower limit of the charging and discharging power of the distributed energy storage system at the jth location; P j.max is the upper limit of the charging and discharging power of the distributed energy storage system at the jth location.

[0112] Energy storage state of charge constraints:

[0113] SOC j.min ≤SOC j ≤SOC j,max (5)

[0114]

[0115] Where: SOC j,min is the lower limit of the state of charge of the distributed energy storage system at the jth location; SOC j,max is the upper limit of the state of charge of the distributed energy storage system at the jth location;

[0116] SOC j is the charge state of the distributed energy storage system at the jth location; Ej is the current energy state of the distributed energy storage system at the jth location; E rate j is the rated energy state of the distributed energy storage system at the jth location

[0117] Line flow constraints:

[0118] I l <I l,max (7)

[0119] Where: I l is the current of the lth line; I l,max is the thermal stability current of the lth line;

[0120] Node voltage constraints:

[0121] U i.min ≤U i ≤U i,max (8)

[0122] Where: U i,min is the lower limit of the voltage at the ith node; U i,max is the upper limit of the voltage at the ith node; U i is the voltage of the node at the ith location.

[0123] Step S102: Initialize the multi-point energy storage aggregation intelligent agent operating environment, and input the multi-point distributed energy storage control decision model into the multi-point energy storage aggregation intelligent agent operating environment.

[0124] In step S102, the multi-point energy storage aggregation intelligent agent operating environment is initialized, including:

[0125] The state signal space S of the multi-point distributed energy storage aggregation agent is defined as:

[0126] S=[PV i (t),PD i (t),SOC j (t),TOU(t)] (9)Where: PV i(t) is the distributed photovoltaic power generation power of the node i at time t; PD i (t) is the load power of the node at time t; SOC j (t) is the state of charge of the distributed energy storage at the jth location at time t; TOU(t) is the time-of-use electricity price at time t;

[0127] The action signal space A of deep reinforcement learning for multi-point distributed energy storage aggregation control is defined as:

[0128] A=[P j (t)|g] (10)

[0129] Where: P j (t) is the charge and discharge power of the distributed energy storage at the jth location at time t; g is the discretization granularity of the continuous variable, which can be represented by the sampling period;

[0130] Based on the control cost of the multi-point distributed energy storage system in the target area at time t, the reward function R of deep reinforcement learning is defined as:

[0131] R=C es (t)+C grid (t)+C pf (t) (11)

[0132] Where: C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the region at time t; C pf (t) is the penalty cost function for exceeding the safety constraints such as line flow, node voltage, battery charging and discharging at time t.

[0133] Step S103: Train the energy storage aggregation agent based on the deep Q network to obtain the quantitative mathematical model and parameters of the Q network. The structure of the Q network is as follows: Figure 4 Step S103 specifically includes (as shown in Figure 1 and Figure 2 shown):

[0134] Initialize the experience pool, Q network and set the initial parameters of the Q network, wherein the parameters in the Q network are updated once every preset round; wherein the experience pool includes different distributed energy storage action strategies; wherein the various parameters set specifically include: experience pool capacity D, maximum number of training rounds episode max , discount rate γ, learning rate λ, current Q network parameter ω, target Q network parameter ω′, target Q network parameter update interval C, greedy probability ε, training batch k, etc.

[0135] Based on the experience pool and the initial Q network, the multi-point energy storage aggregation agent in the multi-point energy storage aggregation agent operating environment is trained for multiple rounds until the number of rounds of training reaches the set maximum preset number of rounds. After the training is completed, the parameters of the final Q network are obtained, thereby obtaining the expression relationship between different distributed energy storage action strategies and their corresponding Q network value functions, and then obtaining the quantitative mathematical model and its parameters between the control action input and control effect output of the multi-point distributed energy storage system with the Q network as the carrier. The multi-point energy storage aggregation agent includes an aggregation control system and a multi-point interconnected distributed energy storage physical system. The multi-point energy storage aggregation agent uses the multi-point interconnected distributed energy storage physical system as the "body", the aggregation control system as the "brain", and the charging and discharging of each point distributed energy storage system as the specific "action". The action of the distributed energy storage mainly refers to its charging and discharging according to the power instructions issued by the aggregation control system. In the agent, the distributed energy storage serves as the action execution mechanism.

[0136] The parameters in the target Q network are updated every certain rounds, including:

[0137] The parameters ω′ of the target Q network are updated every C rounds;

[0138] Calculate episode%C. If episode%C=0, update the target Q network parameter ω′=ω, that is, assign the parameter ω of the current network to the target Q network.

[0139] Compare the current number of rounds with the set maximum number of rounds to see if they are consistent, including:

[0140] Comparing episodes max ;

[0141] If episode<episode max Then episode = episode + 1, go to the neural network training, and start a new round of learning and training;

[0142] If episode=episode max , save the Q network parameters and end the training.

[0143] When the Q network is trained in each round, an initial state is randomly selected in each round, an action is executed through the ε-greedy exploration mechanism, and the reward and the next state obtained after the action is executed are calculated, and then stored in the experience pool. A certain number of samples are randomly selected from the experience pool to train the deep convolutional network, and the parameters in the Q network are updated to determine whether the next state is a terminal state. If so, this round ends, otherwise the training continues.

[0144] The multi-round training of the multi-point energy storage aggregation intelligent agent in the multi-point energy storage aggregation intelligent agent operation environment based on the experience pool and the initial Q network includes:

[0145] In each episode, an initial operating state s of the initial Q network is randomly selected;

[0146] According to the ε-greedy exploration and utilization mechanism, a random number between 0 and 1 is randomly generated. If the random number is greater than ε, the distributed energy storage action is executed. If the random number is less than or equal to ε, a random action a is executed. In the initial learning stage, ε can be set to a larger value, and Δε is gradually reduced over time. This ensures that the choice of action strategy of the agent is mainly based on exploration in the early stage of learning; as learning continues to deepen, the subsequent use of existing experience is mainly used.

[0147] Calculate the reward r and next state s′ after executing the distributed energy storage action a, and store (s, a, r, s′, done) in the experience pool D, where done is a Boolean variable indicating whether the new state s′ is a terminal state (True if it is terminated; False if it is not terminated);

[0148] A preset number of samples k are randomly selected from the experience pool D to train the deep convolutional network. During the sample training iteration, the stochastic gradient descent method is used to update the network parameters ω of the current Q network. The specific steps are as follows:

[0149] The target Q network output is recorded as:

[0150]

[0151] Then the mean square error between the current Q network and the target Q network output is expressed as:

[0152] L(ω)=E[YQ(s,a|ω)) 2 ] (13)

[0153] The current Q value network parameter ω is corrected with the goal of minimizing the error function. The gradient of the error function L(ω) with respect to the parameter ω can be expressed as:

[0154]

[0155] Then the current Q value network parameter ω is updated as:

[0156]

[0157] Use stochastic gradient descent method to update the current Q network parameter ω during the sample training iteration;

[0158] Determine whether state s′ is a terminal state. If so, this round ends. If not, set s=s′ and return to the step of randomly generating a random number between 0 and 1 according to the ε-greedy exploration and utilization mechanism.

[0159] Step S104: Based on the quantized mathematical model and parameters of the Q network, the action space of the distributed energy storage is searched to obtain the optimal multi-point distributed energy storage action strategy, including:

[0160] Based on the quantized mathematical model of the Q network and its parameter ω, and the initial operating state s0, a traversal search is performed in the preset action space A, and the action variable a=arg max Q(s0,a|ω) corresponding to the output Y of the quantized mathematical model of the Q network reaching the maximum value is taken as the action strategy of distributed energy storage.

[0161] For the Q network, the output of the quantized mathematical model of the Q network is Y=Q(s0,a|ω), where: a∈A, s0 is the initial operating state, ω is the parameter of the quantized mathematical model of the Q network, and A is the preset action space; if the action variable a∈A is known, a traversal search is performed based on the action space A, and a=arg max Q(s0,a|ω) is taken, that is, a corresponding to when Y reaches the maximum value is taken as the action strategy of distributed energy storage.

[0162] Take IEEE 3 machines and 9 nodes as an example to conduct a case analysis. The system base capacity is 100MVA and the voltage level is 100kV. Figure 3 Nodes 1, 2, and 3 are generator nodes; among them, node 1 is a synchronous generator G1, which is set as a balancing node; nodes 2 and 3 are photovoltaic power generation PV1 and PV2. Nodes 5, 6, and 8 are load nodes D1, D2, and D3, and energy storage ES1, ES2, and ES3 are configured at the same time. Their state parameters are shown in Table 1. The current operating status information of each node in the system is shown in Table 2. The distributed energy storage system at each point is in a floating charge state.

[0163] Table 1 Distributed energy storage system status parameters

[0164]

[0165] Table 2 System node status information

[0166] name Location Active power / MW Reactive power / Mvar G1 BUS1 71.64 0 PV1 BUS2 163 0 PV2 BUS3 85 0 D1 BUS5 125 50 D2 BUS6 90 30 D3 BUS8 100 35

[0167] Assuming that under the current operating state, the system's photovoltaic power generation output has dropped by 15MW due to climate and environmental changes, in order to control the system fluctuations caused by photovoltaic power generation, the multi-point distributed energy storage aggregation control system is activated to provide instantaneous power support to make up for the power shortage. First, based on the operating environment of the IEEE 3-machine 9-node system, the state space, action space and reward function of the system are defined according to the description of this patent. Here, the power generation and load power of each node in the system are used as state inputs; the charging and discharging power of the distributed energy storage is used as the action input; the negative value of the total network loss of the system is used as the reward value (the smaller the network loss, the higher the reward value); and the Q network is used as the corresponding input-output reward function.

[0168] Secondly, random sampling is used to generate arbitrary state signals and action signals. Based on the system mechanism model and parameters, deep learning training samples are calculated and generated. The size of the sample memory is 20,000 (in actual applications, training samples can be obtained from the system's historical operation data). The Q network hyperparameters are set to: 3 layers of 512 neurons, that is, h = 3 layers of fully connected hidden layers, each hidden layer consists of u = 512 neurons. The learning rate of the deep Q network is λ = 0.95, and the target network parameter ω is updated every 200 trainings.

[0169] Finally, according to the algorithm steps of this patent, the multi-point distributed energy storage system aggregation control scheme is calculated, and the adjustment instructions are issued to each distributed energy storage system. The adjustment amount allocation results of each distributed energy storage system and the network loss of the adjusted system are shown in Table 3-Table 4:

[0170] Table 3 Distributed energy storage system control scheme

[0171]

[0172]

[0173] Table 4 Power network losses

[0174]

[0175] If the coupling characteristics between multi-point distributed energy storage systems are not considered and the capacity margin of each distributed energy storage system is directly allocated in proportion, the regulation amount of each point is 2MW, 5.5MW, and 7.5MW respectively. The corresponding active power loss and network loss of each branch are shown in Table 5.

[0176] Table 5 Power network losses

[0177]

[0178] By comparing the above results, it can be seen that the network loss value at this time is significantly higher than the system network loss value after reinforcement learning optimization. The control decision-making scheme of each point distributed energy storage system based on deep reinforcement learning can fully consider the constraints such as energy storage battery capacity and energy, and adapt to changes in the system operation state, and finally realize the aggregated optimization control of multi-point distributed energy storage systems.

[0179] The present invention proposes an intelligent energy storage system control decision method based on deep reinforcement learning. By learning and accumulating operating samples, an intelligent control decision input-output model of a multi-point distributed energy storage system with a Q network structure and parameters as carriers is determined. Based on the trained Q network model and parameters, the rapid response and optimization decision of the energy storage system control under the influence of high uncertainty caused by large-scale distributed photovoltaic access to the distribution network can be achieved. The state quantities of the operating environment of the multi-point distributed energy storage system, including distributed photovoltaic power generation power, load power, distributed energy storage charge state and time-of-use electricity price, are input into a state space neural network, and the charging and discharging power of distributed energy storage at various locations is used as an action space. The comprehensive operation control comprehensive cost of the system at time t is defined as a reward function of deep reinforcement learning. The energy storage aggregation intelligent agent is trained based on the Q network (deepQ network, DQN). At the same time, in order to reduce the correlation between samples and improve the training effect, an experience replay mechanism and a parameter freezing mechanism are introduced. The mechanism takes into account the impact of current decisions on the future, can take into account the goals of multiple time periods, maximize long-term benefits and minimize the comprehensive operation control comprehensive cost of the system, and quickly and accurately adjust the power of the energy storage system.

[0180] Another aspect of the present invention provides a multi-point distributed energy storage system aggregate control intelligent decision-making device, which includes:

[0181] A model building module, used to establish a multi-point distributed energy storage control decision model with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area;

[0182] An initialization module is used to initialize the multi-point energy storage aggregation intelligent body operating environment and input the multi-point distributed energy storage control decision model into the multi-point energy storage aggregation intelligent body operating environment;

[0183] A network training module is used to train the multi-point energy storage aggregation intelligent agent in the multi-point energy storage aggregation intelligent agent operating environment based on a deep Q network to obtain a quantitative mathematical model of the Q network and its parameters;

[0184] The energy storage action strategy acquisition module is used to obtain the quantitative mathematical model and parameters of the Q network based on the Q network.

[0185] The preset distributed energy storage action space is traversed and searched to obtain the optimal multi-point distributed energy storage action strategy.

[0186] Another aspect of the present invention provides a multi-point distributed energy storage system aggregate control intelligent decision-making system, including: a computer-readable storage medium and a processor;

[0187] The computer-readable storage medium is used to store executable instructions;

[0188] The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the multi-point distributed energy storage system aggregate control intelligent decision-making method.

[0189] On the other hand, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the intelligent decision-making method for aggregated control of a multi-point distributed energy storage system.

[0190] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0191] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0192] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0193] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0194] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A multi-point distributed energy storage system aggregate control intelligent decision-making method, characterized in that: The steps include: A multi-point distributed energy storage control decision model is established with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area; Initialize the multi-point energy storage aggregation intelligent agent operating environment, and input the multi-point distributed energy storage control decision model into the multi-point energy storage aggregation intelligent agent operating environment; Based on the deep Q network, the multi-point energy storage aggregation intelligent agent in the multi-point energy storage aggregation intelligent agent operation environment is trained to obtain a quantitative mathematical model of the Q network and its parameters; Based on the quantized mathematical model of the Q network and its parameters, a traversal search is performed in the preset distributed energy storage action space to obtain the optimal multi-point distributed energy storage action strategy; The establishing of a multi-point distributed energy storage control decision model comprises: With the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area, and considering the power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints of the distributed energy storage system at each point, a multi-point distributed energy storage system control decision model is established; wherein the objective function of the multi-point distributed energy storage system control decision model is as follows: Where: f is the control cost of the multi-point distributed energy storage system in the target area; T is the time period of the control scenario, and for the transient control scenario, T = 1; C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the target area at time t; C pf (t) is the penalty cost function for exceeding the limit of the corresponding line flow, node voltage, and battery charging and discharging safety constraints at time t; The constraints of the multi-point distributed energy storage system control decision model include power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints, which are: Power balance constraints: Where: M is the number of distributed energy storage systems; N is the number of network nodes; L is the number of network lines; P j is the charging and discharging power of the distributed energy storage at the jth location; PV i is the distributed photovoltaic power generation power of the i-th node; P EX The power exchanged with the external power grid; PD i is the load power of the i-th node; P l is the power loss of the lth line; General regulation instruction constraints: Where: ΔP j is the charge and discharge power increment of the distributed energy storage at the jth location; ΔP ES It is the overall regulation instruction issued by the superior regulation system under the preset scenario; Energy storage charging and discharging power constraints: P j.min ≤|P j |≤P j,max (4) Where: P j.min is the lower limit of the charging and discharging power of the distributed energy storage system at the jth location; P j.max is the upper limit of charging and discharging power of the distributed energy storage system at the jth location; Energy storage state of charge constraints: SOC j.min ≤SOC j ≤SOC j,max (5) Where: SOC j,min is the lower limit of the state of charge of the distributed energy storage system at the jth location; SOC j,max is the upper limit of the state of charge of the distributed energy storage system at the jth location; SOC j is the charge state of the distributed energy storage system at the jth location; E j is the current energy state of the distributed energy storage system at the jth location; is the rated energy state of the distributed energy storage system at the jth location; Line flow constraints: I l <I l,max (7) Where: I l is the current of the lth line; I l,max is the thermal stability current of the lth line; Node voltage constraints: IN i.min ≤U i ≤U i,max (8) Where: U i,min is the lower limit of the voltage at the ith node; U i,max is the upper limit of the voltage at the ith node; U i is the voltage of the node at the i-th location; The multi-point energy storage aggregation agent in the multi-point energy storage aggregation agent operating environment is trained based on the deep Q network to obtain the quantized mathematical model of the Q network and its parameters, specifically including: Initialize the experience pool, which includes different distributed energy storage action strategies and their corresponding reward values; define the Q network structure and set the initial parameters of the Q network, namely: r=Q(s,a,ω0) Wherein, the Q network is a neural network with h fully connected hidden layers, each hidden layer consists of u neurons and the parameter is ω0; the input of the Q network is the operating environment state variable s of the multi-point energy storage aggregation agent and the action variable a of the multi-point distributed energy storage; the output of the Q network is the reward value r obtained based on the above Q network structure parameters and input variables, that is, the Q network is used as an approximate function of the mathematical relationship between the quantified environment state variable s, the action variable a input value and the reward value r output value; Based on the experience pool and the initial Q network, the multi-point energy storage aggregation intelligent agent in the operating environment of the multi-point energy storage aggregation intelligent agent is trained for multiple rounds, wherein the parameters in the Q network are updated once every preset number of rounds; until the number of rounds of training reaches the set maximum preset number of rounds, the training is completed to obtain the final parameters ω of the Q network, thereby obtaining the expression relationship between different distributed energy storage action strategies a and their corresponding Q network value functions r, and then obtaining the quantitative mathematical model and its parameters between the control action input and the control effect output of the multi-point distributed energy storage system with the Q network as the carrier.

2. According to claim 1, a multi-point distributed energy storage system aggregate control intelligent decision-making method is characterized in that: The initialization of the multi-point energy storage aggregation intelligent agent operating environment includes: The state signal space S of the multi-point distributed energy storage aggregation agent is defined as: S=[PV i (t),PD i (t),SOC j (t),TOU(t)] (9) Where: PV i (t) is the distributed photovoltaic power generation power of the node i at time t; PD i (t) is the load power of the node at time t; SOC j (t) is the state of charge of the distributed energy storage at the jth location at time t; TOU(t) is the time-of-use electricity price at time t; The action signal space A of deep reinforcement learning for multi-point distributed energy storage aggregation control is defined as: A=[P j (t)|g] (10) Where: P j (t) is the charge and discharge power of the distributed energy storage at the jth location at time t; g is the discretization granularity of the continuous variable, which is expressed as a sampling period; Based on the control cost of the multi-point distributed energy storage system in the target area at time t, the reward function R of deep reinforcement learning is defined as: R=C es (t)+C grid (t)+C pf (t) (11) Where: C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the region at time t; C pf (t) is the penalty cost function of the corresponding line flow, node voltage, and battery charging and discharging at time t.

3. According to claim 1, a multi-point distributed energy storage system aggregate control intelligent decision-making method is characterized in that: The multi-round training of the multi-point energy storage aggregation intelligent agent in the multi-point energy storage aggregation intelligent agent operation environment based on the experience pool and the initial Q network includes: In each round, an initial operating state s of the Q network is randomly selected; According to the ε-greedy exploration and utilization mechanism, a random number between 0 and 1 is randomly generated. If the random number is greater than ε, the distributed energy storage action is executed. Otherwise, a random action a is executed; Calculate the reward r and next state s′ after executing the distributed energy storage action a, and store (s, a, r, s′, done) in the experience pool D, where done is a Boolean variable indicating whether the new state s′ is a terminal state; A preset number k of samples are randomly extracted from the experience pool D to train the deep convolutional network, and the stochastic gradient descent method is used to update the parameters ω of the current Q network during the sample training iteration; Determine whether state s′ is a terminal state. If so, this round ends; otherwise, let s = s′ and return to the step of randomly generating a random number between 0 and 1 according to the ε-greedy exploration and utilization mechanism.

4. According to claim 3, a multi-point distributed energy storage system aggregate control intelligent decision-making method is characterized in that: The output of the quantized mathematical model of the Q network is Y=Q(s0,a|ω), where: a∈A, s0 is the initial operating state, ω is the parameter of the quantized mathematical model of the Q network, and A is the preset action space; Based on the quantized mathematical model of the Q network and its parameters, a traversal search is performed in the preset distributed energy storage action space to obtain the optimal multi-point distributed energy storage action strategy, including: Based on the quantized mathematical model of the Q network and its parameter ω, and the initial operating state s0, a traversal search is performed in the preset action space A, and the action variable a=argmax Q(s0,a|ω) corresponding to the output Y of the quantized mathematical model of the Q network reaches the maximum value is taken as the optimal multi-point distributed energy storage action strategy.

5. A multi-point distributed energy storage system aggregate control intelligent decision-making device, characterized in that: For executing the method according to any one of claims 1 to 4, the device comprises: A model building module, used to establish a multi-point distributed energy storage control decision model with the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area; An initialization module is used to initialize the multi-point energy storage aggregation intelligent body operating environment and input the multi-point distributed energy storage control decision model into the multi-point energy storage aggregation intelligent body operating environment; A network training module is used to train the multi-point energy storage aggregation intelligent agent in the multi-point energy storage aggregation intelligent agent operating environment based on a deep Q network to obtain a quantitative mathematical model of the Q network and its parameters; The energy storage action strategy acquisition module is used to perform a traversal search in a preset distributed energy storage action space based on the quantized mathematical model of the Q network and its parameters to obtain an optimal multi-point distributed energy storage action strategy.

6. A multi-point distributed energy storage system aggregate control intelligent decision-making device according to claim 5, characterized in that: The model building module builds a multi-point distributed energy storage control decision model, including: With the goal of minimizing the control cost of the multi-point distributed energy storage system in the target area, and considering the power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints of the distributed energy storage system at each point, a multi-point distributed energy storage system control decision model is established; wherein the objective function of the multi-point distributed energy storage system control decision model is as follows: Where: f is the control cost of the multi-point distributed energy storage system in the target area; T is the time period of the control scenario, and for the transient control scenario, T = 1; C es (t) is the regulation cost of each distributed energy storage at time t; C grid (t) is the power distribution network loss cost of the target area at time t; C pf (t) is the penalty cost function for exceeding the limit of the corresponding line flow, node voltage, and battery charging and discharging safety constraints at time t; The constraints of the multi-point distributed energy storage system control decision model include power balance constraints, total regulation instruction constraints, energy storage charging and discharging power constraints, energy storage charge state constraints, line flow constraints, and node voltage constraints, which are: Power balance constraints: Where: M is the number of distributed energy storage systems; N is the number of network nodes; L is the number of network lines; P j is the charging and discharging power of the distributed energy storage at the jth location; PV i is the distributed photovoltaic power generation power of the i-th node; P EX The power exchanged with the external power grid; PD i is the load power of the i-th node; P l is the power loss of the lth line; General regulation instruction constraints: Where: ΔP j is the charge and discharge power increment of the distributed energy storage at the jth location; ΔP ES It is the overall regulation instruction issued by the superior regulation system under the preset scenario; Energy storage charging and discharging power constraints: P j.min ≤|P j |≤P j,max (4) Where: P j.min is the lower limit of the charging and discharging power of the distributed energy storage system at the jth location; P j.max is the upper limit of charging and discharging power of the distributed energy storage system at the jth location; Energy storage state of charge constraints: SOC j.min ≤SOC j ≤SOC j,max (5) Where: SOC j,min is the lower limit of the state of charge of the distributed energy storage system at the jth location; SOC j,max is the upper limit of the state of charge of the distributed energy storage system at the jth location; SOC j is the charge state of the distributed energy storage system at the jth location; E j is the current energy state of the distributed energy storage system at the jth location; is the rated energy state of the distributed energy storage system at the jth location; Line flow constraints: I l <I l,max (7) Where: I l is the current of the lth line; I l,max is the thermal stability current of the lth line; Node voltage constraints: IN i.min ≤U i ≤U i,max (8) Where: U i,min is the lower limit of the voltage at the ith node; U i,max is the upper limit of the voltage at the ith node; U i is the voltage of the node at the ith location.

7. A multi-point distributed energy storage system aggregate control intelligent decision-making system, characterized in that: include: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the multi-point distributed energy storage system aggregate control intelligent decision-making method according to any one of claims 1-5.

8. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores a computer program, which, when executed by a processor, implements the intelligent decision-making method for aggregated control of a multi-point distributed energy storage system as claimed in any one of claims 1 to 5.