Power distribution network fault reconstruction method based on improved evolutionary algorithm

Through the improved particle swarm optimization algorithm, multiple equivalent fault reconstruction solutions are found when a distribution network fault occurs, which solves the problem that the fault reconstruction method in the existing technology is not flexible and stable enough, and improves the efficiency of distribution network fault processing. Reliability and adaptability.

CN118611036APending Publication Date: 2024-09-06GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410629419.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing distribution network fault reconstruction methods ignore its multi-modal nature, resulting in solutions that become unfeasible or inapplicable when the environment changes, and lack flexibility and stability.

Method used

Using an improved particle swarm optimization algorithm, by constructing a particle swarm optimization model, the initial neighborhood set and history set are updated until the preset conditions are met, and multiple equivalent fault reconstruction schemes for the distribution network are found to improve the flexibility of fault reconstruction. sex and stability.

Benefits of technology

It is possible to quickly and accurately find multiple equivalent fault reconstruction solutions when a distribution network fault occurs, reducing the time and scope of power outages, reducing the impact on users and economic losses, and improving the reliability and adaptability of fault reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611036A
    Figure CN118611036A
Patent Text Reader

Abstract

The embodiment of the invention discloses a power distribution network fault reconstruction method based on an improved evolutionary algorithm, and the method comprises the steps: obtaining the historical fault data of a power distribution network, and constructing a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; when the particle swarm optimization model does not meet the preset condition, updating the initial neighborhood set based on the population, updating the initial historical set based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model until the particle swarm optimization model meets the preset condition, and obtaining a target particle swarm optimization model; and determining each target fault reconstruction scheme of the power distribution network based on all individuals of the optimal historical set. According to the method provided by the embodiment of the invention, a plurality of equivalent target fault reconstruction schemes can be determined, the subsequent fault reconstruction on the power distribution network according to the actual condition of the power distribution network is facilitated, and the power failure time and range caused by the fault are reduced to the minimum, so that the influence on a user and the economic loss are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of distribution network fault analysis, and in particular to a distribution network fault reconstruction based on an improved evolutionary algorithm. Background Art

[0002] With the increasing complexity and fault rate of distribution networks, fault reconstruction of distribution networks has become an effective method for fault isolation and topology adjustment when a fault occurs. Distribution network fault reconstruction is the process of modifying the distribution network topology to restore power supply by adjusting the state of section switches and interconnection switches. In addition, it is also an important method to reduce power loss and improve the overall voltage distribution.

[0003] At present, when solving the distribution network fault reconstruction problem, most people regard it as a single-objective or multi-objective optimization problem, and then look for an optimal solution, while ignoring its multimodality. The multimodality of distribution network fault reconstruction means that when a distribution network fails, there is more than one fault reconstruction solution that can solve the fault. If only one optimal solution is found, the implemented solution may become infeasible or inapplicable when the environment changes. Therefore, this method is not reliable enough and lacks flexibility, and cannot guarantee the stability of distribution network fault reconstruction. Summary of the invention

[0004] The embodiment of the present invention provides a distribution network fault reconstruction method based on an improved evolutionary algorithm, which can quickly and accurately find as many equivalent fault reconstruction schemes as possible when a distribution network fault occurs, thereby improving the flexibility of the distribution network fault reconstruction scheme and further ensuring the stability of the distribution network fault reconstruction.

[0005] In a first aspect, an embodiment of the present invention provides a distribution network fault reconstruction method based on an improved evolutionary algorithm, comprising:

[0006] Acquire historical fault data of the distribution network, and construct a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set, and an initial history set;

[0007] When the particle swarm optimization model does not meet the preset conditions, the initial neighborhood set is updated based on the population, and the initial history set is updated based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, a target particle swarm optimization model is obtained, and the target particle swarm optimization model includes an optimal neighborhood set and an optimal history set;

[0008] Each target fault reconstruction scheme of the distribution network is determined based on all individuals of the optimal history set.

[0009] In a second aspect, an embodiment of the present invention provides a distribution network fault reconstruction device based on an improved evolutionary algorithm, the device comprising:

[0010] A data acquisition module, used to acquire historical fault data of the distribution network, and construct a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set and an initial history set;

[0011] A model training module, used for updating the initial neighborhood set based on the population when the particle swarm optimization model does not meet the preset conditions, and updating the initial history set based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, thereby obtaining an optimal neighborhood set and an optimal history set;

[0012] A scheme determination module is used to determine each target fault reconstruction scheme of the distribution network based on all individuals in the optimal history set.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a distribution network fault reconstruction method based on an improved evolutionary algorithm as described in any one of the embodiments of the present invention is implemented.

[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a distribution network fault reconstruction method based on an improved evolutionary algorithm as described in any one of the embodiments of the present invention.

[0015] In the embodiment of the present invention, the historical fault data of the distribution network can be obtained, and a particle swarm optimization model can be constructed based on the historical fault data and a predetermined particle swarm optimization algorithm; when the particle swarm optimization model does not meet the preset conditions, the initial neighborhood set is updated based on the population, and the initial history set is updated based on the updated initial neighborhood set and the pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, a target particle swarm optimization model is obtained, and the target particle swarm optimization model includes an optimal neighborhood set and an optimal history set; each target fault reconstruction scheme of the distribution network is determined based on all individuals in the optimal history set. That is, in the embodiment of the present invention, a particle swarm optimization model can be constructed according to the particle swarm optimization algorithm, and multiple potential fault reconstruction schemes can be explored through the particle swarm optimization algorithm, rather than just finding one feasible solution. By optimizing and screening each fault reconstruction scheme through a pre-established fault reconstruction mathematical model, multiple equivalent target fault reconstruction schemes can be found from multiple potential fault reconstruction schemes, so as to facilitate the subsequent fault reconstruction of the distribution network according to the actual situation of the distribution network and multiple equivalent target fault reconstruction schemes, and minimize the power outage time and range caused by the fault, thereby reducing the impact on users and economic losses. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 A first flow chart of a distribution network fault reconstruction method based on an improved evolutionary algorithm provided in an embodiment of the present invention;

[0018] Figure 2 A second flow chart of a distribution network fault reconstruction method based on an improved evolutionary algorithm provided in an embodiment of the present invention;

[0019] Figure 3 A schematic diagram of a distribution network structure provided by an embodiment of the present invention;

[0020] Figure 4 A flow chart of determining a fault reconstruction solution using a target particle swarm optimization model provided by an embodiment of the present invention;

[0021] Figure 5 A schematic diagram of the structure of a distribution network fault reconstruction device based on an improved evolutionary algorithm provided in an embodiment of the present invention;

[0022] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0024] Figure 1 The first flow chart of a distribution network fault reconstruction method based on an improved evolutionary algorithm provided in an embodiment of the present invention is applicable to the situation where as many equivalent fault reconstruction schemes as possible are found quickly and accurately when a distribution network fault occurs. The method can be executed by a distribution network fault reconstruction device based on an improved evolutionary algorithm provided in an embodiment of the present invention, and the device can be implemented in software and / or hardware. The following embodiments will be described by taking the device integrated in an electronic device as an example, and the electronic device can be a computer device or a server, etc. Reference Figure 1 , the method may specifically include the following steps:

[0025] Step 101: Obtain historical fault data of the distribution network, and build a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm.

[0026] Among them, historical fault data includes basic data and fault data of the distribution network. Basic data includes structural data and equipment data of the distribution network, such as the number of nodes, number of branches, topological structure information, switch position, switch state, power, voltage, susceptance, conductance of each node, power and resistance of each branch, etc. The particle swarm optimization model includes population, particles, initial neighborhood set and initial history set. The particle swarm optimization model in this scheme is based on the binary particle swarm optimization algorithm, which is an evolutionary algorithm that can use the collaboration and information sharing between individuals in the group to find multiple optimal solutions.

[0027] In this scheme, each particle represents a fault reconstruction scheme, and the population is composed of each fault reconstruction scheme (particle). In the process of constructing the particle swarm optimization model, two sets are initialized for each particle, namely the initial neighborhood set and the initial history set. The initial history set corresponding to each particle is used to store the historical best position of the particle, and the initial neighborhood set corresponding to each particle is used to store the best neighborhood position of the particle. In an optional implementation, after obtaining the historical fault data of the distribution network, the parameters such as particles, particle dimensions and number of iterations are determined according to the particle swarm optimization algorithm and the historical fault data, and the initial neighborhood set and the initial history set are set at the same time to obtain the particle swarm optimization model.

[0028] Step 102: When the particle swarm optimization model does not meet the preset conditions, the initial neighborhood set is updated based on the population, and the initial history set is updated based on the updated initial neighborhood set and the pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, thereby obtaining the target particle swarm optimization model.

[0029] The target particle swarm optimization model includes an optimal neighborhood set and an optimal history set. The preset condition is used to determine whether to stop updating the initial neighborhood set and the initial history set. The preset condition can be that the number of updates reaches a preset number of iterations or the number of function evaluations reaches a preset number of evaluations. The fault reconstruction mathematical model is a pre-established optimization model used to screen or optimize various fault reconstruction schemes. The fault reconstruction mathematical model defines the optimization objectives and constraints used to optimize various fault reconstruction schemes.

[0030] The optimization objectives can be reducing network losses, improving voltage distribution, optimizing operation procedures and / or system stability. Reducing network losses means reducing energy losses during power transmission by optimizing the topology of the distribution network; improving voltage distribution means re-distributing the voltage distribution in the distribution network to avoid excessive or low voltage; optimizing operation procedures means reducing the number of necessary switching operations. Maintaining system stability means restoring the system to a state close to that before the fault as much as possible through an effective reconstruction strategy after a fault occurs. Constraints can be power balance constraints, node voltage constraints, branch current constraints and / or topology constraints. Power balance constraints mean that under steady-state conditions, the input power of each node must be equal to the output power, including the balance of active and reactive power; node voltage constraints mean that the voltage of all nodes must be within the specified safety range; branch current constraints mean that in order to protect the equipment from overload, the branch current must not exceed its maximum carrying capacity; topology constraints mean that during the fault reconstruction process, the topology of the distribution network changes, such as the opening or closing of switches, and these changes must follow the physical connection rules of the network and cannot form islands or unplanned loops.

[0031] In an optional implementation, the fault reconstruction mathematical model includes a target optimization function and constraint conditions, and establishing the fault reconstruction mathematical model includes determining the power balance constraint of the fault reconstruction model according to the reactive power, active power, node voltage, susceptance, conductance and phase difference of each node of the distribution network; determining the operation constraint of the fault reconstruction model according to the node voltage, branch current and topological structure of each node of the distribution network. Determine the power loss function according to the number of branches, branch state variables, branch resistance, branch active power, branch reactive power and branch terminal voltage of the distribution network; determine the voltage deviation function according to the number of nodes of the distribution network, branch terminal voltage and rated node voltage of each node.

[0032] In an optional implementation, the switch state of the fault reconstruction scheme can be used as an optimization target, and the nearest neighbor search algorithm is used to select particles that can be stored in the initial neighborhood set from the population, and the initial neighborhood set is updated based on these particles. After obtaining the updated initial neighborhood set, all particles in the updated initial neighborhood set are sorted, all particles in the initial history set are sorted, the optimal neighborhood set particles are selected from the sorted initial neighborhood set, and the optimal history set particles are selected from the sorted initial history set. Candidate particles are determined based on the particle speed and position update formula of the optimal neighborhood particles, the optimal history particles, and the binary particle swarm optimization algorithm, and the candidate particles are evaluated through the fault reconstruction mathematical model. If the candidate particle does not meet its target optimization function or constraint condition, the particle is penalized according to a preset penalty function, and the initial history set is updated based on the penalized candidate particle.

[0033] In an optional implementation, when the particle swarm optimization model does not meet the preset conditions, a particle is selected from the population as the current particle; a preset number of individuals closest to the current particle are selected from the initial history set according to the preset search algorithm, and the initial neighborhood set is updated based on the preset number of individuals. The difference between each two individuals in the updated initial neighborhood set and the initial history set is calculated respectively, and the individuals in the updated initial neighborhood set and the initial history set are sorted based on the difference to obtain a candidate neighborhood set and a candidate history set; the optimal neighborhood individual and the optimal history individual are determined from the candidate neighborhood set and the candidate history set respectively; the optimal neighborhood individual and the optimal history individual are substituted into the speed update formula and the position update formula to obtain the candidate particle corresponding to the current particle; the candidate particles are evaluated and optimized based on the fault reconstruction mathematical model to obtain the optimized candidate particles; the initial history set is updated based on the optimized candidate particles until the particle swarm optimization model meets the preset conditions, and the target particle swarm optimization model is obtained, and the target particle swarm optimization model includes the optimal neighborhood set and the optimal history set.

[0034] Step 103: Determine each target fault reconstruction scheme of the distribution network based on all individuals in the optimal history set.

[0035] Among them, in the target particle swarm optimization model, individuals are equivalent to particles, and each particle corresponds to a fault reconstruction scheme. The individuals in the optimal history set are particles that meet the target optimization function and constraints in the fault reconstruction mathematical model. Therefore, the individuals in the optimal history set are all equivalent fault reconstruction schemes. After obtaining the optimal history set, each individual in the optimal history set can be determined as each target fault reconstruction scheme.

[0036] The technical solution of this embodiment obtains historical fault data of the distribution network, and constructs a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set, and an initial history set; when the particle swarm optimization model does not meet the preset conditions, the initial neighborhood set is updated based on the population, and the initial history set is updated based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, a target particle swarm optimization model is obtained, and the target particle swarm optimization model includes an optimal neighborhood set and an optimal history set; each target fault reconstruction scheme of the distribution network is determined based on all individuals in the optimal history set. The technical solution of this embodiment can construct a particle swarm optimization model according to the particle swarm optimization algorithm, and explore multiple potential fault reconstruction schemes through the particle swarm optimization algorithm, instead of finding only one feasible solution. By optimizing and screening various fault reconstruction schemes through the pre-established fault reconstruction mathematical model, multiple equivalent target fault reconstruction schemes can be found from multiple potential fault reconstruction schemes, which is convenient for subsequent fault reconstruction of the distribution network according to the actual situation of the distribution network and multiple equivalent target fault reconstruction schemes, and the power outage time and scope caused by the fault can be minimized, thereby reducing the impact on users and economic losses.

[0037] Figure 2 The second flow chart of a distribution network fault reconstruction method based on an improved evolutionary algorithm provided in an embodiment of the present invention is a refinement of the above embodiment. The specific method can be as follows Figure 2 As shown, the method may include the following steps:

[0038] Step 201: Obtain historical fault data of the distribution network, and determine the power balance constraint of the fault reconstruction model according to the reactive power, active power, node voltage, susceptance, conductance and phase difference of each node of the distribution network.

[0039] Among them, the constraints of the fault reconstruction mathematical model include power balance constraints. The power balance constraints are determined based on the historical fault data of the distribution network and domain big data as follows:

[0040]

[0041] Among them, P i and Q i are the active power and reactive power injected into node i respectively; G ij , B ij and θ ij are the conductance, susceptance and phase difference between nodes i and j respectively. The active power P injected into node i i and reactive power (Q i ), conductivity (G ij ) and susceptance (B ij) is known, and the phase difference (θ ij ) are different and need to be calculated. Each node in the fault reconstruction solution must meet the power balance constraint. The fault reconstruction solution that does not meet the power balance constraint is an infeasible solution.

[0042] Step 202: Determine the operation constraints of the fault reconstruction model according to the node voltage of each node of the distribution network, the branch current and the topological structure of the distribution network.

[0043] Among them, the constraints of the fault reconstruction mathematical model include operation constraints, which are determined based on the historical fault data of the distribution network and domain big data as follows:

[0044]

[0045] Among them, I ij is the actual current of branch ij. The actual current refers to the current of each branch obtained by power flow calculation under different fault reconstruction schemes; U i is the voltage at node i, and are the lower and upper limits of the voltage at node i respectively; I ij is the current in branch ij, and are the lower and upper limits of the branch ij current respectively; h k is the topological structure of the reconstructed distribution network; H k It is a topological structure that complies with the operation rules of the distribution network. Each node of the fault reconstruction plan must meet the operation constraints. The fault reconstruction plan that does not meet the operation constraints is an infeasible solution.

[0046] Step 203: Determine a power loss function according to the number of branches of the distribution network, branch state variables, branch resistances, branch active power, branch reactive power and branch terminal voltages.

[0047] Among them, the objective optimization function of the fault reconstruction mathematical model includes the power loss function and the voltage deviation function. The power loss function is determined based on the historical fault data of the distribution network and the domain big data as follows:

[0048]

[0049] Among them, f p refers to power loss; M represents the number of branches in the distribution network; k ij and R ij Represent the state variable and the resistance of branch ij respectively; P ij and Q ij Respectively represent the active power and reactive power flowing through branch ij; U jis the terminal voltage of branch ij, which is also the actual voltage of node j. The basic parameters of the distribution network, such as the number of branches (M), resistance (R ij ), active power (P ij ) and reactive power (Q ij ) are all known. The node voltage (U j ) and branch current (I ij ) needs to be calculated.

[0050] Step 204: Determine a voltage deviation function according to the number of nodes in the distribution network, the branch terminal voltage, and the rated node voltage of each node.

[0051] Among them, the voltage deviation function is a target optimization function of the fault reconstruction mathematical model. According to the historical fault data of the distribution network and the field big data, the voltage deviation function is determined as:

[0052]

[0053] Among them, f v refers to voltage deviation; N represents the number of nodes in the distribution network; U j is the terminal voltage of branch ij, which is also the actual voltage of node j; U j,a is the rated node voltage of node j. The basic parameters of the distribution network, such as the number of nodes N in the distribution network, are known, and the node voltage U j Need to be calculated.

[0054] Step 205: construct a particle swarm optimization model based on historical fault data and a predetermined particle swarm optimization algorithm.

[0055] Step 206: When the particle swarm optimization model does not meet the preset conditions, a particle is selected from the population as the current particle; a preset number of individuals closest to the current particle are selected from the initial history set according to a preset search algorithm, and the initial neighborhood set is updated based on the preset number of individuals.

[0056] Among them, a particle represents a fault reconstruction scheme, and the population is composed of each particle. The preset search algorithm can be a nearest neighbor search algorithm. The nearest neighbor search algorithm is a method for finding the point closest to a given point in a multidimensional space. In the multi-objective optimization problem of distribution network fault reconstruction, the nearest neighbor search algorithm can be used to select multiple equivalent solutions, and determine a more comprehensive and reliable fault reconstruction scheme based on multiple equivalent solutions.

[0057] In an optional implementation, when the number of iterations does not reach a preset number of iterations, a particle is selected from the population as the current particle, and the n (preset number) individuals closest to the current particle are selected from the initial history set through a nearest neighbor search algorithm, and these n individuals are stored in the initial neighborhood set to obtain an updated initial neighborhood set.

[0058] Step 207: Calculate the difference between every two individuals in the updated initial neighborhood set and the initial history set, and sort the individuals in the updated initial neighborhood set and the initial history set based on the difference to obtain a candidate neighborhood set and a candidate history set.

[0059] Specifically, after obtaining the initial history set and the updated initial neighborhood set, the difference between every two individuals in the initial history set and the updated initial neighborhood set can be calculated according to a pre-set non-dominated sorting method. First, all individuals in the initial history set and the updated initial neighborhood set are non-dominatedly sorted to identify all non-dominated individuals. For each non-dominated individual, an indicator value is calculated, which reflects the degree of dominance of the solution relative to other solutions. In the process of distribution network fault reconstruction strategy, each individual can be represented as a binary string, in which each bit represents the state (open or closed) of a specific section switch or tie switch. The difference between two fault reconstruction schemes (individuals) is measured by the Hamming distance, that is, how many switch states need to be changed to switch from one individual to another. After obtaining the difference between every two individuals, all individuals are sorted according to their differences, and the individuals with the higher ranking indicate that their effect is better. Further, the sorted initial neighborhood set is determined as a candidate neighborhood set, and the sorted initial history set is determined as a candidate history set.

[0060] Using the non-dominated sorting method to sort all individuals in the updated initial neighborhood set and the initial history set helps to maintain the diversity of the population, while promoting the model to explore solutions that are slightly different from the current population, which helps to find a better fault reconstruction solution.

[0061] Step 208, determine the optimal neighborhood individual and the optimal history individual from the candidate neighborhood set and the candidate history set respectively; based on the optimal neighborhood individual, the optimal history individual, the fault reconstruction mathematical model, the speed update formula and the position update formula of the preset particles, update the initial history set until the particle swarm optimization model meets the preset conditions, and obtain the target particle swarm optimization model.

[0062] Among them, the target particle swarm optimization model includes the optimal neighborhood set and the optimal history set. Specifically, after obtaining the candidate neighborhood set and the candidate history set, the first individual is selected from the candidate neighborhood set and the candidate history set, and these two individuals are respectively determined as the optimal neighborhood individual and the optimal history individual. In the target particle swarm optimization model, the particle speed update formula is used to move the direction and distance in the next iteration, and the position represents the fault reconstruction plan. The speed update formula is:

[0063]

[0064] Among them, ω is the preset inertia factor; c1 and c2 are the preset learning factors; r1 and r2 are two independent random values ​​in the interval [0,1]; pbest and nbest are the best neighborhood individual and the best historical individual position respectively; t is the current iteration number; v id and x id are the particle velocity and position respectively.

[0065] The position update formula is:

[0066]

[0067] Among them, v id and x id are the particle speed and position respectively, rand is used to generate random numbers, and logsig is the activation function, which maps the input value to an output between 0 and 1.

[0068] In this solution, optionally, the initial history set is updated based on the optimal neighborhood individual, the optimal history individual, the fault reconstruction mathematical model, and the speed update formula and the position update formula of the preset particle, including: substituting the optimal neighborhood individual and the optimal history individual into the speed update formula and the position update formula to obtain the candidate particle corresponding to the current particle; evaluating and optimizing the candidate particles based on the fault reconstruction mathematical model to obtain the optimized candidate particles; and updating the initial history set based on the optimized candidate particles.

[0069] Specifically, after obtaining the best neighborhood individual and the best historical individual, substitute the best neighborhood individual (pbest) and the best historical individual (nbest) into the speed update formula and the position update formula to obtain the candidate particle corresponding to the current particle. After obtaining the candidate particle corresponding to the current particle, the candidate particle is evaluated according to the power loss function, the voltage deviation function, the power balance constraint and the operation constraint. If the candidate particle does not meet the target optimization function and the constraint condition, the candidate particle is penalized according to the preset penalty function. The penalized candidate particle is saved in the initial history set to update the initial history set. Further, the step of selecting a particle from the population as the current particle is repeated until the optimal neighborhood set and the optimal history set are obtained, and the target particle swarm optimization model is determined according to the optimal neighborhood set and the optimal history set.

[0070] In the above steps, the speed and position of the particles are continuously updated according to the binary particle swarm optimization algorithm to find the optimal solution. At the same time, the advantages and disadvantages of the fault reconstruction scheme represented by each particle are evaluated according to the objective optimization function and constraints. It can quickly and accurately find the equivalent and optimal fault reconstruction scheme and improve the accuracy of the target particle swarm optimization model.

[0071] Step 209: Determine each target fault reconstruction scheme of the distribution network based on all individuals in the optimal history set.

[0072] In order to verify the optimization performance of the distribution network fault reconstruction method based on the improved evolutionary algorithm in this scheme, three competitive algorithms (multi-objective genetic algorithm, genetic algorithm, and multi-objective particle swarm algorithm) were selected on a distribution network with 33 nodes (IEEE 33) based on the IEEE standard, and the spacing index (Spacing, SP), hypervolume index (Hypervolume, HV), improved inverted generational distance index (Inverted Generational Distance, IGD-CF) and improved penalized space perturbation distance (Penalized Space Perturbation Distance, PSP-D) indicators were verified. The experiments show that the binary particle swarm optimization algorithm (target particle swarm optimization model) proposed in this scheme can provide higher quality fault reconstruction solutions and can find more equivalent solutions. The verification test is as follows:

[0073] Figure 3 This is a schematic diagram of the distribution network structure provided by an embodiment of the present invention. Figure 3 As shown, Figure 1The black dots in the diagram represent nodes, and the black numbers on the black dots represent the node numbers. The lines between every two adjacent nodes represent segment switches (branches), and the red numbers on the segment switches represent the segment switch numbers. The red dotted lines represent interconnected switches, and the red numbers on the red dotted lines represent the interconnected switch numbers. Figure 3 As can be seen, there are 33 nodes, 5 interconnected switches and 32 segment switches in the IEEE 33 bus distribution network. The reference voltage is set to 12.66 kV. The initial power loss and voltage deviation are set to 191 kV and 0 per unit, respectively, the population size is set to 100, the maximum number of function evaluations is set to 10000, and the number of function evaluations = population size * maximum number of iterations. The model of this scheme and the three compared algorithms are independently run 21 times on the IEEE33 bus distribution network.

[0074] Assume that the segment switch "9" in the IEEE 33-bus distribution network fails. The experimental results of the multi-objective genetic algorithm (denoted by NSGA-II in the table), the genetic algorithm (denoted by MOPSO in the table), the multi-objective particle swarm algorithm (denoted by SPEA2 in the table) and the method of this scheme (denoted by DMMPSO-NNS in the table) are shown in Table 1 below:

[0075]

[0076]

[0077] Table 1

[0078] As can be seen from Table 1, the results of the proposed method on SP, HV, IGD-CF and PSP-D are the best. SP, HV and IGD-CF are mainly used to evaluate the performance of the algorithm in the target space, so compared with other algorithms, the proposed algorithm can find solutions (fault reconstruction solutions) with better approximation and diversity. The PSP-D evaluation index is used to evaluate the performance in the decision space. It can be seen from Table 1 that the proposed scheme can find more equivalent solutions.

[0079] In the technical solution of this embodiment, the historical fault data of the distribution network is obtained, and the power loss function is determined according to the number of branches, branch state variables, branch resistance, branch active power, branch reactive power and branch terminal voltage of the distribution network. The voltage deviation function is determined according to the number of nodes, branch terminal voltage and rated node voltage of each node of the distribution network. A particle swarm optimization model is constructed based on the historical fault data and a predetermined particle swarm optimization algorithm. When the particle swarm optimization model does not meet the preset conditions, a particle is selected from the population as the current particle; a preset number of individuals closest to the current particle are selected from the initial history set according to the preset search algorithm, and the initial neighborhood set is updated based on the preset number of individuals. The difference between each two individuals in the updated initial neighborhood set and the initial history set is calculated respectively, and the individuals in the updated initial neighborhood set and the initial history set are sorted based on the difference to obtain a candidate neighborhood set and a candidate history set. Determine the optimal neighborhood individual and the optimal history individual from the candidate neighborhood set and the candidate history set respectively; based on the optimal neighborhood individual, the optimal history individual, the fault reconstruction mathematical model, the speed update formula and the position update formula of the preset particles, update the initial history set until the particle swarm optimization model meets the preset conditions, and obtain the optimal neighborhood set and the optimal history set; determine each target fault reconstruction scheme of the distribution network based on all individuals in the optimal history set. The technical scheme of this embodiment can use the binary particle swarm optimization algorithm and the fault reconstruction mathematical model to propose more equivalent schemes when a fault occurs in the distribution network, thereby improving the accuracy and reliability of the distribution network fault reconstruction. It can consider multiple objectives at the same time, such as reducing power loss, improving voltage quality, etc., so as to achieve more comprehensive optimization. Providing multiple equivalent fault reconstruction schemes enables the method of this scheme to adapt to different fault conditions and requirements, and improves the flexibility and adaptability of the distribution network fault reconstruction method based on the improved evolutionary algorithm.

[0080] Figure 4 The flowchart of using the target particle swarm optimization model to determine the fault reconstruction solution provided by the embodiment of the present invention. The specific method can be as follows Figure 4 As shown, the method may include the following steps:

[0081] Step 401: Receive current fault data of the distribution network.

[0082] Among them, the current fault data includes the basic data and fault data of the distribution network. The basic data includes the structural data and equipment data of the distribution network, such as the number of nodes and branches of the distribution network, topological structure information, switch position, switch status, power, voltage, susceptance, conductance of each node, power and resistance of each branch, etc. The fault data includes the fault type (such as short circuit, open circuit), fault location and fault time, etc. Specifically, when a fault occurs in the distribution network, the user can send the current fault data of the distribution network to the server, or the server can automatically obtain the current fault data from the distribution network.

[0083] Step 402: input the current fault data into the target particle swarm optimization model to obtain the optimal history set corresponding to the current fault data output by the particle swarm optimization model.

[0084] Among them, the optimal history set is the output of the target particle swarm optimization model, including multiple equivalent fault reconstruction schemes that meet the target optimization function and constraint conditions of the pre-established fault reconstruction mathematical model. After obtaining the current fault data, the current fault data is input into the trained particle swarm optimization model, and the model is used to find the most similar situation in the historical data to the current fault, and find the optimal solution set under these situations, that is, the optimal history set.

[0085] Step 403: Determine each target fault reconstruction solution corresponding to the current fault data based on all individuals in the optimal history set.

[0086] Specifically, after obtaining the optimal history set, according to each individual in the optimal history set and in combination with the current actual situation, the best reconstruction plan for the current fault is formulated from each equivalent fault reconstruction plan, thereby obtaining the target fault reconstruction plan.

[0087] The technical solution of this embodiment receives the current fault data of the distribution network; inputs the current fault data into the particle swarm optimization model to obtain the optimal history set corresponding to the current fault data output by the particle swarm optimization model; and determines each target fault reconstruction scheme corresponding to the current fault data based on all individuals in the optimal history set. The technical solution of this embodiment can quickly find multiple effective fault reconstruction schemes through the particle swarm optimization model, determine the optimal fault reconstruction scheme according to the actual scenario, and improve the accuracy and reliability of the fault reconstruction scheme. It reduces the fault recovery time and improves the overall response speed of the distribution network.

[0088] Figure 5 The present invention provides a schematic diagram of the structure of a distribution network fault reconstruction device based on an improved evolutionary algorithm, which is suitable for executing a distribution network fault reconstruction method based on an improved evolutionary algorithm provided by an embodiment of the present invention. Figure 5 As shown, the device may specifically include:

[0089] The data acquisition module 501 is used to acquire the historical fault data of the distribution network, and construct a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set and an initial history set;

[0090] A model training module 502 is used to update the initial neighborhood set based on the population when the particle swarm optimization model does not meet the preset conditions, and to update the initial history set based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, thereby obtaining an optimal neighborhood set and an optimal history set;

[0091] The solution determination module 503 is used to determine each target fault reconstruction solution of the distribution network based on all individuals in the optimal history set.

[0092] Optionally, the fault reconstruction mathematical model includes a target optimization function and constraints, the constraints include power balance constraints and operation constraints, and before the construction of the initialized particle swarm optimization model, the model training module 502 is specifically used to: determine the power balance constraint of the fault reconstruction model according to the reactive power, active power, node voltage, susceptance, conductance and phase difference of each node of the distribution network;

[0093] The operation constraints of the fault reconstruction model are determined according to the node voltages of the nodes of the distribution network, the branch currents and the topological structure of the distribution network.

[0094] Optionally, the model training module 502 is further used to: determine the power loss function according to the number of branches, branch state variables, branch resistance, branch active power, branch reactive power and branch terminal voltage of the distribution network;

[0095] The voltage deviation function is determined according to the number of nodes of the distribution network, the branch terminal voltage and the rated node voltage of each node.

[0096] Optionally, the model training module 502 is further used to: select a particle from the population as a current particle;

[0097] A preset number of individuals closest to the current particle are selected from the initial history set according to a preset search algorithm, and the initial neighborhood set is updated based on the preset number of individuals.

[0098] Optionally, the model training module 502 is further used to: respectively calculate the difference between every two individuals in the updated initial neighborhood set and the initial history set, and sort the individuals in the updated initial neighborhood set and the initial history set based on the difference to obtain a candidate neighborhood set and a candidate history set;

[0099] Determine the best neighborhood individual and the best history individual from the candidate neighborhood set and the candidate history set respectively;

[0100] The initial history set is updated based on the optimal neighborhood individual, the optimal history individual, the fault reconstruction mathematical model, and a speed update formula and a position update formula of a preset particle.

[0101] Optionally, the model training module 502 is further used to: substitute the optimal neighborhood individual and the optimal historical individual into the speed update formula and the position update formula to obtain a candidate particle corresponding to the current particle;

[0102] Evaluate and optimize the candidate particles based on the fault reconstruction mathematical model to obtain optimized candidate particles;

[0103] The initial history set is updated based on the optimized candidate particles.

[0104] Optionally, the solution determination module 503 is specifically configured to: receive current fault data of the distribution network;

[0105] Inputting the current fault data into the particle swarm optimization model to obtain an optimal history set corresponding to the current fault data output by the particle swarm optimization model;

[0106] Each target fault reconstruction scheme corresponding to the current fault data is determined based on all individuals in the optimal history set.

[0107] The distribution network fault reconstruction device based on the improved evolutionary algorithm provided in the embodiment of the present invention can execute the distribution network fault reconstruction method based on the improved evolutionary algorithm provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. The contents not described in detail in this embodiment can refer to the description in any method embodiment of the present invention.

[0108] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, referring to Figure 6 , Figure 6 The electronic device 12 shown is only an example and should not limit the functions and scope of use of the embodiments of the present application. Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0109] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0110] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0111] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.

[0112] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0113] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0114] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a distribution network fault reconstruction method based on an improved evolutionary algorithm provided in an embodiment of the present invention: obtaining historical fault data of the distribution network, and constructing a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set and an initial history set; when the particle swarm optimization model does not meet the preset conditions, the initial neighborhood set is updated based on the population, and the initial history set is updated based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, a target particle swarm optimization model is obtained, and the target particle swarm optimization model includes an optimal neighborhood set and an optimal history set; and each target fault reconstruction scheme of the distribution network is determined based on all individuals of the optimal history set.

[0115] The embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, a distribution network fault reconstruction method based on an improved evolutionary algorithm as provided in all the embodiments of the present invention is implemented: historical fault data of the distribution network is obtained, and a particle swarm optimization model is constructed based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set, and an initial history set; when the particle swarm optimization model does not meet the preset conditions, the initial neighborhood set is updated based on the population, and the initial history set is updated based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model until the particle swarm optimization model meets the preset conditions, and a target particle swarm optimization model is obtained, the target particle swarm optimization model includes an optimal neighborhood set and an optimal history set; each target fault reconstruction scheme of the distribution network is determined based on all individuals in the optimal history set. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electronic device, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction-executing electronic device, apparatus, or device.

[0116] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction-executing electronic device, apparatus, or device.

[0117] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0118] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0119] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A distribution network fault reconstruction method based on an improved evolutionary algorithm, characterized in that: The method comprises: Acquire historical fault data of the distribution network, and construct a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set, and an initial history set; When the particle swarm optimization model does not meet the preset conditions, the initial neighborhood set is updated based on the population, and the initial history set is updated based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, a target particle swarm optimization model is obtained, and the target particle swarm optimization model includes an optimal neighborhood set and an optimal history set; Each target fault reconstruction scheme of the distribution network is determined based on all individuals of the optimal history set.

2. The method according to claim 1, characterized in that The fault reconstruction mathematical model includes a target optimization function and constraints, wherein the constraints include power balance constraints and operation constraints. Before constructing the initialization particle swarm optimization model, the method further includes: Determining the power balance constraint of the fault reconstruction model according to reactive power, active power, node voltage, susceptance, conductance and phase difference of each node of the distribution network; The operation constraints of the fault reconstruction model are determined according to the node voltages of the nodes of the distribution network, the branch currents and the topological structure of the distribution network.

3. The method according to claim 2, characterized in that The target optimization function includes a power loss function and a voltage deviation function. Before constructing the initialization particle swarm optimization model, the method further includes: Determining the power loss function according to the number of branches of the distribution network, branch state variables, branch resistances, branch active power, branch reactive power and branch terminal voltage; The voltage deviation function is determined according to the number of nodes of the distribution network, the branch terminal voltage and the rated node voltage of each node.

4. The method according to claim 1, characterized in that: Updating the initial neighborhood set based on the population includes: Selecting a particle from the population as a current particle; A preset number of individuals closest to the current particle are selected from the initial history set according to a preset search algorithm, and the initial neighborhood set is updated based on the preset number of individuals.

5. The method according to claim 1, characterized in that Updating the initial history set based on the updated initial neighborhood set, the pre-established optimization objective function and the constraint conditions, comprising: Calculating the difference between every two individuals in the updated initial neighborhood set and the initial history set respectively, and sorting the individuals in the updated initial neighborhood set and the initial history set respectively based on the difference to obtain a candidate neighborhood set and a candidate history set; Determine the best neighborhood individual and the best history individual from the candidate neighborhood set and the candidate history set respectively; The initial history set is updated based on the optimal neighborhood individual, the optimal history individual, the fault reconstruction mathematical model, and a speed update formula and a position update formula of a preset particle.

6. The method according to claim 5, characterized in that Based on the optimal neighborhood individual, the optimal historical individual, the fault reconstruction mathematical model, and the speed update formula and position update formula of the preset particles, the initial history set is updated, including: Substituting the optimal neighborhood individual and the optimal historical individual into the speed update formula and the position update formula to obtain a candidate particle corresponding to the current particle; Evaluate and optimize the candidate particles based on the fault reconstruction mathematical model to obtain optimized candidate particles; The initial history set is updated based on the optimized candidate particles.

7. The method according to claim 1, characterized in that The method further comprises: Receiving current fault data of the power distribution network; Inputting the current fault data into the target particle swarm optimization model to obtain an optimal history set corresponding to the current fault data output by the particle swarm optimization model; Each target fault reconstruction scheme corresponding to the current fault data is determined based on all individuals in the optimal history set.

8. A distribution network fault reconstruction device based on an improved evolutionary algorithm, characterized in that: include: A data acquisition module, used to acquire historical fault data of the distribution network, and construct a particle swarm optimization model based on the historical fault data and a predetermined particle swarm optimization algorithm; wherein the particle swarm optimization model includes a population, particles, an initial neighborhood set and an initial history set; A model training module, used for updating the initial neighborhood set based on the population when the particle swarm optimization model does not meet the preset conditions, and updating the initial history set based on the updated initial neighborhood set and a pre-established fault reconstruction mathematical model, until the particle swarm optimization model meets the preset conditions, thereby obtaining an optimal neighborhood set and an optimal history set; A scheme determination module is used to determine each target fault reconstruction scheme of the distribution network based on all individuals in the optimal history set.

9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, a distribution network fault reconstruction method based on an improved evolutionary algorithm as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a distribution network fault reconstruction method based on an improved evolutionary algorithm as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Power system alternating current power flow solving method based on binary neighborhood dynamic expansion

    CN119944683A

  • Power distribution automatic control system based on fault positioning

    CN120073717A

  • A distribution automation control system based on fault location

    CN120073717B