Adjacent micro-grid boundary fusion method and device and storage medium

By generating spanning triangular networks and binary trees, the gap problem in micro-grid boundary division is solved, automatic boundary fusion of adjacent micro-grids is realized, efficiency and quality are improved, and gap shapes of different structures are adapted to ensure boundary fusion. accuracy and consistency.

CN118799522APending Publication Date: 2024-10-18CHINA MOBILE(ZHEJIANG) RESEARCH & INNOVATION INSTITUTE +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311227798.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-21
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

There are gaps in the micro-grid boundary demarcation process in the existing technology, resulting in micro-grid area calculation errors and inaccurate statistical analysis of resource points. In addition, the adjacent micro-grid boundary fusion efficiency is low and the quality is poor, making it impossible to achieve rapid automatic division and planning. analyze.

Method used

By obtaining the original boundary coordinate information of adjacent microgrids, a spanning triangular network and a binary tree are generated, and the midpoint of the shared edge of the longest path is selected to form a fused boundary line, and then the fused boundary coordinate information is generated to adapt to irregular gap shapes and misalignment situations. , to achieve automatic boundary fusion.

Benefits of technology

It improves the efficiency and quality of micro-grid boundary fusion, enables automatic boundary fusion under various gap shapes, reduces manual processing complexity, and ensures the accuracy and consistency of boundary fusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799522A_ABST
    Figure CN118799522A_ABST
Patent Text Reader

Abstract

The invention provides an adjacent micro-grid boundary fusion method and device and a storage medium, and relates to the technical field of micro-grid boundary fusion, and the method comprises the steps: obtaining the original boundary coordinate information of two adjacent first micro-grids; generating a bridging triangulation network according to the original boundary coordinate information; generating a binary tree according to the bridging triangulation network; according to the binary tree, selecting a longest path with the most edges, and generating a fusion boundary line according to the midpoint of the shared edge corresponding to the longest path; and generating fused boundary coordinate information corresponding to the first micro-grid according to the fused boundary line and the original boundary coordinate information. The bridging triangulation network can adapt to various boundary lines and the condition of dislocation of the first micro-grid, meanwhile, the bridging triangulation network of different structures is adapted in a binary tree conversion mode, the shared edge midpoint meeting the requirement is rapidly selected from the bridging triangulation network, an appropriate fusion boundary line is formed, and the method is beneficial to improving the construction efficiency under the condition of various gap shapes. Automatic boundary fusion can be realized, and the boundary fusion efficiency and quality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of microgrid boundary fusion, and in particular to a method, device and storage medium for fusing boundaries of adjacent microgrids. Background Art

[0002] As users' demands for diversified services, access bandwidth, security assurance continue to increase, and user value continues to be deeply explored, the requirements for existing network access capabilities continue to increase. In order to achieve local access and precise management of services and ensure bandwidth and quality, the grid division of comprehensive service access areas in the entire region is carried out, and the division and planning are carried out from bottom to top according to the four-layer grid structure of micro grid, optical exchange grid, computer room grid, and comprehensive service access area.

[0003] In the four-layer grid division of the integrated service access area, the microgrid is the smallest division unit and the initial source of user service needs. According to different business forms, it can be divided into residential areas, open areas, business buildings, complexes, campuses, industrial parks, independent enterprises, professional markets, vacant land to be built, invalid areas, rural areas, etc. According to the above business types and geographical location characteristics, a relatively independent planning, construction and management unit is formed, namely the microgrid. The optical cross-connection grid is an area composed of multiple microgrids, and the computer room grid is an area composed of multiple optical cross-connection grids.

[0004] However, in the prior art, the microgrid planning process is mainly divided by manual means combined with the measurement of geographic location features. After the microgrids are divided according to the measurement points, there are gaps between adjacent microgrids. The existence of gaps will lead to the following problems: there are errors in the calculation of the microgrid area; the resource points in the microgrid cannot be accurately counted and analyzed, and there are errors; the subsequent division of the optical intersection grid and the computer room grid cannot be quickly and automatically divided based on the microgrid, and the grid-based automated planning and analysis cannot be developed and implemented. In order to eliminate the gaps and ensure seamless fusion between two adjacent microgrids, it is necessary to spend a lot of time manually drawing. Since the boundaries of the microgrids are irregular and there are misalignments between adjacent microgrids, that is, the gaps between adjacent microgrids are irregular shapes, manual boundary fusion drawing is inefficient and the fusion quality is poor. Summary of the invention

[0005] The present invention provides a method, a device and a storage medium for fusing boundaries of adjacent microgrids, which are used to solve the problem of fusing boundaries between adjacent microgrids in the prior art.

[0006] The present invention provides a method for fusing adjacent microgrid boundaries, comprising:

[0007] Obtaining original boundary coordinate information of two adjacent first micro-grids;

[0008] Generate a bridging triangulation network according to the two sets of original boundary coordinate information, wherein the bridging triangulation network connects boundaries of adjacent first micro-grids;

[0009] Generate a binary tree according to the bridging triangulation network, taking each triangle as a node and taking the shared edges between the triangles as the edges between corresponding nodes;

[0010] According to the binary tree, a longest path with the largest number of edges is selected, and a fusion boundary line is generated according to the midpoint of the shared edge corresponding to the longest path;

[0011] Generating fused boundary coordinate information corresponding to the first microgrid according to the fused boundary line and the original boundary coordinate information;

[0012] The bridging triangulation network includes a plurality of bridging triangles between two of the first micro-grids, and the vertices of the bridging triangles are the boundary points of the first micro-grids.

[0013] According to a method for fusing adjacent microgrid boundaries provided by the present invention, generating a bridging triangulated network based on two sets of original boundary coordinate information includes:

[0014] Generate a first triangulated network according to the two sets of original boundary coordinate information;

[0015] According to the two sets of original boundary coordinate information, first triangles whose center points are located in the first micro-grid are removed from the first triangulated network, and the remaining first triangles constitute a bridging triangulated network;

[0016] The first triangulated network includes a plurality of first triangles with the boundary points of the first micro-grid as vertices.

[0017] According to a method for fusing boundaries of adjacent microgrids provided by the present invention, before obtaining original boundary coordinate information of two adjacent first microgrids, the method further includes:

[0018] Obtain the original boundary coordinate information of all microgrids in the target area;

[0019] According to the original boundary coordinate information, obtaining the center of gravity coordinates of each of the micro grids;

[0020] Generate a second triangulated network according to the barycentric coordinates;

[0021] Acquiring proximity information between the micro-grids according to a connection relationship between the barycentric coordinates in the second triangulated network;

[0022] According to the proximity information, acquiring two adjacent microgrids as the first microgrids;

[0023] The second triangulated network includes a plurality of second triangles with the barycentric coordinates as vertices.

[0024] According to a method for fusing adjacent microgrid boundaries provided by the present invention, the original boundary coordinate information includes coordinates of each boundary point; and obtaining the centroid coordinates of each microgrid according to the original boundary coordinate information includes:

[0025] According to the coordinates of each of the boundary points, an average value of the horizontal coordinate and an average value of the vertical coordinate are calculated to generate the center of gravity coordinates.

[0026] According to a method for fusing adjacent microgrid boundaries provided by the present invention, obtaining two adjacent microgrids as the first microgrid according to the proximity information includes:

[0027] According to the proximity information, selecting two micro-grids whose barycentric coordinates are connected to each other as second micro-grids;

[0028] Calculating a projection overlap ratio of two second micro-grids according to the original boundary coordinate information corresponding to the second micro-grids, and determining whether the two second micro-grids are adjacent according to the projection overlap ratio;

[0029] If they are adjacent, taking the two second micro grids as the first micro grids;

[0030] If they are not adjacent, two of the second micro grids are reselected according to the proximity information.

[0031] According to a method for fusing boundaries of adjacent microgrids provided by the present invention, the projection overlap rate includes a vertical projection overlap rate and a horizontal projection overlap rate; the projection overlap rate of two second microgrids is calculated according to the original boundary coordinate information corresponding to the second microgrids, and whether the two second microgrids are adjacent is determined according to the projection overlap rate, including:

[0032] According to the original boundary coordinate information, obtaining a first maximum abscissa, a first minimum abscissa, a first maximum ordinate, and a first minimum ordinate of one of the second micro-grids, and obtaining a second maximum abscissa, a second minimum abscissa, a second maximum ordinate, and a second minimum ordinate of another of the second micro-grids;

[0033] The vertical projection overlap ratio and the horizontal projection overlap ratio are calculated according to the following formula group:

[0034] X p =0,x 1 ≤x 4 or x 2 ≤x 3

[0035] Xp =1,x 1 ≤x 2 And x 3 ≥x 4 , x 1 ≥x 2 And x 3 ≤x 4

[0036] x 1 ≤x 2 And x 3 ≤x 4

[0037] x 1 ≥x 2 And x 3 ≥x 4

[0038] Y p =0,y 1 ≤y 4 or 2 ≤y 3

[0039] Y p =1,y 1 ≤y 2 And y 3 ≥y 4 ,y 1 ≥y 2 And y 3 ≤y 4

[0040] y 1 ≤y 2 And y 3 ≤y 4

[0041] y 1 ≥y 2 And y 3 ≥y 4

[0042] Among them, X p is the vertical projection overlap ratio, Y p is the horizontal projection overlap ratio, x 1 is the first maximum horizontal coordinate, x 2 is the second largest horizontal coordinate, x 3 is the first minimum horizontal coordinate, x 4 is the second smallest horizontal coordinate, y 1 is the first maximum ordinate, y 2is the second largest ordinate, y 3 is the first minimum ordinate, y 4 is the second smallest ordinate;

[0043] When the vertical projection overlap ratio or the horizontal projection overlap ratio is greater than or equal to a preset overlap threshold, it is determined to be adjacent; when the vertical projection overlap ratio and the horizontal projection overlap ratio are both less than the overlap threshold, it is determined to be non-adjacent.

[0044] According to a method for fusing boundaries of adjacent microgrids provided by the present invention, after generating fused boundary coordinate information corresponding to the first microgrid according to the fused boundary line and the original boundary coordinate information, the method further includes:

[0045] According to the proximity information, determining whether to traverse all the barycentric coordinate connection relationships;

[0046] If not traversed, two adjacent micro grids that have not been selected are re-selected as the first micro grid according to the neighboring information.

[0047] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for fusing adjacent microgrid boundaries as described above is implemented.

[0048] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the adjacent micro-grid boundary fusion method described in any one of the above methods is implemented.

[0049] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the adjacent micro-grid boundary fusion method as described above is implemented.

[0050] The present invention provides a method, device and storage medium for fusing the boundaries of adjacent microgrids, which have at least the following beneficial effects: based on the original boundary coordinate information of two adjacent first microgrids, a bridging triangulation network is generated between the two first microgrids, and the bridging triangulation network is located between the two first microgrids and connects the boundary points on the adjacent boundaries. Based on the shared edge relationship between each bridging triangle in the bridging triangulation network, a binary tree is generated, and the midpoint of the corresponding shared edge is selected through the longest path of the binary tree to generate a fused boundary line, and then the boundary fusion is completed according to the fused boundary line. In this way, the bridging triangulation network can be used to adapt to various boundary lines and adjacent first microgrid misalignment situations. At the same time, by converting to a binary tree, it can adapt to bridging triangulation networks of different structures, and quickly select the shared edge midpoints that meet the requirements to form a suitable fused boundary line, which is conducive to realizing automatic boundary fusion in various gap shapes, improving boundary fusion efficiency and boundary fusion quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 This is one of the flow charts of a method for fusing adjacent microgrid boundaries provided by the present invention;

[0053] Figure 2 This is a second flow chart of a method for fusing adjacent microgrid boundaries provided by the present invention;

[0054] Figure 3 This is a third flow chart of a method for fusing adjacent microgrid boundaries provided by the present invention;

[0055] Figure 4 This is a fourth flow chart of a method for fusing adjacent microgrid boundaries provided by the present invention;

[0056] Figure 5 It is a schematic diagram of converting a bridging triangulated network into a binary tree in one embodiment of a method for fusing boundaries of adjacent microgrids provided by the present invention;

[0057] Figure 6 It is a schematic diagram of the process of boundary fusion in one embodiment of a method for fusion of boundaries of adjacent micro grids provided by the present invention;

[0058] Figure 7 It is a schematic diagram of converting a micro-grid into a second triangulated network in one embodiment of a method for fusing boundaries of adjacent micro-grids provided by the present invention;

[0059] Figure 8 It is a schematic diagram of calculating the projection overlap ratio of two second micro-grids in one embodiment of a method for fusing boundaries of adjacent micro-grids provided by the present invention;

[0060] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] Combine the following Figure 1-Figure 8 A method for fusing adjacent microgrid boundaries according to the present invention is described, comprising:

[0063] S100: Acquire original boundary coordinate information of two adjacent first micro-grids;

[0064] S200: generating a bridging triangulation network according to the two groups of original boundary coordinate information, wherein the bridging triangulation network connects boundaries of adjacent first micro-grids;

[0065] S300: Generate a binary tree according to the bridging triangulation network, taking each triangle as a node and taking the shared edges between the triangles as the edges between corresponding nodes;

[0066] S400: Selecting a longest path with the largest number of edges according to the binary tree, and generating a fusion boundary line according to the midpoint of the shared edge corresponding to the longest path;

[0067] S500: generating fused boundary coordinate information corresponding to the first micro-grid according to the fused boundary line and the original boundary coordinate information;

[0068] The bridging triangulation network includes a plurality of bridging triangles between two of the first micro-grids, the vertices of the bridging triangles are the boundary points of the first micro-grids, and the circumscribed circle of the bridging triangles does not contain the vertices of other bridging triangles.

[0069] According to the original boundary coordinate information of two adjacent first micro-grids, a bridging triangulation network is generated between the two first micro-grids. The bridging triangulation network is located between the two first micro-grids and connects the boundary points on the adjacent boundaries. According to the shared edge relationship between each bridging triangle in the bridging triangulation network, a binary tree is generated, and the midpoint of the corresponding shared edge is selected through the longest path of the binary tree to generate a fused boundary line, and then the boundary fusion is completed according to the fused boundary line. In this way, the bridging triangulation network can adapt to various boundary lines and adjacent first micro-grid misalignment situations. At the same time, by converting to a binary tree, it can adapt to bridging triangulation networks of different structures, and quickly select the shared edge midpoints that meet the requirements to form a suitable fused boundary line, which is conducive to automatic boundary fusion in various gap shapes, and improves boundary fusion efficiency and boundary fusion quality.

[0070] refer to Figure 5 and Figure 6 The bridging triangulation is located between the two first micro-grids. The vertices of each bridging triangle are the boundary points of the first micro-grids. The bridging triangles do not overlap, so the bridging triangulation can fill the gap between the two first micro-grids, providing a basis for the subsequent generation of fusion boundary lines. Different gap shapes can be filled by the bridging triangulation, that is, it can adapt to the gap shapes in different situations and improve versatility.

[0071] The goal of the fused boundary is to fuse the boundary line at the roughly middle position of the gap between the two first microgrids. By generating a binary tree, since the number of bridging triangles in the gap extension direction is the largest, the longest path of the binary tree is consistent with the extension direction of the gap. The appropriate shared edge midpoint can be quickly selected in the bridging triangulation network of various structures, and then the fused boundary line formed by the shared edge midpoint is also consistent with the extension direction of the gap and is located roughly in the middle of the gap, meeting the requirements. The fused boundary coordinate information is the new boundary coordinate information after the first microgrid fused boundary. If the boundary fusion processing is performed later, the fused boundary information is used as the original boundary coordinate information in the new boundary processing process.

[0072] refer to Figure 5As one of the embodiments of the present invention, a step of generating a binary tree based on a bridging triangulation network is performed. Since a bridging triangle has three edges, it can have at most three shared edges, that is, all three edges overlap with other bridging triangles. For example, triangle No. 5 in the figure corresponds to a node with three edges in the binary tree. Similarly, other bridging triangles with two and one shared edges also correspond to nodes with two edges and one edge in the binary tree. Among them, a triangle with only one shared edge must be located at the edge of the bridging triangulation network, corresponding to a terminal node in the binary tree. The longest path of the binary tree must be from one terminal node to another, and the bridging triangulation network extends along the length direction of the gap. The longest path of the binary tree corresponds to the extension direction of the gap. Therefore, selecting the midpoint of the shared edge according to the longest path can form a suitable fusion boundary line.

[0073] refer to Figure 2 In some embodiments of the method for fusing boundaries of adjacent microgrids of the present invention, the step S200 includes:

[0074] S210: generating a first triangulated network according to the two sets of original boundary coordinate information;

[0075] S220: according to the two sets of original boundary coordinate information, first triangles whose center points are located in the first micro-grid are removed from the first triangulated network, and the remaining first triangles constitute a bridging triangulated network;

[0076] The first triangulated network includes a plurality of first triangles with the boundary points of the first micro-grid as vertices, and the circumscribed circle of the first triangle does not include the vertices of other first triangles.

[0077] Since the gap between the two first micro-grids may be in different positions, it is troublesome to directly identify the position of the gap. According to the original boundary coordinate information, the generated first triangulated network will connect all boundary points, remove the first triangle whose center point is in the first micro-grid, and the remaining first triangles in the gap between the two first micro-grids will form a bridging triangulated network. In this way, there is no need to identify the position of the gap, and a bridging triangulated network can be adaptively formed in the gap, which is conducive to reducing processing complexity and improving processing efficiency.

[0078] In some embodiments of the present invention, the first triangulated network is generated according to the original boundary coordinate information of the first micro-mesh, and may be generated by a Delaunay triangulation algorithm.

[0079] refer to Figure 3 In some embodiments of the method for fusing boundaries of adjacent microgrids of the present invention, before S100, the method further includes:

[0080] S010: Obtaining the original boundary coordinate information of all microgrids in the target area;

[0081] S020: acquiring the centroid coordinates of each of the micro-grids according to the original boundary coordinate information;

[0082] S030: Generate a second triangulated network according to the barycentric coordinates;

[0083] S040: acquiring proximity information between the micro-grids according to the connection relationship between the barycentric coordinates in the second triangulated network;

[0084] S050: acquiring two adjacent micro grids as the first micro grids according to the proximity information;

[0085] The second triangulated network includes a plurality of second triangles with the barycentric coordinates as vertices, and the circumscribed circle of the second triangle does not include vertices of other second triangles.

[0086] Generally, in practical applications, microgrids in an area are often fused at the boundaries, so it is necessary to select a suitable adjacent first microgrid. The original boundary coordinate information of all microgrids in the target area is obtained, and the barycentric coordinates of each microgrid are calculated. The microgrid is represented by the barycentric coordinates, and the second triangulation network is generated according to the barycentric coordinates. The adjacent barycentric coordinates are connected to each other, and the adjacent relationship between the microgrids can be obtained, and then the adjacent microgrid is obtained as the first microgrid for subsequent boundary fusion processing.

[0087] In some embodiments of the method for fusing boundaries of adjacent microgrids of the present invention, the original boundary coordinate information includes coordinates of each boundary point; and S020 includes:

[0088] According to the coordinates of each of the boundary points, an average value of the horizontal coordinate and an average value of the vertical coordinate are calculated to generate the center of gravity coordinates.

[0089] According to the original boundary coordinate information corresponding to the micro-grid, the coordinates of each boundary point can be obtained, and the abscissa of each boundary point is added and divided by the number of boundary points to obtain the average value of the abscissa as the abscissa of the centroid coordinate, and the ordinate of each boundary point is added and divided by the number of boundary points to obtain the average value of the ordinate as the ordinate of the centroid coordinate. The centroid coordinate obtained in this way is located in the micro-grid and can reflect the position of the micro-grid, which is convenient for the subsequent generation of the second triangulated network, and the calculation process is simple, which is convenient for improving processing efficiency.

[0090] In some embodiments of the present invention, the second triangulated network is generated according to the barycentric coordinates, and may be generated by a Delaunay triangulation algorithm.

[0091] refer to Figure 4In some embodiments of the method for fusing boundaries of adjacent microgrids of the present invention, the S050 includes:

[0092] S051: selecting, according to the proximity information, two micro-grids whose barycentric coordinates are connected to each other as second micro-grids;

[0093] S052: calculating the projection overlap ratio of two second micro-grids according to the original boundary coordinate information corresponding to the second micro-grids, and determining whether the two second micro-grids are adjacent according to the projection overlap ratio;

[0094] S053: If they are adjacent, taking the two second micro grids as the first micro grids;

[0095] S054: If they are not adjacent, reselect two of the second micro grids according to the proximity information.

[0096] In some cases, although the microgrids are adjacent, when the two are in a diagonal position, the gap shape between the two is not suitable for boundary fusion, and the boundary fusion effect is poor. Therefore, by selecting two adjacent microgrids as the second microgrid to further calculate the projection overlap rate, when the projection overlap rate meets the requirements, for example, it can be greater than or equal to the preset overlap threshold, the corresponding boundaries between the second microgrids are longer and suitable for boundary fusion, and the second microgrid is used as the first microgrid for subsequent boundary fusion processing. In this way, it can ensure that the corresponding overlap between the boundaries of the first microgrids undergoing boundary fusion processing is large, which is conducive to ensuring the quality of boundary fusion and improving reliability.

[0097] It can be understood that the first microgrid and the second microgrid are the names of microgrids that meet the corresponding conditions, which are easy to distinguish and understand. The bridging triangle, the first triangle, and the second triangle are actually triangles, which are the names of different triangulated networks, which are easy to distinguish and understand.

[0098] In some embodiments of the method for fusing boundaries of adjacent microgrids of the present invention, the projection overlap ratio includes a vertical projection overlap ratio and a horizontal projection overlap ratio; and S052 includes:

[0099] According to the original boundary coordinate information, obtaining a first maximum abscissa, a first minimum abscissa, a first maximum ordinate, and a first minimum ordinate of one of the second micro-grids, and obtaining a second maximum abscissa, a second minimum abscissa, a second maximum ordinate, and a second minimum ordinate of another of the second micro-grids;

[0100] The vertical projection overlap ratio and the horizontal projection overlap ratio are calculated according to the following formula group:

[0101] X p=0,x 1 ≤x 4 or x 2 ≤x 3

[0102] X p =1,x 1 ≤x 2 And x 3 ≥x 4 , x 1 ≥x 2 And x 3 ≤x 4

[0103] x 1 ≤x 2 And x 3 ≤x 4

[0104] x 1 ≥x 2 And x 3 ≥x 4

[0105] Y p =0,y 1 ≤y 4 or 2 ≤y 3

[0106] Y p =1,y 1 ≤y 2 And y 3 ≥y 4 ,y 1 ≥y 2 And y 3 ≤y 4

[0107] y 1 ≤y 2 And y 3 ≤y 4

[0108] y 1 ≥y 2 And y 3 ≥y 4

[0109] Among them, X p is the vertical projection overlap ratio, Y p is the horizontal projection overlap ratio, x 1 is the first maximum horizontal coordinate, x 2is the second largest horizontal coordinate, x 3 is the first minimum horizontal coordinate, x 4 is the second smallest horizontal coordinate, y 1 is the first maximum ordinate, y 2 is the second largest ordinate, y 3 is the first minimum ordinate, y 4 is the second smallest ordinate;

[0110] When the vertical projection overlap ratio or the horizontal projection overlap ratio is greater than or equal to a preset overlap threshold, it is determined to be adjacent; when the vertical projection overlap ratio and the horizontal projection overlap ratio are both less than the overlap threshold, it is determined to be non-adjacent.

[0111] refer to Figure 8 According to the coordinates of the boundary points at the outermost edges of the two second micro-grids, the above calculation can obtain the projection overlap ratio in the vertical direction, that is, on the X-axis, as the vertical projection overlap ratio, and the projection overlap ratio in the horizontal direction, that is, on the Y-axis, as the horizontal projection overlap ratio. As long as one of the vertical projection overlap ratio and the horizontal projection overlap ratio is greater than the preset overlap threshold, the two second micro-grids can be considered to be adjacent. In this way, whether the two second micro-grids are adjacent can be known by calculating the coordinate values, and the processing steps are simple, which is conducive to improving processing efficiency.

[0112] refer to Figure 3 In some embodiments of the method for fusing boundaries of adjacent microgrids of the present invention, after S500, the method further includes:

[0113] S600: judging whether to traverse all the barycentric coordinate connection relationships according to the proximity information;

[0114] S700: If the traversal is not completed, reselect two adjacent micro grids that have not been selected as the first micro grid according to the neighbor information.

[0115] After completing the boundary fusion of the two first microgrids, two adjacent microgrids corresponding to the barycentric coordinate connection relationship that have not been selected are selected again according to the neighboring information, and the two microgrids are used as new first microgrids for boundary fusion processing until all barycentric coordinate connection relationships in the neighboring information are traversed, which means that all gaps between all microgrids in the target area have been processed by boundary fusion. In this way, according to the neighboring information, boundary fusion processing can be performed on all gaps in the target area in a comprehensive and non-omission manner, so that after traversing all barycentric coordinate connections, there are no gaps in the target area, and the boundary fusion processing of the entire target area is completed.

[0116] In some embodiments of the present invention, the above-mentioned reselection of the two adjacent microgrids that have not been selected as the first microgrid may include: reselecting the two adjacent microgrids that have not been selected as the second microgrid, and then judging whether they are adjacent according to the projection overlap rate of the two microgrids, and if they are adjacent, they are used as the first microgrid; if they are not adjacent, reselecting the two adjacent microgrids that have not been selected as the second microgrid. If it is determined that they are not adjacent, the connection relationship of the centroid coordinates corresponding to the two second microgrids is considered to have been selected.

[0117] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the above-mentioned adjacent micro-grid boundary fusion method.

[0118] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0119] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a method for fusion of adjacent micro-grid boundaries provided by the above methods.

[0120] In yet another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute a method for fusing boundaries of adjacent microgrids provided by the above methods.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for fusing adjacent microgrid boundaries, characterized in that: include: Obtaining original boundary coordinate information of two adjacent first micro-grids; Generate a bridging triangulation network according to the two sets of original boundary coordinate information, wherein the bridging triangulation network connects boundaries of adjacent first micro-grids; Generate a binary tree according to the bridging triangulation network, taking each triangle as a node and taking the shared edges between the triangles as the edges between corresponding nodes; According to the binary tree, a longest path with the largest number of edges is selected, and a fusion boundary line is generated according to the midpoint of the shared edge corresponding to the longest path; Generating fused boundary coordinate information corresponding to the first microgrid according to the fused boundary line and the original boundary coordinate information; The bridging triangulated network includes a plurality of bridging triangles located between two of the first micro-grids, and the vertices of the bridging triangles are boundary points of the first micro-grids.

2. The method for fusing adjacent microgrid boundaries according to claim 1, characterized in that: The step of generating a bridging triangulation network according to the two sets of original boundary coordinate information includes: Generate a first triangulated network according to the two sets of original boundary coordinate information; According to the two sets of original boundary coordinate information, first triangles whose center points are located in the first micro-grid are removed from the first triangulated network, and the remaining first triangles constitute a bridging triangulated network; The first triangulated network includes a plurality of first triangles with the boundary points of the first micro-grid as vertices.

3. The method for fusing adjacent microgrid boundaries according to claim 1, characterized in that: Before obtaining the original boundary coordinate information of two adjacent first micro-grids, the method further includes: Obtain the original boundary coordinate information of all microgrids in the target area; According to the original boundary coordinate information, obtaining the center of gravity coordinates of each of the micro grids; Generate a second triangulated network according to the barycentric coordinates; Acquiring proximity information between the micro-grids according to a connection relationship between the barycentric coordinates in the second triangulated network; According to the proximity information, acquiring two adjacent microgrids as the first microgrids; The second triangulated network includes a plurality of second triangles with the barycentric coordinates as vertices.

4. The method for fusing adjacent microgrid boundaries according to claim 3, characterized in that: The original boundary coordinate information includes coordinates of each boundary point; and obtaining the center of gravity coordinates of each microgrid according to the original boundary coordinate information includes: According to the coordinates of each of the boundary points, an average value of the horizontal coordinate and an average value of the vertical coordinate are calculated to generate the center of gravity coordinates.

5. The method for fusing adjacent microgrid boundaries according to claim 3, characterized in that: The acquiring, according to the proximity information, two adjacent microgrids as the first microgrids includes: According to the proximity information, selecting two micro-grids whose barycentric coordinates are connected to each other as second micro-grids; Calculating a projection overlap ratio of two second micro-grids according to the original boundary coordinate information corresponding to the second micro-grids, and determining whether the two second micro-grids are adjacent according to the projection overlap ratio; If they are adjacent, taking the two second micro grids as the first micro grids; If they are not adjacent, two of the second micro grids are reselected according to the proximity information.

6. The method for fusing adjacent microgrid boundaries according to claim 5, characterized in that: The projection overlap rate includes a vertical projection overlap rate and a horizontal projection overlap rate; the step of calculating the projection overlap rate of two second micro-grids according to the original boundary coordinate information corresponding to the second micro-grids, and determining whether the two second micro-grids are adjacent according to the projection overlap rate includes: According to the original boundary coordinate information, obtaining a first maximum abscissa, a first minimum abscissa, a first maximum ordinate, and a first minimum ordinate of one of the second micro-grids, and obtaining a second maximum abscissa, a second minimum abscissa, a second maximum ordinate, and a second minimum ordinate of another of the second micro-grids; The vertical projection overlap ratio and the horizontal projection overlap ratio are calculated according to the following formula group: X p =0, x1≤x4 or x2≤x3 X p =1, x1≤x2 and x3≥x4, x1≥x2 and x3≤x4 x1≤x2 and x3≤x4 x1≥x2 and x3≥x4 Y p =0, y1≤y4 or y2≤y3 Y p =1, y1≤y2 and y3≥y4, y1≥y2 and y3≤y4 y1≤y2 and y3≤y4 y1≥y2 and y3≥y4 Among them, X p is the vertical projection overlap ratio, Y p is the horizontal projection overlap ratio, x1 is the first maximum horizontal coordinate, x2 is the second maximum horizontal coordinate, x3 is the first minimum horizontal coordinate, x4 is the second minimum horizontal coordinate, y1 is the first maximum vertical coordinate, y2 is the second maximum vertical coordinate, y3 is the first minimum vertical coordinate, and y4 is the second minimum vertical coordinate; When the vertical projection overlap ratio or the horizontal projection overlap ratio is greater than or equal to a preset overlap threshold, it is determined to be adjacent; when the vertical projection overlap ratio and the horizontal projection overlap ratio are both less than the overlap threshold, it is determined to be non-adjacent.

7. The method for fusing adjacent microgrid boundaries according to claim 3, characterized in that: After generating the fused boundary coordinate information corresponding to the first micro-grid according to the fused boundary line and the original boundary coordinate information, the method further includes: According to the proximity information, determining whether to traverse all the barycentric coordinate connection relationships; If not traversed, two adjacent micro grids that have not been selected are re-selected as the first micro grid according to the neighboring information.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, a method for fusing adjacent microgrid boundaries as described in any one of claims 1 to 7 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a method for fusing adjacent microgrid boundaries as claimed in any one of claims 1 to 7 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, a method for fusing adjacent microgrid boundaries as claimed in any one of claims 1 to 7 is implemented.