A reactive voltage optimization method and device for partially observable distribution network
By converting the reactive power and voltage optimization model into a partially observable Markov decision process model and using a neural network to fit the network loss, and applying the TD3 algorithm, the network loss problem in the reactive power and voltage optimization of the partially observable distribution network is solved, achieving It achieves low-cost optimization effects and improved security.
Patent Information
- Application Number
- CN202210705009.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology is difficult to effectively optimize reactive voltage in some considerable distribution networks. Especially in the absence of global data, network loss cannot be used as the optimization target, resulting in high calculation and communication costs, and traditional methods cannot ignore the network loss item. Influence.
By converting the reactive voltage optimization model into a partially observable Markov decision process model, including the network loss in the reward function, and using the neural network to fit the network loss part, applying the TD3 algorithm for training, and outputting the approximate network loss value to achieve Reactive voltage optimization.
It realizes the reactive power and voltage optimization of the distribution network under some observable conditions, reduces network losses and improves safety, and only relies on some observable data and does not require global node data.
Smart Images

Figure CN115036934B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of power system operation and control, and in particular relates to a reactive voltage optimization method and device for a partially observable distribution network. Background Art
[0002] Reactive voltage control (VVC) of distribution networks under the observable conditions of virtual power plants is achieved by generating a series of strategies to dispatch controllable resources. At present, most reactive power optimization methods assume that the system knows the complete information of the network. Voltage deviation and network loss are the optimization targets of traditional VVC problems. The traditional method is that the central controller calculates the global optimal solution based on the ideal model and transmits the optimal solution to the local controller through the local agent.
[0003] The development of today's power grid shows a trend of two-way and multiple market participants. Smart grid is an effective way to provide sustainable, economical and safe power supply. It intelligently integrates all behaviors of power generators, consumers and other users. However, due to the participation of multiple subjects in the operation of the power grid, it cannot be guaranteed that the information of each subject can be fully collected, nor can the synchronization of information be guaranteed. Most VVC algorithms rely on specific models to achieve ideal operation. The complexity of the ideal model will make the computation and communication costs very high.
[0004] In the current power system measurement, although smart meters are equipped, the function of most of the equipment is for billing rather than real-time optimization operation, so the input parameters are often insufficient in real-time optimization. Now there is an urgent need for a low-cost method for reactive power optimization of partially observable distribution networks. Many studies have focused on reinforcement learning algorithms that are independent of the exact model. In the real-time partially observable VVC problem, network losses cannot be explicitly represented due to the lack of some measurement data. For example, in the classic partially observable VVC problem based on RL algorithm, this method cannot list network losses as optimization objectives, and network losses cannot be included in the reward function. In the real-time VVC problem, the impact of network loss terms cannot be ignored, so it is necessary to study the reactive power optimization of partially observable distribution networks considering network loss terms. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a method and device for optimizing reactive voltage of a partially observable distribution network. The present invention can obtain a relatively accurate network loss estimation result in reactive voltage control of a distribution network under partially observable conditions by performing an approximate calculation of the network loss, so as to achieve the goal of reducing network loss and improving safety.
[0006] The first embodiment of the present invention provides a reactive voltage optimization method for a partially observable distribution network, comprising:
[0007] Constructing a reactive power and voltage optimization model for a part of observable distribution network with optimization objectives including minimization of network losses;
[0008] Converting the reactive voltage optimization model into a partially observable Markov decision process model, wherein the reward function of the partially observable Markov decision process model includes the network loss;
[0009] Using a neural network to fit the network loss part of the reward function, and applying the TD3 algorithm to complete the training of the neural network;
[0010] The trained neural network is used to output an approximate value of the network loss to achieve reactive voltage optimization of the distribution network.
[0011] In a specific embodiment of the present invention, the reactive voltage optimization model expression is as follows:
[0012]
[0013] stf(x,u,θ)=0
[0014] h(x,u,θ)≤0
[0015] Among them, c is the optimization objective including network loss; f and h are operation constraints; x and u are the state variable and control variable of the power grid respectively, and θ is the power grid parameter.
[0016] In a specific embodiment of the present invention, the partially observable Markov decision process model includes:
[0017] 1) The state variables in the reactive power voltage optimization model are taken as the state vector of the partially observable Markov decision process model, denoted as s∈S, where S is the state set; the state vector s at any time = (P i,t ,Q i,t ,V i,t ,t), Where P i,t ,Q i,t are the active injection power and reactive injection power of node i at time t, V i,t is the voltage amplitude of node i at time t; t is the time, N is the set of all nodes, and T is the time set;
[0018] 2) Construct an observable space o∈O, where O is a set of observable spaces;
[0019] The observable space at any time o=(P j,t ,Q j,t ,V j,t ,t), Where N′ is the set of observable nodes;
[0020] 3) The control variables in the reactive power voltage optimization model are taken as the actions of the partially observable Markov decision process model, where the action a of node i is i It is composed of the output of all controllable reactive devices at node i:
[0021] a i = {Q IBVR,j ,Q SVC,k},j∈N IBVR ,k∈N SVC
[0022] Among them, Q IBVR,j is the DG reactive power output of node j, Q SVC,k is the reactive power output of the static VAR compensator at node k, N IBVR ,N SVC are the node sets containing DG devices and the node sets containing SVC devices respectively, i∈N IBVR ∪N SVC ;
[0023] 4) Construct reward function;
[0024] Among them, the reward function expression at time t is as follows:
[0025] R t =ω1R 1,t +ω2R 2,t
[0026]
[0027]
[0028] Among them, R t is the reward function at time t, ω i is the weight coefficient of the i-th reward item, i=1,2;
[0029] The first reward item R at time t 1,t The square sum of the injected currents of all observable nodes at time t represents the network loss. The second reward item R at time t is 2,t is the voltage deviation of all observable nodes at time t, V and V are the lower and upper limits of the voltage amplitude, respectively.
[0030] In a specific embodiment of the present invention, the network loss part in the reward function is fitted using a neural network, and the expression is as follows:
[0031]
[0032] Among them, R′ 1,t For R 1,tThe approximate value of I i,t is the injected current of the ith node at time t, and F2 is the fitting function of the neural network.
[0033] In a specific embodiment of the present invention, the neural network adopts a deep Q network.
[0034] In a specific embodiment of the present invention, the application of the TD3 algorithm to complete the training of the neural network includes:
[0035] The key equation is constructed as follows:
[0036]
[0037]
[0038] Among them, t is the observable space at time t, a t is the action at time t, o t and a t The action-observable set pairs that constitute time t; is the belief state formed by the historical data of the action-observable set pair at time t, expressed as a probability distribution over the state; where, definition as follows:
[0039]
[0040] Where l is the length of the historical experience action-observable set pair, l≤t; a 0 ,o 0 are the initial value of the action and the initial value of the observable space respectively; if l≥1, t≥1, then The value at time t is the past l action-observable set pairs;
[0041] is the target action at time t, and θ i ′ are the parameters of the actor target network and the critic target network respectively; ε~clip(N(0,σ),-c,c) means that the ε noise follows a truncated normal distribution, (-c,c) is the cutoff interval, β t is the coefficient of the equation at time t;
[0042] Each time you train, you will get <o t ,a t ,r t ,o t+1 > Randomly sample M samples from the experience buffer pool D to form a training sample set For training neural networks;
[0043] The learning of the Critic network is achieved by regression, and the expression is as follows:
[0044]
[0045] where j∈{1,2};
[0046] When the approximate value of the network loss no longer changes, the algorithm converges and the neural network training is completed.
[0047] In a specific embodiment of the present invention, the method of using the trained neural network to output an approximate value of the network loss to achieve reactive voltage optimization of the distribution network includes:
[0048] Inputting the injected current of the observable node into a trained neural network, the neural network outputting an approximate value of the network loss;
[0049] Substituting the approximate value of the network loss into the reactive voltage optimization model, solving the reactive voltage optimization model, and obtaining the reactive voltage optimization result of the distribution network.
[0050] The second embodiment of the present invention provides a reactive voltage optimization device for a partially observable distribution network, comprising:
[0051] A reactive voltage optimization model building module is used to build a reactive voltage optimization model for a part of the observable distribution network, whose optimization objective includes minimizing network losses;
[0052] A Markov decision process model building module, used for converting the reactive voltage optimization model into a partially observable Markov decision process model, wherein the reward function of the partially observable Markov decision process model includes the network loss;
[0053] A neural network fitting module, used to fit the network loss part in the reward function using a neural network, and to complete the training of the neural network using a TD3 algorithm;
[0054] The reactive voltage optimization module is used to use the trained neural network to output an approximate value of the network loss to achieve reactive voltage optimization of the distribution network.
[0055] A third aspect of the present invention provides an electronic device, including:
[0056] at least one processor; and a memory communicatively coupled to the at least one processor;
[0057] The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the above-mentioned method for optimizing reactive voltage of a partially observable distribution network.
[0058] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above-mentioned method for optimizing reactive voltage of a partially observable distribution network.
[0059] The advantages and beneficial effects of the present invention are:
[0060] 1. The present invention models the partially observable VVC problem as a partially observable Markov decision process (POMDP). The traditional VVC problem cannot take the network loss term into account in the objective function when global data cannot be obtained. The present invention is based on load classification technology and uses a recurrent neural network to extract an approximate representation of network loss. The network loss is considered in the partially observable reactive power optimization of the distribution network, and the POMDP problem is solved using an improved TD3 algorithm. Only some key observable data can be used to obtain a good optimization effect without the need for global data of all nodes.
[0061] 2. The present invention is based on a data-driven approach and adopts an improved TD3 method to perform reactive optimization scheduling on a partially observable distribution network. The improved TD3 method is combined with a recurrent neural network to realize offline training based on historical data and online optimization operation based on partial measurements, and the goal of reducing network losses and improving safety can be achieved by only requiring partial observable data during the online optimization operation stage. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 The present invention is an overall flow chart of a method for optimizing reactive power voltage of a partially observable distribution network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The present invention proposes a method and device for optimizing reactive voltage of a partially observable distribution network, which will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0064] The first embodiment of the present invention provides a reactive voltage optimization method for a partially observable distribution network, comprising:
[0065] Constructing a reactive power and voltage optimization model for a part of observable distribution network with optimization objectives including minimization of network losses;
[0066] The reactive voltage optimization model is converted into a partially observable Markov decision process model, wherein the reward function of the partially observable Markov decision process model includes the network loss
[0067] Using a neural network to fit the network loss part of the reward function, and applying the TD3 algorithm to complete the training of the neural network;
[0068] The trained neural network is used to output an approximate value of the network loss to achieve reactive voltage optimization of the distribution network.
[0069] In a specific embodiment of the present invention, the reactive voltage optimization method of a partially observable distribution network has an overall process as follows: Figure 1 As shown, the following steps are included:
[0070] 1) For some observable distribution networks, a reactive power and voltage optimization model is established with the optimization objective of minimizing network losses;
[0071] Traditionally, active distributed networks can be divided into m controllable areas through global observation. After collecting local signals, the agent of each area, i.e., the regional control center, uploads them to the dispatch center. In this embodiment, the power system is regarded as an undirected graph Π(N, B) consisting of a node set N=0,...,n (n is the node number; node 0 is a node coupled to the large power grid, i.e., a reference node) and a branch set B. The power network topology can be divided into several subgraphs. The control architecture of VVC is a distributed coordinated control architecture.
[0072] The VVC problem is an optimization problem that optimizes network loss and voltage by adjusting active and reactive power output. The VVC problem is essentially an optimal power flow problem.
[0073] In this embodiment, the reactive voltage optimization model can be defined as follows:
[0074]
[0075] Wherein c is the optimization target, including network loss; in a specific embodiment of the present invention, it is voltage deviation and network loss. f and h are operation constraints, in a specific embodiment of the present invention, they are power flow constraints. x and u are the state variable and control variable of the power grid, respectively, and θ is a power grid parameter.
[0076] In this embodiment, the structural information of c(x,u), f(x,u,θ) and h(x,u,θ) is known, but θ representing the grid parameters (such as detailed topology and related load data) is unknown, and some state variables x and some control variables u are measurable (such as voltage amplitude, node injected active power and reactive power).
[0077] 2) converting the VVC model established in step 1) into a partially observable Markov decision process POMDP model, where the reward function of the POMDP model includes network loss;
[0078] In a specific embodiment of the present invention, the POMDP model is defined as follows:
[0079] 2-1) The state s∈S of POMDP is a vector, S is a state set; in this implementation, the state variables in the reactive power voltage optimization model are used as the state vector of the POMDP model. The state vector s at any time = (P i,t ,Q i,t ,V i,t ,t), Where P i,t ,Q i,t are respectively the active injection power and reactive injection power of node i at time t, V i,t is the voltage amplitude of node i at time t; t is the time, N is the set of all nodes. T is the time set.
[0080] 2-2) The observable space o∈O of POMDP is a vector, and O is the observable space set.
[0081] In this embodiment, the observable space o at any time is (P j,t ,Q j,t ,V j,t ,t), Where P j,t ,Q j,t are the active injection power and reactive injection power of node j at time t, V j,t is the voltage amplitude of node j at time t, and N′ is the set of observable nodes.
[0082] It should be noted that in the power grid, observable nodes are nodes that can be measured and are generally set manually. Any node equipped with measuring instruments can become an observable node, and the regional control center will be equipped with measuring instruments, which are generally observable nodes.
[0083] The characteristics of the node injection current are related to the node load. Therefore, it is necessary to classify the loads. Nodes connected to the same load have some similar characteristics in the injection current. In this embodiment, when classifying the loads, it is only necessary to replace all current characteristics of the nodes of this type with the injection current characteristics of the nodes connected to a load. The injection current connected to the same load contains some descriptions of the behavior of other nodes connected to the same load. Therefore, the number of observable spaces can be reduced and the search efficiency of reinforcement learning can be improved.
[0084] 2-3) In this implementation, the control variables in the reactive power voltage optimization model are used as the actions of the POMDP model, where the action a of node i is i It is composed of the output of all controllable reactive devices at node i, a i = {Q IBVR,j ,Q SVC,k},j∈N IBVR ,k∈N SVC , where Q IBVR,jis the DG reactive power output of node j, Q SVC,k is the reactive power output of the static VAR compensator (SVC) at node k, and node i can control the DG at node j and the static VAR compensator at node k. IBVR ,N SVC are the node sets containing DG devices and the node sets containing SVC devices respectively, i∈N IBVR ∪N SVC .
[0085] 2-4) In the embodiment of the present invention, under certain conditions, the optimization goal is to minimize network losses and voltage deviations.
[0086] Among them, the reward function expression at time t is as follows:
[0087] R t =ω1R 1,t +ω2R 2,t (2)
[0088]
[0089]
[0090] Among them, R t is the reward function at time t, ω i (i=1,2) is the weight coefficient of the i-th reward item.
[0091] The first reward item R at time t 1,t The square sum of the injected currents of all observable nodes at time t represents the network loss of the power grid. The second reward item R at time t is 2,t is the voltage deviation of all observable nodes at time t. V, are the lower and upper limits of the voltage amplitude respectively.
[0092] 3) Use the neural network to fit the network loss part of the reward function of the POMDP model, and apply the improved TD3 algorithm to complete the training of the neural network. The specific steps are as follows:
[0093] 3-1) Use the neural network to fit the reward item corresponding to the network loss in the reward function of the POMDP model.
[0094] In traditional VVC problems, the system uses an approximate method to calculate power loss. According to the power flow calculation, the network loss of the power grid is proportional to the square of the current:
[0095]
[0096] Among them, P loss,t is the network loss at time t, F1 is the fitting function of the neural network, are the branch current and resistance of the kth branch at time t, respectively, and B is the branch set. However, since the system is not fully observable and some data are missing, the function F1 cannot be fitted.
[0097] If the data of all nodes are known, the reward design can be the actual network loss. However, in the partially observable VVC problem, not all node data can be collected, so it is necessary to approximate the network loss. Therefore, in the embodiment of the present invention, the square sum of the current of the observable nodes is used to replace the network loss.
[0098]
[0099] Among them, I i,t is the injected current of the ith node at time t, P loss,t ′ is the approximate network loss at the time t of the fitting, and F2 is the fitting function of the new neural network.
[0100] Neural networks can fit nonlinear features well. Therefore, this embodiment applies the deep Q network (DQN) to some VVC problems.
[0101] The approximate reward function for the network loss at time t is established as:
[0102]
[0103] Among them, R′ 1,t For R 1,t Approximate value of .
[0104] In the embodiment of the present invention, the fitting function F2 is used to replace F1, thereby approximating the reward function R′ 1,t It can be defined that all parameters in F2 are selected from the observable space set O.
[0105] The present invention utilizes the square sum of injected currents of observable nodes to replace network loss. Due to the characteristics of the neural network, the embodiment of the present invention can reduce the number of variables to obtain the same optimization goal.
[0106] 3-2) Apply the improved TD3 algorithm to train the neural network.
[0107] Among them, the key equation of the deep Q network is as follows:
[0108]
[0109]
[0110] Among them, t is the observable space at time t, a t is the action at time t, o tand a t The action-observable set pairs that constitute time t; is the belief state formed by the historical data of the action-observable set pair at time t, expressed as a probability distribution over the state. as follows:
[0111]
[0112] Among them, l is the length of the historical experience action-observable set pair (l≤t), t is the time sequence number, and a 0 ,o 0 are the initial value of action and the initial value of observable space respectively; if the length of historical data l≥1 and the time length t≥1, then The value at time t is the past l pairs of action-observable sets. 0 ,o 0 Obtained by arbitrary initialization.
[0113] Target actor network According to the observable space o at time t+1 t+1 and historical data Output target action at time t The i-th Critic target network According to the target action at time t and the next moment's visible space o t+1 and historical experience pool calculate and θ i ′ are the parameters of the actor target network and the critic target network respectively; Formula (8) The symbol represents the estimated value of Q) is used to calculate the estimated value of the two actions and take the minimum value. Equation (9) adds small variance noise to the target strategy and averages the expected value of the small batch update action. ε~clip(N(0,σ),-c,c) means that the ε noise follows a truncated normal distribution, (-c,c) is the truncation interval, β t is the coefficient of the equation at time t, and its initial value is randomly initialized.
[0114] The TD3 algorithm uses two critic networks, and the learning of Q values is achieved through regression, and the smaller Q value is used for updating to obtain the maximum future reward. In an embodiment of the present invention, a neural network is combined with TD3. The neural network can be regarded as a Markov chain, which can have the memory function of information.
[0115] Each time you train, you will get <o t ,a t,r t ,o t+1 > Randomly sample M samples from the experience buffer pool D to form a training sample set For training neural networks.
[0116] It should be noted that at any time, the state set S is divided into S = {S o ,S uo}, where S o Represented as a set of observable states, S uo is represented as an unobservable state set. The transition function is then divided into and in is a state transition based on observable state-action pairs, is the expected state transition based on the unobservable state-action pair. All samples in the experience buffer pool need to be constructed through the observable state set.
[0117] During training, the critic’s Q value can be viewed as a composite function consisting of three parts: the first part is the experience extraction function Q E , the second part is the current state feature extraction function Q C , the third part is the fusion function Q F . Then the critic equation rewrites the critic function as follows:
[0118]
[0119] Where Q E Used from experience Extract some descriptions from Q C is used to obtain some knowledge from observation-action pairs, symbol It is represented as a neural network operation, and the symbol ∪ represents a composite function operation.
[0120] The Actor network μ has the same feed-forward neural structure as the Critic network:
[0121]
[0122] where μ E (Neural Network for Experience Knowledge Extraction) is used to extract knowledge from experience h t l Extract some descriptions from C (Neural Network for Knowledge Extraction from Observable Space) is used to extract some knowledge from the observation space. And μ F (Perceptual Ensemble Neural Network) is used to integrate the neural network μ E and μ C .
[0123] The learning of the two Critic networks is achieved by regression, and the formula is as follows:
[0124]
[0125] Where j∈{1,2}. Formula (13) represents the behavior value function Q corresponding to the optimal strategy learned by minimizing the loss θj .
[0126] The sign of the end of training is that the approximate value of the network loss no longer changes, indicating that the algorithm has converged and the neural network training is completed.
[0127] 4) Using the trained neural network output in step 3) to approximate network loss, so as to achieve reactive voltage optimization of the distribution network.
[0128] After the neural network is trained, it is deployed as a reactive voltage control agent to the online system; the injected current data of only some observable nodes is input into the trained network, which outputs the approximate network loss. The fitting function of F2 fits the value function network, that is, the critic network. After the optimization is completed, the approximate network loss of the entire power grid can be calculated, and the approximate network loss can be used instead of the real network loss.
[0129] After the approximate network loss is fitted, the approximate network loss is input into the model of step 1), and the reactive power optimization result can be obtained by solving the model of step 1).
[0130] In the past, in the partially observable reactive power optimization method, the network loss is related to the node data of the entire network. Therefore, in principle, it cannot be accurately expressed mathematically and cannot be included in the optimization target. The present invention innovatively utilizes the fitting properties of the neural network and approximates the network loss with the sum of the squares of the injected currents of the observable nodes. The network loss term is then included in the objective function of the reactive power optimization to achieve reactive power optimization of the partially observable distribution network.
[0131] To implement the above embodiment, a second aspect of the present invention provides a reactive voltage optimization device for a partially observable distribution network, comprising:
[0132] A reactive voltage optimization model building module is used to build a reactive voltage optimization model for a part of the observable distribution network, whose optimization objective includes minimizing network losses;
[0133] A Markov decision process model building module, used for converting the reactive voltage optimization model into a partially observable Markov decision process model, wherein the reward function of the partially observable Markov decision process model includes the network loss;
[0134] A neural network fitting module, used to fit the network loss part in the reward function using a neural network, and to complete the training of the neural network using a TD3 algorithm;
[0135] The reactive voltage optimization module is used to use the trained neural network to output an approximate value of the network loss to achieve reactive voltage optimization of the distribution network.
[0136] It should be noted that the aforementioned explanation of the embodiment of a reactive voltage optimization method for a partially observable distribution network is also applicable to a reactive voltage optimization device for a partially observable distribution network in the present embodiment, and will not be repeated here. A reactive voltage optimization device for a partially observable distribution network proposed in an embodiment of the present invention constructs a reactive voltage optimization model for the partially observable distribution network, whose optimization objective includes minimizing network losses; converts the reactive voltage optimization model into a partially observable Markov decision process model, wherein the reward function of the partially observable Markov decision process model includes the network losses; uses a neural network to fit the network loss part in the reward function, and applies the TD3 algorithm to complete the training of the neural network; uses the trained neural network to output an approximate value of the network losses to achieve reactive voltage optimization of the distribution network. Therefore, the present invention models the partially observable VVC problem into a partially observable Markov decision process (POMDP). The traditional VVC problem cannot take the network loss term into account in the objective function when the global data cannot be obtained. The present invention is based on load classification technology and uses a recurrent neural network to extract an approximate representation of the network loss. The network loss is considered in the partially observable reactive power optimization of the distribution network, and the POMDP problem is solved with an improved TD3 algorithm. Only some key observable data can be used to obtain a good optimization effect without the need for data of all global nodes.
[0137] To implement the above embodiment, a third aspect of the present invention provides an electronic device, including:
[0138] at least one processor; and a memory communicatively coupled to the at least one processor;
[0139] The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the above-mentioned reactive voltage optimization method for a partially observable power distribution network.
[0140] To implement the above-mentioned embodiment, the fourth aspect of the present invention proposes a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above-mentioned method for optimizing reactive voltage of a partially observable distribution network.
[0141] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0142] The computer readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the reactive voltage optimization method of a partially observable distribution network of the above embodiment.
[0143] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0144] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0145] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0146] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0147] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0148] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0149] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0150] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0151] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A reactive voltage optimization method for a partially observable distribution network, characterized in that: include: Constructing a reactive power and voltage optimization model for a part of observable distribution network with optimization objectives including minimization of network losses; Converting the reactive voltage optimization model into a partially observable Markov decision process model, wherein the reward function of the partially observable Markov decision process model includes the network loss; Using a neural network to fit the network loss part of the reward function, and applying the TD3 algorithm to complete the training of the neural network; Outputting an approximate value of the network loss using the trained neural network to achieve reactive voltage optimization of the distribution network; The reactive voltage optimization model expression is as follows: stf(x,u,θ)=0 h(x,u,θ)≤0 Where c is the optimization objective including network loss; f and h are operation constraints; x and u are the state variables and control variables of the power grid, respectively, and θ is the power grid parameter; The partially observable Markov decision process model includes: 1) The state variables in the reactive power voltage optimization model are taken as the state vector of the partially observable Markov decision process model, denoted as s∈S, where S is the state set; the state vector at any time Where P i,t ,Q i,t are the active injection power and reactive injection power of node i at time t, V i,t is the voltage amplitude of node i at time t; t is the time, N is the set of all nodes, and T is the time set; 2) Construct an observable space o∈O, where O is a set of observable spaces; Spectacular space at any time Where N′ is the set of observable nodes; 3) Taking the control variables in the reactive power voltage optimization model as the actions of the partially observable Markov decision process model, Among them, the action a of node i i It is composed of the output of all controllable reactive devices at node i: a i = {Q IBVR,j ,Q SVC,k },j∈N IBVR ,k∈N SVC Among them, Q IBVR,j is the DG reactive power output of node j, Q SVC,k is the reactive power output of the static VAR compensator at node k, N IBVR ,N SVC are the node sets containing DG devices and the node sets containing SVC devices respectively, i∈N IBVR ∪N SVC ; 4) Construct reward function; Among them, the reward function expression at time t is as follows: R t =ω1R 1,t +ω2R 2,t Among them, R t is the reward function at time t, ω i is the weight coefficient of the i-th reward item, i=1,2; The first reward item R at time t 1,t The square sum of the injected currents of all observable nodes at time t represents the network loss. The second reward item R at time t is 2,t is the voltage deviation of all observable nodes at time t, are the lower and upper limits of the voltage amplitude respectively; The network loss part of the reward function is fitted by a neural network, and the expression is as follows: Among them, R' 1,t For R 1,t The approximate value of I i,t is the injected current of the ith node at time t, and F2 is the fitting function of the neural network.
2. The method according to claim 1, characterized in that The neural network adopts a deep Q network.
3. The method according to claim 2, characterized in that The application of the TD3 algorithm to complete the training of the neural network includes: The key equation is constructed as follows: Among them, t is the observable space at time t, a t is the action at time t, o t and a t The action-observable set pairs that constitute time t; is the belief state formed by the historical data of the action-observable set pair at time t, expressed as a probability distribution over the state; where, definition as follows: Where l is the length of the historical experience action-observable set pair, l≤t; a 0 ,o 0 are the initial value of the action and the initial value of the observable space respectively; if l≥1, t≥1, then The value at time t is the past l action-observable set pairs; is the target action at time t, and θ i ′ are the parameters of the actor target network and the critic target network respectively; ε~clip(N(0,σ),-c,c) means that the ε noise follows a truncated normal distribution, (-c,c) is the cutoff interval, β t is the coefficient of the equation at time t; Each time you train, you will get <o t ,a t ,r t ,o t+1 > Randomly sample M samples from the experience buffer pool D to form a training sample set For training neural networks; The learning of the Critic network is achieved by regression, and the expression is as follows: where j∈{1,2}; When the approximate value of the network loss no longer changes, the algorithm converges and the neural network training is completed.
4. The method according to claim 3, characterized in that The method of using the trained neural network to output an approximate value of the network loss to achieve reactive voltage optimization of the distribution network includes: Inputting the injected current of the observable node into a trained neural network, the neural network outputting an approximate value of the network loss; Substituting the approximate value of the network loss into the reactive voltage optimization model, solving the reactive voltage optimization model, and obtaining the reactive voltage optimization result of the distribution network.
5. A reactive voltage optimization device for a partially observable distribution network implementing the method as claimed in claim 1, characterized in that: include: A reactive voltage optimization model building module is used to build a reactive voltage optimization model for a part of the observable distribution network, whose optimization objective includes minimizing network losses; A Markov decision process model building module, used for converting the reactive voltage optimization model into a partially observable Markov decision process model, wherein the reward function of the partially observable Markov decision process model includes the network loss; A neural network fitting module, used to fit the network loss part in the reward function using a neural network, and to complete the training of the neural network using a TD3 algorithm; The reactive voltage optimization module is used to use the trained neural network to output an approximate value of the network loss to achieve reactive voltage optimization of the distribution network.
6. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Power distribution network closed-loop current regulation and control method and device, computer equipment and storage medium
CN114069650A
Active power distribution network building thermal load control method and device, electronic equipment and storage medium
CN114498649A
System and method for optimizing communications using reinforcement learning
US20180082210A1
Power grid reactive voltage control model training method and system
US20210359517A1
