Substation switching operation whole-process auxiliary decision device

By constructing a causal chain of operational events for substation switching operations, transient vulnerabilities are identified and compensated for, solving the problems of millisecond-level protection contention and failure blind spots in existing systems, and realizing the automation and security verification of substation switching operations.

CN123160091APending Publication Date: 2026-11-24NANJING QIANNENG INFORMATION ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611362011.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing substation switching operation auxiliary decision-making systems cannot effectively identify and resolve millisecond-level and logic-level transient secondary vulnerabilities. They lack formal verification and rely on experience inheritance, resulting in protection competition and blind spots in the operation process.

Method used

By constructing causal chains of operational events, identifying atomic secondary loop change events, establishing data dependency and protection logic coupling relationships, and using conflict-driven vulnerability mining and partial order compensation planning modules, a secure operation sequence is generated to achieve formal verification and automated decision-making.

Benefits of technology

It improves the ability to detect millisecond-level transient secondary vulnerabilities, ensures the security and executability of operation sequences, and realizes a fully automated closed loop from vulnerability detection to secure operation schemes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160091A_ABST
    Figure CN123160091A_ABST
Patent Text Reader

Abstract

This invention discloses an auxiliary decision-making device for the entire process of substation switching operations, belonging to the field of substation operation supervision technology. It acquires a sequence of switching operation tickets to be executed, decomposes each operation step in the sequence into atomic secondary loop change events, and constructs a causal chain of operation events. It performs transient vulnerability search on the causal chain of operation events, sequentially activating the atomic secondary loop change events corresponding to each node according to the topological order of the causal chain, maintaining the active state set of the secondary loop corresponding to the currently activated event set. When the active state set of the secondary loop violates a preset safety invariant, a conflict analysis process is triggered. It acquires each conflict clause, uses the minimum set of conflict events corresponding to each conflict clause as the target to be eliminated, searches for an insertable set of compensating atomic events, and inserts them into the corresponding conflict clause position in the causal chain of operation events, generating a partial order graph of safe operation events after conflict resolution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of substation operation monitoring technology, specifically to auxiliary decision-making equipment for the entire process of substation switching operations. Background Technology

[0002] During the main circuit switching process, the protection configuration, secondary current / voltage circuits, and tripping logic will be in a transitional state for a short period of time, forming a secondary dead zone. For example, in bypass operation, the protection current circuit and tripping output need to be switched step by step. At some intermediate step, the line may be covered by dual protection, but the coordination between them may be chaotic, or there may be millisecond-level competition and failure start-up blind zone between the main protection and the bypass protection. The existing auxiliary decision-making has no ability to detect such millisecond-level and logic-level transient secondary vulnerabilities. It relies entirely on the experience inheritance of typical operation sequences and lacks rigorous formal verification. Summary of the Invention

[0003] The purpose of this invention is to provide an auxiliary decision-making device for the entire process of substation switching operations, which is used to solve the technical problems mentioned in the background art.

[0004] The objective of this invention can be achieved through the following technical solutions: Substation switching operation auxiliary decision-making equipment for the entire process, including: Operation event causal chain construction module: used to obtain the sequence of switching operation tickets to be executed, decompose each operation step in the switching operation ticket sequence into atomic secondary circuit change events, and construct the operation event causal chain based on the data dependency relationship and protection logic coupling relationship between each atomic secondary circuit change event. Each node in the operation event causal chain carries an event attribute vector. The event attribute vector includes the set of protection current circuit identifiers affected by the event, the set of trip output identifiers affected by the event, and the set of failure start circuit identifiers affected by the event. The directed edges in the operation event causal chain carry timing constraint labels. Conflict-driven vulnerability discovery module: used to perform transient vulnerability search on the causal chain of operation events. According to the topological order of the causal chain of operation events, it sequentially activates the atomic secondary loop change events corresponding to each node, maintains the active state set of the secondary loop corresponding to the currently activated event set, and determines that a transient vulnerability has been detected when the active state set of the secondary loop violates the preset security invariant, triggering the conflict analysis process. The partial order compensation planning module is used to obtain each conflict clause, take the minimum set of conflict events corresponding to each conflict clause as the target to be eliminated, search for the set of compensable atomic events that can be inserted under the topological constraints of the causal chain of operation events and the safety constraints of primary equipment operation, insert the set of compensable atomic events into the position of the corresponding conflict clause in the causal chain of operation events, generate a partial order graph of safe operation events after conflict resolution, and perform linearization on the partial order graph of safe operation events to obtain the safe operation sequence.

[0005] Furthermore, the switching operation ticket sequence is an ordered set of operation steps generated by substation operators or the operation ticket management system and arranged in a predetermined execution order. For each operation step in the switching operation ticket sequence, its structured fields are parsed. Based on the structured information of each operation step obtained from the parsing, each operation step is atomized and decomposed to obtain the corresponding atomic secondary circuit change event.

[0006] Furthermore, based on the obtained set of atomic events and the basic attributes of each atomic event, an event attribute vector is constructed for each atomic secondary loop change event; based on the obtained event attribute vectors of each atomic event, data dependency determination is performed on any two atomic events in the set of atomic events; and for atomic event pairs that satisfy the data dependency conditions, a data dependency causal edge is established.

[0007] Furthermore, based on the event attribute vectors of each atomic event and the established data dependency causal edges, for atomic event pairs in the atomic event set that have not yet established data dependency causal edges, a protection logic coupling relationship determination is performed; for atomic events that satisfy the protection logic coupling relationship, a coupling causal edge is established.

[0008] Furthermore, based on the established data-dependent causal edges and coupled causal edges, temporal constraint labels are assigned to all causal edges, ultimately forming a causal chain of operational events.

[0009] Furthermore, when performing safety invariant checks and determining whether conflict analysis is triggered, three safety invariant checks are performed sequentially based on the updated set of active states of the secondary loop. The three safety invariants are protection coverage invariant, failure coverage invariant, and timing coordination invariant. When all three safety invariants are satisfied, the current state is determined to be safe, and the previous steps are returned to activate the next atomic event. When any security invariant is violated, a transient vulnerability is detected. The type of the violated invariant and the identifier of the object that violated the invariant are recorded, and then the conflict analysis process is triggered.

[0010] Furthermore, once a transient vulnerability is detected, a conflict analysis process is triggered. The goal of the conflict analysis process is to locate the minimum set of conflict events that cause the violation of the security invariant, starting from the current state that violates the security invariant. For the events in the candidate backtracking event set, they are sorted from back to front according to their positions in the topologically ordered sequence to obtain an inverted candidate list. Based on the obtained inverted candidate list, a stepwise removal and state re-verification process is performed to locate the minimum set of conflict events.

[0011] Furthermore, when establishing the constraint system for the compensation search, based on the obtained set of candidate compensation events, a constraint system that must be satisfied during the compensation search process is established. The constraint system consists of two parts: topological constraints and primary equipment operation safety constraints.

[0012] Furthermore, when searching for the optimal set of compensation atomic events under the constraint system, based on the obtained set of candidate compensation events and the established constraint system, a constraint satisfaction search is performed for each target to be eliminated to determine the optimal set of compensation atomic events.

[0013] Furthermore, when inserting the compensation atomic events into the causal chain of the operation events, based on the obtained set of each optimal compensation atomic event and the established set of compensation partial order edges, all compensation atomic events are inserted into the causal chain of the operation events. The insertion process is divided into two sub-processes: position determination and edge connection. Based on the extended operational event causal chain, conflict resolution verification is performed. After confirming that all transient vulnerabilities have been resolved, a partial order graph of secure operational events is generated.

[0014] Compared to existing solutions, the beneficial effects achieved by this invention are: This invention improves the ability to detect transient secondary vulnerabilities at the millisecond and logical levels through the coordinated operation of the event causal chain construction module, the conflict-driven vulnerability mining module, and the partial order compensation planning module. It does not rely on the experience inheritance of typical operation sequences, achieves rigorous formal verification, strictly respects all causal constraints in the partial order graph, and ensures the physical executability and logical correctness of the secure operation sequence. Finally, it is transformed into the output form of operation instruction text, so that the output of the partial order compensation planning module can be directly connected to the operation ticket management system, realizing a fully automated closed loop from vulnerability detection to secure operation scheme generation. Attached Figure Description

[0015] The invention will now be further described with reference to the accompanying drawings.

[0016] Figure 1 This is a flowchart illustrating the operation of the auxiliary decision-making equipment for the entire substation switching operation process according to the present invention.

[0017] Figure 2This is a block diagram of the auxiliary decision-making device for the entire process of substation switching operations according to the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. 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 are within the scope of protection of the present invention.

[0019] like Figures 1 to 2 As shown, the present invention is an auxiliary decision-making device for the entire process of substation switching operation, including an operation event causal chain construction module, a conflict-driven vulnerability mining module, and a partial order compensation planning module; Operation event causal chain construction module: Used to obtain the sequence of switching operation tickets to be executed, decompose each operation step in the sequence into atomic secondary circuit change events, and construct an operation event causal chain based on the data dependencies and protection logic coupling relationships between these events. Each node in the operation event causal chain carries an event attribute vector, which includes a set of protection current circuit identifiers affected by the event, a set of trip output identifiers affected by the event, and a set of failure start circuit identifiers affected by the event. Directed edges in the operation event causal chain carry timing constraint labels; specifically: The operation event causal chain construction module first obtains the sequence of switching operation tickets to be executed. The switching operation ticket sequence is an ordered set of operation steps generated by substation operators or the operation ticket management system and arranged in a predetermined execution order, denoted as: ;in, Indicates the first in the sequence of switching operation tickets Each operation step This refers to the sequence number of the operation step. , This represents the total number of operation steps in the switching operation ticket sequence. For each operation step in the switching operation ticket sequence Parse its structured fields and extract the operation object identifier. Operation type identifier , Status before operation and post-operation status The implementation analysis is a conventional technical solution in this field, and the specific implementation steps will not be elaborated here. Among them, the operation object identifier This is the unique number of the primary device or secondary circuit involved in this operation step; Operation type identifier The operation category that represents this operation step includes: disconnecting switch operation, circuit breaker operation, protection current circuit switching operation, trip output pressure plate activation / deactivation operation, failure start circuit activation / deactivation operation, and protection function soft pressure plate activation / deactivation operation. Pre-operation status and post-operation status , respectively, represent the state values ​​of the object before and after the operation.

[0020] It should be noted that by transforming unstructured or semi-structured operation ticket text into structured operation step information, a standardized data input foundation is provided for subsequent event decomposition and causal chain construction, avoiding modeling errors caused by ambiguity in operation ticket descriptions.

[0021] When decomposing the operation steps into atomic secondary loop change events, based on the structured information of each operation step obtained from the analysis, for each operation step... Atomization decomposition is performed, and the rules for atomization decomposition are as follows: When operating steps Operation type identifier When the operation falls under the category of secondary circuit operations, namely protection current circuit switching operations, trip output pressure plate enabling / disabling operations, failure start circuit enabling / disabling operations, or protection function soft pressure plate enabling / disabling operations, it is necessary to determine whether the operation involves multiple secondary circuit change objects simultaneously. The specific determination method is as follows: Extraction operation steps Operation object identifier ,when When multiple secondary loop numbers are involved, the operation step is decomposed into multiple atomic secondary loop change events; when When only a single secondary loop number is included, the operation step is directly mapped to a single atomic secondary loop change event; all atomic secondary loop change events obtained after decomposition constitute an atomic event set, denoted as: ;in, Indicates the first Individual atomic secondary circuit change event This represents the sequence number of the atomic event. , The total number of atomic events. ; Each atomic secondary loop change event It carries the following basic attributes: Event Source Operation Step Sequence Number This indicates which operational step the atomic event is derived from; Event Operation Types The value is one of the following: protection current circuit switching, trip output enabling / disabling, failure start circuit enabling / disabling, or protection function soft switch enabling / disabling. Event Operation Object , is the unique number of the single secondary loop that the atomic event acts upon; Event Operation Direction The value can be either "investment" or "withdrawal"; When the same operation steps When an event is decomposed into multiple atomic secondary loop change events, an intra-operational causal edge is established between these atomic events. The temporal constraint label value of the intra-operational causal edge is the preset intra-operational minimum interval. Minimum interval within operation The value of is the minimum allowable execution interval between sub-operations within the same operation step, in milliseconds. Its value is determined based on the response time of the actuator of the physical switching of the substation secondary circuit, and the typical value is 200 milliseconds to 500 milliseconds.

[0022] It should be noted that by decomposing coarse-grained operation steps into indivisible atomic secondary loop change events, subsequent vulnerability verification can be accurate to the change granularity of a single secondary loop, avoiding the omission of transient vulnerabilities within the steps due to the coarse granularity of the operation steps; at the same time, by establishing causal edges within the operation, it is ensured that the timing constraints between sub-operations within the same step are not violated.

[0023] When constructing the event attribute vector for each atomic event, based on the obtained set of atomic events and the basic attributes of each atomic event, a change event for each atomic secondary loop is defined. Construct an event attribute vector, denoted as: ;in, For the event The set of identifiers for the affected protection current loops. For the event The set of affected trip output indicators, For the event The set of identifiers for affected malfunctioning start-up circuits; Among them, the protection current loop identifier set The construction method is as follows: When atomic events Event operation types To protect the current loop during switching, Includes the protection current loop number that was switched during the event, i.e. When atomic events Event operation types When switching not for protection current circuits, It is an empty set; Trip output identifier collection The construction method is as follows: when an atomic event Event operation types When the trip output is enabled or disabled, Includes the trip output number that was deactivated in this event, i.e. When atomic events Event operation types When the trip output is not enabled or disabled, It is an empty set; Failure start-up circuit identifier set The construction method is as follows: when an atomic event Event operation types When the malfunctioning start-up circuit is deactivated, Includes the failure start circuit number that was deactivated in this event, i.e. When atomic events Event operation types When the start-up circuit is not deactivated due to failure, It is an empty set.

[0024] It should be noted that by constructing a standardized event attribute vector for each atomic event, the influence range of the event's secondary loop is explicitly expressed in set form. This provides a structured comparison basis for the automatic identification of data dependencies and the automatic determination of protection logic coupling relationships in subsequent steps, making the construction process of the causal chain calculable and verifiable.

[0025] When identifying data dependencies between atomic events and establishing causal edges based on these dependencies, the set of atomic events is analyzed based on the event attribute vectors obtained for each atomic event. Any two atomic events in and , Perform data dependency determination; the rules for data dependency determination are as follows: When atomic events Event source operation steps sequence number Smaller than atomic events Event source operation steps sequence number ,Right now An atomic event is determined when one of the following data dependency conditions is met. With atomic events There are data dependencies between them, and a data dependency relationship is established from... point to Data depends on causal edges: Data dependency condition 1: Atomic events The state after the operation constitutes an atomic event. The preconditions for the state before the operation; the specific determination method is as follows: extract event handler and event handler ,when ,and Operation direction ,and Operation direction Conversely, if the data dependency condition one is met, the physical meaning of this condition is: for the same secondary loop object, the input operation is performed first, and then the exit operation is performed (or vice versa), with the latter depending on the execution result of the former.

[0026] Data dependency condition two: atomic events The affected protection current circuit, in atomic events During execution, it is referenced as input; the specific determination method is: when Protection current loop identifier set Not empty, and Event operation types This refers to the trip output enabling / disabling or the failure start circuit enabling / disabling. The protective device that is in operation, and When the protection current loops in the circuit belong to the same protection device, it is determined that the data dependency condition two is met; the physical meaning of this condition is that the operational effectiveness of the trip output or failure start circuit depends on the current connection status of the corresponding protection current loop.

[0027] For atomic event pairs that satisfy data dependency conditions Establish from point to Data depends on causal edges, denoted as .

[0028] It should be noted that: by formalizing data dependency condition determination, the causal constraints between atomic events caused by operating on the same object or having input-output reference relationships are automatically identified, ensuring that the constructed causal chain can correctly reflect the sequential dependencies between operations and preventing the generation of operation sequences that violate physical constraints during subsequent linearization output.

[0029] When identifying the protective logic coupling relationship between atomic events and establishing coupling causal edges, based on the obtained event attribute vectors of each atomic event and the established data dependency causal edges, for atomic event pairs in the atomic event set that have not yet established data dependency causal edges, a protective logic coupling relationship determination is performed; the process of determining the protective logic coupling relationship is as follows: First, construct a protected device-protection device association table, denoted as [Table name missing]. Its elements are binary pairs , indicating the first One protected device Under normal operating conditions, by the first Each protection device provides protection. The protected equipment-protection device association table is obtained from the substation protection configuration ledger. Then, for any two atomic events in the set of atomic events... and ,in, ,and and Before a data dependency causal edge is established, the protection logic coupling judgment is performed; the judgment process is as follows: Calculate events Protection of the equipment set and events Protection of the equipment set The calculation method for the set of protected devices is as follows: ;in, Indicates that it is affected by atomic events The collection of all protected devices affected; Indicates the protected equipment Protective device Provide protection; The operation affects the protection current circuit or trip output of the protection device j. The judgment condition is: the protection device... The protection current circuit number belongs to or protective devices The trip output number belongs to ; Similarly, calculate ,when When two atomic events affect at least one common protected device, a determination is made. and There is a protective logic coupling relationship between them; Furthermore, for atomic event pairs that have protective logical coupling relationships... Calculate the coupling strength index The formula for calculating the coupling strength index is: ;in, This indicates the number of protected devices affected by both events. This represents the union of all protected devices affected by two events; coupling strength index. The range of values ​​is The larger the value, the higher the overlap of the impact of the two events on the same protected equipment group, and the tighter the causal coupling.

[0030] When the coupling strength index Greater than the preset coupling threshold At that time, a coupled causal edge is established from the atomic event executed earlier in the execution order to the atomic event executed later in the execution order, denoted as . In addition, coupling threshold The default value is 0.3. The physical meaning of this value is: when the overlap of the impact of two events on the same protected equipment group exceeds 30%, it is considered that there is a causal coupling between the two that needs to be explicitly modeled.

[0031] It should be noted that by performing intersection operations and quantitative calculations of coupling strength indicators on the protection-affected device set, atomic event pairs that do not directly operate on the same object but are indirectly coupled through protection logic are automatically identified. This indirect coupling relationship is the root cause of millisecond-level protection contention and startup blind spots. After explicit modeling, the subsequent vulnerability discovery module can accurately locate the cause of such transient vulnerabilities.

[0032] When assigning temporal constraint labels and forming a causal chain of operational events, temporal constraint labels are assigned to all causal edges based on the established data dependency causal edges and coupled causal edges, ultimately forming the causal chain of operational events; the method for assigning temporal constraint labels is as follows: For data-dependent causal edges Its timing constraint label The calculation formula is: ;in, Represents atomic events The secondary loop object being operated on The maximum physical switching time, in milliseconds, is obtained from the secondary circuit equipment parameter ledger and represents the maximum time from receiving the operation command to completing the physical state switching of the secondary circuit. This indicates the sampling period of the protection device, in milliseconds. This value is obtained from the technical parameters of the protection device and represents the time required for the protection device to complete one full sampling and logical judgment. Timing constraint labels The physical meaning of is: atomic event The execution time must be no earlier than an atomic event. Execution time plus To ensure The physical switch has been completed, and the protection device has sampled the new loop state.

[0033] For coupled causal edges Its timing constraint label The calculation formula is: ;in, This value represents the logic stabilization time of the protection device after the secondary circuit switching, expressed in milliseconds. It indicates the time required for the protection device to update its internal logic state and reach a new steady state after detecting a circuit change. Timing constraint labels The physical meaning is: between two atomic events with protective logic coupling, a sufficient time interval must be left so that the protective logic state change caused by the first event has completely stabilized before the second event is executed, thereby avoiding competition between the two events at the protective logic level.

[0034] Finally, the obtained set of atomic events is used as the node set, the union of the established set of data-dependent causal edges and the established set of coupled causal edges is used as the directed edge set, and the temporal constraint labels corresponding to each directed edge are used as edge attributes to form the causal chain of the operation events, denoted as: ;in, For a set of nodes, Let be a set of directed edges. , For a set of time-series constraint labels, .

[0035] It should be noted that by assigning time constraint labels with clear physical meanings to different types of causal edges, the constructed causal chain of operational events not only includes the logical sequence of events but also precise time interval constraints. This explicit modeling of time constraints provides a time-dimensional basis for the subsequent conflict-driven vulnerability mining module to search for transient vulnerabilities, enabling the precise identification and quantification of millisecond-level protection contention and failure startup blind spots, rather than merely qualitative judgments at the logical level. At the same time, calculating time constraints based on physical parameters (switching time, sampling period, and logical stabilization time) ensures that the time constraints of the causal chain are consistent with the physical characteristics of the actual secondary equipment, improving the realism of the modeling and the credibility of the verification results.

[0036] Conflict-driven vulnerability discovery module: Used to perform transient vulnerability search on the causal chain of operational events. Following the topological order of the causal chain, it sequentially activates the atomic secondary loop change events corresponding to each node, maintaining the active state set of the secondary loops corresponding to the currently activated event set. When the active state set of the secondary loops violates preset security invariants, a transient vulnerability is detected, triggering the conflict analysis process; specifically: When performing topological sorting on the causal chain of operational events and initializing the search state, the conflict-driven vulnerability discovery module receives the causal chain of operational events output by the causal chain construction module. First, it performs topological sorting on the causal chain of operational events to generate a topologically ordered sequence. The topological sorting is implemented using the Kahn algorithm, and the specific process is as follows: Calculate each node in-degree , in-degree Set of directed edges Midpoint Endpoint The number of directed edges is calculated using the following formula: ;in, Indicates from node Pointing to node The directed edge, Indicates the number of elements in the set; degree The physical meaning of is: atomic event The number of preceding causal events that need to be waited for before execution; Add all nodes with an in-degree of zero to the initial ready queue. When the ready queue is not empty, a node is taken from the queue and appended to the topologically ordered sequence. The node is placed at the end of the queue, and the in-degree of all its successors is decremented by one. When the in-degree of a successor node reaches zero, the successor node is added to the ready queue. The above process is repeated until the ready queue is empty.

[0037] Topologically ordered sequences are denoted as: ;in, This is a topological sorting mapping function. In a topologically ordered sequence, the first... The atomic events corresponding to each position in the original set The serial number in , The total number of atomic events; A topologically ordered sequence satisfies: for any directed edge ,like ,and ,but ; Then, initialize the search state, which includes: Activated event collection Initially, it is an empty set, that is ; Current topology cursor The initial value is 1, which represents the position of the next atomic event to be activated in the topologically ordered sequence; Learning Clause Library Initially, it is an empty set, that is ; Conflict record list Initially an empty list, it is used to store all transient vulnerability information detected during the search process.

[0038] It should be noted that: by using topological sorting, the partial order relationship in the causal chain of operation events is transformed into a deterministic linear activation order, ensuring that each atomic event is activated only after all its causal predecessor events have been activated, thereby ensuring the correct accumulation of the secondary loop state during the search process; at the same time, by initializing the search state variable, a clear starting condition is provided for the subsequent iterative execution of the main loop, avoiding state chaos during the search process.

[0039] When activating atomic events in topological order and updating the active state set of secondary loops, the current topological cursor is determined in the main search loop. Is it less than or equal to? ;when Perform this step when... When, the main search loop ends; when At that time, extract the topologically ordered sequence, the first... Atomic events at each position Add it to the active event set: ; Then, based on the updated set of activated events The active state set of the secondary circuit is recalculated. The active state set of the secondary circuit consists of three mapping tables: the current protection coverage mapping table. Current failure overwrite mapping table and the current protection timing configuration table ; Current protection coverage mapping table The construction method is as follows: ;in, Indicates the currently active event set Below, for the protected equipment A collection of protective devices with effective protective coverage; To protect the current loop, an indication function is connected when the protected device... The protection current loop, in the set of activated events Under the action of the protection device When the condition is met, the value is 1; otherwise, the value is 0. This is a trip output enable indication function, when the protection device... The trip output, in the set of activated events Under the influence of this function, the value is 1 when the function is enabled, and 0 otherwise.

[0040] Protection current loop connection indication function The calculation method is as follows: ;in, For the protected equipment With protective devices The protection current loop between them, in the initial connection state before the start of the switching operation, takes a value of 0 or 1, which is obtained from the initial state ledger of the substation secondary circuit. Represents the XOR operation; For the protected equipment With protective devices The set of protection current loop numbers between; Represents atomic events The object being operated on belongs to the protection current circuit; For atomic events The numerical code for the operation direction; when the operation direction is input. When the operation direction is exit, ; The logical meaning of the XOR operation is: the current connection state of the protection current loop is equal to the cumulative result of the initial state after all the switching operations of the activated events. Each switching operation flips the state once.

[0041] Trip output enable indication function The calculation method is as follows: ;in, For protection devices The trip output, in the initial enabled state before the switching operation begins, takes a value of 0 or 1; For protection devices The set of trip output numbers.

[0042] Current failure overwrite mapping table The construction method is as follows: ;in, Indicates the currently active event set Below, for circuit breakers A collection of protective devices with effective fail-safe start-up coverage; For the failure start-up circuit connection indication function, when the protection device The malfunctioning startup loop, in the set of activated events Under the action of the circuit breaker The value is 1 if the connection is established, and 0 otherwise.

[0043] Failure start-up loop connection indication function The calculation method is as follows: ;in, For protection devices With circuit breakers The failure start-up circuit between them, in its initial connection state before the switching operation begins, takes a value of 0 or 1; For protection devices With circuit breakers The set of failure start-up circuit numbers between them.

[0044] Current protection timing configuration table The construction method is as follows: ;in, For protection devices In the currently activated event set The timing configuration tuple below; For protection devices The current effective action time setting, in milliseconds; For protection devices The currently effective failure start-up time setting, in milliseconds; The action time setpoint and failure start time setpoint are determined based on whether the activated event set includes events related to the protection function soft switch activation / deactivation: when the activated event set contains events related to the protection device... The protective soft pressure plate, when executing the atomic event of the exit operation, and Setting all values ​​to infinity indicates that the protection device is not currently involved in protection actions or failure activation; otherwise, and Remove protection device The rated setting value.

[0045] After updating the active state set of the secondary loop, increment the current topology cursor by one: .

[0046] It should be noted that by using event-by-event activation and cumulative state updates, the dynamic evolution of the secondary circuit state during switching operations is accurately simulated. The cumulative state reversal is achieved using XOR operations, ensuring the accuracy and efficiency of the calculation. There is no need to recalculate all states from scratch; only the impact of newly activated events needs to be superimposed on the current state. At the same time, by introducing a soft pressure plate for protection functions, the impact on timing configuration is modeled, so that after the protection device is removed by the soft pressure plate, it no longer participates in timing coordination verification, thus avoiding misjudgment.

[0047] When performing security invariant checks and determining whether conflict analysis is triggered, based on the updated set of active secondary loop states, three security invariant checks are performed sequentially. These three security invariants are protection coverage invariants. Failure to cover invariants Timing invariants ; Protecting Coverage Invariants The formal definition is: ;in, It refers to the collection of all protected equipment within a substation; For the protected devices in the current protection coverage mapping table The number of elements in the corresponding set of protection devices; The physical meaning of the protection coverage invariant is: at any moment during the switching operation, each protected device must have at least one protection device to provide effective protection coverage, that is, the protection current loop has been connected and the trip output has been enabled, and protection dead zones are not allowed.

[0048] Failure to cover invariants The formal definition is: ;in, This refers to the collection of all circuit breakers within a substation. For the current failure, overwrite the mapping table interrupt circuit breaker. The number of elements in the corresponding set of protection devices; The physical meaning of failure coverage invariant is: at any moment during the switching operation, each circuit breaker must have at least one failure start circuit of the protection device connected and the trip output enabled, and failure start blind zone is not allowed.

[0049] Timing invariants The formal definition is: ;in, The preset minimum protection level difference time threshold is in milliseconds. Its value is determined according to the substation protection configuration procedures, and a typical value is 300 milliseconds. This is the preset failure start margin time threshold, in milliseconds. Its value is determined based on the circuit breaker tripping time and the failure protection return time, with a typical value of 200 milliseconds. The physical meaning of timing coordination invariants is: when the same protected equipment is covered by multiple protection devices at the same time, the operating time between each protection device must meet the grade coordination requirements, and the failure start time must be greater than the total protection operating time plus margin to prevent protection competition and malfunction.

[0050] The verification execution order is as follows: first verify the protected overlay invariants. Re-verification failure covers invariants Finally, verify the timing coordination invariants. ; When all three safety invariants are satisfied, the current state is determined to be safe, and the previous steps are returned to activate the next atomic event. When any security invariant is violated, a transient vulnerability is detected, and the type of the violated invariant is recorded. and the object identifier that violates the invariant This triggers the conflict analysis process. Among them, the violated invariant types The value is , or One of them; when hour, Number the protected equipment; when hour, Number the circuit breaker; when hour, The protected equipment is numbered and the corresponding conflict protection device is numbered.

[0051] It should be noted that by formally defining and sequentially verifying the three security invariants, the determination of the security of the secondary system is transformed from empirical judgment to computable logical assertion verification. The three invariants respectively cover three typical transient vulnerabilities: protection dead zones, failure blind zones, and protection races, forming a complete security verification system. At the same time, by recording the types of violated invariants and object identifiers, precise conflict starting point information is provided for the subsequent conflict analysis process, avoiding blind searching during the conflict analysis process.

[0052] During the reverse backtracking process of conflict analysis, once a transient vulnerability is detected, the conflict analysis process is triggered. The goal of the conflict analysis process is to locate the minimum set of conflict events that caused the violation of the security invariant, starting from the current state of violating the security invariant. Specifically: First, record the initial state of the conflict; then, set the currently active event set. The snapshot is saved as a set of conflict initiation events. ,Right now: ; Then, construct a set of candidate backtracking events. The candidate backtracking event set is a subset of events in the currently activated event set that are directly related to the violated security invariants. It is constructed as follows: when At that time, the set of candidate backtracking events is: ;in, For the protected equipment The set of all associated protection current loop numbers; For the protected equipment The set of trip output numbers for all associated protection devices; The physical meaning of the candidate backtracking event set is: only those events that operated on the protected device are selected. Events related to the protection current circuit or trip output are identified, excluding events unrelated to the device, thus narrowing the backtracking search space.

[0053] when At that time, the set of candidate backtracking events is: ;in, For circuit breakers The set of all associated failed startup circuit numbers; For circuit breakers A set of trip output numbers for all protection devices with fail-safe start-over function; when At that time, the set of candidate backtracking events is:

[0054] ; Then, for the candidate backtracking event set Events in a topologically ordered sequence Sort the positions in the list from back to front to obtain a reversed candidate list. ; The purpose of reversing the order is to prioritize removing the most recently activated events, i.e., the events most likely to cause state changes, thereby improving the efficiency of locating the minimum conflict set.

[0055] It should be noted that by constructing a set of candidate backtracking events directly related to the violated security invariants, the search space for conflict analysis is reduced from all activated events to a subset of events directly related to the conflict object, significantly reducing the computational complexity of reverse backtracking. At the same time, arranging candidate events in reverse topological order allows the most recent events that are most likely to cause state changes to be examined first, accelerating the convergence of the minimum conflict set.

[0056] When locating the minimum conflict event set by progressively removing events, the process involves progressive removal and state re-verification based on the obtained inversion candidate list to locate the minimum conflict event set; specifically: Initialize the current set of probing events For the set of conflict initiation events: Initialize the minimum set of conflict events. The set is empty; candidate events are retrieved sequentially according to the reverse candidate list. Perform the following probing process: Candidate events Temporarily removed from the current set of probing events: ; Based on the set of temporary trial events Following the same steps as before, recalculate the active state set of the secondary circuit, that is, recalculate the current protection coverage mapping table, the current failure coverage mapping table, and the current protection timing configuration table. Then, following the same steps as before, verify the recorded violated safety invariants. Whether the condition is restored to satisfactory; Define state recovery indicator function : in, A value of 1 indicates that the safety invariant is restored to being satisfied after the candidate event is removed, while a value of 0 indicates that the safety invariant is still violated after removal. when When, describe the candidate events This is a necessary event that leads to the violation of the safety invariant; therefore, it is added to the set of minimal conflict events. ; At the same time, update the current set of trial events to the temporary set of trial events, thus confirming the removal of the event: ; when When, describe the candidate events If an event is not a necessary event that would cause a violation of a safety invariant, it will not be added to the minimum set of conflicting events, and the current set of trial events will remain unchanged.

[0057] Repeat the above process until all candidate events in the reversed candidate list have been examined. The final set of minimum conflict events It satisfies the following minimumity condition: ; That is, each event in the minimum set of conflicting events, when removed individually, cannot restore the security invariants to their original state; all events must be removed to restore the security invariants. This guarantees that... It is the minimum necessary set of events that would cause the safety invariant to be violated.

[0058] It should be noted that by gradually removing and re-verifying the state, the minimum set of conflicting events that cause the security invariants to be violated is precisely located, avoiding the inclusion of irrelevant events as causes of conflict. The guarantee of the minimumity condition ensures that the subsequently generated conflict clauses have the highest generalization ability. The conflict clauses only contain the events that actually cause the vulnerability and do not contain redundant events, so that safe search paths are not overly pruned during subsequent pruning.

[0059] When encoding the minimum set of conflict events into conflict clauses and adding them to the learned clause library, the minimum set of conflict events is used as the basis for... Encode it as a conflict clause and add it to the learning clause library. Specifically: The encoding method for conflict clauses is: to use the minimum set of conflict events. The set of indices of each atomic event is encoded into an ordered tuple: ;in, This indicates that the elements in the set are sorted in ascending order; For atomic events The index in the original set; Conflict Clause The semantics are: when the set of activated events also contains a set of sequence numbers In the case of atomic events corresponding to all sequence numbers, it will inevitably lead to the violation of safety invariants; conflict clauses Along with its associated vulnerability attribute information, it is added to the learning clause library: ;in, To learn an entry from the clause library, The set of event sequence numbers for conflicting clauses. For the type of the safety invariant that was violated corresponding to the conflicting clause, This is the identifier of the object that violates the conflict clause; At the same time, the transient vulnerability information detected this time will be recorded in the conflict log list: ;in, The topology cursor value at the time the transient vulnerability is detected represents the position of the vulnerability in the operation sequence.

[0060] After completing the learning of conflict clauses, the current topological cursor will be... If the process remains unchanged (i.e., does not backtrack), it returns to the previous step, activates the next atomic event, and executes the subsequent search process.

[0061] It should be noted that by encoding the minimum set of conflict events into conflict clauses and persistently storing them in the learning clause library, the cumulative learning of conflict knowledge is achieved. As the search process progresses, the learning clause library is continuously enriched, enabling rapid identification when encountering the same or similar conflict patterns in subsequent searches, without having to repeatedly execute time-consuming state calculations and reverse backtracking processes. This conflict-driven learning mechanism borrows the idea of ​​CDCL (Conflict-Driven Clause Learning) in the SAT solver and adapts it to the field of secondary loop transient vulnerability search, significantly improving search efficiency.

[0062] When performing search pruning using the learning clause library, each new atomic event is added to the set of active events. Before performing the complete calculation of the active state set of the secondary loop, a fast matching verification of the learned clause library is performed first; the fast matching verification process is as follows: Extract the currently active event set The set of sequence numbers of all atomic events in the middle: ; Learning Clause Library Each entry in The execution subset includes the following decisions: ;in, To match the indicator function, Clauses indicating conflict All event numbers in the set are included in the currently active event number set; When there exists an entry that makes If a transient vulnerability exists in the current state, the vulnerability information corresponding to that entry will be directly determined. Record to the conflict log list It skips the calculation of the active state set of the complete quadratic loop in the current state and the verification of safety invariants, and directly returns to the previous step to continue activating the next atomic event; When there are no entries in the learning clause library, At that time, continue to perform the complete calculation of the active state set of the secondary loop and the verification of security invariants; The time complexity of fast matching and validation is . ,in, To learn the number of entries in the clause library, To learn the number of events in the clause library with the largest conflict clause; Because the minimum set of conflicting events typically contains only 2 to 4 events, The value is very small, therefore, the computational cost of fast matching and verification is much smaller than that of calculating the complete set of active states of a secondary loop.

[0063] It should be noted that by performing a fast matching and verification of the learned clause library before calculating the complete state, the learned conflict knowledge is transformed into search pruning capabilities. When an event combination matching the learned conflict clause is encountered again during the search, there is no need to repeat the time-consuming state calculation and invariant verification; the vulnerability is directly identified and skipped, significantly reducing the amount of redundant calculation. As the search progresses, the learned clause library continues to accumulate, and the pruning effect gradually enhances, resulting in an increasing trend in overall search efficiency. This closed-loop learning-pruning mechanism enables the conflict-driven vulnerability mining module to maintain acceptable computation time when handling large-scale operational event causal chains, meeting the real-time requirements for auxiliary decision-making in engineering practice.

[0064] The partial order compensation planning module is used to obtain each conflict clause. Taking the minimum set of conflict events corresponding to each conflict clause as the target to be eliminated, it searches for insertable sets of compensation atomic events under the topological constraints of the causal chain of operation events and the safety constraints of primary equipment operation. The compensation atomic event sets are then inserted into the positions of the corresponding conflict clauses in the causal chain of operation events, generating a partial order graph of safe operation events after conflict resolution. The module then performs linearization on the partial order graph to obtain the safe operation sequence. Specifically: When acquiring conflict clauses and parsing the target to be eliminated, the partial order compensation planning module receives the learning clause library and conflict record list output by the conflict-driven vulnerability mining module, and extracts all transient vulnerability entries from the conflict record list. Each entry in the conflict record list is denoted as: ;in, This is the sequence number of the transient vulnerability entry. , This represents the total number of transient vulnerabilities detected. For the first The minimum set of conflict events corresponding to a transient vulnerability; For the first The type of the violated security invariant corresponding to each transient vulnerability is a protection overriding invariant. Failure to cover invariants or time-series invariants one; For the first The identifier of the violating object corresponding to each transient vulnerability; To detect the first The topology cursor value for a transient vulnerability.

[0065] For each transient vulnerability entry The target to be eliminated is analyzed, and its formal definition is: ;in, Indicates the first A target triplet to be eliminated, whose semantics are: it needs to be compensated by inserting a compensating atomic event so that the triplet containing... Safety invariants under any set of activated events of all events For objects The constraints are no longer violated; Then, for all targets to be eliminated, according to the topological cursor value... Arrange the results in ascending order to obtain an ordered list of targets to be eliminated: ;in, In accordance with The ascending order sequence of item numbers satisfies ; The purpose of ascending order is to execute the compensation plan sequentially according to the order in which transient vulnerabilities appear in the operation sequence, ensuring that the vulnerabilities that appear first are resolved first, and avoiding conflicts between subsequent compensation operations and previous compensation operations.

[0066] It should be noted that by structuring and orderly arranging the conflict record list, the unstructured conflict information output by the conflict-driven vulnerability mining module is transformed into standardized targets to be eliminated that can be directly processed by the partial-order compensation planning module. Arranging the targets in ascending order according to the topology cursor value ensures the temporal consistency of the compensation planning and prevents subsequent compensation operations from destroying the security state established by the preceding compensation operations.

[0067] When generating a set of candidate compensation atomic events based on the target to be eliminated, for each target, a set of candidate compensation atomic events is generated based on the obtained ordered list of targets to be eliminated. The set of candidate compensation atomic events is an enumeration of all feasible compensation operations that can resolve the target to be eliminated; specifically: The generation rules for candidate compensating atomic events are based on the type of security invariant being violated. Determine separately: when When the protection overlay invariant is violated, the following two types of candidate compensation atomic events are generated: The first category of candidate compensation events is the protection current loop switching event; for the violating object... (At this point, the protected device number is displayed), query the protected device-protection device association table. Get the set of all protection device numbers associated with the protected device. ;right Each protective device Generate a candidate compensation atomic event Its attributes are: event operation type is protection current loop switching, and event operation object is the protected equipment. With protective devices The protection current loop number between them, and the event operation direction is activation; The second category of candidate compensation events is the tripping output input event; for Each protective device Generate a candidate compensation atomic event Its attributes are: event operation type is trip output enable / disable, and event operation object is protection device. The trip output number indicates that the event operation direction is "on".

[0068] when When the failure coverage invariant is violated, the following two types of candidate compensation atomic events are generated: The first category of candidate compensation events is the failure start-up circuit activation event; for the violating object... (At this point, the circuit breaker number is being used.) Query the circuit breaker-protection device failure association table to obtain the set of all protection device numbers that have failure start function for this circuit breaker. ;right Each protective device Generate a candidate compensation atomic event Its attributes are: event operation type is malfunction start circuit enable / disable, and event operation object is protection device. With circuit breakers The failure start-up circuit number between them indicates that the event operation direction is "engagement"; The second type of candidate compensation event is the tripping output input event, which is generated in the same way as the second type of candidate compensation event when the protection coverage invariant is violated.

[0069] when When the timing invariant is violated, the following candidate compensating atomic events are generated: For each protection device in the conflict protection device pair, generate a protection function soft pressure plate activation event and a protection setting temporary switching event; the attributes of the protection setting temporary switching event are: the event operation type is protection setting switching, the event operation object is the protection setting zone number of the corresponding protection device, and the event operation direction is switching to the setting zone that meets the grade coordination requirements.

[0070] All the above candidate compensation atomic events are compiled into the first... The set of candidate compensation events for each target to be eliminated is denoted as: ;in, For the first The first target to be eliminated One candidate compensation atomic event, , For the first The total number of candidate compensating atomic events for each target to be eliminated.

[0071] It should be noted that: by using a classification generation strategy based on the type of safety invariants, all feasible compensation operation schemes are systematically enumerated to ensure that no possible compensation path is missed; the construction of the candidate compensation event set provides a complete search space for subsequent constraint search, enabling the partial order compensation planning module to find the optimal compensation scheme with sufficient choice.

[0072] When establishing the constraint system for the compensation search, based on the obtained set of candidate compensation events, a constraint system that must be satisfied during the compensation search process is established. This constraint system consists of two parts: topological constraints and primary equipment operation safety constraints. Specifically: The formal definition of topological constraints is:

[0073] ;in, For candidate compensation atomic events The insertion position number in the topologically ordered sequence of the causal chain of the operation event; The maximum position index of all causal preceding events of the candidate compensation event in the topologically ordered sequence; The minimum position index of all causal successor events of the candidate compensation event in the topologically ordered sequence; The method for determining the causal precursor event is as follows: if the candidate compensation atomic event... operation objects With respect to an existing atomic event in the causal chain of the operation event operation objects Same, and Operation direction and If the operation direction is opposite, then for The causal preceding event; the method of determining the causal subsequent event is analogous.

[0074] The physical meaning of topological constraints is that the insertion position of a compensating atomic event must be after its causal predecessor event and before its causal successor event, and must not disrupt the existing causal dependencies in the causal chain of the operation event.

[0075] The formal definition of safety constraints for primary equipment operation is:

[0076] Sub-constraint 1: Charged operation prohibited constraint; when candidate compensation atomic events When the operation target is a disconnector or grounding switch, the event must not be inserted into the topology interval where the corresponding primary device is in a energized state. The method for determining the energized state is as follows: query the circuit breaker status of the corresponding primary device in the causal chain of the operation event. If the circuit breaker has been closed and has not been opened before the candidate compensation event insertion position, the primary device is determined to be in a energized state. Sub-constraint 2: Five-defense interlocking constraint; when candidate compensation atomic events When the operation target is a disconnecting switch, the insertion position of this event must be after the corresponding circuit breaker opening event; the formal expression of the five-prevention interlocking constraint is: ;in, The position number in the topologically ordered sequence corresponding to the circuit breaker opening event; Sub-constraint 3: Protective Coordination Constraint; When candidate compensation atomic events The operation type is when the protection setting is switched. The insertion position of this event must be after the protection current loop of the corresponding protection device has been switched. The formal expression of the protection coordination constraint is: ;in, This refers to the position number in the topologically ordered sequence of the protection current loop switching event corresponding to the protection device; The maximum time required for physical switching of the protection current loop is measured in milliseconds. The sampling period for the protection device is expressed in milliseconds. This represents the time step between adjacent positions in a topologically ordered sequence, in milliseconds. It is a rounding function; The physical meaning of protection coordination constraints is that protection setting switching can only be executed after the physical switching of the protection current loop is completed and the protection device has completed the new state sampling. Otherwise, the protection device may execute the new setting logic based on the old current sampling value, resulting in protection maloperation or failure to operate.

[0077] It should be noted that by establishing a complete constraint system consisting of topological constraints and primary equipment operation safety constraints, it is ensured that any compensation scheme generated during the compensation search process meets the physical safety requirements of power system operation. Topological constraints ensure that the compensation operation does not disrupt the existing causal logic, while primary equipment operation safety constraints ensure that the compensation operation does not violate engineering safety regulations such as prohibition of live operation, five-prevention interlocking, and protection coordination. Thus, the final output safe operation sequence can be executed both theoretically and in engineering practice.

[0078] When searching for the optimal set of compensation atomic events under the constraint system, based on the obtained candidate compensation event set and the established constraint system, for each target to be eliminated... The execution constraint satisfies the search to determine the optimal set of compensated atomic events; specifically: The constraint satisfies that the objective function of the search is to minimize the compensation cost, and the compensation cost function is defined as: ;in, In order to target the One target to be eliminated, and a set of compensated atomic events to be selected. The comprehensive compensation cost at that time; To select from the set of candidate compensation events The selected subset of compensating atomic events; The number of selected compensation atomic events; is the event quantity weighting coefficient, which represents the operational complexity cost brought about by each additional compensation operation event. Its value is a dimensionless positive number, typically taking the value of 1. The time delay weighting coefficient represents the operational efficiency cost per unit of time delay, and its unit is the dimensionless cost per millisecond, with a typical value of 0.01. The risk weighting coefficient represents the safety cost per unit of operational risk. Its value is a dimensionless positive number, typically 2.

[0079] in, For the first One candidate compensated atomic event The introduced operation time delay, in milliseconds, is calculated as follows: ;in, For candidate compensation atomic events The actual insertion position number; For the first The minimum set of conflict events corresponding to each target to be eliminated. In the sequence, the position number of the last event in the topologically ordered sequence; This represents the time step between adjacent positions in a topologically ordered sequence, in milliseconds. The physical meaning of operation time delay is: the time offset of the compensation operation relative to the original time of the conflict. The larger the value, the longer the additional waiting time introduced by the compensation operation. For the first One candidate compensated atomic event The operational risk level, its value is within a range. The dimensionless value within; the method for determining operational risk is: When the operation type of the candidate compensation atomic event is protection current loop switching. This characterizes the switching operation of the protection current loop, which carries the risk of high voltage due to open circuit; when the operation type of the candidate compensation atomic event is trip output enabling / disabling... When the operation type of the candidate compensation atomic event is failure start loop enable / disable, When the operation type of the candidate compensation atomic event is protection setting switching, .

[0080] The solution process for the constraint satisfaction search is as follows: When all topological constraints are satisfied... Safety constraints for primary equipment operation Under the premise of, from the set of candidate compensation events Selecting a subset This makes the compensation cost function Take the minimum value, and the selected set of compensation atomic events satisfies the resolution sufficiency condition: ;in, To resolve the sufficiency indicator function, it is defined as follows: ; Condition 1 is as follows: ; The physical meaning of eliminating sufficiency conditions is that the selected set of compensating atomic events must be able to completely eliminate the corresponding transient vulnerability. That is, in the causal chain of operation events after the insertion of the compensating event, the security invariants that were previously violated will no longer be violated at any time.

[0081] The constraint satisfaction search is solved using the branch and bound method; the search process of the branch and bound method is as follows: Each candidate event in the candidate compensation event set is ranked according to its operational risk level. The search tree is sorted in ascending order, and candidate events are added to the current compensation scheme in turn. At each node of the search tree, the lower bound of the compensation cost of the current partial scheme is calculated. If the lower bound is greater than the compensation cost of the currently found optimal scheme, the branch is pruned. The calculation method of the lower bound of the compensation cost is as follows: ;in, This is the subset of compensated atomic events selected at the current search node; The lower bound of the compensation cost ignores the time delay term. Since the time delay term is non-negative, it is the lower bound of the actual compensation cost. The final set of optimal compensation atomic events is denoted as .

[0082] It should be noted that: by defining a comprehensive compensation cost function and using the branch and bound method to solve it, the compensation scheme with the minimum compensation cost is automatically searched under the premise of satisfying all safety constraints and resolution sufficiency conditions; the compensation cost function comprehensively considers three dimensions: number of operations, time delay, and operational risk, so that the final selected compensation scheme achieves an optimal balance between safety, efficiency, and operability; the branch and bound method avoids the combinatorial explosion problem of exhaustive search by pruning the lower bound of the cost, thus ensuring the computational feasibility of the search process.

[0083] When establishing the necessary causal partial order relationship between compensating atomic events, the optimal set of compensating atomic events corresponding to each target to be eliminated is obtained. For all compensating atomic events, necessary causal partial order relations are established. The principle for establishing necessary causal partial order relations is: a directed edge is established only when there is an inescapable causal dependency between two compensating atomic events, and a total order relation is not mandatory.

[0084] The union of the sets of optimal compensation atomic events corresponding to all targets to be eliminated yields the global set of compensation atomic events: ; For the global compensation atomic event set Any two compensated atomic events and , Perform a necessary causal partial order determination; the rules for determining a necessary causal partial order are as follows: Establish a sequence from the following necessary partial order conditions when one of them is satisfied. point to Partially ordered directed edges (assuming) Logically it should precede implement): Necessary partial order condition one: The operands are the same and the operation directions constitute a dependency; when The objects of operation and The objects being operated on are the same, and The operation direction is to exit, When the operation direction is to invest, establish from point to The partial order directed edges; the physical meaning of the necessary partial order condition one is: for the same quadratic loop object, the exit operation must be completed first, and then the input operation will be performed, otherwise an operation conflict will occur.

[0085] Second necessary partial sequence condition: the switching of the protection current loop precedes the switching of the protection setting. The operation type is protection current loop switching. When the operation type is protection setting switching, and both operate on the same protection device, a transition is established from... point to The partial order directed edge; the physical meaning of the second necessary partial order condition is: the protection setting switching must be performed after the protection current loop switching is completed, otherwise the protection device may execute the new setting logic based on the incorrect current input.

[0086] Necessary partial sequence condition three: The trip output circuit is activated before the failure start circuit is activated; when The operation type is trip output input. When the operation type is failure start circuit activation, and both operate on the same protection device, a connection is established from... point to The partial order directed edge; the physical meaning of the third necessary partial order condition is: the effectiveness of the failure start circuit depends on the enable state of the trip output. The trip output must be enabled before the failure start circuit is put into operation.

[0087] When two compensation atomic events do not satisfy any of the above necessary partial order conditions, no partial order directed edge is established, and the two remain in a partially order-independent state. The physical meaning of the partially order-independent state is that the execution order of the two compensation atomic events can be arbitrarily arranged, there is no causal dependency, and it provides order flexibility for subsequent linearization output.

[0088] All partially ordered directed edges are collected into a set of compensated partially ordered edges, denoted as: ;in, Indicates compensation atomic events point to The partially ordered directed edges.

[0089] It should be noted that by establishing directed edges for partial orders only when there are unavoidable causal dependencies, unnecessary order constraints caused by forced total ordering are avoided. This strategy of minimizing the establishment of partial order relations provides the greatest flexibility in order selection during subsequent linearization output, enabling the selection of the most efficient execution order while satisfying safety constraints. At the same time, the three necessary partial order conditions cover the most critical causal dependency types in quadratic loop operations, ensuring the completeness and correctness of the partial order relations.

[0090] When inserting compensating atomic events into the causal chain of operation events, based on the obtained optimal set of compensating atomic events and the established set of compensating partial order edges, all compensating atomic events are inserted into the causal chain of operation events. The insertion process is divided into two sub-processes: position determination and edge connection. Specifically: The location determination sub-process is as follows: for each compensated atomic event The insertion position is determined in the topologically ordered sequence of the causal chain of the operation events. The method for determining the insertion position is as follows: Calculate compensated atomic events Allowed insertion interval The lower bound of the allowed insertion interval. The maximum of the following values: ;in, The maximum position index of all causal preceding events of the compensation event in the topologically ordered sequence; For the first The minimum set of conflict events corresponding to each target to be eliminated. In the sequence, the position number of the first event in the topologically ordered sequence; the physical meaning of the lower bound is: the compensation event must be inserted before or at the same position as the first event in the set of conflicting events in order to establish a safe state before a conflict occurs; Upper bound of the allowed insertion interval The minimum of the following values: ;in, The minimum position index of all causal successor events of the compensation event in the topologically ordered sequence; The maximum insertion offset is a preset value, which is a positive integer, typically 3, representing the maximum allowable offset of the compensation event relative to the conflicting event. The physical meaning of the upper bound is that the compensation event must not be inserted after the causal successor event, and must not deviate too far from the conflicting event to ensure the timeliness of the compensation. Within the allowed insertion interval, choose the compensation cost function. Medium time delay item The smallest position is used as the final insertion position; The edge connection sub-process is as follows: The compensated atomic event is added as a new node to the node set of the causal chain of the operation event, and the following directed edges are established: First, establish causal edges between the compensation event and the original event; for each compensation atomic event... If its operation object is related to a certain original atomic event in the causal chain of the operation event, If the objects being operated on are the same and the directions of the operations are opposite, then a causal edge is established from the first executed event to the second executed event, and a timing constraint label is assigned. Second, the set of compensated partial order edges will be established. All partially ordered directed edges in the array are added to the set of directed edges in the causal chain of the operation events; After insertion, the causal chain of the expansion operation events is obtained, denoted as: ;in, For the expanded set of nodes; For the expanded set of directed edges, The set of newly created causal edges between the compensation event and the original event; This is the expanded set of timing constraint labels.

[0091] It should be noted that by allowing precise calculation of the insertion interval, it is ensured that the compensation atomic event is inserted in the correct position that can resolve transient vulnerabilities without destroying existing causal constraints; the connection of sub-processes ensures that the causal dependencies between the compensation event and the original event, and between the compensation events themselves, are fully modeled, so that the extended causal chain of operation events is logically self-consistent and physically executable.

[0092] When generating a partial order graph of security operation events after conflict resolution, conflict resolution verification is performed based on the extended causal chain of operation events. After confirming that all transient vulnerabilities have been resolved, the partial order graph of security operation events is generated. Specifically: The process of conflict resolution verification is as follows: [This involves] verifying the causal chain of extended operation events. Re-execute the transient vulnerability search process of the conflict-driven vulnerability discovery module to obtain a new list of conflict records. ; when When the list is empty, it is determined that all transient vulnerabilities have been successfully resolved, and the causal chain of the operation events will be expanded. This is identified as a partial sequence graph of safe operation events, denoted as: ; when If it is not empty, it means that the current compensation plan has failed to completely eliminate all transient vulnerabilities. New conflict entries are added to the ordered list of targets to be eliminated. At the end, return to the previous steps and re-execute the compensation search process; to prevent infinite loops, set a maximum number of iterations. Its typical value is 5; When the number of iterations reaches If an unresolved transient vulnerability still exists, an alarm message will be output to prompt the operator to intervene manually. Among them, the partial order graph of safe operation events It has the following properties: Property 1: Safety; Partial order graph of safe operation events For any topologically linearized sequence, the covering invariant is protected during the sequential execution of atomic events. Failure to cover invariants Timing invariants It is satisfied at any given time; Property 2: Partial Order; Partial Order Graph of Safe Operation Events The directed edges in the partial order graph contain only the necessary causal dependencies and do not contain redundant order constraints; for two atomic events that do not have a causal dependency, there are no directed edges connecting them in the partial order graph, and the execution order can be flexibly arranged. Property 3: Minimal Compensation; Partial Order Graph of Safe Operation Events The number of newly added compensating atomic events and the compensation cost are minimized under the premise of satisfying security and partial order.

[0093] It should be noted that: by re-executing the transient vulnerability search through the causal chain of extended operation events to perform closed-loop verification, the effectiveness of the compensation scheme is ensured, and the compensation operation itself is prevented from introducing new transient vulnerabilities; the iterative compensation mechanism ensures that compensation can be automatically added when a single compensation is insufficient, until all vulnerabilities are eliminated; the three properties of the partial order graph of security operation events ensure the quality of the final output scheme from the three dimensions of security, flexibility and economy.

[0094] Based on the obtained partial order graph of safe operation events When performing linearization of the output, transforming the partial-order graph into an executable, fully-order-safe sequence of operations, the linearization output is implemented using a priority-weighted topological sorting algorithm. The process of the priority-weighted topological sorting algorithm is as follows: First, a partial order graph of safe operation events. Each node in Calculate priority weights The formula for calculating priority weight is: ;in, For nodes The priority weight is a dimensionless positive number. The larger the value, the higher the priority of the node in the topological sorting. This is the original event priority coefficient, which is a dimensionless positive number, typically taking the value of 1. For the original event indicator function, when the node The value is 1 when operating on an existing atomic event in the event causal chain, and 0 otherwise. To compensate for the event priority coefficient, its value is a dimensionless positive number, typically 1.5, and its value is greater than... The physical meaning is: the compensation event should be executed before the original event in order to establish a safe state as early as possible; To compensate for the event indicator function, when the node The value is 1 when compensating for atomic events; otherwise, the value is 0. This is the priority coefficient, which is a dimensionless positive number, typically 0.5. For nodes Key performance indicators; Keyness Indicators The calculation formula is: ;in, For nodes Partial order diagram of safe operation events The out-degree in, that is, the degree of... The number of directed edges originating from a given point; The total number of nodes in the partial order graph of safe operation events; The physical meaning of the criticality index is: the larger the out-degree of a node, the more subsequent events it depends on. Prioritizing the execution of this node can release the execution constraints of subsequent events as early as possible and improve the overall operational efficiency.

[0095] Then, perform a topological sort with priority weights; initialize the ready queue. Let be the set of all nodes with an in-degree of zero; when the ready queue is not empty, select priority weights from the ready queue. Largest node : ; Will Retrieve from the ready queue and append to the safe operation sequence. At the end, and Decrement the in-degree of all successor nodes by one; when the in-degree of a successor node reaches zero, add that successor node to the ready queue. Repeat the above process until the ready queue is empty. The final safe operation sequence is denoted as: ;in, For linearized sorting mapping functions, Indicates the first in the safe operation sequence The atomic events corresponding to each position are in the set of nodes in the partial order graph of safe operation events. The serial number in , The total number of nodes in the partial order graph of safe operation events. ; Safety Operating Sequence The following guarantees are met: For partial order graphs of safety operation events any directed edge in ,like and ,but That is, a safe operating sequence that strictly respects all causal constraints in the partial order graph; Finally, the safe operation sequence Each atomic event in the process is converted into operation instruction text that can be understood by the operator according to its event attributes, and then output to the operation ticket generation interface; the conversion method is as follows: for each atomic event According to its event operation type Event Operation Object and event operation direction This generates the corresponding operation instruction text.

[0096] It should be noted that: by using a topological sorting algorithm with priority weights, the partial order graph is transformed into a uniquely determined total order safe operation sequence, providing operators with clear step-by-step operational guidance; the priority weight design ensures that compensation events are prioritized for execution, ensuring that safety measures are implemented as early as possible; the introduction of criticality indicators prioritizes the execution of high-constraint nodes, reducing waiting time during operation and improving overall operational efficiency; linearized output strictly respects all causal constraints in the partial order graph, guaranteeing the physical executability and logical correctness of the safe operation sequence, ultimately converting it into an output form of operation instruction text. This allows the output of the partial order compensation planning module to be directly integrated with the operation ticket management system, achieving a fully automated closed loop from vulnerability detection to safe operation plan generation.

[0097] In the several embodiments provided by this invention, it should be understood that the disclosed system can be implemented in other ways. For example, the embodiments of the invention described above are merely illustrative; for example, the division of modules is only a logical functional division, and there may be other division methods in actual implementation.

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

[0099] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module described above can be implemented in hardware or in the form of hardware plus software functional modules.

[0100] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the essential characteristics of the present invention.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A substation switching operation auxiliary decision-making device, characterized in that, include: Operation event causal chain construction module: used to obtain the sequence of switching operation tickets to be executed, decompose each operation step in the switching operation ticket sequence into atomic secondary circuit change events, and construct the operation event causal chain based on the data dependency relationship and protection logic coupling relationship between each atomic secondary circuit change event. Each node in the operation event causal chain carries an event attribute vector. The event attribute vector includes the set of protection current circuit identifiers affected by the event, the set of trip output identifiers affected by the event, and the set of failure start circuit identifiers affected by the event. The directed edges in the operation event causal chain carry timing constraint labels. Conflict-driven vulnerability discovery module: used to perform transient vulnerability search on the causal chain of operation events. According to the topological order of the causal chain of operation events, it sequentially activates the atomic secondary loop change events corresponding to each node, maintains the active state set of the secondary loop corresponding to the currently activated event set, and determines that a transient vulnerability has been detected when the active state set of the secondary loop violates the preset security invariant, triggering the conflict analysis process. The partial order compensation planning module is used to obtain each conflict clause, take the minimum set of conflict events corresponding to each conflict clause as the target to be eliminated, search for the set of compensable atomic events that can be inserted under the topological constraints of the causal chain of operation events and the safety constraints of primary equipment operation, insert the set of compensable atomic events into the position of the corresponding conflict clause in the causal chain of operation events, generate a partial order graph of safe operation events after conflict resolution, and perform linearization on the partial order graph of safe operation events to obtain the safe operation sequence.

2. The substation switching operation auxiliary decision-making device according to claim 1, characterized in that, A switching operation ticket sequence is an ordered set of operation steps generated by substation operators or an operation ticket management system and arranged in a predetermined execution order. For each operation step in the switching operation ticket sequence, its structured fields are parsed. Based on the structured information of each operation step obtained from the parsing, each operation step is atomized and decomposed to obtain the corresponding atomic secondary circuit change event.

3. The auxiliary decision-making device for the entire process of substation switching operation according to claim 2, characterized in that, Based on the obtained set of atomic events and the basic attributes of each atomic event, an event attribute vector is constructed for each atomic secondary loop change event; based on the obtained event attribute vectors of each atomic event, data dependency determination is performed on any two atomic events in the set of atomic events; for atomic event pairs that satisfy the data dependency conditions, a data dependency causal edge is established.

4. The substation switching operation auxiliary decision-making device according to claim 3, characterized in that, Based on the event attribute vectors of each atomic event and the established data dependency causal edges, for atomic event pairs in the atomic event set for which data dependency causal edges have not yet been established, the protection logic coupling relationship is determined. For atomic events that satisfy the protection logic coupling relationship, establish a coupling causal edge.

5. The substation switching operation auxiliary decision-making device according to claim 4, characterized in that, Based on the established data-dependent causal edges and coupled causal edges, temporal constraint labels are assigned to all causal edges, ultimately forming a causal chain of operational events.

6. The substation switching operation auxiliary decision-making device according to claim 5, characterized in that, When performing safety invariant checks and determining whether conflict analysis is triggered, three safety invariant checks are performed sequentially based on the updated set of active secondary loop states. The three safety invariants are protection coverage invariant, failure coverage invariant, and timing coordination invariant. When all three safety invariants are satisfied, the current state is determined to be safe, and the previous steps are returned to activate the next atomic event. When any security invariant is violated, a transient vulnerability is detected. The type of the violated invariant and the identifier of the object that violated the invariant are recorded, and then the conflict analysis process is triggered.

7. The substation switching operation auxiliary decision-making device according to claim 6, characterized in that, Once a transient vulnerability is detected, a conflict analysis process is triggered. The goal of the conflict analysis process is to locate the minimum set of conflict events that caused the violation of the security invariant, starting from the current state that violates the security invariant. For the events in the candidate backtracking event set, sort them from back to front according to their positions in the topologically ordered sequence to obtain an inverted candidate list. Based on the obtained inverted candidate list, a stepwise removal and state re-verification process is performed to locate the minimum set of conflict events.

8. The substation switching operation auxiliary decision-making device according to claim 7, characterized in that, When establishing the constraint system for compensation search, based on the obtained set of candidate compensation events, a constraint system that must be satisfied during the compensation search process is established. The constraint system consists of two parts: topological constraints and primary equipment operation safety constraints.

9. The auxiliary decision-making device for the entire process of substation switching operation according to claim 8, characterized in that, When searching for the optimal set of compensation atomic events under the constraint system, based on the obtained set of candidate compensation events and the established constraint system, a constraint satisfaction search is performed for each target to be eliminated to determine the optimal set of compensation atomic events.

10. The auxiliary decision-making device for the entire process of substation switching operation according to claim 9, characterized in that, When inserting compensation atomic events into the causal chain of operation events, based on the obtained set of optimal compensation atomic events and the established set of compensation partial order edges, all compensation atomic events are inserted into the causal chain of operation events. The insertion process is divided into two sub-processes: position determination and edge connection. Based on the extended operational event causal chain, conflict resolution verification is performed. After confirming that all transient vulnerabilities have been resolved, a partial order graph of secure operational events is generated.