Method and apparatus for automatically generating power supply anti-misoperation logic formulas

By acquiring CIM data from the power system and using a knowledge base for error prevention logic to generate error prevention logic formulas, the problem of low generation efficiency and accuracy in existing technologies has been solved, and automated generation and maintenance of error prevention logic formulas have been achieved.

CN115310921BActive Publication Date: 2025-10-31ZHUHAI UNITECH POWER TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110500838.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-08
Publication Date
2025-10-31
Estimated Expiration
2041-05-08

AI Technical Summary

Technical Problem

The generation efficiency and accuracy of anti-misoperation logic formulas in existing power systems are low, and maintenance and modification are inconvenient. Reliance on manual compilation or internal program editing makes it difficult to effectively solve the problem.

Method used

By acquiring the Common Information Model (CIM) data of target sites in the power system, and utilizing the logical relationship data table in the anti-misoperation logic knowledge base, the location feature information and logical rule description information of power equipment are automatically matched and combined to generate anti-misoperation logic formulas.

Benefits of technology

It improves the efficiency and accuracy of generating anti-misoperation logic formulas, simplifies the maintenance and modification process, and realizes automated generation of anti-misoperation logic formulas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115310921B_ABST
    Figure CN115310921B_ABST
Patent Text Reader

Abstract

This invention discloses a method for automatically generating power system anti-misoperation logic formulas, comprising: acquiring Public Information Model (CIM) data of target sites in a power system; matching power equipment with a first logical relationship data table in an anti-misoperation logic knowledge base to determine the location feature information corresponding to the power equipment; matching the location feature information corresponding to the power equipment with a second logical relationship data table in multiple logical relationship data tables to determine multiple logical rule description information corresponding to the power equipment; matching the multiple logical rule description information corresponding to the power equipment with a third logical relationship data table in multiple logical relationship data tables to generate logical rule element information corresponding to the power equipment; and combining the logical rule element information matched by each power equipment according to a preset format to obtain the anti-misoperation logic formula for the target site. This invention solves the problems of low generation efficiency and accuracy of anti-misoperation logic formulas, and inconvenience in maintenance, modification, and review.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power systems, and more specifically, to a method and apparatus for automatically generating power system anti-misoperation logic formulas. Background Technology

[0002] The anti-misoperation operating system is a crucial guarantee for the safe operation of power systems. Among its components, the anti-misoperation logic is the most critical data, serving as the basis for judgments during simulated switching operations and determining the correctness and effectiveness of the anti-misoperation operating system.

[0003] Currently, common error prevention logic generally employs either manually compiled logic formulas or modular logic rule bases developed through programming. Manually compiled logic formulas are typically created by professionals based on the five-prevention standards, considering factors such as substation wiring methods, electrical equipment types, equipment characteristics, and operational requirements. These formulas are a set of error prevention logic expressions similar to Ameo language and require user approval before being implemented. Modular logic rule bases, on the other hand, need to be implemented within the program, which then determines the correctness of equipment operation.

[0004] However, manually compiling logic formulas suffers from low efficiency, susceptibility to errors, and lack of standardization. It objectively demands high levels of professional competence, experience, and focus from the writers, making it difficult to avoid mistakes. On the other hand, using programs to create modular logic rule bases presents challenges. Since the rules are enclosed within the program, modifications and maintenance are inflexible, and user review of the rules is inconvenient. In other words, the anti-misoperation logic used in power systems in related technologies can only be obtained through manual editing by professionals or internal program editing, resulting in low efficiency and accuracy in generating anti-misoperation logic formulas, and difficulties in maintenance, modification, and review.

[0005] There is currently no effective solution to the above problems. Summary of the Invention

[0006] This invention provides a method and apparatus for automatically generating power anti-misoperation logic formulas, which at least solves the technical problems of low generation efficiency and accuracy, and inconvenience in maintenance, modification and review, caused by relying on handwritten editing or internal program editing to obtain anti-misoperation logic formulas.

[0007] According to one aspect of the present invention, a method for automatically generating power system anti-misoperation logic formulas is provided, comprising: S10: acquiring public information model (CIM) data of a target site in a power system, wherein the CIM data includes equipment types of various power devices within the target site and connection relationship information between the various power devices; S20: traversing each power device within the target site and sequentially performing the following operations: matching the power devices with a first logical relationship data table of an anti-misoperation logic knowledge base to determine the location feature information corresponding to the power devices, wherein the anti-misoperation logic knowledge base includes multiple pre-constructed logical relationship data tables, and the first logical relationship data table includes the association relationship between multiple equipment types and their respective corresponding location feature information discrimination rules; in the multiple logical relationships The second logical relationship data table in the data table matches the location feature information corresponding to the aforementioned power equipment to determine multiple logical rule description information corresponding to the aforementioned power equipment. The second logical relationship data table includes the association between multiple location feature information and their respective corresponding logical rule description information. The multiple logical rule description information corresponding to the aforementioned power equipment is matched with the third logical relationship data table in the multiple logical relationship data tables to generate logical rule element information corresponding to the aforementioned power equipment. The third logical relationship data table includes the association between multiple logical rule description information and their respective corresponding logical rule element calculation formulas. S30: The logical rule element information matched by each of the aforementioned power equipment is combined according to a preset format to obtain the anti-misoperation logical formula for the aforementioned target site.

[0008] According to another aspect of the present invention, an apparatus for automatically generating power system anti-misoperation logic formulas is also provided, comprising: an acquisition unit, configured to acquire public information model (CIM) data of a target site in a power system, wherein the CIM data includes equipment types of various power devices within the target site and connection relationship information between the various power devices; and a matching unit, configured to traverse each power device within the target site and sequentially perform the following operations: matching the power devices with a first logical relationship data table of an anti-misoperation logic knowledge base to determine the location feature information corresponding to the power devices, wherein the anti-misoperation logic knowledge base includes multiple pre-constructed logical relationship data tables, and the first logical relationship data table includes the association relationship between multiple equipment types and their respective corresponding location feature information discrimination rules; and matching the multiple logical relationship data tables with the first logical relationship data table. The second logical relation data table in the relation data table matches the location feature information corresponding to the aforementioned power equipment to determine multiple logical rule description information corresponding to the aforementioned power equipment. The second logical relation data table includes the association between multiple location feature information and their respective corresponding logical rule description information. The multiple logical rule description information corresponding to the aforementioned power equipment is matched with the third logical relation data table in the multiple logical relation data tables to generate logical rule element information corresponding to the aforementioned power equipment. The third logical relation data table includes the association between multiple logical rule description information and their respective corresponding logical rule element calculation formulas. A generation unit is used to combine the logical rule element information matched by each of the aforementioned power equipment according to a preset format to obtain the anti-misoperation logical formula for the aforementioned target site.

[0009] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described method for automatically generating power anti-misoperation logic formulas when running.

[0010] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method for automatically generating the power supply anti-misoperation logic formula through the computer program.

[0011] In this embodiment of the invention, after loading CIM data, the location feature information corresponding to the power equipment is determined by the first logical relationship data table constructed in the anti-misoperation logic knowledge base. The logical rule description information matching the location feature information is determined by the second logical relationship data table. The logical rule description information is matched by the third logical relationship table to generate logical rule element information corresponding to the power equipment. The logical rule element information is combined to obtain the anti-misoperation logic formula. This realizes the generation of logical rule element information matching each power equipment based on the CIM data of the target site in the power system and according to the multiple visualized logical relationship data tables in the anti-misoperation logic knowledge base, thereby generating the anti-misoperation logic formula. The anti-misoperation logic formula for the entire site is automatically generated, thereby improving the generation efficiency and accuracy of the anti-misoperation logic formula. This solves the technical problems of low generation efficiency and accuracy, and inconvenience in maintenance, modification and review caused by relying on manual editing or internal program editing to obtain the anti-misoperation logic formula. Attached Figure Description

[0012] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0013] Figure 1 This is a flowchart of an optional method for automatically generating power anti-misoperation logic formulas according to an embodiment of the present invention;

[0014] Figure 2 This is an application architecture diagram of an optional method for automatically generating power anti-misoperation logic formulas according to an embodiment of the present invention;

[0015] Figure 3 This is an example wiring diagram of an optional method for automatically generating power anti-misoperation logic formulas according to an embodiment of the present invention;

[0016] Figure 4 This is a schematic diagram of an optional method for automatically generating power anti-misoperation logic formulas according to an embodiment of the present invention;

[0017] Figure 5 This is a schematic diagram of an optional device for automatically generating power supply anti-misoperation logic formulas according to an embodiment of the present invention. Detailed Implementation

[0018] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0019] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0020] According to one aspect of the present invention, a method for automatically generating power supply anti-misoperation logic formulas is provided, such as... Figure 1 As shown, the method for automatically generating power system anti-misoperation logic formulas includes:

[0021] S110, Obtain the Common Information Model (CIM) data of the target site in the power system, wherein the CIM data includes the equipment type of each power device in the target site and the connection relationship information between each power device;

[0022] S120, traverse each power device within the target site and perform the following operations in sequence:

[0023] S122, Match the power equipment with the first logical relationship data table of the anti-misoperation logic knowledge base to determine the location feature information corresponding to the power equipment. The anti-misoperation logic knowledge base includes multiple pre-built logical relationship data tables, and the first logical relationship data table includes the association relationship between multiple equipment types and their respective location feature information discrimination rules.

[0024] S124, Match the location feature information corresponding to the power equipment in the second logical relationship data table of multiple logical relationship data tables, and determine multiple logical rule description information corresponding to the power equipment, wherein the second logical relationship data table includes the association relationship between multiple location feature information and their respective corresponding logical rule description information;

[0025] S126, Match the multiple logical rule description information corresponding to the power equipment with the third logical relationship data table in the multiple logical relationship data tables to generate the logical rule element information corresponding to the power equipment. The third logical relationship data table includes the association relationship between the multiple logical rule description information and the calculation formula of their respective logical rule elements.

[0026] S130 combines the logical rule element information of each power device according to a preset format to obtain the anti-misoperation logic formula for the target site.

[0027] Optionally, in this embodiment, the method for automatically generating power system anti-misoperation logic formulas described above can be applied to, but is not limited to, power systems. By combining natural language description syntax with topology calculation statements, it achieves the description of a set of devices with topological connections in a wiring diagram using natural language description methods, the definition of device attributes for a specific set of devices, and the judgment statements and sets of natural language descriptions obtained using natural language description methods. Furthermore, the anti-misoperation logic knowledge base constructed using the above description method includes a first logical relationship data table, a second logical relationship data table, a third logical relationship data table, etc.

[0028] It should be noted that, in this embodiment, after loading CIM data, the location feature information corresponding to the power equipment is determined by the first logical relationship data table constructed in the anti-misoperation logic knowledge base, the logical rule description information matching the location feature information is determined by the second logical relationship data table, and the logical rule description information is matched by the third logical relationship table to generate logical rule element information corresponding to the power equipment. The logical rule element information is combined to obtain the anti-misoperation logic formula. This realizes the generation of logical rule element information matching each power equipment based on the CIM data of the target site in the power system and according to multiple logical relationship data tables in the anti-misoperation logic knowledge base, thereby generating the anti-misoperation logic formula. The anti-misoperation logic formula for the entire site is automatically generated, thereby improving the generation efficiency of the anti-misoperation logic formula. This solves the technical problems of low generation efficiency and accuracy, and inconvenience in maintenance, modification and review caused by relying on manual editing or internal program editing to obtain the anti-misoperation logic formula.

[0029] Optionally, in this embodiment, the aforementioned Public Information Model (CIM) data may be, but is not limited to, files that can identify multiple power grid CIM models imported into the graphical software interface provided by the system, such as graphics or files with CIM connection relationships.

[0030] Optionally, the aforementioned anti-misoperation knowledge base can be used to identify and analyze each electrical device in the acquired CIM data of the circuit system, facilitating the automatic generation of logical formulas. The identification and analysis of electrical devices in the CIM model data according to the anti-misoperation knowledge base can be performed, but is not limited to, using a parsing engine. The parsing engine can, but is not limited to, parse the device information in the CIM model file, perform matching analysis between the device information and the anti-misoperation logic knowledge base, and perform formula calculations.

[0031] The aforementioned identifiable CIM model files may contain, but are not limited to, the following data formats: SIV format files, USF format files, SVG format files, CIM-E format files, and some CIM model files described in conventional XML formats, etc. SIV and USF files are graphic model data file formats developed by Zhuhai UTE Electric Power Technology Co., Ltd. SVG is an image file format; its full English name is Scalable Vector Graphics. CIM-E model files are CIM models described using the Power System Data Markup Language—E Language Specification (hereinafter referred to as "E Language").

[0032] The embodiments provided in this application load the CIM model to be processed in the power system of the target site, and, in conjunction with the equipment classification rule table in the anti-misoperation logic knowledge base, parse the equipment type corresponding to each device in the model file to obtain the location feature information corresponding to the equipment type of each power device. The location feature information is then matched with the logic rule definition table in the knowledge base to obtain the corresponding logic rule description information. Then, the rule instantiation calculation table is used to obtain the logic rule elements corresponding to each logic rule description information. Finally, based on the above logic rule elements, a logic formula is determined so that the anti-misoperation logic formula for the substation can be assembled. This achieves automatic generation of the anti-misoperation logic rule formula for the entire site, thereby improving the generation efficiency and accuracy of the anti-misoperation logic formula. This solves the technical problems of low generation efficiency and accuracy, and inconvenience in maintenance, modification, and review caused by relying on manual editing or internal program editing to obtain the anti-misoperation logic formula.

[0033] As an optional approach, the above method matches the power equipment with the first logical relationship data table of the anti-misoperation logic knowledge base to determine the location feature information corresponding to the power equipment, including:

[0034] S11, Obtain information on the equipment type and connection relationship of the power equipment;

[0035] S12, match the device type in the first logical relation data table to obtain one or more matching items;

[0036] S13. Based on the connection relationship information, calculate and process one or more matching items according to the discrimination rules of the location feature information to obtain the location feature information corresponding to the power equipment.

[0037] Optionally, the first logical relationship data table can be a device classification rule table, which defines the device connection relationships and defines and classifies devices and device types based on device location. It may include, but is not limited to, calculations of location characteristics, device type, and connection relationship characteristics.

[0038] Optionally, the devices in the CIM file are traversed to obtain the device type and connection relationship for each device, and then matched against the device types in the device classification rule table. If a device type matching the power device exists in the device classification rule table, a successful match is determined, and the corresponding power device participates in the connection relationship feature calculation. Simultaneously, the location feature information of the power device is classified according to its device type.

[0039] Optionally, matching the CIM model data with the equipment classification rule table of the error prevention logic knowledge base to determine the location feature information corresponding to each power device can be done by traversing each power device at the target site and performing the above operations in sequence.

[0040] Taking the 3092 disconnect switch as an example, according to the equipment classification rule table and the location feature information corresponding to the equipment type, it can be classified as "PT disconnect switch".

[0041] As an alternative approach, when there are multiple location feature information corresponding to power equipment, the location feature information that matches the first and last position of the power equipment is taken as the location feature information corresponding to the power equipment.

[0042] It should be noted that the location feature information that matches the first position of the power equipment can be matched sequentially according to the recorded order of the location classification rule table, and the location feature information that matches the equipment type of the power equipment is the first one.

[0043] As an optional approach, the location feature information corresponding to the power equipment is matched in the second logical relation data table among multiple logical relation data tables to determine the logical rule description information corresponding to the power equipment, including:

[0044] S21, Obtain the operation type corresponding to the power equipment, wherein the power equipment includes at least two different operation types;

[0045] S22, in the second logical relationship data table, combine the location feature information of the power equipment to find the logical rule description information corresponding to different operation types. The logical rule description information is used to represent the logical rules of the power equipment under the corresponding operation type.

[0046] S23, summarize the various logical rule description information corresponding to different operation types into multiple logical rule description information corresponding to power equipment.

[0047] Optionally, the second logical relationship data table can be a logical rule definition table, which is a definition table oriented towards "location characteristics." For the location characteristics corresponding to the preset equipment type, the logical rule components are defined. These may include, but are not limited to, location characteristics, switching types, logical rule descriptions, and alarm levels.

[0048] It should be noted that electrical equipment mainly refers to switching devices that connect and disconnect circuits. The state transition between connection and disconnection can be achieved through operation. Different electrical devices, based on their functions and construction, have different operation types; operation type is a device attribute. For example, the operation types of switches, knife switches, and grounding switches are: open and close; the operation types of handcarts are: switch to operation, switch to test, and switch to maintenance; the operation types of interlocking handles are: switch to working, switch to disconnect, and switch to maintenance.

[0049] Optionally, different operation types are represented by different symbols. For example: closing is represented by H, opening by L, switching to operation by Y, switching to maintenance by J, switching to testing by S, and switching to disconnection by 2.

[0050] Optionally, using the location features matched in the device classification rule table, a fuzzy matching is performed in the logical rule definition table to obtain a rule logic description that matches the device type corresponding to the location features.

[0051] As an optional approach, multiple logical rule descriptions corresponding to the power equipment are matched with a third logical relation data table in multiple logical relation data tables to generate logical rule element information corresponding to the power equipment, including:

[0052] S31, in the third logical relation data table, obtain the logical rule element calculation expression corresponding to the multiple logical rule description information of the power equipment, and calculate according to the logical rule element calculation expression to obtain the set of associated equipment of the power equipment under the requirements of the corresponding logical rule description information.

[0053] S32, in the third logical data table, obtain the set constraint state values ​​corresponding to the multiple logical rule description information of the power equipment, where the set constraint state values ​​are values ​​used to represent the operating status of the associated equipment corresponding to the power equipment.

[0054] S33. Assign values ​​to the corresponding associated devices using set constraint state values ​​to generate logical rule element information for the power equipment.

[0055] Optionally, the third logical relationship data table can be a rule instantiation calculation table, which is a calculation formula table oriented towards the "logical rule description". It calculates the set of related devices corresponding to the logical rule description, sets the constraint states of the device set, and instantiates the logical rule. It may include, but is not limited to: the logical rule description, the set of devices related to the rule, and the set constraint state values.

[0056] Optionally, the rule logic description information is used to perform a loop matching in the rule instantiation calculation table. If a match is successful, the logical rule corresponding to each device is obtained according to the corresponding calculation formula in the rule instantiation calculation table.

[0057] As an optional approach, the above calculation based on the logical rule element calculation expression yields the set of associated devices for power equipment under the corresponding logical rule description information requirements, including:

[0058] S41, Obtain CIM Data;

[0059] S42, perform a topology search in the CIM data based on the boundary conditions in the logical rule element calculation expression to obtain devices that conform to the filter type in the logical rule element calculation expression.

[0060] Optionally, if a logical rule element is matched, an expression is calculated based on the logical rule element to obtain a set of devices that meet the filtering type.

[0061] As an optional approach, the above-mentioned logical rule element information matching various power devices is combined according to a preset format to obtain the anti-misoperation logic formula for the target site, including:

[0062] The description information of multiple logical rules corresponding to each power device, as well as the information of their respective logical rule elements, are sequentially filled into the fourth logical relationship data table of multiple logical relationship data tables to generate the anti-misoperation logic formula for the target site.

[0063] Optionally, the fourth logical relation data table can be a rule output format table, used to fill in the data according to the format specified in the format table to obtain a logic formula for preventing misoperation that meets the specified format. The rule output format table may include, but is not limited to, the following: power equipment name, operation identifier, category identifier, formula start character, formula item interlocking device, description method of formula item interlocking device, constraint symbol, alarm level, formula item constraint value, and formula end character.

[0064] Optionally, the results obtained from the above analysis and calculation, including but not limited to rule logic descriptions and logic rules, can be filled into the rule output format table to obtain a logic formula for preventing misoperation that meets the format requirements.

[0065] As an optional approach, the above-mentioned steps, before acquiring the CIM data of the target site in the power system, also include:

[0066] Build a knowledge base for error prevention logic.

[0067] Optionally, constructing a mis-prevention logic knowledge base is not limited to constructing a device classification rule table, a logic rule definition table, a rule instantiation calculation table, and a rule output format table. Furthermore, it is not limited to constructing a parsing engine for parsing the mis-prevention logic knowledge base and CIM model files. The parsing engine parses the circuit connection diagrams in the CIM model files to obtain the device names, device types, and connection relationships of the power equipment included in the site. By matching and calculating with the mis-prevention logic knowledge base, the mis-prevention operation logic formula is obtained.

[0068] Optionally, the overall application architecture of the above-described method for automatically generating power system anti-misoperation logic formulas is not limited to, for example... Figure 2 As shown. The substation CIM model is loaded. The model file includes the equipment names, equipment types, and equipment connection relationships of all electrical equipment included in the substation. The system iterates through the equipment names, equipment types, and equipment connection relationships of the electrical equipment included in the CIM model file, performing iterative matching and calculations in the equipment classification rule table contained in the error prevention logic knowledge base, classifying the electrical equipment according to its location feature information. Based on the obtained location feature information, iterative matching is performed in the logical relationship data table contained in the error prevention logic knowledge base to determine the rule description information corresponding to the equipment type. The rule instantiation calculation table is used to match the logical rule description information with the logical rule elements, filling in the specified format, and summarizing and assembling the logic formulas after the power equipment instantiation to obtain the substation logic formula.

[0069] Specific combination Figure 3 The circuit connection diagram shown below will be used for illustration:

[0070] The first step is to load the CIM model file (power system wiring diagram, model file, etc.) and obtain the equipment name, equipment type and connection relationship information of all the equipment contained in the file;

[0071] The second step is to iterate through the devices in the CIM model, using the device name, device type and connection relationship of each device to perform iterative matching and calculation with the definitions in the device classification rule table, and classify each power device according to its location characteristics; for example, the 3092 disconnect switch is classified as "PT disconnect switch" according to the calculation.

[0072] The third step involves performing a cyclical matching between the location features obtained in the second step and the key values ​​in the logical rule definition table to obtain the rule logic description for that device type. Each device's location feature corresponds only once to a key value in the logical rule definition table. For example, taking the 3902 disconnect switch as an example, its device type is "PT disconnect switch," and the rule logic description for "PT disconnect switch" includes "disconnect switch-related grounding is in the open position" and "disconnect switch-related gate is closed."

[0073] The fourth step involves performing another search and matching in the rule instantiation calculation table, based on the rule logic description determined in the previous step. Upon successful matching, the set of devices required by the rule is calculated according to the rule instantiation calculation formula. Then, the state of the device set is obtained and constrained according to the definition in the set constraint state value. For example, the rule logic description "disconnector-related grounding in the terminating position" corresponds to the rule-related device set "within the disconnector range. (grounding switch + ground wire)", which, after calculation, yields "35kVⅡMX-D, 3642-MD, 3652-MD, 3662-MD, 39020, 39027, 39027-1D, 39027-2D". The value in the "set constraint state value" is 0, therefore, the result corresponding to disconnector 3902 is "35kVⅡMX-D value 0, 3642-MD value 0, 3652-MD value 0, 3662-MD value 0, 39020 value 0, 39027 value 0, 39027-1D value 0, 39027-2D value 0". Meanwhile, the rule element calculation description for "within the disconnector range. network door" is "obviously disconnected equipment. network door", but no network door was found after calculation, so the logic is empty.

[0074] The fifth step involves filling the calculation results obtained in steps three and four into the rule output format table to obtain the instantiated logic formula that meets the format requirements. For example, using the aforementioned knife switch 3902 as an example, it can be represented as:

[0075] 3902H:

[0076] 35kVⅡMX-D=0, 3642-MD=0, 3652-MD=0, 3662-MD=0, 39020=0, 39027=0, 39027-1D=0, 39027-2D=0!

[0077] Step six involves iterating through all operable devices and finally summarizing them into a complete anti-misoperation logic formula for the site. The result can be as follows: Figure 4 (This is a partial screenshot)

[0078] It should be noted that the classification and logical rules of the various operable devices involved in this embodiment may include:

[0079] In the CIM model of a power grid, the basic equipment types mainly include circuit breakers, disconnectors, grounding switches, grid gates, and temporary grounding wires. However, the same equipment has different functions depending on its wiring type and location. Correspondingly, its operational constraints (logic formulas) also differ. For example, when a disconnector is located in the bus voltage transformer bay, its closing operation condition only needs to constrain the associated grounding switches and temporary grounding wires, without needing to consider the states of other switches on the bus. However, when it is located on the bus side of a double-bus connection bay, its closing operation condition can have multiple conditions. Condition one: when the bay is in cold standby, it can close, which we call a power-on operation; Condition two: when the bay is being powered by another bus, and the bus tie bay is also operating, it can close, which we call a bus-switching operation. Only one of these conditions needs to be met. Each condition that satisfies the operation is called a branch. Therefore, further classifying the equipment under different wiring types can be called topology types, which serve as the basis for subsequent knowledge base construction. For example, a main transformer bay circuit breaker is defined as a main transformer switch; a bus tie bay circuit breaker is defined as a bus tie switch; a PT bay disconnector is defined as a PT disconnector, and so on. Simultaneously, the logical rules for each topology type of equipment are summarized, and each branch is named.

[0080] Based on the above definitions, the syntax of the natural language description method in this embodiment, as the basic language for constructing the knowledge base, can, but is not limited to, mainly use natural language keywords as keywords, and is defined as: topological calculation statement, judgment statement, and set operation statement.

[0081] I. Topology Calculation Statements

[0082] Topology calculation statements are mainly used to calculate the topological connection relationships in a point power grid CIM type. Through the calculation of connection relationships, the desired set of related equipment can be obtained.

[0083] 1) Basic calculation statement

[0084] The basic syntax is "boundary condition + filter type". Boundary conditions include "direct connection", "connection within the interval", and "within this voltage level". Filter conditions include: basic equipment type or equipment with special attributes. For example: "direct connection.busbar" means that the current equipment's terminals are directly connected to the busbar, and there are no other devices between it and the busbar; "connection within the interval.switch" means that the current equipment is connected to the switch within the interval.

[0085] The boundary conditions and screening conditions have the same form and grammar, both being judgment statements, except for their positions. Moreover, the boundary conditions can only be predefined boundary names. For example, the boundary condition name = within the switch and main transformer, and the corresponding condition definition = switch + main transformer. Such grammar requirements not only simplify the set calculation statements but also make them closer to the reading style of natural language. For example, when connecting to the main bus within the interval, directly read the dot separator as "of", making the language smooth and the meaning accurate. Generally, the boundary name definition is: **within the boundary (connection), which directly expresses the meaning of the statement. Commonly used predefined boundaries are: directly connected = all device types; connected within the interval = (bus + main transformer + station transformer + line + load); special program processing boundaries: within the substation scope; the device itself; directly connected on the other side, etc.

[0086] 2) Compound calculation statements

[0087] The basic grammar is: (basic set calculation 1) compound algorithm (basic set calculation 2) ···. An example of a compound set calculation statement is: (connected within the interval. switch) progressive (connected within the interval. switch) progressive (connected within the interval. switch) progressive (connected within the interval. main bus), which means starting from the switch connected within the interval, continue to search for the next switch, and then continue to progress until the bus is found.

[0088] 3) Device attributes

[0089] They are defined by professionals and obtained through topological calculations based on the connection relationships in the power grid CIM model. For various device attributes, the usual calculation method is: if one side of a device is connected to a certain device and the other side (is not) connected to a certain device, then this device has a certain attribute. Attributes are only related to the static structure of the model and have nothing to do with the device state during operation.

[0090] For example, "circuit breaker. connected within the interval. main transformer" means that a certain circuit breaker is connected within the interval to the main transformer, then it is considered that the attribute of this circuit breaker is "main transformer switch"; "disconnecting switch. directly connected. line" means that a certain disconnecting switch is directly connected to the line, then it is considered that the attribute of this disconnecting switch is "line-side disconnector"; "disconnecting switch. connected within the interval. PT" means that a certain disconnecting switch is connected within the interval to the PT, then it is considered that the attribute of this disconnecting switch is "PT disconnector", etc.

[0091] II. Judgment statements

[0092] A judgment statement is a basic judgment pattern, for example: the attribute contains. PT disconnector. It can also be a pattern of multiple basic judgment expressions combined through logical operations (AND, OR, NOT), for example: the attribute contains. conventional line switch and the attribute contains. 2 / 3 wiring equipment and the attribute does not contain. 2 / 3 switch.

[0093] The basic judgment statement types include: device type judgment, device attribute judgment, voltage judgment, set judgment, configuration judgment, etc.

[0094] 1) Equipment type determination

[0095] The expression evaluates to true if the device type is described directly in natural language. Examples include busbar and switch. If there are multiple devices, the expression is connected by a plus sign; if any one of the device types is satisfied, the expression evaluates to true. For example: (busbar + main transformer + stationary transformer + line + load).

[0096] 2) Device attribute judgment

[0097] It consists of "attribute judgment keyword + device attribute". There are two types of attribute judgment statements: "attribute contains" and "attribute does not contain". For example: Attribute contains.main transformer switch.

[0098] 3) Voltage Judgment

[0099] It consists of "voltage judgment keyword + voltage level". The voltage judgment keywords are: "voltage greater than", "voltage less than", and "voltage equal to", for example: voltage less than 0.220kV, where kV can be correctly identified and interpreted.

[0100] 4) Set judgment

[0101] When a set calculation statement appears in a condition definition, it's necessary to check if the result set is empty after executing the statement to arrive at the logical result. For example: `interval connection.bus.attribute contains.main bus` checks if the (input) device is connected to a bus with the `main bus` attribute within the interval. The boundaries and filtering conditions of set calculations are composed of conditional statements. Syntactically, conditional statements and set calculation statements are recursive.

[0102] 5) Other uses of conditional statements. Besides defining boundaries and filtering conditions, conditional statements can also stand alone, adding powerful tools to various topology-related knowledge bases. For example, they can be used to calculate the topology type of devices, and to implement various dynamic or static filters, etc.

[0103] III. Set Operation Statements

[0104] The results of multiple topology calculations can be organized into further device set calculation methods using various operators. Operators can be categorized as follows:

[0105] 1) Set logic relation calculation statements, including keywords: intersection, difference, and union. The operation method involves taking the two sets before and after the keyword and calculating a new set of equipment according to set operations in mathematics. The complement is replaced by the difference method. Multiple topological set calculations can be organized into further equipment set calculation methods using various operators. This syntax can be recursively combined into multiple consecutive set calculation strings. For example: (disconnector.direct connection.busbar) union (disconnector.interval connection.main transformer switch) can calculate the main transformer interval disconnector of the direct-connected busbar.

[0106] 2) Recursive Traversal Algorithm, including Keyword; Recursive, Recursive.Hotspot DDD, Recursive.Reverse, Recursive.Corresponding Neutral Point. Recursive: Starting from the other hotspot of the hotspot found in the set before the keyword (usually meaningful for devices with two hotspots such as disconnectors and switches), perform set calculations after the keyword. Recursive.Reverse: Same as Recursive Device, but with hotspots reversed; starting from the searched hotspot, perform subsequent set calculations. Recursive.Hotspot DDD: Starts from the specified hotspot of the device in the previous set and performs subsequent set calculations. Hotspot number immediately follows the keyword. Typically, there are no more than 9 hotspots for power equipment, each representing one hotspot, and multiple hotspots can be arranged consecutively. Recursive.Corresponding Neutral Point: Usually for the main transformer case within the result set of the previous search. Starts from the corresponding neutral point of the searched hotspot and performs subsequent set calculations.

[0107] 3) Exclusion and Retention Algorithm; Exclude, retain. The keyword is followed directly by a conditional expression (defined in 2.2.2.2) to further filter the set preceding the keyword. For example: (Disconnecting Switch.Direct Connection.Busline) excludes (PT Switch), indicating that disconnecting switches on the busbar are excluded from the PT switch set.

[0108] 4) Continuous set operations, integrating multiple set operations mentioned above. The result after calculation using the above methods is still a set, so continuous combinations of set operations can be programmed, for example: (within the plant.macro_small load equipment) retain (interval connection.switch.attribute contains.high voltage equipment and not directly connected.macro_load) progressive (interval connection.switch)

[0109] Furthermore, in this embodiment, based on the syntax of the natural language description method provided above, a knowledge base for error prevention logic can be constructed. The knowledge base includes the following: a) a device classification rule table, b) a logic rule definition table, c) a rule instantiation calculation table, and d) a rule output format table.

[0110] a. Equipment Classification Rules Table

[0111] The equipment classification rule table is defined by professionals based on the connection relationships in the power grid CIM model. It categorizes various operable equipment by judging equipment type and connection relationship characteristics, or by the equipment connected to the equipment. For example, this system can define over 80 equipment types; some examples are shown in Table 1 below.

[0112] Table 1

[0113] Location features Equipment type Judgment rules PT disconnect switch knife switch Direct connection .PT Main transformer switch switch Interval connection. Main transformer … … …

[0114] Equipment type is a classification name for equipment defined by error prevention professionals. This name usually has a clear meaning, is widely accepted among error prevention experts, and accurately expresses the meaning represented by the name. Through topology calculations and set operations, various types of equipment sets can be accurately obtained to define their equipment types.

[0115] The system defines methods for classifying various operable devices. For example, this system can define more than 70 device types. Some examples of device type definitions are shown in Table 2 below:

[0116] Table 2

[0117]

[0118] For example, if a disconnector is connected to a PT device on one side and a busbar on the other side, and it is not a handcart type device, then its location characteristic is "PT disconnector".

[0119] b. Logical rule definition table

[0120] Based on the characteristics of the equipment according to its "location features," and combining power regulations with expert experience, logical rules for this type of equipment are defined. These rules include "operation type" and "logical rule description."

[0121] The method of organizing associated devices into rule elements. Different device types have their own rule element definitions. For example, this system can define rule elements for multiple location features, and some location features have the same rule elements, as shown in Table 3 below:

[0122] Table 3

[0123] Topology Switching operation Logical rule description Light load handcart, PT handcart H The disconnector-related grounding is in the open position. The relevant mesh gates of the disconnect switch are closed. L The disconnector-related grounding is in the open position. The relevant mesh gates of the disconnect switch are closed. … … …

[0124] It should be noted that a device can have multiple corresponding location features, and the feature corresponding to the first and second type will be matched first.

[0125] c. Rule instantiation calculation table

[0126] The "Logical Rule Description" is instantiated and the formula is calculated. This includes the calculation method for the set of associated devices involved in the definition of the logical formula, as well as the constraint definition of the state values ​​of the devices in the set.

[0127] This system defines various rule-related device set calculation methods and set state constraints, which are combined into logical formulas for various location feature devices in the previous table.

[0128] Taking the "disconnector-related grounding at the terminating point" obtained in the previous step as an example, firstly, the "set of related devices" is calculated: within the disconnector range (grounding switch + ground wire). This step uses the parsing engine to calculate a set of devices, which we denote as set A. Next, we find the corresponding value in the "set constraint state value," which is "0" here. Therefore, the state value of device set A should be 0. These associated device sets and constraints are shown in Table 4:

[0129] Table 4

[0130]

[0131] d. Rule Output Format Table

[0132] The logical formulas are filled in according to the "Rule Output Format Table". The Rule Output Format Table contains output styles in a specified format, including: power equipment name, operation identifier, category identifier, formula start symbol, formula item interlocking device, formula item interlocking device description method, constraint symbol, alarm level, formula item constraint value, and formula end symbol. These associated device sets and constraints are shown in Table 5:

[0133] Table 5

[0134]

[0135] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0136] According to another aspect of the present invention, an apparatus for automatically generating power misoperation prevention logic formulas is also provided for implementing the above-described method for automatically generating power misoperation prevention logic formulas. For example... Figure 5 As shown, the device includes:

[0137] The acquisition unit 502 is used to acquire the Common Information Model (CIM) data of the target site in the power system. The CIM data includes the equipment type of each power device in the target site and the connection relationship information between each power device.

[0138] Matching unit 504 is used to traverse each power device within the target site and perform the following operations in sequence:

[0139] The power equipment is matched with the first logical relationship data table of the anti-misoperation logic knowledge base to determine the location feature information corresponding to the power equipment. The anti-misoperation logic knowledge base includes multiple pre-built logical relationship data tables, and the first logical relationship data table includes the association relationship between multiple equipment types and their respective location feature information discrimination rules.

[0140] In the second logical relation data table of multiple logical relation data tables, the location feature information corresponding to the power equipment is matched, and multiple logical rule description information corresponding to the power equipment is determined. The second logical relation data table includes the association relationship between multiple location feature information and their respective logical rule description information.

[0141] The description information of multiple logical rules corresponding to the power equipment is matched with the third logical relationship data table in multiple logical relationship data tables to generate the logical rule element information corresponding to the power equipment. The third logical relationship data table includes the association relationship between multiple logical rule description information and their respective logical rule element calculation formulas.

[0142] The generation unit 506 is used to combine the logical rule element information matched by each power device according to a preset format to obtain the anti-misoperation logic formula of the target site.

[0143] In this embodiment, the specific implementation can be referred to the above method implementation, and will not be repeated here.

[0144] As an optional solution, the matching unit 504 includes:

[0145] The first acquisition module is used to acquire information on the equipment type and connection relationship of the power equipment.

[0146] The module is used to match device types in the first logical relationship data table and obtain one or more matching items.

[0147] The calculation module is used to calculate and process one or more matching items according to the discrimination rules of location feature information based on the connection relationship information, so as to obtain the location feature information corresponding to the power equipment.

[0148] As an alternative approach, when there are multiple location feature information corresponding to power equipment, the location feature information that matches the first and last position of the power equipment is taken as the location feature information corresponding to the power equipment.

[0149] As an optional solution, the matching unit 504 includes:

[0150] The second acquisition module is used to acquire the operation type corresponding to the power equipment, wherein the power equipment includes at least two different operation types;

[0151] The lookup module is used to search for logical rule description information corresponding to different operation types by combining the location feature information of the power equipment in the second logical relationship data table. The logical rule description information is used to represent the logical rules of the power equipment under the corresponding operation type.

[0152] The aggregation module is used to aggregate the various logical rule descriptions corresponding to different operation types into multiple logical rule descriptions for power equipment.

[0153] As an optional solution, the matching unit 504 includes:

[0154] The third acquisition module is used to acquire, from the third logical relationship data table, the calculation expressions of logical rule elements corresponding to multiple logical rule description information of power equipment, and perform calculations based on the calculation expressions of logical rule elements to obtain the set of associated equipment of power equipment under the requirements of the corresponding logical rule description information.

[0155] The fourth acquisition module is used to acquire, from the third logical data table, the set constraint state values ​​corresponding to the multiple logical rule description information of the power equipment, where the set constraint state values ​​are values ​​used to represent the operating status of the associated equipment corresponding to the power equipment.

[0156] The generation module is used to assign values ​​to the corresponding associated devices based on the set constraint state values, so as to generate logical rule element information for the power equipment.

[0157] As an optional solution, the aforementioned third acquisition module includes:

[0158] The `get` submodule is used to retrieve CIM data;

[0159] The search submodule is used to perform a topological search in CIM data based on the boundary conditions in the logical rule element calculation expression to obtain devices that conform to the filter type in the logical rule element calculation expression.

[0160] As an optional solution, the above-mentioned generation unit 506 includes:

[0161] The filling module is used to sequentially fill the fourth logical relationship data table among multiple logical relationship data tables with the description information of multiple logical rules corresponding to each power device, as well as the corresponding logical rule element information, to generate the anti-misoperation logic formula for the target site.

[0162] As an optional solution, the above-mentioned device for automatically generating power anti-misoperation logic formulas further includes: a construction unit, used to construct an anti-misoperation logic knowledge base before acquiring CIM data of target sites in the power system.

[0163] In this embodiment, the specific implementation can be referred to the above method implementation, and will not be repeated here.

[0164] In this embodiment of the invention, after loading CIM data, the location feature information corresponding to the power equipment is determined by the first logical relationship data table constructed in the anti-misoperation logic knowledge base. The logical rule description information matching the location feature information is determined by the second logical relationship data table. The logical rule description information is matched by the third logical relationship table to generate logical rule element information corresponding to the power equipment. The logical rule element information is combined to obtain the anti-misoperation logic formula. This realizes the generation of logical rule element information matching each power equipment based on the CIM data of the target site in the power system and according to multiple logical relationship data tables in the anti-misoperation logic knowledge base, thereby generating the anti-misoperation logic formula. The anti-misoperation logic formula for the entire site is automatically generated, thereby improving the generation efficiency of the anti-misoperation logic formula. This solves the technical problems of low generation efficiency and accuracy, and inconvenience in maintenance, modification and review caused by relying on manual editing or internal program editing to obtain the anti-misoperation logic formula.

[0165] According to another aspect of the present invention, an electronic device is also provided for implementing the above-described method for automatically generating power supply anti-misoperation logic formulas. The electronic device may be a terminal device or a server. The electronic device includes a memory and a processor, the memory storing a computer program, and the processor being configured to execute the steps of any of the above-described method embodiments via the computer program.

[0166] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0167] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0168] S1, Obtain the Common Information Model (CIM) data of the target site in the power system, wherein the CIM data includes the equipment type of each power device in the target site and the connection relationship information between each power device;

[0169] S2, iterate through each power device within the target site and perform the following operations in sequence:

[0170] The power equipment is matched with the first logical relationship data table of the anti-misoperation logic knowledge base to determine the location feature information corresponding to the power equipment. The anti-misoperation logic knowledge base includes multiple pre-built logical relationship data tables, and the first logical relationship data table includes the association relationship between multiple equipment types and their respective location feature information discrimination rules.

[0171] In the second logical relation data table of multiple logical relation data tables, the location feature information corresponding to the power equipment is matched, and multiple logical rule description information corresponding to the power equipment is determined. The second logical relation data table includes the association relationship between multiple location feature information and their respective logical rule description information.

[0172] The description information of multiple logical rules corresponding to the power equipment is matched with the third logical relationship data table in multiple logical relationship data tables to generate the logical rule element information corresponding to the power equipment. The third logical relationship data table includes the association relationship between multiple logical rule description information and their respective logical rule element calculation formulas.

[0173] S3 combines the logical rule element information matched by each power device according to a preset format to obtain the anti-misoperation logic formula for the target site.

[0174] Alternatively, as will be understood by those skilled in the art, electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablet computers, PDAs, and other terminal devices such as mobile internet devices (MIDs) and tablets.

[0175] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and apparatus for automatically generating power grid anti-misoperation logic formulas in this embodiment of the invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned method for automatically generating power grid anti-misoperation logic formulas. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory may be used, but is not limited to, to store information such as an anti-misoperation logic knowledge base. In addition, other module units in the aforementioned apparatus for automatically generating power grid anti-misoperation logic formulas may also be included, but will not be elaborated upon in this example.

[0176] Optionally, the aforementioned transmission device is used to receive or send data via a network. Specific examples of the network may include wired and wireless networks. In one example, the transmission device includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device is a Radio Frequency (RF) module used for wireless communication with the Internet.

[0177] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.

[0178] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method described above for automatically generating power supply anti-misoperation logic formulas. The computer program is configured to execute the steps in any of the above method embodiments during runtime.

[0179] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:

[0180] S1, Obtain the Common Information Model (CIM) data of the target site in the power system, wherein the CIM data includes the equipment type of each power device in the target site and the connection relationship information between each power device;

[0181] S2, iterate through each power device within the target site and perform the following operations in sequence:

[0182] The power equipment is matched with the first logical relationship data table of the anti-misoperation logic knowledge base to determine the location feature information corresponding to the power equipment. The anti-misoperation logic knowledge base includes multiple pre-built logical relationship data tables, and the first logical relationship data table includes the association relationship between multiple equipment types and their respective location feature information discrimination rules.

[0183] In the second logical relation data table of multiple logical relation data tables, the location feature information corresponding to the power equipment is matched, and multiple logical rule description information corresponding to the power equipment is determined. The second logical relation data table includes the association relationship between multiple location feature information and their respective logical rule description information.

[0184] The description information of multiple logical rules corresponding to the power equipment is matched with the third logical relationship data table in multiple logical relationship data tables to generate the logical rule element information corresponding to the power equipment. The third logical relationship data table includes the association relationship between multiple logical rule description information and their respective logical rule element calculation formulas.

[0185] S3 combines the logical rule element information matched by each power device according to a preset format to obtain the anti-misoperation logic formula for the target site.

[0186] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0187] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0188] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0189] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0190] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.

[0191] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0192] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0193] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for automatically generating logic formulas for preventing power misoperation, characterized in that, include: Acquire the Common Information Model (CIM) data of a target site in a power system, wherein the CIM data includes the equipment type of each power device within the target site and the connection relationship information between the power devices; The following operations are performed sequentially, traversing each power device within the target site: Matching the power device with a first logical relationship data table in the anti-misoperation logic knowledge base to determine the location feature information corresponding to the power device. The anti-misoperation logic knowledge base includes multiple pre-built logical relationship data tables, where the first logical relationship data table includes the association between multiple device types and their respective location feature information discrimination rules. Matching the location feature information corresponding to the power device with a second logical relationship data table in the multiple logical relationship data tables to determine multiple logical rule description information corresponding to the power device. The second logical relationship data table includes the association between multiple location feature information and their respective logical rule description information. Matching the multiple logical rule description information corresponding to the power device with a third logical relationship data table in the multiple logical relationship data tables to generate logical rule element information corresponding to the power device. The third logical relationship data table includes the association between multiple logical rule description information and their respective logical rule element calculation formulas. The logical rule element information matched by each power device is combined according to a preset format to obtain the anti-misoperation logic formula for the target site.

2. The method according to claim 1, characterized in that, The step of matching the power equipment with the first logical relationship data table of the anti-misoperation logical knowledge base to determine the location feature information corresponding to the power equipment includes: Obtain the equipment type and connection relationship information of the power equipment; Match the device type in the first logical relationship data table to obtain one or more matching items; Based on the connection relationship information, the one or more matching items are calculated and processed according to the discrimination rules of the location feature information to obtain the location feature information corresponding to the power equipment.

3. The method according to claim 2, characterized in that, When there are multiple location feature information corresponding to the power equipment, the location feature information that matches the first position of the power equipment shall be used as the location feature information corresponding to the power equipment.

4. The method according to claim 1, characterized in that, The step of matching the location feature information corresponding to the power equipment in the second logical relationship data table among the plurality of logical relationship data tables, and determining the logical rule description information corresponding to the power equipment, includes: Obtain the operation type corresponding to the power equipment, wherein the power equipment includes at least two different operation types; In the second logical relationship data table, the location feature information corresponding to the power equipment is combined to find the logical rule description information corresponding to the different operation types. The logical rule description information is used to represent the logical rules of the power equipment under the corresponding operation type. The description information of each logical rule corresponding to the different operation types is summarized into multiple logical rule description information corresponding to the power equipment.

5. The method according to claim 1, characterized in that, The step of matching the description information of multiple logical rules corresponding to the power equipment with the third logical relationship data table in the multiple logical relationship data tables to generate the logical rule element information corresponding to the power equipment includes: In the third logical relationship data table, obtain the logical rule element calculation expressions corresponding to the multiple logical rule description information of the power equipment, and calculate according to the logical rule element calculation expressions to obtain the associated equipment set of the power equipment under the requirements of the corresponding logical rule description information. In the third logical data table, obtain the set constraint state values ​​corresponding to the multiple logical rule description information of the power equipment, wherein the set constraint state values ​​are values ​​used to represent the operating status of the associated equipment corresponding to the power equipment; The set constraint state values ​​are used to assign values ​​to the corresponding associated devices to generate logical rule element information for the power devices.

6. The method according to claim 5, characterized in that, The step of calculating the expression based on the logical rule elements to obtain the set of associated devices of the power equipment under the corresponding logical rule description information requirements includes: Obtain the CIM data; Based on the boundary conditions in the calculation expression of the logical rule elements, a topology search is performed in the CIM data to obtain devices that conform to the filtering type in the calculation expression of the logical rule elements.

7. The method according to claim 1, characterized in that, The step of combining the logical rule element information matched by each power device according to a preset format to obtain the anti-misoperation logic formula for the target site includes: The description information of multiple logical rules corresponding to each of the power devices, as well as the information of the logical rule elements corresponding to each of them, are sequentially filled into the fourth logical relationship data table of the multiple logical relationship data tables to generate the anti-misoperation logic formula of the target site.

8. The method according to any one of claims 1 to 7, characterized in that, Before acquiring the CIM data of the target site in the power system, the following steps are also included: Construct the error prevention logic knowledge base.

9. A device for automatically generating logic formulas for preventing power misoperation, characterized in that, include: The acquisition unit is used to acquire the Common Information Model (CIM) data of the target site in the power system, wherein the CIM data includes the equipment type of each power device in the target site and the connection relationship information between the power devices; The matching unit is used to traverse each power device within the target site and perform the following operations in sequence: The power equipment is matched with the first logical relationship data table of the anti-misoperation logic knowledge base to determine the location feature information corresponding to the power equipment. The anti-misoperation logic knowledge base includes multiple pre-built logical relationship data tables, and the first logical relationship data table includes the association relationship between multiple equipment types and their respective location feature information discrimination rules. In the second logical relationship data table of the plurality of logical relationship data tables, the location feature information corresponding to the power equipment is matched to determine the plurality of logical rule description information corresponding to the power equipment. The second logical relationship data table includes the association relationship between the plurality of location feature information and their respective logical rule description information. The description information of multiple logical rules corresponding to the power equipment is matched with the third logical relationship data table in the multiple logical relationship data tables to generate the logical rule element information corresponding to the power equipment. The third logical relationship data table includes the association relationship between multiple logical rule description information and their respective logical rule element calculation formulas. The generation unit is used to combine the logical rule element information matched by each power device according to a preset format to obtain the anti-misoperation logic formula of the target site.

10. The apparatus according to claim 9, characterized in that, The matching unit includes: The first acquisition module is used to acquire the equipment type and connection relationship information of the power equipment; The module is configured to match the device type in the first logical relationship data table to obtain one or more matching items; The calculation module is used to calculate and process the one or more matching items according to the connection relationship information and the discrimination rules of the location feature information to obtain the location feature information corresponding to the power equipment.

11. The apparatus according to claim 10, characterized in that, The matching unit is further configured to, when there are multiple location feature information corresponding to the power equipment, use the location feature information that matches the first position of the power equipment as the location feature information corresponding to the power equipment.

12. The apparatus according to claim 9, characterized in that, The matching unit includes: The second acquisition module is used to acquire the operation type corresponding to the power equipment, wherein the power equipment includes at least two different operation types; The lookup module is used to search for logical rule description information corresponding to the different operation types in the second logical relationship data table, based on the location feature information of the power equipment. The logical rule description information is used to represent the logical rules of the power equipment under the corresponding operation type. The aggregation module is used to aggregate the various logical rule description information corresponding to the different operation types into multiple logical rule description information corresponding to the power equipment.

13. The apparatus according to claim 9, characterized in that, The matching unit includes: The third acquisition module is used to acquire, in the third logical relationship data table, the logical rule element calculation expressions corresponding to the multiple logical rule description information of the power equipment, and perform calculations according to the logical rule element calculation expressions to obtain the associated equipment set of the power equipment under the requirements of the corresponding logical rule description information. The fourth acquisition module is used to acquire, in the third logical data table, set constraint state values ​​corresponding to the multiple logical rule description information of the power equipment, wherein the set constraint state values ​​are values ​​used to represent the operating status of the associated equipment corresponding to the power equipment. The generation module is used to assign values ​​to the corresponding associated devices using the set constraint state values, so as to generate logical rule element information corresponding to the power equipment.

14. The apparatus according to claim 13, characterized in that, The third acquisition module includes: A submodule for acquiring the CIM data; The search submodule is used to perform a topological search in the CIM data based on the boundary conditions in the calculation expression of the logical rule elements, so as to obtain devices that conform to the filtering type in the calculation expression of the logical rule elements.

15. The apparatus according to claim 9, characterized in that, The generation unit includes: The filling module is used to sequentially fill the fourth logical relationship data table among the multiple logical relationship data tables with the description information of multiple logical rules corresponding to each of the power devices, as well as the logical rule element information corresponding to each of them, to generate the anti-misoperation logic formula of the target site.

16. The apparatus according to any one of claims 9 to 15, characterized in that, Also includes: The construction unit is used to build the error prevention logic knowledge base before acquiring the CIM data of the target site in the power system.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 8.

18. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 8 through the computer program.

Citation Information

Patent Citations

  • System and method for preventing misoperation of electrical equipment

    CN101154512A

  • Electrical equipment anti-misoperation method, device and system

    CN102957203A