Power distribution network demand response method and device based on deep reinforcement learning, and medium

By constructing a distribution network load demand response model based on deep reinforcement learning methods, the problems of load demand uncertainty and grid constraints in the distribution network are solved, and the safety and stability of the load demand response and the reduction of computational complexity are achieved, providing a new basis for electric power System administration support is provided.

CN118539447APending Publication Date: 2024-08-23STATE GRID NINGXIA ELECTRIC POWER CO LTD ECO TECH RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410601835.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively handle load demand uncertainty and grid constraints in distribution networks, resulting in uncertainty in the amount of load demand reduction during peak hours, which may lead to risks of overloading or voltage deviation of transmission lines.

Method used

A method based on deep reinforcement learning is used to construct a load demand response model for each node user of the distribution network. The load demand response strategy is solved through the neural network model, taking into account power flow constraints and user comfort costs, and using a decentralized solution method to ensure system security.

Benefits of technology

It effectively solves the uncertainty problem in the load demand response, ensures the safe and stable operation of the system when adjusting the load, reduces the computational complexity, and provides support for the intelligent management and optimization of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118539447A
    Figure CN118539447A
Patent Text Reader

Abstract

The invention relates to a power distribution network demand response method based on deep reinforcement learning, and the method comprises the steps: constructing a power flow constraint which should be satisfied when the power distribution network responds to the load demand of a user of each node according to the topological structure and electrical parameters of the power distribution network; according to the load demand of the user for the electricity price and the uncertainty of the comfort level, constructing a load demand response model of the power distribution network for the user of each node; and based on a preset neural network model, solving a load demand response model of the power distribution network to the user of each node. According to the method, the load demand uncertainty and the constraint condition of the power distribution network can be comprehensively considered, and the system safety is ensured when the optimal control strategy is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power supply technology, and in particular to a distribution network demand response method, device and medium based on deep reinforcement learning. Background Art

[0002] Balancing generation and demand during peak hours is an important issue for distribution networks. Demand response schemes that use real-time electricity price schemes can encourage residential users to reduce electricity consumption during peak hours, thereby eliminating the need for backup power plants and potential power supply interruptions. Smart meters and power consumption controllers can use energy consumption and electricity price information to provide users with autonomous load scheduling plans, and use demand response strategies that consider real-time electricity prices to achieve effective potential cost savings. However, there are major challenges in implementing user demand response plans. On the one hand, the distribution network has uncertainty about the electricity price and demand of users; on the other hand, the user's load reduction comfort level is unknown on the load side, which leads to uncertainty in the amount of load demand reduction during peak hours. In addition, the power grid should coordinate the load changes of users to meet the operating constraints of the distribution network. Otherwise, the load adjustment of users may lead to the risk of overload or voltage deviation of transmission lines.

[0003] Current research on demand response can be divided into three aspects. The first direction is the offline algorithm of the day-ahead power market demand response scheme based on bidding mechanism design, forecasting technology and scenario-based methods. However, the offline algorithm requires a prediction model with historical data of uncertain parameters, which may not always work. The second direction is the model-based online algorithm for demand response: dynamic programming, ADMM, chance constrained optimization, robust optimization and stochastic programming, but this method requires solving the random process of uncertain parameters, which is difficult to implement. The third direction applies model-free methods to design online algorithms for demand response, but they do not consider the constraints imposed by the distribution network topology and operation. Summary of the invention

[0004] In view of the above problems, the purpose of the present invention is to provide a distribution network demand response method, device and medium based on deep reinforcement learning, which comprehensively considers the uncertainty of load demand and the constraints of the distribution network, and ensures system safety when obtaining the optimal control strategy.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, the present application provides a distribution network demand response method based on deep reinforcement learning, the method comprising:

[0007] According to the topological structure and electrical parameters of the distribution network, construct the power flow constraints that the distribution network should satisfy when responding to the load demand of users at each node;

[0008] According to the uncertainty of users' load demand and comfort level for electricity price, a load demand response model of distribution network to users at each node is constructed;

[0009] Based on a preset neural network model, a load demand response model of the distribution network to users at each node is solved.

[0010] In one implementation of the present application, the load demand of the user at any moment is divided into a basic load demand and an adjustable load demand when the state is a certain situation.

[0011] In one implementation of the present application, the power flow constraints include active and reactive power conservation constraints at the bus, substation bus transmission capacity constraints, voltage safety constraints, and line safety transmission capacity constraints.

[0012] In one implementation of the present application, a load demand response model of the distribution network to users at each node is constructed based on a Markov decision process in an infinite time domain.

[0013] In one implementation of the present application, in the process of constructing a load demand response model for users of each node of the distribution network, the user's electricity cost and comfort cost are defined, the expected cost under a given probability distribution strategy is defined, and a demand response strategy is formulated so that the objective function is minimized in all states.

[0014] In one implementation of the present application, a decentralized solution method is used to solve the optimal network parameters of a neural network model of the distribution network's load demand response model for users at each node.

[0015] In one implementation of the present application, in the decentralized solution method, the user load controller of each user interacts with the distribution network, and calculates the network parameters corresponding to each user load controller, and then uploads them to the distribution network, which solves the overall network parameters.

[0016] In one implementation of the present application, the distribution network uses an average value calculation method to solve the overall optimal network parameters based on the network parameters corresponding to each user load controller.

[0017] The present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the distribution network demand response method based on deep reinforcement learning described in the first aspect.

[0018] The present application also provides a distribution network demand response device based on deep reinforcement learning, comprising:

[0019] A constraint construction module, used to construct the power flow constraints that the distribution network should satisfy when responding to the load demand of users at each node according to the topological structure and electrical parameters of the distribution network;

[0020] A model building module is used to build a load demand response model of the distribution network to users at each node according to the uncertainty of the load demand and comfort level of the users for the electricity price;

[0021] The model solving module is used to solve the load demand response model of the distribution network to users at each node based on a preset neural network model.

[0022] Since the present invention adopts the above technical scheme, it has the following advantages: the application scheme of the present invention comprehensively considers the uncertainty of electricity prices, load demand and user comfort, and makes up for the current deficiencies in the research on uncertainty of load demand response; considering the data privacy problem in the process of implementing demand response, a decentralized control method of load is proposed through deep reinforcement learning technology, which effectively solves the problem of all interactive privacy of data. In addition, when constructing the load demand response model, the constraints on the safe and stable operation of the distribution network are considered, and the original model is linearized at the same time, which ensures the safe and stable operation of the system when adjusting the load and effectively reduces the computational complexity, providing strong support for the intelligent management and optimization of the power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a flow chart of a distribution network demand response method based on deep reinforcement learning provided by an embodiment of the present invention;

[0024] Figure 2 It is an algorithm flow chart of the decentralized solution method in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0026] The existing technology does not fully consider the problem of constraints and user load demand uncertainty. The technical solution of the present invention correspondingly provides a distribution network demand response method based on deep reinforcement learning, the method comprising: according to the topological structure and electrical parameters of the distribution network, constructing the flow constraints that the distribution network should meet when responding to the load demand of users at each node; according to the uncertainty of the user's load demand and comfort level for the electricity price, constructing the load demand response model of the distribution network to the users at each node; based on the preset neural network model, solving the load demand response model of the distribution network to the users at each node. The technical solution of the present invention ensures system security when obtaining the optimal control strategy.

[0027] Please refer to more drawings of the embodiments of the present invention, in which the method, device and medium provided by the present invention are further explained in more detailed embodiments of the present invention.

[0028] like Figure 1 In one aspect of the embodiments of the present application, a distribution network demand response method based on deep reinforcement learning is provided, the method comprising:

[0029] S1, constructing a power flow constraint that the distribution network should satisfy when responding to a load demand of a user at each node according to the topological structure and electrical parameters of the distribution network;

[0030] Specifically, establish distribution network demand response flow constraints, including: active and reactive power conservation constraints at the bus, substation bus transmission capacity constraints, voltage safety constraints, and line safety transmission capacity constraints;

[0031] (1) Establish the demand response flow constraint of the distribution network, and set the time t∈Γ user n∈N - Base load demand Adjustable load demand when the state is st Then, the relevant power flow constraints of the distribution network are constructed, as shown below:

[0032] (1-1) The adjustable load limit constraints are as follows:

[0033]

[0034] in, and They represent the lower bound of the adjustable load demand of user n at time t and the ideal value of load demand adjustment; the state vector s t Contains the user's status and the electricity price information at time t. The function expression is: s t =(s n,t ,n∈N - ,ρ t ), where ρt is the electricity price at time t, The user status.

[0035] (1-2) The active and reactive power conservation constraints are as follows:

[0036]

[0037]

[0038] W n (s t )=u n (s t ) n (s t ) T (4)

[0039] Among them, Y n represents the admittance matrix associated with node n; u n (s t ) means in state s t Node voltage vector v(s t ) is the vector of the real and imaginary parts, that is, u n (s t )=((Re{v(s t )}) T (Im{v(s t )}) T ) T κ n,t Indicates power factor; Y n The conjugate matrix of ; Τr represents the trace of the matrix.

[0040] (1-3) The transmission capacity of the substation busbar is limited as follows:

[0041]

[0042]

[0043] in, Indicates the upper limit of the maximum active power allowed to be transmitted on bus N; Indicates the upper limit of the minimum reactive power allowed to be transmitted by bus N; Indicates the upper limit of the minimum reactive power allowed to be transmitted by bus N.

[0044] (1-4) Voltage safety constraints are as follows:

[0045]

[0046] in, and Respectively represent the upper and lower limits of the voltage amplitude of bus N; matrix M n The coefficient matrix is ​​expressed as follows, e n is the nth basis vector for node n:

[0047]

[0048] (1-5) The line safety transmission capacity constraints are as follows:

[0049]

[0050] in, represents the upper limit of the apparent power flow on line mn; L represents the transmission line group.

[0051] S2, based on the uncertainty of users’ load demand and comfort level for electricity prices, a load demand response model of the distribution network to users at each node is constructed;

[0052] The load control problem is formulated as a Markov decision process with infinite time domain. The user fitness cost and action probability are defined, and the state of the next moment is deduced from the current system state and action.

[0053] (2) Construct a load control model considering uncertainty. The specific steps are as follows:

[0054] (2-1) Define user electricity cost and comfort cost c n (s t ,a(s t ))The expression is as follows:

[0055]

[0056]

[0057] Among them, a(s t )=(a n (s t ),n∈N) is in state s t The joint action vector of all nodes under . For state s t The actions associated with user n include controllable load requirements and the decision variable W n (s t ), c(s t ,a(s t )) is the sum of the total costs of all users.

[0058] (2-2) Define the expected cost under a given probability distribution strategy, the expression is as follows:

[0059]

[0060] Among them, V π (s) is the state s at time t t = expected function value under s; E π {·} is the expected value under a given strategy π; β∈[0,1) is the discount factor.

[0061] (2-3) Construct a user load demand response model and formulate a demand response strategy so that the objective function is minimized in all states s. There may not be a matrix W that satisfies the power flow constraints (2)-(9) n (s t ), so it is mapped to the feasible region to obtain a new value P that satisfies the distribution network constraints. c (s t ), the overall model is as follows:

[0062]

[0063] Among them, A c (s t ) is the state s at time t t The feasible domain below.

[0064] (2-4) Further define an auxiliary variable α n (s t ), the nonlinear inequality constraints in the original model are The linearization process is as follows:

[0065]

[0066] (2-5) Replacing the objective function, the original model is equivalent to:

[0067]

[0068] By solving the above convex optimization problem, for a given strategy You can get an actionable action a(s t′ ).

[0069] S3, based on a preset neural network model, solving a load demand response model of the distribution network to users at each node.

[0070] Specifically, the optimal neural network parameter decentralized solution method based on deep reinforcement learning uses a parameterized value function to process high-dimensional state space and action space. and strategies Approximation through neural networks; using the Actor-Critic framework, where the Actor neural network approximation strategy Critic Neural Network Approximation of Value Function By alternately optimizing the parameters θ and θ of the Actor and Critic networks The strategy converges to a better control action and a more accurate value function; the Critic network approximates the advantage function by calculating the temporal difference error δ and updates To minimize δ^2; the Actor network updates θ to maximize the probability of the action, making it close to the better action estimated by the Critic network. Repeat this process and gradually improve the control strategy. The specific steps are as follows:

[0071] (3-1) Load controller n calculates the time difference error of the previous moment

[0072]

[0073] (3-2) Network parameters The update function is as follows:

[0074]

[0075] Among them, η t is the update step size of Critic at time t, in the above formula The gradient at time t-1 is obtained through the back propagation method of the neural network. This gradient is used to update the parameters of the neural network to minimize the error of the value function.

[0076] (3-3) Network parameters θ n,t The update function is as follows:

[0077]

[0078] Among them, μ t To update the step size of Actor at time t, the local policy neural network is used in the above formula to perform back propagation to calculate the parameter θ n The gradient vector of . This gradient is used to update the parameters of the policy neural network to optimize the policy.

[0079] (3-4) Network parameters θ n,t , Interaction, load controller n transforms the network parameter vector and Send to the power grid, the power grid calculates the network parameters and As parameter vector and The average value of:

[0080]

[0081] (3-5) User load controller selection And upload to the power grid, the power grid solves the optimization problem (15) and determines the feasible action vector a(st ′ ), and the action vector Feedback is given to the user load controller, and the user receives the real-time cost of the action vector.

[0082] The specific flow chart of the decentralized solution method is as follows: Figure 2 shown.

[0083] In another aspect of the embodiments of the present application, a computer storage medium is also provided accordingly.

[0084] The embodiment of the present application also provides a computer-readable storage medium, the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above method. The specific implementation process will not be repeated here.

[0085] On the other hand, the embodiment of the present application further provides a distribution network demand response device based on deep reinforcement learning, including:

[0086] A constraint construction module, used to construct the power flow constraints that the distribution network should satisfy when responding to the load demand of users at each node according to the topological structure and electrical parameters of the distribution network;

[0087] A model building module is used to build a load demand response model of the distribution network to users at each node according to the uncertainty of the load demand and comfort level of the users for the electricity price;

[0088] The model solving module is used to solve the load demand response model of the distribution network to users at each node based on a preset neural network model.

[0089] The present application also provides a computer device. The computer device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the aforementioned method in the embodiment is implemented. To avoid repetition, it is not described one by one here. Alternatively, when the computer program is executed by the processor, the functions of each model / unit in the device in the embodiment are implemented. To avoid repetition, it is not described one by one here.

[0090] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a server, a cloud server, etc. The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the computer device may include more or fewer components than shown in the figure, or may combine certain components, or may include different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.

[0091] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0092] The memory may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. The memory may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Furthermore, the memory may include both an internal storage unit of the computer device and an external storage device. The memory is used to store computer programs and other programs and data required by the computer device. The memory may also be used to temporarily store data that has been output or is to be output.

[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0094] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0095] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the above-mentioned method of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0096] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A distribution network demand response method based on deep reinforcement learning, characterized in that: The method comprises: According to the topological structure and electrical parameters of the distribution network, construct the power flow constraints that the distribution network should satisfy when responding to the load demand of users at each node; According to the uncertainty of users' load demand and comfort level for electricity price, a load demand response model of distribution network to users at each node is constructed; Based on a preset neural network model, a load demand response model of the distribution network to users at each node is solved.

2. The distribution network demand response method based on deep reinforcement learning according to claim 1 is characterized in that: Set time t∈Γ to user n∈N - Base load demand With state s t Adjustable load demand when necessary 3. The distribution network demand response method based on deep reinforcement learning according to claim 3 is characterized in that: The power flow constraints include active and reactive power conservation constraints at the bus, substation bus transmission capacity constraints, voltage safety constraints, and line safety transmission capacity constraints.

4. The distribution network demand response method based on deep reinforcement learning according to claim 3 is characterized in that: Based on the infinite time domain Markov decision process, a load demand response model of the distribution network to users at each node is constructed.

5. The distribution network demand response method based on deep reinforcement learning according to claim 4 is characterized in that: In the process of constructing the load demand response model of the distribution network to the users at each node, the user's electricity cost and comfort cost are defined, the expected cost under a given probability distribution strategy is defined, and a demand response strategy is formulated to minimize the objective function in all states s.

6. The distribution network demand response method based on deep reinforcement learning according to claim 5 is characterized in that: The optimal network parameters of the neural network model of the load demand response model of the distribution network to the users of each node are solved by a decentralized solution method.

7. The distribution network demand response method based on deep reinforcement learning according to claim 6 is characterized in that: In the decentralized solution method, the user load controller of each user interacts with the distribution network, and calculates the network parameters corresponding to each user load controller, and then uploads them to the distribution network, which solves the overall network parameters.

8. The distribution network demand response method based on deep reinforcement learning according to claim 7 is characterized in that: The distribution network uses the average value calculation method to solve the overall optimal network parameters based on the network parameters corresponding to each user load controller.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the distribution network demand response method based on deep reinforcement learning as described in any one of claims 1 to 8.

10. A distribution network demand response device based on deep reinforcement learning, characterized in that: include: A constraint construction module, used to construct the power flow constraints that the distribution network should satisfy when responding to the load demand of users at each node according to the topological structure and electrical parameters of the distribution network; A model building module is used to build a load demand response model of the distribution network to users at each node according to the uncertainty of the load demand and comfort level of the users for the electricity price; The model solving module is used to solve the load demand response model of the distribution network to users at each node based on a preset neural network model.