[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2017157048A1 - Automated layout method and system for power grid system graph to overcome crossing, and storage medium - Google Patents

Automated layout method and system for power grid system graph to overcome crossing, and storage medium Download PDF

Info

Publication number
WO2017157048A1
WO2017157048A1 PCT/CN2016/107194 CN2016107194W WO2017157048A1 WO 2017157048 A1 WO2017157048 A1 WO 2017157048A1 CN 2016107194 W CN2016107194 W CN 2016107194W WO 2017157048 A1 WO2017157048 A1 WO 2017157048A1
Authority
WO
WIPO (PCT)
Prior art keywords
multiplication result
cross
component
components
sets
Prior art date
Application number
PCT/CN2016/107194
Other languages
French (fr)
Chinese (zh)
Inventor
王继业
庄玉林
高灵超
刘光曹
Original Assignee
厦门亿力吉奥信息科技有限公司
国网山东省电力公司电力科学研究院
国家电网公司
国网信息通信产业集团有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 厦门亿力吉奥信息科技有限公司, 国网山东省电力公司电力科学研究院, 国家电网公司, 国网信息通信产业集团有限公司 filed Critical 厦门亿力吉奥信息科技有限公司
Publication of WO2017157048A1 publication Critical patent/WO2017157048A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • G06F30/367Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods

Definitions

  • the invention relates to the field of intelligent drawing, in particular to a method and system for overcoming the intersection of an automated layout of a power grid system diagram and a storage medium.
  • Intelligent drawing requires the integration of manual drawing experience and computer intelligence technology. How to establish a computer-recognizable digital layout model based on subjective experience standards is a key part of intelligent drawing.
  • the layout model of Graph Drawing in the world can be roughly divided into several types: trunk branch layout model, orthogonal layout model, tree layout model, force-oriented layout model, and so on.
  • the orthogonal layout model and the tree layout model have graphical structural requirements that are applicable to specific scenarios.
  • the force-oriented layout model has strong flexibility, its divergence tends to be inclined, and it is difficult to form horizontally aligned orthogonal images.
  • a power grid automatic layout and system and method including a control module, a data analysis module, a layout module, and a wiring module. Blocking; the data parsing module, the layout module, and the wiring module are respectively connected to the control module; the data parsing module is configured to read and parse information of the power station and/or the substation from the database; The station and/or substation information setting node is arranged according to the node position according to the established rules; the wiring module is used for wiring according to the power station and/or substation information and the layout situation.
  • the solution mainly solves the problem that the interaction between the power grids is difficult, and the geographical position of the nodes cannot be solved, which may lead to inevitable crossover of the subsequent wiring of the drawings.
  • the technical problem to be solved by the present invention is to provide a method and system for overcoming the intersection of the automatic layout of the grid system diagram, the storage medium, optimizing the layout of the grid system diagram, reducing the number of intersections, and improving the layout effect.
  • the technical solution adopted by the embodiment of the present invention is:
  • layout adjustment is performed on components in the grid system diagram.
  • Embodiments of the present invention also relate to a system for automatically scheduling layout of a power grid system to overcome crossover, including
  • Dividing a module configured to mesh the layout space
  • a first acquiring module configured to obtain a first coordinate (x, y) of each component in the gridded partitioned layout space
  • a first calculating module configured to calculate a Manhattan distance L between the respective elements according to the first coordinate (x, y);
  • the second obtaining module is configured to respectively acquire the number of outgoing intersections C1 of each busbar component
  • a third obtaining module configured to obtain a total number of connection intersections S2 between the respective components
  • the optimization module is configured to perform layout adjustment on components in the grid system map according to the optimization model.
  • Embodiments of the present invention are also directed to a storage medium storing a computer program for performing the above-described method of automated layout of a power grid system diagram to overcome intersection.
  • the beneficial effects of the embodiments of the present invention are: comprehensively considering the total length of the line between the components, the number of intersections of the busbar components, and the total number of crossovers between the components, constructing an optimization model, by minimizing the value of the optimization model, Automatically search for the ideal layout, which can greatly save human resources, improve work efficiency, and can reduce the number of intersections, improve the aesthetic appearance of the grid system map, and improve the layout effect; at the same time, the space layout utilization of the optimization model is high.
  • the weight of each parameter can be set according to the needs of the user, and the versatility is strong, which increases the flexibility of the optimization model application.
  • FIG. 1 is a flow chart of a method for overcoming an intersection of an automated layout of a grid system diagram according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an effect of optimizing a model layout according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic diagram of a layout effect of an orthogonal layout model
  • Figure 5 is a schematic diagram of the layout effect of the tree layout model
  • Figure 6 is a schematic diagram of the layout effect of the force-oriented layout model
  • Figure 8 is a schematic view of a busbar-containing component according to a second embodiment of the present invention.
  • Embodiment 9 is a schematic diagram of polar coordinates according to Embodiment 2 of the present invention.
  • Figure 10 is a cross-sectional view showing two sets of components of the third embodiment of the present invention.
  • FIG. 11 is a flowchart of a method according to Embodiment 3 of the present invention.
  • FIG. 12 is a schematic diagram of determining the intersection of two groups of components in the third embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a system for over-interleaving an automatic layout of a power grid system diagram according to an embodiment of the present invention
  • FIG. 14 is a schematic structural diagram of a system according to Embodiment 4 of the present invention.
  • 501 a first obtaining unit; 502, a third obtaining unit; 503, a second calculating unit; 504, a first determining unit; 505, a third calculating unit; 506, a second determining unit; 507, a first determining unit; a second determining unit 509, a third determining unit 510, a third determining unit 511, a fourth determining unit, 512, and a fourth calculating unit.
  • the most critical idea of an embodiment of the present invention is to search for a multi-objective based optimization model.
  • the optimal value optimizes the layout of the grid system map.
  • a method for overcoming the intersection of an automated layout of a grid system diagram includes
  • layout adjustment is performed on components in the grid system diagram.
  • the beneficial effects of the present invention are: by minimizing the value of the optimization model, shortening the length of the line, reducing the number of intersections in the grid system diagram, and searching for an ideal layout, the appearance of the grid system map can be improved. , improve the layout effect.
  • the Manhattan distance is used as a model to measure the length of the connection between the nodes of the power grid, which is consistent with the vertical and vertical alignment of the grid system diagram, and the Manhattan distance model is effective and practical.
  • the “receiving the number of outgoing intersections C1 of each busbar component separately” is specifically:
  • the vertical direction is 0 direction, and the counterclockwise direction is positive direction.
  • Vertical polar coordinate system
  • the number of outgoing intersections C1 of the busbar-containing component is obtained.
  • the “total number of connection intersections S2 between acquisition elements” is specifically:
  • a first vector Q1P2, a second vector Q1P1, a third vector P1Q1, a fourth vector P1Q2, and a fifth are obtained.
  • the total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
  • an embodiment of the present invention further provides a system for over-interleaving an automatic layout of a power grid system diagram, including:
  • Dividing a module configured to mesh the layout space
  • a first acquiring module configured to obtain a first coordinate (x, y) of each component in the gridded partitioned layout space
  • a first calculating module configured to calculate a Manhattan distance L between the respective elements according to the first coordinate (x, y);
  • the second obtaining module is configured to respectively acquire the number of outgoing intersections C1 of each busbar component
  • a third obtaining module configured to obtain a total number of connection intersections S2 between the respective components
  • the optimization module is configured to perform layout adjustment on components in the grid system map according to the optimization model.
  • the second obtaining module includes
  • First calculation unit configured to be based on a formula Mod 2 ⁇ calculates the angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are a first coordinate comprising the busbar component i and the component k;
  • a first obtaining unit configured to compare angles of respective elements having direct topological connection with the bus bar element i to obtain a reverse order number
  • the second obtaining unit is configured to obtain the number of outgoing intersections C1 of the busbar-containing component according to the reverse order number.
  • the third obtaining module includes
  • the first obtaining unit is configured to acquire two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship;
  • a third obtaining unit configured to obtain, according to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2, a first vector Q1P2, a second vector Q1P1, and a third vector P1Q1 Fourth vector P1Q2, fifth vector Q2P1, sixth vector Q2P2, seventh vector P2Q2, eighth vector P2Q1;
  • a first determining unit configured to determine whether the first cross-multiplication result ⁇ 1, the second cross-multiplication result ⁇ 2, the third cross-multiplication result ⁇ 3, and the fourth cross-multiplication result ⁇ 4 are both 0;
  • a third determining unit configured to determine that the first cross-multiplication result ⁇ 1, the second cross-multiplication result ⁇ 2, the third cross-multiplication result ⁇ 3, and the fourth cross-multiplication result ⁇ 4 are both greater than or equal to 0 or less than or equal to 0
  • Fourth calculation unit configured to be based on a formula The total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
  • a first embodiment of the present invention is a method for overcoming the intersection of an automated layout of a power grid system diagram, including the following steps:
  • a sparse grid will limit the layout effect and affect the flexibility of the model. If the grid is too dense, it will increase the calculation cost, and also affect the layout aesthetic requirements. Balance the system performance and model flexibility, and the cell size and layout space.
  • the division is as follows: Use the same size of cells to divide the layout area, each component is only one row, not allowed to be placed across rows, components can occupy multiple cells in a row, and there is at most one component in each cell.
  • the upper left corner of the layout space is set as the origin, the horizontal right is the positive direction of the x-axis, and the vertical direction is the positive direction of the y-axis.
  • step S3 judging whether there is a connection between the respective components, that is, determining whether there is a connection between any two components i and j in the layout space, and if so, executing step S4, and if not, executing step S5.
  • S8 respectively obtaining the number of outgoing intersections C1 of each busbar component; normally, the busbar outlet connectors are discharged at the lower end of the component, and are numbered in order from left to right, and the connected components are easily cross-lined due to improper placement, and the intersection is crossed.
  • the number is the number of intersections of the outgoing lines containing the bus components.
  • S9 obtaining the total number of connection intersections S2 between the respective components; first, taking four components connected by two wires, and judging whether there are intersections of the two wires connecting the four components, and if there is a cross, it is connected The number of line crossings is 1, and vice versa is 0. The number of crossings of all the two connecting lines is obtained, and the summation is the total number of connecting lines.
  • the first weight ⁇ 1, the second weight ⁇ 2, and the third weight ⁇ 3 can be directly set manually, that is, a set of weights is directly given by the related user of the system diagram, which reflects each person's aversion to the line length and the two types of intersections. The higher the degree, the greater the weight given.
  • the average preference of the users related to the system map can be determined; it can also be set by statistical calculation, based on the order distribution model in statistics. According to the system diagram of the existing artificial layout, the line length and the values of the two intersection numbers are respectively calculated, and the order distribution of the three values is obtained, thereby determining the proportional relationship between the three values, and multiplying by the normalization coefficient to obtain the weight. It is also possible to average the values of the three weights manually set and the values of the three weights obtained by the statistical calculation by the average method as the values of the final three weights.
  • S11 Perform layout adjustment on components in the grid system diagram according to the optimization model; optimize The smaller the value of the model, the better the layout effect.
  • the position of the exchange component and the way of placing the component to the blank position are used to reduce the value F of the optimization model. Search in the direction and finally search for the ideal layout.
  • all generated layouts are excluded from repetition, as long as the value of the optimized model corresponding to the generated layout is better than the currently accessed layout, the other layouts are suspended, and the more optimized layout is preferentially accessed to improve the search efficiency.
  • the line direction in the grid system diagram is usually determined by the shortest path algorithm.
  • the common shortest path algorithms are depth-first search, breadth-first search, A * algorithm and Djisktra algorithm.
  • the calculation of the inter-component wiring in the grid system diagram can be done using the Djisktra algorithm on the weighted grid.
  • three common layout models are selected for comparison, including tree layout model, orthogonal layout model, force-oriented layout model, and 100 simulated grid topology data are used as examples to directly present
  • the results of the mapping are compared to the aesthetics and legibility of the map, and the interest rate of the model to the space is compared by calculating the number of grids and the aspect ratio of the graph.
  • Figure 3 is a schematic diagram of the layout effect of the optimized model
  • Figure 4 is a schematic diagram of the layout effect of the orthogonal layout model
  • Figure 5 is a schematic diagram of the layout effect of the tree layout model
  • Figure 6 is a schematic diagram of the layout effect of the force-oriented layout model
  • Table 1 contains the above four models Space utilization
  • Table 2 contains the above four models for the control space aspect ratio and specific area control ability.
  • step S8 is a specific implementation manner of step S8, which includes the following steps:
  • S804 Obtain an intersection number C1 of the bus-line-containing component according to the reverse order number; that is, the number of outgoing intersections C1 is equal to a reverse-order number.
  • FIG. 8 a schematic diagram of a component A, B, C, and D having a busbar component directly connected to it, in order to avoid overlapping angles of multiple components in a horizontal connection when calculating an angle, Can not distinguish whether the intersection, such as component C and component D, can shift the origin slightly to the outgoing direction, as shown in Figure 9; optionally, the offset distance is 0.1 cells or 0.01 cells; according to step S802
  • the formula calculates that the angles of the A, B, C, and D components relative to the busbar components are 116°, 68°, 279°, and 272°, respectively, and the resulting order is 116° ⁇ 68° ⁇ 279° ⁇ 272°, which exists.
  • This embodiment is based on the first embodiment, in a specific implementation manner of step S9, in the actual layout, there are multiple intersections of two wires connected to four components, as shown in the cross on the left side of FIG. The four corners in the middle of Fig. 10, as well as the more random situation, such as the right side of Fig. 10. Although there are various situations in the relative position of the components, the detection of such intersections in the layout is found to be uniformly handled by the two-line cross-judgment.
  • the two line segments intersect, and the inner angle of the enclosed quadrilateral is equal to 180°; the two line segments do not intersect, and the inner angle is greater than 180°. Since the calculation of the inner angle is cumbersome, it is judged by the four vector cross-multiplication results ⁇ 1, ⁇ 2, ⁇ 3, and ⁇ 4. Once it is found that it is greater than 0 and less than 0, the corresponding quadrilateral has an internal angle greater than 180° and less than 180°. In this case, you can quickly return the results of the disjoint two-segment. In special cases, the four vector cross-multiplication results are all equal to 0, corresponding to the two line segments on the same line. Four vector point multiplication results ⁇ 1, ⁇ 2, ⁇ 3, and ⁇ 4 are calculated. If all are greater than 0, they do not intersect, otherwise the two line segments intersect. .
  • step S9 in this embodiment may specifically include the following steps:
  • S901 Acquire two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship.
  • S902 According to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2, obtain a first vector Q1P2, a second vector Q1P1, a third vector P1Q1, and a fourth vector P1Q2.
  • step S904 determining whether the first cross-multiplication result ⁇ 1, the second cross-multiplication result ⁇ 2, the third cross-multiplication result ⁇ 3, and the fourth cross-multiplication result ⁇ 4 are all 0. If yes, step S905 is performed, and if not, executing steps S909.
  • step S906 determining whether the first point multiplication result ⁇ 1, the second point multiplication result ⁇ 2, the third point multiplication result ⁇ 3, and the fourth point multiplication result ⁇ 4 are both greater than 0. If yes, step S907 is performed, and if no, the step is performed. S908.
  • step S909 determining whether the first cross-multiplication result ⁇ 1, the second cross-multiplication result ⁇ 2, the third cross-multiplication result ⁇ 3, and the fourth cross-multiplication result ⁇ 4 are both greater than or equal to 0 or less than or equal to 0, and if yes, executing S910, if Otherwise, step S911 is performed.
  • S912 Acquire a number of connection intersections C2 of any two groups of components in the layout space, according to the formula Calculating the total number of connection intersections S2, where t is the number of elements of any two connected components and there is no common component in the two sets of components, that is, any two wires are taken out in all the wires and both meet The number of root connections that are not connected to the common component.
  • the cross-multiplication results calculated by the two sets of components shown in (b) of Figure 12 are ⁇ 1 ⁇ 0, ⁇ 2>0, respectively, because there are more than 0 and less than 0 at the same time.
  • the calculated four cross-multiplication results are all 0, so the four-point multiplication result is calculated.
  • the calculated point multiplication results are ⁇ 1>0, ⁇ 2, respectively.
  • the embodiment is a system for over-intersecting the automatic layout of the power grid system diagram based on the first embodiment, the second embodiment, and the third embodiment, including
  • Dividing module 1 configured to mesh the layout space
  • the first obtaining module 2 is configured to obtain a first coordinate (x, y) of each component in the gridded partitioned layout space;
  • the second obtaining module 4 is configured to respectively acquire the number of outgoing intersections C1 of each busbar component
  • the third obtaining module 5 is configured to acquire the total number of connection intersections S2 between the respective components;
  • the constructing module 6 is configured to construct an optimization model according to the Manhattan distance L, the number of outgoing intersections S1, the total number of connected intersections S2, and the preset first weight ⁇ 1, the second weight ⁇ 2, and the third weight ⁇ 3.
  • m is the number of busbar components
  • the optimization module 7 is configured to perform layout adjustment on components in the grid system map according to the optimization model.
  • the second obtaining module 4 includes
  • the establishing unit 41 is configured to use the bus bar component i as an origin, the vertical direction is 0 direction, and the counterclockwise direction is positive direction, and a polar coordinate system is established;
  • the first calculating unit 42 is configured to be based on a formula Calculating an angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are the bus bars a first coordinate of the component i and the component k;
  • a first obtaining unit 43 configured to compare angles of respective elements having direct topological connection with the bus bar element i to obtain a reverse order number
  • the second obtaining unit 44 is configured to obtain the number of outgoing intersections C1 of the busbar-containing component according to the reverse order number.
  • the third obtaining module 5 includes
  • the first obtaining unit 501 is configured to acquire two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship ;
  • the third obtaining unit 502 is configured to obtain the first vector Q1P2, the second vector Q1P1, and the third vector P1Q1 according to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2. a fourth vector P1Q2, a fifth vector Q2P1, a sixth vector Q2P2, a seventh vector P2Q2, an eighth vector P2Q1;
  • the first determining unit 504 is configured to determine whether the first cross-multiplication result ⁇ 1, the second cross-multiplication result ⁇ 2, the third cross-multiplication result ⁇ 3, and the fourth cross-multiplication result ⁇ 4 are both 0;
  • the second determining unit 506 is configured to determine whether the first point multiplication result ⁇ 1, the second point multiplication result ⁇ 2, the third point multiplication result ⁇ 3, and the fourth point multiplication result ⁇ 4 are both greater than 0;
  • the third determining unit 509 is configured to determine the first cross result ⁇ 1 and the second cross result ⁇ 2 Whether the third cross-multiplication result ⁇ 3 and the fourth cross-multiplication result ⁇ 4 are both greater than 0 or both are less than 0;
  • the third determining unit 510 is configured to determine that the first cross-multiplication result ⁇ 1, the second cross-multiplication result ⁇ 2, the third cross-multiplication result ⁇ 3, and the fourth cross-multiplication result ⁇ 4 are both greater than or equal to 0 or less than or equal to 0.
  • the fourth calculating unit 512 is configured to be according to a formula The total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
  • the grid system map automation layout overcomes the functions implemented by the various unit modules in the crossover system, and the central processing unit (CPU) in the system that overcomes the crossover in the grid system map automation layout can be used.
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • Embodiments of the Invention overcomes the crossover system. If implemented in the form of a software function module and sold or used as a standalone product, it can also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the embodiment of the present invention further provides a storage medium, wherein a computer program is stored, and the computer program is used to execute the method for automatically intersecting the layout of the grid system diagram of the embodiment of the present invention.
  • the present invention provides a grid system diagram automatic layout to overcome the intersection method And the system and storage medium, using Manhattan distance as the model to measure the length of the connection between the grid nodes, in line with the horizontal and vertical characteristics of the grid system map, and the Manhattan distance model is effective and practical; through the establishment of the polar coordinate system, Calculate and compare the angles of the various components that have a direct topological connection with the busbar components, obtain the inverse order number, and push out the number of intersections after the wiring according to the shortest path; determine whether the two components are present by the cross-multiplication result of the vector and the dot multiplication result Crossover, simple and efficient; comprehensively consider the total length of the line between components, the number of intersections of busbar components and the total number of crossovers between components, construct an optimization model, and automatically search for the ideal by minimizing the value of the optimization model.
  • the layout can greatly save human resources, improve work efficiency, and improve the aesthetic appearance of the grid system map and improve the layout effect.
  • the space layout of the optimized model is highly utilized, and various parameters can be set according to the needs of the user.
  • Weight and versatility increase the flexibility of the optimization model application.
  • the invention comprehensively considers the total length of the line between the components, the number of intersections of the busbar components and the total number of intersections between the components, constructs an optimization model, and automatically searches for an ideal layout by minimizing the value of the optimization model. It can greatly save human resources, improve work efficiency, and can reduce the number of intersections, improve the aesthetic appearance of the grid system map, and improve the layout effect; at the same time, the space layout utilization of the optimization model is high, and can be set according to the needs of users.
  • the weight of each parameter is highly versatile, which increases the flexibility of the optimization model application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Evolutionary Computation (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Geometry (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

Disclosed are an automated layout method and system for a power grid system graph to overcome crossing, and a storage medium. The method comprises: performing meshing division on a layout space; acquiring first coordinates of various elements in the layout space subjected to meshing division; according to the first coordinates, calculating a Manhattan distance between the various elements; respectively acquiring the number of crossed outgoing lines of various busbar containing elements; acquiring the total number of crossed connecting lines between the various elements; constructing an optimized model; and according to the optimized model, performing layout adjustment on elements in a power grid system graph.

Description

电网系统图自动化布局克服交叉的方法及系统、存储介质Power grid system diagram automation layout method and system for overcoming crossover, storage medium 技术领域Technical field
本发明涉及智能绘图领域,尤其涉及一种电网系统图自动化布局克服交叉的方法及系统、存储介质。The invention relates to the field of intelligent drawing, in particular to a method and system for overcoming the intersection of an automated layout of a power grid system diagram and a storage medium.
背景技术Background technique
随着国家智能电网建设的不断深入,在电网的建设、运行、检修中,需要有大量的图纸来支撑,由于电网数据量大,电气接线复杂,动态变化频繁,如果手工绘制,工作量大,而且越来越难以适应现代化电网生产建设和发展的需要,自动成图功能显得越发重要。With the continuous deepening of the national smart grid construction, a large number of drawings are needed to support the construction, operation and maintenance of the power grid. Due to the large amount of grid data, the electrical wiring is complicated and the dynamic changes are frequent. If it is drawn by hand, the workload is large. Moreover, it is more and more difficult to adapt to the needs of modern power grid production and development, and the automatic mapping function becomes more and more important.
智能化绘图要求将人工绘图经验与计算机智能技术融合一体,如何依据主观的经验标准建立计算机可识别的数字布局模型,为实现智能化绘图的关键一环。国际上绘图领域(Graph Drawing)的布局模型可以大致分为几种类型:主干分支布局模型、正交布局模型、树形布局模型、力导向布局模型等。几类模型中,正交布局模型与树形布局模型有图结构性要求,适用于特定的场景。力导向布局模型虽具有较强的灵活性,但其发散性倾向倾斜走线,在形成水平垂直对齐的正交图时有困难。Intelligent drawing requires the integration of manual drawing experience and computer intelligence technology. How to establish a computer-recognizable digital layout model based on subjective experience standards is a key part of intelligent drawing. The layout model of Graph Drawing in the world can be roughly divided into several types: trunk branch layout model, orthogonal layout model, tree layout model, force-oriented layout model, and so on. In several types of models, the orthogonal layout model and the tree layout model have graphical structural requirements that are applicable to specific scenarios. Although the force-oriented layout model has strong flexibility, its divergence tends to be inclined, and it is difficult to form horizontally aligned orthogonal images.
在电网的智能化绘图中,国内的专家和学者从布线总长度和交叉数等方面来评估布局效果,形成多目标优化的方法。在多目标优化中,常常遇到的问题是可供搜索的布局数量太大,需要采用优化的算法才能在短暂的时间内找到令人满意的布局。此外,含母线元件的多个出线常常存在交叉,需要矫正。In the intelligent drawing of the power grid, domestic experts and scholars evaluate the layout effect from the aspects of total wiring length and crossover number, and form a multi-objective optimization method. In multi-objective optimization, the problem often encountered is that the number of layouts available for search is too large, and an optimized algorithm is needed to find a satisfactory layout in a short time. In addition, multiple outlets containing busbar components often have intersections that require correction.
在公开号为104361184A的专利公开文件中,提出了一种电力电网自动布局布线系统及方法,包括控制模块、数据解析模块、布局模块、布线模 块;所述数据解析模块、布局模块、布线模块分别与所述控制模块连接;所述数据解析模块用于从数据库中读取、解析发电站和/或变电站的信息;所述布局模块根据发电站和/或变电站信息设定节点,并根据节点位置按照既定规则进行布局;所述布线模块用于根据发电站和/或变电站信息以及布局情况进行布线。但该方案主要解决的是电网之间交互困难的问题,不能解决节点的地理位置会导致图纸后续布线存在难以避免的交叉的情况。In the patent publication No. 104361184A, a power grid automatic layout and system and method are provided, including a control module, a data analysis module, a layout module, and a wiring module. Blocking; the data parsing module, the layout module, and the wiring module are respectively connected to the control module; the data parsing module is configured to read and parse information of the power station and/or the substation from the database; The station and/or substation information setting node is arranged according to the node position according to the established rules; the wiring module is used for wiring according to the power station and/or substation information and the layout situation. However, the solution mainly solves the problem that the interaction between the power grids is difficult, and the geographical position of the nodes cannot be solved, which may lead to inevitable crossover of the subsequent wiring of the drawings.
发明内容Summary of the invention
本发明所要解决的技术问题是:提供一种电网系统图自动化布局克服交叉的方法及系统、存储介质,优化电网系统图的布局,减少交叉数,提高布局效果。The technical problem to be solved by the present invention is to provide a method and system for overcoming the intersection of the automatic layout of the grid system diagram, the storage medium, optimizing the layout of the grid system diagram, reducing the number of intersections, and improving the layout effect.
为了解决上述技术问题,本发明实施例采用的技术方案为:In order to solve the above technical problem, the technical solution adopted by the embodiment of the present invention is:
一种电网系统图自动化布局克服交叉的方法,包括An automated layout of a grid system diagram to overcome crossover methods, including
对布局空间进行网格化划分;Meshing the layout space;
获取网格化划分后的布局空间内的各个元件的第一坐标(x,y);Obtaining a first coordinate (x, y) of each component in the layout space after the meshing is divided;
根据所述第一坐标(x,y),计算所述各个元件之间的曼哈顿距离L;Calculating a Manhattan distance L between the respective elements according to the first coordinate (x, y);
分别获取各个含母线元件的出线交叉数C1;Obtaining the number of outgoing intersections C1 of each busbar component separately;
获取所述各个元件之间的连线交叉总数S2;Obtaining a total number of connection intersections S2 between the respective components;
根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
Figure PCTCN2016107194-appb-000001
其中m为含母线元件的个数;
Constructing an optimization model according to the Manhattan distance L, the number of intersections S1, the total number of connection intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3
Figure PCTCN2016107194-appb-000001
Where m is the number of busbar components;
根据所述优化模型,对电网系统图中的元件进行布局调整。According to the optimization model, layout adjustment is performed on components in the grid system diagram.
本发明实施例还涉及一种电网系统图自动化布局克服交叉的系统,包括Embodiments of the present invention also relate to a system for automatically scheduling layout of a power grid system to overcome crossover, including
划分模块,配置为对布局空间进行网格化划分; Dividing a module, configured to mesh the layout space;
第一获取模块,配置为获取网格化划分后的布局空间内的各个元件的第一坐标(x,y);a first acquiring module configured to obtain a first coordinate (x, y) of each component in the gridded partitioned layout space;
第一计算模块,配置为根据所述第一坐标(x,y),计算所述各个元件之间的曼哈顿距离L;a first calculating module, configured to calculate a Manhattan distance L between the respective elements according to the first coordinate (x, y);
第二获取模块,配置为分别获取各个含母线元件的出线交叉数C1;The second obtaining module is configured to respectively acquire the number of outgoing intersections C1 of each busbar component;
第三获取模块,配置为获取所述各个元件之间的连线交叉总数S2;a third obtaining module, configured to obtain a total number of connection intersections S2 between the respective components;
构造模块,配置为根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
Figure PCTCN2016107194-appb-000002
其中m为含母线元件的个数;
Constructing a module configured to construct an optimization model according to the Manhattan distance L, the number of outgoing intersections S1, the total number of connected intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3
Figure PCTCN2016107194-appb-000002
Where m is the number of busbar components;
优化模块,配置为根据所述优化模型,对电网系统图中的元件进行布局调整。The optimization module is configured to perform layout adjustment on components in the grid system map according to the optimization model.
本发明实施例还涉及一种存储介质,所述存储介质存储有计算机程序,该计算机程序用于执行上述电网系统图自动化布局克服交叉的方法。Embodiments of the present invention are also directed to a storage medium storing a computer program for performing the above-described method of automated layout of a power grid system diagram to overcome intersection.
本发明实施例的有益效果在于:综合考虑元件之间的线路总长度、含母线元件的出线交叉数和各个元件之间的连线交叉总数,构造优化模型,通过尽量减小优化模型的值,自动搜索出理想的布局,可大大节省人力资源,提高工作效率,且可减少交叉数,提高了电网系统图的成图美观性,改进了布局效果;同时,优化模型的空间布局利用率高,且可根据用户的需要设置各个参数的权重,通用性强,增大了优化模型应用的灵活性。The beneficial effects of the embodiments of the present invention are: comprehensively considering the total length of the line between the components, the number of intersections of the busbar components, and the total number of crossovers between the components, constructing an optimization model, by minimizing the value of the optimization model, Automatically search for the ideal layout, which can greatly save human resources, improve work efficiency, and can reduce the number of intersections, improve the aesthetic appearance of the grid system map, and improve the layout effect; at the same time, the space layout utilization of the optimization model is high. The weight of each parameter can be set according to the needs of the user, and the versatility is strong, which increases the flexibility of the optimization model application.
附图说明DRAWINGS
图1为本发明实施例的电网系统图自动化布局克服交叉的方法的流程图;1 is a flow chart of a method for overcoming an intersection of an automated layout of a grid system diagram according to an embodiment of the present invention;
图2为本发明实施例一的方法流程图;2 is a flowchart of a method according to Embodiment 1 of the present invention;
图3为本发明实施例一的优化模型布局效果示意图; 3 is a schematic diagram of an effect of optimizing a model layout according to Embodiment 1 of the present invention;
图4为正交布局模型布局效果示意图;4 is a schematic diagram of a layout effect of an orthogonal layout model;
图5为树形布局模型布局效果示意图;Figure 5 is a schematic diagram of the layout effect of the tree layout model;
图6为力导向布局模型布局效果示意图;Figure 6 is a schematic diagram of the layout effect of the force-oriented layout model;
图7为本发明实施例二的方法流程图;7 is a flowchart of a method according to Embodiment 2 of the present invention;
图8为本发明实施例二的含母线元件示意图;Figure 8 is a schematic view of a busbar-containing component according to a second embodiment of the present invention;
图9为本发明实施例二的极坐标示意图;9 is a schematic diagram of polar coordinates according to Embodiment 2 of the present invention;
图10为本发明实施例三的两组元件的交叉示意图;Figure 10 is a cross-sectional view showing two sets of components of the third embodiment of the present invention;
图11为本发明实施例三的方法流程图;11 is a flowchart of a method according to Embodiment 3 of the present invention;
图12为本发明实施例三中两组元件连线交叉的判断示意图;12 is a schematic diagram of determining the intersection of two groups of components in the third embodiment of the present invention;
图13为本发明实施例的电网系统图自动化布局克服交叉的系统的结构示意图;FIG. 13 is a schematic structural diagram of a system for over-interleaving an automatic layout of a power grid system diagram according to an embodiment of the present invention; FIG.
图14为本发明实施例四的系统结构示意图。FIG. 14 is a schematic structural diagram of a system according to Embodiment 4 of the present invention.
标号说明:Label description:
1、划分模块;2、第一获取模块;3、第一计算模块;4、第二获取模块;5、第三获取模块;6、构造模块;7、优化模块;1. Dividing module; 2. First acquiring module; 3. First calculating module; 4. Second acquiring module; 5. Third acquiring module; 6. Constructing module; 7. Optimizing module;
401、建立单元;402、第一计算单元;403、第一得到单元;404、第二得到单元;401, establishing unit; 402, first calculating unit; 403, first obtaining unit; 404, second obtaining unit;
501、第一获取单元;502、第三得到单元;503、第二计算单元;504、第一判断单元;505、第三计算单元;506、第二判断单元;507、第一判定单元;508、第二判定单元;509、第三判断单元;510、第三判定单元;511、第四判定单元;512、第四计算单元。501, a first obtaining unit; 502, a third obtaining unit; 503, a second calculating unit; 504, a first determining unit; 505, a third calculating unit; 506, a second determining unit; 507, a first determining unit; a second determining unit 509, a third determining unit 510, a third determining unit 511, a fourth determining unit, 512, and a fourth calculating unit.
具体实施方式detailed description
为详细说明本发明实施例的技术内容、所实现目的及效果,以下结合实施方式并配合附图详予说明。The detailed description of the technical content, the objects and the effects of the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
本发明实施例最关键的构思在于:基于多目标的优化模型,通过搜索 最优值,对电网系统图的布局进行优化。The most critical idea of an embodiment of the present invention is to search for a multi-objective based optimization model. The optimal value optimizes the layout of the grid system map.
请参阅图1,一种电网系统图自动化布局克服交叉的方法,包括Referring to FIG. 1, a method for overcoming the intersection of an automated layout of a grid system diagram includes
对布局空间进行网格化划分;Meshing the layout space;
获取网格化划分后的布局空间内的各个元件的第一坐标(x,y);Obtaining a first coordinate (x, y) of each component in the layout space after the meshing is divided;
根据所述第一坐标(x,y),计算所述各个元件之间的曼哈顿距离L;Calculating a Manhattan distance L between the respective elements according to the first coordinate (x, y);
分别获取各个含母线元件的出线交叉数C1;Obtaining the number of outgoing intersections C1 of each busbar component separately;
获取所述各个元件之间的连线交叉总数S2;Obtaining a total number of connection intersections S2 between the respective components;
根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
Figure PCTCN2016107194-appb-000003
其中m为含母线元件的个数;
Constructing an optimization model according to the Manhattan distance L, the number of intersections S1, the total number of connection intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3
Figure PCTCN2016107194-appb-000003
Where m is the number of busbar components;
根据所述优化模型,对电网系统图中的元件进行布局调整。According to the optimization model, layout adjustment is performed on components in the grid system diagram.
从上述描述可知,本发明的有益效果在于:通过尽量减小优化模型的值,缩短线路长度,减少电网系统图中的交叉数,搜索出理想的布局,可提高电网系统图的成图美观性,提高布局效果。It can be seen from the above description that the beneficial effects of the present invention are: by minimizing the value of the optimization model, shortening the length of the line, reducing the number of intersections in the grid system diagram, and searching for an ideal layout, the appearance of the grid system map can be improved. , improve the layout effect.
本发明实施例中,所述“根据所述第一坐标,计算所述各个元件之间的曼哈顿距离L”具体为:根据公式
Figure PCTCN2016107194-appb-000004
计算所述各个元件之间的曼哈顿距离L,其中δ(i,j)为delta函数,当元件i与元件j之间有连线时,δ(i,j)=1,反之δ(i,j)=0。
In the embodiment of the present invention, the “calcifying the Manhattan distance L between the respective components according to the first coordinate” is specifically: according to a formula
Figure PCTCN2016107194-appb-000004
Calculating the Manhattan distance L between the various elements, where δ(i,j) is a delta function, when there is a line between element i and element j, δ(i,j)=1, and δ(i, j) = 0.
由上述描述可知,采用曼哈顿距离作为衡量电网节点间连线长度的模型,符合电网系统图制图走线横平竖直的特点,且曼哈顿距离模型具有有效性与实用性。It can be seen from the above description that the Manhattan distance is used as a model to measure the length of the connection between the nodes of the power grid, which is consistent with the vertical and vertical alignment of the grid system diagram, and the Manhattan distance model is effective and practical.
本发明实施例中,所述“分别获取各个含母线元件的出线交叉数C1”具体为:In the embodiment of the present invention, the “receiving the number of outgoing intersections C1 of each busbar component separately” is specifically:
以所述含母线元件i为原点,垂直向上为0方向,逆时针为正方向,建 立极坐标系;Taking the bus bar component i as an origin, the vertical direction is 0 direction, and the counterclockwise direction is positive direction. Vertical polar coordinate system;
根据公式
Figure PCTCN2016107194-appb-000005
计算与所述含母线元件i有直接拓扑连接的第k个元件在极坐标系中的角度,其中(xi,yi)和(xi,k,yi,k)为所述含母线元件i与所述元件k的第一坐标;
According to the formula
Figure PCTCN2016107194-appb-000005
Calculating an angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are the bus bars a first coordinate of the component i and the component k;
比较与所述含母线元件i有直接拓扑连接的各个元件的角度,得到逆序数;Comparing the angles of the respective components having direct topological connection with the busbar component i, obtaining a reverse order number;
根据所述逆序数,得到所述含母线元件的出线交叉数C1。According to the reverse order number, the number of outgoing intersections C1 of the busbar-containing component is obtained.
由上述描述可知,通过建立极坐标系,计算并比较与含母线元件有直接拓扑连接的各个元件的角度,得到逆序数,可以推出按最短路径的布线后存在的交叉数。It can be seen from the above description that by establishing a polar coordinate system, the angles of the respective components having direct topological connection with the busbar components are calculated and compared, and the reverse order number is obtained, and the number of intersections existing after the wiring of the shortest path can be derived.
本发明实施例中,所述“获取元件之间的连线交叉总数S2”具体为:In the embodiment of the present invention, the “total number of connection intersections S2 between acquisition elements” is specifically:
获取两组元件,其中一组为有连线关系的第一元件P1和第二元件P2,另一组为有连线关系的第三元件Q1和第四元件Q2;Obtaining two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship;
根据所述第一元件P1、第二元件P2、第三元件Q1和第四元件Q2的第一坐标,得到第一向量Q1P2、第二向量Q1P1、第三向量P1Q1、第四向量P1Q2、第五向量Q2P1、第六向量Q2P2、第七向量P2Q2、第八向量P2Q1;According to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2, a first vector Q1P2, a second vector Q1P1, a third vector P1Q1, a fourth vector P1Q2, and a fifth are obtained. Vector Q2P1, sixth vector Q2P2, seventh vector P2Q2, eighth vector P2Q1;
根据公式ε1=Q1P2×Q1P1、ε2=P1Q1×P1Q2、ε3=Q2P1×Q2P2、ε4=P2Q2×P2Q1计算第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4;Calculating the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross according to the formula ε1=Q1P2×Q1P1, ε2=P1Q1×P1Q2, ε3=Q2P1×Q2P2, ε4=P2Q2×P2Q1 Multiply the result ε4;
判断所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4是否均为0;Determining whether the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0;
若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均为0,则根据公式κ1=Q1P2·Q1P1、κ2=P1Q1·P1Q2、κ3=Q2P1·Q2P2、κ4=P2Q2·P2Q1计算第一点乘结果κ1、第二点乘结果κ2、 第三点乘结果κ3和第四点乘结果κ4;If the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0, then according to the formula κ1=Q1P2·Q1P1, κ2=P1Q1·P1Q2, κ3 =Q2P1·Q2P2, κ4=P2Q2·P2Q1 calculates the first point multiplication result κ1, the second point multiplication result κ2 The third point is multiplied by the result κ3 and the fourth point is multiplied by the result κ4;
若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4均大于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;If the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4 are both greater than 0, it is determined that the two sets of components do not intersect, and the two groups are determined The number of connection crossings of the component C2=0;
若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4不均大于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;If the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4 are not more than 0, it is determined that the two sets of elements intersect, and the two groups are The number of connection crossings of the component C2=1;
若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均大于等于0或均小于等于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;If the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both greater than or equal to 0 or less than or equal to 0, it is determined that the two sets of components intersect, and Having the number of intersections of the two sets of components C2=1;
若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4不均大于等于0或不均小于等于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;If the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are not equal to or greater than 0 or the unevenness is less than or equal to 0, it is determined that the two sets of components are not Intersect, and make the number of intersections of the two sets of components C2=0;
根据公式
Figure PCTCN2016107194-appb-000006
计算连线交叉总数S2,其中t为任意两组有连接关系的元件的取法数量且所述两组元件中不存在共同的元件。
According to the formula
Figure PCTCN2016107194-appb-000006
The total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
由上述描述可知,通过向量的叉乘结果和点乘结果来判断两组元件是否有交叉,简单高效。It can be seen from the above description that it is simple and efficient to judge whether two sets of components intersect by the cross-multiplication result of the vector and the dot multiplication result.
请参照图13,本发明实施例还提出一种电网系统图自动化布局克服交叉的系统,包括:Referring to FIG. 13, an embodiment of the present invention further provides a system for over-interleaving an automatic layout of a power grid system diagram, including:
划分模块,配置为对布局空间进行网格化划分;Dividing a module, configured to mesh the layout space;
第一获取模块,配置为获取网格化划分后的布局空间内的各个元件的第一坐标(x,y);a first acquiring module configured to obtain a first coordinate (x, y) of each component in the gridded partitioned layout space;
第一计算模块,配置为根据所述第一坐标(x,y),计算所述各个元件之间的曼哈顿距离L;a first calculating module, configured to calculate a Manhattan distance L between the respective elements according to the first coordinate (x, y);
第二获取模块,配置为分别获取各个含母线元件的出线交叉数C1; The second obtaining module is configured to respectively acquire the number of outgoing intersections C1 of each busbar component;
第三获取模块,配置为获取所述各个元件之间的连线交叉总数S2;a third obtaining module, configured to obtain a total number of connection intersections S2 between the respective components;
构造模块,配置为根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
Figure PCTCN2016107194-appb-000007
其中m为含母线元件的个数;
Constructing a module configured to construct an optimization model according to the Manhattan distance L, the number of outgoing intersections S1, the total number of connected intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3
Figure PCTCN2016107194-appb-000007
Where m is the number of busbar components;
优化模块,配置为根据所述优化模型,对电网系统图中的元件进行布局调整。The optimization module is configured to perform layout adjustment on components in the grid system map according to the optimization model.
本发明实施例中,所述第一计算模块还配置为根据公式
Figure PCTCN2016107194-appb-000008
计算所述各个元件之间的曼哈顿距离L,其中δ(i,j)为delta函数,当元件i与元件j之间有连线时,δ(i,j)=1,反之δ(i,j)=0。
In the embodiment of the present invention, the first calculating module is further configured according to a formula
Figure PCTCN2016107194-appb-000008
Calculating the Manhattan distance L between the various elements, where δ(i,j) is a delta function, when there is a line between element i and element j, δ(i,j)=1, and δ(i, j) = 0.
本发明实施例中,所述第二获取模块包括In the embodiment of the present invention, the second obtaining module includes
建立单元,配置为以所述含母线元件i为原点,垂直向上为0方向,逆时针为正方向,建立极坐标系;Establishing a unit, configured to use the bus bar component i as an origin, a vertical direction of 0 direction, and a counterclockwise direction, to establish a polar coordinate system;
第一计算单元,配置为根据公式
Figure PCTCN2016107194-appb-000009
mod 2π计算与所述含母线元件i有直接拓扑连接的第k个元件在极坐标系中的角度,其中(xi,yi)和(xi,k,yi,k)为所述含母线元件i与所述元件k的第一坐标;
First calculation unit configured to be based on a formula
Figure PCTCN2016107194-appb-000009
Mod 2π calculates the angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are a first coordinate comprising the busbar component i and the component k;
第一得到单元,配置为比较与所述含母线元件i有直接拓扑连接的各个元件的角度,得到逆序数;a first obtaining unit configured to compare angles of respective elements having direct topological connection with the bus bar element i to obtain a reverse order number;
第二得到单元,配置为根据所述逆序数,得到所述含母线元件的出线交叉数C1。The second obtaining unit is configured to obtain the number of outgoing intersections C1 of the busbar-containing component according to the reverse order number.
本发明实施例中,所述第三获取模块包括In the embodiment of the present invention, the third obtaining module includes
第一获取单元,配置为获取两组元件,其中一组为有连线关系的第一元件P1和第二元件P2,另一组为有连线关系的第三元件Q1和第四元件Q2; The first obtaining unit is configured to acquire two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship;
第三得到单元,配置为根据所述第一元件P1、第二元件P2、第三元件Q1和第四元件Q2的第一坐标,得到第一向量Q1P2、第二向量Q1P1、第三向量P1Q1、第四向量P1Q2、第五向量Q2P1、第六向量Q2P2、第七向量P2Q2、第八向量P2Q1;a third obtaining unit configured to obtain, according to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2, a first vector Q1P2, a second vector Q1P1, and a third vector P1Q1 Fourth vector P1Q2, fifth vector Q2P1, sixth vector Q2P2, seventh vector P2Q2, eighth vector P2Q1;
第二计算单元,配置为根据公式ε1=Q1P2×Q1P1、ε2=P1Q1×P1Q2、ε3=Q2P1×Q2P2、ε4=P2Q2×P2Q1计算第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4;a second calculating unit configured to calculate a first cross result ε1, a second cross result ε2, a third cross according to a formula ε1=Q1P2×Q1P1, ε2=P1Q1×P1Q2, ε3=Q2P1×Q2P2, ε4=P2Q2×P2Q1 Multiply the result ε3 and the fourth cross result ε4;
第一判断单元,配置为判断所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4是否均为0;a first determining unit, configured to determine whether the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0;
第三计算单元,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均为0,则根据公式κ1=Q1P2·Q1P1、κ2=P1Q1·P1Q2、κ3=Q2P1·Q2P2、κ4=P2Q2·P2Q1计算第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4;a third calculating unit configured to: if the first cross result ε1, the second cross result ε2, the third cross result ε3, and the fourth cross result ε4 are both 0, according to the formula κ1=Q1P2·Q1P1 Κ2=P1Q1·P1Q2, κ3=Q2P1·Q2P2, κ4=P2Q2·P2Q1 calculate the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4;
第一判定单元,配置为若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4均大于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;The first determining unit is configured to determine that the two sets of components do not intersect if the first multiplication result κ1, the second multiplication result κ2, the third multiplication result κ3, and the fourth multiplication result κ4 are both greater than 0 And let the number of connection crossings of the two sets of components C2=0;
第二判定单元,配置为若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4不均大于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;a second determining unit configured to determine that the two sets of components intersect if the first multiplication result κ1, the second multiplication result κ2, the third multiplication result κ3, and the fourth multiplication result κ4 are not greater than 0 And let the number of connection crossings of the two sets of components C2=1;
第三判定单元,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均大于等于0或均小于等于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;a third determining unit configured to determine that the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both greater than or equal to 0 or less than or equal to 0 The two sets of components intersect, and the number of intersections of the two sets of components is C2=1;
第四判定单元,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4不均大于等于0或不均小于等于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0; a fourth determining unit configured to: if the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are not equal to or greater than 0, or the unevenness is less than or equal to 0, Determining that the two sets of components do not intersect, and causing the number of crossovers of the two sets of components to be C2=0;
第四计算单元,配置为根据公式
Figure PCTCN2016107194-appb-000010
计算连线交叉总数S2,其中t为任意两组有连接关系的元件的取法数量且所述两组元件中不存在共同的元件。
Fourth calculation unit, configured to be based on a formula
Figure PCTCN2016107194-appb-000010
The total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
实施例一 Embodiment 1
请参照图2,本发明的实施例一为:一种电网系统图自动化布局克服交叉的方法,包括如下步骤:Referring to FIG. 2, a first embodiment of the present invention is a method for overcoming the intersection of an automated layout of a power grid system diagram, including the following steps:
S1:对布局空间进行网格化划分;S1: meshing the layout space;
稀疏的网格将限制布局效果,影响模型灵活性,网格过密则会增加计算开支,亦对布局美观性要求产生影响,均衡考虑系统性能和模型灵活性,对单元格大小与布局空间的划分规定如下:使用相同大小的单元格来划分布局区域,每个元件只占一行,不允许跨行摆放,元件可以占据一行中的多个单元格,每个单元格中至多有一个元件。元件摆放于单元格中央,在元件四周预留出走线空间;也就是说,假定布局空间为矩形区域,按照一定的横向间距Wunit与纵向间距Hunit建立网格,Wunit=min(wi)+Wspace i=1...n,Hunit=max(hi)+Hspace i=1...n,其中Wunit与Hunit为单元格宽度,wi和hi为第i个元件的宽度,n为元件的数量,Wspace和Hspace为在元件四周预留走线通道的宽度。A sparse grid will limit the layout effect and affect the flexibility of the model. If the grid is too dense, it will increase the calculation cost, and also affect the layout aesthetic requirements. Balance the system performance and model flexibility, and the cell size and layout space. The division is as follows: Use the same size of cells to divide the layout area, each component is only one row, not allowed to be placed across rows, components can occupy multiple cells in a row, and there is at most one component in each cell. The components are placed in the center of the cell, leaving a space around the component; that is, assuming that the layout space is a rectangular area, a mesh is established according to a certain horizontal spacing W unit and the longitudinal spacing H unit , W unit =min(w i )+W space i=1...n, H unit =max(h i )+H space i=1...n, where W unit and H unit are cell widths, w i and h i are The width of i components, n is the number of components, and W space and H space are the widths of the routing channels reserved around the components.
S2:获取网格化划分后的布局空间内的各个元件的第一坐标(x,y);S2: obtaining a first coordinate (x, y) of each component in the layout space after the meshing division;
可选地,为方便计算机处理,将布局空间的左上角设为原点,水平向右为x轴正方向,垂直向下为y轴正方向。Optionally, for the convenience of computer processing, the upper left corner of the layout space is set as the origin, the horizontal right is the positive direction of the x-axis, and the vertical direction is the positive direction of the y-axis.
S3:判断各个元件之间是否有连线,即判断布局空间中任意两个元件i和j之间是否有连线,若是,则执行步骤S4,若否,则执行步骤S5。S3: judging whether there is a connection between the respective components, that is, determining whether there is a connection between any two components i and j in the layout space, and if so, executing step S4, and if not, executing step S5.
S4:令delta函数δ(i,j)=1。S4: Let the delta function δ(i,j)=1.
S5:令delta函数δ(i,j)=0。 S5: Let the delta function δ(i,j)=0.
S6:根据各个元件的第一坐标和公式
Figure PCTCN2016107194-appb-000011
计算各个元件之间的曼哈顿距离L,其中(xi,yi)为元件i的第一坐标,(xj,yj)为元件j的第一坐标,n为布局空间中元件的数量。
S6: According to the first coordinates and formula of each component
Figure PCTCN2016107194-appb-000011
The Manhattan distance L between the various elements is calculated, where (x i , y i ) is the first coordinate of element i, (x j , y j ) is the first coordinate of element j, and n is the number of elements in the layout space.
S7:获取电网系统图中的含母线元件。S7: Obtain the busbar components in the grid system diagram.
S8:分别获取各个含母线元件的出线交叉数C1;通常情况下,母线出线接头排放于元件下端,按照从左至右的顺序编号,其连接的元件容易因摆放不当造成出线交叉,出线交叉数即含母线元件的出线的交叉数。S8: respectively obtaining the number of outgoing intersections C1 of each busbar component; normally, the busbar outlet connectors are discharged at the lower end of the component, and are numbered in order from left to right, and the connected components are easily cross-lined due to improper placement, and the intersection is crossed. The number is the number of intersections of the outgoing lines containing the bus components.
S9:获取所述各个元件之间的连线交叉总数S2;可先取两根连线连接的4个元件,判断连接这4个元件的两根连线是否有交叉,若有交叉则令其连线交叉数为1,反之则为0,获取所有所述两根连线的连线交叉数,进行求和即为连线交叉总数。S9: obtaining the total number of connection intersections S2 between the respective components; first, taking four components connected by two wires, and judging whether there are intersections of the two wires connecting the four components, and if there is a cross, it is connected The number of line crossings is 1, and vice versa is 0. The number of crossings of all the two connecting lines is obtained, and the summation is the total number of connecting lines.
S10:根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
Figure PCTCN2016107194-appb-000012
其中m为含母线元件的个数。
S10: Constructing an optimization model according to the Manhattan distance L, the number of intersections S1, the total number of connection intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3
Figure PCTCN2016107194-appb-000012
Where m is the number of busbar components.
第一权重ω1、第二权重ω2、第三权重ω3可以直接由人工设定,即直接由系统图相关使用者给出一组权重,其反应了每个人对于线路长度与两种交叉的厌恶程度,程度越高,给出的权重就越大,通过对多人给出权重的平均,可以确定系统图相关使用者的平均偏好;也可以通过统计计算设定,基于统计学中的序分布模型,根据已有人工布局的系统图,分别计算线路长度和两种交叉数的值,得到三个值的序分布,从而确定三个值间的比例关系,再乘以标准化系数即可得出权重;还可以通过平均值方法,将人工设定的三个权重的值与统计计算所得到的三个权重的值分别取平均,作为最终三个权重的值。The first weight ω1, the second weight ω2, and the third weight ω3 can be directly set manually, that is, a set of weights is directly given by the related user of the system diagram, which reflects each person's aversion to the line length and the two types of intersections. The higher the degree, the greater the weight given. By giving the average of the weights to multiple people, the average preference of the users related to the system map can be determined; it can also be set by statistical calculation, based on the order distribution model in statistics. According to the system diagram of the existing artificial layout, the line length and the values of the two intersection numbers are respectively calculated, and the order distribution of the three values is obtained, thereby determining the proportional relationship between the three values, and multiplying by the normalization coefficient to obtain the weight. It is also possible to average the values of the three weights manually set and the values of the three weights obtained by the statistical calculation by the average method as the values of the final three weights.
S11:根据所述优化模型,对电网系统图中的元件进行布局调整;优化 模型的值越小,布局效果越好,在寻求所述优化模型的最优解的过程中,采用交换元件位置,以及把元件放到空白位置的方式,朝着减小优化模型的值F的方向开展搜索尝试,最终搜索到理想的布局。优选地,在优化过程中,所有生成的布局排除重复,只要生成的布局对应的优化模型的值优于当前访问的布局,则暂停生成其他布局,优先访问更加优化的布局,以提高搜索效率。S11: Perform layout adjustment on components in the grid system diagram according to the optimization model; optimize The smaller the value of the model, the better the layout effect. In the process of seeking the optimal solution of the optimization model, the position of the exchange component and the way of placing the component to the blank position are used to reduce the value F of the optimization model. Search in the direction and finally search for the ideal layout. Preferably, in the optimization process, all generated layouts are excluded from repetition, as long as the value of the optimized model corresponding to the generated layout is better than the currently accessed layout, the other layouts are suspended, and the more optimized layout is preferentially accessed to improve the search efficiency.
电网系统图中的线路走向通常由最短路径算法来确定,常见的最短路径算法有深度优先搜索,广度优先搜索,A*算法和Djisktra算法。可选地,可以使用带权重网格上的Djisktra算法完成电网系统图中元件间连线的计算。The line direction in the grid system diagram is usually determined by the shortest path algorithm. The common shortest path algorithms are depth-first search, breadth-first search, A * algorithm and Djisktra algorithm. Alternatively, the calculation of the inter-component wiring in the grid system diagram can be done using the Djisktra algorithm on the weighted grid.
为验证所述优化模型的布局效果,选取常见的三种布局模型进行比较,包括树形布局模型,正交布局模型,力导向布局模型,使用100份模拟电网拓扑数据作为算例,通过直接呈现成图结果来比较成图美观与易读性,通过计算成图所占网格数与长宽比来来比较模型对空间的利率情况。In order to verify the layout effect of the optimization model, three common layout models are selected for comparison, including tree layout model, orthogonal layout model, force-oriented layout model, and 100 simulated grid topology data are used as examples to directly present The results of the mapping are compared to the aesthetics and legibility of the map, and the interest rate of the model to the space is compared by calculating the number of grids and the aspect ratio of the graph.
图3为优化模型布局效果示意图,图4为正交布局模型布局效果示意图,图5为树形布局模型布局效果示意图,图6为力导向布局模型布局效果示意图;表1包含上述四种模型的空间利用率,表2包含上述四种模型对布局空间长宽比与比面积的控制能力。Figure 3 is a schematic diagram of the layout effect of the optimized model, Figure 4 is a schematic diagram of the layout effect of the orthogonal layout model, Figure 5 is a schematic diagram of the layout effect of the tree layout model, Figure 6 is a schematic diagram of the layout effect of the force-oriented layout model; Table 1 contains the above four models Space utilization, Table 2 contains the above four models for the control space aspect ratio and specific area control ability.
  布局所占空间Layout space 空间利用率Space utilization
优化模型Optimization model 121单位121 units 24.8%24.8%
正交布局Orthogonal layout 567单位567 units 5.3%5.3%
树形布局Tree layout 234单位234 units 12.8%12.8%
力导向布局Force-oriented layout 391单位391 units 7.7%7.7%
表1Table 1
  能否控制面积Can control area 能否控制长宽比Can control the aspect ratio?
多目标优化模型Multi-objective optimization model YesYes YesYes
正交布局Orthogonal layout NoNo NoNo
树形布局Tree layout NoNo NoNo
力导向布局Force-oriented layout YesYes YesYes
表2Table 2
比较图3-6和表1-2,结果显示,所述优化模型在控制布局空间长宽比和优化布局空间利用率上具有显著优势,在减少线路交叉上与所比较的模型均达到了无交叉的效果。Comparing Figure 3-6 with Table 1-2, the results show that the optimization model has significant advantages in controlling the layout space aspect ratio and optimizing the layout space utilization, and the models are reduced in the reduction of line crossings. The effect of the cross.
实施例二 Embodiment 2
请参照图7,本实施例为实施例一基础上,其中的步骤S8的一种具体实现方式,包括如下步骤:Referring to FIG. 7, the embodiment is a specific implementation manner of step S8, which includes the following steps:
S801:以含母线元件i为原点,垂直向上为0方向,逆时针为正方向,建立极坐标系,角度单位设定为弧度,设元件i节点度为djS801: taking the bus bar component i as the origin, the vertical direction is 0 direction, the counterclockwise direction is the positive direction, the polar coordinate system is established, the angle unit is set to radians, and the component i node degree is d j .
S802:计算各个与所述含母线元件有直接拓扑连接的元件在极坐标系中的角度;根据公式
Figure PCTCN2016107194-appb-000013
计算与所述含母线元件i有直接拓扑连接的第k个元件在极坐标系中的角度,其中(xi,yi)和(xi,k,yi,k)为所述含母线元件i与所述元件k的第一坐标,k=1...dj
S802: calculating an angle of each component having a direct topological connection with the busbar component in a polar coordinate system;
Figure PCTCN2016107194-appb-000013
Calculating an angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are the bus bars The first coordinate of element i and the element k, k=1...d j .
S803:比较与所述含母线元件i有直接拓扑连接的各个元件的角度,得到逆序数;逆序数的定义为:如果在1,2,3...n这n个数的一个全排列p1,p2,p3...pn中,有pi>pj,i<j时,就称这是一个逆序,排列p1,p2,p3...pn中逆序的总数称为该排列的逆序数。S803: Comparing the angles of the respective components having direct topological connection with the busbar component i, and obtaining a reverse order number; the inverse ordinal number is defined as: if the number of the n numbers in 1, 2, 3...n is a full arrangement p 1 , p 2 , p 3 ... p n , when p i >p j , i<j, it is called a reverse order, and the order of p 1 , p 2 , p 3 ... p n is reversed The total number is called the inverse number of the permutation.
S804:根据所述逆序数,得到所述含母线元件的出线交叉数C1;即出线交叉数C1等于逆序数。S804: Obtain an intersection number C1 of the bus-line-containing component according to the reverse order number; that is, the number of outgoing intersections C1 is equal to a reverse-order number.
例如,如图8所示,一种含母线元件与其有直接拓扑连接的元件A、B、C、D的摆放示意图,在计算角度时,为避免水平连线多个元件角度重合, 无法分辨是否交叉,如元件C和元件D,可将原点略向出线方向偏移,如图9所示;可选地,偏移距离为0.1个单元格或0.01个单元格;根据步骤S802中的公式计算出A、B、C、D元件相对含母线元件的角度分别为116°、68°、279°、272°,得到的排序为116°<68°<279°<272°,其中存在的逆序有:116°<68°和279°<272°,即逆序数为2,推出按最短路径的布线后存在2个交叉,即该含母线元件的出线交叉数C1=2。For example, as shown in FIG. 8, a schematic diagram of a component A, B, C, and D having a busbar component directly connected to it, in order to avoid overlapping angles of multiple components in a horizontal connection when calculating an angle, Can not distinguish whether the intersection, such as component C and component D, can shift the origin slightly to the outgoing direction, as shown in Figure 9; optionally, the offset distance is 0.1 cells or 0.01 cells; according to step S802 The formula calculates that the angles of the A, B, C, and D components relative to the busbar components are 116°, 68°, 279°, and 272°, respectively, and the resulting order is 116°<68°<279°<272°, which exists. The reverse order is: 116°<68° and 279°<272°, that is, the reverse order number is 2, and there are two intersections after the wiring according to the shortest path is pushed out, that is, the number of intersections of the bus-line-containing elements is C1=2.
因为逆方向为所述极坐标系的正方向,因此优选地,可以直接得到四个元件的角度排序为B<A<D<C,对比排序A<B<C<D,存在两个逆序,即逆序数为2,即可很容易地得到即该含母线元件的出线交叉数C1=2。Since the reverse direction is the positive direction of the polar coordinate system, it is preferable that the angles of the four elements can be directly obtained as B<A<D<C, and the comparison order A<B<C<D, there are two reverse orders, That is, if the number of reverse order is 2, it is easy to obtain the number of outgoing intersections C1=2 of the busbar-containing component.
实施例三 Embodiment 3
本实施例为实施例一基础上,其中的步骤S9的一种具体实现方式,在实际布局中,存在多种两根线连接着四个元件发生的交叉,如图10左侧的十字交叉,图10中部的四角交叉,以及更加随意的情形例如图10右侧。尽管元件相对位置存在各种情况,布局中这类交叉的检测发现,都统一采用两线段交叉判断来处理。This embodiment is based on the first embodiment, in a specific implementation manner of step S9, in the actual layout, there are multiple intersections of two wires connected to four components, as shown in the cross on the left side of FIG. The four corners in the middle of Fig. 10, as well as the more random situation, such as the right side of Fig. 10. Although there are various situations in the relative position of the components, the detection of such intersections in the layout is found to be uniformly handled by the two-line cross-judgment.
通常两线段相交,围成的四边形内角都小等于180°;两线段不相交,存在内角大于180°。由于计算内角大小比较繁琐,因此用四个向量叉乘结果ε1、ε2、ε3和ε4来判断,一旦发现其中既有大于0也有小于0,对应着四边形同时存在内角大于180°和小于180°的情况,就可以快速返回两线段不相交的结果。特殊情况,四个向量叉乘结果全等于0,对应着两线段在同一直线上,需计算四个向量点乘结果κ1、κ2、κ3和κ4,若全大于0则不相交,否则两线段相交。Usually, the two line segments intersect, and the inner angle of the enclosed quadrilateral is equal to 180°; the two line segments do not intersect, and the inner angle is greater than 180°. Since the calculation of the inner angle is cumbersome, it is judged by the four vector cross-multiplication results ε1, ε2, ε3, and ε4. Once it is found that it is greater than 0 and less than 0, the corresponding quadrilateral has an internal angle greater than 180° and less than 180°. In this case, you can quickly return the results of the disjoint two-segment. In special cases, the four vector cross-multiplication results are all equal to 0, corresponding to the two line segments on the same line. Four vector point multiplication results κ1, κ2, κ3, and κ4 are calculated. If all are greater than 0, they do not intersect, otherwise the two line segments intersect. .
请参照图11,本实施例中步骤S9具体可以包括如下步骤:Referring to FIG. 11, step S9 in this embodiment may specifically include the following steps:
S901:获取两组元件,其中一组为有连线关系的第一元件P1和第二元件P2,另一组为有连线关系的第三元件Q1和第四元件Q2。 S901: Acquire two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship.
S902:根据所述第一元件P1、第二元件P2、第三元件Q1和第四元件Q2的第一坐标,得到第一向量Q1P2、第二向量Q1P1、第三向量P1Q1、第四向量P1Q2、第五向量Q2P1、第六向量Q2P2、第七向量P2Q2、第八向量P2Q1。S902: According to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2, obtain a first vector Q1P2, a second vector Q1P1, a third vector P1Q1, and a fourth vector P1Q2. The fifth vector Q2P1, the sixth vector Q2P2, the seventh vector P2Q2, and the eighth vector P2Q1.
S903:根据公式ε1=Q1P2×Q1P1、ε2=P1Q1×P1Q2、ε3=Q2P1×Q2P2、ε4=P2Q2×P2Q1计算第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4。S903: Calculate the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the first according to the formula ε1=Q1P2×Q1P1, ε2=P1Q1×P1Q2, ε3=Q2P1×Q2P2, ε4=P2Q2×P2Q1 Quadruple multiplication results ε4.
S904:判断所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4是否均为0,若是,则执行步骤S905,若否,则执行步骤S909。S904: determining whether the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are all 0. If yes, step S905 is performed, and if not, executing steps S909.
S905:根据公式κ1=Q1P2·Q1P1、κ2=P1Q1·P1Q2、κ3=Q2P1·Q2P2、κ4=P2Q2·P2Q1计算第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4。S905: Calculate the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the first according to the formula κ1=Q1P2·Q1P1, κ2=P1Q1·P1Q2, κ3=Q2P1·Q2P2, κ4=P2Q2·P2Q1 Four-point multiplication results κ4.
S906:判断所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4是否均大于0,若是,则执行步骤S907,若否,则执行步骤S908。S906: determining whether the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4 are both greater than 0. If yes, step S907 is performed, and if no, the step is performed. S908.
S907:判定所述两组元件不相交,即无交叉,并令所述两组元件的连线交叉数C2=0。S907: It is determined that the two sets of components do not intersect, that is, there is no intersection, and the number of intersections of the two sets of components is C2=0.
S908:判定所述两组元件相交,即有交叉,并令所述两组元件的连线交叉数C2=1。S908: It is determined that the two sets of components intersect, that is, there is an intersection, and the number of connection crossings of the two sets of components is C2=1.
S909:判断所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4是否均大于等于0或均小于等于0,若是,则执行S910,若否,则执行步骤S911。S909: determining whether the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both greater than or equal to 0 or less than or equal to 0, and if yes, executing S910, if Otherwise, step S911 is performed.
S910:判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1。S910: Determine that the two sets of components intersect, and make the number of connection crossings of the two sets of components C2=1.
S911:判定所述两组元件不相交,并令所述两组元件的连线交叉数 C2=0。S911: determining that the two sets of components do not intersect, and causing the number of intersections of the two sets of components C2=0.
S912:获取布局空间中所有任意两组元件的连线交叉数C2,根据公式
Figure PCTCN2016107194-appb-000014
计算连线交叉总数S2,其中t为任意两组有连接关系的元件的取法数量且所述两组元件中不存在共同的元件,即在所有连线中任意取出两根连线且满足这两根连线不连接共同元件的取法数量。
S912: Acquire a number of connection intersections C2 of any two groups of components in the layout space, according to the formula
Figure PCTCN2016107194-appb-000014
Calculating the total number of connection intersections S2, where t is the number of elements of any two connected components and there is no common component in the two sets of components, that is, any two wires are taken out in all the wires and both meet The number of root connections that are not connected to the common component.
例如,图12中(a)所示的两组元件所计算出的叉乘结果分别为ε1>0、ε2>0、ε3>0、ε4>0,四个叉乘结果均大于0,因此判定其相交,C2=1;图12中(b)所示的两组元件所计算出的叉乘结果分别为ε1<0、ε2<0、ε3<0、ε4<0,四个叉乘结果均小于0,因此判定其相交,C2=1;图12中(b)所示的两组元件所计算出的叉乘结果分别为ε1<0、ε2>0,因同时存在大于0和小于0的情况,可不用计算第三叉乘结果ε3和第四叉乘结果ε4,直接判定所述两组元件不相交,C2=0;图12中(e)所示的两组元件所计算出的叉乘结果分别为ε1=0、ε2>0、ε3>0、ε4>0,四个叉乘结果均大于等于0,因此判定其相交,C2=1;对于图12中(e)和(f),其所计算出的四个叉乘结果均为0,因此计算其四个点乘结果,对于(e)所示的两组元件,其所计算出的点乘结果分别为κ1>0、κ2>0、κ3>0、κ4>0,四个点乘结果均大于0,因此判定所述两组元件不相交,C2=0;对于(f)所示的两组元件,其所计算出的点乘结果分别为κ1>0、κ2<0、κ3<0、κ4>0,四个点乘结果不均大于0,因此判定所述两组元件相交,C2=1。For example, the cross-multiplication results calculated by the two sets of elements shown in (a) of FIG. 12 are ε1>0, ε2>0, ε3>0, ε4>0, and the four cross-multiplication results are all greater than 0, thus determining The intersection is C2=1; the cross-multiplication results calculated by the two sets of components shown in (b) of Figure 12 are ε1<0, ε2<0, ε3<0, ε4<0, and the four cross-multiplication results are It is less than 0, so it is judged that it intersects, C2=1; the cross-multiplication results calculated by the two sets of components shown in (b) of Figure 12 are ε1<0, ε2>0, respectively, because there are more than 0 and less than 0 at the same time. In the case, the third cross-multiplication result ε3 and the fourth cross-multiplication result ε4 may not be calculated, and it is directly determined that the two sets of components do not intersect, C2=0; the fork calculated by the two sets of components shown in (e) of FIG. The multiplication results are ε1=0, ε2>0, ε3>0, ε4>0, and the four cross-multiplication results are all greater than or equal to 0, so the intersection is judged, C2=1; for (e) and (f) in Fig. 12 The calculated four cross-multiplication results are all 0, so the four-point multiplication result is calculated. For the two sets of components shown in (e), the calculated point multiplication results are κ1>0, κ2, respectively. >0, κ3>0, κ4>0, the four point multiplication results are all greater than 0, so It is determined that the two sets of elements do not intersect, C2=0; for the two sets of elements shown in (f), the calculated point multiplication results are κ1>0, κ2<0, κ3<0, κ4>0, respectively. The four point multiplication results are not more than 0, so it is determined that the two sets of elements intersect, C2=1.
实施例四 Embodiment 4
请参照图14,本实施例为实施例一、实施例二和实施例三的基础上的一种电网系统图自动化布局克服交叉的系统,包括Referring to FIG. 14, the embodiment is a system for over-intersecting the automatic layout of the power grid system diagram based on the first embodiment, the second embodiment, and the third embodiment, including
划分模块1,配置为对布局空间进行网格化划分; Dividing module 1 configured to mesh the layout space;
第一获取模块2,配置为获取网格化划分后的布局空间内的各个元件的第一坐标(x,y); The first obtaining module 2 is configured to obtain a first coordinate (x, y) of each component in the gridded partitioned layout space;
第一计算模块3,配置为根据所述第一坐标(x,y),计算所述各个元件之间的曼哈顿距离L;还配置为根据公式
Figure PCTCN2016107194-appb-000015
计算所述各个元件之间的曼哈顿距离L,其中δ(i,j)为delta函数,当元件i与元件j之间有连线时,δ(i,j)=1,反之δ(i,j)=0;
a first calculating module 3, configured to calculate a Manhattan distance L between the respective elements according to the first coordinate (x, y); further configured according to a formula
Figure PCTCN2016107194-appb-000015
Calculating the Manhattan distance L between the various elements, where δ(i,j) is a delta function, when there is a line between element i and element j, δ(i,j)=1, and δ(i, j) = 0;
第二获取模块4,配置为分别获取各个含母线元件的出线交叉数C1;The second obtaining module 4 is configured to respectively acquire the number of outgoing intersections C1 of each busbar component;
第三获取模块5,配置为获取所述各个元件之间的连线交叉总数S2;The third obtaining module 5 is configured to acquire the total number of connection intersections S2 between the respective components;
构造模块6,配置为根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
Figure PCTCN2016107194-appb-000016
其中m为含母线元件的个数;
The constructing module 6 is configured to construct an optimization model according to the Manhattan distance L, the number of outgoing intersections S1, the total number of connected intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3.
Figure PCTCN2016107194-appb-000016
Where m is the number of busbar components;
优化模块7,配置为根据所述优化模型,对电网系统图中的元件进行布局调整。The optimization module 7 is configured to perform layout adjustment on components in the grid system map according to the optimization model.
所述第二获取模块4包括The second obtaining module 4 includes
建立单元41,配置为以所述含母线元件i为原点,垂直向上为0方向,逆时针为正方向,建立极坐标系;The establishing unit 41 is configured to use the bus bar component i as an origin, the vertical direction is 0 direction, and the counterclockwise direction is positive direction, and a polar coordinate system is established;
第一计算单元42,配置为根据公式
Figure PCTCN2016107194-appb-000017
计算与所述含母线元件i有直接拓扑连接的第k个元件在极坐标系中的角度,其中(xi,yi)和(xi,k,yi,k)为所述含母线元件i与所述元件k的第一坐标;
The first calculating unit 42 is configured to be based on a formula
Figure PCTCN2016107194-appb-000017
Calculating an angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are the bus bars a first coordinate of the component i and the component k;
第一得到单元43,配置为比较与所述含母线元件i有直接拓扑连接的各个元件的角度,得到逆序数;a first obtaining unit 43 configured to compare angles of respective elements having direct topological connection with the bus bar element i to obtain a reverse order number;
第二得到单元44,配置为根据所述逆序数,得到所述含母线元件的出线交叉数C1。The second obtaining unit 44 is configured to obtain the number of outgoing intersections C1 of the busbar-containing component according to the reverse order number.
所述第三获取模块5包括 The third obtaining module 5 includes
第一获取单元501,配置为获取两组元件,其中一组为有连线关系的第一元件P1和第二元件P2,另一组为有连线关系的第三元件Q1和第四元件Q2;The first obtaining unit 501 is configured to acquire two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship ;
第三得到单元502,配置为根据所述第一元件P1、第二元件P2、第三元件Q1和第四元件Q2的第一坐标,得到第一向量Q1P2、第二向量Q1P1、第三向量P1Q1、第四向量P1Q2、第五向量Q2P1、第六向量Q2P2、第七向量P2Q2、第八向量P2Q1;The third obtaining unit 502 is configured to obtain the first vector Q1P2, the second vector Q1P1, and the third vector P1Q1 according to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2. a fourth vector P1Q2, a fifth vector Q2P1, a sixth vector Q2P2, a seventh vector P2Q2, an eighth vector P2Q1;
第二计算单元503,配置为根据公式ε1=Q1P2×Q1P1、ε2=P1Q1×P1Q2、ε3=Q2P1×Q2P2、ε4=P2Q2×P2Q1计算第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4;The second calculating unit 503 is configured to calculate the first cross result ε1, the second cross result ε2, and the third according to the formula ε1=Q1P2×Q1P1, ε2=P1Q1×P1Q2, ε3=Q2P1×Q2P2, ε4=P2Q2×P2Q1 Cross-multiply result ε3 and fourth cross-multiplication result ε4;
第一判断单元504,配置为判断所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4是否均为0;The first determining unit 504 is configured to determine whether the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0;
第三计算单元505,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均为0,则根据公式κ1=Q1P2·Q1P1、κ2=P1Q1·P1Q2、κ3=Q2P1·Q2P2、κ4=P2Q2·P2Q1计算第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4;The third calculating unit 505 is configured to: if the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0, according to the formula κ1=Q1P2·Q1P1 Κ2=P1Q1·P1Q2, κ3=Q2P1·Q2P2, κ4=P2Q2·P2Q1 calculate the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4;
第二判断单元506,配置为判断所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4是否均大于0;The second determining unit 506 is configured to determine whether the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4 are both greater than 0;
第一判定单元507,配置为若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4均大于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;The first determining unit 507 is configured to determine that the two sets of components are not determined if the first multiplication result κ1, the second multiplication result κ2, the third multiplication result κ3, and the fourth multiplication result κ4 are both greater than 0 Intersect, and make the number of intersections of the two sets of components C2=0;
第二判定单元508,配置为若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4不均大于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;The second determining unit 508 is configured to determine the two groups of components if the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4 are not more than 0 Intersect, and make the number of intersections of the two sets of components C2=1;
第三判断单元509,配置为判断所述第一叉乘结果ε1、第二叉乘结果ε2、 第三叉乘结果ε3和第四叉乘结果ε4是否均大于0或均小于0;The third determining unit 509 is configured to determine the first cross result ε1 and the second cross result ε2 Whether the third cross-multiplication result ε3 and the fourth cross-multiplication result ε4 are both greater than 0 or both are less than 0;
第三判定单元510,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均大于等于0或均小于等于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;The third determining unit 510 is configured to determine that the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both greater than or equal to 0 or less than or equal to 0. The two sets of elements intersect, and the number of intersections of the two sets of elements is C2=1;
第四判定单元511,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4不均大于等于0或不均小于等于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;The fourth determining unit 511 is configured to: if the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are not equal to or greater than 0, or the unevenness is less than or equal to 0, Then determining that the two sets of components do not intersect, and the number of intersections of the two sets of components C2 = 0;
第四计算单元512,配置为根据公式
Figure PCTCN2016107194-appb-000018
计算连线交叉总数S2,其中t为任意两组有连接关系的元件的取法数量且所述两组元件中不存在共同的元件。
The fourth calculating unit 512 is configured to be according to a formula
Figure PCTCN2016107194-appb-000018
The total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
在实际应用中,所述电网系统图自动化布局克服交叉的系统中的各个单元模块所实现的功能,均可由位于电网系统图自动化布局克服交叉的系统中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In practical applications, the grid system map automation layout overcomes the functions implemented by the various unit modules in the crossover system, and the central processing unit (CPU) in the system that overcomes the crossover in the grid system map automation layout can be used. Or a microprocessor (Micro Processor Unit, MPU), or a digital signal processor (DSP), or a Field Programmable Gate Array (FPGA).
本发明实施例上述电网系统图自动化布局克服交叉的系统如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。相应地,本发明实施例还提供一种存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的电网系统图自动化布局克服交叉的方法。Embodiments of the Invention The above-described grid system diagram automation layout overcomes the crossover system. If implemented in the form of a software function module and sold or used as a standalone product, it can also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. Correspondingly, the embodiment of the present invention further provides a storage medium, wherein a computer program is stored, and the computer program is used to execute the method for automatically intersecting the layout of the grid system diagram of the embodiment of the present invention.
综上所述,本发明提供的一种电网系统图自动化布局克服交叉的方法 及系统、存储介质,采用曼哈顿距离作为衡量电网节点间连线长度的模型,符合电网系统图制图走线横平竖直的特点,且曼哈顿距离模型具有有效性与实用性;通过建立极坐标系,计算并比较与含母线元件有直接拓扑连接的各个元件的角度,得到逆序数,推出按最短路径的布线后存在的交叉数;通过向量的叉乘结果和点乘结果来判断两组元件是否有交叉,简单高效;综合考虑元件之间的线路总长度、含母线元件的出线交叉数和各个元件之间的连线交叉总数,构造优化模型,通过尽量减小优化模型的值,自动搜索出理想的布局,可大大节省人力资源,提高工作效率,且可提高电网系统图的成图美观性,提高布局效果;同时,优化模型的空间布局利用率高,且可根据用户的需要设置各个参数的权重,通用性强,增大了优化模型应用的灵活性。In summary, the present invention provides a grid system diagram automatic layout to overcome the intersection method And the system and storage medium, using Manhattan distance as the model to measure the length of the connection between the grid nodes, in line with the horizontal and vertical characteristics of the grid system map, and the Manhattan distance model is effective and practical; through the establishment of the polar coordinate system, Calculate and compare the angles of the various components that have a direct topological connection with the busbar components, obtain the inverse order number, and push out the number of intersections after the wiring according to the shortest path; determine whether the two components are present by the cross-multiplication result of the vector and the dot multiplication result Crossover, simple and efficient; comprehensively consider the total length of the line between components, the number of intersections of busbar components and the total number of crossovers between components, construct an optimization model, and automatically search for the ideal by minimizing the value of the optimization model. The layout can greatly save human resources, improve work efficiency, and improve the aesthetic appearance of the grid system map and improve the layout effect. At the same time, the space layout of the optimized model is highly utilized, and various parameters can be set according to the needs of the user. Weight and versatility increase the flexibility of the optimization model application.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and equivalent transformations made by the description of the present invention and the contents of the drawings, or directly or indirectly applied in the related technical field, are included in the same. Within the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明综合考虑元件之间的线路总长度、含母线元件的出线交叉数和各个元件之间的连线交叉总数,构造优化模型,通过尽量减小优化模型的值,自动搜索出理想的布局,可大大节省人力资源,提高工作效率,且可减少交叉数,提高了电网系统图的成图美观性,改进了布局效果;同时,优化模型的空间布局利用率高,且可根据用户的需要设置各个参数的权重,通用性强,增大了优化模型应用的灵活性。 The invention comprehensively considers the total length of the line between the components, the number of intersections of the busbar components and the total number of intersections between the components, constructs an optimization model, and automatically searches for an ideal layout by minimizing the value of the optimization model. It can greatly save human resources, improve work efficiency, and can reduce the number of intersections, improve the aesthetic appearance of the grid system map, and improve the layout effect; at the same time, the space layout utilization of the optimization model is high, and can be set according to the needs of users. The weight of each parameter is highly versatile, which increases the flexibility of the optimization model application.

Claims (9)

  1. 一种电网系统图自动化布局克服交叉的方法,包括An automated layout of a grid system diagram to overcome crossover methods, including
    对布局空间进行网格化划分;Meshing the layout space;
    获取网格化划分后的布局空间内的各个元件的第一坐标(x,y);Obtaining a first coordinate (x, y) of each component in the layout space after the meshing is divided;
    根据所述第一坐标(x,y),计算所述各个元件之间的曼哈顿距离L;Calculating a Manhattan distance L between the respective elements according to the first coordinate (x, y);
    分别获取各个含母线元件的出线交叉数C1;Obtaining the number of outgoing intersections C1 of each busbar component separately;
    获取所述各个元件之间的连线交叉总数S2;Obtaining a total number of connection intersections S2 between the respective components;
    根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
    Figure PCTCN2016107194-appb-100001
    其中m为含母线元件的个数;
    Constructing an optimization model according to the Manhattan distance L, the number of intersections S1, the total number of connection intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3
    Figure PCTCN2016107194-appb-100001
    Where m is the number of busbar components;
    根据所述优化模型,对电网系统图中的元件进行布局调整。According to the optimization model, layout adjustment is performed on components in the grid system diagram.
  2. 根据权利要求1所述的电网系统图自动化布局克服交叉的方法,其中,所述“根据所述第一坐标,计算所述各个元件之间的曼哈顿距离L”具体为:根据公式
    Figure PCTCN2016107194-appb-100002
    计算所述各个元件之间的曼哈顿距离L,其中δ(i,j)为delta函数,当元件i与元件j之间有连线时,δ(i,j)=1,反之δ(i,j)=0。
    The method of claim 1, wherein the calculating a Manhattan distance L between the respective elements according to the first coordinate is specifically: according to a formula
    Figure PCTCN2016107194-appb-100002
    Calculating the Manhattan distance L between the various elements, where δ(i,j) is a delta function, when there is a line between element i and element j, δ(i,j)=1, and δ(i, j) = 0.
  3. 根据权利要求1所述的电网系统图自动化布局克服交叉的方法,其中,所述“分别获取各个含母线元件的出线交叉数C1”具体为:The method for overcoming the intersection of the automatic layout of the grid system diagram according to claim 1, wherein the “acquiring the number of outgoing intersections C1 of each busbar component separately” is specifically:
    以所述含母线元件i为原点,垂直向上为0方向,逆时针为正方向,建立极坐标系;Taking the bus bar component i as an origin, the vertical direction is 0 direction, and the counterclockwise direction is positive direction, and a polar coordinate system is established;
    根据公式
    Figure PCTCN2016107194-appb-100003
    计算与所述含母线元件i有直接拓扑连接的第k个元件在极坐标系中的角度,其中(xi,yi)和 (xi,k,yi,k)为所述含母线元件i与所述元件k的第一坐标;
    According to the formula
    Figure PCTCN2016107194-appb-100003
    Calculating an angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are the bus bars a first coordinate of the component i and the component k;
    比较与所述含母线元件i有直接拓扑连接的各个元件的角度,得到逆序数;Comparing the angles of the respective components having direct topological connection with the busbar component i, obtaining a reverse order number;
    根据所述逆序数,得到所述含母线元件的出线交叉数C1。According to the reverse order number, the number of outgoing intersections C1 of the busbar-containing component is obtained.
  4. 根据权利要求1所述的电网系统图自动化布局克服交叉的方法,其中,所述“获取元件之间的连线交叉总数S2”具体为:The method for overcoming the intersection of the grid system map automation layout according to claim 1, wherein the "acquiring the total number of connection intersections S2 between components" is specifically:
    获取两组元件,其中一组为有连线关系的第一元件P1和第二元件P2,另一组为有连线关系的第三元件Q1和第四元件Q2;Obtaining two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship;
    根据所述第一元件P1、第二元件P2、第三元件Q1和第四元件Q2的第一坐标,得到第一向量Q1P2、第二向量Q1P1、第三向量P1Q1、第四向量P1Q2、第五向量Q2P1、第六向量Q2P2、第七向量P2Q2、第八向量P2Q1;According to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2, a first vector Q1P2, a second vector Q1P1, a third vector P1Q1, a fourth vector P1Q2, and a fifth are obtained. Vector Q2P1, sixth vector Q2P2, seventh vector P2Q2, eighth vector P2Q1;
    根据公式ε1=Q1P2×Q1P1、ε2=P1Q1×P1Q2、ε3=Q2P1×Q2P2、ε4=P2Q2×P2Q1计算第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4;Calculating the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross according to the formula ε1=Q1P2×Q1P1, ε2=P1Q1×P1Q2, ε3=Q2P1×Q2P2, ε4=P2Q2×P2Q1 Multiply the result ε4;
    判断所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4是否均为0;Determining whether the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0;
    若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均为0,则根据公式κ1=Q1P2·Q1P1、κ2=P1Q1·P1Q2、κ3=Q2P1·Q2P2、κ4=P2Q2·P2Q1计算第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4;If the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0, then according to the formula κ1=Q1P2·Q1P1, κ2=P1Q1·P1Q2, κ3 =Q2P1·Q2P2, κ4=P2Q2·P2Q1 calculates the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4;
    若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4均大于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;If the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4 are both greater than 0, it is determined that the two sets of components do not intersect, and the two groups are determined The number of connection crossings of the component C2=0;
    若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4不均大于0,则判定所述两组元件相交,并令所述两组元件的 连线交叉数C2=1;If the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4 are not more than 0, it is determined that the two sets of elements intersect, and the two groups are Component The number of connection crossings C2=1;
    若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均大于等于0或均小于等于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;If the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both greater than or equal to 0 or less than or equal to 0, it is determined that the two sets of components intersect, and Having the number of intersections of the two sets of components C2=1;
    若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4不均大于等于0或不均小于等于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;If the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are not equal to or greater than 0 or the unevenness is less than or equal to 0, it is determined that the two sets of components are not Intersect, and make the number of intersections of the two sets of components C2=0;
    根据公式
    Figure PCTCN2016107194-appb-100004
    计算连线交叉总数S2,其中t为任意两组有连接关系的元件的取法数量且所述两组元件中不存在共同的元件。
    According to the formula
    Figure PCTCN2016107194-appb-100004
    The total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
  5. 一种电网系统图自动化布局克服交叉的系统,包括An automated layout of a grid system diagram to overcome crossover systems, including
    划分模块,配置为对布局空间进行网格化划分;Dividing a module, configured to mesh the layout space;
    第一获取模块,配置为获取网格化划分后的布局空间内的各个元件的第一坐标(x,y);a first acquiring module configured to obtain a first coordinate (x, y) of each component in the gridded partitioned layout space;
    第一计算模块,配置为根据所述第一坐标(x,y),计算所述各个元件之间的曼哈顿距离L;a first calculating module, configured to calculate a Manhattan distance L between the respective elements according to the first coordinate (x, y);
    第二获取模块,配置为分别获取各个含母线元件的出线交叉数C1;The second obtaining module is configured to respectively acquire the number of outgoing intersections C1 of each busbar component;
    第三获取模块,配置为获取所述各个元件之间的连线交叉总数S2;a third obtaining module, configured to obtain a total number of connection intersections S2 between the respective components;
    构造模块,配置为根据所述曼哈顿距离L、出线交叉数S1、连线交叉总数S2和预设的第一权重ω1、第二权重ω2、第三权重ω3,构造优化模型
    Figure PCTCN2016107194-appb-100005
    其中m为含母线元件的个数;
    Constructing a module configured to construct an optimization model according to the Manhattan distance L, the number of outgoing intersections S1, the total number of connected intersections S2, and the preset first weight ω1, the second weight ω2, and the third weight ω3
    Figure PCTCN2016107194-appb-100005
    Where m is the number of busbar components;
    优化模块,配置为根据所述优化模型,对电网系统图中的元件进行布局调整。The optimization module is configured to perform layout adjustment on components in the grid system map according to the optimization model.
  6. 根据权利要求5所述的电网系统图自动化布局克服交叉的系统,其 中,所述第一计算模块还配置为根据公式
    Figure PCTCN2016107194-appb-100006
    计算所述各个元件之间的曼哈顿距离L,其中δ(i,j)为delta函数,当元件i与元件j之间有连线时,δ(i,j)=1,反之δ(i,j)=0。
    The system of claim 5, wherein the first computing module is further configured to be based on a formula
    Figure PCTCN2016107194-appb-100006
    Calculating the Manhattan distance L between the various elements, where δ(i,j) is a delta function, when there is a line between element i and element j, δ(i,j)=1, and δ(i, j) = 0.
  7. 根据权利要求5所述的电网系统图自动化布局克服交叉的系统,其中,所述第二获取模块包括The grid system diagram of claim 5, wherein the second acquisition module comprises an automated layout that overcomes the intersection
    建立单元,配置为以所述含母线元件i为原点,垂直向上为0方向,逆时针为正方向,建立极坐标系;Establishing a unit, configured to use the bus bar component i as an origin, a vertical direction of 0 direction, and a counterclockwise direction, to establish a polar coordinate system;
    第一计算单元,配置为根据公式
    Figure PCTCN2016107194-appb-100007
    计算与所述含母线元件i有直接拓扑连接的第k个元件在极坐标系中的角度,其中(xi,yi)和(xi,k,yi,k)为所述含母线元件i与所述元件k的第一坐标;
    First calculation unit configured to be based on a formula
    Figure PCTCN2016107194-appb-100007
    Calculating an angle of the kth element having a direct topological connection with the busbar element i in a polar coordinate system, wherein (x i , y i ) and (x i, k , y i, k ) are the bus bars a first coordinate of the component i and the component k;
    第一得到单元,配置为比较与所述含母线元件i有直接拓扑连接的各个元件的角度,得到逆序数;a first obtaining unit configured to compare angles of respective elements having direct topological connection with the bus bar element i to obtain a reverse order number;
    第二得到单元,配置为根据所述逆序数,得到所述含母线元件的出线交叉数C1。The second obtaining unit is configured to obtain the number of outgoing intersections C1 of the busbar-containing component according to the reverse order number.
  8. 根据权利要求5所述的电网系统图自动化布局克服交叉的系统,其中,所述第三获取模块包括The grid system map automation layout of claim 5, wherein the third acquisition module comprises
    第一获取单元,配置为获取两组元件,其中一组为有连线关系的第一元件P1和第二元件P2,另一组为有连线关系的第三元件Q1和第四元件Q2;The first obtaining unit is configured to acquire two sets of components, one of which is a first component P1 and a second component P2 having a connection relationship, and the other is a third component Q1 and a fourth component Q2 having a connection relationship;
    第三得到单元,配置为根据所述第一元件P1、第二元件P2、第三元件Q1和第四元件Q2的第一坐标,得到第一向量Q1P2、第二向量Q1P1、第三向量P1Q1、第四向量P1Q2、第五向量Q2P1、第六向量Q2P2、第七向量P2Q2、第八向量P2Q1; a third obtaining unit configured to obtain, according to the first coordinates of the first component P1, the second component P2, the third component Q1, and the fourth component Q2, a first vector Q1P2, a second vector Q1P1, and a third vector P1Q1 Fourth vector P1Q2, fifth vector Q2P1, sixth vector Q2P2, seventh vector P2Q2, eighth vector P2Q1;
    第二计算单元,配置为根据公式ε1=Q1P2×Q1P1、ε2=P1Q1×P1Q2、ε3=Q2P1×Q2P2、ε4=P2Q2×P2Q1计算第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4;a second calculating unit configured to calculate a first cross result ε1, a second cross result ε2, a third cross according to a formula ε1=Q1P2×Q1P1, ε2=P1Q1×P1Q2, ε3=Q2P1×Q2P2, ε4=P2Q2×P2Q1 Multiply the result ε3 and the fourth cross result ε4;
    第一判断单元,配置为判断所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4是否均为0;a first determining unit, configured to determine whether the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both 0;
    第三计算单元,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均为0,则根据公式κ1=Q1P2·Q1P1、κ2=P1Q1·P1Q2、κ3=Q2P1·Q2P2、κ4=P2Q2·P2Q1计算第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4;a third calculating unit configured to: if the first cross result ε1, the second cross result ε2, the third cross result ε3, and the fourth cross result ε4 are both 0, according to the formula κ1=Q1P2·Q1P1 Κ2=P1Q1·P1Q2, κ3=Q2P1·Q2P2, κ4=P2Q2·P2Q1 calculate the first point multiplication result κ1, the second point multiplication result κ2, the third point multiplication result κ3, and the fourth point multiplication result κ4;
    第一判定单元,配置为若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4均大于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;The first determining unit is configured to determine that the two sets of components do not intersect if the first multiplication result κ1, the second multiplication result κ2, the third multiplication result κ3, and the fourth multiplication result κ4 are both greater than 0 And let the number of connection crossings of the two sets of components C2=0;
    第二判定单元,配置为若所述第一点乘结果κ1、第二点乘结果κ2、第三点乘结果κ3和第四点乘结果κ4不均大于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;a second determining unit configured to determine that the two sets of components intersect if the first multiplication result κ1, the second multiplication result κ2, the third multiplication result κ3, and the fourth multiplication result κ4 are not greater than 0 And let the number of connection crossings of the two sets of components C2=1;
    第三判定单元,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4均大于等于0或均小于等于0,则判定所述两组元件相交,并令所述两组元件的连线交叉数C2=1;a third determining unit configured to determine that the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are both greater than or equal to 0 or less than or equal to 0 The two sets of components intersect, and the number of intersections of the two sets of components is C2=1;
    第四判定单元,配置为若所述第一叉乘结果ε1、第二叉乘结果ε2、第三叉乘结果ε3和第四叉乘结果ε4不均大于等于0或不均小于等于0,则判定所述两组元件不相交,并令所述两组元件的连线交叉数C2=0;a fourth determining unit configured to: if the first cross-multiplication result ε1, the second cross-multiplication result ε2, the third cross-multiplication result ε3, and the fourth cross-multiplication result ε4 are not equal to or greater than 0, or the unevenness is less than or equal to 0, Determining that the two sets of components do not intersect, and causing the number of crossovers of the two sets of components to be C2=0;
    第四计算单元,配置为根据公式
    Figure PCTCN2016107194-appb-100008
    计算连线交叉总数S2,其中t为任意两组有连接关系的元件的取法数量且所述两组元件中不存在共同的元件。
    Fourth calculation unit, configured to be based on a formula
    Figure PCTCN2016107194-appb-100008
    The total number of connection crossings S2 is calculated, where t is the number of elements of any two sets of connected elements and there are no common elements in the two sets of elements.
  9. 一种存储介质,所述存储介质中存储有计算机可执行指令,该计算 机可执行指令配置为执行权利要求1-4任一项所述的电网系统图自动化布局克服交叉的方法。 A storage medium storing computer executable instructions in the storage medium The machine executable instructions are configured to perform the grid system map automation layout of any of claims 1-4 to overcome the intersection.
PCT/CN2016/107194 2016-03-15 2016-11-25 Automated layout method and system for power grid system graph to overcome crossing, and storage medium WO2017157048A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610146110.8A CN105787811A (en) 2016-03-15 2016-03-15 Method and system for automatic layout of power grid system graph to overcome crossing defect
CN201610146110.8 2016-03-15

Publications (1)

Publication Number Publication Date
WO2017157048A1 true WO2017157048A1 (en) 2017-09-21

Family

ID=56393617

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/107194 WO2017157048A1 (en) 2016-03-15 2016-11-25 Automated layout method and system for power grid system graph to overcome crossing, and storage medium

Country Status (2)

Country Link
CN (1) CN105787811A (en)
WO (1) WO2017157048A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933634A (en) * 2019-01-28 2019-06-25 广东电网有限责任公司 A kind of electric system drawing drawing method based on power supply radiation scope
CN110008265A (en) * 2019-03-12 2019-07-12 平安普惠企业管理有限公司 A kind of method, apparatus, server and the computer storage medium of configuration work stream
CN111783264A (en) * 2020-06-22 2020-10-16 杭州阳斯信息技术有限公司 Efficient layout method for power distribution network planning
CN112398224A (en) * 2020-11-12 2021-02-23 山东鲁能软件技术有限公司 Overall layout method and system for ring network model in distribution ring network diagram
CN112464420A (en) * 2020-11-19 2021-03-09 北京中恒博瑞数字电力科技有限公司 Method and device for automatically generating in-station diagram according to typical configuration
CN112487626A (en) * 2020-11-23 2021-03-12 合肥阳光新能源科技有限公司 Photovoltaic power station wiring method and device
CN113761693A (en) * 2020-11-27 2021-12-07 浙江华云信息科技有限公司 Automatic graph adjusting method based on topology and grid
CN115410935A (en) * 2022-08-30 2022-11-29 江苏泰治科技股份有限公司 Wiring method and system for avoiding cross of bonding wires during packaging of IC chip
CN116993862A (en) * 2023-04-06 2023-11-03 国网四川省电力公司成都供电公司 Substation room logic diagram mapping system based on multi-source data
CN117313178A (en) * 2023-09-21 2023-12-29 上海云箔科技有限公司 Three-dimensional automatic layout system for electric design

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787811A (en) * 2016-03-15 2016-07-20 国家电网公司 Method and system for automatic layout of power grid system graph to overcome crossing defect
CN108988315B (en) * 2018-06-15 2021-09-14 国电南瑞科技股份有限公司 Automatic mapping method based on unit-based power grid model

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706834A (en) * 2009-11-26 2010-05-12 杭州电子科技大学 Automatic layout method of power dispatching large-screen power transmission grid single line diagram
CN102902847A (en) * 2012-09-17 2013-01-30 华北电力大学 Transmission grid single line diagram automatic design method based on combination primitives
US20140067151A1 (en) * 2012-08-29 2014-03-06 Stem, Inc. Method and apparatus for automatically reconfiguring multi-phased networked energy storage devices at a site
CN105138764A (en) * 2015-08-20 2015-12-09 国网山东省电力公司电力科学研究院 Automatic power grid thematic map model generating method based on multi-objective optimization
CN105787811A (en) * 2016-03-15 2016-07-20 国家电网公司 Method and system for automatic layout of power grid system graph to overcome crossing defect

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706834A (en) * 2009-11-26 2010-05-12 杭州电子科技大学 Automatic layout method of power dispatching large-screen power transmission grid single line diagram
US20140067151A1 (en) * 2012-08-29 2014-03-06 Stem, Inc. Method and apparatus for automatically reconfiguring multi-phased networked energy storage devices at a site
CN102902847A (en) * 2012-09-17 2013-01-30 华北电力大学 Transmission grid single line diagram automatic design method based on combination primitives
CN105138764A (en) * 2015-08-20 2015-12-09 国网山东省电力公司电力科学研究院 Automatic power grid thematic map model generating method based on multi-objective optimization
CN105787811A (en) * 2016-03-15 2016-07-20 国家电网公司 Method and system for automatic layout of power grid system graph to overcome crossing defect

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933634B (en) * 2019-01-28 2023-05-26 广东电网有限责任公司 Power system graph drawing method based on power radiation range
CN109933634A (en) * 2019-01-28 2019-06-25 广东电网有限责任公司 A kind of electric system drawing drawing method based on power supply radiation scope
CN110008265A (en) * 2019-03-12 2019-07-12 平安普惠企业管理有限公司 A kind of method, apparatus, server and the computer storage medium of configuration work stream
CN110008265B (en) * 2019-03-12 2023-09-19 湖南衍君信息系统有限公司 Method, device, server and computer storage medium for configuring workflow
CN111783264A (en) * 2020-06-22 2020-10-16 杭州阳斯信息技术有限公司 Efficient layout method for power distribution network planning
CN111783264B (en) * 2020-06-22 2024-04-30 杭州阳斯信息技术有限公司 Efficient layout method for power distribution network planning
CN112398224A (en) * 2020-11-12 2021-02-23 山东鲁能软件技术有限公司 Overall layout method and system for ring network model in distribution ring network diagram
CN112464420A (en) * 2020-11-19 2021-03-09 北京中恒博瑞数字电力科技有限公司 Method and device for automatically generating in-station diagram according to typical configuration
CN112464420B (en) * 2020-11-19 2023-12-01 北京中恒博瑞数字电力科技有限公司 Method and device for automatically generating intra-station diagram according to typical configuration
CN112487626B (en) * 2020-11-23 2024-02-27 阳光新能源开发股份有限公司 Photovoltaic power station wiring method and device
CN112487626A (en) * 2020-11-23 2021-03-12 合肥阳光新能源科技有限公司 Photovoltaic power station wiring method and device
CN113761693A (en) * 2020-11-27 2021-12-07 浙江华云信息科技有限公司 Automatic graph adjusting method based on topology and grid
CN115410935A (en) * 2022-08-30 2022-11-29 江苏泰治科技股份有限公司 Wiring method and system for avoiding cross of bonding wires during packaging of IC chip
CN115410935B (en) * 2022-08-30 2023-09-26 江苏泰治科技股份有限公司 Wiring method and system for preventing bonding wires from crossing during packaging of IC chip
CN116993862A (en) * 2023-04-06 2023-11-03 国网四川省电力公司成都供电公司 Substation room logic diagram mapping system based on multi-source data
CN117313178A (en) * 2023-09-21 2023-12-29 上海云箔科技有限公司 Three-dimensional automatic layout system for electric design
CN117313178B (en) * 2023-09-21 2024-03-26 上海云箔科技有限公司 Three-dimensional automatic layout system for electric design

Also Published As

Publication number Publication date
CN105787811A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2017157048A1 (en) Automated layout method and system for power grid system graph to overcome crossing, and storage medium
AlHajri et al. Exploiting the radial distribution structure in developing a fast and flexible radial power flow for unbalanced three-phase networks
CN104538968B (en) Automatic voltage control system voltage power-less sensitivity determines method and device
CN104077438B (en) Power network massive topologies structure construction method and system
CN109066687A (en) A kind of electric power system tide calculation method, system and electronic equipment
CN103632046A (en) Power grid load flow calculation method
CN104616328B (en) Drawing method for water supply pressure profile
CN105119279A (en) Distributed power supply planning method and system thereof
CN104933528A (en) Method for quickly forming jacobian matrix in electric system load flow calculation based on sparse matrix technology
CN103916262B (en) A kind of network topology layout method and system based on three dimensions
CN105469316A (en) A method and system for calculating theoretical line loss between any two nodes of a power distribution network
CN105977958A (en) Bilateral trade transmission loss allocation method based on network splitting method
CN105045967A (en) Group degree based sorting method and model evolution method for important nodes on complex network
CN104142810A (en) Parallel method for forming node admittance matrix
CN109361556A (en) A kind of key node cognitive method based on node entropy and structural hole
CN104268337B (en) Emulate the path generating method and system of support platform image join-line
CN114841413A (en) Cable path determining method and device and electronic equipment
CN114254467A (en) Power grid ring network diagram generation method
CN105045767B (en) A kind of method of immediate access and reading power system sparse matrix data
CN109412149B (en) Power grid subgraph construction method based on regional division, topology analysis method and device
CN107370149A (en) Determine the method and system of power system load reduction
CN109492297B (en) Cable engineering quantity statistical method, device and system for power system
CN103336810A (en) Power distribution network topology analysis method based on multi-core computer
Cvijić et al. Optimal clustering for efficient computations of contingency effects in large regional power systems
CN102593825B (en) Method for acquiring power flow of annular power distribution network based on virtual constant current load

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16894207

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16894207

Country of ref document: EP

Kind code of ref document: A1