Medium-and-long-term maintenance plan arrangement method for power distribution network based on beetle search algorithm

Through the multi-objective optimization method based on the beetle search algorithm, the scientific and cost-effective problems of maintenance plan arrangement in the distribution network are solved, and the effect of reducing power outage time and cost is achieved.

CN118627666APending Publication Date: 2024-09-10SUQIAN POWER SUPPLY COMPANY OF JIANGSU PROVINCE POWER +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410709639.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the distribution network, it is a challenge to scientifically and rationally formulate maintenance plans to reduce equipment outage time and maintenance costs, especially because the distribution network structure is complex and equipment failure can cause power outages for users. It is difficult for existing technologies to effectively balance risks and costs. .

Method used

A multi-objective optimization method based on the beetle search algorithm is used to establish an optimization model of the distribution network maintenance plan by obtaining equipment status information, analyzing failure rates and risks, and using the improved beetle search algorithm to solve the model to determine the optimal maintenance plan.

Benefits of technology

It achieves the reduction of maintenance costs on the premise of reducing equipment outage time, enables the distribution network system to operate economically and reliably, and effectively balances maintenance risks and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627666A
    Figure CN118627666A
Patent Text Reader

Abstract

The invention discloses a beetle search algorithm-based medium-and-long-term maintenance plan arrangement method for a power distribution network. According to the technical principle of distribution network equipment state maintenance based on risk assessment, the fault probability of equipment is obtained, and then on the premise that safe and reliable operation of a power grid is met and maintenance constraints are considered, the maintenance time and the maintenance mode are taken as decision variables, the maintenance risk and the fault risk minimization are taken as objective functions, an optimization model target is established, and the fault probability of the equipment is obtained. And finally, solving through an improved beetle search algorithm. Compared with a single-target optimization model which only considers the maintenance risk or the fault risk, the optimization model which comprehensively considers the maintenance risk and the fault risk can effectively reduce the comprehensive risk of the power distribution system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for scheduling a medium- and long-term maintenance plan for a distribution network based on a beetle search algorithm, and belongs to day-ahead dispatching on the distribution network side of a power system. Background Art

[0002] Risk-based condition maintenance seeks to minimize risks and maximize benefits among economic and social benefits, costs and risks. In the context of condition maintenance, we must not only know the risks faced by the equipment and the risks that may be caused, but also take into account the costs required to reduce the risks, so as to make reasonable decisions. The condition maintenance of distribution network equipment based on risk assessment not only inherits the general methods of maintenance technology based on equipment risks, but also takes into account the particularity of the distribution network. The distribution network has a complex structure and a wide variety of equipment. Equipment failures usually cause power outages for users. Therefore, in the daily operation of the distribution network, it is very important to formulate a scientific and reasonable maintenance plan. An appropriate maintenance plan can reduce maintenance costs while reducing equipment power outage time, so that the system can operate economically and reliably. Summary of the invention

[0003] The present invention provides a method for scheduling medium- and long-term maintenance plans for a distribution network based on a beetle search algorithm, which solves the problems disclosed in the background technology.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0005] A method for scheduling medium- and long-term maintenance plans for a distribution network based on a beetle search algorithm comprises the following steps:

[0006] Step 1, obtaining the status information of the device, and calculating the failure rate of the device from the status information of the device;

[0007] Step 2: Analyze the maintenance risk and failure risk of the distribution network based on the failure rate of the equipment;

[0008] Step 3, establishing a multi-objective optimization model for distribution network maintenance plan;

[0009] Step 4: Solve the distribution network maintenance plan model through the improved beetle search algorithm.

[0010] In step 1, the failure rate of the equipment is solved as follows:

[0011]

[0012] R(t) is the reliability of the equipment, F(t) is the failure rate, t1 and t2 are the start and end time nodes of the maintenance time.

[0013] In step 2, the distribution network maintenance risk R M The specific calculation is as follows:

[0014]

[0015] Where N T is the number of time periods in the maintenance cycle; R M1 (t) is the risk caused by the equipment maintenance cost during period t; R M2 (t) is the load loss risk of the power grid maintenance plan during period t; R M3 (t) is the random load loss risk of the power grid during period t; P ω (t) is the probability of the maintenance scenario ω during period t; is the set of equipment to be repaired during period t; C m,a is the maintenance cost of equipment m under maintenance method a; P M2 (t) is the planned load loss per unit time caused by equipment maintenance; T d is the duration of load power outage, which includes maintenance recovery time, backup power supply input time or switching operation time, etc.; K(t) is the set of possible failure modes in time period t; F x (t) is the probability of failure of device x in period t, P k,0 and The t period is not considered and considered respectively. The load loss caused by fault mode k; C p is the unit electricity price of planned load loss; C R is the unit electricity price of random load loss; M R and M F are the number of reliable working equipment and the number of unreliable working equipment corresponding to the maintenance scenario ω in time period t, respectively.

[0016] In step 2, the distribution network failure risk R F It is obtained by the following formula:

[0017]

[0018] Where ψ(m) is the set of equipment to be repaired during the maintenance cycle; F x (t) is the probability of failure of device x in time period t; R F1,x (t) is the grid operation loss caused by the failure of device x during period t; R F2,x (t) is the individual loss of device x that fails during time period t; P F1,x (t) is the load loss per unit time caused by the failure of equipment x during period t; T x is the duration of load power outage, including fault recovery time, backup power supply input time or switching operation time; η x (t) is the probability of repairing the failure of device x during period t; C m,x and C r,xThey are respectively the fault repair cost and replacement cost of equipment x.

[0019] In step 3, under the premise of ensuring safe and reliable operation of the power grid and considering maintenance constraints, the maintenance time and maintenance method are used as decision variables, and the maintenance risk and failure risk are minimized as the objective function. The goal of the established optimization model is:

[0020] minF=(R M +R F ).

[0021] Where F represents the target value of the optimization model, which is the sum of the maintenance risk and failure risk costs, and R M represents the maintenance risk of distribution network, R F Indicates the risk of distribution network failure.

[0022] In step 4, the above model is an optimization problem composed of discrete variables, which uses integer programming or heuristic intelligent optimization algorithm for optimization and solution. The main steps of the process of solving the distribution network maintenance plan model of the present invention are as follows:

[0023] Step 5.1, use the randomly generated mixed random sampling technique to initialize the beetle population and encode the individuals. The calculation formula is as follows:

[0024]

[0025] n pop =N pop / 2

[0026] Where i = 1, 2, ..., n pop , j = n pop +1,...,N pop , N pop is the number of individuals, L and U represent the lower and upper bound vectors of the search space, D is the dimension, rand is a random number between (0,1), and X (0) is the initial population;

[0027] Step 5.2, evaluate the population, store the memory matrix and the beetle pioneer individuals, and determine the pioneer individuals of each generation according to the following formula:

[0028]

[0029] In the formula is represented as the pioneer individual of the gth generation, is the jth individual of the mth population in the gth generation, is the corresponding adaptive function, N broods Indicates the population size;

[0030] Step 5.3, update the adaptive mode factor, the formula is as follows:

[0031] f pattern =U pattern -(U pattern -L pattern )*exp(1-G_max / g)

[0032] Among them, U pattern and L pattern They are the mode factors f pattern The upper and lower bounds of G_max are the maximum number of iterations; g is the current number of iterations;

[0033] Step 5.4, determine the position and direction of the pioneer beetle, the pioneer individual takes a small unidirectional step in the jth dimension, and the other dimensions remain the same. To the test location The pioneer individual step formula is as follows:

[0034]

[0035] Where Δlength is the search distance, which is 0.1, and α len is the step size factor. After searching for a period of time, if the optimal value found by the algorithm has not been improved, it means that it may fall into a local optimum. At this time, α len The value is in the range (1,5), and α is set after the algorithm jumps out of the local optimum. len Restore to 1, otherwise α len remain unchanged;

[0036] Determine the reproduction direction of pioneer beetles in the jth dimension

[0037]

[0038] Among them, f(·) represents the corresponding fitness function value,

[0039] When x direction When (j) = -1,

[0040]

[0041] In the formula rand is a random number between [0,1]. When solving the maximization problem, x direction The direction of is reversed. If the adaptation value of the pioneer-guided position is better than the adaptation value of the original position, the pioneer will stay at the test position, that is, Otherwise, it will rotate from the trial position back to the original position;

[0042] Step 5.5, reproduce according to the position and direction of the pioneer beetle, using the following search pattern:

[0043] in Represented as the kth population of the gth generation, k = 1, 2, ..., N broods ;

[0044] Step 5.6, when the predicted pioneer position is better than the current position, the pioneer position is updated and the storage memory matrix is ​​updated, otherwise, the current position remains unchanged, and the position of the pioneer insect is updated as follows;

[0045] Step 5.7: If the convergence condition is met, output the optimal solution and its fitness value, otherwise go to step 5.3.

[0046] The present invention also relates to an electronic device, which includes one or more processors for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors execute the aforementioned method for scheduling medium- and long-term maintenance plans for distribution networks based on a beetle search algorithm.

[0047] The present invention also relates to a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the aforementioned method for scheduling medium- and long-term maintenance plans for a distribution network based on a beetle search algorithm when running.

[0048] The beneficial effect of the present invention is that the present invention establishes a multi-objective optimization model for the medium- and long-term maintenance plan of the distribution network based on the beetle search algorithm. The multi-objective optimization model for the medium- and long-term maintenance plan of the distribution network is solved by the improved beetle search algorithm, and the maintenance plan is scientifically and rationally formulated. An appropriate maintenance plan can reduce the maintenance cost while reducing the power outage time of the equipment, so that the system can operate economically and reliably. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a flow chart of the method of the present invention;

[0050] Figure 2 It is a flow chart of the beetle search algorithm of the present invention. DETAILED DESCRIPTION

[0051] In order to enable persons skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention and the accompanying drawings.

[0052] The maintenance cycle of the distribution network maintenance model involved in this project is one year, the maintenance period interval is one day, and the maintenance period index is t. The overall process of the method is as follows Figure 1 As shown, the specific steps include:

[0053] Step 1: From the technical principle of distribution network equipment status maintenance based on risk assessment, it can be seen that the failure probability of equipment is an important parameter for solving risks, and the failure probability of equipment is determined by the status evaluation score of the equipment.

[0054] Specifically, the research object of the failure rate curve based on Weibull distribution is mainly the whole of a certain type of equipment, focusing on the impact of time on the equipment failure rate, but lacks specificity for individual equipment. In the context of condition-based maintenance, only considering the failure rate that changes over time is far from meeting the needs of maintenance decision-making. As an important indicator for measuring equipment reliability, the failure rate is closely related to the equipment health index. The relationship between the two is shown below:

[0055]

[0056] Where: λ is the equipment failure rate; K and C are the proportionality coefficient and curvature coefficient respectively; δ HI is the health index of the device, ranging from 0 to 100, δ HI The larger the value, the better the device status.

[0057] From the technical principle of distribution network equipment status maintenance based on risk assessment, it can be seen that the failure probability of equipment is an important parameter for solving risks, and the failure probability of equipment is determined by the status evaluation score of the equipment. Combined with the actual characteristics of the status evaluation of distribution network equipment in my country, a health index calculation formula can be obtained:

[0058]

[0059] δ HI0 is the health index of the equipment at the last evaluation; B is the equipment aging coefficient; ΔT is the time from the initial moment to the final moment.

[0060] The above formula can be used to obtain the equipment health index and the corresponding failure rate in each period of the maintenance cycle, and thus the calculation formula for the equipment reliability R(t) and failure rate F(t) within t1-t2 can be obtained.

[0061]

[0062] This method uses the repair factor to reflect the effect of different maintenance methods on the equipment health index. During the equipment maintenance cycle, the health index corresponding to the equipment at time t can be obtained from the above formula.

[0063]

[0064] Where: Δt is the time from the last status assessment; t m is the start time of maintenance of the equipment to be repaired; T mis the equipment maintenance duration; β is the health repair factor, which is 0.6 for major repairs and 0.8 for minor repairs.

[0065] Substitute the obtained equipment health index into the above formula to obtain the corresponding failure rate of the equipment. Substitute the obtained failure rate into the formula to obtain the failure probability of the equipment in each maintenance period.

[0066] Step 2: Distribution network maintenance risk analysis and distribution network failure risk analysis. The distribution network maintenance risk and distribution network failure risk are contradictory. The maintenance risk reflects the losses caused by excessive grid maintenance, which is detrimental to the economy of system operation; the failure risk reflects the losses caused by equipment failure when maintenance is insufficient, which is detrimental to the reliability of system operation. Therefore, it is crucial to control the degree of maintenance.

[0067] The distribution network maintenance risk mentioned above not only includes the risks caused by the costs invested in maintenance, such as material costs, but also often leads to the direct loss of part of the load of the power grid, the loss of reliability of electrical operation, and the possible switch operation costs in the process. The risk caused by this part of the loss is called the maintenance plan loss of load risk. At the same time, equipment outage will also lead to reduced power supply reliability and safety margin, resulting in a greater risk of system loss of load due to failure of other equipment. The risk caused by this part of the loss is called the maintenance random loss of load risk.

[0068]

[0069] Where N T is the number of time periods in the maintenance cycle; R M1 (t) is the risk caused by the equipment maintenance cost during period t; R M2 (t) is the load loss risk of the power grid maintenance plan during period t; R M3 (t) is the random load loss risk of the power grid during period t; P ω (t) is the probability of the maintenance scenario ω during period t; is the set of equipment to be repaired during period t; C m,a is the maintenance cost of equipment m under maintenance method a; P M2 (t) is the planned load loss per unit time caused by equipment maintenance; T d is the duration of load power outage, which includes maintenance recovery time, backup power supply input time or switching operation time, etc.; K(t) is the set of possible failure modes in time period t; F x (t) is the probability of failure of device x in period t, P k,0 and The t period is not considered and considered respectively. The load loss caused by fault mode k; C p is the unit electricity price of planned load loss; C Ris the unit electricity price of random load loss; M R and M F are the number of reliable working equipment and the number of unreliable working equipment corresponding to the maintenance scenario ω in time period t, respectively.

[0070] The distribution network failure risk is the sum of the product of the failure probability of each device to be repaired in each period during the maintenance cycle and the loss caused by the failure. The failure loss includes grid operation loss and individual loss. The failure of equipment in the distribution network will cause random load loss in the grid, which is called grid operation loss. Individual loss refers to the loss caused by repairing or replacing equipment after failure. In summary, the distribution network failure risk can be calculated by the following formula.

[0071]

[0072] Where ψ(m) is the set of equipment to be repaired during the maintenance cycle; F x (t) is the probability of failure of device x in time period t; R F1,x (t) is the grid operation loss caused by the failure of device x during period t; R F2,x (t) is the individual loss of device x that fails during time period t; P F1,x (t) is the load loss per unit time caused by the failure of equipment x during period t; T x is the duration of load power outage, including fault recovery time, backup power supply input time or switching operation time, etc.; η x (t) is the probability of repairing the failure of device x during period t; C m,x and C r,x They are respectively the fault repair cost and replacement cost of equipment x.

[0073] Step 3: Establish a multi-objective optimization model for the distribution network maintenance plan. Different maintenance times will lead to different equipment maintenance risks and failure risks, so maintenance time is a target variable that needs to be optimized. In addition, different maintenance methods can reduce the failure rate to different degrees, and the maintenance duration and maintenance costs are also different, resulting in differences in the corresponding equipment maintenance risks and equipment failure risks, so the maintenance method is another target variable that needs to be optimized.

[0074] Under the premise of ensuring safe and reliable operation of the power grid and considering maintenance constraints, the maintenance time and maintenance method are taken as decision variables, and the maintenance risk and failure risk are minimized as the objective function. The goal of the established optimization model is:

[0075] minF=(R M +R F ). (7)

[0077] Where F represents the target value of the optimization model, which is the sum of the maintenance risk and failure risk costs, and R M represents the maintenance risk of distribution network, R F Indicates the risk of distribution network failure.

[0078] The constraints of the optimization model are as follows:

[0079] 1) Grid security constraints

[0080] Grid security constraints are divided into node voltage constraints and line flow constraints.

[0081] U i,min <U i <U i,max (8)

[0082] S j <S jmax (9)

[0083] Where U i , U i,min , U i,max are the voltage value and the upper and lower limits of the voltage at node i, Sj is the actual power flow of the line, S jmax is the maximum power flow value allowed to pass through line j.

[0084] 2) Maintenance relationship constraints

[0085] In order to ensure the reliability of power supply, equipment that will cause unnecessary load loss or overload of other equipment should be avoided from being repaired at the same time. The simultaneous maintenance constraint and the mutually exclusive maintenance constraint are shown as follows:

[0086] t j >t i +T i -1 (10)

[0087] In the above formula, t i and t j are the maintenance start time of equipment i and j, T i is the maintenance duration of equipment i.

[0088] Due to limitations in maintenance technology, manpower and material resources, the actual number of maintenance equipment within a certain period of time should be within the permitted range.

[0089] N t ≤A t (11)

[0090] In the above formula: N t With A t They are the actual number of equipment under maintenance and the number of equipment allowed to be under maintenance during period t respectively.

[0091] 3) Radial Constraints

[0092] Load transfer leads to changes in system operation and wiring methods. In order to facilitate fixed positioning and correct positioning of protection devices, the distribution network should be operated in a radial manner.

[0093] g∈G(12)where: g is the power grid after load transfer, and G is the set of radial distribution networks.

[0094] Step 4: Solve the distribution network maintenance plan model using the improved beetle search algorithm. The solution process is as follows: Figure 2 As shown in the figure, the random variables involved in the maintenance risk and the failure risk are first set as the beetle swarm, then the swarm is evaluated, and then the adaptive mode factor is updated. The swarm is propagated by determining the position and direction of the beetle, and finally the pioneer beetle is evaluated and updated. When the convergence condition is reached, the optimization ends and the optimal solution and its fitness value are output. The main steps are as follows:

[0095] Step 5.1, use the randomly generated mixed random sampling technique to initialize the beetle population and encode the individuals. The calculation formula is as follows;

[0096]

[0097] n pop =N pop / 2

[0098] Where i = 1, 2, ..., n pop , j = n pop +1,...,N pop ,N pop is the number of individuals, L and U represent the lower and upper bound vectors of the search space, D is the dimension, rand is a random number between (0,1), and X (0) is the initial population.

[0099] Step 5.2, evaluate the population, store the memory matrix and the beetle pioneer individuals. Determine the pioneer individuals of each generation according to the following formula;

[0100]

[0101] In the formula is represented as the pioneer individual of the gth generation, is the jth individual of the mth population in the gth generation, is the corresponding adaptive function, N broods Indicates the population size.

[0102] Step 5.3, update the adaptive mode factor. The formula is as follows:

[0103] f pattern =U pattern -(U pattern -L pattern )*exp(1-G_max / g) (15)

[0104] Among them, U pattern and L pattern They are the mode factors f pattern The upper and lower bounds of G_max are as follows; G_max is the maximum number of iterations; g is the current number of iterations.

[0105] Step 5.4, determine the position and direction of the pioneer beetle, the pioneer individual takes a small unidirectional step in the jth dimension, and the other dimensions remain the same. To the test location constant:

[0106]

[0107] Where Δlength is the search distance, usually 0.1, α len is the step size factor. When the current optimal value found by the algorithm does not improve in consecutive iterations, it indicates that it may be trapped in a local optimum. At this time, α len Take a value in the range (1,5) and set α after the algorithm jumps out of the local optimum len Restore to 1, otherwise α len Remain unchanged.

[0108] According to formula (17), the reproduction direction of the pioneer beetle in the jth dimension is determined:

[0109]

[0110] Among them, f(·) represents the corresponding fitness function value.

[0111] When x direction When (j) = -1, further judgment needs to be made according to formula (18):

[0112]

[0113] In the formula rand is a random number between [0,1]. Formulas (16) and (17) correspond to minimization problems. When solving maximization problems, invert x direction It is assumed that the adaptation value of the pioneer-guided position is better than the adaptation value of the original position.

[0114] In this case, the pioneer will stay in the trial position, i.e. Otherwise, it will rotate from the test position back to the original position.

[0115] Step 5.5, reproduce according to the position and direction of the pioneer beetle. In order to improve the convergence speed of the algorithm and allocate the search resources of the algorithm more effectively, a new search mode is used, corresponding to formula (18);

[0116]

[0117] in Represented as the kth population of the gth generation, k = 1, 2, ..., N broods .

[0118] Step 5.6, evaluate and update the pioneer beetle. When the predicted pioneer position is better than the current position, update the pioneer position and update the storage memory matrix. Otherwise, the current position remains unchanged and the pioneer insect position is updated as follows;

[0119]

[0120] Step 5.7: Convergence condition judgment: If the convergence condition is met, output the optimal solution and its fitness value, otherwise go to step 5.3.

[0121] The present invention also relates to an electronic device, which includes one or more processors for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors execute the aforementioned method for scheduling medium- and long-term maintenance plans for distribution networks based on a beetle search algorithm.

[0122] The present invention also relates to a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the aforementioned method for scheduling medium- and long-term maintenance plans for a distribution network based on a beetle search algorithm when running.

[0123] The above-mentioned embodiment only expresses one implementation mode of the present invention, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A method for scheduling medium- and long-term maintenance plans for distribution networks based on a beetle search algorithm, characterized in that: The following steps are involved: Step 1, obtaining the status information of the device, and calculating the failure rate of the device from the status information of the device; Step 2: Analyze the maintenance risk and failure risk of the distribution network based on the failure rate of the equipment; Step 3, establishing a multi-objective optimization model for distribution network maintenance plan; Step 4: Solve the distribution network maintenance plan model through the improved beetle search algorithm.

2. According to the method for arranging a medium- and long-term maintenance plan for a distribution network based on a beetle search algorithm according to claim 1, it is characterized in that: In step 1, the failure rate of the equipment is solved as follows: R(t) is the reliability of the equipment, F(t) is the failure rate, t1 and t2 are the start and end time nodes of the maintenance time.

3. The method for arranging a medium- and long-term maintenance plan for a distribution network based on a beetle search algorithm according to claim 1 is characterized in that: In step 2, the distribution network maintenance risk R M The specific calculation is as follows: Where N T is the number of time periods within the maintenance cycle; R M1 (t) is the risk caused by the equipment maintenance cost during period t; R M2 (t) is the load loss risk of the power grid maintenance plan during period t; R M3 (t) is the random load loss risk of the power grid during period t; P ω (t) is the probability of the maintenance scenario ω during period t; is the set of equipment to be repaired during period t; C m,a is the maintenance cost of equipment m under maintenance method a; P M2 (t) is the planned load loss per unit time caused by equipment maintenance; T d is the duration of load power outage, specifically the maintenance recovery time, backup power supply input time or switching operation time; K(t) is the set of possible failure modes that may occur in time period t; F x (t) is the probability of failure of device x in period t, P k,0 and The t period is not considered and considered respectively. The load loss caused by fault mode k; C p is the unit electricity price of planned load loss; C R is the unit electricity price of random load loss; M R and M F are the number of reliable working equipment and the number of unreliable working equipment corresponding to the maintenance scenario ω in time period t, respectively.

4. The method for arranging a medium- and long-term maintenance plan for a distribution network based on a beetle search algorithm according to claim 1 is characterized in that: In step 2, the distribution network failure risk R F It is obtained by the following formula: Where ψ(m) is the set of equipment to be repaired during the maintenance cycle; F x (t) is the probability of failure of device x in time period t; R F1,x (t) is the grid operation loss caused by the failure of device x during period t; R F2,x (t) is the individual loss of device x that fails during time period t; P F1,x (t) is the load loss per unit time caused by the failure of equipment x during period t; T x The duration of load power outage, including fault recovery time, backup power supply input time or switching operation time; η x (t) is the probability of repairing the failure of device x during period t; C m,x and C r,x They are respectively the fault repair cost and replacement cost of equipment x.

5. The method for arranging a medium- and long-term maintenance plan for a distribution network based on a beetle search algorithm according to claim 1, characterized in that: In step 3, under the premise of ensuring safe and reliable operation of the power grid and considering maintenance constraints, the maintenance time and maintenance method are used as decision variables, and the maintenance risk and failure risk are minimized as the objective function. The goal of the established optimization model is: minF=(R M +R F )。 Where F represents the target value of the optimization model, which is the sum of the maintenance risk and failure risk costs, and R M represents the maintenance risk of distribution network, R F Indicates the risk of distribution network failure.

6. The method for arranging a medium- and long-term maintenance plan for a distribution network based on a beetle search algorithm according to claim 1, characterized in that: In step 4, the main steps of solving the distribution network maintenance plan model are as follows: Step 5.1, use the randomly generated mixed random sampling technique to initialize the beetle population and encode the individuals. The calculation formula is as follows: n pop =N pop / 2 Where i = 1, 2, ..., n pop , j = n pop +1,...,N pop , N pop is the number of individuals, L and U represent the lower and upper bound vectors of the search space, D is the dimension, rand is a random number between (0,1), and X (0) is the initial population; Step 5.2, evaluate the population, store the memory matrix and the beetle pioneer individuals, and determine the pioneer individuals of each generation according to the following formula: In the formula is represented as the pioneer individual of the gth generation, is the jth individual of the mth population in the gth generation, is the corresponding adaptive function, N broods Indicates the population size; Step 5.3, update the adaptive mode factor, the formula is as follows: f pattern =U pattern -(U pattern -L pattern )*exp(1-G_max / g) Among them, U pattern and L pattern They are the mode factors f pattern The upper and lower bounds of G_max are the maximum number of iterations; g is the current number of iterations; Step 5.4, determine the position and direction of the pioneer beetle, the pioneer individual takes a small unidirectional step in the jth dimension, and the other dimensions remain the same. To the test location The pioneer individual step formula is as follows: Where Δlength is the search distance, which is 0.1, and α len is the step size factor. After searching for a period of time, if the optimal value found by the algorithm has not been improved, it means that it may fall into a local optimum. len The value is in the range (1,5), and α is set after the algorithm jumps out of the local optimum. len Restore to 1, otherwise α len remain unchanged; Determine the reproduction direction of pioneer beetles in the jth dimension Among them, f(·) represents the corresponding fitness function value, When x direction When (j) = -1, In the formula rand is a random number between [0,1]. When solving the maximization problem, x direction The direction of is reversed. If the adaptation value of the pioneer-guided position is better than the adaptation value of the original position, the pioneer will stay at the test position, that is, Otherwise, it will rotate from the trial position back to the original position; Step 5.5, reproduce according to the position and direction of the pioneer beetle, using the following search pattern: in Represented as the kth population of the gth generation, k = 1, 2, ..., N broods ; Step 5.6, when the predicted pioneer position is better than the current position, update the pioneer position and update the storage memory matrix, otherwise, the current position will remain unchanged, and the position of the pioneer insect is updated as follows; Step 5.7: If the convergence condition is met, output the optimal solution and its fitness value, otherwise go to step 5.

3.

7. An electronic device, characterized in that: It includes one or more processors for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors execute a method for scheduling medium- and long-term maintenance plans for a distribution network based on a beetle search algorithm as described in any one of claims 1 to 6.

8. A storage medium storing a computer program, wherein: The computer program is configured to execute, when running, a method for scheduling a medium- and long-term maintenance plan for a distribution network based on a beetle search algorithm as described in any one of claims 1 to 6.