Relay protection standard constant value item matching method and system
By calculating the fuzzy matching coefficient and memory matching coefficient, combined with the comprehensive matching coefficient, the problem of fixed value term matching of the relay protection device is automatically handled, and the problem of time-consuming and labor-intensive and high error rate caused by relying on manual matching in the prior art is solved, and the problem of time-consuming and labor-intensive and high error rate is achieved. More efficient and accurate matching process.
Patent Information
- Application Number
- CN202411560710.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-02-11
AI Technical Summary
In the process of matching fixed value terms and standardized fixed value terms, the existing relay protection devices rely on manual implementation, which leads to time-consuming and labor-intensive and prone to errors and omissions.
By calculating the fuzzy matching coefficient and memory matching coefficient, combining the comprehensive matching coefficients of the target fixed value term and the standard fixed value term, the matching problem of multiple fixed value terms is automatically handled to improve the accuracy and flexibility of the match.
It improves the accuracy and work efficiency of matching the fixed value terms of the relay protection standard, reduces manual errors, and improves the efficiency and accuracy of calculation, review, issuance, and archives.
Smart Images

Figure CN119415969A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the technical field of relay protection of electric power systems, and more specifically, relates to a method and system for matching standard setting items of relay protection. Background Art
[0002] Relay protection is the first line of defense for protecting the power system. Its main task is to quickly and accurately detect the fault location and take measures to protect the safe operation of power equipment when a fault occurs in the power system. Among them, the protection setting items are key parameters for the operation of the relay protection system. In actual work, they need to go through multiple links such as calculation, review, issuance, and archiving. Relay protection devices of different manufacturers and models have inconsistent classifications and names of the same functional setting items, which brings inconvenience to the calculation, review and unified management of relay protection setting items. Power companies have established unified standards for standardizing the classification and names of relay protection setting items. At present, when the setting items of existing devices are connected with the standardized setting items, they mainly rely on manual implementation, which is time-consuming, labor-intensive and prone to errors. Therefore, an efficient and reliable method for matching standard setting items of relay protection is needed. Summary of the invention
[0003] The purpose of the present disclosure is to provide a method and system for matching standard fixed value items of relay protection, so as to improve the efficiency and accuracy of the method for matching standard fixed value items of relay protection.
[0004] A first aspect of an embodiment of the present disclosure provides a method for matching relay protection standard setting items, including: Acquire first data and second data; wherein the first data is a list of target value items, and the second data is a list of standard value items; Calculate a first coefficient according to the first data and the second data, wherein the second coefficient is a memory matching coefficient; Calculate a second coefficient according to the first data and the second data, where the second coefficient is a memory matching coefficient; Matching the first coefficient and the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data; A matching result between the first data and the second data is determined according to the comprehensive matching coefficient.
[0005] A second aspect of the embodiments of the present disclosure provides a relay protection standard setting item matching system, including: A data acquisition module, used to acquire first data and second data; wherein the first data is a list of target fixed value items, and the second data is a list of standard fixed value items; A first coefficient calculation module, used for calculating a first coefficient according to the first data and the second data, wherein the second coefficient is a memory matching coefficient; A second coefficient calculation module, used for calculating a second coefficient according to the first data and the second data, wherein the second coefficient is a memory matching coefficient; A coefficient matching module, used for matching the first coefficient with the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data; A matching result determination module is used to determine the matching result of the first data and the second data according to the comprehensive matching coefficient.
[0006] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the above-mentioned method for matching standard setting items of relay protection when executing the computer program.
[0007] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for matching standard setting items of relay protection are implemented.
[0008] The beneficial effects of the relay protection standard setting item matching method and system provided by the embodiments of the present disclosure are: The present invention effectively improves the accuracy and flexibility of the matching of fixed value items by calculating the fuzzy matching coefficient and the memory matching coefficient; then, by calculating the comprehensive matching coefficient of the target fixed value item and the standard fixed value item, the influence of the fuzzy matching coefficient and the memory matching coefficient is comprehensively considered, and the weights are adjusted. and , the influence of the two on the matching results can be flexibly controlled to obtain more reasonable matching results; finally, through the iterative matching process, the matching problems of multiple fixed value items can be automatically handled, thereby improving work efficiency.
[0009] Therefore, the present disclosure not only solves the problem that the matching of relay protection standard setting items relies on manual implementation, which is time-consuming, labor-intensive and prone to errors, but also helps to improve the efficiency and accuracy of relay protection setting items in calculation, review, issuance, and archiving. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, 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 disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1A schematic diagram of a flow chart of a method for matching relay protection standard setting items provided in an embodiment of the present disclosure; Figure 2 A schematic diagram of the accuracy distribution of an experiment provided in an embodiment of the present disclosure; Figure 3 A schematic diagram of the matching intermediate quantity and process provided by an embodiment of the present disclosure; Figure 4 A schematic diagram of a specific process of a relay protection standard setting item matching method provided in an embodiment of the present disclosure; Figure 5 A structural block diagram of a relay protection standard setting item matching system provided in an embodiment of the present disclosure; Figure 6 A schematic block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0012] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.
[0013] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0014] Please refer to Figure 1 , Figure 1 A flowchart of a method for matching relay protection standard setting items provided in an embodiment of the present disclosure is provided, and the method includes: S101: Acquire first data and second data; wherein the first data is a list of target fixed value items, and the second data is a list of standard fixed value items.
[0015] In this embodiment, data preparation is first required, that is, obtaining first data and second data, wherein the first data is a list of target value items, and the second data is a list of standard value items.
[0016] For example, the first data, as matching object one, may be a list of set value items of the protection device.
[0017] Different protection device fixed value item lists usually have differences. Different protection devices have different fixed value item lists due to differences in their functions, application scenarios, etc. A set of protection device fixed value item lists (i.e., first data) is defined as .
[0018] Among them, each element represents a specific protection device setting item, reflecting the diversity of different protection device setting items.
[0019] for example, It can represent the overcurrent protection setting item of a certain protection device. It can represent the undervoltage protection setting item of a certain protection device.
[0020] The second data, as the second matching object, can be a list of standard fixed value items for relay protection, which includes all the fixed value items that may exist in the relay protection system, and provides a unified reference standard for different protection devices, which helps to ensure the consistency and reliability of the relay protection system. The set of standard fixed value item lists for relay protection (i.e., the second data) is defined as .
[0021] Among them, each element represents a standard relay protection setting item.
[0022] for example, It can be a standard current transformer ratio setting item, It can be a standard voltage transformer ratio setting item.
[0023] The matching content of the first data and the second data is the fixed value item classification (classify) and the fixed value item name (name). The fixed value item classification and the fixed value item name are the key contents for matching. The fixed value item classification can help classify different fixed value items for easy management and comparison. For example, the fixed value items can be divided into different categories such as current, voltage, and time.
[0024] The name of the fixed value item is the specific identification of each fixed value item. Accurate name of the fixed value item can avoid confusion and wrong matching.
[0025] S102: Calculate a first coefficient according to the first data and the second data, where the first coefficient is a fuzzy matching coefficient.
[0026] In this embodiment, the first coefficient may be a fuzzy matching coefficient.
[0027] Specifically, the process of calculating the first coefficient according to the first data and the second data may be as follows: From the first data collection In Start traversing the second data set ,calculate and The fuzzy matching coefficient (i.e. the first coefficient) of and The fuzzy matching coefficient is ,calculate and The fuzzy matching coefficient is After traversing, we finally get the set of the first coefficients (i.e., fuzzy matching coefficients) .
[0028] This embodiment can compare each fixed value item in the first data and the second data one by one through traversal, so as to determine the similarity or matching degree between the first data and the second data. The value of the fuzzy matching coefficient is usually between 0 and 1. The closer the value is to 1, the more similar the two fixed value items are, and the closer the value is to 0, the greater the difference between the two fixed value items.
[0029] S103: Calculate a second coefficient according to the first data and the second data, where the second coefficient is a memory matching coefficient.
[0030] In this embodiment, the second coefficient may be a memory matching coefficient.
[0031] Specifically, the process of calculating the second coefficient according to the first data and the second data may be as follows: From the first data collection In Start traversing the second data set ,calculate and The memory matching coefficient (i.e., the second coefficient) of and The memory matching coefficient is ,calculate and The memory matching coefficient is After traversal, we finally get the set of the second coefficients (i.e., memory matching coefficients) .
[0032] S104: Match the first coefficient and the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data.
[0033] In this embodiment, the comprehensive matching coefficient of the first data and the second data is calculated, that is, ,in, is the weight of the fuzzy matching coefficient, is the weight of the record matching coefficient, ; Desirable ,pass and The influence of the memory matching coefficient on the matching result is controlled. Finally, a set of comprehensive matching coefficients of the first data and the second data is obtained. .
[0034] The purpose of calculating the comprehensive matching coefficient in this embodiment is to integrate the fuzzy matching coefficient (first coefficient) and the memory matching coefficient (second coefficient) to more comprehensively evaluate the matching degree between the setting items of the protection device and the standard setting items. and memory matching weights , the influence of different matching methods on the final result can be adjusted according to actual needs, thereby improving the accuracy and reliability of matching.
[0035] Exemplary, fuzzy matching weights Determines the importance of the fuzzy matching coefficient in the comprehensive matching coefficient. is larger, indicating that more emphasis is placed on the fuzzy matching results based on the current fixed value item features; on the contrary, if If it is smaller, the impact of fuzzy matching is relatively reduced.
[0036] Memory Match Weight It controls the contribution of the memory matching coefficient to the comprehensive matching coefficient. When it is large, the historical matching information has a greater impact on the current matching results; When is smaller, the effect of history matching is weakened.
[0037] For example, when , it indicates that fuzzy matching and memory matching are equally important in comprehensive matching.
[0038] S105: Determine a matching result between the first data and the second data according to the comprehensive matching coefficient.
[0039] In this embodiment, by traversing the set of comprehensive matching coefficients of the first data and the second data All values in can extract the maximum value of the comprehensive matching coefficient, and the standard value item corresponding to the comprehensive matching coefficient is output as the optimal matching result; Then, return to step S102 to continue The matching process; Finally, the number of iterations is controlled by the number of fixed-value items in the fixed-value item set until All elements in are matched.
[0040] In this embodiment, the comprehensive matching coefficient The purpose of traversal is to compare the values of each comprehensive matching coefficient one by one to determine the maximum value. The traversal can be implemented by programming methods such as loops to ensure that no coefficient value is missed.
[0041] During the traversal process, the maximum value of the comprehensive matching coefficient is extracted, and the standard setting item corresponding to the maximum value is considered to be consistent with the current protection device setting item (such as ) is the best matching result.
[0042] After the best matching result is output, return to step S102 to continue The matching process indicates that the next setting item in the protection device setting item set is matched. According to the same method, the fuzzy matching coefficient, memory matching coefficient and comprehensive matching coefficient are calculated to determine Which valued item in the set of standard valued items is the closest match.
[0043] This embodiment controls the number of iterations by the number of fixed value items in the fixed value item set. For example, if there are Elements , then you need to Iterate until all elements are matched. Each iteration matches a protection device setting item to ensure that each setting item can find its optimal matching result in the standard setting item set.
[0044] By obtaining the optimal matching result, this embodiment can adjust and optimize the protection device so that its setting items are more in line with standard requirements, thereby improving the reliability and stability of the relay protection system.
[0045] It can be concluded from the above that this embodiment effectively improves the accuracy and flexibility of the matching of the fixed value items by calculating the fuzzy matching coefficient and the memory matching coefficient; then, by calculating the comprehensive matching coefficient of the target fixed value item and the standard fixed value item, the influence of the fuzzy matching coefficient and the memory matching coefficient is comprehensively considered, and the weights are adjusted. and , the influence of the two on the matching results can be flexibly controlled to obtain more reasonable matching results; finally, through the iterative matching process, the matching problems of multiple fixed value items can be automatically handled, thereby improving work efficiency.
[0046] Therefore, this embodiment not only solves the problem that the matching of relay protection standard setting items relies on manual implementation, which is time-consuming, labor-intensive and prone to errors, but also helps to improve the efficiency and accuracy of relay protection setting items in calculation, review, issuance, and archiving.
[0047] In one embodiment of the present disclosure, after acquiring the first data and the second data, the method includes: Structurally storing the fixed value item classifications and fixed value item names of the first data; The fixed value item classification and the fixed value item name of the second data are stored in a structured manner.
[0048] In this embodiment, the matching content of the first data and the second data is the classification of the fixed value item (classify) and the name of the fixed value item (name). In the data preparation stage, that is, after obtaining the first data and the second data, the classification of the fixed value item and the name of the fixed value item of the first data, and the classification of the fixed value item and the name of the fixed value item of the second data need to be structured and stored respectively.
[0049] The classification and name of the first data and the classification and name of the second data are stored in a structured manner, which helps to improve the efficiency and accuracy of matching. Structured storage can use database table structure, data dictionary and other methods to clearly define and store the classification and name of the valued items. Later, when matching, the classification and name of the valued items can be quickly retrieved and compared, reducing the time cost of searching and matching.
[0050] It can be concluded from the above that, by accurately defining and structurally storing the first data and the second data, this embodiment can better perform subsequent matching work and improve the reliability and stability of the relay protection system.
[0051] In one embodiment of the present disclosure, calculating the first coefficient according to the first data and the second data includes: Combining the fixed value item classification and the fixed value item name of the first data and the fixed value item classification and the fixed value item name of the second data to form a combined character string; Create an initialized edit distance matrix based on the combined string; Filling generates an edit distance matrix according to the initial edit distance matrix; The first coefficient is determined according to the generated edit distance matrix and the first formula.
[0052] In this embodiment, the method for calculating the first coefficient using the first data and the second data may adopt the Levenshtein distance algorithm.
[0053] by (first data) and Taking the calculation of the fuzzy matching coefficient (first coefficient) of (second data) as an example, and The fixed value item classification (classify) and the fixed value item name (name) are combined to form a classify_name string (i.e., a combined string), which is recorded as and .
[0054] Specifically, the calculation steps are as follows: First, create an initial edit distance matrix, record and The lengths of the two strings are and , create a Dimensional Matrix ,in The values in the first column are 0, 1, 2, ..., , The values in the first row are 0, 1, 2, ..., .
[0055] Next, fill in the edit distance matrix, starting from the upper left corner and filling the matrix row by row and column by column. For each cell (i, j), calculate the minimum of the following three cases: (1) The value of the upper left cell (i-1, j-1). If the i-th character of the first string is equal to the j-th character of the second string, no editing operation is required. (2) The value of the upper cell (i-1, j) is increased by 1, indicating that the i-th character of the first string is deleted; (3) The value of the left cell (i, j-1) is increased by 1, indicating that the j-th character of the second string is inserted after the i-th character of the first string.
[0056] Then, the fuzzy matching coefficient is calculated and the edit distance matrix is completed. The value j in the last row and last column of is the minimum edit distance. and The fuzzy matching coefficient The calculation formula (i.e. the first formula) is:
[0057] Finally, the value of the lower right cell of the matrix is the edit distance, which represents the minimum number of edit operations required to transform the first string into the second string.
[0058] It can be concluded from the above that this embodiment effectively improves the accuracy and flexibility of fuzzy matching by combining character strings; secondly, by initializing the edit distance matrix and gradually filling it, the minimum edit distance between two character strings can be systematically calculated to quantify the similarity between them; finally, the fuzzy matching degree calculated according to the edit distance can intuitively evaluate the matching degree of two data, providing strong support for data comparison, classification and screening.
[0059] In one embodiment of the present disclosure, calculating the second coefficient according to the first data and the second data includes: Obtaining historical matching records between the first data and the second data; The second coefficient is determined according to the historical matching record and the second formula.
[0060] In this embodiment, the method for calculating the second coefficient from the first data and the second data can adopt the time decay memory method. In this embodiment, the second coefficient (memory matching coefficient) can be calculated by (first data) and Take the calculation of the memory matching coefficient (second coefficient) of (second data) as an example.
[0061] Specifically, the calculation steps are as follows: First, search and Historical matching records; Second, when there is no and When the historical matching record is , the record factor is 0. and When there is a historical matching record, the matching coefficient is memorized The calculation formula (the second formula) is:
[0062] in, is the attenuation factor, ; Desirable ; is the current date; The date the record was updated; Indicates the number of days from the time the record is updated to the current time; To record the factor, determine the number of manual adjustments. When the number is 0, ; When the number is 1 to 3, ; Times = 4~6, ; When the number of times is ≥7, This embodiment is achieved by Controls the influence of the number of memory matches on the memory match coefficient.
[0063] It can be concluded from the above that this embodiment can make full use of past data and improve the accuracy and reliability of coefficient calculation by introducing historical matching records. Secondly, the influence of time factors on matching records is taken into account, so that the influence of recent matching records on the coefficient is greater, which is more in line with the actual situation. Finally, by controlling the influence of the number of memory matching times on the memory matching coefficient, the coefficient value can be adjusted more finely to meet the needs of different scenarios. This embodiment not only improves the calculation efficiency, but also enhances the practicality and adaptability of the coefficient.
[0064] In one embodiment of the present disclosure, matching the first coefficient and the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data includes: The first coefficient and the second coefficient are weightedly calculated to determine a comprehensive matching coefficient of the first data and the second data.
[0065] In this embodiment, to calculate the comprehensive matching coefficient of the first data and the second data, the first coefficient and the second coefficient need to be weighted, that is, ,in, is the weight of the fuzzy matching coefficient, is the weight of the record matching coefficient, ; Desirable ,pass and The influence of the memory matching coefficient on the matching result is controlled. Finally, a set of comprehensive matching coefficients of the first data and the second data is obtained. .
[0066] From the above, it can be concluded that this embodiment introduces fuzzy matching weights and memory matching weights , the influence of different matching methods on the final result can be adjusted according to actual needs, thereby improving the accuracy and reliability of matching.
[0067] In one embodiment of the present disclosure, the relay protection standard setting item matching method further includes: Check the matching results and correct any deviations.
[0068] After obtaining the best matching result, it is necessary to check whether the matching result is correct. If the result is biased or incorrect, it needs to be corrected.
[0069] Exemplarily, the automatic matching results are checked and confirmed by adjustment business personnel based on their professional knowledge and work experience, and manual intervention is performed when the matching results are incorrect.
[0070] It can be concluded from the above that this embodiment ensures the accuracy and reliability of the matching results and improves the precision and practicality of the fixed value item matching.
[0071] In one embodiment of the present disclosure, the relay protection standard setting item matching method further includes: The matching results are recorded and updated to generate a matching result library.
[0072] In this embodiment, the matching situation in the final matching result is saved. When the matching situation occurs for the first time, a matching record is added. When the matching situation occurs multiple times, the number of times is increased in the existing record, thereby realizing the update of the matching record.
[0073] From the above, it can be concluded that after adding the matching result record update function, this embodiment can accumulate and optimize matching experience, form a rich matching result library, facilitate subsequent quick reference and comparison, improve matching efficiency and accuracy, and promote the intelligence and refinement of fixed value item management.
[0074] Example 1: Establish a standard value item list library, with a total of 1956 standard value items, select 200 value items, and match the value items with the standard value item set 50 times. Use fuzzy matching and fuzzy matching with time decay memory to match the value items. The current date and the record update date use the same date. The accuracy distribution of the experiment is as follows Figure 2 As shown, the matching intermediate quantity and process are as follows Figure 3 shown.
[0075] exist Figure 3 In the method, firstly, the non-standard fixed value item is input, then the edit distance is calculated and the number of manual interventions is recorded, then the fuzzy matching coefficient and the memory matching coefficient are calculated according to the edit distance, and then the comprehensive matching coefficient is calculated according to the fuzzy matching coefficient and the memory matching coefficient, and finally the standard fixed value item is obtained.
[0076] After the first experiment, since the number of manual adjustments was zero, the matching accuracy of the fixed value items of the two schemes was the same. After each experiment, the fixed value items that failed to match were manually adjusted. Figure 2 From the analysis, it can be seen that when the number of matched fixed value items and the number of manual adjustments gradually increase, the accuracy gradually increases and approaches 1. However, due to the influence of the time decay algorithm, the influence of manual adjustment on the comprehensive matching coefficient decreases, so the accuracy fluctuates. In summary, the fixed value item matching method based on fuzzy matching and time decay memory can accurately match the standard fixed value items while considering manual adjustments and time domains. The specific flow chart of fixed value item matching is as follows: Figure 4 shown.
[0077] exist Figure 4 In the process, the first step is to define the fixed value items; the second step is to establish a set of standard fixed value items; the third step is to create an initial edit distance matrix, then edit the distance matrix, and calculate the fuzzy matching coefficient; the fourth step is to calculate the memory factor, and then calculate the memory matching coefficient; the fifth step is to calculate the comprehensive matching coefficient; the sixth step is to obtain the optimal matching fixed value items; the seventh step is to manually confirm and adjust the fixed value items; the eighth step is to end. Among them, the seventh step also updates the number of manual adjustments.
[0078] Corresponding to the relay protection standard setting item matching method in the above embodiment, Figure 5 This is a structural block diagram of a relay protection standard setting item matching system provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 5The relay protection standard setting item matching system 20 includes: a data acquisition module 21, a first coefficient calculation module 22, a second coefficient calculation module 23, a coefficient matching module 24 and a matching result determination module 25.
[0079] The data acquisition module 21 is used to acquire first data and second data; wherein the first data is a list of target value items, and the second data is a list of standard value items; A first coefficient calculation module 22, used to calculate a first coefficient according to the first data and the second data, the first coefficient being a fuzzy matching coefficient; A second coefficient calculation module 23, used to calculate a second coefficient according to the first data and the second data, the second coefficient being a memory matching coefficient; A coefficient matching module 24, used for matching the first coefficient and the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data; The matching result determination module 25 is used to determine the matching result of the first data and the second data according to the comprehensive matching coefficient.
[0080] In one embodiment of the present disclosure, the relay protection standard setting item matching system 20 further includes: a structured storage module: A structured storage module, used for storing the fixed-value item classification and the fixed-value item name of the first data in a structured manner; The fixed value item classification and the fixed value item name of the second data are stored in a structured manner.
[0081] In one embodiment of the present disclosure, the first coefficient calculation module 22 is further configured to: Combining the fixed value item classification and the fixed value item name of the first data and the fixed value item classification and the fixed value item name of the second data to form a combined character string; Create an initialized edit distance matrix based on the combined string; Filling generates an edit distance matrix according to the initial edit distance matrix; The first coefficient is determined according to the generated edit distance matrix and the first formula.
[0082] In one embodiment of the present disclosure, the second coefficient calculation module 23 is further configured to: Obtaining historical matching records between the first data and the second data; The second coefficient is determined according to the historical matching record and the second formula.
[0083] In one embodiment of the present disclosure, the coefficient matching module 24 is further configured to: The first coefficient and the second coefficient are weightedly calculated to determine a comprehensive matching coefficient of the first data and the second data.
[0084] In one embodiment of the present disclosure, the relay protection standard setting item matching system 20 further includes: a matching result correction module; The matching result correction module is used to check the matching results and correct the deviations in the matching results.
[0085] In one embodiment of the present disclosure, the relay protection standard setting item matching system 20 further includes: a matching result recording module; The matching result recording module is used to record and update the matching results and generate a matching result library.
[0086] See also Figure 6 , Figure 6 A schematic block diagram of an electronic device provided by an embodiment of the present disclosure. Figure 6 The electronic device 300 in the embodiment shown may include: one or more processors 301, one or more input devices 302, one or more output devices 303 and one or more memories 304. The processors 301, input devices 302, output devices 303 and memories 304 communicate with each other via a communication bus 305. The memory 304 is used to store computer programs, which include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. The processor 301 is configured to call the program instructions to execute the functions of each module / unit in the above-mentioned device embodiments, such as Figure 5 The functions of modules 21 to 25 are shown.
[0087] It should be understood that in the embodiment of the present disclosure, the processor 301 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0088] The input device 302 may include a touch panel, a fingerprint collection sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.
[0089] The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 301. A portion of the memory 304 may also include a non-volatile random access memory. For example, the memory 304 may also store information about the device type.
[0090] In a specific implementation, the processor 301, input device 302, and output device 303 described in the embodiments of the present disclosure can execute the implementation methods described in the first and second embodiments of the relay protection standard setting item matching method provided in the embodiments of the present disclosure, and can also execute the implementation methods of the electronic device described in the embodiments of the present disclosure, which will not be repeated here.
[0091] In another embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by the processor, all or part of the processes in the above-mentioned embodiment method are implemented, and the computer program can also be completed by instructing the relevant hardware through the computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. 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, etc. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0092] The computer-readable storage medium may be an internal storage unit of the electronic device of any of the aforementioned embodiments, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0093] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. 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 this disclosure.
[0094] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the electronic devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0095] In the several embodiments provided in the present application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present disclosure.
[0097] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for matching relay protection standard setting items, characterized in that: include: Acquire first data and second data; wherein the first data is a list of target value items, and the second data is a list of standard value items; Calculate a first coefficient according to the first data and the second data, where the first coefficient is a fuzzy matching coefficient; Calculate a second coefficient according to the first data and the second data, where the second coefficient is a memory matching coefficient; Matching the first coefficient and the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data; A matching result between the first data and the second data is determined according to the comprehensive matching coefficient.
2. The relay protection standard setting item matching method according to claim 1, characterized in that: After the first data and the second data are obtained, the method further comprises: Structurally storing the fixed-value item classifications and fixed-value item names of the first data; The fixed value item classification and fixed value item names of the second data are stored in a structured manner.
3. The relay protection standard setting item matching method according to claim 2, characterized in that: The calculating the first coefficient according to the first data includes: Combining the fixed-value item classification and the fixed-value item name of the first data and the fixed-value item classification and the fixed-value item name of the second data to form a combined character string; Creating an initialized edit distance matrix according to the combined character string; Filling the initialized edit distance matrix to generate an edit distance matrix; The first coefficient is determined according to the generated edit distance matrix and a first formula.
4. The relay protection standard setting item matching method according to claim 3, characterized in that: The calculating the second coefficient according to the second data comprises: Acquire historical matching records of the first data and the second data; The second coefficient is determined according to the historical matching record and a second formula.
5. The relay protection standard setting item matching method according to claim 4, characterized in that: The matching the first coefficient and the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data includes: The first coefficient and the second coefficient are weightedly calculated to determine a comprehensive matching coefficient between the first data and the second data.
6. The relay protection standard setting item matching method according to claim 1, characterized in that: Also includes: The matching results are checked and any deviations in the matching results are corrected.
7. The relay protection standard setting item matching method according to claim 1, characterized in that: Also includes: The matching results are recorded and updated to generate a matching result library.
8. A relay protection standard setting item matching system, characterized in that: include: A data acquisition module, used to acquire first data and second data; wherein the first data is a list of target fixed value items, and the second data is a list of standard fixed value items; A first coefficient calculation module, used for calculating a first coefficient according to the first data and the second data, wherein the first coefficient is a fuzzy matching coefficient; A second coefficient calculation module, used for calculating a second coefficient according to the first data and the second data, wherein the second coefficient is a memory matching coefficient; A coefficient matching module, used for matching the first coefficient with the second coefficient to obtain a comprehensive matching coefficient of the first data and the second data; A matching result determination module is used to determine the matching result of the first data and the second data according to the comprehensive matching coefficient.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.