Method and device for generating contact diagram of transformer substation

By distinguishing the type of substation and calculating missing latitude and longitude coordinates using logical association relationships, and determining the connection sequence based on physical and business factors, the problem of missing latitude and longitude data in the generation of substation contact diagram is solved, and the accuracy and readability of the graph are improved.

CN119478112APending Publication Date: 2025-02-18STATE GRID HEBEI ELECTRIC POWER CO LTD XIONGAN NEW DISTRICT POWER SUPPLY CO +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411300176.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The prior art is difficult to deal with the problem of missing latitude and longitude data in the generation of substation contact diagrams, resulting in the missing graph elements and the random drawing order of connection relationships, which affects the accuracy and readability of contact diagrams.

Method used

By obtaining the latitude and longitude coordinates of the substation, distinguishing between the first type and the second type of substation, using the preset logical correlation relationship to calculate the latitude and longitude coordinates of the second type of substation, and determining the connection relationship based on physical distance, adjacency relationship, load conditions and contact rate change. Draw the order and generate an accurate substation contact diagram.

Benefits of technology

It improves the accuracy and readability of the substation contact diagram, which can reduce line redundancy in complex connection relationships, and ensures the overall layout of the diagram is simple.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119478112A_ABST
    Figure CN119478112A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of electric power, and provides a method and device for generating a transformer substation contact diagram, and the method comprises the steps: obtaining the latitude and longitude coordinates of each transformer substation, determining the transformer substation with the obtained latitude and longitude coordinates as a first type of transformer substation, and determining the transformer substation without the obtained latitude and longitude coordinates as a second type of transformer substation; calculating latitude and longitude coordinates of each second type of transformer substation according to a preset logic association relationship among the transformer substations; determining a connection relation drawing sequence among the substations according to preset factors influencing the connection relation drawing sequence of the substations; and drawing and generating a transformer substation contact diagram according to a preset drawing rule on the basis of the longitude and latitude coordinates of each transformer substation and a connection relation drawing sequence among the transformer substations. The transformer substation contact diagram can be accurately drawn, and auxiliary analysis and decision are provided for power grid dispatching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electric power technology, and in particular relates to a method and a device for generating a substation contact diagram. Background Art

[0002] In recent years, with the development of the power industry, the scale of the power grid has continued to expand, the number of connected users has continued to increase, and the large-scale access to new energy sources has made the distribution network more complex. In the current distribution network environment, the complexity of decision-making when a power outage occurs is also increasing. When the factors considered in the decision-making continue to increase, the decision-making cycle will be extended, which will lead to a longer power outage recovery time. Long-term power outages will affect the normal life of users and cause economic losses. In order to minimize the adverse effects caused by power outages in the distribution network, it is particularly important to implement a fast and reliable power restoration plan in a timely manner after a fault occurs.

[0003] In related technologies, when a substation is completely shut down, the dispatcher needs to analyze the connection relationship between the outage line and other non-outage lines to come up with a suitable power transfer plan, and restore the outage line while ensuring the safe operation of the power grid. Therefore, drawing an accurate substation communication map can play an important supporting role in power outage fault recovery.

[0004] Patent application number 201410631361.6 proposes an automatic drawing method for substation contact diagram in power grid GIS. This method uses geographic coordinate information to convert into drawing coordinates, performs topological search on each substation to obtain connection relationship, and arranges and turns the substation connection lines according to the saved contact lines between substations to generate a substation contact diagram. Since this method only considers spatial relationship, when the longitude and latitude data of the substation are partially missing, it will cause the missing of drawing elements, and it will be impossible to draw an accurate substation contact diagram. In addition, the order of drawing the association relationship of each substation in this method is random. When the number of substations is large and the connection relationship is complex, it will affect the drawing effect, cause unnecessary redundancy of the line, and affect the overall layout and readability of the contact diagram. Therefore, there is an urgent need for a more accurate automatic drawing method for substation contact diagram, so as to facilitate dispatchers to view the relative position distribution and mutual contact relationship of substations, improve the dispatch overview ability, and meet the dispatcher's practical needs for drawings. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and device for generating a substation connection diagram, so as to accurately draw a substation connection diagram.

[0006] A first aspect of an embodiment of the present invention provides a method for generating a substation connection diagram, comprising:

[0007] Obtain the longitude and latitude coordinates of each substation, determine the substation whose longitude and latitude coordinates are obtained as the first type of substation, and determine the substation whose longitude and latitude coordinates are not obtained as the second type of substation;

[0008] Calculate the longitude and latitude coordinates of each second type substation according to the preset logical association relationship between each substation;

[0009] Determine the order of drawing the connection relationship between each substation according to the preset factors affecting the order of drawing the connection relationship of the substation;

[0010] Based on the latitude and longitude coordinates of each substation and the drawing order of the connection relationship between each substation, a substation connection diagram is drawn and generated according to preset drawing rules.

[0011] In combination with the first aspect, in a possible implementation of the first aspect, calculating the longitude and latitude coordinates of each second-type substation according to a preset logical association relationship between each substation includes:

[0012] For any second-type substation, a first-type substation having a logical association relationship with the second-type substation is determined from among the first-type substations by using a preset logical association relationship reference table between the substations;

[0013] The longitude and latitude coordinates of the second type substation are calculated based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation.

[0014] In combination with the first aspect, in a possible implementation of the first aspect, calculating the longitude and latitude coordinates of the second type substation based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation includes:

[0015] according to Calculating the longitude coordinates of the second type substation;

[0016] according to Calculating the latitude coordinate of the second type substation;

[0017] Among them, x li ,y li are the longitude and latitude coordinates of the second type substation, respectively, max 、x min are respectively the maximum value and the minimum value of the longitude coordinates of each first type substation that has a logical association relationship with the second type substation; max ,y min The maximum and minimum latitude coordinates of each first-type substation that has a logical association with the second-type substation are counted;Ui It is the number of first-type substations that have a logical association relationship with the second-type substation.

[0018] In combination with the first aspect, in a possible implementation manner of the first aspect, after calculating the longitude and latitude coordinates of the second type substation based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation, the method further includes:

[0019] Input the calculated longitude and latitude coordinates into the pre-trained coordinate correction model for correction;

[0020] Among them, the coordinate correction model is obtained by training the parameters of the random forest algorithm according to the training data, and the training data includes the calculated longitude and latitude coordinates and the real longitude and latitude coordinates of multiple substations.

[0021] In conjunction with the first aspect, in a possible implementation of the first aspect, the factors affecting the order of drawing the substation connection relationship include at least one of the following: physical distance, adjacency relationship, load condition, and contact change rate;

[0022] According to the preset factors affecting the order of drawing substation connection relations, the order of drawing connection relations between substations is determined, including:

[0023] Calculate the physical distance between each substation and arrange them by size;

[0024] According to the adjacency of each substation, the adjacency bonus value of each substation is calculated and arranged in order of size;

[0025] Get the average load of each substation and arrange them by size;

[0026] Obtain the contact change rate of each substation and arrange them by size;

[0027] Based on the ranking of the physical distance, adjacency bonus value, average load and contact change rate of each substation, the order of drawing the connection relationship between each substation is determined.

[0028] In combination with the first aspect, in a possible implementation of the first aspect, calculating the adjacency bonus value of each substation according to the adjacency status of each substation includes:

[0029] according to Calculate the adjacency bonus value of the substation;

[0030] Where N is the adjacency bonus value, n1 represents the number of primary adjacent points of the substation, n2 represents the number of secondary adjacent points of the substation, and q i Represents the number of first-order neighboring points of the i-th second-order neighboring point.

[0031] In combination with the first aspect, in a possible implementation of the first aspect, determining the order of drawing the connection relationship between each substation based on the ranking of the physical distance, adjacency bonus value, average load and contact change rate of each substation includes:

[0032] For any substation, the scores of the substation's physical distance, adjacency bonus value, average load, and contact change rate are calculated based on the rankings of the substation's physical distance, adjacency bonus value, average load, and contact change rate;

[0033] According to the preset physical distance, adjacency bonus value, average load and contact change rate, the scores are weighted and fused to obtain the drawing order of the substation.

[0034] In combination with the first aspect, in a possible implementation of the first aspect, based on the latitude and longitude coordinates of each substation and the order of drawing the connection relationship between each substation, according to a preset drawing rule, drawing and generating a substation connection diagram includes:

[0035] Draw a rectangular frame of each substation on the canvas according to the latitude and longitude coordinates of each substation;

[0036] According to the drawing order and relative position of the connection relationship between each substation, draw the connection lines between each rectangular frame according to the preset drawing rules;

[0037] Attach power parameter data to each connection line to obtain the substation connection diagram.

[0038] In combination with the first aspect, in a possible implementation of the first aspect, before drawing a rectangular frame of each substation in the canvas, the method further includes:

[0039] According to the longitude and latitude coordinates of each substation, adjust the longitude and latitude coordinate axes in the canvas;

[0040] Adjustments include:

[0041] Delete the empty coordinate intervals on the longitude coordinate axis and the latitude coordinate axis; wherein the empty coordinate interval is a coordinate interval of the longitude and latitude coordinates where no substation exists.

[0042] A second aspect of an embodiment of the present invention provides a device for generating a substation contact diagram, including:

[0043] An acquisition module is used to acquire the longitude and latitude coordinates of each substation, and determine the substation whose longitude and latitude coordinates are acquired as a first type of substation, and the substation whose longitude and latitude coordinates are not acquired as a second type of substation;

[0044] A calculation module, used to calculate the longitude and latitude coordinates of each second type substation according to the preset logical association relationship between each substation;

[0045] A determination module, used to determine the order of drawing the connection relationship between each substation according to the preset factors affecting the order of drawing the substation connection relationship;

[0046] The drawing module is used to draw and generate a substation connection diagram based on the latitude and longitude coordinates of each substation and the connection relationship drawing order between each substation according to the preset drawing rules.

[0047] In conjunction with the second aspect, in a possible implementation manner of the second aspect, the computing module is used to:

[0048] For any second-type substation, a first-type substation having a logical association relationship with the second-type substation is determined from among the first-type substations by using a preset logical association relationship reference table between the substations;

[0049] The longitude and latitude coordinates of the second type substation are calculated based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation.

[0050] In conjunction with the second aspect, in a possible implementation manner of the second aspect, the computing module is used to:

[0051] according to Calculating the longitude coordinates of the second type substation;

[0052] according to Calculating the latitude coordinate of the second type substation;

[0053] Among them, x li ,y li are the longitude and latitude coordinates of the second type substation, respectively, max 、x min are respectively the maximum value and the minimum value of the longitude coordinates of each first type substation that has a logical association relationship with the second type substation; max ,y min The maximum and minimum latitude coordinates of each first-type substation that has a logical association with the second-type substation are counted; Ui It is the number of first-type substations that have a logical association relationship with the second-type substation.

[0054] In combination with the second aspect, in a possible implementation manner of the second aspect, after calculating the longitude and latitude coordinates of the second type substation based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation, the calculation module is further used to:

[0055] Input the calculated longitude and latitude coordinates into the pre-trained coordinate correction model for correction;

[0056] Among them, the coordinate correction model is obtained by training the parameters of the random forest algorithm according to the training data, and the training data includes the calculated longitude and latitude coordinates and the real longitude and latitude coordinates of multiple substations.

[0057] In conjunction with the second aspect, in a possible implementation of the second aspect, the factors affecting the order of drawing the substation connection relationship include at least one of the following: physical distance, adjacency relationship, load condition, and contact change rate;

[0058] Determine the module used to:

[0059] Calculate the physical distance between each substation and arrange them by size;

[0060] According to the adjacency of each substation, the adjacency bonus value of each substation is calculated and arranged in order of size;

[0061] Get the average load of each substation and arrange them by size;

[0062] Obtain the contact change rate of each substation and arrange them by size;

[0063] Based on the ranking of the physical distance, adjacency bonus value, average load and contact change rate of each substation, the order of drawing the connection relationship between each substation is determined.

[0064] In conjunction with the second aspect, in a possible implementation manner of the second aspect, the determining module is used to:

[0065] according to Calculate the adjacency bonus value of the substation;

[0066] Where N is the adjacency bonus value, n1 represents the number of primary adjacent points of the substation, n2 represents the number of secondary adjacent points of the substation, and q i Represents the number of first-order neighboring points of the i-th second-order neighboring point.

[0067] In conjunction with the second aspect, in a possible implementation manner of the second aspect, the determining module is used to:

[0068] For any substation, the scores of the substation's physical distance, adjacency bonus value, average load, and contact change rate are calculated based on the rankings of the substation's physical distance, adjacency bonus value, average load, and contact change rate;

[0069] According to the preset physical distance, adjacency bonus value, average load and contact change rate, the scores are weighted and fused to obtain the drawing order of the substation.

[0070] In conjunction with the second aspect, in a possible implementation manner of the second aspect, the drawing module is used to:

[0071] Draw a rectangular frame of each substation on the canvas according to the latitude and longitude coordinates of each substation;

[0072] According to the drawing order and relative position of the connection relationship between each substation, draw the connection lines between each rectangular frame according to the preset drawing rules;

[0073] Attach power parameter data to each connection line to obtain the substation connection diagram.

[0074] In conjunction with the second aspect, in a possible implementation of the second aspect, before drawing a rectangular frame of each substation in the canvas, the drawing module is further used to:

[0075] According to the longitude and latitude coordinates of each substation, adjust the longitude and latitude coordinate axes in the canvas;

[0076] Adjustments include:

[0077] Delete the empty coordinate intervals on the longitude coordinate axis and the latitude coordinate axis; wherein the empty coordinate interval is a coordinate interval of the longitude and latitude coordinates where no substation exists.

[0078] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0079] The embodiment of the present invention obtains the longitude and latitude coordinates of each substation. For the substations whose longitude and latitude coordinates are obtained, the obtained longitude and latitude coordinates are used in consideration of the spatial characteristics; for the substations whose longitude and latitude coordinates cannot be obtained, the inherent logical association of each substation is considered, and the longitude and latitude coordinates of each second type substation are calculated, thereby improving the accuracy of the substation automatic generation of the contact diagram. The generated contact diagram can not only reflect the connection relationship of the substation, but also reflect the actual business situation. Further, the present invention determines the drawing order of the connection relationship between each substation according to the preset factors affecting the drawing order of the substation connection relationship, and draws and generates the substation contact diagram according to the preset drawing rules. When the number of substations is large and the connection relationship is complex, the line redundancy can be reduced, and the overall layout of the contact diagram is concise and easy to read. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0081] Figure 1 It is a schematic diagram of a flow chart of a method for generating a substation contact diagram provided by an embodiment of the present invention;

[0082] Figure 2 is a schematic diagram of a substation connection diagram provided by an embodiment of the present invention;

[0083] Figure 3 It is a structural schematic diagram of a device for generating a substation connection diagram provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0084] The present application is described more clearly below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the effects of the present application, but are not intended to limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present application. These all fall within the scope of protection of the present application.

[0085] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0086] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0087] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0088] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0089] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.

[0090] In the daily dispatching business of the power grid, the contact diagram can be used to analyze power supply / outage and contact relationship, providing auxiliary analysis and decision-making for power grid dispatching. Therefore, the substation contact diagram needs to accurately and clearly display the location relationship and contact relationship between substations. It is particularly important that the contact diagram is automatically generated, accurate, dynamically updated, and has a beautiful layout.

[0091] The existing method only considers the spatial relationship of substations. When the longitude and latitude data of the substation are partially missing, the map elements will be missing; the existing method only considers the geographical location information, but does not consider the direct logical internal relationship of the substation, so that the generated connection map can only reflect the connection relationship of the substation, but not the actual business situation; in addition, the order of drawing the connection relationship between the starting substation and other substations is random. When the number of substations is large and the connection relationship is complex, it will affect the mapping effect, cause unnecessary redundancy of the lines, and affect the overall layout and the readability of the connection map.

[0092] This application realizes automatic mapping for substations with a voltage level of 220kV or above (including 220kV) in the power grid. Taking into account the spatial characteristics, the geographic location coordinates are used for the substation location containing geographic location information; for substations that do not contain geographic location, the geographic location coordinates are determined by considering historical experience and the inherent logical relationship of the substation. The order of drawing the substation connection relationship is determined by the factors that affect the order of drawing the substation connection relationship, and the connection position is determined according to the connection operation rules.

[0093] The following, combined Figure 1 and Figure 2 , the method of this application is described.

[0094] See also Figure 1 As shown, an embodiment of the present invention provides a method for generating a substation contact diagram, comprising the following steps:

[0095] Step S101, obtaining the longitude and latitude coordinates of each substation, determining the substation whose longitude and latitude coordinates are obtained as a first type of substation, and determining the substation whose longitude and latitude coordinates are not obtained as a second type of substation.

[0096] In this embodiment, the longitude and latitude coordinates of multiple substations in a certain area can be obtained through the power system, map software, etc. This embodiment does not limit the acquisition method.

[0097] For some substations, accurate longitude and latitude coordinates can be obtained, which are defined as first-type substations and saved in array L1. For other substations, accurate longitude or latitude coordinates cannot be obtained, which are defined as second-type substations and saved in array L2.

[0098] Step S102, calculating the longitude and latitude coordinates of each second type substation according to the preset logical association relationship between each substation.

[0099] For substations without geographic location information, this embodiment considers the layout from two aspects: historical experience and logical association. That is, through historical experience, the logical association between each second type of substation is determined, and the longitude and latitude coordinates of each second type of substation are calculated.

[0100] As a possible implementation method, the steps include:

[0101] For any second-type substation, a first-type substation having a logical association relationship with the second-type substation is determined from among the first-type substations by using a preset logical association relationship reference table between the substations;

[0102] The longitude and latitude coordinates of the second type substation are calculated based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation.

[0103] This embodiment pre-establishes a logical association reference table between each substation by analyzing historical data, and the table includes which substation is logically associated with which substation. i , find the corresponding S through the logical association reference table i The substations that are associated and belong to array L1 are denoted as U i Then, calculate S according to the following formula i The latitude and longitude coordinates (x li ,y li ):

[0104]

[0105] Among them, xli ,y li are the longitude and latitude coordinates of the second type substation, respectively, max 、x min are respectively the maximum value and the minimum value of the longitude coordinates of each first type substation that has a logical association relationship with the second type substation; max ,y min The maximum and minimum latitude coordinates of each first-type substation that has a logical association with the second-type substation are counted; Ui It is the number of first-type substations that have a logical association relationship with the second-type substation.

[0106] Step S103: determining the order of drawing the connection relationships between the substations according to the preset factors affecting the order of drawing the connection relationships of the substations.

[0107] In this embodiment, by considering the factors that affect the order of drawing the substation connection relationship, the order of drawing the connection relationship between each substation is determined to achieve orderly connection of each substation. When the number of substations is large and the connection relationship is complex, unnecessary redundancy of lines is reduced, thereby improving the aesthetics of the overall layout and the readability of the communication diagram.

[0108] Here, the factors affecting the order of drawing the substation connection relationship may be pre-screened through correlation analysis. Exemplarily, the factors affecting the order of drawing the substation connection relationship may include but are not limited to: physical distance, adjacency, load, connection change rate, etc.

[0109] As a possible implementation method, the order of drawing the connection relationship between each substation is determined according to the preset factors affecting the order of drawing the substation connection relationship, including:

[0110] (1) Calculate the physical distance between each substation and arrange them by size.

[0111] In this embodiment, the physical distances between two substations are calculated based on the line topology relationship by using the Pythagorean theorem, and the physical distances are sorted and put into the array container R1.

[0112] (2) According to the adjacency of each substation, the adjacency bonus value of each substation is calculated and arranged in order of size.

[0113] The adjacency relationship is the connection relationship between a substation and other substations. If substation A is connected to substation B, and substation B is connected to substation C, then B is the primary adjacent point of A and C is the secondary adjacent point of A. Calculate the adjacency bonus value of the substation; where N is the adjacency bonus value, n1 represents the number of primary adjacent points of the substation, n2 represents the number of secondary adjacent points of the substation, and q i Represents the number of first-order neighboring points of the i-th second-order neighboring point.

[0114] (3) Obtain the average load of each substation and arrange them by size.

[0115] This embodiment obtains historical load data of the substation, calculates the historical average load, sorts the data and puts it into the array container R3.

[0116] (4) Obtain the communication change rate of each substation and arrange them by size.

[0117] Here, the contact change rate (based on the historical operation data section, the historical association number of substations under multiple section data is calculated to obtain the contact change rate) is the change rate of the contact rate. This embodiment is sorted according to the historical average association number and placed in the array container R4.

[0118] (5) Based on the ranking of the physical distance, adjacency bonus value, average load and contact change rate of each substation, the order of drawing the connection relationship between each substation is determined.

[0119] The above-mentioned sorting may be from large to small or from small to large, which is not limited in this embodiment.

[0120] Since factors such as physical distance, adjacency bonus value, average load and contact change rate affect the order of drawing substation connection relationships, the order of drawing substation connection relationships can be determined based on the ranking of these factors.

[0121] As a possible implementation method, based on the ranking of the physical distance, adjacency bonus value, average load and contact change rate of each substation, the order of drawing the connection relationship between each substation is determined. You can apply for:

[0122] For any substation, the scores of the substation's physical distance, adjacency bonus value, average load, and contact change rate are calculated based on the rankings of the substation's physical distance, adjacency bonus value, average load, and contact change rate;

[0123] According to the preset physical distance, adjacency bonus value, average load and contact change rate, the scores are weighted and fused to obtain the drawing order of the substation.

[0124] For example, the score of each substation can be calculated according to the following formula:

[0125]

[0126] Among them, α, β, γ, and δ represent the proportion of R1, R2, R3, and R4 in the final score respectively (the parameters are determined by expert decision-making method, that is, configured according to historical experience). They represent the order of the substations in the R1, R2, R3, and R4 containers, respectively.

[0127] In a possible implementation, after calculating the longitude and latitude coordinates of the second type substation based on the longitude and latitude coordinates of each first type substation having a logical association relationship with the second type substation, the method further includes:

[0128] Input the calculated longitude and latitude coordinates into the pre-trained coordinate correction model for correction;

[0129] Among them, the coordinate correction model is obtained by training the parameters of the random forest algorithm according to the training data, and the training data includes the calculated longitude and latitude coordinates and the real longitude and latitude coordinates of multiple substations.

[0130] Using the convolutional neural network training model can achieve the effect of local optimization, and the corrected longitude and latitude coordinates are closer to the actual coordinates of the substation.

[0131] Step S104, based on the longitude and latitude coordinates of each substation and the order of drawing the connection relationship between each substation, a substation connection diagram is drawn and generated according to a preset drawing rule.

[0132] After obtaining the longitude and latitude coordinates of each substation and the order of drawing the connection relationship between each substation, you can draw the substation connection diagram on the canvas. Detailed drawing rules can be designed by yourself, such as drawing from left to right, or from top to bottom, or drawing the shortest line first, etc.

[0133] The embodiment of the present invention obtains the longitude and latitude coordinates of each substation. For the substations whose longitude and latitude coordinates are obtained, the obtained longitude and latitude coordinates are used in consideration of the spatial characteristics; for the substations whose longitude and latitude coordinates cannot be obtained, the inherent logical association of each substation is considered, and the longitude and latitude coordinates of each second type substation are calculated, thereby improving the accuracy of the substation automatic generation of the contact diagram. The generated contact diagram can not only reflect the connection relationship of the substation, but also reflect the actual business situation. Further, the present invention determines the drawing order of the connection relationship between each substation according to the preset factors affecting the drawing order of the substation connection relationship, and draws and generates the substation contact diagram according to the preset drawing rules. When the number of substations is large and the connection relationship is complex, the line redundancy can be reduced, and the overall layout of the contact diagram is concise and easy to read.

[0134] The above embodiment mainly introduces how to draw the longitude and latitude coordinates of each substation and the connection relationship between each substation. The following describes how to draw and generate a substation connection diagram on a canvas through a specific embodiment.

[0135] After executing steps S101 to S103 and obtaining the longitude and latitude coordinates of each substation and the order of drawing the connection relationship between each substation:

[0136] First, the longitude and latitude axes in the canvas can be adjusted according to the longitude and latitude coordinates of each substation, including:

[0137] Delete the empty coordinate intervals on the longitude coordinate axis and the latitude coordinate axis; wherein the empty coordinate interval is a coordinate interval of the longitude and latitude coordinates where no substation exists.

[0138] In this embodiment, the coordinate scale spacing on the longitude and latitude axes of the canvas is a preset fixed value. When there is no coordinate of a substation in the interval between two coordinate scales, by deleting this empty coordinate interval, the distance between substations on the canvas can be shortened, ensuring that each substation can be reasonably drawn in one area, avoiding the problem that the generated contact diagram is too long and too wide and contains a large number of blank areas when two substations are far apart, and ensuring the overall beauty and readability of the contact diagram. Distance data can be marked on the connecting line of the substation, and adjusting the coordinate axis does not affect the judgment of the distance.

[0139] Afterwards, a rectangular frame of each substation is drawn on the canvas according to the longitude and latitude coordinates of each substation, and the center of the rectangular frame is the longitude and latitude coordinates of the substation.

[0140] After that, the lines between the substations are drawn in sequence according to the order of drawing the connection relationship between the substations. The above-mentioned order of drawing the connection relationship means which substation's line is drawn first, and which substation's line is drawn next. A substation can be connected to multiple other substations. When drawing the connection of a substation, all its connection lines can be drawn, or only the shortest connection line can be drawn to reduce redundancy. At the same time, when drawing the connection of a substation, the rectangular box has four sides: top, right, bottom, and left. The drawing rule defaults to starting from the right side of the left substation as the starting point and ending at the left side of the right substation. If the Y coordinate of the left substation is larger than the Y coordinate of the right substation, the connection rule becomes starting from the bottom of the left substation and ending at the left side of the substation. Furthermore, when connecting the lines, it is also necessary to determine whether there are other substations "blocking the road" between the two substations. If there are other substations "blocking the road", other side lines are selected. For example, if the "blocking the road" judgment shows that there are other substations blocking the road on the left side of the right substation, and there are no other substations blocking the road below the right substation, the connection rule becomes from the bottom of the left substation as the starting point and the bottom of the right substation as the end point. If the "blocking the road" judgment shows that there are other substations blocking the road on the left side of the right substation, and there are other substations blocking the road below the right substation, the connection rule becomes from the bottom of the left substation as the starting point and the right side of the right substation as the end point.

[0141] Finally, add power parameter data to each connection line to obtain the substation connection diagram. The power parameter data can be the data of switches or knife switches, additional measurement value data, etc. Distinguish the horizontal and vertical lines of all connections, and then compare each horizontal line with all vertical lines. Whenever a horizontal line and a vertical line cross, a small arc is designed at the intersection to bypass the vertical line, indicating that the horizontal line and the vertical line are not in contact. Figure 2 A schematic diagram of a substation connection diagram is given as an example, in which AH represents the substation.

[0142] This application realizes automatic mapping for substations with a voltage level of 220kV or above (including 220kV) in the power grid. Considering the spatial characteristics, relative geographic location coordinates are used for the substation location containing geographic location information; for substations that do not contain geographic location, historical data and the inherent logical relationship of the substation are considered, and a convolutional neural network training model is used to achieve local optimization effects. The selection of the drawing order of substation connection relationships is determined by calculating factors such as adjacency relationships and load conditions. After determining the drawing order of substation connection relationships, the connection position is determined according to the connection operation rules.

[0143] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0144] Figure 3 : is a schematic diagram of the structure of a device 30 for generating a substation contact diagram provided by an embodiment of the present invention, the device comprising:

[0145] An acquisition module 31 is used to acquire the longitude and latitude coordinates of each substation, and determine the substation whose longitude and latitude coordinates are acquired as a first type of substation, and determine the substation whose longitude and latitude coordinates are not acquired as a second type of substation;

[0146] A calculation module 32, used to calculate the longitude and latitude coordinates of each second type substation according to the preset logical association relationship between each substation;

[0147] A determination module 33, used to determine the order of drawing the connection relationship between each substation according to the preset factors affecting the order of drawing the substation connection relationship;

[0148] The drawing module 34 is used to draw and generate a substation connection diagram based on the longitude and latitude coordinates of each substation and the connection relationship drawing order between each substation according to a preset drawing rule.

[0149] As a possible implementation manner, the calculation module 32 is used to:

[0150] For any second-type substation, a first-type substation having a logical association relationship with the second-type substation is determined from among the first-type substations by using a preset logical association relationship reference table between the substations;

[0151] The longitude and latitude coordinates of the second type substation are calculated based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation.

[0152] As a possible implementation manner, the calculation module 32 is used to:

[0153] according to Calculating the longitude coordinates of the second type substation;

[0154] according to Calculating the latitude coordinate of the second type substation;

[0155] Among them, x lj ,y lj are the longitude and latitude coordinates of the second type substation, respectively, max 、x min are respectively the maximum value and the minimum value of the longitude coordinates of each first type substation that has a logical association relationship with the second type substation; max ,y minThe maximum and minimum latitude coordinates of each first-type substation that has a logical association with the second-type substation are counted; Ui It is the number of first-type substations that have a logical association relationship with the second-type substation.

[0156] As a possible implementation, after calculating the longitude and latitude coordinates of the second type substation based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation, the calculation module 32 is further used to:

[0157] Input the calculated longitude and latitude coordinates into the pre-trained coordinate correction model for correction;

[0158] Among them, the coordinate correction model is obtained by training the parameters of the random forest algorithm according to the training data, and the training data includes the calculated longitude and latitude coordinates and the real longitude and latitude coordinates of multiple substations.

[0159] As a possible implementation manner, the factors affecting the order of drawing the substation connection relationship include at least one of the following: physical distance, adjacency situation, load situation, and connection change rate.

[0160] The determination module 33 is used for:

[0161] Calculate the physical distance between each substation and arrange them by size;

[0162] According to the adjacency of each substation, the adjacency bonus value of each substation is calculated and arranged in order of size;

[0163] Get the average load of each substation and arrange them by size;

[0164] Obtain the contact change rate of each substation and arrange them by size;

[0165] Based on the ranking of the physical distance, adjacency bonus value, average load and contact change rate of each substation, the order of drawing the connection relationship between each substation is determined.

[0166] As a possible implementation manner, the determination module 33 is used to:

[0167] according to Calculate the adjacency bonus value of the substation;

[0168] Where N is the adjacency bonus value, n1 represents the number of primary adjacent points of the substation, n2 represents the number of secondary adjacent points of the substation, and q i Represents the number of first-order neighboring points of the i-th second-order neighboring point.

[0169] As a possible implementation manner, the determination module 33 is used to:

[0170] For any substation, the scores of the substation's physical distance, adjacency bonus value, average load, and contact change rate are calculated based on the rankings of the substation's physical distance, adjacency bonus value, average load, and contact change rate;

[0171] According to the preset physical distance, adjacency bonus value, average load and contact change rate, the scores are weighted and fused to obtain the drawing order of the substation.

[0172] As a possible implementation, the drawing module 34 is used to:

[0173] Draw a rectangular frame of each substation on the canvas according to the latitude and longitude coordinates of each substation;

[0174] According to the drawing order and relative position of the connection relationship between each substation, draw the connection lines between each rectangular frame according to the preset drawing rules;

[0175] Attach power parameter data to each connection line to obtain the substation connection diagram.

[0176] As a possible implementation manner, before drawing the rectangular frame of each substation in the canvas, the drawing module 34 is further used to:

[0177] According to the longitude and latitude coordinates of each substation, adjust the longitude and latitude coordinate axes in the canvas;

[0178] Adjustments include:

[0179] Delete the empty coordinate intervals on the longitude coordinate axis and the latitude coordinate axis; wherein the empty coordinate interval is a coordinate interval of the longitude and latitude coordinates where no substation exists.

[0180] The embodiment of the present invention obtains the longitude and latitude coordinates of each substation. For the substations whose longitude and latitude coordinates are obtained, the obtained longitude and latitude coordinates are used in consideration of the spatial characteristics; for the substations whose longitude and latitude coordinates cannot be obtained, the inherent logical association of each substation is considered, and the longitude and latitude coordinates of each second type substation are calculated, thereby improving the accuracy of the substation automatic generation of the contact diagram. The generated contact diagram can not only reflect the connection relationship of the substation, but also reflect the actual business situation. Further, the present invention determines the drawing order of the connection relationship between each substation according to the preset factors affecting the drawing order of the substation connection relationship, and draws and generates the substation contact diagram according to the preset drawing rules. When the number of substations is large and the connection relationship is complex, the line redundancy can be reduced, and the overall layout of the contact diagram is concise and easy to read.

[0181] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0182] Those of ordinary skill in the art will appreciate that the templates, units, and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0183] If the module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned various substation contact diagram generation method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium.

[0184] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for generating a substation contact diagram, characterized in that: include: Obtain the longitude and latitude coordinates of each substation, determine the substation whose longitude and latitude coordinates are obtained as the first type of substation, and determine the substation whose longitude and latitude coordinates are not obtained as the second type of substation; Calculate the longitude and latitude coordinates of each second type substation according to the preset logical association relationship between each substation; Determine the order of drawing the connection relationship between each substation according to the preset factors affecting the order of drawing the connection relationship of the substation; Based on the latitude and longitude coordinates of each substation and the drawing order of the connection relationship between each substation, a substation connection diagram is drawn and generated according to preset drawing rules.

2. The method for generating a substation connection diagram according to claim 1, characterized in that: The calculating the longitude and latitude coordinates of each second type substation according to the preset logical association relationship between each substation includes: For any second-type substation, a first-type substation having a logical association relationship with the second-type substation is determined from among the first-type substations by using a preset logical association relationship reference table between the substations; The longitude and latitude coordinates of the second type substation are calculated based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation.

3. The method for generating a substation connection diagram according to claim 2, characterized in that: The calculating the longitude and latitude coordinates of the second type substation based on the longitude and latitude coordinates of each first type substation having a logical association relationship with the second type substation includes: according to Calculating the longitude coordinates of the second type substation; according to Calculating the latitude coordinate of the second type substation; Among them, x li ,y li are the longitude and latitude coordinates of the second type substation, respectively, max 、x min are respectively the maximum value and the minimum value of the longitude coordinates of each first type substation that has a logical association relationship with the second type substation; max ,y min The maximum and minimum latitude coordinates of each first-type substation that has a logical association with the second-type substation are counted; Ui It is the number of first-type substations that have a logical association relationship with the second-type substation.

4. The method for generating a substation connection diagram according to claim 2, characterized in that: After calculating the longitude and latitude coordinates of the second type substation based on the longitude and latitude coordinates of each first type substation that has a logical association relationship with the second type substation, the method further includes: Input the calculated longitude and latitude coordinates into the pre-trained coordinate correction model for correction; The coordinate correction model is obtained by training the parameters of the random forest algorithm according to the training data, and the training data includes the calculated longitude and latitude coordinates and the real longitude and latitude coordinates of multiple substations.

5. The method for generating a substation connection diagram according to claim 1, characterized in that: The factors affecting the order of drawing the substation connection relationship include at least one of the following: physical distance, adjacency, load, and connection change rate; The step of determining the order of drawing the connection relationships between the substations according to the preset factors affecting the order of drawing the connection relationships of the substations includes: Calculate the physical distance between each substation and arrange them by size; According to the adjacency of each substation, the adjacency bonus value of each substation is calculated and arranged in order of size; Get the average load of each substation and arrange them by size; Obtain the contact change rate of each substation and arrange them by size; The connection relationship drawing order between the substations is determined based on the ranking of the physical distance, the adjacency relationship addition value, the average load and the connection change rate of each substation.

6. The method for generating a substation connection diagram according to claim 5, characterized in that: The step of calculating the adjacency bonus value of each substation according to the adjacency status of each substation includes: according to Calculate the adjacency bonus value of the substation; Where N is the adjacency bonus value, n1 represents the number of primary adjacent points of the substation, n2 represents the number of secondary adjacent points of the substation, and q i Represents the number of first-order neighboring points of the i-th second-order neighboring point.

7. The method for generating a substation connection diagram according to claim 1, characterized in that: The determining the order of drawing the connection relationship between each substation based on the ranking of the physical distance, the adjacency addition value, the average load and the contact change rate of each substation includes: For any substation, according to the rankings of the physical distance, the adjacency bonus value, the average load and the contact change rate of the substation, the score of the physical distance, the adjacency bonus value, the average load and the contact change rate of the substation is calculated; The scores are weighted and fused according to the preset physical distance, the adjacency bonus value, the average load and the weight of the connection change rate to obtain the drawing order of the substation.

8. The method for generating a substation connection diagram according to claim 1, characterized in that: The drawing sequence based on the latitude and longitude coordinates of each substation and the connection relationship between each substation and the preset drawing rules to draw and generate the substation connection diagram includes: Draw a rectangular frame of each substation on the canvas according to the latitude and longitude coordinates of each substation; According to the drawing order and relative position of the connection relationship between each substation, draw the connection lines between each rectangular frame according to the preset drawing rules; Attach power parameter data to each connection line to obtain the substation connection diagram.

9. The method for generating a substation connection diagram according to claim 8, characterized in that: Before drawing the rectangular boxes of each substation in the canvas, it also includes: According to the longitude and latitude coordinates of each substation, the longitude coordinate axis and the latitude coordinate axis in the canvas are adjusted; The adjustments include: Delete the empty coordinate intervals on the longitude coordinate axis and the latitude coordinate axis; wherein the empty coordinate interval is a coordinate interval of longitude and latitude coordinates where no substation exists.

10. A device for generating a substation contact diagram, characterized in that: include: An acquisition module is used to acquire the longitude and latitude coordinates of each substation, and determine the substation whose longitude and latitude coordinates are acquired as a first type of substation, and the substation whose longitude and latitude coordinates are not acquired as a second type of substation; A calculation module, used to calculate the longitude and latitude coordinates of each second type substation according to the preset logical association relationship between each substation; A determination module, used to determine the order of drawing the connection relationship between each substation according to the preset factors affecting the order of drawing the substation connection relationship; The drawing module is used to draw and generate a substation connection diagram based on the latitude and longitude coordinates of each substation and the connection relationship drawing order between each substation according to the preset drawing rules.

Citation Information

Patent Citations

  • Method and device for automatic drawing of substation contact diagram in power grid gis

    CN104392388B