A method for calculating power flow in power grid based on Kepler optimization algorithm

By applying the Kepler optimization algorithm and multi-objective optimization function model in power grid power flow calculations, the problem of difficult processing of complex power grid conditions in the existing technology is solved, efficient and accurate power grid power flow calculations are achieved, support grid optimization decisions and improve Power system security and economy.

CN118381033BActive Publication Date: 2024-08-23INFORMATION & COMMNUNICATION BRANCH STATE GRID JIANGXI ELECTRIC POWER CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410823357.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-23
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing power system power flow calculation methods are difficult to effectively handle complex grid operating conditions, resulting in long calculation times and high memory requirements, affecting convenience.

Method used

Using the power grid power flow calculation method based on the Kepler optimization algorithm, a multi-objective optimization function model is established to target the minimum active network loss and minimum voltage deviation, and the multi-objective Kepler optimization algorithm is combined with the power grid power flow calculation to optimize each node of the power grid. electrical parameters.

Benefits of technology

It achieves high efficiency and accuracy in power grid power flow calculation, outputs Pareto solution sets with good diversity, provides rich data to support power grid optimization decision-making, and enhances the safety, stability and economic operation of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381033B
    Figure CN118381033B
Patent Text Reader

Abstract

The present invention provides a method for calculating power flow based on the Kepler optimization algorithm, including: acquiring target power grid parameters according to information from a data center and a power grid map; establishing a multi-objective optimization function model according to the target power grid parameters, wherein the multi-objective optimization function model takes minimum active network loss and minimum voltage deviation as optimization targets; applying the multi-objective optimization function model in combination with the multi-objective Kepler optimization algorithm to calculate power flow, thereby obtaining power flow calculation results. The output result obtained by applying this method to calculate power flow after comprehensively considering the minimum active network loss and the minimum voltage deviation is a set of well-diversified compromise solutions, providing rich data and analysis results. The results obtained by applying this method to calculate have good diversity and high precision, and also enhance the processing capability for nonlinear power grid characteristics, providing strong support for the safe, stable and economical operation of the power system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power flow calculation, and in particular to a power grid flow calculation method based on a Kepler optimization algorithm. Background Art

[0002] Power system flow calculation is one of the core contents of power system analysis. Its main purpose is to determine the state variables of the power system under given operating conditions, such as node voltage, phase angle, and power and current of each branch.

[0003] Power flow calculation can provide an important basis for the planning, operation, control and protection of power systems. The results of power flow calculation can be used to evaluate the operating status of the power grid, such as checking whether the voltage level, line load, transformer load, etc. meet the operating requirements of the power system.

[0004] In addition, power flow calculation can also be used to optimize the power grid, such as by adjusting the generator output, transformer tap position or the switching of reactive compensation devices, to optimize the voltage level and power flow of the power grid, reduce losses and improve the economy of the power grid. In general, power system power flow calculation is an important tool for power system analysis and design, which provides important support for the safe, stable and economic operation of the power system. With the continuous expansion of the scale of the power grid and the increasing complexity of the power grid structure, the application of power flow calculation in power system analysis and operation is becoming more and more important.

[0005] However, the power system flow calculation in the prior art cannot effectively handle complex power grid operating conditions, so that the overall calculation method has high requirements for memory and long calculation time, affecting the overall convenience.

[0006] Therefore, it is necessary to provide an accurate and efficient power flow calculation method that can handle the complex operating conditions of nonlinear power grids. Summary of the invention

[0007] The purpose of the present invention is to provide a power grid flow calculation method based on the Kepler optimization algorithm to solve the problem that the existing power grid flow calculation method is difficult to handle complex power grid operating conditions.

[0008] In a first aspect, the power grid flow calculation method based on the Kepler optimization algorithm provided by the present invention includes: S1: acquiring target power grid parameters according to information from a data center and a power grid map;

[0009] S2: establishing a multi-objective optimization function model according to the target power grid parameters, wherein the multi-objective optimization function model takes minimum active network loss and minimum voltage deviation as optimization objectives;

[0010] S3: Apply the multi-objective optimization function model in combination with the multi-objective Kepler optimization algorithm to perform power grid flow calculation, thereby obtaining a power grid flow calculation result.

[0011] The beneficial effect of the power grid flow calculation method based on the Kepler optimization algorithm provided by the present invention is that: a function with the minimum active network loss and the minimum voltage deviation as the target is constructed, and the electrical parameters of each node of the power grid are optimized by combining the multi-objective Kepler optimization algorithm to minimize the active network loss and the voltage deviation, and output a Pareto solution set with good diversity, each solution including the voltage amplitude, phase angle, and the power flow and current of each branch. The output result obtained after comprehensively considering the minimum active network loss and the minimum voltage deviation is a set of compromise solutions with good diversity, which provides rich data and analysis results and can provide scalable decision support for the formulation of power grid optimization, equipment investment, expansion planning, etc. The results obtained by applying this method for calculation are diverse and accurate, and the processing capability of nonlinear power grid characteristics is enhanced, which provides strong support for the safe, stable and economical operation of the power system.

[0012] In a possible embodiment, the target power grid parameters include power grid topology parameters, and the power grid topology parameters include PQ nodes, PV nodes, and Slack nodes.

[0013] Among them, the active power of the PQ node and reactive power is a given voltage amplitude and phase angle It needs to be determined by calculation;

[0014] The active power of the PV node and voltage amplitude is given, reactive power and phase angle It needs to be determined by calculation;

[0015] The voltage amplitude of the Slack node and phase angle is given, the active power and reactive power It needs to be determined through calculation.

[0016] In another possible embodiment, the objective function of the multi-objective optimization function model is The expression satisfies the following formula:

[0017] ,

[0018] in, represents the decision vector, which is expressed as, X = [ P 1 G ,..., P N 1 G , Q 1 G ,..., Q N 2 G , V 1 ,..., V N 3 , i 1 ,..., i N 4 ] , N1 represents the number of active powers to be solved, N2 represents the number of reactive powers to be solved, N3 represents the number of voltage amplitudes to be solved, and N4 represents the number of phase angles to be solved. Representation Node The voltage amplitude, Representation Node The voltage amplitude, Representation Node and The conductance between Representation Node and The electrical susceptance between Representation Node and The voltage phase difference between Representation and Node The set of directly connected nodes, Indicates the number of relevant branches of the power grid, Indicates the voltage deviation, Indicates The current change value of each node is Indicates the distribution network The rated voltage or expected value of each node, Indicates the number of relevant nodes in the power grid topology.

[0019] In other possible embodiments, the multi-objective optimization function model is applied in combination with the multi-objective Kepler optimization algorithm to perform power flow calculation, thereby obtaining power flow calculation results, including:

[0020] S3.1: Set the operating parameters of the multi-objective Kepler optimization algorithm;

[0021] S3.2: Initialize the population and apply the multi-objective optimization function model to evaluate the fitness value of the population;

[0022] S3.3: Perform fast non-dominated sorting on the population, obtain non-dominated individuals, and initialize the number of iterations;

[0023] S3.4: traversing the dominant individuals, grouping the non-dominant individuals and the corresponding dominant individuals based on the dominance relationship grouping strategy, and updating the positions of the dominant individuals according to the grouping results;

[0024] S3.5: performing a mutation operation on the dominant individual through an adaptive mutation operator, applying the multi-objective optimization function model to evaluate the fitness value of the dominant individual, and when the fitness value of the dominant individual after mutation is better than the fitness value of the dominant individual before mutation, updating the corresponding dominant individual;

[0025] S3.6: Apply the multi-objective optimization function model to re-evaluate the fitness value of the population, perform fast non-dominated sorting on the population, and update the non-dominated individuals;

[0026] S3.7: Determine whether the updated number of non-dominated individuals is greater than the set upper limit. When the updated number of non-dominated individuals is greater than the set upper limit, execute S3.8. When the updated number of non-dominated individuals is less than or equal to the set upper limit, execute S3.9.

[0027] S3.8: Calculate the k nearest neighbor density of each non-dominated individual, sort the non-dominated individuals in descending order according to the k nearest neighbor density, select the non-dominated individuals from large to small according to the set upper limit, and then go to S3.7;

[0028] S3.9: Update the number of iterations to make the number of iterations + 1. When the updated number of iterations is less than or equal to the set maximum number of iterations, go to execute S3.4 to continue the optimization. When the updated number of iterations is greater than the set maximum number of iterations, output the non-dominated individuals to obtain the power grid flow calculation results.

[0029] The non-dominant individuals and the corresponding dominant individuals are grouped based on a dominance relationship grouping strategy, including:

[0030] S3.4.1: Get the number of non-dominated individuals by fast non-dominated sorting , the number of dominant individuals corresponding to each non-dominated individual ,Establish Hash Table ;

[0031] S3.4.2: Initialize non-dominated individual index ;

[0032] S3.4.3: Initialize the dominant individual index corresponding to the non-dominated individual ;

[0033] S3.4.4: Initialize hash table index ;

[0034] S3.4.5: When Dominant individuals When S3.4.6 is executed, No dominant individual appears in When the error occurs, go to S3.4.8;

[0035] S3.4.6: The dominant individual Remove, calculate dominant individuals With The Euclidean distance of non-dominated individuals and dominant individuals With The Euclidean distance of non-dominated individuals ,when When With The non-dominated individuals are grouped into corresponding groups to divide the dominant individuals Insert to Hash table of non-dominated individuals And execute S3.4.7, when ≥ When With The non-dominated individuals are grouped into corresponding groups to divide the dominant individuals Insert to Hash table of non-dominated individuals and proceed to S3.4.8;

[0036] S3.4.7: Update hash table index values ​​using , when the updated hash table index value , go to S3.4.5, when the updated hash table index value > When S3.4.8 is executed;

[0037] S3.4.8: Update the index value of the dominant individual corresponding to the non-dominated individual so that , when the index value of the dominant individual corresponding to the updated non-dominated individual , go to S3.4.4, when the dominant individual index value corresponding to the updated non-dominated individual > When S3.4.9 is executed;

[0038] S3.4.9: Update the non-dominated individual index values ​​so that , when the updated non-dominated individual index value When the updated non-dominated individual index value is > When , the grouping is completed;

[0039] S3.4.10: Output the grouping results.

[0040] The position and distance of the dominant individual are updated according to the grouping result, including: calculating the speed and gravitational force from the dominant individual to the non-dominated individual in each group to update the position of the dominant individual.

[0041] Among them, the speed from the dominant individual to the non-dominated individual is calculated Satisfies the following formula:

[0042] , represents a random number in the interval [0,1], denotes two randomly selected dominant individuals, Indicates The position of the dominant individual, Indicates dominant individual The upper bound of the feasible region is Indicates dominant individual The lower bound of the feasible region is , represents two coefficients, represents the probability factor, Indicates the best historical position and The Euclidean distance between them is normalized, satisfy u = [ m ( t ) × ( M s + m i ) | 2 R i ( t ) + e − 1 a i ( t ) + e | ] 1 2 , represents the minimum value to prevent division by zero error, represents the non-dominated individual mass, represents the quality of the dominant individual, express and The Euclidean distance between Indicates dominant individual The best historical position, Representing objects The semi-major axis of the elliptical orbit at generation t, Represents a number of iterations An exponentially decreasing function.

[0043] Calculate the gravitational force from the dominant individual to the non-dominated individual Satisfies the following formula:

[0044] , Indicates The eccentricity of the dominant individual, represents the result after the normalization of the mass of non-dominated individuals, represents the result after the normalization of the dominant individual mass, express and The Euclidean distance between The normalized value of Represents a random number in the interval [0,1].

[0045] Update dominant individuals The position satisfies the following formula:

[0046] , Represents two random numbers in the interval [0,1], represents the adaptive factor, Represents an individual The speed required to reach the new position, Indicates dominant individual The best historical position.

[0047] The expression of the adaptive mutation operator satisfies the following formula:

[0048] ,in, Indicates dominant individual No. variables, represents a natural constant, Indicates the current iteration number of the algorithm. represents the maximum number of iterations, represents a random number with a value in the interval [0,1] that follows a Gaussian distribution. represents the number of non-dominated individuals, represents the upper limit of the number of non-dominated individuals.

[0049] The local density expression for calculating the k nearest neighbor density of each non-dominated individual satisfies the following formula:

[0050] ,in, Indicates The local density of non-dominated individuals, Indicates the number of targets, represents the number of nearest neighbors, Represents an individual In the The value of the objective function, Represents an individual In the The value of the objective function, Indicates The maximum value of the objective function, Indicates The minimum value of the objective function.

[0051] In a second aspect, the present invention further provides a power grid flow calculation device based on the Kepler optimization algorithm, the device comprising:

[0052] The acquisition unit is used to acquire target power grid parameters based on the information of the data center and a power grid map.

[0053] The model building unit is used to establish a multi-objective optimization function model according to the target power grid parameters, wherein the multi-objective optimization function model takes minimum active network loss and minimum voltage deviation as optimization objectives.

[0054] The calculation unit is used to apply the multi-objective optimization function model in combination with the multi-objective Kepler optimization algorithm to perform power grid flow calculation, thereby obtaining a power grid flow calculation result.

[0055] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the power grid flow calculation method based on the Kepler optimization algorithm is implemented.

[0056] In a fourth aspect, the present invention also provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned power grid flow calculation method based on the Kepler optimization algorithm.

[0057] For the beneficial effects of the second to fourth aspects, reference may be made to the description of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A schematic diagram of a flow chart of a method for calculating power flow in a power grid based on a Kepler optimization algorithm provided in an embodiment of the present invention;

[0059] Figure 2 A schematic diagram of a flow chart of a multi-objective optimization function model provided in an embodiment of the present invention combined with a multi-objective Kepler optimization algorithm for power grid power flow calculation;

[0060] Figure 3 A schematic diagram of a power grid power flow calculation device based on a Kepler optimization algorithm provided by an embodiment of the present invention;

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

[0062] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0063] In view of the problems existing in the prior art, an embodiment of the present invention provides a power grid flow calculation method based on the Kepler optimization algorithm.

[0064] This embodiment provides a method for calculating power flow based on the Kepler optimization algorithm. Figure 1 , the method comprising:

[0065] S1: Collect information from the data center and a grid map to obtain target grid parameters.

[0066] In S1, in a possible embodiment, the target grid parameters include grid topology parameters, and the grid topology parameters include PQ nodes, PV nodes, and Slack nodes. and reactive power is a given voltage amplitude and phase angle It needs to be determined by calculation. Active power of PV node and voltage amplitude is given, reactive power and phase angle The voltage amplitude of the Slack node needs to be determined by calculation. and phase angle is given, the active power and reactive power It needs to be determined through calculation.

[0067] In a preferred embodiment, the target grid parameters obtained by collecting information from the data center and the grid map include: grid topology parameters, transformer parameters, line parameters, load parameters and generator parameters. Specifically, the grid topology parameters include: node type, node and branch connection mode; transformer parameters include: transformation ratio , Transformer short-circuit loss , Transformer no-load loss ; Line parameters include: resistance Reactance , Conductivity , Electron ; Load parameters include: active load , reactive load ;Generator parameters: power factor , Rated voltage , Rated power Furthermore, the node type needs to be determined in the grid topology parameters. There are usually three types: PQ node, PV node and Slack node. and reactive power is a given voltage amplitude and phase angle It needs to be determined by calculation. Active power of PV node and voltage amplitude is given, reactive power and phase angle The voltage amplitude of the Slack node needs to be determined by calculation. and phase angle is given, the active power and reactive power It needs to be determined through calculation.

[0068] S2: A multi-objective optimization function model is established according to the target grid parameters. The multi-objective optimization function model takes the minimum active network loss and the minimum voltage deviation as the optimization objectives.

[0069] In S2, in a possible embodiment, a multi-objective optimization function model is established according to the target grid parameters to consider the voltage overlimit problem, with minimum active network loss and minimum voltage deviation as optimization targets, and generator power, transformer ratio, reactive compensation device and load power capacity as constraints.

[0070] In a specific embodiment, the objective function of the multi-objective optimization function model is The expression satisfies the following formula:

[0071] .

[0072] in, represents the decision vector, which is expressed as, X = [ P 1 G ,..., P N 1 G , Q 1 G ,..., Q N 2 G , V 1 ,..., V N 3 , i 1 ,..., i N 4 ] , N1 represents the number of active powers to be solved, N2 represents the number of reactive powers to be solved, N3 represents the number of voltage amplitudes to be solved, and N4 represents the number of phase angles to be solved. Representation Node The voltage amplitude, represents the voltage amplitude of node j, Representation Node and The conductance between Representation Node and The electrical susceptance between Representation Node and The voltage phase difference between Representation and Node The set of directly connected nodes, Indicates the number of relevant branches of the power grid, Indicates the voltage deviation, Indicates The current change value of each node is Indicates the distribution network The rated voltage or expected value of each node, Indicates the number of relevant nodes in the power grid topology.

[0073] Furthermore, the multi-objective optimization function model also establishes equality constraints for power balance constraints of each node and inequality constraints for physical constraints of electrical equipment.

[0074] Specifically, the equality constraint satisfies the following formula: .in, Representation Node The active output, represents the reactive power output of node i, Representation Node The load active power, Representation Node The load reactive power, Representation Node The voltage amplitude, Representation Node The phase angle, Representation Node The voltage amplitude, Representation Node The phase angle, Representation Node and The conductance between Representation Node and The electrical impedance between.

[0075] The inequality constraints satisfy the following formula: .

[0076] in, Indicates The upper limit of the active power of the generator, Indicates The lower limit of the active power of the generator, Indicates The reactive power limit of the generator, Indicates The reactive power lower limit of the generator, Indicates The upper limit of the transformer ratio, Indicates The lower limit of the transformer ratio, Indicates The reactive power upper limit of reactive power compensation device, Indicates The reactive power lower limit of the reactive power compensation device, represents the number of generators, represents the number of transformers, Indicates the number of reactive power compensation devices.

[0077] The expression of apparent power satisfies the following formula: .in, Indicates generator The apparent power, Indicates generator The active power, Indicates generator The power factor.

[0078] S3: Apply the multi-objective optimization function model combined with the multi-objective Kepler optimization algorithm to perform power grid flow calculation, thereby obtaining the power grid flow calculation results.

[0079] See the instruction manual Figure 2 In S3, in a possible embodiment, a multi-objective optimization function model is applied in combination with a multi-objective Kepler optimization algorithm to perform power flow calculation, thereby obtaining a power flow calculation result, including:

[0080] S3.1: Set the operating parameters of the multi-objective Kepler optimization algorithm.

[0081] In a possible embodiment, the multi-objective Kepler optimization algorithm operating parameters set include: group size , the upper limit of the number of suns , maximum number of iterations , neighbor selection parameter , the initial value of the linear reduction factor , the depth control parameter of the linear decreasing factor , number of cycles , the lower bound of the feasible region , the upper bound of the feasible region .

[0082] S3.2: Initialize the population and apply the multi-objective optimization function model to evaluate the fitness of the population.

[0083] In a specific embodiment, the initialization population expression is as follows: .in, Represents the population, Indicates The position of the planets, The calculation satisfies the following formula: .in, Indicates dominant individual The upper bound of the feasible region is Indicates dominant individual The lower bound of the feasible region; Represents a random number between the interval [0,1]. The expression for evaluating the fitness value of the population is as follows: fit = [ F ( X i ) F ( X 2 ) ... F ( X N pop ) ] .in, represents the population fitness value, Indicates the Position of the planets As decision variables, the objective function expression of the multi-objective optimization function model is The calculated fitness value.

[0084] S3.3: Perform fast non-dominated sorting on the population, obtain non-dominated individuals, and initialize the number of iterations.

[0085] In a possible embodiment, a fast non-dominated sort is performed on the population to obtain non-dominated individuals, and the non-dominated individuals are defined as sun individuals. The number of initialization iterations is .

[0086] S3.4: Traverse the dominant individuals, group the non-dominated individuals and the corresponding dominant individuals based on the dominance relationship grouping strategy, and update the position of the dominant individuals according to the grouping result.

[0087] In S3.4, in a possible embodiment, the dominant individuals are traversed and a grouping strategy based on the dominance relationship is adopted to group the sun The planetary individuals they dominate are grouped into one group, that is, the non-dominated individuals and the corresponding dominant individuals are grouped based on the dominance relationship grouping strategy. After the grouping is completed, the speed and gravity from the dominant individual (planetary individual) to the non-dominated individual (sun individual) in each group are calculated, and then the dominant individual is updated. location.

[0088] In a specific embodiment, the non-dominant individuals and the corresponding dominant individuals are grouped based on the dominance relationship grouping strategy, including:

[0089] S3.4.1: Get the number of non-dominated individuals (sun individuals) by fast non-dominated sorting , the number of dominant individuals (planetary individuals) corresponding to each non-dominated individual , that is, to obtain the number of planetary individuals dominated by each sun individual, and to establish Hash Table .

[0090] S3.4.2: Initialize non-dominated individual index .

[0091] S3.4.3: Initialize the dominant individual index corresponding to the non-dominated individual .

[0092] S3.4.4: Initialize hash table index .

[0093] S3.4.5: When Dominant individuals When S3.4.6 is executed, No dominant individual appears in , go to S3.4.8.

[0094] S3.4.6: The dominant individual Remove, calculate dominant individuals With The Euclidean distance of non-dominated individuals and dominant individuals With The Euclidean distance of non-dominated individuals ,when When With The non-dominated individuals are grouped into corresponding groups to divide the dominant individuals Insert to Hash table of non-dominated individuals And execute S3.4.7, when ≥ When With The non-dominated individuals are grouped into corresponding groups to divide the dominant individuals Insert to Hash table of non-dominated individuals And go to S3.4.8.

[0095] S3.4.7: Update hash table index values ​​using , when the updated hash table index value , go to S3.4.5, when the updated hash table index value > , execute S3.4.8.

[0096] S3.4.8: Update the index value of the dominant individual corresponding to the non-dominated individual so that , when the dominant individual index value corresponding to the updated non-dominated individual , go to S3.4.4, when the dominant individual index value corresponding to the updated non-dominated individual > , execute S3.4.9.

[0097] S3.4.9: Update the non-dominated individual index values ​​so that , when the updated non-dominated individual index value When the updated non-dominated individual index value is > When , the grouping is completed.

[0098] S3.4.10: Output the grouping results.

[0099] The position and distance of the dominant individual are updated according to the grouping result, including: calculating the speed and gravitational force from the dominant individual to the non-dominated individual in each group to update the position of the dominant individual;

[0100] Among them, the speed from the dominant individual to the non-dominated individual is calculated Satisfies the following formula:

[0101] , represents a random number in the interval [0,1], denotes two randomly selected dominant individuals, Indicates The position of the dominant individual, Indicates dominant individual The upper bound of the feasible region is Indicates dominant individual The lower bound of the feasible region. , Represents two coefficients, and its expression is as follows: , . represents the probability factor, which is expressed as follows: . Indicates the best historical position and The Euclidean distance between them is normalized, and its definition satisfies the following formula: .

[0102] satisfy u = [ m ( t ) × ( M s + m i ) | 2 R i ( t ) + e − 1 a i ( t ) + e | ] 1 2 ,in represents the minimum value to prevent division by zero error, represents the non-dominated individual mass, represents the quality of the dominant individual, express and The Euclidean distance between Indicates dominant individual The best historical position, Representing objects The semi-major axis of an elliptical orbit at generation t is defined by Kepler's third law: a i ( t ) = r 3 × [ T i 2 × m ( t ) × ( M s + m i ) 4 π 2 ] 1 3 . Represents a number of iterations An exponentially decreasing function used to control the search accuracy, which is defined as follows: ,in and Control parameters separately The starting value and linearly decreasing depth, in a specific embodiment Set to 15, Set to 0.1.

[0103] Calculate the gravitational force from the dominant individual to the non-dominated individual Satisfies the following formula:

[0104] , Indicates The eccentricity of the dominant individual, It represents the result after the normalization of the mass of non-dominated individuals, and its calculation satisfies the following formula: ; It represents the result after the normalization of the dominant individual mass, and its calculation satisfies the following formula: ;in represents the global optimal solution of the tth generation, represents the global worst solution of the tth generation, and The corresponding expression satisfies the following formula: , , Represents weights and has the following relationship: ∑ k = 1 N w k = 1 , w k ∈ [ 0 , 1 ] . express and The Euclidean distance between The normalized value of is expressed as follows: . Represents a random number in the interval [0,1].

[0105] Update dominant individuals The position satisfies the following formula:

[0106] , Represents two random numbers in the interval [0,1]. represents the adaptive factor, and its expression satisfies: , Represents a randomly generated number based on a normal distribution. Represents a factor that decreases linearly from 1 to -2. Its expression is as follows: . It represents the ratio of the maximum number of iterations to the orbital period, and the expression is: . Represents an individual The speed required to reach the new position. Indicates dominant individual The best historical position. The expression is as follows: .

[0107] When the method of the present invention is used to calculate power grid flow, by adopting a grouping strategy based on dominance relationship, the dominance individuals (planetary individuals) can be evenly distributed in the search space during the search process to prevent aggregation.

[0108] S3.5: The dominant individual is mutated through the adaptive mutation operator, and the fitness value of the dominant individual is evaluated by applying the multi-objective optimization function model. When the fitness value of the dominant individual after mutation is better than the fitness value of the dominant individual before mutation, the corresponding dominant individual is updated.

[0109] In a specific embodiment, the expression of the adaptive mutation operator satisfies the following formula:

[0110] ,in, Indicates dominant individual No. variables, represents a natural constant, Indicates the current iteration number of the algorithm. represents the maximum number of iterations, represents a random number with a value in the interval [0,1] that follows a Gaussian distribution. represents the number of non-dominated individuals, represents the upper limit of the number of non-dominated individuals.

[0111] By using an adaptive mutation operator to mutate the dominant individuals and then selectively updating the dominant individuals based on the comparison of the situations before and after the mutation, it is possible to adaptively adjust the mutation probability and amplitude, balance the global and local search capabilities of the population, and enable the population to quickly approach the true Pareto frontier.

[0112] S3.6: Apply the multi-objective optimization function model to re-evaluate the fitness of the population, perform fast non-dominated sorting on the population, and update the non-dominated individuals.

[0113] S3.7: Determine whether the updated number of non-dominated individuals is greater than the set upper limit. When the updated number of non-dominated individuals is greater than the set upper limit, execute S3.8. When the updated number of non-dominated individuals is less than or equal to the set upper limit, execute S3.9.

[0114] In a specific embodiment, the upper limit of the number is set as the upper limit of the number of suns set when setting the operating parameters of the multi-objective Kepler optimization algorithm. .

[0115] Exemplarily, the number of non-dominated individuals after updating is determined Is it greater than the set limit? ,when When S3.8 is executed, ≤ , execute S3.9.

[0116] S3.8: Calculate the k-nearest neighbor density of each non-dominated individual, sort the non-dominated individuals in descending order according to the k-nearest neighbor density, select the non-dominated individuals from large to small according to the set upper limit, and then go to execute S3.7.

[0117] In a possible embodiment, the local density expression for calculating the k nearest neighbor density of each non-dominated individual satisfies the following formula:

[0118] ,in, Indicates The local density of non-dominated individuals, Indicates the number of targets, represents the number of nearest neighbors, Represents an individual In the The value of the objective function, Represents an individual In the The value of the objective function, Indicates The maximum value of the objective function, Indicates The minimum value of the objective function.

[0119] In a specific embodiment, sorting the non-dominated individuals in descending order according to the k nearest neighbor density and selecting the non-dominated individuals from large to small according to the set upper limit of quantity includes: sorting the non-dominated individuals in descending order according to the k nearest neighbor density, selecting the non-dominated individuals from large to small according to the set upper limit of quantity. A non-dominant individual.

[0120] The application of the selection strategy based on k-nearest neighbor density can effectively improve the diversity of the population to obtain a uniformly distributed Pareto solution set, effectively improving the convergence and distribution of the algorithm.

[0121] S3.9: Update the number of iterations to make the number of iterations + 1, when the updated number of iterations is less than or equal to the set maximum number of iterations , it goes to execute S3.4 to continue the optimization. When the updated number of iterations is greater than the set maximum number of iterations, the non-dominated individuals are output to obtain the power grid flow calculation results.

[0122] In a possible embodiment, the non-dominated individuals are output as the final power grid flow calculation result, that is, the voltage amplitude and phase angle of each node, and the power flow and current of each branch can be obtained.

[0123] The power grid flow calculation method based on the Kepler optimization algorithm of the present invention constructs a function with minimum active network loss and minimum voltage deviation as the target, and optimizes the electrical parameters of each node of the power grid by adopting a multi-objective Kepler optimization algorithm to minimize the active network loss and the voltage deviation, and outputs a Pareto solution set with good diversity, each solution including voltage amplitude, phase angle, and power flow and current of each branch. The power grid flow calculation using this method takes into account the voltage over-limit problem, takes the minimum active network loss and the minimum voltage deviation as the optimization target, takes the capacity of the generator power, transformer ratio, reactive power compensation device and load power as the constraint, and combines the improved Kepler optimization algorithm to perform flow calculation, comprehensively considers the minimum active network loss and the minimum voltage deviation, and outputs a set of well-diversified compromise solutions, provides rich data and analysis results, and can provide scalable decision support for formulating power grid optimization, equipment investment, expansion planning, etc.

[0124] The meta-heuristic iterative search for power flow calculation using the multi-objective Kepler optimization algorithm can solve discontinuous, non-differentiable, and nonlinear characteristic models. Therefore, this method has better flexibility and can effectively handle complex power grid operating conditions, such as overload and voltage instability. The algorithm specifically adopts a grouping strategy based on dominance relations to evenly distribute the dominant individuals in the search space during the search process to prevent aggregation. The dominant individuals are mutated by the adaptive mutation operator and then selectively updated according to the comparison before and after the mutation. The mutation probability and amplitude can be adaptively adjusted to balance the global and local search capabilities of the population, so that the population can quickly approach the true Pareto frontier. The selection strategy based on the k nearest neighbor density can effectively improve the diversity of the population to obtain a uniformly distributed Pareto solution set, effectively improving the convergence and distribution of the algorithm.

[0125] In summary, the results obtained by the power grid flow calculation method based on the Kepler optimization algorithm of the present invention are more diverse and more accurate than those of the prior art, and the processing capability of nonlinear power grid characteristics is enhanced, providing strong support for the safe, stable and economical operation of the power system.

[0126] See the instruction manual Figure 3 This embodiment also provides a power grid flow calculation device based on the Kepler optimization algorithm, which is used to implement the above method embodiment. The device includes:

[0127] The collection unit 201 is used to collect information from the data center and a grid map to obtain target grid parameters.

[0128] The model building unit 202 is used to establish a multi-objective optimization function model according to the target power grid parameters. The multi-objective optimization function model takes the minimum active power loss and the minimum voltage deviation as optimization targets.

[0129] The calculation unit 203 is used to apply the multi-objective optimization function model in combination with the multi-objective Kepler optimization algorithm to perform power grid flow calculation, thereby obtaining a power grid flow calculation result.

[0130] All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0131] In other embodiments of the present application, the present application discloses an electronic device, such as Figure 4As shown, the electronic device 300 may include: one or more processors 301; a memory 302; a display 303; one or more applications (not shown); and one or more computer programs 304. The above components may be connected via one or more communication buses 305. The one or more computer programs 304 are stored in the above memory and configured to be executed by the one or more processors 301. The one or more computer programs 304 include instructions. The above instructions may be used to execute the following: Figure 1 And each step in the corresponding embodiment.

[0132] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0133] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0134] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.

[0135] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

Claims

1. A method for calculating power flow based on Kepler optimization algorithm, characterized in that: include: S1: Collect information from the data center and a grid map to obtain target grid parameters, where the target grid parameters include grid topology parameters, where the grid topology parameters include PQ nodes, PV nodes, and Slack nodes. Among them, the active power of the PQ node and reactive power is a given voltage amplitude and phase angle It needs to be determined by calculation; The active power of the PV node and voltage amplitude is given, reactive power and phase angle It needs to be determined by calculation; The voltage amplitude of the Slack node and phase angle is given, the active power and reactive power It needs to be determined by calculation; S2: Establish a multi-objective optimization function model according to the target power grid parameters, wherein the multi-objective optimization function model takes minimum active network loss and minimum voltage deviation as optimization objectives, and the objective function of the multi-objective optimization function model is The expression satisfies the following formula: , in, represents the decision vector, which is expressed as, , N 1 represents the amount of active power to be solved, N 2 represents the amount of reactive power to be solved, N 3 represents the number of voltage magnitudes to be solved, N 4 represents the number of phase angles to be solved, Representation Node The voltage amplitude, Representation Node The voltage amplitude, Representation Node and The conductance between Representation Node and The electrical susceptance between Representation Node and The voltage phase difference between Representation and Node The set of directly connected nodes, Indicates the number of relevant branches of the power grid, Indicates the voltage deviation, Indicates The current change value of each node is Indicates the distribution network The rated voltage or expected value of each node, Indicates the number of relevant nodes in the power grid topology; S3: Apply the multi-objective optimization function model in combination with the multi-objective Kepler optimization algorithm to perform power grid flow calculation, thereby obtaining power grid flow calculation results, including: S3.1: Set the operating parameters of the multi-objective Kepler optimization algorithm; S3.2: Initialize the population and apply the multi-objective optimization function model to evaluate the fitness value of the population; S3.3: Perform fast non-dominated sorting on the population, obtain non-dominated individuals, and initialize the number of iterations; S3.4: traversing the dominant individuals, grouping the non-dominant individuals and the corresponding dominant individuals based on the dominance relationship grouping strategy, and updating the positions of the dominant individuals according to the grouping results; S3.5: performing a mutation operation on the dominant individual through an adaptive mutation operator, applying the multi-objective optimization function model to evaluate the fitness value of the dominant individual, and when the fitness value of the dominant individual after mutation is better than the fitness value of the dominant individual before mutation, updating the corresponding dominant individual; S3.6: Apply the multi-objective optimization function model to re-evaluate the fitness value of the population, perform fast non-dominated sorting on the population, and update the non-dominated individuals; S3.7: Determine whether the updated number of non-dominated individuals is greater than the set upper limit. When the updated number of non-dominated individuals is greater than the set upper limit, execute S3.

8. When the updated number of non-dominated individuals is less than or equal to the set upper limit, execute S3.

9. S3.8: Calculate the k nearest neighbor density of each non-dominated individual, sort the non-dominated individuals in descending order according to the k nearest neighbor density, select the non-dominated individuals from large to small according to the set upper limit, and then go to S3.7; S3.9: Update the number of iterations to make the number of iterations + 1. When the updated number of iterations is less than or equal to the set maximum number of iterations, go to execute S3.4 to continue the optimization. When the updated number of iterations is greater than the set maximum number of iterations, output the non-dominated individuals to obtain the power grid flow calculation results.

2. The method according to claim 1, characterized in that: The non-dominant individuals and the corresponding dominant individuals are grouped based on a dominance relationship grouping strategy, including: S3.4.1: Get the number of non-dominated individuals by fast non-dominated sorting , the number of dominant individuals corresponding to each non-dominated individual ,Establish Hash Table ; S3.4.2: Initialize non-dominated individual index ; S3.4.3: Initialize the dominant individual index corresponding to the non-dominated individual ; S3.4.4: Initialize hash table index ; S3.4.5: When Dominant individuals When S3.4.6 is executed, No dominant individual appears in When the error occurs, go to S3.4.8; S3.4.6: The dominant individual Remove, calculate dominant individuals With The Euclidean distance of non-dominated individuals and dominant individuals With The Euclidean distance of non-dominated individuals ,when When With The non-dominated individuals are grouped into corresponding groups to divide the dominant individuals Insert to Hash table of non-dominated individuals And execute S3.4.7, when ≥ When With The non-dominated individuals are grouped into corresponding groups to divide the dominant individuals Insert to Hash table of non-dominated individuals and proceed to S3.4.8; S3.4.7: Update hash table index values ​​using , when the updated hash table index value , go to S3.4.5, when the updated hash table index value > When S3.4.8 is executed; S3.4.8: Update the index value of the dominant individual corresponding to the non-dominated individual so that , when the index value of the dominant individual corresponding to the updated non-dominated individual , go to S3.4.4, when the dominant individual index value corresponding to the updated non-dominated individual > When S3.4.9 is executed; S3.4.9: Update the non-dominated individual index values ​​so that , when the updated non-dominated individual index value When the updated non-dominated individual index value is > When , the grouping is completed; S3.4.10: Output the grouping results.

3. The method according to claim 1, characterized in that The position and distance of the dominant individual are updated according to the grouping result, including: calculating the speed and gravitational force from the dominant individual to the non-dominated individual in each group to update the position of the dominant individual; Among them, the speed from the dominant individual to the non-dominated individual is calculated Satisfies the following formula: , represents a random number in the interval [0,1], denotes two randomly selected dominant individuals, Indicates The position of the dominant individual, Indicates dominant individual The upper bound of the feasible region is Indicates dominant individual The lower bound of the feasible region is , represents two coefficients, represents the probability factor, Indicates the best historical position and The Euclidean distance between them is normalized, satisfy , represents the minimum value to prevent division by zero error, represents the non-dominated individual mass, represents the quality of the dominant individual, express and The Euclidean distance between Indicates dominant individual The best historical position, Representing objects The semi-major axis of the elliptical orbit at generation t, Represents a number of iterations An exponentially decreasing function; Calculate the gravitational force from the dominant individual to the non-dominated individual Satisfies the following formula: , Indicates The eccentricity of the dominant individual, represents the result after the normalization of the mass of non-dominated individuals, represents the result after the normalization of the dominant individual mass, express and The Euclidean distance between The normalized value of Represents a random number in the interval [0,1]; Update dominant individuals The position satisfies the following formula: , Represents two random numbers in the interval [0,1], represents the adaptive factor, Represents an individual The speed required to reach the new position, Indicates dominant individual The best historical position.

4. The method according to claim 1, characterized in that: The expression of the adaptive mutation operator satisfies the following formula: ,in, Indicates dominant individual No. variables, represents a natural constant, Indicates the current iteration number of the algorithm. represents the maximum number of iterations, represents a random number with a value in the interval [0,1] that follows a Gaussian distribution. represents the number of non-dominated individuals, represents the upper limit of the number of non-dominated individuals.

5. The method according to claim 1, characterized in that The local density expression for calculating the k nearest neighbor density of each non-dominated individual satisfies the following formula: ,in, Indicates The local density of non-dominated individuals, Indicates the number of targets, represents the number of nearest neighbors, Represents an individual In the The value of the objective function, Represents an individual In the The value of the objective function, Indicates The maximum value of the objective function, Indicates The minimum value of the objective function.

6. A power grid flow calculation device based on Kepler optimization algorithm, characterized in that: For implementing the method according to any one of claims 1 to 5, the device comprises: A collection unit, used to collect information from a data center and a grid map to obtain target grid parameters; A model building unit, used to establish a multi-objective optimization function model according to the target power grid parameters, wherein the multi-objective optimization function model takes minimum active network loss and minimum voltage deviation as optimization objectives; The calculation unit is used to apply the multi-objective optimization function model in combination with the multi-objective Kepler optimization algorithm to perform power grid flow calculation, thereby obtaining a power grid flow calculation result.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the power grid power flow calculation method based on the Kepler optimization algorithm described in any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: include: Processor and memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory, so that the electronic device executes the power grid flow calculation method based on the Kepler optimization algorithm described in any one of claims 1 to 5.