A multi-period power supply restoration method for distribution network considering collaborative optimization of topology reconfiguration and fault repair

By constructing load time-varying characteristic evaluation index and SM-HPPO algorithm, the coordinated optimization of distribution network topology reconfiguration and fault repair is realized, which solves the problem of static and independent links in the recovery strategy in the existing technology, realizes dynamic matching and rapid decision-making of load demand in multiple time periods, and improves system resilience and economy.

CN123162807APending Publication Date: 2026-11-24CHINA THREE GORGES UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611263394.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing power distribution network fault recovery technologies, recovery strategies are mostly designed for static scenarios in a single time period, without taking into account the time-varying characteristics of load demand. Mathematical optimization methods are inefficient in solving high-dimensional reconstruction problems. Network reconstruction and fault repair are separated into independent links, lacking coordinated optimization, resulting in insufficient system recovery resilience and significant economic losses.

Method used

A resilience quantification evaluation index based on load time-varying characteristics is constructed. By integrating the Hybrid Proximal Policy Optimization (SM-HPPO) algorithm, which combines security masking and multi-objective random network distillation, the coordinated optimization of topology reconfiguration and fault repair is achieved. The Hybrid Proximal Policy Optimization algorithm is used to solve the optimal reconfiguration scheme, ensuring fast decision-making for discrete switching and continuous load shedding under the hard constraints of radial topology.

Benefits of technology

Accurately characterize the dynamic differences in load demand throughout the recovery process, prioritize high-value loads, quickly restore system performance to normal levels, reduce power loss and overall reconstruction costs, and improve system recovery resilience and decision-making efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123162807A_ABST
    Figure CN123162807A_ABST
Patent Text Reader

Abstract

This invention discloses a multi-period power supply restoration method for distribution networks that considers the coordinated optimization of topology reconfiguration and fault repair, belonging to the field of distribution network fault recovery. The method includes: considering differentiated load demand, establishing distribution network performance curves based on load time-varying characteristics, and constructing a resilience quantitative evaluation index; constructing a coordinated optimization model for the distribution network reconfiguration process and the fault repair process with the objectives of minimizing the overall reconfiguration cost and maximizing system performance improvement; constructing the distribution network reconfiguration process as a Markov decision process in a hybrid action space, and using a hybrid near-end policy optimization algorithm that integrates a security masking mechanism and a multi-objective stochastic network distillation mechanism to solve for the optimal reconfiguration scheme; training an agent to output the optimal reconfiguration scheme for the distribution network in multiple time periods. This invention can accurately characterize the dynamic changes in load demand during the recovery process, strictly ensure radial operation constraints, realize rolling coordination and rapid online decision-making between network reconfiguration and fault repair, and significantly improve system recovery resilience while reducing economic losses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power distribution network fault recovery technology, and specifically to a multi-period power supply recovery method for power distribution networks that takes into account the coordinated optimization of topology reconfiguration and fault repair. Background Technology

[0002] As the direct bridge connecting the power system and end users, the distribution network is a crucial link in realizing power resource transmission and ensuring reliable power supply. However, in recent years, extreme disasters such as typhoons and ice storms have become increasingly common, leading to distribution network line faults and large-scale power outages that severely disrupt normal social production and daily life. To characterize the power grid's ability to cope with extreme faults throughout the entire process, the concept of "resilience" has been introduced into the power field to assess the grid's ability to withstand, survive, and recover under extreme disturbances. Resilience can be defined as the grid's ability to coordinate internal resources, reduce its own losses, and restore to normal operation under fault conditions. The distribution network is at the end of the power grid, directly supplying power to users. Researching its resilience enhancement technologies under fault scenarios is of significant practical importance for ensuring continuous power supply to loads and improving the grid's post-disaster self-healing capabilities.

[0003] Currently, existing technologies for power restoration after distribution network faults mainly focus on distributed resource scheduling, network topology reconstruction, fault repair, and recovery model solving. However, they still have the following shortcomings: Reference [1] utilizes various flexible resources and interconnection switches to realize post-disaster load transfer, which effectively enhances system resilience while increasing the load recovery amount. However, this method ignores the changes in distributed power output and load demand over time; in actual extreme disasters, the power outage duration is long, and considering only the load recovery strategy under a single time period makes it difficult to characterize the dynamic differences in load demand throughout the recovery process, resulting in poor applicability in actual engineering.

[0004] Reference [2] discloses a power supply restoration method and system for distribution networks considering network reconfiguration. It comprehensively uses three methods to restore power supply: first, it searches for off-grid nodes and counts recoverable resources based on the correlation matrix of the distribution network's undirected graph; second, it establishes a node voltage optimization model that simulates closed-loop operation to determine the restoration topology; and finally, it establishes a load restoration model that considers load grading to optimize the restoration scheme. This method reduces the situation where the power supply restoration range is narrowed due to unreasonable topology. However, its restoration decision is based on the static scenario after the fault occurs and does not consider the dynamic improvement effect of fault repair on the network state. The restoration process is still a single-stage optimization and cannot adapt to the continuous evolution of the system state during multi-time period restoration.

[0005] Reference [3] considers the random changes in power supply and load, and transforms the constructed stochastic optimization model of flexible interconnected distribution network into a deterministic mixed integer second-order cone programming model for solution. Although this type of mathematical optimization method can effectively solve small-scale reconfiguration problems, it often faces problems such as complex modeling and low solution efficiency when dealing with high-dimensional mixed integer nonlinear reconfiguration problems in large-scale distribution networks, making it difficult to meet the needs of online rapid decision-making in fault recovery scenarios.

[0006] Reference [4] developed a network reconstruction method based on multi-agent deep reinforcement learning for AC / DC hybrid distribution networks under extreme events, which achieved rapid recovery of critical loads. However, this method only relies on topology adjustment for load transfer and does not consider the repair of faulty lines; the continued existence of line faults makes it impossible for the system performance to fully recover to the normal level before the fault, and there is still room for improvement in system resilience.

[0007] Reference [5] constructed a two-stage power supply restoration model after a disaster. By implementing switching operations and load reduction during the emergency phase and coordinating with fault repair to accelerate load restoration, the power supply capacity of the damaged power grid was rapidly rebuilt. However, this method treats network reconstruction and fault repair as two independent steps to be executed sequentially. There is a lack of rolling interaction and collaborative optimization between the two. The reconstruction decision cannot take advantage of the topology improvement brought about by the repair, and the repair sequence is not linked to the load restoration benefits after reconstruction. The potential for the two to work together to improve system resilience still needs to be further explored.

[0008] In summary, existing power restoration technologies for distribution networks generally suffer from the following problems: First, restoration strategies are mostly designed for static scenarios within a single time period, failing to consider the time-varying characteristics of load demand and thus unable to reflect the dynamic differences in power supply demand among various loads throughout the restoration process. Second, mathematical optimization methods are inefficient in solving high-dimensional mixed-integer nonlinear reconstruction problems, making it difficult to meet the requirements for rapid online decision-making. Third, network reconstruction and fault repair are often separated into independent processes, lacking a collaborative optimization mechanism for their rolling interaction. Furthermore, existing reinforcement learning-based reconstruction methods struggle to balance the hard constraints of radial topology with the mixed decision-making processes of discrete switching actions and continuous load shedding actions. Therefore, how to achieve collaborative optimization of topology reconstruction and fault repair during multi-time period restoration processes, in order to significantly improve system resilience while reducing economic losses, is a pressing technical problem that needs to be solved in this field.

[0009] Cited references: Reference [1]: Ge Yanfeng, Qiu Yu, Zhang Yunxu, et al. Disaster resilience enhancement strategy for smart distribution network in industrial parks that takes into account multiple flexible resources [J]. Power System Protection and Control, 2024, 52(17): 139-149. Reference [2]: Wuhan University. A power supply restoration method and system for distribution network considering network reconfiguration: China, CN114665479A[P]. Application date: May 24, 2022, Publication date: June 24, 2022. Inventors: Mao Zhipeng, Huang Zhiqiang, Sun Jianjun, Zha Xiaoming, Huang Meng. Literature [3]: Y. Zhao, W. Xiong, X. Yuan, and X. Zhou, "A fault recovery strategy of flexible interconnected distribution network with SOP flexible closed-loop operation," International Journal of Electrical Power&EnergySystems, vol. 142, Nov. 2022, Art. no. 108360. Literature [4]: ​​T. Wu, J. Wang, X. Lu, and Y. Du, "AC / DC hybrid distribution network reconfiguration with microgrid formation using multi-agent softactor-ritic," Applied Energy, vol. 307, Feb. 2022, Art. no. 118189. Reference [5]: Li Minghao, Yang Qiming, Li Gengfeng, et al. Two-stage power supply restoration strategy for elastic distribution network based on the coordination of multiple distributed resources in typhoon scenario [J]. High Voltage Engineering, 2024, 50(01): 93-104. Summary of the Invention Existing distribution network fault recovery technologies often address the problem that recovery strategies are primarily designed for static scenarios within a single time period, neglecting the time-varying characteristics of load demand. Mathematical optimization methods for solving high-dimensional reconfiguration problems are inefficient, and network reconfiguration and fault repair are treated as independent processes lacking coordinated optimization, leading to insufficient system resilience and significant economic losses. This invention provides a multi-time period power supply recovery method for distribution networks that considers the coordinated optimization of topology reconfiguration and fault repair. It constructs a resilience quantification evaluation index based on load time-varying characteristics and a reconfiguration-fault repair coordinated optimization model, and employs a Hybrid Near-End Policy Optimization (SM-HPPO) algorithm that integrates security masking and multi-objective stochastic network distillation to obtain the optimal reconfiguration and repair strategies across multiple time periods. This method can achieve rapid hybrid decision-making for discrete switching and continuous load shedding while ensuring the hard constraints of the radial topology, better guaranteeing continuous power supply to more critical loads in different time periods. It significantly improves system resilience while reducing power loss and overall reconfiguration costs.

[0010] The technical solution adopted in this invention is as follows: A method for multi-time period power supply restoration in distribution networks that considers the coordinated optimization of topology reconfiguration and fault repair includes the following steps: S1: Taking into account the differentiated load demand, establish the distribution network performance curve based on the time-varying characteristics of the load, and construct a quantitative assessment index of resilience based on the distribution network performance curve; S2: To minimize the overall cost of reconfiguration and maximize the improvement of system performance, a collaborative optimization model for the distribution network reconfiguration process and the fault repair process is constructed. S3: The distribution network reconfiguration process is constructed as a Markov decision process in a hybrid action space. The optimal reconfiguration scheme is solved by a hybrid near-end policy optimization algorithm that integrates a security masking mechanism and a multi-objective random network distillation mechanism. S4: Train the agent based on the hybrid near-end strategy optimization algorithm and output the optimal reconfiguration scheme for the distribution network under multiple time periods.

[0011] S1 includes: S1.1: Calculate the time-varying demand factor for load based on the actual and maximum load demand of each node: ; In the formula: Number the nodes. Number the time period; This is the time-varying demand factor for load; This represents the actual load demand. This represents the maximum load demand. The maximum demand coefficient is set to 10. S1.2: Based on the time-varying load demand coefficient, construct the normal performance curve and the actual performance curve under fault conditions: ; ; In the formula: , These are the normal performance curve and the actual performance curve under fault conditions, respectively. A set of nodes; This is a power supply status variable for the load, and its value can be 0 or 1. For load importance level coefficient; This represents the load recovery amount.

[0012] S1 further includes: S1.3: Based on the normal performance curve and the actual performance curve under the fault, calculate the load power supply recovery level index: ; In the formula: The indicator of the level of power supply restoration to the load; , These represent the start and end times of the fault recovery phase assessment, respectively. S1.4: Based on the difference between the normal performance curve and the actual performance curve under the aforementioned fault, calculate the average load deficit level index: ; In the formula: The average load deficit level indicator; the load power supply recovery level indicator and the average load deficit level indicator together constitute a resilience quantitative assessment indicator.

[0013] In S2, the distribution network reconfiguration process and the fault repair process are coordinated through rolling optimization, including the following steps: S2.1: Based on the initial system state after the fault disturbance, the state of the sectionalizing switches and tie switches is adjusted through the network reconfiguration module to update the distribution network topology; S2.2: Control the emergency repair team to perform repair work under the current network structure and update the network line status after the repair; S2.3: Input the updated system status into the network reconstruction module to obtain a new round of reconstruction scheme; S2.4: Determine whether the system performance value under the new round of reconstruction scheme is better than the system performance value before the reconstruction operation. If yes, execute S2.5; otherwise, return to S2.2. S2.5: Execute the refactoring strategy corresponding to the new round of refactoring scheme and update the distribution network topology; S2.6: Determine if there are still unrepaired faults. If yes, return to S2.2; otherwise, execute S2.7. S2.7: End the rolling optimization and obtain the optimal reconstruction strategy and optimal emergency repair strategy for the entire recovery process.

[0014] In S2, the network reconfiguration model corresponding to the distribution network reconfiguration process aims to minimize the overall reconfiguration cost, and the objective function is: ; ; ; In the formula: Number the branch roads; To restructure overall costs; , These are the costs of load loss and network loss, respectively. , These are the weighting coefficients corresponding to the cost of load loss and the cost of network loss, respectively. , These are the load power loss cost coefficient and the network loss cost coefficient, respectively. For branch set; , These are the active power and reactive power on the branch, respectively; This refers to the voltage at the end of the branch. This is the branch resistance.

[0015] In S2, the fault repair model corresponding to the fault repair process aims to maximize the recovery of system performance, and the objective function is: ; In the formula: To restore system performance; This is a decision variable for emergency repairs, taking a value of 0 or 1, used to characterize whether to perform emergency repairs on faulty components affecting the power supply to the corresponding node.

[0016] In S3, the distribution network reconfiguration process is constructed as a Markov decision process, including: S3.1: Construct a state space, which includes the power injection amount and voltage amplitude of each node representing the time-series data, as well as the real-time on / off states of the segmented switches and tie switches representing the topology structure: ; In the formula: This refers to the system status; Number the switches; , These are the active power outputs of wind turbines and photovoltaic power, respectively. , These are the energy storage charging power and the energy storage discharging power, respectively. For energy storage capacity; This refers to the node voltage amplitude. The reconfigured switch state; S3.2: Based on the aforementioned state space, construct a hybrid action space consisting of discrete switching actions and continuous load reduction actions: ; ; ; In the formula: This is a mixed action; , These are the discrete action space and the continuous action space, respectively. This is a flag indicating a change in switch state, with a value of 0 or 1. A value of 1 indicates a change in switch state, while a value of 0 indicates that the switch state remains unchanged. Number of switches; This refers to the amount of material removed during the load process. The total number of nodes; S3.3: Based on the aforementioned hybrid action space, a reward function is constructed by combining the objective function and constraints of the network reconstruction model: ; In the formula: Rewards from the external environment; This represents the penalty value for an agent that violates the constraints.

[0017] In step S3, the Actor network of the hybrid proximal policy optimization algorithm adopts a decoupled multi-branch network architecture, and the process of generating hybrid actions based on the hybrid action space includes: S3.4: Change the state The input is a multi-layer shared fully connected network, which is then processed by the ReLU activation function to extract high-dimensional features and perform nonlinear transformations to obtain the encoded state information. S3.5: Input the encoded state information into the continuous action branch, and output two shape parameters of the Beta distribution through a fully connected layer and the Softplus activation function to obtain the continuous action policy probability distribution function, and sample the continuous load shedding action from it: ; In the formula: These are the parameters of the Actor network; , These are the first and second shape parameters of the Beta distribution, respectively. Let be the probability distribution function of the continuous action strategy; This is a continuous load shedding operation; S3.6: Input the encoded state information into the discrete action branch, generate the switching action probability through the fully connected layer with the softmax activation function, obtain the discrete action strategy probability distribution function, and sample the discrete switching action from it; combine the continuous load shedding action with the discrete switching action to obtain the hybrid action: ; In the formula: The probability of switching action; Let be the probability distribution function of the discrete action strategy; This is for discrete switch operation.

[0018] S3 further includes: S3.7: Obtain the unnormalized score of each switching action output by the discrete action branch, determine whether the topology corresponding to each switching action satisfies the radial running constraint, and construct a mask function: ; In the formula: The unnormalized score for the switching action; For switch action The corresponding mask value; S3.8: Update the unnormalized score of each switch action based on the mask function, and set the score of illegal actions to the minimum value: ; In the formula: The score after masking; It is a maximal positive real number; S3.9: Input the masked score into the softmax function to calculate the action probability distribution, so that the selection probability of illegal actions is zero. The agent samples discrete switching actions from the legal actions, combines them to obtain mixed actions, and then executes them to transfer the system to a new state. S3.10: Building A target network with fixed parameters and a prediction network with real-time updated parameters, wherein the first parameter is a target network with fixed parameters and the second parameter is a prediction network with real-time updated parameters. The target network is represented as: The prediction network is represented as ; In the formula: The number of target networks; Number the target network; The new state obtained after performing a mixed action; For the first The parameters of the target network are obtained through random initialization and remain unchanged during training; To predict the network parameters, they are dynamically updated during training; S3.11: Input the new state into the prediction network and... A target network, based on the output of the prediction network and The intrinsic reward is calculated by finding the error between the mean outputs of the target networks. ; In the formula: As an intrinsic reward; S3.12: The intrinsic reward and the external environmental reward are weighted and summed to obtain the reshaping reward: ; ; In the formula: To reshape the rewards; As a weighting factor; These are the initial weights; This is the attenuation control factor; This is the current training round number; This represents the total number of training rounds.

[0019] S4 includes: S4.1: Initialize Actor network parameters Critic network parameters and predict network parameters and initialize the experience pool; S4.2: At the beginning of each training round, obtain the initial state of the distribution network after a fault occurs; S4.3: In the current state, the Actor network outputs a Bernoulli distribution for discrete switching actions and a Beta distribution for continuous load shedding actions, respectively. The two distributions are sampled and combined to obtain the mixed action for the current time period. S4.4: Execute the hybrid action to complete the topology reconstruction, solve the optimal fault repair sequence according to the reconstructed topology state and execute the repair, the system transfers to the new state and obtains external environmental rewards; S4.5: Calculate the intrinsic reward based on the new state, superimpose the intrinsic reward with the external environment reward to obtain the reshaping reward, and store the experience sample containing the current state, the hybrid action, the reshaping reward and the new state into the experience pool; S4.6: Determine if the network update condition has been met. If not, update the status and return to S4.3; if met, extract experience samples from the experience pool and use the Critic network to calculate the time-series difference error. Then calculate the advantage function. , And according to the loss function Update the Critic network parameters; where: This refers to timing difference error; The dominant function; Let be the loss function of the Critic network; S4.7: Calculate the cutoff loss function of the Actor network based on the advantage function and the ratio of the new and old strategies. The Actor network parameters are updated accordingly, and after the update is complete, the new Actor network parameters are hard-updated to the old Actor network; where: This is the truncation loss function for the Actor network; S4.8: Determine whether the current training round has reached the total number of training rounds. If not, reset the environment state and return to S4.2; if it has, output the optimal reconfiguration scheme for the distribution network under multiple time periods.

[0020] This invention discloses a low-frequency load shedding method for isolated microgrids based on graph deep reinforcement learning, with the following technical advantages: 1) Accurately depict the dynamic differences in load demand throughout the recovery process to ensure priority protection for high-value loads: To address the issue that existing recovery strategies only address static scenarios within a single time period and fail to reflect the dynamic changes in load demand throughout the recovery cycle, this invention considers the time-varying characteristics and differentiated demands of different types of loads. It establishes normal performance curves and actual performance curves under fault conditions for the distribution network, and constructs a resilience quantitative assessment index based on these curves. This enables recovery plans to dynamically match power supply demand according to time periods and load importance levels, thereby prioritizing continuous power supply to critical loads throughout the entire post-disaster recovery process and improving the accuracy of resilience assessment and recovery decisions.

[0021] 2) Achieve rolling coordination between topology reconfiguration and fault repair to accelerate system performance recovery to normal levels: To address the problems of existing technologies that separate network reconstruction and fault repair into independent processes, and the inability to repair damaged lines solely through topology adjustments, this invention constructs a rolling collaborative optimization mechanism for reconstruction and fault repair. Reconstruction provides an optimized network structure for fault repair operations, while fault repair extends the power supply path for reconstruction. The two processes interact and support each other, enabling the system performance to recover to its pre-fault normal operating level more quickly. This fundamentally overcomes the drawback of forced long-term derating operation under pure topology restoration methods, significantly improving the system's resilience.

[0022] 3) Achieve rapid online decision-making for recovery strategies, overcoming the low efficiency of solving high-dimensional reconstruction problems: To address the challenges of mathematical optimization methods in handling large-scale distribution network high-dimensional mixed-integer nonlinear reconfiguration problems, which suffer from complex modeling, time-consuming solutions, and difficulty in meeting online decision-making requirements, this invention constructs the reconfiguration process as a Markov decision process and employs a deep reinforcement learning algorithm for solution. Through offline training and online application, the intelligent agent can output reconfiguration schemes in real time after a fault occurs, significantly improving the dynamic response speed and decision-making efficiency of fault recovery.

[0023] 4) Achieve heterogeneous collaborative decision-making between discrete switching actions and continuous load shedding actions: To address the problem that traditional policy gradient algorithms have a single action output format and cannot adapt to multi-dimensional heterogeneous decision-making tasks, this invention adopts a decoupled multi-branch network architecture. It models and coordinates discrete switching actions and continuous load shedding actions separately, and uses an adaptive distributed sampling method for bounded continuous actions. This overcomes the truncation bias of traditional sampling distribution in the bounded action space, enabling recovery decisions to simultaneously cover topology adjustment and precise load reduction, resulting in more complete decision dimensions and more accurate action output.

[0024] 5) Strictly ensure radial operational constraints to improve the safety and training efficiency of the reconstruction scheme: To address the issue that reinforcement learning-based reconstruction methods cannot strictly satisfy the radial operation constraints of distribution networks during training, this invention uses a security masking mechanism to transform topological hard constraints from ex-post penalties to ex-ante exclusion. This shields illegal actions during the action selection phase, ensuring that every output reconstruction scheme meets safe operation requirements. Simultaneously, it reduces ineffective exploration of the agent in the illegal action space, improving the stability and training efficiency of policy learning.

[0025] 6) Enhance the agent's exploration capabilities to avoid getting trapped in local optima while also considering the economics of recovery: To address the issues of sparse reward signals and agents' susceptibility to local optima under complex constraints, this invention employs a multi-objective stochastic network distillation mechanism to generate intrinsic exploration rewards based on state novelty. These rewards are adaptively decayed as the training process progresses, incentivizing exploration in the early stages and stabilizing utilization in the later stages. This mitigates the impact of single-objective network estimation bias on convergence, making the learned reconstruction strategy closer to the global optimum. Simultaneously, the reconstruction decision considers both power outage costs and network losses, improving load recovery levels while reducing economic losses during the recovery process. Attached Figure Description

[0026] The present invention will be further described below with reference to the accompanying drawings and examples; Figure 1 This is a flowchart illustrating a multi-period power supply restoration method for distribution networks that considers the coordinated optimization of topology reconfiguration and fault repair, as provided in an embodiment of the present invention.

[0027] Figure 2This is a schematic diagram of the performance evolution curve of a distribution network under extreme disturbances, provided in an embodiment of the present invention.

[0028] Figure 3 This is a schematic diagram of the framework of the Hybrid Proximal Policy Optimization (SM-HPPO) algorithm, which integrates a security masking mechanism and a multi-objective random network distillation mechanism, provided in an embodiment of the present invention.

[0029] Figure 4 This is a comparison chart of the changes in distribution network performance under different power restoration schemes provided in the embodiments of the present invention. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0031] (I) Overall Description of the Technical Solution: The distribution network is at the end of the power system, directly responsible for supplying power to users. Line faults caused by extreme disasters often lead to power outages in parts of the distribution network. Power restoration after a fault requires addressing two levels of issues simultaneously: first, how to dynamically adjust the distribution network topology through network reconfiguration while the faulty components are still unrepaired, utilizing distributed power sources, energy storage, and other internal resources to provide transfer paths for the out-of-power loads; second, how to arrange the fault repair sequence to fundamentally eliminate the impact of the fault and restore system performance to pre-fault levels. The former determines the real-time power supply capability during the restoration process, while the latter determines the final completion level of the restoration process, and the two influence each other temporally. Repairing the lines expands the feasible topology space for reconfiguration, and the reconfigured distribution network topology affects the load restoration efficiency of repairs in different time periods. Furthermore, the restoration process has a significant time span, and the power supply demand of various loads varies dynamically across different time periods, making static restoration strategies for a single time period unsuitable for actual restoration scenarios. Based on the above analysis, this invention proposes a multi-time period power restoration method for distribution networks that considers the coordinated optimization of topology reconfiguration and fault repair.

[0032] Figure 1 This is a flowchart illustrating a multi-period power supply restoration method for distribution networks that considers coordinated optimization of topology reconfiguration and fault repair, provided in an embodiment of the present invention. Figure 1 As shown, the method includes the following steps: S1: Taking into account the differentiated load demand, establish the distribution network performance curve based on the time-varying characteristics of the load, and construct a resilience quantitative evaluation index based on the distribution network performance curve; S2: To minimize the overall cost of reconfiguration and maximize the improvement of system performance, a collaborative optimization model for the distribution network reconfiguration process and the fault repair process is constructed. S3: The distribution network reconfiguration process is constructed as a Markov decision process in a hybrid action space. The optimal reconfiguration scheme is solved by a hybrid near-end policy optimization algorithm that integrates a security masking mechanism and a multi-objective random network distillation mechanism. S4: Train the agent based on the hybrid near-end strategy optimization algorithm and output the optimal reconfiguration scheme for the distribution network under multiple time periods.

[0033] The specific implementation process of each step is described in detail below.

[0034] (II) Step S1: Establish distribution network performance curves and construct resilience quantitative assessment indicators: The resilience of a distribution network during the recovery phase is mainly reflected in the system's state recovery capability, that is, the system's ability to quickly recover to a normal state through internal resource optimization after suffering extreme disturbances. Considering that the recovery process has a significant time span and the recovery requirements of various loads differ in different time periods, this embodiment takes into account the time-varying characteristics of different types of loads and constructs a system performance index based on weighted power supply demand to reflect the dynamic changes in actual load demand during the recovery period.

[0035] Figure 2 This is a schematic diagram illustrating the performance evolution curves of a distribution network under extreme disturbances, provided in an embodiment of the present invention. Figure 2 As shown, and These are the normal performance curve and the actual performance curve under fault conditions, respectively. At that moment, the distribution network suffered extreme disturbances, causing faults in some lines and a sharp decline in the overall system performance. The performance value drops to the minimum at all times. ; At that moment, the system completed the initial load transfer through emergency control measures such as islanding and network reconstruction, and the system performance was... Time rises to However, relying solely on topology adjustments and other measures is insufficient to repair damaged lines. Because the physical fault points have not yet been eliminated, the system is forced to operate in a derated state with incomplete power supply. Therefore, this invention further considers fault repair based on topology adjustments. By coordinating and optimizing the reconstruction and emergency repair processes, it ensures both load power supply and fault elimination, enabling the distribution network performance to return to normal operating levels more quickly.

[0036] In practice, the first step is to calculate the time-varying demand coefficient of the load, which reflects the power supply demand of the load at different times, based on the actual and maximum demand of each node's load. ; In the formula: Number the nodes. Number the time period; This is the time-varying demand factor for load; This represents the actual load demand. This represents the maximum load demand. This is the maximum demand coefficient, with a value of 10.

[0037] Based on the aforementioned time-varying load demand coefficient, construct the normal performance curve and the actual performance curve under fault conditions: ; ; In the formula: , These are the normal performance curve and the actual performance curve under fault conditions, respectively. A set of nodes; This is a power supply status variable for the load, and its value can be 0 or 1. For load importance level coefficient; This represents the load recovery amount.

[0038] The above performance curves use a dual weighting of the load importance level coefficient and the load time-varying demand coefficient. The physical meaning of this is that the power supply value of the same node changes dynamically with the actual demand at different times. Loads with high importance level and those in peak power consumption contribute more to the system performance and can therefore be given priority in the recovery decision.

[0039] To assess the resilience level of the distribution network restoration process, the following two quantitative resilience assessment indicators are constructed based on the above performance curves: (1) Load power supply restoration level indicators : This indicator reflects the load recovery level during the recovery period. The higher the value, the more high-value loads the system can guarantee power supply during the post-disaster recovery process. ; In the formula: , These are the start and end times of the assessment for the fault recovery phase, respectively, with the start time corresponding to the completion time of the initial load transfer mentioned above.

[0040] (2) Average load deficit level index : This indicator reflects the load deficit level during the recovery period. The smaller the value, the stronger the system's ability to cover load demand per unit time and the smaller the real-time power supply gap. ; The aforementioned load power supply recovery level indicators and the average load deficit level indicators together constitute the resilience quantitative assessment indicators, which characterize the resilience level of the entire recovery process from two dimensions: the degree of recovery and the power supply gap, respectively, providing a quantitative basis for the target setting of the subsequent collaborative optimization model and the evaluation of the recovery effect.

[0041] (III) Step S2: Construct a collaborative optimization model for reconstruction and emergency repair: After a fault occurs, the distribution network achieves rapid fault isolation through switchover and utilizes distributed resources to ensure continuous power supply to critical loads. Fault repair, by repairing damaged components, fundamentally eliminates the impact of the fault and provides more power supply paths for load restoration. The interaction between these two processes accelerates system power restoration, thereby enhancing system resilience during the recovery phase. Therefore, this embodiment constructs a collaborative optimization model considering reconfiguration and repair. The rolling optimization steps for reconfiguration and repair are as follows: Step a: Based on the initial system state after the fault disturbance, adjust the state of the sectionalizing switches and tie switches through the network reconfiguration module to update the distribution network topology; Step b: Control the emergency repair team to perform repair work under the current distribution network topology and update the status of the network lines after the repair; Step c: Input the updated system status into the network reconstruction module to obtain a new round of reconstruction scheme; Step d: Determine whether the system performance value under this scheme is better than the system performance value before the reconstruction operation. If so, proceed to step e; otherwise, return to step b. Step e: Execute the reconfiguration strategy under this scheme and update the distribution network topology; Step f: Determine if there are still unrepaired faults. If yes, return to step b; otherwise, proceed to step g. Step g: End the rolling optimization to obtain the optimal reconstruction strategy and the optimal emergency repair strategy for the entire recovery process.

[0042] (1) Network Reconstruction Model: Decisions during the reconfiguration phase must balance ensuring power supply to more loads with the economic efficiency of restoration. To this end, this embodiment constructs an objective function oriented towards minimizing the overall reconfiguration cost, taking into account both weighted power outage costs and network loss costs: ; ; ; In the formula: Number the branch roads; To restructure overall costs; , These are the costs of load loss and network loss, respectively. , These are the weighting coefficients corresponding to the cost of load loss and the cost of network loss, respectively. , These are the load power loss cost coefficient and the network loss cost coefficient, respectively. For branch set; , These are the active power and reactive power on the branch, respectively; This refers to the voltage at the end of the branch. This represents the branch resistance; the meanings of the other parameters are the same as those mentioned above.

[0043] (2) Fault repair model: The core task of fault repair is to restore power to more high-value loads after the repair, thereby maximizing the system's resilience during the recovery phase. Therefore, the fault repair model constructed in this embodiment aims to maximize the performance of the recovery system: ; In the formula: To restore system performance; The value is 0 or 1, which is used to indicate whether to perform emergency repairs on faulty components that affect the power supply to the corresponding node; the meanings of the other parameters are the same as those mentioned above.

[0044] (3) Constraints: As a preferred implementation, the solution process of the above-mentioned collaborative optimization model satisfies the following operational constraints: a: Power balance constraint: Maintaining power balance between distributed power output, energy storage charging and discharging power and load demand and network losses in each time period; b: Node voltage constraint: ; In the formula: , These are the lower and upper limits of the node voltage amplitude, respectively; c: Load reduction constraint: ; In the formula: This refers to the amount of material removed during the load process. d: Radial Operation Constraints: The reconstructed distribution network topology maintains a radial shape and is free of loops; distributed generation output constraints and energy storage capacity constraints are set according to the physical limits of the equipment. Among them, the radial operation constraints are hard constraints and are strictly guaranteed by the security masking mechanism in step S3.

[0045] (iv) Step S3: Markov Decision Process Modeling and SM-HPPO Reconstruction Method: (1) Markov decision process modeling of the reconstruction process: For the high-dimensional nonlinear reconstruction problem described in step S2, this embodiment transforms its optimization process into a Markov decision process. Within the reinforcement learning framework, a Markov decision process describes the process by which an agent continuously interacts with and learns from the environment, seeking the optimal strategy to maximize its reward. This can be achieved through a quintuple. Description, in which: For state space, For the action space, For the reward function, Let be the state transition probability. This is the discount factor. The main elements are defined as follows: 1) State space: The state space consists of two parts: in terms of time-series data, it covers continuous variables such as power injection and voltage amplitude at each node; in terms of topology, it characterizes the current physical connectivity of the distribution network through the real-time on / off states of sectionalizing switches and tie switches. The system state is defined as follows: ; In the formula: This refers to the system status; Number the switches; , These are the active power outputs of wind turbines and photovoltaic power, respectively. , These are the energy storage charging power and the energy storage discharging power, respectively. For energy storage capacity; This refers to the node voltage amplitude. This represents the reconstructed switch state; the meanings of the remaining parameters are the same as before.

[0046] 2) Motion space: The reconfiguration process requires adjusting switch states to transform the distribution network topology; simultaneously, load shedding operations are necessary to maintain power balance when power capacity is insufficient. Therefore, this embodiment defines the action space as a hybrid action space consisting of discrete switching actions and continuous load shedding actions. ; ; ; In the formula: This is a mixed action; , These are the discrete action space and the continuous action space, respectively. Index for switch-type actions; This is a flag indicating a change in switch state, with a value of 0 or 1, where 1 indicates a change in switch state and 0 indicates no change in switch state. Number of switches; This represents the total number of nodes; the meanings of the other parameters are the same as those mentioned above.

[0047] 3) Reward function: The core objective of reinforcement learning is to maximize the expected reward for a given task by learning the mapping relationship between system states and actions. Considering both the objective function and constraints, the reward function is defined as: ; In the formula: Rewards from the external environment; This represents the penalty value for the agent violating constraints. The reward function takes the negative of the overall reconstruction cost, enabling the agent to learn a policy with the goal of minimizing power outage costs and network losses. The penalty term provides negative feedback for actions that violate constraints.

[0048] (2) Distribution network reconfiguration scheme based on SM-HPPO: As a policy gradient algorithm based on the Actor-Critic architecture, the Proximal Policy Optimization (PPO) algorithm evolved from the Trust Region Policy Optimization (TRPO) algorithm. While inheriting the stability advantage of TRPO's policy updates, it significantly reduces computational overhead by introducing an objective function pruning mechanism, thus simplifying the computation process. However, the single action output form of the PPO algorithm is insufficient to handle heterogeneous, multi-dimensional decision-making tasks, and its training process cannot strictly guarantee radial operational constraints, resulting in limited learning performance for optimal policies under complex conditions. Therefore, this embodiment optimizes the basic framework of the PPO algorithm based on a hybrid action architecture and a security masking mechanism, and further improves the algorithm's learning performance by designing a multi-objective random network distillation (MRND) mechanism, thereby constructing a hybrid proximal policy optimization (SM-HPPO) algorithm that integrates a security masking mechanism and a multi-objective random network distillation mechanism for distribution network reconfiguration.

[0049] Figure 3 This is a schematic diagram illustrating the framework of the SM-HPPO algorithm provided in an embodiment of the present invention. Figure 3 As shown, after a fault occurs, the agent autonomously explores reconfiguration actions within the hybrid action space. Based on the fault location and system state, it outputs a reconfiguration scheme for the current time period, updating the distribution network topology. Based on the reconfigured distribution network topology, it solves the emergency repair scheme through an optimization solver, obtaining the optimal repair order for the faulty lines in the current time period. The agent then executes the reconfiguration operation again based on the repaired system state, transitioning the system to the new topology state. Through rolling optimization of fault repair and network reconfiguration, the agent can learn the optimal reconfiguration logic under different system states, thereby obtaining the optimal reconfiguration scheme. The specific implementation details of the SM-HPPO algorithm are described below.

[0050] 1) Hybrid Action Architecture: The PPO algorithm demonstrates strong policy learning capabilities for optimization problems in single discrete or continuous action spaces, but it struggles to directly adapt to the hybrid action space scenario constructed in this embodiment. To address this, this embodiment designs a decoupled multi-branch network architecture to achieve collaborative optimization of heterogeneous actions: the Actor network is decomposed into independent continuous action branches and discrete action branches to accommodate the output requirements of different actions. Specifically, the system state... The input is a multi-layer shared fully connected network. The high-dimensional features are abstracted and extracted and nonlinearly transformed by the ReLU activation function to obtain the encoded state information. Then, the encoded state information is input into the continuous action branch and the discrete action branch respectively. Each branch further mines the features of specific actions through independent hidden layers. Finally, the fully connected output layer with activation function is used to generate continuous load shedding actions and discrete switching actions respectively.

[0051] For continuous load shedding actions, to overcome the truncation bias problem of the traditional Gaussian distribution in the bounded action space, a Beta distribution defined on the finite interval [0,1] is used for continuous action sampling: the continuous action branch uses a fully connected layer with the Softplus activation function to output two shape parameters of the Beta distribution, obtain the continuous action policy probability distribution function, and sample from it: ; In the formula: These are the parameters of the Actor network; , These are the first and second shape parameters of the Beta distribution, respectively. Let be the probability distribution function of the continuous action strategy; This is a continuous load shedding operation.

[0052] For discrete switching actions, the discrete action branch generates switching action probabilities through a fully connected layer with a softmax activation function, and then obtains the discrete action policy probability distribution function through a Bernoulli distribution and samples from it: ; In the formula: The probability of switching action; Let be the probability distribution function of the discrete action strategy; This refers to discrete switching actions. Combining the sampled continuous load shedding actions with the discrete switching actions yields the mixed actions for the current time period.

[0053] 2) Security masking mechanism: During topology reconfiguration, satisfying the radial operating constraints is a crucial condition for ensuring the safe operation of the distribution network. To strictly guarantee that this hard constraint is not violated, this embodiment elevates the topology hard constraint from a penalty term to an illegal action that the agent cannot choose, based on a security masking mechanism. Specifically, the unnormalized score of each switching action output by the discrete action branch is obtained, and it is determined whether the distribution network topology corresponding to each switching action satisfies the radial operating constraints. A masking function is then constructed. ; In the formula: The unnormalized score for the switching action; For discrete switch operation The corresponding mask value.

[0054] The unnormalized score of each switch action is updated based on the mask function, and the score of illegal actions is set to the minimum value: ; In the formula: The score after masking; It is a maximal positive real number.

[0055] When illegal actions are processed by masking, their selection probability is set to zero when the action probability distribution is calculated using the softmax function, thus eliminating the illegal action from all action choices by the agent. This mechanism transforms constraint satisfaction from ex-post punishment to ex-ante exclusion, reducing the agent's ineffective exploration in the illegal action space while ensuring radial operational constraints.

[0056] 3) Multi-objective random network distillation mechanism: Within the reinforcement learning framework, due to complex constraints, the high-reward signals explored by the agent in the early stages are often sparse, making it prone to getting trapped in local optima. To further stimulate the agent's exploration capabilities, this embodiment integrates a random network distillation (RND) mechanism on the PPO algorithm framework. This mechanism generates intrinsic rewards through the novelty of the system state, guiding the agent to actively explore more unknown states.

[0057] The RND mechanism comprises a target network with fixed parameters and a prediction network that updates in real time. The prediction network fits the output of the target network by minimizing the prediction error. Considering that a single target network is susceptible to extreme values, this embodiment further constructs a multi-target network to mitigate the impact of estimation bias on model convergence, i.e., the MRND mechanism. Specifically, it constructs... A target network with fixed parameters and a prediction network with real-time updated parameters, wherein the first parameter is a target network with fixed parameters and the second parameter is a prediction network with real-time updated parameters. The target network is represented as: The prediction network is represented as In the formula: The number of target networks; Number the target network; The new state obtained after performing a mixed action; For the first The parameters of the target network are obtained through random initialization and remain unchanged during training; To predict the network parameters, they are dynamically updated during training.

[0058] The new state is input into the prediction network and... A target network, based on the output of the prediction network and The intrinsic reward is calculated by finding the error between the mean outputs of the target networks. ; In the formula: The intrinsic reward is used to incentivize the agent to explore states. For states that occur infrequently, the prediction network generates a higher intrinsic reward because it is difficult to accurately predict the output of the target network, thus motivating the agent to explore. For states that occur frequently, the prediction network tends to converge after multiple iterations, generating a lower intrinsic reward that discourages the agent from repeatedly learning from it. The averaging design of the multi-target network output further reduces the interference of the estimation bias of the single-target network on the intrinsic reward calculation.

[0059] By weighting and combining intrinsic rewards with extrinsic rewards, we obtain the reshaping reward: ; ; In the formula: To reshape the rewards; As a weighting factor; These are the initial weights; This is the attenuation control factor; This is the current training round number; This represents the total number of training rounds. In the early stages of training, higher intrinsic rewards guide the agent to actively explore unknown states. In the later stages of training, the weighting factor of intrinsic rewards adaptively decays as the training progresses, prompting the agent to make greater use of the stable knowledge it has learned, thus balancing exploration ability and convergence stability.

[0060] (V) Step S4: Agent training based on the SM-HPPO algorithm: The agent is trained based on the reshaped reward, and the specific steps are as follows: S4.1: Initialize Actor network parameters Critic network parameters and predict network parameters and initialize the experience pool; S4.2: At the beginning of each training round, obtain the initial system state after a distribution network fault occurs; S4.3: Under the current system state, the Actor network outputs a Bernoulli distribution for discrete switching actions and a Beta distribution for continuous load shedding actions, respectively. The two distributions are sampled and combined to obtain the mixed action for the current time period. S4.4: Perform the hybrid action to complete the topology reconfiguration. Based on the reconfigured distribution network topology, use the optimization solver to solve for the optimal fault repair sequence and perform the repair. The system then transitions to a new state and receives external environmental rewards. S4.5: Calculate the intrinsic reward based on the new state, superimpose it with the external environment reward to obtain the reshaping reward, and store the experience sample containing the current system state, mixed actions, reshaping reward and new state into the experience pool; S4.6: Determine if the network update conditions have been met. If not, update the system state and return to S4.3; if met, extract experience samples from the experience pool and use the Critic network to calculate the timing difference error. Then calculate the advantage function. And according to the loss function Update the Critic network parameters; S4.7: Calculate the cutoff loss function of the Actor network based on the advantage function and the ratio of the new and old strategies. Based on this, the Actor network parameters are updated, and after the update is complete, the new Actor network parameters are hard-updated to the old Actor network. S4.8: Determine if the current number of training rounds has reached the total number of training rounds. If not, reset the environment state and return to S4.2; if it has, output the optimal reconfiguration scheme for the distribution network under multiple time periods and end the training.

[0061] As a preferred implementation, the main training hyperparameters of the SM-HPPO algorithm can be set according to Table 1.

[0062]

[0063] (vi) Verification of recovery effect: Figure 4 This is a comparison chart of distribution network performance changes under different power restoration schemes provided in the embodiments of the present invention. To verify the superiority of the proposed restoration scheme, the following three schemes are set up for comparative analysis under the same fault scenario: Option 1 is a repair plan based on a random repair order; Option 2 is a reconstruction-emergency repair plan aimed at minimizing line repair time; Option 3 is a reconfiguration-emergency repair collaborative optimization scheme that takes into account differentiated load demands, which is the scheme proposed in this invention.

[0064] Depend on Figure 4 It is evident that the performance of the distribution network after the initial reconstruction following a fault is relatively low. As the load gradually recovers, the system performance under each scheme exhibits different trends. Scheme 1 can only passively rely on the repair of faulty branches one by one to restore power supply, and cannot utilize dynamic topology reconstruction to achieve coordinated optimization of cross-regional resources and load transfer. Furthermore, its randomized repair sequence does not take into account the demand differences of different load levels, resulting in the lowest overall performance during the recovery process. Schemes 2 and 3 both restore power to all loads within the same time period, but Scheme 2's repair process aims for the shortest repair time, without fully considering the load importance level and the differences in load demand at different times, resulting in lower initial system performance than Scheme 3. Scheme 3, during the rolling optimization process, consistently aims to restore power to more high-value loads. By utilizing the cross-regional power complementarity after reconstruction, it achieves better allocation of generation resources in each island at different times, prioritizing reliable power supply to high-priority and high-demand loads. The system performance curve remains at the highest level, demonstrating the best recovery effect.

[0065] Furthermore, under the same fault scenario, the SM-HPPO algorithm proposed in this invention is compared with recovery strategies based on the Gray Wolf Algorithm (GWO), the Deep Q-Network (DQN) algorithm, and the PPO algorithm. The results are shown in Table 2:

[0066] As shown in Table 2, the GWO algorithm, which requires iterative optimization, has a significantly longer online computation time than the three deep reinforcement learning methods, failing to meet the requirements for rapid online response. Furthermore, it is prone to getting trapped in local optima during the optimization process, resulting in relatively poor recovery performance. While the model-free deep reinforcement learning-based recovery method consumes some offline computing resources, it achieves faster online response speed and superior performance. The method proposed in this invention has the shortest online computation time, the least power consumption, and the lowest network loss and load loss costs among the three deep reinforcement learning methods, indicating that the proposed method significantly improves real-time decision-making efficiency while achieving better load recovery performance and economy.

Claims

1. A method for multi-time period power supply restoration in a distribution network that considers the coordinated optimization of topology reconfiguration and fault repair, characterized in that... Includes the following steps: S1: Taking into account the differentiated load demand, establish the distribution network performance curve based on the time-varying characteristics of the load, and construct a quantitative assessment index of resilience based on the distribution network performance curve; S2: To minimize the overall cost of reconfiguration and maximize the improvement of system performance, a collaborative optimization model for the distribution network reconfiguration process and the fault repair process is constructed. S3: The distribution network reconfiguration process is constructed as a Markov decision process in a hybrid action space. The optimal reconfiguration scheme is solved by a hybrid near-end policy optimization algorithm that integrates a security masking mechanism and a multi-objective random network distillation mechanism. S4: Train the agent based on the hybrid near-end strategy optimization algorithm and output the optimal reconfiguration scheme for the distribution network under multiple time periods.

2. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 1, characterized in that: S1 includes: S1.1: Calculate the time-varying demand factor for load based on the actual and maximum load demand of each node: ; In the formula: Number the nodes. Number the time period; This is the time-varying demand factor for load; This represents the actual load demand. This represents the maximum load demand. This is the maximum demand coefficient; S1.2: Based on the time-varying load demand coefficient, construct the normal performance curve and the actual performance curve under fault conditions: ; ; In the formula: , These are the normal performance curve and the actual performance curve under fault conditions, respectively. A set of nodes; This is a power supply status variable for the load, and its value can be 0 or 1. For load importance level coefficient; This represents the load recovery amount.

3. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 2, characterized in that: S1 further includes: S1.3: Based on the normal performance curve and the actual performance curve under the fault, calculate the load power supply recovery level index: ; In the formula: The indicator of the level of power supply restoration to the load; , These represent the start and end times of the fault recovery phase assessment, respectively. S1.4: Based on the difference between the normal performance curve and the actual performance curve under the aforementioned fault, calculate the average load deficit level index: ; In the formula: The average load deficit level indicator; the load power supply recovery level indicator and the average load deficit level indicator together constitute a resilience quantitative assessment indicator.

4. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 3, characterized in that: In S2, the distribution network reconfiguration process and the fault repair process are coordinated through rolling optimization, including the following steps: S2.1: Based on the initial system state after the fault disturbance, the state of the sectionalizing switches and tie switches is adjusted through the network reconfiguration module to update the distribution network topology; S2.2: Control the emergency repair team to perform repair work under the current network structure and update the network line status after the repair; S2.3: Input the updated system status into the network reconstruction module to obtain a new round of reconstruction scheme; S2.4: Determine whether the system performance value under the new round of reconstruction scheme is better than the system performance value before the reconstruction operation. If yes, execute S2.5; otherwise, return to S2.

2. S2.5: Execute the refactoring strategy corresponding to the new round of refactoring scheme and update the distribution network topology; S2.6: Determine if there are still unrepaired faults. If yes, return to S2.2; otherwise, execute S2.

7. S2.7: End the rolling optimization and obtain the optimal reconstruction strategy and optimal emergency repair strategy for the entire recovery process.

5. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 4, characterized in that: In S2, the network reconfiguration model corresponding to the distribution network reconfiguration process aims to minimize the overall reconfiguration cost, and the objective function is: ; ; ; In the formula: Number the branch roads; To restructure overall costs; , These are the costs of load loss and network loss, respectively. , These are the weighting coefficients corresponding to the cost of load loss and the cost of network loss, respectively. , These are the load power loss cost coefficient and the network loss cost coefficient, respectively. For branch set; , These are the active power and reactive power on the branch, respectively; This refers to the voltage at the end of the branch. This is the branch resistance.

6. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 5, characterized in that: In S2, the fault repair model corresponding to the fault repair process aims to maximize the recovery of system performance, and the objective function is: ; In the formula: To restore system performance; This is a decision variable for emergency repairs, taking a value of 0 or 1, used to characterize whether to perform emergency repairs on faulty components affecting the power supply to the corresponding node.

7. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 6, characterized in that: In S3, the distribution network reconfiguration process is constructed as a Markov decision process, including: S3.1: Construct a state space, which includes the power injection amount and voltage amplitude of each node representing the time-series data, as well as the real-time on / off states of the segmented switches and tie switches representing the topology structure: ; In the formula: This refers to the system status; Number the switches; , These are the active power outputs of wind turbines and photovoltaic power, respectively. , These are the energy storage charging power and the energy storage discharging power, respectively. For energy storage capacity; This refers to the node voltage amplitude. The reconfigured switch state; S3.2: Based on the aforementioned state space, construct a hybrid action space consisting of discrete switching actions and continuous load reduction actions: ; ; ; In the formula: This is a mixed action; , These are the discrete action space and the continuous action space, respectively. This is a flag indicating a change in switch state, with a value of 0 or 1. A value of 1 indicates a change in switch state, while a value of 0 indicates that the switch state remains unchanged. Number of switches; This refers to the amount of material removed during the load process. The total number of nodes; S3.3: Based on the aforementioned hybrid action space, a reward function is constructed by combining the objective function and constraints of the network reconstruction model: ; In the formula: Rewards from the external environment; This represents the penalty value for an agent that violates the constraints.

8. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 7, characterized in that: In step S3, the Actor network of the hybrid proximal policy optimization algorithm adopts a decoupled multi-branch network architecture, and the process of generating hybrid actions based on the hybrid action space includes: S3.4: Change the state The input is a multi-layer shared fully connected network, which is then processed by the ReLU activation function to extract high-dimensional features and perform nonlinear transformations to obtain the encoded state information. S3.5: Input the encoded state information into the continuous action branch, and output two shape parameters of the Beta distribution through a fully connected layer and the Softplus activation function to obtain the continuous action policy probability distribution function, and sample the continuous load shedding action from it: ; In the formula: These are the parameters of the Actor network; , These are the first and second shape parameters of the Beta distribution, respectively. Let be the probability distribution function of the continuous action strategy; This is a continuous load shedding operation; S3.6: Input the encoded state information into the discrete action branch, generate the switching action probability through the fully connected layer with the softmax activation function, obtain the discrete action strategy probability distribution function, and sample the discrete switching action from it; combine the continuous load shedding action with the discrete switching action to obtain the hybrid action: ; In the formula: The probability of switching action; Let be the probability distribution function of the discrete action strategy; This is for discrete switch operation.

9. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 8, characterized in that: S3 further includes: S3.7: Obtain the unnormalized score of each switching action output by the discrete action branch, determine whether the topology corresponding to each switching action satisfies the radial running constraint, and construct a mask function: ; In the formula: The unnormalized score for the switching action; For switch action The corresponding mask value; S3.8: Update the unnormalized score of each switch action based on the mask function, and set the score of illegal actions to the minimum value: ; In the formula: The score after masking; It is a maximal positive real number; S3.9: Input the masked score into the softmax function to calculate the action probability distribution, so that the selection probability of illegal actions is zero. The agent samples discrete switching actions from the legal actions, combines them to obtain mixed actions, and then executes them to transfer the system to a new state. S3.10: Building A target network with fixed parameters and a prediction network with real-time updated parameters, wherein the first parameter is a target network with fixed parameters and the second parameter is a prediction network with real-time updated parameters. The target network is represented as: The prediction network is represented as ; In the formula: The number of target networks; Number the target network; The new state obtained after performing a mixed action; For the first The parameters of the target network are obtained through random initialization and remain unchanged during training; To predict the network parameters, they are dynamically updated during training; S3.11: Input the new state into the prediction network and... A target network, based on the output of the prediction network and The intrinsic reward is calculated by finding the error between the mean outputs of the target networks. ; In the formula: As an intrinsic reward; S3.12: The intrinsic reward and the external environmental reward are weighted and summed to obtain the reshaping reward: ; ; In the formula: To reshape the rewards; As a weighting factor; These are the initial weights; This is the attenuation control factor; This is the current training round number; This represents the total number of training rounds.

10. The method for multi-time period power supply restoration of a distribution network considering the coordinated optimization of topology reconfiguration and fault repair as described in claim 9, characterized in that: S4 includes: S4.1: Initialize Actor network parameters Critic network parameters and predict network parameters and initialize the experience pool; S4.2: At the beginning of each training round, obtain the initial state of the distribution network after a fault occurs; S4.3: In the current state, the Actor network outputs a Bernoulli distribution for discrete switching actions and a Beta distribution for continuous load shedding actions, respectively. The two distributions are sampled and combined to obtain the mixed action for the current time period. S4.4: Execute the hybrid action to complete the topology reconstruction, solve the optimal fault repair sequence according to the reconstructed topology state and execute the repair, the system transfers to the new state and obtains external environmental rewards; S4.5: Calculate the intrinsic reward based on the new state, superimpose the intrinsic reward with the external environment reward to obtain the reshaping reward, and store the experience sample containing the current state, the hybrid action, the reshaping reward and the new state into the experience pool; S4.6: Determine if the network update condition has been met. If not, update the status and return to S4.3; if met, extract experience samples from the experience pool and use the Critic network to calculate the time-series difference error. Then calculate the advantage function. , And according to the loss function Update the Critic network parameters; where: This refers to timing difference error; The dominant function; Let be the loss function of the Critic network; S4.7: Calculate the cutoff loss function of the Actor network based on the advantage function and the ratio of the new and old strategies. The Actor network parameters are updated accordingly, and after the update is complete, the new Actor network parameters are hard-updated to the old Actor network; where: This is the truncation loss function for the Actor network; S4.8: Determine whether the current training round has reached the total number of training rounds. If not, reset the environment state and return to S4.2; if it has, output the optimal reconfiguration scheme for the distribution network under multiple time periods.

Citation Information

Patent Citations

  • Power distribution network power supply recovery method and system considering network reconstruction

    CN114665479A