A data processing method and device for power grid model files

By calculating and sorting the node type content, connection relationship similarity and attribute relationship similarity of the power grid model files, and combining the user's design requirements data for recommendation and matching, the difficulty of finding power grid model files in the existing technology is solved, and fast and simple file search is achieved.

CN118364049BActive Publication Date: 2025-04-04GUANGZHOU TONGZHOU INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410448403.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2025-04-04
Estimated Expiration
2044-04-15

AI Technical Summary

Technical Problem

It is difficult for the existing technology to quickly and easily find power grid model files that meet specific design needs. Users need to compare one by one, which is a large workload.

Method used

By obtaining multiple grid model files, traversing nodes to calculate node type content, connection relationship similarity and attribute relationship similarity, sorting files, obtaining user design requirements data, performing recommendation matches, and outputting files that meet the requirements.

Benefits of technology

It improves the speed of users finding grid model files that meet the requirements, simplifies steps, reduces workload, and achieves the effect of quickly finding related files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364049B_ABST
    Figure CN118364049B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a data processing method and device for power grid model files, including: obtaining multiple power grid model files; for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity; sorting the multiple power grid model files according to the node type content, connection relationship similarity, and attribute relationship similarity to obtain multiple sorted power grid model files; obtaining user design requirement data; recommending and matching the sorted multiple power grid model files according to the design requirement data to obtain recommended power grid model files; outputting the recommended power grid model files; improving the user's search speed, the steps are simple and easy to operate, the workload is small, and the effect of quickly finding relevant power grid model files that meet the requirements is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing method for a power grid model file, a data processing device for a power grid model file, a computer device and a computer-readable storage medium. Background Art

[0002] The language of existing power grid model files generally refers to the Electric System Data Markup Language - E language. Specifically, IEC61970 is a standard for the application program interface of the energy management system, the core of which is CIM (Common Information Model). All objects in the power system can be abstracted through CIM, and each power model file can be represented by a CIM model file. However, it is difficult for users to find files similar to a certain power model file. The steps are cumbersome and need to be compared one by one, which is a lot of work. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a data processing method for power grid model files, a data processing device for power grid model files, a computer device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0004] In order to solve the above problems, an embodiment of the present invention discloses a data processing method for a power grid model file, comprising:

[0005] Obtain multiple power grid model files;

[0006] For the plurality of power grid model files, traverse the plurality of nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity;

[0007] Sorting the plurality of power grid model files according to the node type content, connection relationship similarity and attribute relationship similarity to obtain a plurality of sorted power grid model files;

[0008] Obtain user's design requirement data;

[0009] According to the design requirement data, the sorted multiple power grid model files are recommended and matched to obtain a recommended power grid model file;

[0010] The recommended power grid model file is output.

[0011] Preferably, for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes:

[0012] Performing attribute recognition on the plurality of power grid model files to obtain a plurality of nodes in the power grid model files, wherein the plurality of nodes include a plurality of attribute data and device information;

[0013] The node type content is calculated according to the attribute data and device information of the node.

[0014] Preferably, for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes:

[0015] Calculating the connection relationship similarity based on the attribute data and device information of the node;

[0016] The attribute relationship similarity is calculated based on the attribute data and device information of the node.

[0017] Preferably, the multiple power grid model files are sorted according to the node type content, connection relationship similarity and attribute relationship similarity to obtain the sorted multiple power grid model files, including:

[0018] The model similarity parameters of the node type content, connection relationship similarity and attribute relationship similarity of each power grid model file are calculated, and a plurality of power grid model files are sorted according to the model similarity parameters to obtain a plurality of sorted power grid model files.

[0019] Preferably, the recommending and matching the sorted multiple power grid model files according to the design requirement data to obtain the recommended power grid model files includes:

[0020] The design demand data include electricity consumption, construction type, and equipment type ratio;

[0021] Recommend matching is performed on the sorted multiple power grid model files according to the power consumption, construction type, and equipment type ratio, a target power grid model file is determined, and then a similar second power grid model file is determined based on the target power grid model file, and the target power grid model file and the similar second power grid model file are determined as the recommended multiple power grid model files.

[0022] The embodiment of the present invention discloses a data processing device for a power grid model file, comprising:

[0023] An acquisition module, used to acquire multiple power grid model files;

[0024] A traversal module, for traversing multiple nodes in the multiple power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity;

[0025] A sorting module, used for sorting the plurality of power grid model files according to the node type content, connection relationship similarity and attribute relationship similarity to obtain a plurality of sorted power grid model files;

[0026] Data acquisition module, used to obtain user's design requirement data;

[0027] A recommendation matching module, used for recommending and matching the sorted multiple power grid model files according to the design requirement data to obtain a recommended power grid model file;

[0028] An output module is used to output the recommended power grid model file.

[0029] Preferably, the traversal module includes:

[0030] An attribute identification submodule, used for performing attribute identification on the plurality of power grid model files to obtain a plurality of nodes in the power grid model files, wherein the plurality of nodes include a plurality of attribute data and device information;

[0031] The first calculation submodule is used to calculate the node type content according to the attribute data and device information of the node.

[0032] Preferably, the traversal module includes:

[0033] A second calculation submodule is used to calculate the connection relationship similarity according to the attribute data and device information of the node;

[0034] The third calculation submodule is used to calculate the attribute relationship similarity according to the attribute data and device information of the node.

[0035] An embodiment of the present invention discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned data processing method for a power grid model file when executing the computer program.

[0036] An embodiment of the present invention discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned data processing method for a power grid model file are implemented.

[0037] The embodiments of the present invention include the following advantages:

[0038] In an embodiment of the present invention, a plurality of power grid model files are obtained; for the plurality of power grid model files, a plurality of nodes in the power grid model files are traversed to obtain node type content, connection relationship similarity, and attribute relationship similarity; the plurality of power grid model files are sorted according to the node type content, connection relationship similarity, and attribute relationship similarity to obtain a plurality of sorted power grid model files; the user's design requirement data is obtained; a recommended match is performed on the sorted plurality of power grid model files according to the design requirement data to obtain a recommended power grid model file; and the recommended power grid model file is output; the user's search speed is improved, the steps are simple and easy to operate, the workload is small, and the effect of quickly finding relevant power grid model files that meet the requirements is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0040] Figure 1 is a schematic diagram of a data processing method for a power grid model file according to an embodiment of the present invention;

[0041] Figure 2 is a schematic diagram of determining a second power grid model file according to an embodiment of the present invention;

[0042] Figure 3 is a schematic diagram of a data processing device for a power grid model file according to an embodiment of the present invention;

[0043] Figure 4 The diagram is a diagram of the internal structure of a computer device according to an embodiment. DETAILED DESCRIPTION

[0044] In order to make the technical problems, technical solutions and beneficial effects solved by the embodiments of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0045] The core concept of the present invention is to first decompose multiple power grid model files to obtain the type proportions of multiple different nodes, and then roughly sort the power grid model files for the first time according to the proportions of each type and the relevant similarities, and then determine the most similar power grid model file that meets the user's requirements according to the user's design requirements, and then output the power grid model file and related power grid model files to the user for reference, thereby improving the user's search speed, the steps are simple and easy to operate, the workload is small, and the technical effect of quickly finding relevant power grid model files that meet the requirements is achieved.

[0046] Reference Figure 1 , shows a schematic diagram of an embodiment of a data processing method for a power grid model file according to an embodiment of the present invention, which may specifically include the following steps:

[0047] Step S101, obtaining multiple power grid model files;

[0048] In the embodiment of the present invention, it can be applied to a terminal, and the terminal may be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The embodiment of the present invention does not limit the specific type of the terminal, and the operating system of the terminal may include Android, Harmony OS, IOS, Windows Phone, Windows, etc. The present invention does not impose too many restrictions on this.

[0049] It should be noted that the power grid model file may be a model file corresponding to the common information model CIM in the power system. Of course, the power grid model file may also be a model file of other model types, and the embodiment of the present invention does not impose too many restrictions on this.

[0050] The content included in the power grid model file may be the device name, device type, topological connection relationship between devices, location coordinates, angle and display format of the device. The above-mentioned devices may include switches, transformers, fuses, contactors, relays, starters, motors, signal lights, wires, optical fibers, twisted pairs, screens, switch cabinets, etc. The embodiments of the present invention do not impose excessive restrictions on the types of devices.

[0051] In specific applications, the topological connection relationship refers to the connection relationship between two devices or multiple devices, which may represent the connection relationship between two devices or two nodes.

[0052] The attribute relationship refers to the attribute properties of the node. For example, when the node is a device, its attribute is an electrical device, a connection device, or a protection device, as well as the connection method between devices.

[0053] In the embodiment of the present invention, the attribute data and device information of the node may refer to the device name, device type, topological connection relationship between devices, location coordinates, angle and display format of the device, etc. The embodiment of the present invention does not impose excessive restrictions on this.

[0054] Step S102: for the plurality of power grid model files, traverse the plurality of nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity;

[0055] After obtaining multiple power grid model files, the terminal can traverse multiple nodes in the power grid model files, which are entity objects of the power grid model, such as device objects, etc., and calculate the node type content, connection relationship similarity, and attribute relationship similarity of all entity objects.

[0056] First, the attributes and annotations of the entity object can be obtained, and then the node type content, connection relationship similarity, and attribute relationship similarity of the entity object can be calculated based on the attributes and annotations of the entity object.

[0057] Specifically applied to the embodiment of the present invention, for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes: performing attribute identification on the multiple power grid model files to obtain multiple nodes in the power grid model files, wherein the multiple nodes include corresponding attribute data and device information; calculating the node type content according to the attribute data and device information of the nodes;

[0058] Specifically, the multiple nodes may include multiple attribute data and equipment information, and the node type content can be calculated based on the attribute data and equipment information. First, the quantity of each device can be calculated, such as the number of transformers and the number of switches, and then the total amount of equipment can be calculated based on the quantity of each device. Then, the proportion of the equipment can be calculated based on the quantity of each device and the total amount of equipment, and the type content of each device can be calculated. Further, the node type content of all nodes can be calculated.

[0059] For example, a certain power grid model file contains 34675 nodes, of which 24989 nodes are device entity objects, of which 1958 are switch devices. The proportion of switch devices in the total nodes can be calculated, and the node type content L of the switch device nodes can be obtained.

[0060] Further applied to the embodiment of the present invention, for the multiple power grid model files, traverse the multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity, including: calculating the connection relationship similarity based on the attribute data and equipment information of the nodes; calculating the attribute relationship similarity based on the attribute data and equipment information of the nodes.

[0061] In addition, in the embodiment of the present invention, the connection relationship similarity and the attribute relationship similarity can also be calculated according to the attribute data and device information of the node; specifically, the above connection relationship refers to the connection relationship between devices, such as the connection relationship between the terminals of a certain device and the terminals of other devices is that the terminal No. 1 and the terminal No. 2 of the device A1 are respectively connected to the terminal No. 4 or the terminal No. 5 of the device A2;

[0062] Specifically, in a certain power grid model file, the connection relationship is as follows: Among them, A1 refers to the connection vector parameter set of device A1 pointing to device A2. Refers to the vector relationship from terminal 1 of device A1 to terminal 4 of device A2. In the example of the embodiment of the present invention, The value of can be 14 or -14 or 41 or -41. The value rules of other vector parameters can be the same as The embodiment of the present invention does not impose too many restrictions on this. It refers to the vector relationship from terminal 2 of device A1 to terminal 5 of device A2. A3 refers to the connection vector parameter set from device A3 to device A4. It refers to the vector relationship from terminal 1 of device A3 to terminal 3 of device A4. It refers to the vector relationship from terminal 2 of device A3 to terminal 4 of device A4. It refers to the vector relationship from terminal 5 of device A3 to terminal 6 of device A4. A5 refers to the connection vector parameter set from device A5 to device A6. It refers to the vector relationship from terminal 1 of device A5 to terminal 2 of device A6. It refers to the vector relationship from terminal 2 of device A5 to terminal 1 of device A6. An-1 refers to the connection vector parameter set of device An-1 pointing to device An. It refers to the vector relationship between terminal 1 of device An-1 and terminal 2 of device An. It refers to the vector relationship from terminal 2 of device An-1 to terminal 1 of device An. Then the similarity XS of X is calculated as:

[0063]

[0064] Here, n refers to a positive integer such as 1, 3, 5, 7, etc., and also refers to the number of devices in the power grid model file.

[0065] Furthermore, the above attribute relationship may be a series relationship or a parallel relationship between the device itself and other devices, such as the relationship between device 3 and device 4 is a series relationship, and the relationship between device 3 and device 5 is a parallel relationship;

[0066] In addition, the attribute relationship may also include the relative position of the devices, which may be calculated from the device coordinate values ​​of the two devices. Specifically, automatic identification may be performed based on the device coordinate value of each device, and the difference in the device coordinate values ​​between the two devices may be used as the relative position of the two devices.

[0067] Specifically, in a certain power grid model file, the attribute relationship is as follows: Among them, B1 refers to the attribute vector parameter of device A1 pointing to device A2, t1 means that the attribute of device A1 pointing to device A2 is in a series relationship, B2 refers to the attribute vector parameter of device A2 pointing to device A3, t2 means that the attribute of device A2 pointing to device A3 is in a parallel relationship, B3 refers to the attribute vector parameter of device A3 pointing to device A4, t1 means that the attribute of device A3 pointing to device A4 is in a parallel relationship, B4 refers to the attribute vector parameter of device A4 pointing to device A5, t1 means that the attribute of device A4 pointing to device A5 is in a series relationship, B5 refers to the attribute vector parameter of device A5 pointing to device A6, t2 refers to the attribute of device A5 pointing to device A6 being in a parallel relationship, B6 refers to the attribute vector parameter of device A6 pointing to device A7, t1 refers to the attribute of device A6 pointing to device A7 being in a series relationship, Bn-1 refers to the attribute vector parameter of device An-1 pointing to device An, t1 refers to the attribute of device An-1 pointing to device An being in a series relationship; the value of t1 may be 1, the value of t2 may be 2, or other set values, and the embodiment of the present invention does not impose too many restrictions on this;

[0068] Then calculate the attribute relationship similarity SS in the power grid model file as follows: In a preferred embodiment of the present invention, the attribute of the device An-1 pointing to the device An in the relationship similarity SS can also be a relative position, and the attribute relationship similarity can be calculated by the change of the relative position. The present invention does not impose too many restrictions on this.

[0069] In addition, with respect to the method of calculating the connection relationship similarity and the attribute relationship similarity, multiple methods may be used to calculate the connection relationship similarity and the attribute relationship similarity between power grid model files, and the embodiment of the present invention does not impose excessive restrictions on this.

[0070] Step S103, sorting the plurality of power grid model files according to the node type content, connection relationship similarity and attribute relationship similarity to obtain a plurality of sorted power grid model files;

[0071] In the embodiment of the present invention, after obtaining the node type content, the connection relationship similarity and the attribute relationship similarity, the plurality of power grid model files are sorted according to the above three data to obtain the sorted plurality of power grid model files;

[0072] In actual application in an embodiment of the present invention, the multiple power grid model files are sorted according to the node type content, connection relationship similarity and attribute relationship similarity to obtain the sorted multiple power grid model files, including: calculating the model similarity parameters of the node type content, connection relationship similarity and attribute relationship similarity of each power grid model file, and sorting the multiple power grid model files according to the model similarity parameters to obtain the sorted multiple power grid model files.

[0073] Specifically, first, the model similarity parameter can be calculated by the above three parameters, and further, the preset proportion parameter corresponding to the above three parameters can be obtained. The preset proportion parameter can be a preset empirical proportion parameter. For example, the preset proportion parameters corresponding to the above three parameters can be 0.21, 0.43, and 0.62; then the model similarity parameter C can be: 0.21*node type content L+0.43*connection relationship similarity XS+0.62*attribute relationship similarity SS, and then the multiple power grid model files are sorted according to the above model similarity parameter C.

[0074] Step S104: obtaining the user's design requirement data;

[0075] Further applied to the embodiment of the invention, the terminal can obtain the user's design requirement data, wherein the design requirement data includes power consumption, construction type, equipment type ratio, etc. The embodiment of the present invention does not impose too many restrictions on this.

[0076] Step S105: performing recommendation matching on the sorted multiple power grid model files according to the design requirement data to obtain a recommended power grid model file;

[0077] In a specific example of an embodiment of the present invention, the recommended matching of the sorted multiple power grid model files according to the design requirement data to obtain a recommended power grid model file includes: recommending and matching the sorted multiple power grid model files according to the power consumption, construction type, and equipment type proportion to determine a target power grid model file, and then determining a similar second power grid model file based on the target power grid model file, and determining the target power grid model file and the similar second power grid model file as the recommended multiple power grid model files.

[0078] In the embodiment of the present invention, the proportion of power consumption, construction type and equipment type can be compared with the attribute data and equipment information corresponding to the power grid model file. For example, the proportion of equipment type in the design requirement data is y for transformers, and the proportion of transformers y is compared with the node type content L in the power grid model file. In addition, the attribute data and equipment information of the power grid model file are compared with the power consumption and construction type to determine the closest target power grid model file. Then, according to the target power grid model file, a preset number of power grid model files are taken from the sorted multiple power grid model files as the second power grid model file; specifically, referring to Figure 2 , showing a schematic diagram of determining a second power grid model file in an embodiment of the present invention, a power grid model file within the model similarity parameter range of the target power grid model can be taken as the second power grid model file.

[0079] Step S106: output the recommended power grid model file.

[0080] In an embodiment of the present invention, after obtaining the target grid model file and a similar second grid model file, the target grid model file and the similar second grid model file can be determined as recommended grid model files, and the target grid model file and the similar second grid model file can be output to the user's display device for user reference.

[0081] In an embodiment of the present invention, a plurality of power grid model files are obtained; for the plurality of power grid model files, a plurality of nodes in the power grid model files are traversed to obtain node type content, connection relationship similarity, and attribute relationship similarity; the plurality of power grid model files are sorted according to the node type content, connection relationship similarity, and attribute relationship similarity to obtain a plurality of sorted power grid model files; the user's design requirement data is obtained; a recommended match is performed on the sorted plurality of power grid model files according to the design requirement data to obtain a recommended power grid model file; and the recommended power grid model file is output; the user's search speed is improved, the steps are simple and easy to operate, the workload is small, and the effect of quickly finding relevant power grid model files that meet the requirements is achieved.

[0082] It should be noted that, for the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that this embodiment is not limited by the order of the actions described, because according to this embodiment, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by this embodiment.

[0083] Reference Figure 3 , shows a structural block diagram of an embodiment of a data processing device for a power grid model file of this embodiment, which may specifically include the following modules:

[0084] An acquisition module 301 is used to acquire multiple power grid model files;

[0085] A traversal module 302 is used to traverse multiple nodes in the multiple power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity;

[0086] A sorting module 303 is used to sort the plurality of power grid model files according to the node type content, connection relationship similarity and attribute relationship similarity to obtain a plurality of sorted power grid model files;

[0087] The data acquisition module 304 is used to acquire the user's design requirement data;

[0088] A recommendation matching module 305 is used to recommend matching the sorted multiple power grid model files according to the design requirement data to obtain a recommended power grid model file;

[0089] The output module 306 is used to output the recommended power grid model file.

[0090] Preferably, the traversal module includes:

[0091] An attribute identification submodule, used for performing attribute identification on the plurality of power grid model files to obtain a plurality of nodes in the power grid model files, wherein the plurality of nodes include a plurality of attribute data and device information;

[0092] The first calculation submodule is used to calculate the node type content according to the attribute data and device information of the node.

[0093] Preferably, the traversal module includes:

[0094] A second calculation submodule is used to calculate the connection relationship similarity according to the attribute data and device information of the node;

[0095] The third calculation submodule is used to calculate the attribute relationship similarity according to the attribute data and device information of the node.

[0096] Preferably, the sorting module comprises:

[0097] The fourth calculation submodule is used to calculate the model similarity parameters of the node type content, connection relationship similarity and attribute relationship similarity of each power grid model file, and sort the multiple power grid model files according to the model similarity parameters to obtain the sorted multiple power grid model files.

[0098] Preferably, the recommendation matching module includes:

[0099] The design demand data include electricity consumption, construction type, and equipment type ratio;

[0100] A determination submodule is used to recommend and match the sorted multiple power grid model files according to the power consumption, construction type, and equipment type ratio, determine a target power grid model file, and then determine a similar second power grid model file based on the target power grid model file, and determine the target power grid model file and the similar second power grid model file as the recommended multiple power grid model files.

[0101] Each module in the above-mentioned data processing device for the power grid model file can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0102] The data processing device for power grid model files provided above can be used to execute the data processing method for power grid model files provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0103] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data processing device method for a power grid model file is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0104] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0105] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the above embodiment are implemented: obtaining a plurality of power grid model files;

[0106] For the plurality of power grid model files, traverse the plurality of nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity;

[0107] Sorting the plurality of power grid model files according to the node type content, connection relationship similarity and attribute relationship similarity to obtain a plurality of sorted power grid model files;

[0108] Obtain user's design requirement data;

[0109] According to the design requirement data, the sorted multiple power grid model files are recommended and matched to obtain a recommended power grid model file;

[0110] The recommended power grid model file is output.

[0111] Preferably, for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes:

[0112] Performing attribute recognition on the plurality of power grid model files to obtain a plurality of nodes in the power grid model files, wherein the plurality of nodes include a plurality of attribute data and device information;

[0113] The node type content is calculated according to the attribute data and device information of the node.

[0114] Preferably, for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes:

[0115] Calculating the connection relationship similarity based on the attribute data and device information of the node;

[0116] The attribute relationship similarity is calculated based on the attribute data and device information of the node.

[0117] Preferably, the multiple power grid model files are sorted according to the node type content, connection relationship similarity and attribute relationship similarity to obtain the sorted multiple power grid model files, including:

[0118] The model similarity parameters of the node type content, connection relationship similarity and attribute relationship similarity of each power grid model file are calculated, and a plurality of power grid model files are sorted according to the model similarity parameters to obtain a plurality of sorted power grid model files.

[0119] Preferably, the recommending and matching the sorted multiple power grid model files according to the design requirement data to obtain the recommended power grid model files includes:

[0120] The design demand data include electricity consumption, construction type, and equipment type ratio;

[0121] Recommend matching is performed on the sorted multiple power grid model files according to the power consumption, construction type, and equipment type ratio, a target power grid model file is determined, and then a similar second power grid model file is determined based on the target power grid model file, and the target power grid model file and the similar second power grid model file are determined as the recommended multiple power grid model files.

[0122] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above embodiment are implemented:

[0123] Obtain multiple power grid model files;

[0124] For the plurality of power grid model files, traverse the plurality of nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity;

[0125] Sorting the plurality of power grid model files according to the node type content, connection relationship similarity and attribute relationship similarity to obtain a plurality of sorted power grid model files;

[0126] Obtain user's design requirement data;

[0127] According to the design requirement data, the sorted multiple power grid model files are recommended and matched to obtain a recommended power grid model file;

[0128] The recommended power grid model file is output.

[0129] Preferably, for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes:

[0130] Performing attribute recognition on the plurality of power grid model files to obtain a plurality of nodes in the power grid model files, wherein the plurality of nodes include a plurality of attribute data and device information;

[0131] The node type content is calculated according to the attribute data and device information of the node.

[0132] Preferably, for the multiple power grid model files, traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes:

[0133] Calculating the connection relationship similarity based on the attribute data and device information of the node;

[0134] The attribute relationship similarity is calculated based on the attribute data and device information of the node.

[0135] Preferably, the multiple power grid model files are sorted according to the node type content, connection relationship similarity and attribute relationship similarity to obtain the sorted multiple power grid model files, including:

[0136] The model similarity parameters of the node type content, connection relationship similarity and attribute relationship similarity of each power grid model file are calculated, and a plurality of power grid model files are sorted according to the model similarity parameters to obtain a plurality of sorted power grid model files.

[0137] Preferably, the recommending and matching the sorted multiple power grid model files according to the design requirement data to obtain the recommended power grid model files includes:

[0138] The design demand data include electricity consumption, construction type, and equipment type ratio;

[0139] Recommend matching is performed on the sorted multiple power grid model files according to the power consumption, construction type, and equipment type ratio, a target power grid model file is determined, and then a similar second power grid model file is determined based on the target power grid model file, and the target power grid model file and the similar second power grid model file are determined as the recommended multiple power grid model files.

[0140] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0141] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0142] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0143] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0145] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0146] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0147] The above describes in detail a data processing method for a power grid model file, a data processing device for a power grid model file, a computer device and a computer-readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A data processing method for a power grid model file, characterized in that: include: Obtain multiple power grid model files; For the plurality of power grid model files, traverse the plurality of nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity; Obtain the preset proportion parameters corresponding to the node type content, connection relationship similarity and attribute relationship similarity, which are preset empirical proportion parameters, and the model similarity parameter is: the product of the node type content and the corresponding preset proportion parameter, plus the product of the connection relationship similarity and the corresponding preset proportion parameter, plus the sum of the product of the attribute relationship similarity and the corresponding preset proportion parameter; Calculating the model similarity parameters of the node type content, connection relationship similarity and attribute relationship similarity of each power grid model file, and sorting the multiple power grid model files according to the model similarity parameters to obtain the sorted multiple power grid model files; Obtaining the user's design requirement data; the design requirement data includes power consumption, construction type, and equipment type ratio; Recommend matching the sorted multiple power grid model files according to the power consumption, construction type, and equipment type ratio; Compare the equipment type ratio with the node type content in the power grid model file, and compare the power grid model file attribute data, equipment information, power consumption, and construction type to determine the closest target power grid model file, and then select the power grid model file within the model similarity parameter range of the target power grid model from the sorted multiple power grid model files according to the target power grid model file as the second power grid model file, and determine the target power grid model file and the similar second power grid model file as the recommended multiple power grid model files; The recommended power grid model file is output.

2. The data processing method for the power grid model file according to claim 1, characterized in that: The step of traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes: Performing attribute recognition on the plurality of power grid model files to obtain a plurality of nodes in the power grid model files, wherein the plurality of nodes include a plurality of attribute data and device information; The node type content is calculated according to the attribute data and device information of the node.

3. The data processing method for the power grid model file according to claim 2, characterized in that: The step of traversing multiple nodes in the power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity includes: Calculating the connection relationship similarity based on the attribute data and device information of the node; The attribute relationship similarity is calculated based on the attribute data and device information of the node.

4. A data processing device for a power grid model file, characterized in that: include: An acquisition module, used to acquire multiple power grid model files; A traversal module, for traversing multiple nodes in the multiple power grid model files to obtain node type content, connection relationship similarity, and attribute relationship similarity; A sorting module is used to obtain preset proportion parameters corresponding to node type content, connection relationship similarity and attribute relationship similarity. The preset proportion parameters are preset empirical proportion parameters. The model similarity parameter is: the product of the node type content and the corresponding preset proportion parameter, plus the product of the connection relationship similarity and the corresponding preset proportion parameter, plus the sum of the product of the attribute relationship similarity and the corresponding preset proportion parameter; Calculating the model similarity parameters of the node type content, connection relationship similarity and attribute relationship similarity of each power grid model file, and sorting the multiple power grid model files according to the model similarity parameters to obtain the sorted multiple power grid model files; A data acquisition module is used to acquire the user's design requirement data; the design requirement data includes power consumption, construction type, and equipment type ratio; A recommendation matching module is used to recommend matching the sorted multiple power grid model files according to the power consumption, construction type, and equipment type ratio; compare the equipment type ratio with the node type content in the power grid model file, and compare the power grid model file attribute data, equipment information, power consumption, and construction type to determine the closest target power grid model file, and then select the power grid model file within the model similarity parameter range of the target power grid model from the sorted multiple power grid model files according to the target power grid model file as the second power grid model file, and determine the target power grid model file and the similar second power grid model file as the recommended multiple power grid model files; An output module is used to output the recommended power grid model file.

5. The data processing device for power grid model files according to claim 4, characterized in that: The traversal module includes: An attribute identification submodule, used for performing attribute identification on the plurality of power grid model files to obtain a plurality of nodes in the power grid model files, wherein the plurality of nodes include a plurality of attribute data and device information; The first calculation submodule is used to calculate the node type content according to the attribute data and device information of the node.

6. The data processing device for power grid model files according to claim 5, characterized in that: The traversal module includes: A second calculation submodule is used to calculate the connection relationship similarity according to the attribute data and device information of the node; The third calculation submodule is used to calculate the attribute relationship similarity according to the attribute data and device information of the node.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the data processing method for a power grid model file according to any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data processing method for a power grid model file according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Power grid model and associated sample data generation method and device thereof, equipment and medium

    CN116861249A