A method for dynamic partitioning of distribution network areas with a high proportion of distributed photovoltaics
By introducing voltage influence mechanisms and genetic algorithms, the electrical distance is calculated dynamically and a scientific regional division index system is built, the problem of insufficient voltage imbalance and dynamic adjustment capabilities in the distribution network is solved, and the stability and response capabilities of the distribution network are improved. .
Patent Information
- Application Number
- CN202411222755.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-09-02
AI Technical Summary
When the existing technology is connected to the distribution network with a high proportion of distributed photovoltaics, it cannot effectively solve the overvoltage problem caused by voltage imbalance, and lacks dynamic adjustment capabilities, resulting in unstable operation of the distribution network, limiting the access of distributed photovoltaics. ability.
By introducing a voltage influence mechanism, dynamic electrical distance is calculated, and regional division is divided in combination with genetic algorithms to build a more scientific regional division index system, which has dynamic update capabilities and meets real-time voltage control requirements.
It improves the operating efficiency and stability of the distribution network, can dynamically adjust the area division, adapt to the voltage changes after photovoltaic access, ensures voltage stability, and enhances the dynamic response capability of the distribution network.
Smart Images

Figure CN118739326B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics. Background Art
[0002] The increasing penetration of distributed photovoltaic power into distribution networks will have a greater impact on their safe and stable operation. Imbalances between photovoltaic power generation and load demand can easily cause power flow to flow back into the grid, raising node voltages and causing overvoltage issues. Overvoltage issues not only impact the safe and stable operation of the system but also limit the distribution network's ability to accommodate distributed photovoltaic power generation, increasing power losses. As the penetration of distributed photovoltaic power in distribution networks increases, the number of voltage nodes that require control increases significantly, making overvoltage issues even more severe.
[0003] The existing technology mainly combines the reactive balance index, active balance index and modularity index as the regional division criteria, combines the corresponding regional division method to divide the power grid into regions, searches for key nodes within the obtained sub-regions, and achieves voltage stability of the entire network by controlling the voltage of the key nodes.
[0004] However, the existing technology only considers indicators such as active modularity / reactive modularity, reactive balance, and active balance, and lacks comprehensive consideration of multiple indicator systems. Therefore, it cannot meet the real-time voltage control requirements, resulting in unreasonable regional division. Secondly, the modularity indicator only uses Euclidean distance to define the electrical distance between nodes, and does not consider the impact of power changes caused by other nodes connected to photovoltaics on the node, resulting in division. At the same time, the division basis of the existing technology itself does not have the ability to be dynamically updated, so it can only perform static one-time division. After the division is completed, it is usually impossible to make dynamic adjustments due to the lack of new basis. Summary of the Invention
[0005] In response to the problems of unreasonable division and lack of dynamic adjustment capability in the existing technology, the present invention provides a method for dynamic division of distribution network areas containing a high proportion of distributed photovoltaics. In the process of indicator construction, not only the consideration range is increased, but also the voltage influence mechanism is used to make the calculation of electrical distance a dynamic value, thereby making the division basis have dynamic update capability. On this basis, partitioning is performed based on the genetic algorithm, and whether the partitioning needs to be dynamically updated is judged according to the function value of the regional division indicator system. This solves the problems of unreasonable division and lack of dynamic adjustment capability in the existing technology, makes the distribution network area division more reasonable in structure and function, provides a basis for interval coordinated optimization voltage control, and meets the requirements of real-time voltage control.
[0006] The following are the technical solutions of the present invention.
[0007] A method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics comprises the following steps:
[0008] S1: Calculates dynamic electrical distance based on voltage impact mechanism, calculates modularity index based on dynamic electrical distance, calculates node load balancing index based on active and reactive power balance capability, and calculates node voltage deviation suppression capability index based on node voltage deviation suppression capability;
[0009] S2: Construct a regional division index system function based on the modularity index, node load balancing index, and node voltage deviation suppression capability index;
[0010] S3: Using the partitioning scheme as an individual, the adjacency matrix as a chromosome, and the regional partitioning index system function value as the fitness value, a genetic algorithm is used to partition the distribution network;
[0011] S4: After the partitioning is completed, a random node is selected based on the preset period to calculate the dynamic electrical distance. If the change in the dynamic electrical distance meets the starting conditions, the partitioning judgment is started: if the difference between the regional division index system function value at the current moment and the previous moment meets the preset conditions, return to S3 to dynamically update the distribution network partition.
[0012] In the present invention, a linear weighted regional division index system function is constructed by comprehensively considering the improved modularity index, load balancing index, and voltage deviation suppression capability index to replace the traditional regional division index system, making the distribution network regional division more reasonable in terms of structure and function. A voltage impact mechanism is also introduced, so that when defining the electrical distance, not only the node location needs to be considered, but also the impact of the power change caused by other nodes connected to photovoltaic power on the node needs to be considered. This makes the above-mentioned division basis have the ability to be dynamically updated, solving the problem that the traditional solution does not have the premise of dynamic division. The distribution network is then partitioned using a genetic algorithm to obtain the optimal solution. Finally, judgment is made based on the function value of the regional division index system and dynamic updates are performed to meet the requirements of real-time voltage control.
[0013] Preferably, in S1, calculating the dynamic electrical distance based on the voltage influence mechanism, and calculating the modularity index based on the dynamic electrical distance include:
[0014] Perform matrix transformation on the power flow equation in the distribution network to obtain the voltage amplitude sensitivity matrix and the voltage phase angle sensitivity matrix;
[0015] Establish a voltage impact mechanism. If a new node is connected, recalculate the voltage amplitude sensitivity matrix and voltage phase angle sensitivity matrix based on the voltage impact mechanism.
[0016] Calculate the electrical distance based on voltage sensitivity according to the voltage amplitude sensitivity matrix;
[0017] Calculate the equivalent impedance between nodes and calculate the dynamic electrical distance based on the equivalent impedance and the electrical distance based on voltage sensitivity;
[0018] The edge weight network connection matrix and Davidson-Boulding index are calculated based on the dynamic electrical distance, and then the modularity index is calculated.
[0019] In the present invention, by establishing a voltage impact mechanism and recalculating the voltage amplitude sensitivity matrix and the voltage phase angle sensitivity matrix, the impact of new node access on the voltage distribution of the distribution network can be more accurately reflected, thereby improving the accuracy of the electrical distance calculation. Secondly, the dynamic electrical distance is calculated based on the electrical distance and equivalent impedance of voltage sensitivity, which further enhances the practicality and accuracy of the electrical distance index and helps to more accurately demarcate the distribution network area. Finally, by calculating the edge weight network connection matrix and the Davidson-Borg index, the modularity index is obtained, which provides a more scientific and reasonable basis for the dynamic division of the distribution network area, and helps to improve the operating efficiency and stability of the distribution network.
[0020] Preferably, the voltage influencing mechanism includes:
[0021] The voltage amplitude sensitivity and voltage phase angle sensitivity of other nodes when each unit active power and reactive power is injected into them are obtained, as well as the changes in active power and reactive power injected into other nodes. The numerical value of the impact of other nodes on the node voltage of this node is obtained by comprehensive calculation. Based on this numerical value, the parameter values in the power flow equation are readjusted and the voltage amplitude sensitivity matrix and voltage phase angle sensitivity matrix are recalculated.
[0022] In this invention, by obtaining the voltage amplitude sensitivity and voltage phase angle sensitivity of other nodes when each unit of active power and reactive power is injected, and comprehensively considering the changes in active power and reactive power injected by other nodes, it is possible to more comprehensively calculate the impact of other nodes on the voltage of the node. This comprehensive calculation method not only improves the accuracy of the voltage influence mechanism but also provides a reliable basis for re-adjusting the parameter values in the power flow equation, thereby ensuring a more accurate recalculation of the voltage amplitude sensitivity matrix and the voltage phase angle sensitivity matrix.
[0023] Preferably, in S1, calculating the node load balancing index based on active and reactive power balancing capabilities includes:
[0024] The active power balancing capacity is calculated based on the number of nodes, balancing coefficient, active resource call amount, total available active power, node output active power, and load power that can be reduced;
[0025] Calculate the reactive power balancing capability based on the number of nodes, balancing coefficient, reactive resource call amount, total reactive power available, and reactive power output by the node;
[0026] The node load balancing index is calculated based on the different weights of active power balancing capability and reactive power balancing capability.
[0027] Preferably, in S1, calculating the node voltage deviation suppression capability index based on the node voltage deviation suppression capability includes:
[0028] The maximum voltage regulation of the node is calculated based on the maximum active and reactive power that can be provided to the node. The node voltage deviation suppression capability is determined based on the maximum voltage regulation and the maximum voltage deviation. Then, the node voltage deviation suppression capability index is calculated according to different situations.
[0029] In the present invention, since photovoltaic power generation has characteristics such as intermittency and volatility, considering the node voltage deviation suppression capability index when zoning can better adapt to these characteristics, ensuring that the system can still maintain a stable voltage level when the photovoltaic output power changes. By evaluating the voltage deviation suppression capability of each node, the distribution grid area can be more reasonably divided to ensure that after photovoltaic access, each area can have sufficient voltage regulation capability to cope with voltage deviation problems caused by factors such as photovoltaic output power fluctuations, thereby improving the voltage stability of the entire distribution network.
[0030] Preferably, the step S2: constructing a regional division index system function according to the modularity index, the node load balancing index, and the node voltage deviation suppression capability index, includes:
[0031] Determine the weight coefficient of each indicator through the hierarchical analysis method;
[0032] A regional division index system function is constructed based on each indicator and the corresponding weight coefficient.
[0033] Preferably, S3: using the partitioning scheme as an individual, the adjacency matrix as a chromosome, and the regional partitioning index system function value as a fitness value, and using a genetic algorithm to partition the distribution network includes:
[0034] S31: Create an initial population of individuals using several partitioning schemes, and use the adjacency matrix corresponding to the partitioning scheme as the chromosome of the individual, where the elements 0 and 1 in the adjacency matrix represent the unconnected and connected states between nodes, respectively;
[0035] S32: Calculate the regional division index system function value of each individual as the fitness value;
[0036] S33: Select two individuals for crossover and mutation to obtain several offspring individuals;
[0037] S34: Calculate the fitness value of the offspring individual and retain the offspring individual with the largest fitness value improvement;
[0038] S35: Repeat S33 and S34 until a preset number of iterations or a preset fitness value is reached, and then stop, and output the partitioning scheme corresponding to the individual with the highest current fitness value.
[0039] Preferably, in S4: after the partitioning is completed, a random node is selected based on a preset period to calculate the dynamic electrical distance, and if the change in the dynamic electrical distance meets the starting condition, the partitioning judgment is started, including:
[0040] Determine the preset period. After the partition is completed, each preset period is a moment. Randomly select several nodes in the partition, calculate the dynamic electrical distance at the current moment, call the dynamic electrical distance at the previous moment, and calculate the modulus of the two. If the difference in the modulus is greater than the preset difference, it is considered that the start condition is met, or
[0041] The dynamic electrical distance is converted into a two-dimensional real vector and the cosine similarity between the two is calculated. If the cosine similarity is less than the preset similarity, the start condition is considered to be met.
[0042] In the present invention, since the calculation amount of the regional division index system function is large, a large amount of computing power is required to perform calculations in each cycle. However, if the calculation is not performed, real-time partition response cannot be achieved, making dynamic partitioning meaningless. Therefore, the dynamic electrical distance, which has the greatest impact on the function value, is used as the fulcrum to divide the dynamic partition as a whole into two parts. First, by calculating the dynamic electrical distance, it is indirectly judged whether the structure within the partition has undergone major changes. After the starting conditions are met, the partition judgment is performed to finally determine whether the partition is performed. On the one hand, it can meet the real-time requirements and improve the dynamic response capability. On the other hand, in most cases, the dynamic electrical distance does not change much, and there is no need to start the partition judgment, which minimizes the amount of calculation.
[0043] Preferably, in S4: if the difference between the regional division index system function value at the current moment and the previous moment meets the preset condition, then return to S3 to dynamically update the distribution network partition, including:
[0044] Set the threshold for dynamic update of partitions. If the difference between the regional division index system function value at the current moment and the previous moment is greater than or equal to the threshold, it is considered that the preset condition is met and return to S3 to dynamically update the distribution network partition.
[0045] In the present invention, since the voltage influence mechanism is introduced, the sensitivity matrix will change accordingly, which will cause the dynamic electrical distance to change dynamically. Therefore, the function values of various indicators and regional division indicator systems will also change dynamically. The present invention makes a judgment based on this. If the change is large, it is considered that re-partitioning is required.
[0046] The present invention also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, it implements the steps of the above-mentioned method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics.
[0047] The present invention also provides a storage medium storing computer executable instructions. When the computer executable instructions are loaded and executed by a processor, the steps of the above-mentioned method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics are implemented.
[0048] The substantial effects of the present invention include:
[0049] By introducing a voltage impact mechanism, the electrical distance definition not only considers node location but also the impact of power changes caused by other nodes connected to photovoltaic systems. By comprehensively considering improved modularity, load balancing, and voltage deviation suppression, a more scientific and reasonable regional division indicator system function is constructed. This structurally and functionally rationalizes the regional division of the distribution network, helping to improve its operational efficiency and stability. Furthermore, the dynamically changing regional division indicator system function values provide a data foundation for subsequent dynamic zoning.
[0050] The present invention adopts a genetic algorithm to partition the distribution network, which can effectively solve the complex problem of regional division of the distribution network and further improve the accuracy and practicality of the partition.
[0051] The present invention also has dynamic adjustment capabilities and can be dynamically updated according to changes in the function values of the regional division index system. It can adapt to the actual conditions and needs of the distribution network operation, better deal with voltage deviation problems caused by factors such as node access and photovoltaic output power fluctuations, and improve the voltage stability of the entire distribution network.
[0052] In summary, the present invention provides a new approach for the regional division of distribution networks with a high proportion of distributed photovoltaics by comprehensively considering multiple indicators, introducing a voltage influencing mechanism, adopting a genetic algorithm for zoning, and performing dynamic adjustment. This approach not only helps to improve the operating efficiency and stability of the distribution network, but also better adapts to the actual conditions and needs after photovoltaic access, provides a basis for interval coordinated optimization of voltage control, and solves the problems of unreasonable division and lack of dynamic adjustment capability in the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0054] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions will be clearly and completely described below in conjunction with the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0055] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0056] It should be understood that in the present invention, "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0057] It should be understood that in the present invention, "multiple" refers to two or more. "And / or" is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.
[0058] The technical solution of the present invention is described in detail below with reference to specific embodiments. The embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0059] Example:
[0060] A method for dynamic partitioning of distribution network areas with a high proportion of distributed photovoltaics, such as Figure 1 As shown, the following steps are included:
[0061] S1: Calculates dynamic electrical distance based on voltage impact mechanism, calculates modularity index based on dynamic electrical distance, calculates node load balancing index based on active and reactive power balance capability, and calculates node voltage deviation suppression capability index based on node voltage deviation suppression capability.
[0062] Among them, the modularity index As shown in formula (1):
[0063] (1);
[0064] Where: is the edge weight network connection matrix Rank Elements of the column; Represents 1 / 2 of the sum of the weights of all edges in the region; Represents all nodes The sum of the weights of the connected edges; Represents all nodes The sum of the weights of the connected edges; is the Davidson-Borging index, which is used to ensure the degree of aggregation of cluster division; node and In the same area and connected, ,otherwise .
[0065] in, and Both are expressed as the dynamic electrical distance between two nodes, as shown in formulas (2) and (3):
[0066] (2);
[0067] (3);
[0068] Where: For nodes and Dynamic electrical distance between is the total number of partitions; represents the two-norm; For the Each node in a partition is connected to the The average electrical distance between nodes.
[0069] Nodes in the modularity index and The calculation process of the dynamic electrical distance between
[0070] The power flow equation in the distribution network is shown in formula (4):
[0071] (4);
[0072] Where: and Respectively represent the active power and reactive power change matrices injected by the node; 、 、 and The relationship matrix between the change of node injection power and the change of node voltage and phase angle; and are the variation matrices of voltage phase angle and amplitude respectively.
[0073] By performing matrix transformation on the above power flow equation, we can obtain the following equation, as shown in formula (5):
[0074] (5);
[0075] Where: and are the sensitivity matrices of node voltage phase angle changes when unit active power and reactive power are injected into the node respectively; and are the sensitivity matrices of the node voltage amplitude change when unit active power and reactive power are injected into the node respectively.
[0076] Calculating electrical distance based on voltage sensitivity and .exist When nodes are connected to photovoltaics of different capacities, The voltage of a node is affected not only by its own voltage but also by other nodes. and Therefore, the voltage influence mechanism is introduced, where Node voltage It can be expressed as formula (6):
[0077] (6);
[0078] Where: is the number of nodes connected to photovoltaic power generation in the distribution network; Node when photovoltaic power is not connected Voltage; and The sensitivity matrices are and Middle Rank Column elements; and They are and The first Row element.
[0079] As can be seen from the above formula, when defining the electrical distance, it is necessary to consider not only the node location but also the impact of power changes caused by other nodes connected to photovoltaic power on the node. If a new node is connected, the voltage amplitude sensitivity matrix and voltage phase angle sensitivity matrix are recalculated based on the voltage impact mechanism.
[0080] Therefore, from the perspective of voltage control, the electrical distance based on voltage sensitivity can be expressed as formula (7) and formula (8):
[0081] (7);
[0082] (8);
[0083] Where: and The electrical distances are the active and reactive voltage sensitivities respectively.
[0084] Compute nodes and In the distribution network, the nodes and Equivalent impedance between It can be expressed as formula (9):
[0085] (9);
[0086] Where: 、 and They represent the system node impedance matrix Rank Column element, Rank Column elements and Rank Column element.
[0087] Compute nodes and The dynamic electrical distance between and 、 Combined, nodes and Dynamic electrical distance between As shown in formula (10):
[0088] (10);
[0089] Where: represents the real part; Indicates taking the imaginary part.
[0090] In this embodiment, by establishing a voltage impact mechanism and recalculating the voltage amplitude sensitivity matrix and the voltage phase sensitivity matrix, the impact of new node access on the distribution network voltage distribution can be more accurately reflected, thereby improving the accuracy of electrical distance calculation. Secondly, dynamic electrical distance is calculated based on voltage sensitivity electrical distance and equivalent impedance, further enhancing the practicality and accuracy of the electrical distance indicator, facilitating more accurate demarcation of distribution network areas. Finally, by calculating the edge weight network connectivity matrix and the Davidson-Borging index, a modularity index is derived, providing a more scientific and reasonable basis for the dynamic demarcation of distribution network areas, helping to improve the operational efficiency and stability of the distribution network. At the same time, by obtaining the voltage amplitude sensitivity and voltage phase sensitivity of other nodes when each unit of active power and reactive power is injected, and comprehensively considering the changes in active power and reactive power injected by other nodes, the impact of other nodes on the voltage of the node can be more comprehensively calculated. This comprehensive calculation method not only improves the accuracy of the voltage impact mechanism but also provides a reliable basis for re-adjusting the parameter values in the power flow equation, thereby ensuring more accurate recalculation of the voltage amplitude sensitivity matrix and the voltage phase sensitivity matrix.
[0091] Among them, the node load balancing index is based on the requirement that the net load distribution in each zone should be balanced when dividing the power grid area. When the voltage of a node in a zone exceeds the limit, the adjustable resources in the zone are mobilized to adjust the voltage to avoid excessive or insufficient reserves of adjustable resources in the zone. Specifically, the load balancing index As shown in formula (11):
[0092] (11);
[0093] Where: is the weight coefficient; and Active power and reactive power balance capabilities respectively. Active power balance capability in load balancing indicators and reactive power balancing capability The calculation process is as follows:
[0094] Calculate active power balancing capability Active power balancing capability As shown in formula (12) and formula (13):
[0095] (12);
[0096] (13);
[0097] Where: For the The total number of nodes in the interval; is the equilibrium coefficient; For the The amount of active resources called in each sub-interval; For the The total active power available in the sub-interval; 、 、 and Divided into In the subinterval The active power output and load curtailment power of photovoltaic, distributed generators and energy storage of each node.
[0098] Calculate reactive power balance capability . Reactive power balancing capability As shown in formula (14) and formula (15):
[0099] (14);
[0100] (15);
[0101] Where: For the The number of nodes in the interval; For the The amount of reactive resources called in each sub-interval; For the The total reactive power available in the sub-interval; 、 、 and Divided into In the subinterval The reactive power output of photovoltaic, distributed generators, reactive devices and energy storage at each node.
[0102] Among them, the node voltage deviation suppression capability index is based on the fact that voltage over-limit is the main problem faced by high-proportion distributed photovoltaic access distribution networks. The voltage deviation suppression capability index is defined to improve voltage over-limit by calling on adjustable resources such as photovoltaics and energy storage in the region. As shown in formula (16)-formula (20):
[0103] (16);
[0104] (17);
[0105] (18);
[0106] (19);
[0107] (20);
[0108] in, is a logarithmic function; For the The number of photovoltaic nodes connected in each sub-interval; For the Sub-interval voltage deviation suppression capability index; and Nodes in the region Maximum voltage deviation and maximum voltage regulation; and They are respectively Maximum active and reactive power provided; 、 、 and No. The active power that can be provided by photovoltaics, distributed generators, and energy storage at each node and the load power that can be reduced; 、 、 and Divided into The reactive power that can be provided by photovoltaic, distributed generators, reactive devices and energy storage at each node.
[0109] In this embodiment, since photovoltaic power generation has characteristics such as intermittent and fluctuating characteristics, considering the node voltage deviation suppression capability index when zoning can better adapt to these characteristics, ensuring that the system can still maintain a stable voltage level when the photovoltaic output power changes. By evaluating the voltage deviation suppression capability of each node, the distribution grid area can be more reasonably divided to ensure that after photovoltaic access, each area can have sufficient voltage regulation capability to cope with voltage deviation problems caused by factors such as photovoltaic output power fluctuations, thereby improving the voltage stability of the entire distribution network.
[0110] S2: Construct a regional division index system function based on the modularity index, node load balancing index, and node voltage deviation suppression capability index.
[0111] The indicators defined above are used to construct a regional division indicator system through linear weighting. The function expression is shown in formula (21):
[0112] (twenty one);
[0113] Where: 、 and Improved modularity , power balance capability indicators and voltage deviation suppression capability indicators The weight coefficients are determined by the hierarchical analysis method.
[0114] S3: Using the partitioning scheme as the individual, the adjacency matrix as the chromosome, and the regional partition index system function value as the fitness value, a genetic algorithm is used to partition the distribution network.
[0115] S3 specifically includes:
[0116] S31: Create an initial population of individuals using several partitioning schemes, and use the adjacency matrix corresponding to the partitioning scheme as the chromosome of the individual, where the elements 0 and 1 in the adjacency matrix represent the unconnected and connected states between nodes, respectively;
[0117] S32: Calculate the regional division index system function value of each individual as the fitness value;
[0118] S33: Select two individuals for crossover and mutation to obtain several offspring individuals;
[0119] S34: Calculate the fitness value of the offspring individuals and retain the offspring individuals with the largest fitness value improvement; that is, calculate the regional division index system function value of the partition at this time and the function value of the regional division index system at the previous moment The difference .
[0120] S35: Repeat S33 and S34 until a preset number of iterations or a preset fitness value is reached, and then stop, and output the partitioning scheme corresponding to the individual with the highest current fitness value.
[0121] S4: After the partitioning is completed, a random node is selected based on the preset period to calculate the dynamic electrical distance. If the change in the dynamic electrical distance meets the starting conditions, the partitioning judgment is started: if the difference between the regional division index system function value at the current moment and the previous moment meets the preset conditions, return to S3 to dynamically update the distribution network partition.
[0122] S4 specifically includes:
[0123] Determine the preset period. After the partition is completed, each preset period is a moment. Randomly select several nodes in the partition, calculate the dynamic electrical distance at the current moment, call the dynamic electrical distance at the previous moment, and calculate the modulus of the two. If the difference in the modulus is greater than the preset difference, it is considered that the start condition is met, or
[0124] The dynamic electrical distance is converted into a two-dimensional real vector and the cosine similarity between the two is calculated. If the cosine similarity is less than the preset similarity, the start condition is considered to be met.
[0125] In this embodiment, since the calculation amount of the regional division index system function is large, a large amount of computing power is required to perform calculations in each cycle. However, if the calculation is not performed, real-time partition response cannot be achieved, making dynamic partitioning meaningless. Therefore, the dynamic electrical distance, which has the greatest impact on the function value, is used as the fulcrum to divide the dynamic partition as a whole into two parts. First, by calculating the dynamic electrical distance, it is indirectly judged whether the structure within the partition has undergone major changes. After the startup conditions are met, the partition judgment is performed to finally determine whether the partition is performed. On the one hand, it can meet the real-time requirements and improve the dynamic response capability. On the other hand, in most cases, the dynamic electrical distance does not change much, and there is no need to start the partition judgment, which minimizes the amount of calculation.
[0126] Set the threshold for dynamic update of partitions. If the difference between the regional division index system function value at the current moment and the previous moment is greater than or equal to the threshold, it is considered that the preset condition is met and return to S3 to dynamically update the distribution network partition.
[0127] That is, calculate Time partition The population fitness function value and Time partition The difference between the population fitness function values When the difference exceeds the threshold, the distribution network partition is dynamically updated. As shown in formula (22):
[0128] (twenty two);
[0129] Where: and They are Moment and Partition results at the moment; The threshold value that is dynamically updated for the partition.
[0130] In this embodiment, since the voltage influence mechanism is introduced, the sensitivity matrix will change accordingly, which will cause the dynamic electrical distance to change dynamically. Therefore, the function values of various indicators and regional division indicator systems will also change dynamically. This embodiment makes a judgment based on this. If the change is large, it is considered that re-partitioning is required.
[0131] This embodiment also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, it implements the steps of the above-mentioned method for dynamically dividing the distribution network area containing a high proportion of distributed photovoltaics.
[0132] This embodiment also provides a storage medium, which stores computer-executable instructions. When the computer-executable instructions are loaded and executed by a processor, the steps of the above-mentioned method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics are implemented.
[0133] In summary, the substantial effects of this embodiment include:
[0134] By introducing a voltage impact mechanism, the electrical distance definition not only considers node location but also the impact of power changes caused by other nodes connected to photovoltaic systems. By comprehensively considering improved modularity, load balancing, and voltage deviation suppression, a more scientific and reasonable regional division indicator system function is constructed. This structurally and functionally rationalizes the regional division of the distribution network, helping to improve its operational efficiency and stability. Furthermore, the dynamically changing regional division indicator system function values provide a data foundation for subsequent dynamic zoning.
[0135] The use of genetic algorithms to partition distribution networks can effectively solve the complex problem of distribution network regional division and further improve the accuracy and practicality of partitioning.
[0136] It has dynamic adjustment capabilities and can be dynamically updated according to changes in the function values of the regional division indicator system. It can adapt to the actual conditions and needs of distribution network operation, better deal with voltage deviation problems caused by factors such as node access and photovoltaic output power fluctuations, and improve the voltage stability of the entire distribution network.
[0137] By comprehensively considering multiple indicators, introducing voltage impact mechanisms, using genetic algorithms for zoning, and dynamic adjustment, a new approach is provided for the regional division of distribution networks containing a high proportion of distributed photovoltaics. This not only helps to improve the operating efficiency and stability of the distribution network, but also better adapts to the actual situation and needs after photovoltaic access, provides a basis for interval coordinated optimization of voltage control, and solves the problems of unreasonable division and lack of dynamic adjustment capabilities in existing technologies.
[0138] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the specific device can be divided into different functional modules to complete all or part of the functions described above.
[0139] In the embodiments provided in this application, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the embodiments of the structure described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another structure, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, structure or unit, which can be electrical, mechanical or other forms.
[0140] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0141] In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically separately, 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 software functional units.
[0142] 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 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, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0143] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics, characterized in that: The following steps are involved: S1: Calculate the dynamic electrical distance based on the voltage impact mechanism, calculate the modularity index based on the dynamic electrical distance, calculate the node load balancing index based on the active and reactive power balance capabilities, and calculate the node voltage deviation suppression capability index based on the node voltage deviation suppression capability; S2: Construct a regional division index system function based on the modularity index, node load balancing index, and node voltage deviation suppression capability index; S3: Taking the partition scheme as the individual, the adjacency matrix as the chromosome, and the function value of the regional partition index system as the fitness value, a genetic algorithm is used to partition the distribution network; S4: After the partition is completed, a random node is selected based on the preset period to calculate the dynamic electrical distance. If the change of the dynamic electrical distance meets the start condition, the partition judgment is started: if the difference between the regional division index system function value at the current moment and the previous moment meets the preset condition, return to S3 to dynamically update the distribution network partition; Perform matrix transformation on the power flow equation in the distribution network to obtain the voltage amplitude sensitivity matrix and the voltage phase angle sensitivity matrix; A voltage impact mechanism is established. If a new node is connected, the voltage amplitude sensitivity matrix and the voltage phase angle sensitivity matrix are recalculated based on the voltage impact mechanism. Calculate the electrical distance based on voltage sensitivity according to the voltage amplitude sensitivity matrix; Calculate the equivalent impedance between nodes, and calculate the dynamic electrical distance based on the equivalent impedance and the electrical distance based on voltage sensitivity; The edge weight network connection matrix and Davidson-Boulding index are calculated based on the dynamic electrical distance, and then the modularity index is calculated; The voltage influencing mechanism includes: The voltage amplitude sensitivity and voltage phase angle sensitivity when each unit of active power and reactive power is injected into other nodes are obtained, as well as the changes in active power and reactive power injected into other nodes. The value of the impact of other nodes on the node voltage of the node is obtained by comprehensive calculation. Based on the value, the parameter values in the power flow equation are readjusted to recalculate the voltage amplitude sensitivity matrix and the voltage phase angle sensitivity matrix. In S1, the node load balancing index is calculated based on the active and reactive power balancing capabilities, including: The active power balancing capacity is calculated based on the number of nodes, balancing coefficient, active resource call amount, total available active power, active power output by the node, and load power that can be reduced; The reactive power balancing capacity is calculated based on the number of nodes, balancing coefficient, the amount of reactive resources called, the total reactive power that can be provided, and the reactive power output by the node; The node load balancing index is calculated based on the different weights of active balancing capability and reactive balancing capability.
2. A method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics according to claim 1, characterized in that: In S1, calculating the node voltage deviation suppression capability index based on the node voltage deviation suppression capability includes: The maximum voltage regulation of the node is calculated according to the maximum active and reactive power that can be provided to the node, and the node voltage deviation suppression capability is determined according to the maximum voltage regulation and the maximum voltage deviation, and then the node voltage deviation suppression capability index is calculated according to different situations.
3. The method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics according to claim 1, characterized in that: S2: constructing a regional division index system function according to the modularity index, the node load balancing index, and the node voltage deviation suppression capability index, including: Determine the weight coefficient corresponding to each indicator through the hierarchical analysis method; A regional division index system function is constructed based on each index and the corresponding weight coefficient.
4. The method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics according to claim 1, characterized in that: S3: using the partition scheme as an individual, the adjacency matrix as a chromosome, and the regional partition index system function value as a fitness value, and using a genetic algorithm to partition the distribution network, including: S31: Create an initial population for individuals using several partitioning schemes, and use the adjacency matrix corresponding to the partitioning scheme as the chromosome of the individual, where the elements 0 and 1 in the adjacency matrix represent the unconnected and connected states between nodes, respectively; S32: Calculate the regional division index system function value of each individual as the fitness value; S33: Select two individuals for crossover and mutation to obtain several offspring individuals; S34: Calculate the fitness value of the offspring individual, and retain the offspring individual with the largest fitness value improvement; S35: Repeat S33 and S34 until a preset number of iterations or a preset fitness value is reached, and then stop, and output the partitioning scheme corresponding to the individual with the highest current fitness value.
5. A method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics according to claim 1 or 4, characterized in that: In S4: after the partitioning is completed, a random node is selected based on a preset period to calculate the dynamic electrical distance, and if the change of the dynamic electrical distance meets the start condition, the partitioning judgment is started, including: Determine the preset cycle. After the partition is completed, each preset cycle is a moment. Randomly select several nodes in the partition, calculate the dynamic electrical distance at the current moment, retrieve the dynamic electrical distance at the previous moment, and calculate the modulus of the two. If the difference in the modulus is greater than the preset difference, it is considered that the start condition is met, or After converting the dynamic electrical distance into a two-dimensional real vector, the cosine similarity between the two is calculated. If the cosine similarity is less than the preset similarity, the start condition is considered to be met.
6. A method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics according to claim 1 or 4, characterized in that: In S4: if the difference between the regional division index system function value at the current moment and the previous moment meets the preset condition, then return to S3 to dynamically update the distribution network partition, including: Set the threshold for dynamic update of partitions. If the difference between the regional division index system function value at the current moment and the previous moment is greater than or equal to the threshold, it is considered that the preset condition is met and return to S3 to dynamically update the distribution network partitions.
7. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, it implements the steps of a method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics as described in any one of claims 1 to 6.
8. A storage medium, characterized in that: The storage medium stores computer executable instructions, which, when loaded and executed by a processor, implement the steps of a method for dynamically dividing distribution network areas containing a high proportion of distributed photovoltaics as described in any one of claims 1 to 6.
