CN105468856B - Method for identifying electric energy metering equipment in SCD file based on multi-keyword matching - Google Patents
Method for identifying electric energy metering equipment in SCD file based on multi-keyword matching Download PDFInfo
- Publication number
- CN105468856B CN105468856B CN201510849594.8A CN201510849594A CN105468856B CN 105468856 B CN105468856 B CN 105468856B CN 201510849594 A CN201510849594 A CN 201510849594A CN 105468856 B CN105468856 B CN 105468856B
- Authority
- CN
- China
- Prior art keywords
- weight
- keyword
- equipment
- matching
- electric energy
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 101150035983 str1 gene Proteins 0.000 claims description 13
- 101100170604 Mus musculus Dmap1 gene Proteins 0.000 claims description 4
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/20—Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/06—Power analysis or power optimisation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
The invention provides a method for identifying electric energy metering equipment in an SCD file based on multi-keyword matching, which comprises the following steps: analyzing a total station equipment tree according to the xml standard structure; matching the name and description of each logic device with the keyword thereof respectively, and obtaining a weight according to the matching degree; matching the name and description of each data set in each logic device with the keywords of the data set, and obtaining a weight according to the matching degree; matching the logical node class name contained in the data set entry with the keyword to obtain a weight; and traversing all data sets under the logic equipment, calculating a total weight value Ktotal, if the total weight value Ktotal is greater than a preset weight value, identifying the current logic equipment as electric energy metering logic equipment, and recording the position of the logic equipment in the total station equipment tree. The method and the device improve the identification accuracy, reduce the workload of manual intervention, and improve the accuracy and efficiency of the identification of the total station electric energy metering equipment by the automation software.
Description
Technical Field
The invention relates to an electric energy metering device identification method, in particular to an electric energy metering device identification method in an SCD file based on multi-keyword matching.
Background
The SCD file is a short for substation system configuration description file, is composed of extensible markup language (xml), and describes instance configuration and communication parameters of all IEDs (intelligent electronic devices) in a substation, communication configuration among the IEDs and a substation primary system structure; the substation comprises different IEDs, each IED comprising several LDs (logical devices); power metering (Meter) Logic Devices (LDs) are included in some IEDs and need to be identified by analyzing SCD files.
To identify the energy metering logic devices, there are two methods: 1) analyzing the SCD file according to the xml specification to generate an all-station equipment (IED, LD) tree, and then identifying the electric energy metering equipment by searching whether the LD name in the equipment tree is 'METR'; 2) and traversing the SCD file line by line, searching a line with the LD name of METR, recording the position of each electric energy metering LD in the SCD file, and identifying different electric energy metering LDs.
When the SCD file is transmitted, the file content is automatically generated by a program, and manual verification is not usually performed; the electric energy metering identification method has simple judgment conditions, and the electric energy metering equipment is easy to be missed in case of the change of the LD name or the error of the line containing the LD name due to some reason; and because the information quantity of the SCD file is large and millions of SCD files are performed frequently, manual inspection is unlikely to be performed after the program is automatically identified in the early stage, the problem is found only when the identification result is applied to debugging in the later stage, the judgment missing is realized, and a large amount of time and energy are invested to perform inspection.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides the method for identifying the electric energy metering equipment in the SCD file based on multi-keyword matching, and the method improves the identification accuracy and the accuracy and efficiency of the automatic software for identifying the electric energy metering equipment in the whole station.
In order to achieve the purpose of the invention, the invention adopts the following technical scheme:
the method for identifying the electric energy metering equipment in the SCD file based on multi-keyword matching comprises the following steps:
(1) analyzing a total station equipment tree according to the xml standard structure;
(2) matching the name and description of each logic device with the keyword thereof respectively, and obtaining a weight according to the matching degree;
(3) matching the name and description of each data set in each logic device with the keywords of the data set, and obtaining a weight according to the matching degree;
(4) matching the logical node class name contained in the data set entry with the keyword to obtain a weight;
(5) traversing all data sets under the logic equipment, and calculating a total weight value KGeneral assemblyIf K isGeneral assemblyIf the current logic equipment is greater than the preset weight, identifying the current logic equipment as electric energy metering logic equipment, and recording the position of the logic equipment in the total station equipment tree;
(6) and (5) repeating the steps (2) to (5) until all the logic devices in the total station device tree are traversed.
Preferably, in the step (2), the name of the logic device is matched with a keyword 'METR', so as to obtain a weight K1; and matching the description of the logic equipment with a keyword 'electric energy metering' to obtain a weight K2.
Preferably, in the step (3), the name in each data set is matched with a keyword "dsEnergy" to obtain a weight K3; and matching the description in the data set with a keyword 'electric energy metering' to obtain a weight K4.
Preferably, in the step (4), the logical node class name and the keyword "MMTR" are used to obtain a weight value K5.
Preferably, in the step (5), the total weight value K isGeneral assemblyK1+ K2+ (K3+ K4+ K5)/N, N being the number of datasets.
Preferably, in the steps (2) to (4), the weight and the matching degree are preset, and a percentage is obtained by comparing the matching degrees of the individual characters in the keyword, so as to obtain a weight, that is, the weight K is integer (100 ME R, METR ")), the function integer (f) is to round the bracketed value f, the function match (str1, str2) is to Compare the similarity of the bracketed character string str1 and the bracketed character string str2, and the output result is a percentage.
Preferably, the running of the function match includes the following steps:
step A, comparing the character string str1 with the character string str2 one by one, if the single characters are the same, adding 1 to the similarity value same, and adding 1 to the compared character length every time one character is compared;
step B, comparing until the str2 character string length or the str1 length is smaller;
and C, after the comparison is finished, outputting a comparison result ret which is same as the same/length.
Compared with the prior art, the invention has the beneficial effects that:
the method comprehensively evaluates and judges whether the logic equipment node is the electric energy metering logic equipment or not by checking the occurrence degree of different keywords in different structures of the logic equipment, greatly reduces the misjudgment probability of the metering logic equipment, improves the identification accuracy, reduces the workload of manual intervention, and improves the accuracy and efficiency of the automatic software for identifying the total station electric energy metering equipment. And through the long-term use of software, through increasing different keywords, set up the matching weight, can further improve the degree of accuracy of discerning.
Drawings
FIG. 1 is a flowchart of a method for identifying an electric energy metering device in an SCD file based on multi-keyword matching according to the present invention
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
After analyzing the total-station IED and LD trees according to the xml standard structure, the invention calculates the frequency and matching degree of the keywords in the keyword library in different structures in each LD, calculates the total weight, and judges whether the LD is the electric energy metering LD.
As shown in fig. 1, a method for identifying an electric energy metering device in an SCD file based on multi-keyword matching specifically includes the following steps:
1) analyzing an all-station IED and an LD tree according to the xml standard structure;
2) checking the matching degree of each LD name and a ' METR ' keyword, wherein if the LD name is ' ETR ', ' M ' TR ', ' ME ' R ', ' MET ' R ', etc., ' R ' represents unmatched characters, the case is not distinguished, if the characters are completely matched, the weight is 100, otherwise, the weights are calculated according to the sequence and number of the matched characters, if the characters are completely unmatched, the weights are 0, and if the characters are completely matched, the weights are 9; step 2), the weight value is K1;
these weight and matching degree can be preset, and the matching degree of each character is compared to obtain a percentage, if "ME R" and "METR" have 75% of characters, the matching weight is 75, that is, the weight K is integer (100 ME R, METR ")), the function integer (f) represents the rounding of the parenthesized value f, and the match (str1, str2) represents the similarity degree of the parenthesized character string 1(str1) and the parenthesized character string 2(str2), and the output result is a percentage, and the function implementation steps are described as follows:
A) comparing str1\ str2 one by one, if the single characters are the same, adding 1 to the similarity value same, and adding 1 to the compared character length every time when comparing one character;
B) the comparison is made until the small value of str2 string length or str1 length;
C) after the comparison is finished, the comparison result ret is output as same/length.
The principle of the invention is only explained here, and the weight calculation method described in the following items is similar to 2);
3) checking the matching degree of each LD description and the keyword 'electric energy metering', if the LD description is completely matched with the keyword 'electric energy metering', the weighting value is 100, if the LD description is completely matched with the keyword 'electric energy', the 'metering', and the 'metering', the weighting value is 5, and in the step 3), the weighting value is K2;
4) checking the matching degree of each data set (DataSet) name in each LD and the keyword "dsEnergy", if the data set (DataSet) name is completely matched with the keyword, the weight is 100, if the data set (DataSet) name is completely matched with the keyword, the weight is 75, and in the step 4), the weight is K3;
5) checking the matching degree of each data set (DataSet) description and the keyword 'electric energy metering' in each LD, if the data sets are completely matched, the weight value is 100, if the data sets are completely matched, the matching is 'electric energy', 'metering', and 'metering', the weight value is 50, and in the step 5), the weight value is K4;
6) checking the matching degree of the logical node class (lnClass) name contained in each data set (DataSet) entry in each LD and the keyword 'MMTR', if the logical node class (lnClass) name is completely matched, the weight value is 100, if the logical node class (lnClass) name is completely matched, if the logical node class (lnClass) name is matched with the keyword 'MMTR', and if the logical;
7) after traversing all data sets under a certain LD, calculating the total weight K which is K1+ K2+ (K3+ K4+ K5)/N, wherein N is the number of the data sets;
8) if K is greater than the preset weight, if so, identifying the current LD as electric energy metering logic equipment, and recording the positions of the logic equipment in the total station IED and the LD tree for later use by automation software;
9) and repeating the steps 2) to 8) until all LD devices of the total station IED and the LD tree are traversed, namely, the identification of the total station electric energy metering device in the SCD file is finished.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (1)
1. The method for identifying the electric energy metering equipment in the SCD file based on multi-keyword matching is characterized by comprising the following steps of:
(1) analyzing a total station equipment tree according to the xml standard structure;
(2) matching the name and description of each logic device with the keyword thereof respectively, and obtaining a weight according to the matching degree;
(3) matching the name and description of each data set in each logic device with the keywords of the data set, and obtaining a weight according to the matching degree;
(4) matching the logical node class name contained in the data set entry with the keyword to obtain a weight;
(5) traversing all data sets under the logic equipment, and calculating a total weight value KGeneral assemblyIf K isGeneral assemblyIf the current logic equipment is greater than the preset weight, identifying the current logic equipment as electric energy metering logic equipment, and recording the position of the logic equipment in the total station equipment tree;
(6) repeating the step (2) to the step (5) until all logic devices are in the traversal total station device tree; in the step (2), the name of the logic device is matched with a keyword 'METR' to obtain a weight K1; the description of the logic equipment is matched with a keyword 'electric energy metering' to obtain a weight K2;
in the step (3), the name in each data set is matched with the keyword "dsEnergy" to obtain a weight K3; matching the description in the data set with a keyword 'electric energy metering' to obtain a weight K4;
in the step (4), the logical node class name and the keyword "MMTR" obtain a weight K5;
in the step (5), the total weight value KGeneral assemblyK1+ K2+ (K3+ K4+ K5)/N, N being the number of datasets;
in the steps (2) to (4), the weight and the matching degree are preset, and a percentage is obtained by comparing the matching degree of a single character in the keyword, so as to obtain a weight, that is, the weight K is integer (100 × match (str1, str2)), the function integer (f) represents that the number f in parentheses is rounded, the function match (str1, str2) represents that the similarity between the string str1 and the string str2 in parentheses is compared, and the output result is a percentage;
the running of the function Compare comprises the following steps:
step A, comparing the character string str1 with the character string str2 one by one, if the single characters are the same, adding 1 to the similarity value same, and adding 1 to the compared character length every time one character is compared;
step B, comparing until the str2 character string length or the str1 length is smaller;
and C, after the comparison is finished, outputting a comparison result ret which is same as the same/length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510849594.8A CN105468856B (en) | 2015-11-27 | 2015-11-27 | Method for identifying electric energy metering equipment in SCD file based on multi-keyword matching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510849594.8A CN105468856B (en) | 2015-11-27 | 2015-11-27 | Method for identifying electric energy metering equipment in SCD file based on multi-keyword matching |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105468856A CN105468856A (en) | 2016-04-06 |
CN105468856B true CN105468856B (en) | 2020-03-10 |
Family
ID=55606551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510849594.8A Active CN105468856B (en) | 2015-11-27 | 2015-11-27 | Method for identifying electric energy metering equipment in SCD file based on multi-keyword matching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105468856B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582391B (en) * | 2018-12-04 | 2022-05-24 | 中国航空工业集团公司西安航空计算技术研究所 | XML-based equipment tree configuration method |
CN110070462B (en) * | 2019-04-22 | 2022-04-29 | 西南交通大学 | Target device pair matching method based on IED information and common keyword check |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006017944A1 (en) * | 2004-08-16 | 2006-02-23 | Abb Research Ltd | Method and system for bi-directional data conversion between iec 61970 and iec 61850 |
CN101610171A (en) * | 2009-07-22 | 2009-12-23 | 天津市电力公司 | A kind of switch method of automatic configuration based on the IEC61850 model |
CN101771581A (en) * | 2009-12-16 | 2010-07-07 | 广东电网公司电力科学研究院 | Server-side simulating system based on IEC61850 and method thereof |
CN104112015A (en) * | 2014-07-19 | 2014-10-22 | 国家电网公司 | DOM (document object model) and XML (extensible markup language) path language based intelligent substation SCD (substation configuration description) file parsing method |
CN104535861A (en) * | 2014-12-23 | 2015-04-22 | 国网四川省电力公司阿坝供电公司 | General template for automated relay protection tester and instantiation method of general template |
CN104698374A (en) * | 2015-03-03 | 2015-06-10 | 国网四川省电力公司电力科学研究院 | Method for improving testing efficiency and accuracy of automatic relay protecting tester |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831232B (en) * | 2012-08-30 | 2015-12-16 | 山石网科通信技术有限公司 | The matching process of character string and device |
CN103678342B (en) * | 2012-09-07 | 2018-04-27 | 腾讯科技(深圳)有限公司 | Startup item recognition methods and device |
-
2015
- 2015-11-27 CN CN201510849594.8A patent/CN105468856B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006017944A1 (en) * | 2004-08-16 | 2006-02-23 | Abb Research Ltd | Method and system for bi-directional data conversion between iec 61970 and iec 61850 |
CN101610171A (en) * | 2009-07-22 | 2009-12-23 | 天津市电力公司 | A kind of switch method of automatic configuration based on the IEC61850 model |
CN101771581A (en) * | 2009-12-16 | 2010-07-07 | 广东电网公司电力科学研究院 | Server-side simulating system based on IEC61850 and method thereof |
CN104112015A (en) * | 2014-07-19 | 2014-10-22 | 国家电网公司 | DOM (document object model) and XML (extensible markup language) path language based intelligent substation SCD (substation configuration description) file parsing method |
CN104535861A (en) * | 2014-12-23 | 2015-04-22 | 国网四川省电力公司阿坝供电公司 | General template for automated relay protection tester and instantiation method of general template |
CN104698374A (en) * | 2015-03-03 | 2015-06-10 | 国网四川省电力公司电力科学研究院 | Method for improving testing efficiency and accuracy of automatic relay protecting tester |
Also Published As
Publication number | Publication date |
---|---|
CN105468856A (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019214143A1 (en) | Server, financial time sequence data processing method and storage medium | |
CN104834528B (en) | Rely on version processing plug-in unit and the method handled using it relying on version | |
CN108629413A (en) | Neural network model training, trading activity Risk Identification Method and device | |
CN106446016A (en) | Parallel association rule mining-based method for predicting running reliability of power distribution network | |
WO2015003421A1 (en) | Algorithm for fast character string matching | |
US9690690B1 (en) | Scalable transitive violation matching | |
CN108256335A (en) | For detecting the method and apparatus of loophole | |
CN105468856B (en) | Method for identifying electric energy metering equipment in SCD file based on multi-keyword matching | |
CN103346556B (en) | A kind of distribution network loop method for rapidly positioning | |
Dongming et al. | The application of decision tree C4. 5 algorithm to soil quality grade forecasting model | |
CN103606032B (en) | A kind of method in two dimension power grid GIS data set | |
CN104699595A (en) | Software testing method facing to software upgrading | |
CN110222098A (en) | Electric power high amount of traffic abnormality detection based on flow data clustering algorithm | |
CN112083275A (en) | Distribution network fault type identification method and system | |
CN106055684A (en) | SCD file comparison method of transformer substation | |
CN112183823B (en) | Rule tree-based type selection method and system for electric energy metering device | |
CN115409122A (en) | Method, system, equipment and medium for analyzing concurrent faults of power transformation equipment | |
CN107391812A (en) | A kind of intelligent substation SCD loops method of calibration and device | |
CN110070462B (en) | Target device pair matching method based on IED information and common keyword check | |
Alvares et al. | Application of computational intelligence for source code classification | |
CN105260277B (en) | A kind of text test data set creation method based on lognormal model | |
Neznanov et al. | Analyzing Social Networks Services Using Formal Concept Analysis Research Toolbox. | |
Liang et al. | Comparison of artificial neural network with compatible biomass model for predicting aboveground biomass of individual tree | |
CN113377801A (en) | Data inspection method, data inspection device, electronic equipment and computer storage medium | |
Chen et al. | An automatic generation of software test data based on improved Markov model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |