A distribution network adaptive power flow optimization method and system

Through the adaptive power flow optimization method, combined with real-time data and multiple optimization algorithms, dynamic adjustment of parameters solves the limitations of traditional power flow optimization methods in complex power systems, improves the stability and operating efficiency of the distribution network, and achieves a better Excellent electrical service.

CN118232352BActive Publication Date: 2024-09-20JINCHENG SHENGXIANGTONG TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410651174.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-20
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

Traditional power flow optimization methods are difficult to meet the real-time needs of complex and uncertain power systems. They have problems such as slow convergence speed, easy falling into local optimal solutions, and difficulty in handling nonlinear constraints, which affect the stability and economic operation of distribution networks.

Method used

The adaptive power flow optimization method is used to calculate the power flow by obtaining real-time sensor data, setting optimization goals and constraints, combining genetic algorithms and simulated annealing algorithms for iterative optimization, constructing adaptive strategies, and dynamically adjusting algorithm parameters to achieve global and local implementations. Search for balance, and conduct abnormal analysis and regulation based on real-time monitoring information.

Benefits of technology

It improves the operating efficiency and stability of the distribution network, ensures the safety and economy of the power system, can more effectively meet real-time power demand, and avoids local optimal solutions and nonlinear constraint problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118232352B
    Figure CN118232352B
Patent Text Reader

Abstract

The present invention discloses a distribution network adaptive power flow optimization method and system, which relates to the technical field of distribution network, including: obtaining real-time sensor data, performing power flow calculation according to the real-time sensor data, and calculating the voltage and current distribution of each node; setting optimization objectives and constraints, optimizing the distribution network power flow based on the SAPSO algorithm according to the voltage distribution information and the current distribution information, expanding the initial search range in combination with the GA algorithm, and performing iterative optimization to obtain the final solution; evaluating the final solution information, selecting the final optimization result in combination with the optimization objectives and constraints, and obtaining the final optimization result information; constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy; obtaining real-time monitoring information, performing abnormal condition analysis according to the real-time monitoring information, generating an adjustment plan, and performing early warning and regulation. The operation efficiency and stability of the distribution network are improved, and better electricity services are provided to users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of distribution network, and in particular to a distribution network adaptive power flow optimization method and system. Background Art

[0002] With the continuous development of power systems and the increase in loads, the scale and complexity of distribution networks have gradually increased, bringing challenges to the operation and management of power systems, so the power flow optimization of distribution networks has become increasingly important. Traditional power flow optimization methods usually use static power flow calculation technology, but due to the complexity and uncertainty of power systems, these methods are difficult to meet real-time power demand and operation requirements. Therefore, a more efficient and adaptive power flow optimization method is needed to ensure the safe and stable operation of distribution networks.

[0003] However, due to the complexity and uncertainty of the power system, traditional methods often have limitations, such as slow convergence, easy to fall into local optimal solutions, difficulty in dealing with nonlinear constraints, etc. Therefore, how to overcome these limitations and ensure the stable operation and economy of the power system is an important issue. Summary of the invention

[0004] The present invention overcomes the defects of the prior art and provides a method and system for adaptive power flow optimization of a distribution network, the important purpose of which is to improve the stability and economy of the power system.

[0005] To achieve the above-mentioned purpose, the present invention provides a method for optimizing power flow in a power distribution network according to a first aspect, comprising:

[0006] Acquire real-time sensor data, perform power flow calculation based on the real-time sensor data, and calculate the voltage and current distribution of each node;

[0007] Set the optimization goal and constraints, combine the voltage distribution information and the current distribution information to optimize the distribution network flow, generate the initial solution and perform iterative optimization, obtain the final solution through the stopping criterion, and obtain the final solution information;

[0008] Obtaining final solution information, evaluating the final solution information, selecting a final optimization result in combination with optimization objectives and constraints, and obtaining final optimization result information;

[0009] Constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy;

[0010] Acquire real-time monitoring information, analyze abnormal conditions based on the real-time monitoring information, generate adjustment plans, and perform early warning and regulation.

[0011] In this solution, the real-time sensor data is obtained, and the power flow calculation is performed according to the real-time sensor data to calculate the voltage and current distribution of each node, specifically:

[0012] Acquire real-time sensor data and system node data, and perform data cleaning, denoising and missing value filling preprocessing on the real-time sensor data and system node data;

[0013] Constructing a node admittance matrix according to the system node data, performing a power injection operation on the node admittance matrix according to the real-time sensor data, injecting the load demand and motor output power of each node into the corresponding node, and obtaining node admittance matrix information;

[0014] The equilibrium phase angle and convergence threshold are preset, and the node power equation and power flow balance equation are iteratively solved in combination with the node admittance matrix based on the Newton-Raphson method to calculate the node's injected power and admittance matrix, and update the node's voltage amplitude and phase angle;

[0015] The calculated voltage amplitude and phase angle are compared with the convergence threshold, and the voltage amplitude and phase angle greater than the convergence threshold are selected as the solution of the voltage amplitude and phase angle of each node to obtain the voltage distribution information;

[0016] The voltage difference of each branch is calculated according to the voltage distribution information, the current value of each branch is calculated based on Ohm's law, and the current flow direction of the branch is analyzed through the positive and negative relationship of the current value of each branch to obtain the current distribution information.

[0017] In this solution, the optimization objectives and constraints are set, the distribution network flow is optimized by combining the voltage distribution information and the current distribution information, an initial solution is generated and iterative optimization is performed, and the final solution is obtained by the stopping criterion to obtain the final solution information, which is specifically:

[0018] Acquire distribution network optimization demand information, set optimization targets in combination with voltage distribution information and current distribution information, and set constraints according to the optimization targets in combination with the distribution network optimization demand information to obtain optimization target information and constraint condition information;

[0019] Constructing an objective function according to the optimization target information and constraint condition information, obtaining objective function information, and presetting optimization stop criteria, including the number of iterations, the degree of convergence of the objective function, and the population diversity reaching a threshold;

[0020] Construct a penalty function, use it to mark the solutions that violate the constraints during the optimization process, obtain the degree of violation information, reduce the selection probability based on the degree of violation information, and select high-quality solutions that meet the constraints;

[0021] Preliminary optimization is performed based on genetic algorithms. The initial population is randomly generated according to the voltage distribution information and the current distribution information combined with the optimization objectives and constraints. The individuals in the initial population are used as the positions of the initial particles. The simulated annealing algorithm is used for initial search to enrich the number of the initial population and obtain the initial solution information.

[0022] Based on the genetic algorithm, the population update operation is performed on the initial solution information, and the fitness value of each individual in each population is calculated according to the objective function information to obtain the individual fitness value;

[0023] A selection threshold is preset, the fitness value of the individual is judged against the selection threshold, individuals with fitness values ​​less than the selection threshold are selected as high-quality solutions, crossover operations and mutation operations are performed on the high-quality solutions to obtain preliminary high-quality solution information;

[0024] Based on the particle swarm optimization algorithm and the preliminary high-quality solution information, the particle speed and position are updated and the individual fitness is calculated according to the individual particles and the preliminary high-quality solution information, so as to generate candidate final solution information;

[0025] The initial receiving probability and the decreasing rate are preset, and the candidate optimal solution is finally iteratively optimized based on the simulated annealing algorithm combined with the initial receiving probability and the decreasing rate until the stopping criterion is met to obtain the final solution information.

[0026] In this solution, the final solution information is obtained, the final solution information is evaluated, and the final optimization result is selected in combination with the optimization goal and the constraint conditions to obtain the final optimization result information, which is specifically:

[0027] Acquire final solution information, extract fitness values ​​of each final solution according to the final solution information, and obtain fitness value information;

[0028] Preset an expected solution threshold, calculate the difference between the fitness value information and the expected solution threshold, and take the absolute value of the difference to obtain each final solution difference information;

[0029] The final solution difference information is sorted according to the numerical value to obtain a difference sorting table, a selection threshold is preset, and the optimal solution is selected according to the selection threshold combined with the difference sorting table to obtain the optimal solution information;

[0030] The optimization objective and constraint conditions are used as evaluation weights, and the optimal solution information is weighted calculated by the evaluation weights to obtain weighted calculation result information;

[0031] The optimal solution is selected as the final optimization result through weighted calculation result information to obtain the final optimization result information.

[0032] In this solution, the optimization adaptive strategy is constructed, and dynamic adaptive power flow optimization is performed according to the optimization adaptive strategy, specifically:

[0033] Calculate the direction vector between each pair of particles in the particle swarm to obtain the direction vector information, calculate the maximum diagonal distance based on the direction vector information, and calculate the projection value of each particle on the corresponding direction vector to obtain the diagonal distance information and projection value information;

[0034] According to the direction vector information, the interval is divided according to the population size, the direction vector information is divided into several intervals according to the population size, and the number of particle projections in each scale interval is counted to obtain the particle projection number information;

[0035] Calculating the distribution entropy of each iteration according to the particle projection number information to obtain distribution entropy information, and calculating the inertia weight of each iteration according to the distribution entropy information to obtain inertia weight information;

[0036] An adaptive strategy is constructed according to the inertia weight information, and the global and local search capabilities are adaptively balanced through the adaptive strategy.

[0037] In this solution, real-time monitoring information is obtained, abnormal conditions are analyzed based on the real-time monitoring information, adjustment plans are generated, and early warning and regulation are carried out, specifically:

[0038] Obtain real-time monitoring information, including real-time voltage information, real-time current information, real-time load information and real-time equipment power information;

[0039] Subtract the real-time monitoring information from a preset threshold value to obtain a difference and obtain difference information;

[0040] Preset a difference judgment threshold, judge the difference information with the difference judgment threshold, analyze the abnormal condition according to the judgment result, and obtain abnormal condition analysis information;

[0041] Draw an abnormal curve graph according to the abnormal condition analysis information, analyze the abnormal condition change trend according to the abnormal curve graph, and obtain change trend information;

[0042] Perform adaptive power flow optimization according to the change trend information and abnormal condition analysis information, calculate the adjustment plan, and obtain adjustment plan information;

[0043] Early warning information is generated based on the change trend information and abnormal condition analysis information for early warning, and abnormal condition regulation is performed through the adjustment plan information.

[0044] A second aspect of the present invention provides a distribution network adaptive power flow optimization system, the system comprising: a memory, a processor, the memory comprising a distribution network adaptive power flow optimization method program, the distribution network adaptive power flow optimization method program when executed by the processor to implement the following steps:

[0045] Acquire real-time sensor data, perform power flow calculation based on the real-time sensor data, and calculate the voltage and current distribution of each node;

[0046] Set the optimization goal and constraints, combine the voltage distribution information and the current distribution information to optimize the distribution network flow, generate the initial solution and perform iterative optimization, obtain the final solution through the stopping criterion, and obtain the final solution information;

[0047] Obtaining final solution information, evaluating the final solution information, selecting a final optimization result in combination with optimization objectives and constraints, and obtaining final optimization result information;

[0048] Constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy;

[0049] Acquire real-time monitoring information, analyze abnormal conditions based on the real-time monitoring information, generate adjustment plans, and perform early warning and regulation.

[0050] The present invention discloses a distribution network adaptive power flow optimization method and system, including: obtaining real-time sensor data, performing power flow calculation according to the real-time sensor data, and calculating the voltage and current distribution of each node; setting optimization objectives and constraints, optimizing the distribution network power flow in combination with voltage distribution information and current distribution information, generating an initial solution and performing iterative optimization, obtaining a final solution through a stop criterion, and obtaining final solution information; obtaining final solution information, evaluating the final solution information, selecting the final optimization result in combination with the optimization objectives and constraints, and obtaining final optimization result information; constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy; obtaining real-time monitoring information, performing abnormal condition analysis according to the real-time monitoring information, generating an adjustment plan, and performing early warning and regulation. The operation efficiency and stability of the distribution network are improved, and better electricity services are provided to users. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments or exemplary embodiments of the present invention, the drawings required for use in the embodiments or exemplary descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained according to the drawings without paying creative work.

[0052] Figure 1 A flow chart of a method for adaptive power flow optimization in a distribution network provided by an embodiment of the present invention;

[0053] Figure 2 An adaptive power flow optimization flow chart provided by an embodiment of the present invention;

[0054] Figure 3 A block diagram of a distribution network adaptive power flow optimization system provided by an embodiment of the present invention;

[0055] Description of reference numerals: 3-distribution network adaptive power flow optimization system, 31-memory, 32-processor;

[0056] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0058] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0059] Figure 1 A flow chart of a method for adaptive power flow optimization in a distribution network provided by an embodiment of the present invention;

[0060] like Figure 1 As shown, the present invention provides a flow chart of a method for adaptive power flow optimization of a distribution network, comprising:

[0061] S102, acquiring real-time sensor data, performing power flow calculation according to the real-time sensor data, and calculating the voltage and current distribution of each node;

[0062] Acquire real-time sensor data and system node data, and perform data cleaning, denoising and missing value filling preprocessing on the real-time sensor data and system node data;

[0063] Constructing a node admittance matrix according to the system node data, performing a power injection operation on the node admittance matrix according to the real-time sensor data, injecting the load demand and motor output power of each node into the corresponding node, and obtaining node admittance matrix information;

[0064] The equilibrium phase angle and convergence threshold are preset, and the node power equation and power flow balance equation are iteratively solved in combination with the node admittance matrix based on the Newton-Raphson method to calculate the node's injected power and admittance matrix, and update the node's voltage amplitude and phase angle;

[0065] The calculated voltage amplitude and phase angle are compared with the convergence threshold, and the voltage amplitude and phase angle greater than the convergence threshold are selected as the solution of the voltage amplitude and phase angle of each node to obtain the voltage distribution information;

[0066] The voltage difference of each branch is calculated according to the voltage distribution information, the current value of each branch is calculated based on Ohm's law, and the current flow direction of the branch is analyzed through the positive and negative relationship of the current value of each branch to obtain the current distribution information.

[0067] It should be noted that in the power system, each node represents an electric device or load, and the node admittance matrix describes the relationship between the current and voltage between these nodes. According to the node data and branch parameters of the power system, the power system can be abstracted into an undirected graph, in which the node represents the power device or load, the edge represents the branch, and the admittance value on the edge represents the impedance of the branch, and the node admittance matrix can be constructed. Load information and generator information are usually obtained through actual measurement or simulation and input into the node admittance matrix as known quantities. By calculating the voltage distribution and current distribution, it is used to judge the basic situation of the system, meet the optimization requirements under different load and power output conditions, and improve the operating efficiency and stability of the load network.

[0068] S104, setting optimization objectives and constraints, optimizing the power flow of the distribution network in combination with the voltage distribution information and the current distribution information, generating an initial solution and performing iterative optimization, obtaining a final solution through a stopping criterion, and obtaining final solution information;

[0069] Acquire distribution network optimization demand information, set optimization targets in combination with voltage distribution information and current distribution information, and set constraints based on the optimization targets and the distribution network optimization demand information to obtain optimization target information and constraint information;

[0070] Constructing an objective function according to the optimization target information and constraint condition information, obtaining objective function information, and presetting optimization stop criteria, including the number of iterations, the degree of convergence of the objective function, and the population diversity reaching a threshold;

[0071] Construct a penalty function, use it to mark the solutions that violate the constraints during the optimization process, obtain the degree of violation information, reduce the selection probability based on the degree of violation information, and select high-quality solutions that meet the constraints;

[0072] Preliminary optimization is performed based on genetic algorithms. The initial population is randomly generated according to the voltage distribution information and the current distribution information combined with the optimization objectives and constraints. The individuals in the initial population are used as the positions of the initial particles. The simulated annealing algorithm is used for initial search to enrich the number of the initial population and obtain the initial solution information.

[0073] Based on the genetic algorithm, the population update operation is performed on the initial solution information, and the fitness value of each individual in each population is calculated according to the objective function information to obtain the individual fitness value;

[0074] A selection threshold is preset, the fitness value of the individual is judged against the selection threshold, individuals with fitness values ​​less than the selection threshold are selected as high-quality solutions, crossover operations and mutation operations are performed on the high-quality solutions to obtain preliminary high-quality solution information;

[0075] Based on the particle swarm optimization algorithm and the preliminary high-quality solution information, the particle speed and position are updated and the individual fitness is calculated according to the individual particles and the preliminary high-quality solution information, and the candidate final solution information is generated;

[0076] The initial receiving probability and the decreasing rate are preset, and the candidate optimal solution is finally iteratively optimized based on the simulated annealing algorithm combined with the initial receiving probability and the decreasing rate until the stopping criterion is met to obtain the final solution information.

[0077] It should be noted that, first, according to the optimization demand information of the distribution network, the optimization target is set in combination with the voltage distribution and current analysis information, and the corresponding constraints are formulated. Then, the objective function and the penalty function are constructed. The objective function is used to optimize the degree of completion of the target in the fastest way, while the penalty function is used to punish the solution that violates the constraint and reduce its selection rate, thereby effectively guiding the optimization algorithm to approach the feasible solution. In the preliminary optimization stage, the genetic algorithm is used for search, and the initial population is randomly generated, and the simulated annealing algorithm is combined for preliminary search to increase the diversity of solutions. Then, the fitness value of each individual is calculated according to the objective function, and the sharp fitness is judged. Next, the particle swarm optimization algorithm is used to perform iterative optimization in combination with the preliminary high-quality solution information, the speed and position of the particle update, and the fitness value of each individual is calculated to generate the candidate final solution information. Finally, the simulated annealing algorithm is used to optimize the candidate final solution, the initial acceptance probability and the descent rate are preset, and the new solution is accepted or rejected by the simulated annealing algorithm, and it is continuously iterated until the stopping criteria are met to obtain the final optimization result. It can search the solution space more comprehensively and improve the optimization efficiency and accuracy.

[0078] It should be noted that the optimization target requirements: According to the actual situation and the needs of the power system, the specific requirements of the optimization target are determined, such as minimizing power loss, optimizing voltage stability or maximizing system load capacity. These target requirements can be determined based on the economy, stability, safety and other aspects of the power system. Constraint restrictions: Constraints are conditions that restrict the optimization results during the optimization process. These constraints include current restrictions, voltage restrictions, equipment capacity restrictions, load balance restrictions, etc., in order to ensure that the optimization results are feasible and reasonable in the actual operation of the power system.

[0079] It should be noted that the method of introducing a penalty term is to add a penalty term to the optimization objective function to penalize solutions that violate the constraints, so that the optimization algorithm is more inclined to choose solutions that meet the constraints during the search process. The introduction of the penalty term can be achieved through inequality constraints or equality constraints. Assume that the objective function of the optimization problem is , the constraints are ≤0 and = 0, where x is the optimization variable. If a solution violates the constraint, the penalty term introduced is ;

[0080] The objective function after introducing the penalty term becomes:

[0081] ;

[0082] Among them, the is the objective function with penalty term added, The initial objective function, is the penalty function;

[0083] The penalty function includes linear penalty function, quadratic penalty function and logarithmic penalty function, and the appropriate penalty function is selected for use according to different requirements and actual conditions;

[0084] Wherein, the expression of the linear penalty function is:

[0085] >0 ;

[0086] ≠0;

[0087] in, is the penalty function, , For constraints, and is the penalty coefficient, which is used to control the intensity of the penalty. >0 or ≠0, a linear penalty function will increase the penalty term, and the size of the penalty function is proportional to the degree of violation of the constraint.

[0088] It should be noted that in the simulated annealing algorithm, the calculation of the acceptance probability is a key step, which determines whether a new solution is accepted. In the early stage of the optimization process, due to the high temperature, the acceptance probability is also high, allowing poor solutions to be accepted. This higher acceptance probability facilitates a wider search from the initial solution, helps to jump out of the local optimal solution and move towards a better solution. As the temperature gradually decreases, the acceptance probability decreases, making it more difficult for new solutions to be accepted, so that the optimization process tends to converge to a better solution. The setting of the acceptance probability can be adjusted according to the characteristics of the problem and the optimization goal. A higher initial temperature and a larger descent rate can promote a wider search, but may cause the optimization process to swing around the local optimal solution. A smaller descent rate can speed up the convergence, but may cause the optimization process to fall into the local optimal solution too early. Therefore, it is important to set the temperature and descent rate appropriately, and usually requires debugging and optimization according to the actual problem.

[0089] S106, obtaining final solution information, evaluating the final solution information, selecting a final optimization result in combination with the optimization objective and constraint conditions, and obtaining final optimization result information;

[0090] Acquire final solution information, extract fitness values ​​of each final solution according to the final solution information, and obtain fitness value information;

[0091] Preset an expected solution threshold, calculate the difference between the fitness value information and the expected solution threshold, and take the absolute value of the difference to obtain each final solution difference information;

[0092] The final solution difference information is sorted according to the numerical value to obtain a difference sorting table, a selection threshold is preset, and the optimal solution is selected according to the selection threshold combined with the difference sorting table to obtain the optimal solution information;

[0093] The optimization objective and constraint conditions are used as evaluation weights, and the optimal solution information is weighted calculated by the evaluation weights to obtain weighted calculation result information;

[0094] The optimal solution is selected as the final optimization result through weighted calculation result information to obtain the final optimization result information.

[0095] It should be noted that by taking the absolute value of the difference and sorting it, according to the difference with the expected solution, the solution within the tolerance range is selected for weighted calculation, and the solution that meets the optimization goal and constraint conditions is selected as the optimal solution as the final optimization result to obtain the final optimization result information. The final optimization result information satisfies the optimization goal and constraint conditions, and is the best solution obtained by considering the fitness value and weight of each solution. Through the final optimization result information, the power flow optimization of the distribution network can be achieved, and the efficiency and stability of the power system can be improved.

[0096] S108, constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy;

[0097] Calculate the direction vector between each pair of particles in the particle swarm to obtain the direction vector information, calculate the maximum diagonal distance based on the direction vector information, and calculate the projection value of each particle on the corresponding direction vector to obtain the diagonal distance information and projection value information;

[0098] According to the direction vector information, the interval is divided according to the population size, the direction vector information is divided into several intervals according to the population size, and the number of particle projections in each scale interval is counted to obtain the particle projection number information;

[0099] Calculating the distribution entropy of each iteration according to the particle projection number information to obtain distribution entropy information, and calculating the inertia weight of each iteration according to the distribution entropy information to obtain inertia weight information;

[0100] An adaptive strategy is constructed according to the inertia weight information, and the global and local search capabilities are adaptively balanced through the adaptive strategy.

[0101] It should be noted that the design dynamically adjusts the inertia weight of the population through the distribution in the spatial search. In the pre-search phase, the population is widely distributed, the inertia weight increases, and it is beneficial to the global search; while in the pre-search phase, the population weight increases. The distribution is dense, and the inertia weight is small, which is beneficial to local development. By adaptively adjusting the inertia weight, the algorithm can perform global and local search capabilities at different search stages, thereby improving the search accuracy and performance of the algorithm. At the same time, an increase in the distribution entropy means that the particles are widely distributed in the search space. At this time, the inertia weight increases, which is beneficial to improving the global search performance; the smaller the distribution entropy, the denser the distribution of particles in the search space. At this time, the inertia force decreases, which is beneficial to enhancing the local development capability.

[0102] S110, acquiring real-time monitoring information, analyzing abnormal conditions according to the real-time monitoring information, generating adjustment plans, and performing early warning and regulation;

[0103] Obtain real-time monitoring information, including real-time voltage information, real-time current information, real-time load information and real-time equipment power information;

[0104] Subtract the real-time monitoring information from a preset threshold value to obtain a difference and obtain difference information;

[0105] Preset a difference judgment threshold, judge the difference information with the difference judgment threshold, analyze the abnormal condition according to the judgment result, and obtain abnormal condition analysis information;

[0106] Draw an abnormal curve graph according to the abnormal condition analysis information, analyze the abnormal condition change trend according to the abnormal curve graph, and obtain change trend information;

[0107] Perform adaptive power flow optimization according to the change trend information and abnormal condition analysis information, calculate the adjustment plan, and obtain adjustment plan information;

[0108] Early warning information is generated based on the change trend information and abnormal condition analysis information for early warning, and abnormal condition regulation is performed through the adjustment plan information.

[0109] It should be noted that, during the optimization process, the real-time monitoring information is subtracted from the preset threshold to obtain the difference information. The preset difference judgment threshold is used to determine whether the real-time monitoring data exceeds the preset range. If the difference exceeds the threshold, the abnormal situation analysis information can be obtained by judging the difference information, that is, analyzing which nodes or branches are abnormal. According to the analysis information of the abnormal situation, the abnormal situation curve can be used to intuitively understand the changing trend of the abnormal situation through the chart. According to the changing trend information and the abnormal situation analysis information, adaptive gradient optimization is performed. This means that the optimization algorithm will adjust its own parameters and operations according to the changing trend of the abnormal situation optimization to adapt to different abnormal situations, so as to better optimize the gradient distribution of the network. According to the changing trend information and the abnormal situation analysis information, the adjustment plan information, that is, the optimization suggestions and measures proposed for the abnormal situation, is calculated. At the same time, according to the changing trend information and the abnormal situation analysis information, early warning information can also be generated to promptly remind the operation and maintenance personnel to discover and deal with potential problems. The changing trend information, the abnormal situation analysis information and the adjustment plan information are used together for the regulation of abnormal conditions to ensure the safe and stable operation of the power grid.

[0110] Furthermore, historical load data, real-time sensor data and load influencing factor data are obtained, and cleaning, denoising and missing value filling preprocessing are performed; flow calculation is performed based on the real-time sensor data and historical load data, and the load distribution and current distribution of the power grid are analyzed to obtain load analysis information and current analysis information; flow optimization analysis is performed on the distribution network based on the load analysis information and current analysis information to obtain flow optimization analysis information; overload and underload problems existing in the distribution network are analyzed based on the flow optimization analysis information, and weak links and high-load areas and time periods in the power grid are determined to obtain distribution network analysis information; new line construction schemes are planned based on the flow optimization analysis information and distribution network analysis information to obtain line planning scheme information; a load forecasting model is constructed based on a multivariate linear regression algorithm, and the historical load data and load influencing factor data are imported into the load forecasting model for analysis to obtain load forecasting result information; new line demand information is obtained, based on According to the load forecast result information and the new line demand information, the line capacity is set to obtain the optimal line capacity information; based on the line planning scheme information, the line laying distance information of each scheme is obtained, and the line planning schemes are sorted according to the distance to obtain a laying distance sorting table; a selection threshold is preset, and a line planning scheme greater than the selection threshold is selected in combination with the laying distance sorting table to obtain initial line planning scheme information; the line capacity of each initial line planning scheme is calculated, and the calculation result is compared and judged with the optimal line capacity information, and the line planning scheme within the error range is selected as the candidate line planning scheme to obtain the candidate line planning scheme; based on the candidate line planning scheme information, the regional environmental information is obtained, and the construction cost of each candidate line planning scheme is calculated according to the regional environmental information, and the construction cost is used as a weight and reverse weighted calculation is performed on each candidate line planning scheme, and the best line planning scheme is selected according to the weighted calculation result to obtain the best line planning scheme information.

[0111] Figure 2 An adaptive power flow optimization flow chart provided by an embodiment of the present invention;

[0112] like Figure 2 As shown, the present invention provides an adaptive power flow optimization flow chart, including:

[0113] S202, setting an optimization target according to the voltage distribution information and the current distribution information, and setting a constraint condition according to the optimization target combined with the distribution network optimization demand information;

[0114] S204, performing preliminary optimization by combining a genetic algorithm and a simulated annealing algorithm to obtain initial solution information;

[0115] S206, performing a population update operation on the initial solution information based on the genetic algorithm, selecting a high-quality solution and performing crossover and mutation operations;

[0116] S208, optimizing based on the particle swarm optimization algorithm combined with the preliminary high-quality solution information to generate candidate final solution information;

[0117] S210, performing final iterative optimization on the candidate optimal solution based on a simulated annealing algorithm combined with the initial receiving probability and the decreasing rate until a stopping criterion is met to obtain final solution information.

[0118] It should be noted that in the process of adaptive power flow optimization of distribution network, firstly, power flow calculation is performed to obtain voltage distribution analysis information and current distribution information. Then, the optimization objectives and constraints are determined, and the objectives to be optimized are clarified. Then, preliminary optimization is performed, and the initial solution is obtained according to the genetic algorithm and simulated annealing algorithm. As the starting population of iterative optimization, the initial solution information is obtained. Then, further optimization is performed according to the particle swarm optimization algorithm to increase the search range of the solution space. Adaptive optimization is performed by adjusting the range of inertia weight to prevent falling into the local optimal solution. Finally, the simulated annealing algorithm is used to screen high-quality solutions, and further screening and optimization are performed according to the acceptance probability and the descent rate to obtain the optimal solution. The iterative steps are repeated in the optimization process until the stopping criteria are met to obtain the final solution information. By combining multiple optimization algorithms, the adaptive flow optimization method can explore the solution space more comprehensively, improve the search efficiency and accuracy, and thus obtain a better power flow optimization solution. It can meet the optimization needs of different switching networks and effectively improve the operating efficiency and stability of the switching network.

[0119] Figure 3 A distribution network adaptive power flow optimization system 3 is provided in one embodiment of the present invention, the system comprising: a memory 31 and a processor 32, wherein the memory 31 contains a distribution network adaptive power flow optimization method program, and when the distribution network adaptive power flow optimization method program is executed by the processor 32, the following steps are implemented:

[0120] Acquire real-time sensor data, perform power flow calculation based on the real-time sensor data, and calculate the voltage and current distribution of each node;

[0121] Set the optimization goal and constraints, combine the voltage distribution information and the current distribution information to optimize the distribution network flow, generate the initial solution and perform iterative optimization, obtain the final solution through the stopping criterion, and obtain the final solution information;

[0122] Obtaining final solution information, evaluating the final solution information, selecting a final optimization result in combination with optimization objectives and constraints, and obtaining final optimization result information;

[0123] Constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy;

[0124] Acquire real-time monitoring information, analyze abnormal conditions based on the real-time monitoring information, generate adjustment plans, and perform early warning and regulation.

[0125] It should be noted that the present invention provides a distribution network adaptive power flow optimization method for improving the power flow distribution of the distribution network and optimizing the operating state of the distribution system. It obtains real-time sensor data and performs data preprocessing to calculate the voltage and current distribution of each node. Then, according to the optimization requirements of the distribution network, the optimization objectives and constraints are set, and the power flow optimization of the distribution network is performed in combination with the voltage distribution and current distribution information. During the optimization process, the speed and position of the particles are dynamically adjusted through iterative optimization algorithms and adaptive strategies, and the application of simulated annealing algorithms is used to gradually find the optimal solution. A stop criterion is set during the optimization process to ensure that the optimal solution is reached within a reasonable number of iterations. After the optimization is completed, the final optimization result is obtained, evaluated, and the best optimization result is selected in combination with the optimization objectives and constraints. In order to cope with different optimization situations, the method also adopts an adaptive strategy to dynamically adjust the algorithm parameters and operations according to the optimization state and progress during the optimization process to adapt to the characteristics of different problems. Such characteristics enable the adaptive power flow optimization method to better adapt to the characteristics of different problems and show better performance in different optimization stages or search spaces. Finally, the method can also analyze abnormal conditions based on real-time monitoring information, generate adjustment plans in a timely manner, and conduct early warning and regulation to ensure the safe and stable operation of the distribution network. The entire optimization process is guided by user needs and system requirements, with the goal of improving the operating efficiency and stability of the distribution network. This adaptive power flow optimization method will become an important technical support and intelligent guarantee in the field of distribution network optimization.

[0126] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0127] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0128] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0129] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0130] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0131] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for adaptive power flow optimization in a distribution network, characterized in that: include: Acquire real-time sensor data, perform power flow calculation based on the real-time sensor data, and calculate the voltage and current distribution of each node; Set the optimization goal and constraints, combine the voltage distribution information and the current distribution information to optimize the distribution network flow, generate the initial solution and perform iterative optimization, obtain the final solution through the stopping criterion, and obtain the final solution information; Obtaining final solution information, evaluating the final solution information, selecting a final optimization result in combination with optimization objectives and constraints, and obtaining final optimization result information; Constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy; Acquire real-time monitoring information, analyze abnormal conditions based on the real-time monitoring information, generate adjustment plans, and conduct early warning and regulation; The optimization objectives and constraints are set, the distribution network power flow is optimized in combination with the voltage distribution information and the current distribution information, an initial solution is generated and iterative optimization is performed, and a final solution is obtained through a stopping criterion to obtain final solution information, specifically including: Acquire distribution network optimization demand information, set optimization targets in combination with voltage distribution information and current distribution information, and set constraints according to the optimization targets in combination with the distribution network optimization demand information to obtain optimization target information and constraint condition information; Constructing an objective function according to the optimization target information and constraint condition information, obtaining objective function information, and presetting optimization stop criteria, including the number of iterations, the degree of convergence of the objective function, and the population diversity reaching a threshold; Construct a penalty function, use it to mark the solutions that violate the constraints during the optimization process, obtain the degree of violation information, reduce the selection probability based on the degree of violation information, and select high-quality solutions that meet the constraints; Preliminary optimization is performed based on genetic algorithms. The initial population is randomly generated according to the voltage distribution information and the current distribution information combined with the optimization objectives and constraints. The individuals in the initial population are used as the positions of the initial particles. The simulated annealing algorithm is used for initial search to enrich the number of the initial population and obtain the initial solution information. Based on the genetic algorithm, the population update operation is performed on the initial solution information, and the fitness value of each individual in each population is calculated according to the objective function information to obtain the individual fitness value; A selection threshold is preset, the fitness value of the individual is judged against the selection threshold, individuals with fitness values ​​less than the selection threshold are selected as high-quality solutions, crossover operations and mutation operations are performed on the high-quality solutions to obtain preliminary high-quality solution information; Based on the particle swarm optimization algorithm and the preliminary high-quality solution information, the particle speed and position are updated and the individual fitness is calculated according to the individual particles and the preliminary high-quality solution information, so as to generate candidate final solution information; The initial receiving probability and the decreasing rate are preset, and the candidate optimal solution is finally iteratively optimized based on the simulated annealing algorithm combined with the initial receiving probability and the decreasing rate until the stopping criterion is met to obtain the final solution information; The constructing of the optimization adaptive strategy and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy specifically includes: Calculate the direction vector between each pair of particles in the particle swarm to obtain the direction vector information, calculate the maximum diagonal distance based on the direction vector information, and calculate the projection value of each particle on the corresponding direction vector to obtain the diagonal distance information and projection value information; According to the direction vector information, the interval is divided according to the population size, the direction vector information is divided into several intervals according to the population size, and the number of particle projections in each scale interval is counted to obtain the particle projection number information; Calculating the distribution entropy of each iteration according to the particle projection number information to obtain distribution entropy information, and calculating the inertia weight of each iteration according to the distribution entropy information to obtain inertia weight information; An adaptive strategy is constructed according to the inertia weight information, and the global and local search capabilities are adaptively balanced through the adaptive strategy.

2. A distribution network adaptive power flow optimization method according to claim 1, characterized in that: The acquiring of real-time sensor data, performing power flow calculation according to the real-time sensor data, and calculating the voltage and current distribution of each node specifically includes: Acquire real-time sensor data and system node data, and perform data cleaning, denoising and missing value filling preprocessing on the real-time sensor data and system node data; Constructing a node admittance matrix according to the system node data, performing a power injection operation on the node admittance matrix according to the real-time sensor data, injecting the load demand and motor output power of each node into the corresponding node, and obtaining node admittance matrix information; The equilibrium phase angle and convergence threshold are preset, and the node power equation and power flow balance equation are iteratively solved in combination with the node admittance matrix based on the Newton-Raphson method to calculate the node's injected power and admittance matrix, and update the node's voltage amplitude and phase angle; The calculated voltage amplitude and phase angle are compared with the convergence threshold, and the voltage amplitude and phase angle greater than the convergence threshold are selected as the solution of the voltage amplitude and phase angle of each node to obtain the voltage distribution information; The voltage difference of each branch is calculated according to the voltage distribution information, the current value of each branch is calculated based on Ohm's law, and the current flow direction of the branch is analyzed through the positive and negative relationship of the current value of each branch to obtain the current distribution information.

3. A distribution network adaptive power flow optimization method according to claim 1, characterized in that: The obtaining of final solution information, evaluating the final solution information, selecting a final optimization result in combination with the optimization objective and the constraint condition, and obtaining final optimization result information specifically includes: Acquire final solution information, extract fitness values ​​of each final solution according to the final solution information, and obtain fitness value information; Preset an expected solution threshold, calculate the difference between the fitness value information and the expected solution threshold, and take the absolute value of the difference to obtain each final solution difference information; The final solution difference information is sorted according to the numerical value to obtain a difference sorting table, a selection threshold is preset, and the optimal solution is selected according to the selection threshold combined with the difference sorting table to obtain the optimal solution information; The optimization objective and constraint conditions are used as evaluation weights, and the optimal solution information is weighted calculated by the evaluation weights to obtain weighted calculation result information; The optimal solution is selected as the final optimization result through weighted calculation result information to obtain the final optimization result information.

4. A distribution network adaptive power flow optimization method according to claim 1, characterized in that: The obtaining of real-time monitoring information, analyzing abnormal conditions according to the real-time monitoring information, generating adjustment plans and performing early warning and regulation specifically include: Obtain real-time monitoring information, including real-time voltage information, real-time current information, real-time load information and real-time equipment power information; Subtract the real-time monitoring information from a preset threshold value to obtain a difference and obtain difference information; Preset a difference judgment threshold, judge the difference information with the difference judgment threshold, analyze the abnormal condition according to the judgment result, and obtain abnormal condition analysis information; Draw an abnormal curve graph according to the abnormal condition analysis information, analyze the abnormal condition change trend according to the abnormal curve graph, and obtain change trend information; Perform adaptive power flow optimization according to the change trend information and abnormal condition analysis information, calculate the adjustment plan, and obtain adjustment plan information; Early warning information is generated based on the change trend information and abnormal condition analysis information for early warning, and abnormal condition regulation is performed through the adjustment plan information.

5. A distribution network adaptive power flow optimization system, characterized in that: The system includes: a memory and a processor, wherein the memory contains a distribution network adaptive power flow optimization method program, and when the distribution network adaptive power flow optimization method program is executed by the processor, the following steps are implemented: Acquire real-time sensor data, perform power flow calculation based on the real-time sensor data, and calculate the voltage and current distribution of each node; Set the optimization goal and constraints, combine the voltage distribution information and the current distribution information to optimize the distribution network flow, generate the initial solution and perform iterative optimization, obtain the final solution through the stopping criterion, and obtain the final solution information; Obtaining final solution information, evaluating the final solution information, selecting a final optimization result in combination with optimization objectives and constraints, and obtaining final optimization result information; Constructing an optimization adaptive strategy, and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy; Acquire real-time monitoring information, analyze abnormal conditions based on the real-time monitoring information, generate adjustment plans, and conduct early warning and regulation; The optimization objectives and constraints are set, the distribution network power flow is optimized in combination with the voltage distribution information and the current distribution information, an initial solution is generated and iterative optimization is performed, and a final solution is obtained through a stopping criterion to obtain final solution information, specifically including: Acquire distribution network optimization demand information, set optimization targets in combination with voltage distribution information and current distribution information, and set constraints according to the optimization targets in combination with the distribution network optimization demand information to obtain optimization target information and constraint condition information; Constructing an objective function according to the optimization target information and constraint condition information, obtaining objective function information, and presetting optimization stop criteria, including the number of iterations, the degree of convergence of the objective function, and the population diversity reaching a threshold; Construct a penalty function, use it to mark the solutions that violate the constraints during the optimization process, obtain the degree of violation information, reduce the selection probability based on the degree of violation information, and select high-quality solutions that meet the constraints; Preliminary optimization is performed based on genetic algorithms. The initial population is randomly generated according to the voltage distribution information and the current distribution information combined with the optimization objectives and constraints. The individuals in the initial population are used as the positions of the initial particles. The simulated annealing algorithm is used for initial search to enrich the number of the initial population and obtain the initial solution information. Based on the genetic algorithm, the population update operation is performed on the initial solution information, and the fitness value of each individual in each population is calculated according to the objective function information to obtain the individual fitness value; A selection threshold is preset, the fitness value of the individual is judged against the selection threshold, individuals with fitness values ​​less than the selection threshold are selected as high-quality solutions, crossover operations and mutation operations are performed on the high-quality solutions to obtain preliminary high-quality solution information; Based on the particle swarm optimization algorithm and the preliminary high-quality solution information, the particle speed and position are updated and the individual fitness is calculated according to the individual particles and the preliminary high-quality solution information, so as to generate candidate final solution information; The initial receiving probability and the decreasing rate are preset, and the candidate optimal solution is finally iteratively optimized based on the simulated annealing algorithm combined with the initial receiving probability and the decreasing rate until the stopping criterion is met to obtain the final solution information; The constructing of the optimization adaptive strategy and performing dynamic adaptive power flow optimization according to the optimization adaptive strategy specifically includes: Calculate the direction vector between each pair of particles in the particle swarm to obtain the direction vector information, calculate the maximum diagonal distance based on the direction vector information, and calculate the projection value of each particle on the corresponding direction vector to obtain the diagonal distance information and projection value information; According to the direction vector information, the interval is divided according to the population size, the direction vector information is divided into several intervals according to the population size, and the number of particle projections in each scale interval is counted to obtain the particle projection number information; Calculating the distribution entropy of each iteration according to the particle projection number information to obtain distribution entropy information, and calculating the inertia weight of each iteration according to the distribution entropy information to obtain inertia weight information; An adaptive strategy is constructed according to the inertia weight information, and the global and local search capabilities are adaptively balanced through the adaptive strategy.

6. A distribution network adaptive power flow optimization system according to claim 5, characterized in that: The acquiring of real-time sensor data, performing power flow calculation according to the real-time sensor data, and calculating the voltage and current distribution of each node specifically includes: Acquire real-time sensor data and system node data, and perform data cleaning, denoising and missing value filling preprocessing on the real-time sensor data and system node data; Constructing a node admittance matrix according to the system node data, performing a power injection operation on the node admittance matrix according to the real-time sensor data, injecting the load demand and motor output power of each node into the corresponding node, and obtaining node admittance matrix information; The equilibrium phase angle and convergence threshold are preset, and the node power equation and power flow balance equation are iteratively solved in combination with the node admittance matrix based on the Newton-Raphson method to calculate the node's injected power and admittance matrix, and update the node's voltage amplitude and phase angle; The calculated voltage amplitude and phase angle are compared with the convergence threshold, and the voltage amplitude and phase angle greater than the convergence threshold are selected as the solution of the voltage amplitude and phase angle of each node to obtain the voltage distribution information; The voltage difference of each branch is calculated according to the voltage distribution information, the current value of each branch is calculated based on Ohm's law, and the current flow direction of the branch is analyzed through the positive and negative relationship of the current value of each branch to obtain the current distribution information.

7. A distribution network adaptive power flow optimization system according to claim 5, characterized in that: The obtaining of final solution information, evaluating the final solution information, selecting a final optimization result in combination with the optimization objective and the constraint condition, and obtaining final optimization result information specifically includes: Acquire final solution information, extract fitness values ​​of each final solution according to the final solution information, and obtain fitness value information; Preset an expected solution threshold, calculate the difference between the fitness value information and the expected solution threshold, and take the absolute value of the difference to obtain each final solution difference information; The final solution difference information is sorted according to the numerical value to obtain a difference sorting table, a selection threshold is preset, and the optimal solution is selected according to the selection threshold combined with the difference sorting table to obtain the optimal solution information; The optimization objective and constraint conditions are used as evaluation weights, and the optimal solution information is weighted calculated by the evaluation weights to obtain weighted calculation result information; The optimal solution is selected as the final optimization result through weighted calculation result information to obtain the final optimization result information.