Power distribution network SOP regulation and control method and device considering demand response, terminal equipment and storage medium
By constructing the objective function and solving it under constraint conditions, the problem of failure to effectively consider demand response in the existing technology is solved, the control effect of the SOP of the distribution network is optimized, and the total operating cost of the distribution network is reduced.
Patent Information
- Application Number
- CN202411208766.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-10-22
AI Technical Summary
The existing distribution network regulation method based on E-SOP fails to effectively consider demand response, resulting in poor regulation effects and increasing the total operating cost of the distribution network.
By obtaining the basic data of the distribution network, constructing an objective function, and combining the distribution network system operating losses, demand response costs, penalty costs for wind and light abandonment, and penalty costs for voltage over-limits, a SOP control model is constructed, and under constraint conditions Solve the problem, generate the current and node voltage of each branch line at each time, and perform SOP control.
It reduces the total operating cost of the distribution network system, optimizes the control effect of SOP, and reduces voltage deviation and loss.
Smart Images

Figure CN118826041A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of distribution network control technology, and in particular to a distribution network SOP control method, device, terminal equipment and storage medium that takes demand response into account. Background Technology
[0002] An SOP that connects to an energy storage device in the DC link of the SOP is called an E-SOP (SOP with energy storage). After connecting the energy storage device in the DC link, the E-SOP can influence or change the load distribution in the entire distribution network by controlling the power exchange of the feeders on both sides, making the operation and scheduling of the distribution network more "flexible".
[0003] With the increasingly widespread application of distributed energy resources in distribution network systems, their intermittent and random characteristics have brought problems such as voltage exceeding limits and increased losses, affecting the safe and stable operation of distribution networks. Therefore, reducing distribution network losses and voltage deviations has become a research hotspot. E-SOP, as a new type of power electronic device integrating intelligent soft switching and energy storage, can perform peak shaving and valley filling, and continuously regulate the active and reactive power of the distribution network, allowing for flexible adjustments based on the real-time operating status of the distribution network. Existing E-SOP-based control schemes for distribution network operation only consider voltage regulation and system losses, neglecting demand response, resulting in poor control effects. Therefore, a control method that considers demand response is urgently needed to further optimize the control effect of SOPs in the distribution network and reduce the total operating cost of the distribution network. Summary of the Invention
[0004] This invention provides a distribution network SOP control method, device, terminal equipment, and storage medium that takes demand response into account, which can reduce the total operating cost of the distribution network system.
[0005] An embodiment of the present invention provides a distribution network SOP control method that takes demand response into account, comprising:
[0006] Obtain basic data of the distribution network; wherein, the basic data includes: resistance of each branch line, number of load types, set of branch lines, upper limit of node voltage, lower limit of node voltage, upper limit of branch current, reactance value of each branch line, active power of renewable energy at each node at each time, active power injected into each node by E-SOP at each time, active power related to load absorption at each node at each time, reactive power of renewable energy at each node at each time, reactive power injected into each node by E-SOP at each time, reactive power related to load absorption at each node at each time, active power injected into ESS at each node at each time, single-side E-SOP capacity of each branch line, single-side ESS capacity of each branch line, DC converter capacity of each branch line, upper limit of ESS charge factor, lower limit of ESS charge factor, unit configuration capacity of E-SOP, unit configuration capacity of converter, and unit configuration capacity of ESS.
[0007] Based on the aforementioned basic data, an objective function for the SOP control model is constructed with the goal of minimizing the combined operating losses, demand response costs, penalties for wind and solar curtailment, and penalties for voltage overruns in the distribution network system. Furthermore, based on the aforementioned basic data, distribution network power flow constraints, operational safety constraints, E-SOP operational constraints, and E-SOP capacity configuration constraints for the objective function are constructed.
[0008] Under the constraints of power flow constraints, operational safety constraints, E-SOP operational constraints, and E-SOP capacity configuration constraints, the objective function is solved to generate the current of each branch line and the voltage of each node at each time when the combined operating loss, demand response cost, wind and solar curtailment penalty cost, and voltage over-limit penalty cost of the power distribution system are minimized.
[0009] The SOP (Standard Operating Procedure) in the distribution network is adjusted based on the current of each branch line and the voltage of each node at each time.
[0010] Furthermore, the objective function includes:
[0011]
[0012]
[0013]
[0014]
[0015]
[0016] Among them, C LOSS γ is the operating loss cost of the distribution network system; γ is the regularization coefficient; H is the similarity of the quasi-line load prediction curve of the k-th node; C DIS The punitive costs of abandoning solar and wind power; CV The penalty cost for exceeding voltage limits; Cost of power loss; I ij,t Let r be the current flowing through branch line ij at time t; ij L is the resistance of branch line ij; k,t P represents the load shape curve of the k-th adjustable load during time period t; k,t The load curve before the k-th load demand response; C R c is the penalty coefficient for curtailment of renewable energy. W,DIS This is the wind curtailment penalty coefficient; Let c be the wind power output at time t; PV,DIS This is the penalty coefficient for discarded light; c represents the photovoltaic output at time t; V N is the voltage over-limit penalty coefficient; D V represents the number of load types; T represents the total number of time periods; V represents the number of load types. k Node voltage; Minimum node voltage; Maximum node voltage; Ω a Let be the set of branch lines ij.
[0017] Furthermore,
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024] Among them, I ij,t X is the current flowing through branch line ij at time t; ij U represents the resistance value of branch line ij; i,t U is the voltage at node i at time t; j,t P represents the voltage at node j at time t. ij,t Q represents the active power of branch line ij at time t; ij,t Let be the reactive power of branch line ij at time t; Let be the active power of renewable energy at node i at time t; Let be the active power of E-SOP at node i at time t; μ represents the active power related to load absorption at node i at time t. i,tLet be the load fluctuation coefficient of node i at time t; Let be the reactive power of renewable energy at node i at time t; Let be the reactive power of E-SOP at node i at time t; R represents the reactive power consumed by the load at node i at time t. ij P is the equivalent resistance of branch line ij; i,t Q represents the active power injected into node i at time t. i,t P represents the reactive power injected into node i at time t. ik,t Q represents the active power emitted from node i. ik,t This represents the reactive power emitted from node i.
[0025] Furthermore, the operational safety constraints are specifically as follows:
[0026]
[0027] in, This is the lower limit of the voltage at node i; U is the upper limit of the voltage at node i; i,t Let I be the voltage at node i at time t; ij,t Let be the current flowing through branch line ij at time t; This represents the upper limit of the current in branch line ij.
[0028] Furthermore, the E-SOP operational constraints include:
[0029]
[0030]
[0031]
[0032]
[0033]
[0034] in, The active power injected into node i by E-SOP at time t; Let be the loss of E-SOP at node i at time t; Inject the active power of the ESS at node m at time t; Let be the loss coefficient of E-SOP at node i; The capacity of E-SOP on one side of branch line ij; Let be the loss coefficient of E-SOP at node j; The active power injected into node j at time t; Let E-SOP be the loss at node j at time t; The capacity of the DC converter on branch line ij; The reactive power injected into node i at time t by E-SOP; The reactive power injected into node t at time t by E-SOP; This is the lower limit of the charge factor of the ESS; This represents the upper limit of the ESS charge factor; The ESS charge at node m at time t+1; Let m be the ESS charge at time t. The active power injected into the ESS at node m at time t.
[0035] Furthermore, the E-SOP capacity configuration constraints are specifically as follows:
[0036]
[0037] in, The capacity of E-SOP on one side of branch line ij; The capacity of the DC converter on branch line ij; The capacity of the ESS on branch line ij; The number of E-SOPs configured on branch line ij; The number of DC converters configured on branch line ij; The number of ESS configurations on branch line ij; Configure capacity for each unit in the E-SOP; Configure the unit capacity for the DC converter; Configure capacity for ESS units.
[0038] Based on the above method embodiments, the present invention provides corresponding apparatus embodiments;
[0039] One embodiment of the present invention provides a distribution network SOP control device that takes demand response into account, including: a data acquisition module, a model and constraint construction module, a model solving module, and a control module;
[0040] The data acquisition module is used to acquire basic data of the distribution network. This basic data includes: resistance of each branch line, number of load types, branch line set, upper limit of node voltage, lower limit of node voltage, upper limit of branch current, reactance value of each branch line, active power of renewable energy at each node at each time, active power injected into each node by E-SOP at each time, active power related to load absorption at each node at each time, reactive power of renewable energy at each node at each time, reactive power injected into each node by E-SOP at each time, reactive power related to load absorption at each node at each time, active power injected into ESS at each node at each time, single-side E-SOP capacity of each branch line, single-side ESS capacity of each branch line, DC converter capacity of each branch line, upper limit of ESS charge factor, lower limit of ESS charge factor, unit configuration capacity of E-SOP, unit configuration capacity of converter, and unit configuration capacity of ESS.
[0041] The model and constraint construction module is used to construct the objective function of the SOP control model based on the basic data, with the goal of minimizing the combined operating losses, demand response costs, wind and solar curtailment penalty costs, and voltage overrun penalty costs of the distribution network system; and to construct the distribution network power flow constraints, operation safety constraints, E-SOP operation constraints, and E-SOP capacity configuration constraints of the objective function based on the basic data.
[0042] The model solving module is used to solve the objective function under the constraints of the power flow constraints, operation safety constraints, E-SOP operation constraints, and E-SOP capacity configuration constraints of the distribution network, and generate the current of each branch line and the voltage of each node at each time when the combined penalty costs of power grid system operation loss, demand response cost, wind and solar curtailment and voltage over-limit penalty costs are minimized.
[0043] The control module is used to control the SOP in the distribution network according to the current of each branch line and the voltage of each node at each time.
[0044] Furthermore, the objective function includes:
[0045]
[0046]
[0047]
[0048]
[0049]
[0050] Among them, C LOSSγ is the operating loss cost of the distribution network system; γ is the regularization coefficient; H is the similarity of the quasi-line load prediction curve of the k-th node; C DIS The punitive costs of abandoning solar and wind power; C V The penalty cost for exceeding voltage limits; Cost of power loss; I ij,t Let r be the current flowing through branch line ij at time t; ij L is the resistance of branch line ij; k,t P represents the load shape curve of the k-th adjustable load during time period t; k,t The load curve before the k-th load demand response; C R c is the penalty coefficient for curtailment of renewable energy. W,DIS This is the wind curtailment penalty coefficient; Let c be the wind power output at time t; PV,DIS This is the penalty coefficient for discarded light; c represents the photovoltaic output at time t; V N is the voltage over-limit penalty coefficient; D V represents the number of load types; T represents the total number of time periods; V represents the number of load types. k Node voltage; Minimum node voltage; Maximum node voltage; Ω a Let be the set of branch lines ij.
[0051] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a distribution network SOP control method that takes demand response into account as described in the above-described embodiment of the invention.
[0052] Another embodiment of the present invention provides a storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the storage medium is located to execute the demand response-based distribution network SOP control method described in the above-described embodiment of the invention.
[0053] The following benefits can be obtained by implementing the present invention:
[0054] This invention provides a distribution network SOP control method, device, terminal equipment, and storage medium that takes demand response into account. The control method acquires basic data of the distribution network, constructs an objective function for the SOP control model based on this data, and defines the corresponding distribution network power flow constraints, operational safety constraints, E-SOP operational constraints, and E-SOP capacity configuration constraints. Then, under these constraints, the objective function is solved to generate the current and node voltage of each branch line at each time point when the combined operating losses, demand response costs, wind and solar curtailment penalty costs, and voltage over-limit penalty costs of the distribution network system are minimized. Finally, the SOP in the distribution network is controlled based on the current and node voltage of each branch line at each time point. By considering demand response costs when constructing the objective function, and aiming to minimize the combined operating losses, demand response costs, wind and solar curtailment penalty costs, and voltage over-limit penalty costs of the distribution network system, the method can further reduce the total operating cost of the distribution network system compared to existing SOP control methods that do not consider demand response costs. Attached Figure Description
[0055] Figure 1 This is a flowchart illustrating a distribution network SOP control method that takes demand response into account, provided by an embodiment of the present invention.
[0056] Figure 2 This is a schematic diagram of a deep reinforcement learning framework provided in an embodiment of the present invention.
[0057] Figure 3 This is an IEEE 33-node topology diagram provided in an embodiment of the present invention.
[0058] Figure 4 This is an embodiment of the IEEE 33-node topology diagram that takes into account demand response and E-SOP.
[0059] Figure 5 This is a schematic diagram of the structure of a distribution network SOP control device that takes into account demand response, provided in an embodiment of the present invention. Detailed Implementation
[0060] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0061] like Figure 1 The image shows a distribution network SOP control method considering demand response provided by an embodiment of the present invention, comprising:
[0062] Step S1: Obtain basic data of the distribution network; wherein, the basic data includes: resistance of each branch line, number of load types, branch line set, upper limit of node voltage, lower limit of node voltage, upper limit of branch current, reactance value of each branch line, active power of renewable energy at each node at each time, active power injected into each node by E-SOP at each time, active power related to load absorption at each node at each time, reactive power of renewable energy at each node at each time, reactive power injected into each node by E-SOP at each time, reactive power related to load absorption at each node at each time, active power injected into ESS at each node at each time, single-side E-SOP capacity of each branch line, single-side ESS capacity of each branch line, DC converter capacity of each branch line, upper limit of ESS charge factor, lower limit of ESS charge factor, unit configuration capacity of E-SOP, unit configuration capacity of converter, and unit configuration capacity of ESS.
[0063] Step S2: Based on the aforementioned basic data, construct the objective function of the SOP control model with the goal of minimizing the combined operating losses, demand response costs, penalties for wind and solar curtailment, and penalties for voltage overruns in the distribution network system; and construct the distribution network power flow constraints, operational safety constraints, E-SOP operational constraints, and E-SOP capacity configuration constraints of the objective function based on the aforementioned basic data.
[0064] Step S3: Under the constraints of the power flow constraints, operation safety constraints, E-SOP operation constraints, and E-SOP capacity configuration constraints of the distribution network, solve the objective function to generate the current of each branch line and the voltage of each node at each time when the combined operating loss of the distribution network system, demand response cost, penalty cost of wind and solar curtailment, and penalty cost of voltage over-limit are minimized.
[0065] Step S4: Adjust the SOP in the distribution network according to the current of each branch line and the voltage of each node at each time.
[0066] For step S1, acquire the following basic data in the distribution network: resistance of each branch line, number of load types, branch line set, upper limit of node voltage, lower limit of node voltage, upper limit of branch current, reactance value of each branch line, active power of renewable energy at each node at each time, active power injected into each node by E-SOP at each time, active power related to load absorption at each node at each time, reactive power of renewable energy at each node at each time, reactive power injected into each node by E-SOP at each time, reactive power related to load absorption at each node at each time, active power injected into ESS at each node at each time, single-side E-SOP capacity of each branch line, single-side ESS capacity of each branch line, DC converter capacity of each branch line, upper limit of ESS charge factor, lower limit of ESS charge factor, unit configuration capacity of E-SOP, unit configuration capacity of converter, and unit configuration capacity of ESS.
[0067] For step S2, based on the basic data obtained above, with the goal of minimizing the combined operating losses, demand response costs, wind and solar curtailment penalty costs, and voltage over-limit penalty costs of the distribution network system, construct the objective function of the SOP control model, as well as the corresponding distribution network power flow constraints, operation safety constraints, E-SOP operation constraints, and E-SOP capacity configuration constraints.
[0068] Preferably, before constructing the objective function and its corresponding constraints, it is also necessary to model E-SOP and DR to assist in constructing the objective function and constraints.
[0069] A System Operating Plan (SOP) is a fully controlled power electronic device with a large DC capacitor installed at its port junction. This capacitor not only isolates faulty ports but also provides DC voltage support and ensures balanced DC power transmission. It also provides some reactive power support when balancing active power between feeders. An SOP with an Energy Saving System (ESS) is an E-SOP, created by connecting an additional ESS in parallel with the large DC capacitor side, based on the traditional SOP topology. When distributed generation (DG) is extensively integrated into the distribution network, the SOP will exchange a significant amount of active power between feeders to balance load and optimize power flow. Therefore, the losses caused by power exchange need to be considered in optimized operation, resulting in the E-SOP model shown below.
[0070]
[0071]
[0072]
[0073] Where, N T Number of SOP terminals; Let be the active power injected from SOP terminal i at time t; Let be the reactive power injected from SOP terminal i at time t; and These are the minimum and maximum reactive power that can be output from the i-th terminal of SOP, respectively; The power loss of converter i in SOP; This is the loss coefficient; Active power injected into E-SOP; This is the upper limit of the transmission capacity of E-SOP.
[0074] For DR (Load Response) modeling, this example assumes that the power company's dispatch center acts as the DR center for setting the baseline. Based on the network-wide operating parameters, it calculates the ideal load curve shape, i.e., the load baseline, and publishes it to all participating DR users day-ahead. After the dispatch center publishes the baseline day-ahead, individual DR users or load aggregators can adjust their electricity consumption behavior to track the baseline published by the grid. Furthermore, it assumes that the dispatch center has conducted DR potential assessments based on different types of loads, classifying loads into three categories: industrial loads, commercial loads, and residential loads. Different DR potential coefficients are used to characterize the response capability of each type of load. Based on this, the response range of the node load can be calculated according to the proportion of the three types of users in the adjustable load of each node. The calculation formula for the response range of the adjustable load of each node is shown below:
[0075]
[0076]
[0077]
[0078] in, This represents the maximum load value that the adjustable load of node k can reach during time period t, i.e., the upper limit of the response capability range of load node k during time period t. This represents the minimum load value that the adjustable load of node k can reach during time period t, i.e., the lower limit of the response capability range of load node k during time period t. δ represents the adjustable load forecast for node k during time period t; j P is the DR coefficient for the j-th type of load; j,k,t Let N be the load of the j-th type of load at node k during time period t, obtained from historical similar day statistics; D Number of load types; P i,k,t Let be the load amount of the i-th type of load at node k during time period t.
[0079] The response intervals of node loads relative to the predicted load curve for each time period are defined as follows:
[0080]
[0081]
[0082]
[0083]
[0084]
[0085] Among them, A k L represents the total load value of the adjustable load of the k-th node over T time periods; T is the total number of time periods; Lk,t Let be the load shape curve of the adjustable load of the k-th node during time period t; and L k,t These are the maximum and minimum boundaries of the load curve for the adjustable load of the k-th load node during time period t; Let be the load value of the adjustable load of the k-th node within T time periods.
[0086] When adjustable loads participate in DR (Diverter), they only adjust the electricity consumption behavior to change the load curve, without increasing or decreasing the electricity consumption; the total electricity consumption remains unchanged.
[0087]
[0088] The decision interval for the node load profile, considering node load response capability, is:
[0089]
[0090] At this point, DR modeling and E-SOP modeling are complete. Based on the above modeling process and results, the objective function and corresponding constraints are constructed.
[0091] To ensure that the nodal load profile is similar in shape to the load curve of the adjustable load, and to guarantee the uniqueness of the model solution profile, a regularization term characterized by the similarity of the nodal load profile is introduced into the objective function.
[0092] In a preferred embodiment, the objective function includes:
[0093]
[0094]
[0095]
[0096]
[0097]
[0098] Among them, C LOSS γ is the operating loss cost of the distribution network system; γ is the regularization coefficient; H is the similarity of the quasi-line load prediction curve of the k-th node; C DIS The punitive costs of abandoning solar and wind power; C V The penalty cost for exceeding voltage limits; Cost of power loss; I ij,t Let r be the current flowing through branch line ij at time t; ij L is the resistance of branch line ij; k,t P represents the load shape curve of the k-th adjustable load during time period t; k,tThe load curve before the k-th load demand response; C R c is the penalty coefficient for curtailment of renewable energy. W,DIS This is the wind curtailment penalty coefficient; Let c be the wind power output at time t; PV,DIS This is the penalty coefficient for discarded light; c represents the photovoltaic output at time t; V N is the voltage over-limit penalty coefficient; D V represents the number of load types; T represents the total number of time periods; V represents the number of load types. k Node voltage; Minimum node voltage; Maximum node voltage; Ω a Let be the set of branch lines ij.
[0099] In a preferred embodiment,
[0100]
[0101]
[0102]
[0103]
[0104]
[0105]
[0106] Among them, I ij,t X is the current flowing through branch line ij at time t; ij U represents the resistance value of branch line ij; i,t U is the voltage at node i at time t; j,t P represents the voltage at node j at time t. ij,t Q represents the active power of branch line ij at time t; ij,t Let be the reactive power of branch line ij at time t; Let be the active power of renewable energy at node i at time t; Let be the active power of E-SOP at node i at time t; μ represents the active power related to load absorption at node i at time t. i,t Let be the load fluctuation coefficient of node i at time t; Let be the reactive power of renewable energy at node i at time t; Let be the reactive power of E-SOP at node i at time t; R represents the reactive power consumed by the load at node i at time t. ij P is the equivalent resistance of branch line ij; i,tQ represents the active power injected into node i at time t. i,t P represents the reactive power injected into node i at time t. ik,t Q represents the active power emitted from node i. ik,t This represents the reactive power emitted from node i.
[0107] In a preferred embodiment, the operational safety constraint specifically includes:
[0108]
[0109] in, This is the lower limit of the voltage at node i; U is the upper limit of the voltage at node i; i,t Let I be the voltage at node i at time t; ij,t Let be the current flowing through branch line ij at time t; This represents the upper limit of the current in branch line ij.
[0110] In a preferred embodiment, the E-SOP operating constraints include:
[0111]
[0112]
[0113]
[0114]
[0115]
[0116] in, The active power injected into node i by E-SOP at time t; Let be the loss of E-SOP at node i at time t; Inject the active power of the ESS at node m at time t; Let be the loss coefficient of E-SOP at node i; The capacity of E-SOP on one side of branch line ij; Let be the loss coefficient of E-SOP at node j; The active power injected into node j at time t; Let E-SOP be the loss at node j at time t; The capacity of the DC converter on branch line ij; The reactive power injected into node i at time t by E-SOP; The reactive power injected into node t at time t by E-SOP; This is the lower limit of the charge factor of the ESS; This represents the upper limit of the ESS charge factor; The ESS charge at node m at time t+1; Let m be the ESS charge at time t. The active power injected into the ESS at node m at time t.
[0117] In a preferred embodiment, the E-SOP capacity configuration constraint is specifically as follows:
[0118]
[0119] in, The capacity of E-SOP on one side of branch line ij; The capacity of the DC converter on branch line ij; The capacity of the ESS on branch line ij; The number of E-SOPs configured on branch line ij; The number of DC converters configured on branch line ij; The number of ESS configurations on branch line ij; Configure capacity for each unit in the E-SOP; Configure the unit capacity for the DC converter; Configure capacity for ESS units.
[0120] For steps S3 and S4, the objective function is solved under the above constraints. In this embodiment, a deep reinforcement learning algorithm is proposed to assist in solving the above objective function. It should be noted that the deep reinforcement learning algorithm learns how to choose the best action according to different states by interacting with the environment and maximizing the accumulated reward. This problem can be regarded as a discrete-time stochastic control process, i.e., MDP, defined by the tuple (S, A, R, P). S is the state space of the agent, A is the action space, R is the reward function, and P is the state transition probability. At each time step t, the agent observes the environmental state S t As input, and generate action a t As output, the system transitions to the next state S based on the generated action. t+1 Simultaneously, it receives reward feedback r. This process is repeated until the agent reaches the terminal state. In this MDP problem, the decision-maker is the system operator, and the agent's role is equivalent to a scheduler, typically aiming to ensure system security while minimizing network overhead and operating costs.
[0121] In this embodiment, the state includes the system's voltage amplitude V. L ,t, the voltage phase angle θ of the system L ,t, the active power P of the loadload,t and reactive power demand Q load,t The state can be represented as:
[0122] S t =[V L,t θ L,t P load,t Q load,t ]
[0123] It should be noted that this state is related to the constraints of the objective function and is determined based on the aforementioned power flow constraints, operational safety constraints, E-SOP operational constraints, and E-SOP capacity configuration constraints.
[0124] Actions are the relevant decision variables, including the active power P injected by the SOP. SOP,t The reactive power Q injected by SOP SOP,t ESS regulation power P ESS,t and demand response power P DR,t The action can be represented as:
[0125] a t =[P ESS,t P SOP,t Q SOP,t P DR,t ]
[0126] It should be noted that the relevant decision variables for the actions are related to H and I in the objective function. ij,t V k Since these parameters are related, after obtaining the values of the optimal decision variables, the objective function H and I can be further solved based on these values. ij,t V k The optimal value of the objective function.
[0127] The reward serves as the optimization objective guiding the intelligent agent. This reward is constructed based on the objective function and includes reward values such as demand response cost reward r1, system operating loss reward r2, wind and solar curtailment penalty cost reward r3, and node voltage exceedance reward r4, represented as follows:
[0128] r1=-γH
[0129]
[0130]
[0131]
[0132] The final reward needs to take into account all possible factors that may affect the operation. The overall reward function is expressed as:
[0133] r = a1r1 + a2r2 + a3r3 + a4r4
[0134] Where a1, a2, a3 and a4 represent the relative weight coefficients of each reward.
[0135] After determining the state, action, and reward, the SAC algorithm is used to construct a system as follows: Figure 2 The framework shown iteratively solves for actions until the optimal action is obtained. This framework mainly consists of three parts: the agent, the environment, and the comprehensive experience replay.
[0136] It's important to note that SAC is an off-policy deep reinforcement learning algorithm based on the maximum entropy reinforcement learning framework. It combines stochastic policy optimization with deterministic policy optimization algorithms like DDPG, incorporating techniques from DDPG and TD3 while retaining the inherent randomness of the policy. The core of SAC is entropy regularization; the agent must simultaneously maximize both reward and entropy during training. Entropy is a measure of the randomness in the policy, allowing the agent to explore more or less, preventing premature convergence to local optima. Entropy can be calculated from the probability distribution of state transitions, with the corresponding expression as follows:
[0137]
[0138] Where H(P) is the entropy of the probability distribution P.
[0139] The agent receives a reward proportional to the policy entropy at each time step. The maximum entropy reinforcement learning expression is as follows:
[0140]
[0141] Where γ is the discount factor for penalizing future rewards; π(·|s t )) is the policy of the agent that is distributed from the state space to the action space; α is the temperature coefficient, which determines the importance of entropy relative to the reward value, thus ensuring the randomness of the optimal policy.
[0142] Bellman equation Q π for:
[0143]
[0144] The SAC algorithm comprises two types of neural networks: a policy network and a Q-network. SAC simultaneously learns a policy π. φ and two Q functions Q θ1 Q θ2 A Q-network parameterized by θ is used to approximate the soft Q-function Q. θ (s t ,a tThe policy network, parameterized by φ, outputs the mean and variance of the action probability distribution.
[0145] The update of the policy network can be represented as follows:
[0146]
[0147] The characteristics of SAC stochastic policy optimization dictate that its actions are not directly output by the policy network, but rather the policy is re-parameterized through neural network transformation. The action function is:
[0148]
[0149] Where, ε t It is a noise vector that follows a normal distribution. and These are the mean and variance of the resampled output.
[0150] Then, J π (φ) can be rewritten as:
[0151]
[0152] The policy gradient can be approximated by the following formula:
[0153]
[0154] Update the Q-network based on minimizing the Bellman residual:
[0155]
[0156]
[0157] The gradient is:
[0158]
[0159] The target value network performs a soft update, as shown below:
[0160] θ′←(1-r)θ′+τθ
[0161] For the bias value in SAC, all RL algorithms derived from Q-learning suffer from value estimation bias. Let's start with Q-learning, using a greedy estimation method for the target value: However, when there is an error in the target, the estimated target value will be greater than the true target value, and this overestimation bias will propagate through the Bellman equation. Therefore, this overestimation bias extends to DQN and DDPG, and existing literature has demonstrated that this theoretical overestimation occurs in practice. TD3 is an extension of DDPG that uses the minimum value between two commentators as the target value estimate, thus limiting the overestimation phenomenon. Therefore, a Clipped Double Q-Learning method for Actor-Critic is proposed:
[0162]
[0163] While using Clipped Double Q-Learning may lead to underestimation bias, the effect is far better than overestimation bias because the value of underestimation behavior does not propagate through policy updates.
[0164] Since SAC also uses Clipped Double Q-Learning to reduce overestimation bias, it inevitably suffers from underestimation bias as well, and few studies have addressed this underestimation issue in SAC. Based on these observations, a combined approach is proposed: a triple critic framework for SAC to address estimation bias. This framework combines the overestimation bias of DDPG with the underestimation bias of TD3, resulting in an estimation bias that falls between the two. Assume the soft Q-value and policy are approximated by parameterized functions Q and π, respectively, and set the Q-value of the single-critic network corresponding to DDPG as follows:
[0165]
[0166] The Q-value of the dual-Critic network corresponding to TD3 is:
[0167]
[0168] The target values for triple critics have been updated as follows:
[0169]
[0170] Where λ∈(0,1) is the weight of a single commentator.
[0171] For comprehensive experience replay processing, experience replay stores collected samples in an experience pool and randomly selects samples from it to train the network. While experience replay makes samples independent, its sampling is uniformly sampled with the same probability, ignoring the relative importance of different samples. Therefore, this invention introduces a novel priority ranking scheme that integrates priority experience replay to select better samples from the experience replay buffer. Unlike existing priority ranking methods, it does not sample data from the experience buffer based on priority, but rather selects data based on the collected data, while also considering that samples closer to the current time should have higher value and should be sampled more actively from the most recent experience.
[0172] Use ρ e To represent the recent score of an episode, all individual transformations within that episode. Their recent scores are the same, among which Currently, we are in the E episode stage. In the mini-batch update, the recent score of episode e (1≤e≤E) is:
[0173]
[0174] Where N is the capacity of the experience buffer. η e ∈(0,1) is a hyperparameter that determines the recent score of the data. ρ min For ρ e The minimum allowed value. It can be seen that newer samples have higher recent scores.
[0175] Then, use the reward value ρ of the termination state of an episode. f The priority score for an episode is the value score for all transitions within that episode. The total priority score for an episode is ρ, where ρ = ρ_{i=1}^{i- ... e +ρ f When updating the agent using mini-batch data from the experience pool, the transformations within the mini-batch need to be prioritized based on their priority scores.
[0176] The specific steps are as follows: Add the total priority score ρ to the tuple. Obtain the transition tuple Two batches are extracted from the experience pool. and Where m is the batch size. Next, the two extracted batches are merged, and a new batch G of size m is defined. The 2m transition tuples in H1 and H2 are sorted according to the priority score ρ of each transition tuple, and the first m transition tuples are selected to form a new batch G for network training.
[0177] At this point, the framework, encompassing comprehensive experience replay, environment, and agent, is complete. The agent consists of one Actor network, three Component networks, and three Target Component networks. The Actor network, based on data provided by the environment and experience pool, determines the mean and variance of the Gaussian distribution associated with each action. Samples are drawn from the policy distribution by calculating a deterministic function of state, policy parameters, and independent noise—that is, action values are confirmed through reparameter sampling. This action acts on the environment, resulting in a set of transitions (S, A, R, P), which are stored in the experience pool. Then, the network is trained by selecting mini-batches from the experience pool, repeating this process until the agent can achieve optimal decision-making, i.e., obtaining the action value under optimal reward. At this point, the active power injected into the SOP, the reactive power injected into the SOP, the regulating power of the ESS, and the demand response power under optimal reward can be obtained. Furthermore, the scheduling quantities such as H in the objective function, the current flowing through branch line ij at time t, and the node voltage can be calculated. Based on these scheduling quantities, the SOP in the distribution network is regulated, thereby reducing the overall operating cost of the distribution network.
[0178] For example, the optimization is illustrated using a typical IEEE 33-bus system of a medium-voltage 10kV line as the target. Figure 3 As shown, this line includes 33 nodes, and the E-SOP access capacity is shown in the table below:
[0179]
[0180]
[0181] Set the E-SOP access point to the line tie switch, and obtain the following: Figure 4 The diagram shown is a post-connection schematic. Nodes 8 and 14 are interconnected switches, as are nodes 7 and 20, 24 and 28, 11 and 21, and 17 and 32. Nodes 4, 14, and 29 are nodes containing demand response loads.
[0182] Three comparison schemes were set up: Scheme 1 considers only E-SOP (Electronic-Supported Operations) participation in scheduling; Scheme 2 considers only demand response participation in scheduling; Scheme 3 considers both E-SOP and demand response participation in scheduling. The operating losses, demand response costs, wind and solar curtailment penalties, and voltage limit violation penalties for the three schemes were calculated and compared. The results are shown in the table below:
[0183]
[0184] As shown in the table above, compared to optimization schemes that only consider E-SOP access and those that only consider demand response, considering both E-SOP and demand response reduces the total operating loss cost, including line and E-SOP operating loss costs, and also achieves a reduction in total cost.
[0185] Based on the above method embodiments, the present invention provides corresponding apparatus embodiments.
[0186] like Figure 5 As shown, an embodiment of the present invention provides a distribution network SOP control device that takes demand response into account, including: a data acquisition module, a model and constraint construction module, a model solving module, and a control module;
[0187] The data acquisition module is used to acquire basic data of the distribution network. This basic data includes: resistance of each branch line, number of load types, branch line set, upper limit of node voltage, lower limit of node voltage, upper limit of branch current, reactance value of each branch line, active power of renewable energy at each node at each time, active power injected into each node by E-SOP at each time, active power related to load absorption at each node at each time, reactive power of renewable energy at each node at each time, reactive power injected into each node by E-SOP at each time, reactive power related to load absorption at each node at each time, active power injected into ESS at each node at each time, single-side E-SOP capacity of each branch line, single-side ESS capacity of each branch line, DC converter capacity of each branch line, upper limit of ESS charge factor, lower limit of ESS charge factor, unit configuration capacity of E-SOP, unit configuration capacity of converter, and unit configuration capacity of ESS.
[0188] The model and constraint construction module is used to construct the objective function of the SOP control model based on the basic data, with the goal of minimizing the combined operating losses, demand response costs, wind and solar curtailment penalty costs, and voltage overrun penalty costs of the distribution network system; and to construct the distribution network power flow constraints, operation safety constraints, E-SOP operation constraints, and E-SOP capacity configuration constraints of the objective function based on the basic data.
[0189] The model solving module is used to solve the objective function under the constraints of the power flow constraints, operation safety constraints, E-SOP operation constraints, and E-SOP capacity configuration constraints of the distribution network, and generate the current of each branch line and the voltage of each node at each time when the combined penalty costs of power grid system operation loss, demand response cost, wind and solar curtailment and voltage over-limit penalty costs are minimized.
[0190] The control module is used to control the SOP in the distribution network according to the current of each branch line and the voltage of each node at each time.
[0191] In a preferred embodiment, the objective function includes:
[0192]
[0193]
[0194]
[0195]
[0196]
[0197] Among them, C LOSS γ is the operating loss cost of the distribution network system; γ is the regularization coefficient; H is the similarity of the quasi-line load prediction curve of the k-th node; C DIS The punitive costs of abandoning solar and wind power; C V The penalty cost for exceeding voltage limits; Cost of power loss; I ij,t Let r be the current flowing through branch line ij at time t; ij L is the resistance of branch line ij; k,t P represents the load shape curve of the k-th adjustable load during time period t; k,t The load curve before the k-th load demand response; C R c is the penalty coefficient for curtailment of renewable energy. W,DIS This is the wind curtailment penalty coefficient; Let c be the wind power output at time t; PV,DIS This is the penalty coefficient for discarded light; c represents the photovoltaic output at time t; V N is the voltage over-limit penalty coefficient; D V represents the number of load types; T represents the total number of time periods; V represents the number of load types. k Node voltage; Minimum node voltage; Maximum node voltage; Ω a Let be the set of branch lines ij.
[0198] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0199] Those skilled in the art will clearly understand that, for convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0200] Based on the above method embodiments, the present invention provides corresponding terminal device embodiments.
[0201] One embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a distribution network SOP control method that takes demand response into account as described in any one of the present invention.
[0202] The terminal device can be a computing device such as a desktop computer, laptop, handheld computer, or cloud server. The terminal device may include, but is not limited to, a processor and a memory.
[0203] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0204] The memory can be used to store the computer program. The processor implements various functions of the terminal device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0205] Based on the above method embodiments, the present invention provides corresponding storage medium embodiments.
[0206] One embodiment of the present invention provides a storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to execute a distribution network SOP control method that takes demand response into account, as described in any one of the present invention.
[0207] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0208] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A distribution network SOP control method taking into account demand response, characterized in that: include: Obtain basic data of the distribution network; wherein the basic data includes: resistance of each branch line, number of load types, set of branch lines, upper limit of node voltage, lower limit of node voltage, upper limit of branch current, reactance value of each branch line, active power of renewable energy of each node at each moment, active power injected into each node by E-SOP at each moment, active power related to load absorption of each node at each moment, reactive power of renewable energy of each node at each moment, reactive power injected into each node by E-SOP at each moment, reactive power related to load absorption of each node at each moment, active power injected into ESS at each node at each moment, single-side E-SOP capacity of each branch line, single-side ESS capacity of each branch line, DC converter capacity of each branch line, upper limit of ESS charge factor, lower limit of ESS charge factor, E-SOP unit configuration capacity, converter unit configuration capacity and ESS unit configuration capacity; According to the basic data, the objective function of the SOP control model is constructed with the goal of minimizing the comprehensive operation loss of the distribution network system, the demand response cost, the penalty cost of wind and solar power abandonment, and the penalty cost of voltage over-limit; and the distribution network flow constraint, operation safety constraint, E-SOP operation constraint and E-SOP capacity configuration constraint of the objective function are constructed based on the basic data; Under the constraints of the distribution network power flow constraints, operation safety constraints, E-SOP operation constraints and E-SOP capacity configuration constraints, the objective function is solved to generate the current of each branch line and the voltage of each node at each time when the distribution network system operation loss, demand response cost, penalty cost of wind and solar abandonment and penalty cost of voltage over-limit are comprehensively minimized; The SOP in the distribution network is regulated according to the current of each branch line and the voltage of each node at each moment.
2. A distribution network SOP control method taking demand response into account as claimed in claim 1, characterized in that: The objective function includes: Among them, C LOSS is the operating loss cost of the distribution network system; γ is the regularization coefficient; H is the similarity of the quasi-line load prediction load curve of the kth node; C DIS The penalty cost for abandoning solar and wind power; C V is the penalty cost for voltage exceeding the limit; is the power loss cost; I ij,t is the current flowing through the branch line ij at time t; r ij is the resistance of branch line ij; L k,t is the load shape curve of the kth adjustable load in period t; P k,t is the load curve before the kth load demand response; C R is the penalty coefficient for abandonment of renewable energy; c W,DIS is the wind abandonment penalty coefficient; is the wind power output at time t; c PV,DIS is the penalty coefficient for abandoning light; is the photovoltaic output at time t; c V N is the voltage over-limit penalty coefficient; D is the number of load types; T is the total number of time periods; V k is the node voltage; is the minimum node voltage; is the maximum node voltage; Ω a is the set of branch lines ij.
3. A distribution network SOP control method taking demand response into account as claimed in claim 2, characterized in that: The power flow constraints of the distribution network include: Among them, I ij,t is the current flowing through the branch line ij at time t; X ij is the resistance value of branch line ij; U i,t is the voltage of node i at time t; U j,t is the voltage of node j at time t; P ij,t is the active power of branch line ij at time t; Q ij,t is the reactive power of branch line ij at time t; is the active power of renewable energy at node i at time t; is the active power of E-SOP on node i at time t; is the active power related to the load consumption at node i at time t; μ i,t is the load fluctuation coefficient of node i at time t; is the reactive power of renewable energy at node i at time t; is the reactive power of E-SOP on node i at time t; is the reactive power related to the load consumption at node i at time t; R ij is the equivalent resistance of branch line ij; P i,t is the active power injected into node i at time t; Q i,t is the reactive power injected into node i at time t; P ik,t is the active power emitted by all nodes i; Q ik,t is the reactive power emitted by all nodes i.
4. A distribution network SOP control method taking demand response into account as claimed in claim 3, characterized in that: The operational safety constraints are specifically: in, is the voltage lower limit of node i; is the voltage upper limit of node i; U i,t is the voltage of node i at time t; I ij,t is the current flowing through the branch line ij at time t; is the upper limit of the current of branch line ij.
5. A distribution network SOP control method taking demand response into account as claimed in claim 4, characterized in that: The E-SOP operation constraints include: in, is the active power injected into node i by E-SOP at time t; is the loss of E-SOP at node i at time t; is the active power injected into the ESS at node m at time t; is the loss coefficient of E-SOP at node i; is the single-side E-SOP capacity on branch line ij; is the loss coefficient of E-SOP at node j; is the active power injected into node j at time t; is the loss of E-SOP at node j at time t; is the DC converter capacity on branch line ij; is the reactive power injected into node i by E-SOP at time t; is the reactive power injected into node t by E-SOP at time t; is the lower limit of ESS charging factor; is the upper limit of ESS charging factor; is the ESS power at node m at time t+1; is the ESS power at node m at time t; is the active power injected into the ESS at node m at time t.
6. A distribution network SOP control method taking demand response into account as claimed in claim 5, characterized in that: The E-SOP capacity configuration constraints are specifically: in, is the single-side E-SOP capacity on branch line ij; is the DC converter capacity on branch line ij; is the capacity of ESS on branch line ij; is the number of E-SOPs configured on branch line ij; is the number of DC converters configured on branch line ij; is the number of ESSs configured on branch line ij; Allocate capacity for E-SOP units; Configure the capacity of the DC converter unit; Configure the capacity for the units of the ESS.
7. A distribution network SOP control device taking demand response into account, characterized in that: include: Data acquisition module, model and constraint condition construction module, model solving module and control module; The data acquisition module is used to acquire basic data of the distribution network; wherein the basic data includes: resistance of each branch line, number of load types, set of branch lines, upper limit of node voltage, lower limit of node voltage, upper limit of branch current, reactance value of each branch line, active power of renewable energy of each node at each moment, active power injected into each node by E-SOP at each moment, active power related to load absorption of each node at each moment, reactive power of renewable energy of each node at each moment, reactive power injected into each node by E-SOP at each moment, reactive power related to load absorption of each node at each moment, active power injected into ESS at each node at each moment, single-side E-SOP capacity of each branch line, single-side ESS capacity of each branch line, DC converter capacity of each branch line, upper limit of ESS charge factor, lower limit of ESS charge factor, E-SOP unit configuration capacity, converter unit configuration capacity and ESS unit configuration capacity; The model and constraint condition construction module is used to construct the objective function of the SOP control model based on the basic data, with the goal of minimizing the comprehensive operation loss of the distribution network system, demand response cost, penalty cost of wind and solar abandonment, and penalty cost of voltage over-limit; and construct the distribution network flow constraint, operation safety constraint, E-SOP operation constraint and E-SOP capacity configuration constraint of the objective function based on the basic data; The model solving module is used to solve the objective function under the constraints of the distribution network power flow constraint, operation safety constraint, E-SOP operation constraint and E-SOP capacity configuration constraint, and generate the current of each branch line and each node voltage at each time when the distribution network system operation loss, demand response cost, penalty cost of wind and solar abandonment and penalty cost of voltage over-limit are comprehensively minimized; The control module is used to control the SOP in the distribution network according to the current of each branch line and the voltage of each node at each moment.
8. A distribution network SOP control device taking demand response into account as claimed in claim 7, characterized in that: The objective function includes: Among them, C LOSS is the operating loss cost of the distribution network system; γ is the regularization coefficient; H is the similarity of the quasi-line load prediction load curve of the kth node; C DIS The penalty cost for abandoning solar and wind power; C V is the penalty cost for voltage exceeding the limit; is the power loss cost; I ij,t is the current flowing through the branch line ij at time t; r ij is the resistance of branch line ij; L k,t is the load shape curve of the kth adjustable load in period t; P k,t is the load curve before the kth load demand response; C R is the penalty coefficient for abandonment of renewable energy; c W,DIS is the wind abandonment penalty coefficient; is the wind power output at time t; c PV,DIS is the penalty coefficient for abandoning light; is the photovoltaic output at time t; c V N is the voltage over-limit penalty coefficient; D is the number of load types; T is the total number of time periods; V k is the node voltage; is the minimum node voltage; is the maximum node voltage; Ω a is the set of branch lines ij.
9. A terminal device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements a distribution network SOP control method taking into account demand response as described in any one of claims 1 to 6.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute a distribution network SOP control method taking demand response into account as described in any one of claims 1 to 6.
Citation Information
Cited By
Flexible interconnected power distribution network resource scheduling method and system considering demand response
CN119209569A
Pure new energy power system regulation and control method and device considering energy storage control
CN119253766A
Power grid simulation environment scheduling optimization method and system based on reinforcement learning
CN119886450A
