Method for generating power dispatching decision and device for generating power dispatching decision

By introducing retrieval-enhanced generation technology into the power dispatching system, and combining semantic similarity, logical relationships, and electrical topology distance, power dispatching decision schemes are generated, solving the problem of insufficient accuracy in power dispatching and realizing the automation, precision, and safety of power dispatching.

CN123144076APending Publication Date: 2026-11-20SHENZHEN POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611636348.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The existing power dispatching system suffers from insufficient accuracy in the face of new energy integration and complex grid topology.

Method used

By using Retrieval Enhanced Generation (RAG) technology, combined with external knowledge bases and large models, power dispatch decision schemes are generated. Semantic similarity, logical relationships, electrical topology distance, and operational section safety indicators are used to reorder the data, forming a structured text sequence to generate power dispatch decision schemes.

Benefits of technology

It has improved the accuracy and security of power dispatching decisions, and realized the automation, precision and security of power dispatching decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144076A_ABST
    Figure CN123144076A_ABST
Patent Text Reader

Abstract

The application relates to a power dispatch decision generation method and a power dispatch decision generation device. The method comprises the following steps: according to a received power dispatch instruction, performing similarity processing on each rule segment in a power dispatch rule text to obtain a candidate rule segment set corresponding to the power dispatch rule text; determining a reordering score of each candidate rule segment in the candidate rule segment set; based on the reordering score of each candidate rule segment, reordering each candidate rule segment to obtain a reordered candidate rule segment set; performing context construction on the reordered candidate rule segment set to obtain a text sequence corresponding to the power dispatch rule text; and generating a power dispatch decision scheme according to the power dispatch instruction and the text sequence corresponding to the power dispatch rule text. The method can improve the accuracy of the power dispatch decision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system dispatching technology, and in particular to a method and apparatus for generating power dispatching decisions. Background Technology

[0002] Power dispatching is a core business for ensuring the safe and stable operation of the power grid. Dispatchers need to quickly generate compliant operation tickets and make dispatching decisions based on massive amounts of procedural documents under complex operating conditions. Traditional dispatching decision support systems mainly rely on rule engines and expert systems to judge the compliance of dispatching operations through pre-set logic. However, with the large-scale integration of new energy sources and the increasing complexity of the power grid topology, the limitations of traditional methods in terms of knowledge coverage completeness, scenario adaptability, and decision generation efficiency have become more prominent.

[0003] To address the shortcomings of traditional methods in terms of knowledge coverage and scenario adaptation, Retrieval-Augmented Generation (RAG) technology has been introduced into power dispatching scenarios. By combining the retrieval capabilities of an external knowledge base with the generation capabilities of a large model, the dispatching decision system can generate operational plans based on real-time retrieved procedure fragments. Specifically, RAG technology first retrieves procedure fragments related to the current power dispatching instruction from the power dispatching procedure knowledge base, then inputs these retrieved procedure fragments as context into the large model, which then generates the corresponding dispatching decision plan.

[0004] However, the above technologies still suffer from insufficient accuracy in power dispatching when applied to power dispatching scenarios. Summary of the Invention

[0005] Therefore, it is necessary to provide a method and apparatus for generating power dispatching decisions that can improve the accuracy of power dispatching when applied to power dispatching scenarios, in order to address the aforementioned technical problems.

[0006] Firstly, this application provides a method for generating power dispatch decisions, including:

[0007] Based on the received power dispatch instructions, similarity processing is performed on each procedure segment in the power dispatch procedure text to obtain a set of candidate procedure segments corresponding to the power dispatch procedure text.

[0008] The re-ranking score of each candidate procedure segment is determined based on the semantic similarity and logical relationship between the candidate procedure segments in the candidate procedure segment set, the topological distance between the target equipment involved in the power dispatching instruction and the related equipment involved in each candidate procedure segment, and the operational section safety indicators related to the power dispatching instruction.

[0009] Based on the reordering score of each candidate procedure segment, the candidate procedure segments are reordered to obtain the reordered set of candidate procedure segments.

[0010] The reordered set of candidate procedure fragments is used to construct a context, resulting in a text sequence corresponding to the power dispatch procedure text.

[0011] Based on the text sequence corresponding to the power dispatch instructions and power dispatch procedures, a power dispatch decision scheme is generated.

[0012] In one embodiment, the re-ranking score of each candidate procedure segment is determined based on the semantic similarity, logical association, topological distance between the target equipment involved in the power dispatching instruction and the associated equipment involved in each candidate procedure segment, and the operational section safety indicators related to the power dispatching instruction. This includes:

[0013] The similarity between each candidate procedure segment and the power dispatch instruction is determined based on the similarity between each candidate procedure segment and the power dispatch instruction.

[0014] Based on the logical relationships between the candidate procedure fragments in the candidate procedure fragment set, the candidate procedure fragments are associated to obtain at least one candidate procedure fragment group.

[0015] For any candidate procedure segment group in at least one candidate procedure segment group, the semantic similarity of the candidate procedure segment group is determined based on the segment similarity corresponding to each candidate procedure segment in the candidate procedure segment group.

[0016] Based on the semantic similarity of candidate procedure fragment groups, the topological distance between the target equipment involved in the power dispatching instructions and the associated equipment involved in each candidate procedure fragment, and the operational section safety indicators related to the power dispatching instructions, the re-ranking score of each candidate procedure fragment group in the candidate procedure fragment group is determined.

[0017] In one embodiment, the aforementioned operational section safety indicators include: power flow margin and voltage stability indicators; the determination of the re-ranking score of each candidate procedure segment group based on the semantic similarity of the candidate procedure segment group, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure segment, and the operational section safety indicators related to the power dispatch instruction includes:

[0018] Based on the topological distance, determine the electrical topology association factor of the candidate procedure segment group;

[0019] Based on power flow margin and voltage stability indices, determine the safety constraint factors for candidate procedure segment groups;

[0020] The re-ranking score for each candidate procedure fragment group is determined based on semantic similarity, electrical topology correlation factor, and safety constraint factor.

[0021] In one embodiment, the above-mentioned similarity processing of various procedure segments in the power dispatch procedure text based on the received power dispatch instruction, to obtain a candidate procedure segment set corresponding to the power dispatch procedure text, includes:

[0022] Based on the topology nodes in the power system public information model, the power dispatching procedure text is preprocessed to obtain a procedure knowledge index.

[0023] Calculate the semantic similarity between power dispatch instructions and multiple procedure fragments in the procedure knowledge index, and determine the target procedure fragment from the multiple procedure fragments based on the semantic similarity;

[0024] Based on the projection vector of the power dispatch instruction in each base direction and the orthogonal basis vector, determine the enhanced semantic vector corresponding to the power dispatch instruction;

[0025] Based on the cosine similarity between the enhanced semantic vector corresponding to the power dispatch instruction and the target procedure fragment, a set of candidate procedure fragments corresponding to the power dispatch procedure text is determined.

[0026] In one embodiment, the power dispatching procedure text is preprocessed based on the topology nodes in the power system public information model to obtain a procedure knowledge index, including:

[0027] The power dispatching procedure text is divided into multiple procedure segments;

[0028] The topology nodes in the power system common information model are associated with the related equipment involved in multiple procedure segments to obtain the procedure segment identifier;

[0029] Obtain the logical sequence number and attribute identifier of multiple procedure fragments in the power dispatching procedure text;

[0030] The procedure fragments, procedure fragment identifiers, logical sequence numbers, and attribute identifiers are stored according to a preset index structure to form a procedure knowledge index.

[0031] In one embodiment, the above-mentioned context construction of the reordered candidate procedure fragment set to obtain the text sequence corresponding to the power dispatch procedure text includes:

[0032] In the reordered candidate procedure fragment set, the candidate procedure fragments with reordering scores greater than the preset value are determined as the target procedure fragment set.

[0033] The number of lexical units is controlled in the target procedure fragment set to obtain the target procedure fragment set after lexical control.

[0034] For any one procedure segment in the target procedure segment set, the procedure segment is reduced according to the electrical topology association factor corresponding to the procedure segment to obtain the reduced procedure segment;

[0035] Based on the safety constraint factor and electrical topology distance of the deleted procedure fragments, the deleted procedure fragments are sorted to obtain the text sequence corresponding to the power dispatching procedure text.

[0036] In one embodiment, the process of determining the candidate procedure fragments with reordered scores greater than a preset value from the reordered candidate procedure fragment set as the target procedure fragment set includes:

[0037] The average reordering score of every two adjacent candidate procedure fragments in the candidate procedure fragment set is used as the candidate threshold, and the candidate procedure fragment set is divided into the first fragment set and the second fragment set one by one.

[0038] Calculate the weighted inter-class variance between the first and second segment sets corresponding to each candidate threshold;

[0039] The candidate threshold corresponding to the largest weighted inter-class variance is determined as the cutoff threshold;

[0040] Candidate procedure fragments with reordering scores greater than the truncation threshold are identified as target procedure fragments to construct a set of target procedure fragments.

[0041] In one embodiment, the above-mentioned generation of a power dispatching decision scheme based on the text sequence corresponding to the power dispatching instruction and the power dispatching procedure text includes:

[0042] The text sequence and power dispatch instructions are input into the large model. During the decoding process of the large model, the weighted inter-class variance is compared with a pre-set confidence threshold.

[0043] Based on the comparison results, the corresponding scheduling decision generation strategy is determined, and a power scheduling decision scheme is generated based on the scheduling decision generation strategy.

[0044] In one embodiment, the process of determining the corresponding scheduling decision generation strategy based on the comparison results and generating a power dispatching decision scheme based on the scheduling decision generation strategy includes:

[0045] When the weighted inter-class variance exceeds the preset confidence threshold, the procedure fragments carrying mandatory attribute identifiers are converted into fixed logical terms, and the large model generates power dispatching decision schemes based on the fixed logical terms.

[0046] If the weighted inter-class variance is no greater than a preset confidence threshold, multiple candidate decision schemes are generated by the large model, the multiple candidate decision schemes are scored and ranked, and the power dispatch decision scheme is determined based on the scoring results.

[0047] Secondly, this application also provides a power dispatch decision generation apparatus, comprising:

[0048] The processing module is used to perform similarity processing on each procedure segment in the power dispatch procedure text according to the received power dispatch instructions, so as to obtain a set of candidate procedure segments corresponding to the power dispatch procedure text.

[0049] The determination module is used to determine the re-ranking score of each candidate procedure segment based on the semantic similarity and logical relationship between each candidate procedure segment in the candidate procedure segment set, the topological distance between the target equipment involved in the power dispatching instruction and the associated equipment involved in each candidate procedure segment, and the operation section safety indicators related to the power dispatching instruction.

[0050] The reordering module is used to reorder each candidate procedure fragment based on its reordering score, thereby obtaining a reordered set of candidate procedure fragments.

[0051] The construction module is used to construct the context of the reordered candidate procedure fragment set to obtain the text sequence corresponding to the power dispatch procedure text.

[0052] The generation module is used to generate power dispatching decision schemes based on the text sequences corresponding to power dispatching instructions and power dispatching procedures.

[0053] The aforementioned method and apparatus for generating power dispatch decisions first recall candidate procedure fragments based on semantic similarity, and then reorder them by comprehensively considering semantic similarity, logical relationships, electrical topology distance, and operational section safety indicators. This effectively improves the matching accuracy and safety relevance between candidate procedure fragments and dispatch instructions. By constructing a context for the reordered set of candidate procedure fragments, a structured text sequence is formed, ensuring that the context fed into the large model not only meets its context window constraints but also guides the large model to accurately generate decision schemes that comply with power dispatch safety standards. Finally, by combining power dispatch instructions and text sequences, a power dispatch decision scheme is generated, achieving automation, precision, and safety in power dispatch decisions. Attached Figure Description

[0054] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0055] Figure 1 This is an application environment diagram of a power dispatch decision generation method in one embodiment;

[0056] Figure 2 This is one of the flowcharts illustrating a method for generating power dispatch decisions in one embodiment;

[0057] Figure 3 This is a second flowchart illustrating the method for generating power dispatch decisions in one embodiment;

[0058] Figure 4 This is the third flowchart illustrating the method for generating power dispatch decisions in one embodiment;

[0059] Figure 5 This is a schematic diagram illustrating the variation trend of the electrical topology association factor with electrical topology distance in one embodiment;

[0060] Figure 6 This is a flowchart illustrating the method for generating power dispatch decisions in one embodiment (Part 4).

[0061] Figure 7 This is the fifth flowchart illustrating the method for generating power dispatch decisions in one embodiment;

[0062] Figure 8 This is a schematic diagram of the reconstruction displacement process of the instruction vector in the constrained feature space in one embodiment.

[0063] Figure 9 This is a flowchart illustrating the method for generating power dispatch decisions in one embodiment, number six.

[0064] Figure 10 This is the seventh flowchart illustrating the method for generating power dispatch decisions in one embodiment;

[0065] Figure 11 This is an example of the process of determining the truncation threshold using the inter-class variance maximization method in two typical retrieval scenarios.

[0066] Figure 12 This is the eighth flowchart illustrating the method for generating power dispatch decisions in one embodiment;

[0067] Figure 13This is the ninth flowchart illustrating the method for generating power dispatch decisions in one embodiment;

[0068] Figure 14 This example illustrates the intervention effect achieved by applying a bias to the Logit value of the output layer of a large model during the decision-making process in one embodiment.

[0069] Figure 15 This is a flowchart of a method for generating power dispatch decisions in one embodiment, number ten.

[0070] Figure 16 This is a structural block diagram of a power dispatch decision generation device in one embodiment;

[0071] Figure 17 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0072] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0073] Power dispatching is a core business for ensuring the safe and stable operation of the power grid. Dispatchers need to quickly generate compliant operation tickets and make dispatching decisions based on massive amounts of procedural documents under complex operating conditions. Traditional dispatching decision support systems mainly rely on rule engines and expert systems to judge the compliance of dispatching operations through pre-set logic. However, with the large-scale integration of new energy sources and the increasing complexity of the power grid topology, the limitations of traditional methods in terms of knowledge coverage completeness, scenario adaptability, and decision generation efficiency have become more prominent.

[0074] To address the shortcomings of traditional methods in terms of knowledge coverage and scenario adaptation, Retrieval-Augmented Generation (RAG) technology has been introduced into power dispatching scenarios. By combining the retrieval capabilities of an external knowledge base with the generation capabilities of a large model, the dispatching decision system can generate operational plans based on real-time retrieved procedure fragments. Specifically, RAG technology first retrieves procedure fragments related to the current power dispatching instruction from the power dispatching procedure knowledge base, then inputs these retrieved procedure fragments as context into the large model, which then generates the corresponding dispatching decision plan.

[0075] However, the aforementioned technologies still suffer from insufficient accuracy in power dispatching scenarios. Therefore, this application provides a method for generating power dispatching decisions to address these issues.

[0076] Having described the background technology of the power dispatch decision generation method provided in this application, the application environment of the power dispatch decision generation method provided in this application will be described below. The power dispatch decision generation method provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located on the cloud or other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0077] In one exemplary embodiment, such as Figure 2 As shown, a method for generating power dispatch decisions is provided, which can be applied to... Figure 1 Taking server 104 as an example, the explanation includes:

[0078] S201. Based on the received power dispatch instructions, perform similarity processing on each procedure segment in the power dispatch procedure text to obtain a set of candidate procedure segments corresponding to the power dispatch procedure text.

[0079] Among them, power dispatch instructions refer to the command information issued by the dispatch terminal to the power plant terminal to instruct specific equipment in the power system to perform specified operation actions. For example, a power dispatch instruction may be to close a circuit breaker of a 220kV line.

[0080] Among them, the power dispatching regulations refer to the normative documents formulated and issued by the power dispatching agency to regulate the dispatching and operation behavior of the power system.

[0081] In this embodiment, after the server receives the power dispatch instruction, it inputs the power dispatch instruction into a lightweight embedding model to obtain the instruction vector. At the same time, the power dispatch procedure text is divided into segments to obtain multiple procedure segments. Then, these multiple procedure segments are input into the same lightweight embedding model to obtain the procedure segment vector corresponding to each procedure segment. Then, the cosine similarity between the instruction vector and each procedure segment vector is calculated, and the N procedure segments with the highest similarity are selected as the candidate procedure segment set.

[0082] S202. Based on the semantic similarity, logical relationship, topological distance between the target equipment involved in the power dispatching instruction and the associated equipment involved in each candidate procedure fragment in the candidate procedure fragment set, as well as the operational section safety indicators related to the power dispatching instruction, determine the re-ranking score of each candidate procedure fragment.

[0083] The semantic similarity between candidate procedure segments refers to the semantic similarity of each procedure segment group after dividing the candidate procedure segments in the candidate procedure segment set according to certain rules to obtain multiple procedure segment groups, and calculating the similarity of each candidate procedure segment in each procedure segment group.

[0084] Among them, the logical relationship between each candidate procedure segment refers to the relationship formed between the candidate procedure segments based on the hierarchical attribution of the original logical sequence number, the continuity of the sequence number, and the reference relationship between the operation actions.

[0085] Optionally, the process of obtaining logical relationships includes: extracting the original logical sequence number of each candidate procedure segment in the power dispatching procedure text, and performing association processing on the candidate procedure segments with logical relationships based on hierarchical attribution and action correlation to obtain the logical relationship between each candidate procedure segment.

[0086] Among them, the safety indicators of the operating section include the power flow margin and voltage stability indicators of the operating section associated with the power dispatching instructions.

[0087] In this embodiment, after determining the candidate procedure fragment set corresponding to the power dispatch procedure text, the semantic similarity between each candidate procedure fragment in the candidate procedure fragment set and the logical association between each candidate procedure fragment can be determined first. At the same time, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure fragment, as well as the operational section safety index related to the power dispatch instruction, are obtained. Then, based on the semantic similarity, logical association, topological distance and operational section safety index, the re-ranking score of each candidate procedure fragment is calculated.

[0088] S203. Based on the reordering scores of each candidate procedure segment, reorder each candidate procedure segment to obtain a reordered set of candidate procedure segments.

[0089] In this embodiment, after obtaining the reordering scores of each candidate procedure segment, the candidate procedure segments can be reordered based on their reordering scores to obtain a reordered set of candidate procedure segments.

[0090] Optionally, the candidate procedure segments can be reordered in descending order of reordering scores to obtain a reordered set of candidate procedure segments; alternatively, the candidate procedure segments can also be reordered in ascending order of reordering scores to obtain a reordered set of candidate procedure segments.

[0091] S204. Construct a context from the reordered set of candidate procedure fragments to obtain the text sequence corresponding to the power dispatch procedure text.

[0092] Among them, context construction refers to filtering the candidate procedure fragments in the reordered candidate procedure fragment set to obtain the target procedure fragment, and then performing semantic compression and reordering on the target procedure fragment to obtain the text sequence corresponding to the power dispatch procedure text.

[0093] In this embodiment, after obtaining the reordered candidate procedure fragment set, the candidate procedure fragments in the candidate procedure fragment set can be screened to obtain the target procedure fragment. Then, the target procedure fragment is semantically compressed and reordered to obtain the text sequence corresponding to the power dispatch procedure text.

[0094] S205. Generate a power dispatching decision scheme based on the text sequence corresponding to the power dispatching instructions and power dispatching procedures.

[0095] In this embodiment, after obtaining the text sequence corresponding to the power dispatching procedure text, the received power dispatching instructions and the text sequence corresponding to the power dispatching procedure text can be input into the large model for dispatching decision analysis to obtain a power dispatching decision scheme.

[0096] Optionally, the large model refers to the initial model trained based on the sample text sequence, sample power dispatch instructions, and sample power dispatch decision schemes corresponding to the power dispatch procedure text.

[0097] In this embodiment, candidate procedure fragments are first recalled based on semantic similarity, and then reordered by comprehensively considering semantic similarity, logical correlation, electrical topology distance, and operational section safety indicators. This effectively improves the matching accuracy and safety relevance between candidate procedure fragments and dispatch instructions. By constructing a context for the reordered candidate procedure fragment set, a structured text sequence is formed, ensuring that the context fed into the large model not only meets its context window constraints but also guides the large model to accurately generate decision schemes that comply with power dispatch safety specifications. Finally, the power dispatch decision scheme is generated by combining power dispatch instructions and text sequences, realizing the automation, precision, and safety of power dispatch decision-making.

[0098] In one exemplary embodiment, in the above Figure 2 Based on the illustrated embodiment, the specific implementation method for determining the reordering score of each candidate procedure segment based on the semantic similarity, logical association, topological distance between the target equipment involved in the power dispatching instruction and the associated equipment involved in each candidate procedure segment, and the operational section safety indicators related to the power dispatching instruction can also be described. See [link to relevant documentation]. Figure 3 The aforementioned S202 includes:

[0099] S301. Determine the segment similarity of each candidate procedure segment based on the similarity between each candidate procedure segment and the power dispatch instruction.

[0100] In this embodiment, a lightweight embedding model is used to map each candidate procedure segment and the received power dispatching instruction to a unified high-dimensional vector space to obtain each candidate procedure segment vector and the dispatching instruction vector. Then, the cosine similarity between each candidate procedure segment vector and the dispatching instruction vector is calculated to obtain the segment similarity corresponding to each candidate procedure segment.

[0101] S302. According to the logical relationship between each candidate procedure segment in the candidate procedure segment set, associate each candidate procedure segment to obtain at least one candidate procedure segment group.

[0102] In this embodiment, after obtaining the logical association relationship of each candidate procedure fragment in the candidate procedure fragment set, the candidate procedure fragments can be associated according to the following logical association relationship judgment method to obtain at least one candidate procedure fragment group; the logical association relationship judgment method includes: whether the original logical sequence number belongs to the same superior level, whether there is a sequence number interruption (i.e., the intermediate clause is missed), and whether the fragment text contains a reference to the result of the previous operation (e.g., after completing the previous operation, after confirming that the circuit breaker has been disconnected, etc.).

[0103] For example, if the candidate procedure fragment set contains clauses 3.2.1 and 3.2.3, while clause 3.2.2 is not recalled, it is determined that there is a sequence number interruption. The three are then associated as a whole fragment group. Considering that there are a large number of intermediate step clauses in the power dispatching procedure that lack obvious semantic features but have key logical connection functions, this application uses sequence number interruption detection to achieve automatic completion of logical links, thereby making up for the limitations of semantic retrieval in sequential logic recognition.

[0104] S303. For any candidate procedure segment group in at least one candidate procedure segment group, determine the semantic similarity of the candidate procedure segment group based on the segment similarity corresponding to each candidate procedure segment in the candidate procedure segment group.

[0105] In this embodiment, after dividing at least one candidate procedure segment group, for any candidate procedure segment group in the at least one candidate procedure segment group, the segment similarity corresponding to each candidate procedure segment in the candidate procedure segment group is weighted and averaged to obtain the semantic similarity of the candidate procedure segment group.

[0106] Optionally, when performing weighted averaging, the weights are proportional to the initial recall ranking of each candidate procedure fragment. This ensures that the candidate procedure fragment within each group whose semantics are closest to the dispatch instruction contributes more to the overall semantic similarity score, while avoiding distortion of the overall group score due to semantic bias in a single fragment. It should be noted that after similarity processing of the power dispatch procedure text, each procedure fragment is sorted from high to low according to its semantic similarity to the dispatch instruction. The position of each procedure fragment in this ranking is its initial recall ranking.

[0107] Preferably, if a candidate procedure segment containing a mandatory attribute identifier exists within the candidate procedure segment group, an additional positive correction term needs to be added to the semantic similarity of the candidate procedure segment group to ensure that the segment group containing the mandatory safety clause is not filtered out due to the averaging effect. It should be noted that during the preprocessing of the power dispatching procedure text, clauses containing prohibitive language markers or numerical limit constraints are simultaneously identified and marked as mandatory safety clauses. Preferably, prohibitive language markers include keywords such as "strictly prohibited," "must not," and "forbidden," while numerical limit constraints include expressions such as "current not exceeding 600 amperes" and "voltage deviation not exceeding ±5%." The corresponding procedure segment will then carry a mandatory attribute identifier.

[0108] S304. Based on the semantic similarity of the candidate procedure fragment groups, the topological distance between the target equipment involved in the power dispatching instructions and the associated equipment involved in each candidate procedure fragment, and the operational section safety indicators related to the power dispatching instructions, determine the re-ranking score of each candidate procedure fragment group in the candidate procedure fragment group.

[0109] In this embodiment, after obtaining the semantic similarity of the candidate procedure fragment group, numerical calculations can be performed based on the semantic similarity of the candidate procedure fragment group, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure fragment, and the operational section safety indicators related to the power dispatch instruction, to obtain the reordering score of each candidate procedure fragment group in the candidate procedure fragment group.

[0110] Optionally, a specific implementation method for determining the re-ranking score of each candidate procedure fragment group can be described, based on the semantic similarity of the candidate procedure fragment group, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure fragment, and the operational section safety indicators related to the power dispatch instruction. See [link to relevant documentation]. Figure 4 The aforementioned S304 includes:

[0111] S3041. Determine the electrical topology association factor of the candidate procedure segment group based on the topology distance.

[0112] In this embodiment, starting from the node in the Common Information Model (CIM) corresponding to the target device involved in the power dispatch instruction, a breadth-first search is performed in the CIM topology graph, traversing adjacent nodes layer by layer, recording the distance between the associated devices involved in each candidate procedure segment in the candidate procedure segment group and the target device, and then taking the average of the distances between the associated devices involved in each candidate procedure segment and the target device to obtain the topological distance d of the candidate procedure segment group.

[0113] In this embodiment, after obtaining the topological distance d of the candidate procedure segment group, the electrical topological association factor of the candidate procedure segment group can be calculated according to the following formula (1). :

[0114]

[0115] Among them, when hour This indicates that the devices are directly adjacent; Increase The monotonic decay approaches zero, reflecting the physical law that the greater the electrical distance, the weaker the correlation with the regulations.

[0116] See Figure 5 This demonstrates the electrical topology correlation factor. With electrical topology distance The exponential decay trend is shown in the figure. The region is defined as a strongly correlated region, designed to allow procedure segments adjacent to the target device to obtain significant multiplicative gains during reordering; while... As the value increases, the correlation factor decays and enters the weak correlation / interference filtering zone, thereby effectively suppressing irrelevant procedural information at the physical topology level, and thus improving the focus of decision generation.

[0117] S3042. Determine the safety constraint factor of the candidate procedure segment group based on the power flow margin and voltage stability index.

[0118] Among them, the power flow margin is determined by the load rate of the associated lines. Characterization, voltage stability metrics are expressed as voltage offsets of associated nodes. The quantitative relationship between the two is represented by the following formula (2):

[0119]

[0120] in, This refers to the actual power of the associated lines. This refers to the rated power of the associated circuit. This refers to the measured voltage at the associated node. This refers to the rated voltage of the associated node. It should be noted that an associated line is a line that has a direct or indirect electrical connection in the power system topology to the equipment involved in the current dispatch operation (i.e., the target equipment in the dispatch instruction); an associated node is a node that has a direct or indirect electrical connection in the power system topology to the equipment involved in the current dispatch operation (i.e., the target equipment in the dispatch instruction).

[0121] In this embodiment, when the scheduling operation logic corresponding to a certain candidate procedure segment will lead to Exceeding the preset overload threshold (e.g.) ),or, Exceeding a preset deviation threshold (e.g.) If the operation violates the safety constraint boundary of the operating section, the safety constraint factor will be adjusted accordingly. If the candidate procedure fragment carries a mandatory attribute identifier, then assign a safety constraint factor with a value greater than 1. (For example The priority of mandatory safety clauses in the ranking is increased by 1; otherwise, the value is assigned to 1. When a candidate procedure fragment simultaneously meets the two conditions of violating the safety constraint boundary of the operating section and carrying a mandatory attribute identifier, the violation of the constraint boundary is used as the priority criterion, and the safety constraint factor is increased accordingly. Assigning a value of 0 will reset the overall reorder score to zero.

[0122] S3043. Determine the re-ranking score for each candidate procedure segment group based on semantic similarity, electrical topology association factor, and safety constraint factor.

[0123] In this embodiment, after determining the semantic similarity, electrical topology association factor and safety constraint factor, the reordering score of each candidate procedure segment group can be determined according to the following formula (3).

[0124]

[0125] in, This refers to the reordering score. This refers to the semantic similarity of candidate procedure fragment groups.

[0126] It should be noted that the structural design involving the multiplication of these three factors has a safety-oriented characteristic: safety constraint factor. When constraints are violated, the value is 0, thus implementing a veto on the violating operation segment during the sorting stage, regardless of its semantic similarity or electrical topology correlation factor, which does not affect the final filtering result; The mandatory attribute fragments receive an additional boost in the global ranking through multiplicative gain, ensuring that safety constraint orientation dominates the scoring system. Candidate procedure fragments with re-ranked scores greater than a preset relevance threshold are retained and sorted in descending order to obtain the re-ranked set of candidate procedure fragments.

[0127] In this embodiment, the candidate procedure fragments are grouped based on their logical relationships. The re-ranking score is calculated by comprehensively considering the semantic similarity of the fragment groups, the electrical topology correlation factor, and the safety constraint factor obtained from the power flow margin and voltage stability indicators. This approach takes into account both the matching degree of the textual semantics of the procedure fragments and fully integrates the electrical topology characteristics of the power grid and the safety constraint elements of the power system. This enables a multi-dimensional quantitative evaluation of the candidate procedure fragment groups, providing a comprehensive and objective quantitative basis for the re-ranking process and improving the adaptability and reliability of the procedure fragment re-ranking results with the actual power business scenarios.

[0128] In one exemplary embodiment, in Figure 2 Based on the illustrated embodiment, the specific implementation process of performing similarity processing on various procedure fragments in the power dispatch procedure text according to the received power dispatch instructions to obtain a set of candidate procedure fragments corresponding to the power dispatch procedure text is described below. See [link to documentation]. Figure 6 The aforementioned S203 includes:

[0129] S401. Based on the topology nodes in the power system public information model, preprocess the power dispatching procedure text to obtain the procedure knowledge index.

[0130] In this embodiment, the Common Information Model (CIM) of the power system is parsed, and node attributes such as equipment number, equipment type, and connection relationship of all topology nodes in the model are extracted. Sentence segmentation, entity recognition, and entity linking are performed on the power dispatching procedure text to identify power equipment entities such as buses, transformers, and lines appearing in the procedure text. The identified equipment entities are matched with CIM topology nodes to establish a mapping index relationship between procedure text fragments and corresponding CIM topology nodes. Finally, a procedure knowledge index containing topology node identifiers, procedure text fragments, and text location information is generated.

[0131] Optionally, the following provides a specific implementation method for preprocessing the power dispatching procedure text based on the topology nodes in the power system public information model to obtain a procedure knowledge index. See [link to implementation details]. Figure 7 The aforementioned S401 includes:

[0132] S4011. Divide the power dispatching procedure text into multiple procedure segments.

[0133] In this embodiment, the power dispatching procedure text usually has a multi-level hierarchical structure such as chapters, sections, articles, and clauses. During preprocessing, the hierarchical boundaries are automatically identified according to the title level and numbering rules, and each smallest semantic unit is divided into multiple procedure segments carrying the original logical sequence number. For example, the numbering information of Article 4(1) of Chapter 3, Section 2 is retained along with the segment to support subsequent logical backtracking.

[0134] S4012. Associate the topology nodes in the power system common information model with the associated devices involved in the multiple procedure segments to obtain the procedure segment identifier.

[0135] The equipment information of the associated equipment includes equipment name, bus number, line identifier, etc. Entity alignment technology is used to associate unstructured equipment descriptions in the power dispatching procedure text (e.g., the No. 1 disconnecting switch on the 220kV bus side of a substation) with standardized node identifiers (CIM IDs) in the CIM database. The specific association method includes: first, extracting the description strings of associated equipment in each procedure segment through a named entity recognition model; then, using the substation name, voltage level, equipment type, and number as multi-level matching keys, performing a hierarchical entity query in the CIM topology database; further disambiguating and finally aligning ambiguous candidate nodes using adjacency topology relationships in the knowledge graph (e.g., the bus to which they belong, adjacent switch nodes); and finally, associating the matched CIM IDs with the associated equipment involved in the procedure segment to obtain the procedure segment identifier.

[0136] Optionally, for equipment that uses abbreviations in the power dispatching procedure text, an equipment alias mapping table can be pre-maintained in the CIM database to improve the coverage of entity alignment.

[0137] S4013. Obtain the logical sequence number and attribute identifier of multiple procedure segments in the power dispatch procedure text.

[0138] In this embodiment, after obtaining the procedure segment identifier as described above, the logical sequence number and attribute identifier of multiple procedure segments in the power dispatch procedure text can be further obtained.

[0139] The logical sequence number refers to the number that identifies the original position of the procedure fragment within the chapter, section, clause, and subsection levels of the scheduling procedure. It is saved with the procedure fragment and used for subsequent logical backtracking to locate the original text. Attribute identifiers include mandatory attribute identifiers and non-mandatory attribute identifiers.

[0140] S4014. Store the procedure fragments, procedure fragment identifiers, logical sequence numbers, and attribute identifiers according to the preset index structure to form a procedure knowledge index.

[0141] In this embodiment, after obtaining multiple procedure segments, the procedure segment identifiers corresponding to each procedure segment, the logical sequence numbers corresponding to each procedure segment, and the attribute identifiers corresponding to each procedure segment, they can be stored according to the preset index structure in the procedure knowledge index to form a procedure knowledge index.

[0142] Thus, a knowledge index of the power dispatching regulations corresponding to the text has been constructed.

[0143] S402. Calculate the semantic similarity between the power dispatching instruction and multiple procedure fragments in the procedure knowledge index, and determine the target procedure fragment from the multiple procedure fragments based on the semantic similarity.

[0144] In this embodiment, after the server receives the power dispatch instruction, it inputs the power dispatch instruction into the lightweight embedding model to obtain the instruction vector. At the same time, it inputs multiple procedure fragments from the procedure knowledge index into the same lightweight embedding model to obtain the procedure fragment vectors corresponding to each procedure fragment. Then, it calculates the cosine similarity between the procedure fragment vectors corresponding to each procedure fragment and the instruction vector to obtain the cosine similarity corresponding to each procedure fragment. The procedure fragments with cosine similarity greater than a preset similarity threshold are identified as target procedure fragments.

[0145] S403. Based on the projection vector of the power dispatch instruction in each base direction and the standard orthogonal basis vector, determine the enhanced semantic vector corresponding to the power dispatch instruction.

[0146] In this embodiment, a pre-trained language model is used to extract the semantic representation vector of each security constraint rule, resulting in a set of initial rule vectors. Since different rules may be related in the semantic space, directly using the original rule vectors as the basis will lead to redundant decomposition results. Therefore, the Gram-Schmidt orthogonalization process can be applied to the above set of rule vectors, as shown in the following formula (4), and the decomposition results are calculated sequentially:

[0147]

[0148] This yields a set of orthonormal basis vectors. Together, they form a constraint feature space. Preferably, when there are many security constraint rules, the initial rule vector set can be reduced in dimensionality first through principal component analysis, retaining principal components whose cumulative variance contribution rate exceeds a preset proportion (e.g., 95%), and then Gram-Schmidt orthogonalization is performed on the retained principal component directions to balance computational efficiency and the completeness of constraint coverage.

[0149] Furthermore, the instruction vector Orthogonal decomposition is performed along the directions of each orthogonal basis vector in the constrained feature space to obtain the projection components of the command vector in each basis direction, as shown in the following formula (5):

[0150]

[0151] Based on the sign and magnitude of each projection component, determine whether it belongs to a constraint-satisfied component or a constraint-violated component: If Consistent with the compliance direction of the corresponding constraint rules (i.e.) If the value is greater than or equal to 1, it is considered a constraint-satisfied component; otherwise, it is considered a constraint-violation component. The constraint-violation component is nonlinearly suppressed using the Sigmoid function, causing its amplitude to approach zero; the constraint-satisfied component is multiplied by an amplification factor greater than 1. (For example Amplitude enhancement is performed.

[0152] In this embodiment, after obtaining the projection vector and orthogonal basis vector of the power dispatch instruction in each base direction, the enhanced semantic vector corresponding to the power dispatch instruction can be determined according to the following formula (6). :

[0153]

[0154] in, This is a sigmoid function. Compared to the original instruction vector, this vector is closer to the compliant operation area in the semantic space, thus allowing subsequent search results to naturally meet the security constraint guidance at the semantic level.

[0155] See Figure 8 This demonstrates the reconstructed displacement process of the command vector in the constrained feature space composed of power flow limits and operation sequence. Figure 8 The hollow circle represents the original instruction vector, and the black triangle represents the enhanced semantic vector. By suppressing the nonlinearity of the components and enhancing their amplitude, the vector as a whole converges to the first quadrant (i.e., the compliance region), thus demonstrating the reduction of the semantic distance between the reconstructed vector and the compliance criteria.

[0156] S404. Based on the cosine similarity between the enhanced semantic vector corresponding to the power dispatch instruction and the target procedure fragment, determine the set of candidate procedure fragments corresponding to the power dispatch procedure text.

[0157] In this embodiment, after determining the enhanced semantic vectors corresponding to the target procedure fragment and the power dispatch instruction, the target procedure fragment can be input into the same lightweight embedding model to obtain the procedure fragment vectors corresponding to each procedure fragment. Then, the cosine similarity between the enhanced semantic vector corresponding to the power dispatch instruction and the procedure fragment vector corresponding to the target procedure fragment is determined. Target procedure fragments whose cosine similarity meets a preset similarity threshold are identified as candidate procedure fragments. Based on the candidate procedure fragments, a set of candidate procedure fragments corresponding to the power dispatch procedure text is constructed.

[0158] In this embodiment, the procedure text is segmented into procedure fragments. Topological nodes are associated with the fragments to generate procedure fragment identifiers, and logical sequence numbers and attribute identifiers are stored to construct a procedure knowledge index. Target procedure fragments are first obtained through semantic similarity screening, and then enhanced semantic vectors are obtained by combining projection vectors. Cosine similarity is used to further screen out a set of candidate procedure fragments. This approach can both rely on logical sequence numbers to achieve backtracking and positioning of the original procedure text and optimize the matching effect through two-layer similarity calculation, thereby improving the accuracy of matching power dispatch instructions with procedure fragments.

[0159] In one exemplary embodiment, in the above Figure 2 Based on the illustrated embodiment, context construction can also be performed on the reordered set of candidate procedure fragments to obtain the text sequence corresponding to the power dispatch procedure text. See [link to relevant documentation]. Figure 9 The aforementioned S204 includes:

[0160] S501. In the reordered candidate procedure fragment set, the candidate procedure fragments with reordering scores greater than the preset value are determined as the target procedure fragment set.

[0161] In this embodiment, after reordering the candidate procedure segments based on their reordering scores, the candidate procedure segments with reordering scores greater than a preset value are determined as the target procedure segment set. The preset value can be set in advance, and the setting rules are not limited in this embodiment.

[0162] Optionally, the following provides a specific implementation method for determining candidate procedure fragments with reordering scores greater than a preset value as the target procedure fragment set from the reordered candidate procedure fragment set. See [link to implementation details]. Figure 10 The aforementioned S501 includes:

[0163] S5011. Using the average reordering score of every two adjacent candidate procedure fragments in the candidate procedure fragment set as the candidate threshold, the candidate procedure fragment set is divided into the first fragment set and the second fragment set one by one.

[0164] In this embodiment, in the reordered candidate procedure fragment set, each candidate procedure fragment is sorted in descending order according to the reordering score to obtain a descending-ordered candidate procedure fragment set; or, each candidate procedure fragment is sorted in ascending order according to the reordering score to obtain an ascending-ordered candidate procedure fragment set.

[0165] In this embodiment, for any two adjacent candidate procedure segments in the reordered candidate procedure segment set, the reordering score of these two adjacent candidate procedure segments is obtained, and the average of the reordering scores of these two adjacent candidate procedure segments is determined as a candidate threshold. Based on the candidate threshold, the candidate procedure segment set after descending order is divided into a first segment set and a second segment set. Specifically, the reordering score of the candidate procedure segments in the first segment set is greater than the candidate threshold, and the reordering score of the candidate procedure segments in the second segment set is not greater than the candidate threshold; or, the reordering score of the candidate procedure segments in the first segment set is greater than the candidate threshold, and the reordering score of the candidate procedure segments in the second segment set is greater than the candidate threshold.

[0166] S5012. Calculate the weighted inter-class variance between the first fragment set and the second fragment set corresponding to each candidate threshold.

[0167] In this embodiment, for the candidate threshold corresponding to the mean of the reordering scores of any two adjacent candidate procedure fragments, the weighted inter-class variance between the first fragment set and the second fragment set corresponding to the candidate threshold is calculated. The calculation method is shown in the following formula (7):

[0168]

[0169] in, , These represent the proportions of the first and second fragment sets in the candidate procedure fragment set, respectively. , These are the mean scores of the reordering for the first and second segment sets, respectively.

[0170] Optionally, the average of the reordering scores of every two adjacent candidate procedure segments in the candidate procedure segment set is used as the candidate threshold, and the weighted inter-class variance of every two adjacent candidate procedure segments is calculated according to the above formula.

[0171] S5013. The candidate threshold corresponding to the largest weighted inter-class variance is determined as the cutoff threshold.

[0172] In this embodiment, after obtaining the weighted inter-class variance of every two adjacent candidate procedure segments, the candidate threshold corresponding to the largest weighted inter-class variance is determined as the truncation threshold.

[0173] For example, if there are four candidate procedure segments in the above candidate procedure segment set, namely candidate procedure segment 1, candidate procedure segment 2, candidate procedure segment 3 and candidate procedure segment 4, and the weighted inter-class variance of candidate procedure segment 1 and candidate procedure segment 2 is a1, the weighted inter-class variance of candidate procedure segment 2 and candidate procedure segment 3 is a2, and the weighted inter-class variance of candidate procedure segment 3 and candidate procedure segment 4 is a3, and a3>a2>a1, then the candidate threshold corresponding to the weighted inter-class variance of candidate procedure segment 3 and candidate procedure segment 4 can be determined, which is the truncation threshold.

[0174] S5014. Candidate procedure fragments with reordering scores greater than the truncation threshold are identified as target procedure fragments to construct a set of target procedure fragments.

[0175] In this embodiment, after determining the truncation threshold, candidate procedure fragments with reordered scores greater than the truncation threshold can be identified as target procedure fragments, and a target procedure fragment set can be constructed based on these target procedure fragments. This method does not require manually presetting an upper limit on the number of fragments and can adaptively determine the truncation position based on the actual score distribution of each query. It can accurately separate high and low correlation fragments when the score distribution has obvious bimodalities, and can also provide a reasonable conservative truncation when the distribution is relatively flat.

[0176] For example, participate Figure 11 This demonstrates the process of determining the cutoff threshold using the between-class variance maximization method in two typical retrieval scenarios. The left side shows a scenario with a clear bimodal distribution of scores, where the between-class variance curve... It has a clear single extreme point, which can accurately separate highly correlated segments; the right side (this application) shows a blurred scene with a flat score distribution, and the algorithm finds the globally optimal variance value. It can still adaptively provide a conservative cutoff threshold. This demonstrates the ability to consistently filter target procedure fragments under varying query quality levels.

[0177] S502. Perform word count control on the target procedure fragment set to obtain the word count-controlled target procedure fragment set.

[0178] In this embodiment, while determining the truncation threshold as described above, the maximum inter-class variance can be... Normalization mapping to standard interval Establish its quota with the middle term in the text sequence. The inverse mapping relationship between them is shown in the following formula (8):

[0179]

[0180] in, and These are the preset upper and lower limits of the quota. This represents the largest inter-class variance observed in historical queries. A large inter-class variance indicates that highly relevant segments have concentrated semantics and clear boundaries. Taking a smaller value allows for more aggressive compression of the middle segment, reducing redundant information in the large input model. When the inter-class variance is small, it indicates diffuse correlation distribution and high information uncertainty; in this case... Take the larger value to preserve more context to support the reasoning.

[0181] Optionally, the token quota takes effect as a hard constraint during the actual input construction: if the total number of tokens in the middle segment still exceeds the limit after semantic compression... Then, the tail segments are truncated sequentially from low to high according to the reordered scores until the quota limit is met, so as to ensure that the overall input does not exceed the context window of the large model.

[0182] S503. For any one procedure segment in the target procedure segment set, the procedure segment is reduced according to the electrical topology association factor corresponding to the procedure segment to obtain the reduced procedure segment.

[0183] In this embodiment, for any one procedure segment in the target procedure segment set, the electrical topology association factor corresponding to the procedure segment can be used. The following compression strategies are implemented in stages. If... Within the preset high value range (e.g.) If the device involved in the fragment is considered to be highly adjacent to the scheduling target device, and its operational details are crucial to decision generation, then the original text is retained without compression.

[0184] like Within the preset median range (e.g.) or low value range ( If the condition is met, a pruning process based on named entity recognition and dependency parsing is initiated: First, physical entities (equipment name, station name, voltage level) and numerical safety boundary indicators (limits, deviation ranges) in the fragment are extracted through named entity recognition; then, the core predicate verb and its direct object are determined through dependency parsing, the minimum dependency subtree with the core verb as the root node is retained, and modifying adverbial clauses, parenthetical phrases, and non-core modifiers are deleted.

[0185] For example, the original text states that the 220kV busbar disconnector of a substation can only be closed after confirming that all grounding wires have been removed. After pruning, the text retains the statement "close the 220kV busbar disconnector." The premise is that the grounding wires have been removed, thus the semantic framework is complete while the length is reduced.

[0186] S504. Based on the safety constraint factor and electrical topology distance of the deleted procedure fragments, sort the deleted procedure fragments to obtain the text sequence corresponding to the power dispatching procedure text.

[0187] In this embodiment, after obtaining the abridged procedure fragments, the abridged procedure fragments can be partitioned and arranged as follows: The set of procedure fragments composed of the abridged procedure fragments is input into the large model according to the three-zone structure of the beginning, middle, and end. The large model can calculate the safety constraint factors of the abridged procedure fragments corresponding to the three zones respectively. and electrical topology distance d, and incorporate safety constraint factors. The mandatory safety clause fragments are placed at the beginning of the text sequence, so that the large model is fully aware of the safety constraint boundaries when generating the first word, and is thus continuously constrained by the safety rules throughout the decoding process; the remaining target procedure fragments are arranged in ascending order of their original logical sequence numbers and placed in the middle to maintain the original program logic of the operating procedure; the procedure fragment with the smallest electrical topology distance and that clearly contains the target device of the scheduling instruction is placed at the end of the text sequence. By utilizing the high attention weight of the end position, the model's focus on the core operation object and direct operation action is strengthened, guiding the generated result to accurately hit the target device and operation intention.

[0188] It should be noted that the three zones correspond to the safety constraint factors of the deleted procedural segments. d represents the average safety constraint factor of the corresponding deleted procedure segments in the three zones, and the electrical topology distance d of the corresponding deleted procedure segments in the three zones is the average electrical topology distance of the corresponding deleted procedure segments in the three zones.

[0189] The three-zone structure is essentially a prompt word engineering design for power dispatch decision generation tasks. It encodes the information arrangement strategy of prioritizing safety constraints, centering logical order, and concluding with core objectives into the spatial structure of the text sequence, and uses a structured approach to replace natural language prompt words in influencing the decoding behavior of large models.

[0190] In this embodiment, the average score of the reordering of adjacent candidate procedure fragments is used to generate a candidate threshold. The optimal truncation threshold is selected by calculating the weighted inter-class variance, thereby achieving adaptive partitioning of the candidate procedure fragment set. Then, the number of words is controlled, and fragments are reduced based on the electrical topology correlation factor. Finally, the sorting is completed by combining the safety constraint factor and the electrical topology distance. This can adaptively distinguish between valid and invalid fragments, control the length of the output text, and take into account the power system topology relationship and safety constraints, so that the final output procedure text sequence is more in line with the actual needs of power dispatching business.

[0191] Furthermore, in this embodiment, the application of the inter-class variance maximization method is first reflected in the adaptive determination of the truncation threshold. Since the reordering score is generated by multiplying semantic similarity, electrical topology correlation factor, and safety constraint factor, the veto (value of 0) or forced enhancement (value greater than 1.5) mechanism of the safety constraint factor causes the score sequence to statistically exhibit a bimodal tendency, naturally separating high-relevance and low-relevance classes. This score distribution characteristic provides a good prior condition for the inter-class variance method. By calculating the score point that maximizes the inter-class variance, filtering without manual intervention is achieved.

[0192] Furthermore, this method is applied to variance-driven allocation of lexical quotas. The normalized maximum inter-class variance is used as a representation of retrieval confidence: when the variance is high, it indicates that the retrieval results are highly discriminative, and the lexical quotas of the middle procedure fragments are compressed accordingly to reduce redundancy; conversely, the quotas are expanded to retain more context space in uncertain scenarios, realizing a dynamic tilt of computing resources towards complex scenarios.

[0193] In one embodiment, based on the above embodiments, a specific implementation method for generating a power dispatching decision scheme based on the text sequence corresponding to the power dispatching instructions and power dispatching procedures can be described. See [link to relevant documentation]. Figure 12 The aforementioned S205 includes:

[0194] S601. Input the text sequence and power dispatch instructions into the large model. During the decoding process of the large model, compare the weighted inter-class variance with the preset reliability threshold.

[0195] In this embodiment, after inputting the text sequence and power dispatch instructions into the large model, the weighted inter-class variance can be utilized during the decoding process of the large model. As a criterion for switching inference paths, the weighted inter-class variance will be used. It compares with a preset confidence threshold and dynamically selects between deterministic and probabilistic inference branches based on the comparison results.

[0196] S602. Determine the corresponding dispatch decision generation strategy based on the comparison results, and generate a power dispatch decision scheme based on the dispatch decision generation strategy.

[0197] In this embodiment, the comparison result is a weighted inter-class variance. If the result exceeds a preset confidence threshold, the dispatch decision generation strategy is determined to be a deterministic inference branch, and a power dispatch decision scheme is generated based on the dispatch decision generation strategy corresponding to the deterministic inference branch; if the comparison result is a weighted inter-class variance... If the confidence level is not higher than the preset confidence threshold, the scheduling decision generation strategy is determined to be a probabilistic inference branch, and a power scheduling decision scheme is generated based on the scheduling decision generation strategy corresponding to the probabilistic inference branch.

[0198] Optionally, the following provides a specific implementation method for determining the corresponding scheduling decision generation strategy based on the comparison results, and generating a power dispatching decision scheme based on the scheduling decision generation strategy. See [link to implementation details]. Figure 13 The aforementioned S602 includes:

[0199] S6021. When the weighted inter-class variance is greater than the preset confidence threshold, the procedure fragments carrying mandatory attribute identifiers are converted into fixed logical terms, and the large model generates power dispatching decision schemes based on the fixed logical terms.

[0200] In this embodiment, when the weighted inter-class variance Higher than the preset reliability threshold At this point, the deterministic reasoning branch is entered. The score boundaries between highly relevant and low-relevance segments are clear, indicating high confidence in the procedure knowledge retrieval results and a clear operational path. Under this branch, procedure segments carrying mandatory attribute identifiers are converted into fixed logical items, directly locking the corresponding operational steps in the output framework in the form of structured templates. These include the operation object (equipment name and CIM ID), operation actions (opening / closing, enabling / disabling protection, etc.), and pre-confirmation conditions (voltage testing, grounding, etc.). Under this framework constraint, the large model is only responsible for two types of tasks: first, semantic polishing, which transforms fixed logical items into natural language expressions conforming to the scheduling specification language style; second, parameter filling, which replaces placeholders in the template (such as operation time, equipment number, and setpoint parameters) with specific values ​​based on scheduling instructions and operational section data. For example, with a fixed logic item [Time], closing [Device ID], and confirming that [Status Indication] is normal, the output after parameter filling is 14:32. Closing a 220kV line A circuit breaker in a substation confirms that the three-phase ammeter reading is normal, thus balancing operational accuracy and standardized expression.

[0201] S6022. When the weighted inter-class variance is not greater than the preset confidence threshold, the large model generates multiple candidate decision schemes, scores and ranks the multiple candidate decision schemes, and determines the power dispatch decision scheme based on the scoring results.

[0202] In this embodiment, the variance between weighted classes Not higher than the preset reliability threshold At this point, the system enters the probabilistic inference branch. The score distribution is more diffuse at this stage, and the retrieval results of the procedure have some uncertainty; the fixed template cannot cover all possible operation paths. Under this branch, the large model generates data based on the text sequence. Candidate decision options (e.g.) Then, the candidate solutions are ranked according to the following comprehensive scoring function, as shown in the following formula (9):

[0203]

[0204] in, This refers to the overall score of the candidate solutions. The cosine similarity between the candidate solution text and the enhanced semantic vector measures the degree of semantic fit between the solution and the scheduling intent. The mean value of the electrical topology correlation factor of the equipment involved in the scheme is used to measure the topological rationality of the scheme's operating range; This is the minimum value of the safety constraint factor for the procedural segments involved in the proposed solution, measuring the degree of compliance of the solution with safety rules. The product of these three factors also retains the veto property: if a candidate solution contains a violation (…), it is considered invalid. If the semantic relevance is high, the overall score is immediately reset to zero, ensuring that the incorrect solution is not mistakenly selected. The candidate solution with the highest overall score is selected as the target decision solution. Preferably, the following can be used: Each candidate solution is compared sentence by sentence. Consistent operation steps that occur more than a preset proportion (e.g., 60%) in each solution are identified, marked as high-confidence operations, and given priority in being included in the final solution, so as to achieve self-correction of multiple solutions.

[0205] Finally, following the partitioned arrangement structure of the text sequence, the target decision scheme is integrated into a structured operation ticket output. Preferably, the structured operation ticket includes the following fields: operation task identifier (including dispatch instruction number, associated operation mode, and operation type); safety constraint prompt area (corresponding to the mandatory clauses at the beginning of the text sequence, listing the prohibited items and mandatory preconditions involved in this operation); operation step sequence (each operation instruction arranged according to its original logical sequence number, each instruction including step number, CIM ID and equipment name of the operation object, operation action, and expected status confirmation item); safety boundary parameter area (corresponding to numerical indicators preserved through semantic compression, listing the upper limit of load rate of critical lines, node voltage deviation range, and protection setting reference value); inference path identifier (indicating whether this scheme was generated by a deterministic or probabilistic inference branch, and the corresponding inter-class variance value, for dispatchers to assess the confidence level of the scheme). This field structure enables the output operation ticket to be directly used for dispatch execution, while retaining the traceability of the inference process, aiming to meet the dual requirements of power dispatch for operational standardization and safety auditability.

[0206] In this embodiment, the inter-class variance maximization method is used as the criterion for the inference control loop. During the large model decoding stage, the comparison result between the inter-class variance and the preset confidence threshold is used as a path switching switch: high variance corresponds to the deterministic inference branch, which uses fixed logic terms to ensure the absolute accuracy of strongly constrained operations; low variance triggers the probabilistic inference branch, which generates multiple solutions and performs three-factor multiplication scoring to select the best one, thereby using the generative capability of the large model to find the optimal decision in uncertain scenarios, aiming to ensure the robustness of the solution.

[0207] Optionally, after inputting the text sequence and power dispatch instructions into the large model, safety constraint factors can be extracted first. The prohibited scheduling operations and safety constraint factors involved in the procedural segments. For each mandatory safety operation involved in the procedure segment, a masked word list and an excitation word list are constructed. For example, if a segment explicitly prohibits disconnecting the circuit under load, then related words such as "disconnecting under load" are included in the masked word list; if a segment requires verification that there is no voltage before grounding, then key words such as "verify," "no voltage," and "grounding" are included in the excitation word list.

[0208] In the decoding process of generating power dispatch decision schemes using a large model, real-time intervention on the probability distribution of candidate terms is achieved by applying a bias to the output layer logit value. Specifically, let the large model at the... The original logit vector output during the decoding step is ,in Given the vocabulary size, the modified logit after intervention is shown in the following formula (10):

[0209]

[0210] Among them, the bias term Assign values ​​according to the following rules: for candidate words in the masked word list... Assign a fixed negative bias ( For sufficiently large positive numbers, for example, take This makes the generation probability after Softmax normalization approach zero, thus achieving hard masking during the lexical sampling stage; for the candidate lexical corresponding to the excitation lexicon and the target device of the scheduling instruction. Based on electrical topology correlation factors A positive bias is applied using the exponential decay function as shown in formula (11):

[0211]

[0212] in, For positive enhancement reference coefficients (e.g., take...) When the target device and the scheduling instruction device are directly adjacent ( )hour, The positive enhancement effect is the strongest; it varies with topological distance. Increasing the positive bias and monotonically decreasing it naturally weakens the word enhancement effect on devices further away in the topology, consistent with the physical intuition of electrical relevance. The aforementioned logit intervention is executed in real time at each decoding step, ensuring that security constraints remain effective throughout the generation process, rather than just in the post-processing stage.

[0213] like Figure 14 As shown, the intervention effect of applying a bias to the Logit value of the large model output layer during the decision-making process is illustrated. The figure compares the probability distribution between the uninterrupted baseline and the real-time intervention: for tokens marked as violations (such as "pull away"), a fixed negative bias is applied to reduce their generation probability to near zero, achieving hard blocking; while for tokens involving security confirmation (such as "check" and "confirm"), a positive bias is applied to increase their generation priority, verifying the real-time security guidance role of the intervention mechanism in the generation direction during the decoding process.

[0214] In one exemplary embodiment, see Figure 15 The method for generating the aforementioned power dispatching decisions includes:

[0215] T1. Based on the topology nodes in the power system public information model, the power dispatching procedure text is preprocessed to obtain the procedure knowledge index.

[0216] T2. Calculate the semantic similarity between the power dispatching instruction and multiple procedure fragments in the procedure knowledge index, and determine the target procedure fragment from the multiple procedure fragments based on the semantic similarity.

[0217] T3. Based on the projection vector of the power dispatch instruction in each base direction and the orthogonal basis vector, determine the enhanced semantic vector corresponding to the power dispatch instruction;

[0218] T4. Based on the cosine similarity between the enhanced semantic vector corresponding to the power dispatch instruction and the target procedure fragment, determine the set of candidate procedure fragments corresponding to the power dispatch procedure text;

[0219] T5. Determine the segment similarity of each candidate procedure segment based on the similarity between each candidate procedure segment and the power dispatch instruction.

[0220] T6. According to the logical relationship between each candidate procedure segment in the candidate procedure segment set, associate each candidate procedure segment to obtain at least one candidate procedure segment group.

[0221] T7. For any candidate procedure segment group in at least one candidate procedure segment group, determine the semantic similarity of the candidate procedure segment group based on the segment similarity corresponding to each candidate procedure segment in the candidate procedure segment group.

[0222] T8. Determine the electrical topology association factor of the candidate procedure segment group based on the topology distance;

[0223] T9. Determine the safety constraint factor of the candidate procedure segment group based on the power flow margin and voltage stability index;

[0224] T10. Determine the re-ranking score for each candidate procedure segment group based on semantic similarity, electrical topology correlation factor, and safety constraint factor.

[0225] T11. Based on the reordering scores of each candidate procedure segment, reorder each candidate procedure segment to obtain a reordered set of candidate procedure segments.

[0226] T12. In the reordered candidate procedure fragment set, the candidate procedure fragments with reordered scores greater than the preset value are determined as the target procedure fragment set.

[0227] T13. Perform word count control on the target procedure fragment set to obtain the word-controlled target procedure fragment set.

[0228] T14. For any one procedure segment in the target procedure segment set, the procedure segment is reduced according to the electrical topology association factor corresponding to the procedure segment to obtain the reduced procedure segment.

[0229] T15. Based on the safety constraint factor and electrical topology distance of the deleted procedure segments, sort the deleted procedure segments to obtain the text sequence corresponding to the power dispatch procedure text.

[0230] T16. Input the text sequence and power dispatch instructions into the large model. During the decoding process of the large model, compare the weighted inter-class variance with the preset reliability threshold.

[0231] T17. When the weighted inter-class variance is greater than the preset confidence threshold, the procedure fragments carrying mandatory attribute identifiers are converted into fixed logical terms, and the large model generates power dispatching decision schemes based on the fixed logical terms.

[0232] T18. When the weighted inter-class variance is not greater than the preset confidence threshold, the large model generates multiple candidate decision schemes, scores and ranks the multiple candidate decision schemes, and determines the power dispatch decision scheme based on the scoring results.

[0233] It should be noted that the descriptions in T1-T18 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.

[0234] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0235] Based on the same inventive concept, this application also provides a power dispatch decision generation apparatus for implementing the power dispatch decision generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more power dispatch decision generation apparatus embodiments provided below can be found in the limitations of the power dispatch decision generation method described above, and will not be repeated here.

[0236] In one exemplary embodiment, such as Figure 16 As shown, a power dispatching decision generation device is provided, comprising: a processing module 10, a determination module 11, a rearrangement module 12, a construction module 13, and a generation module 14, wherein:

[0237] The processing module 10 is used to perform similarity processing on each procedure segment in the power dispatch procedure text according to the received power dispatch instructions, so as to obtain a set of candidate procedure segments corresponding to the power dispatch procedure text.

[0238] The determination module 11 is used to determine the reordering score of each candidate procedure segment based on the semantic similarity, logical relationship, topological distance between the target equipment involved in the power dispatching instruction and the associated equipment involved in each candidate procedure segment, and the operation section safety indicators related to the power dispatching instruction.

[0239] The rearrangement module 12 is used to rearrange each candidate procedure segment based on the rearrangement score of each candidate procedure segment to obtain a set of rearranged candidate procedure segments.

[0240] Module 13 is used to construct the context of the reordered candidate procedure fragment set to obtain the text sequence corresponding to the power dispatch procedure text.

[0241] The generation module 14 is used to generate a power dispatching decision scheme based on the text sequence corresponding to the power dispatching instructions and power dispatching procedures.

[0242] In an exemplary embodiment, the determining module 11 includes:

[0243] The first determining unit is specifically used to determine the segment similarity of each candidate procedure segment based on the similarity between each candidate procedure segment and the power dispatch instruction.

[0244] The association unit is specifically used to associate each candidate procedure segment according to the logical association relationship of each candidate procedure segment in the candidate procedure segment set, so as to obtain at least one candidate procedure segment group.

[0245] The second determining unit is specifically used to determine the semantic similarity of the candidate procedure segment group based on the segment similarity corresponding to each candidate procedure segment in the candidate procedure segment group for any candidate procedure segment group in at least one candidate procedure segment group.

[0246] The third determining unit is specifically used to determine the re-ranking score of each candidate procedure segment group in the candidate procedure segment group based on the semantic similarity of the candidate procedure segment group, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure segment, and the operation section safety indicators related to the power dispatch instruction.

[0247] In an exemplary embodiment, the above-mentioned operational section safety indicators include: power flow margin and voltage stability indicators; the third determining unit is further configured to determine the electrical topology association factor of the candidate procedure segment group based on the topology distance; determine the safety constraint factor of the candidate procedure segment group based on the power flow margin and voltage stability indicators; and determine the re-ranking score of each candidate procedure segment group based on semantic similarity, electrical topology association factor and safety constraint factor.

[0248] In an exemplary embodiment, the processing module 10 includes:

[0249] The preprocessing unit is specifically used to preprocess the power dispatching procedure text based on the topology nodes in the power system common information model to obtain the procedure knowledge index.

[0250] The calculation unit is specifically used to calculate the semantic similarity between the power dispatching instruction and multiple procedure fragments in the procedure knowledge index, and to determine the target procedure fragment from the multiple procedure fragments based on the semantic similarity.

[0251] The determining unit is specifically used to determine the enhanced semantic vector corresponding to the power dispatch instruction based on the projection vector of the power dispatch instruction in each base direction and the orthogonal basis vector;

[0252] The similarity processing unit is specifically used to determine the set of candidate procedure fragments corresponding to the power dispatching procedure text based on the cosine similarity between the enhanced semantic vector corresponding to the power dispatching instruction and the target procedure fragment.

[0253] In an exemplary embodiment, the preprocessing unit is further configured to: divide the power dispatching procedure text into multiple procedure segments; associate the topology nodes in the power system public information model with the associated devices involved in the multiple procedure segments to obtain procedure segment identifiers; obtain the logical sequence number and attribute identifier of the multiple procedure segments in the power dispatching procedure text; and store the procedure segments, procedure segment identifiers, logical sequence numbers, and attribute identifiers according to a preset index structure to form a procedure knowledge index.

[0254] In one exemplary embodiment, the above-described building module 13 includes:

[0255] The determining unit is specifically used to determine the candidate procedure segments with reordering scores greater than a preset value as the target procedure segment set from the reordered candidate procedure segment set.

[0256] The control unit is specifically used to control the number of lexical components in the target procedure fragment set to obtain the target procedure fragment set after lexical control.

[0257] The deletion unit is specifically used to delete any one of the program segments in the target program segment set according to the electrical topology association factor corresponding to the program segment, so as to obtain the deleted program segment.

[0258] The sorting unit is specifically used to sort the deleted procedure fragments according to the safety constraint factor and electrical topology distance, so as to obtain the text sequence corresponding to the power dispatching procedure text.

[0259] In an exemplary embodiment, the determining unit is further configured to use the average reordering score of every two adjacent candidate procedure fragments in the candidate procedure fragment set as a candidate threshold, divide the candidate procedure fragment set into a first fragment set and a second fragment set one by one; calculate the weighted inter-class variance between the first fragment set and the second fragment set corresponding to each candidate threshold; determine the candidate threshold corresponding to the largest weighted inter-class variance as the truncation threshold; and determine the candidate procedure fragments with reordering scores greater than the truncation threshold as target procedure fragments to construct a target procedure fragment set.

[0260] In one exemplary embodiment, the generation module 14 includes:

[0261] The comparison unit is specifically used to input the text sequence and power dispatch instructions into the large model, and compare the weighted inter-class variance with a preset confidence threshold during the decoding process of the large model.

[0262] The generation unit is specifically used to determine the corresponding scheduling decision generation strategy based on the comparison results, and to generate a power dispatching decision scheme based on the scheduling decision generation strategy.

[0263] In an exemplary embodiment, the aforementioned generation unit is further configured to convert the procedure fragment carrying the mandatory attribute identifier into a fixed logical item when the weighted inter-class variance is greater than a preset confidence threshold, and generate a power dispatching decision scheme by the large model based on the fixed logical item; when the weighted inter-class variance is not greater than a preset confidence threshold, generate multiple candidate decision schemes by the large model, score and rank the multiple candidate decision schemes, and determine the power dispatching decision scheme based on the scoring results.

[0264] The modules in the aforementioned power dispatch decision generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0265] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 17As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores power dispatching data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network. When executed by the processor, the computer program implements a method for generating power dispatching decisions.

[0266] Those skilled in the art will understand that Figure 17 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0267] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0268] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0269] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0270] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0271] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0272] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for generating power dispatch decisions, characterized in that, The method includes: Based on the received power dispatch instructions, similarity processing is performed on each procedure segment in the power dispatch procedure text to obtain a set of candidate procedure segments corresponding to the power dispatch procedure text. The re-ranking score of each candidate procedure segment is determined based on the semantic similarity and logical relationship between the candidate procedure segments in the candidate procedure segment set, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure segment, and the operational section safety indicators related to the power dispatch instruction. Based on the reordering scores of each candidate procedure segment, the candidate procedure segments are reordered to obtain a reordered set of candidate procedure segments. The reordered set of candidate procedure fragments is used to construct a context to obtain the text sequence corresponding to the power dispatch procedure text. A power dispatching decision scheme is generated based on the text sequence corresponding to the power dispatching instruction and the power dispatching procedure text.

2. The method according to claim 1, characterized in that, The step of determining the re-ranking score of each candidate procedure segment based on the semantic similarity and logical relationship between the candidate procedure segments in the candidate procedure segment set, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure segment, and the operational section safety indicators related to the power dispatch instruction, includes: The similarity between each candidate procedure segment and the power dispatch instruction is determined based on the similarity between each candidate procedure segment and the power dispatch instruction. According to the logical relationship between each candidate procedure segment in the candidate procedure segment set, the candidate procedure segments are associated to obtain at least one candidate procedure segment group. For any candidate procedure segment group in the at least one candidate procedure segment group, the semantic similarity of the candidate procedure segment group is determined based on the segment similarity corresponding to each candidate procedure segment in the candidate procedure segment group. The re-ranking score of each candidate procedure fragment group is determined based on the semantic similarity of the candidate procedure fragment group, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure fragment, and the operational section safety indicators related to the power dispatch instruction.

3. The method according to claim 2, characterized in that, The operational section safety indicators include: power flow margin and voltage stability indicators; the determination of the re-ranking score of each candidate procedure segment group in the candidate procedure segment group based on the semantic similarity of the candidate procedure segment group, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure segment, and the operational section safety indicators related to the power dispatch instruction includes: Based on the topological distance, determine the electrical topology association factor of the candidate procedure fragment group; Based on the power flow margin and the voltage stability index, the safety constraint factor of the candidate procedure segment group is determined; The reordering score for each candidate procedure fragment group is determined based on the semantic similarity, the electrical topology association factor, and the safety constraint factor.

4. The method according to any one of claims 1-3, characterized in that, The step involves performing similarity processing on various procedure segments in the power dispatch procedure text based on the received power dispatch instructions to obtain a candidate procedure segment set corresponding to the power dispatch procedure text, including: Based on the topology nodes in the power system public information model, the power dispatching procedure text is preprocessed to obtain a procedure knowledge index. Calculate the semantic similarity between the power dispatch instruction and multiple procedure fragments in the procedure knowledge index, and determine the target procedure fragment from the multiple procedure fragments based on the semantic similarity; Based on the projection vector of the power dispatch instruction in each base direction and the orthogonal basis vector, determine the enhanced semantic vector corresponding to the power dispatch instruction; Based on the cosine similarity between the enhanced semantic vector corresponding to the power dispatch instruction and the target procedure fragment, a set of candidate procedure fragments corresponding to the power dispatch procedure text is determined.

5. The method according to claim 4, characterized in that, The power dispatching procedure text is preprocessed based on the topology nodes in the power system public information model to obtain a procedure knowledge index, including: The power dispatching procedure text is divided into multiple procedure segments; Associating the topology nodes in the power system common information model with the associated devices involved in the multiple procedure segments yields the procedure segment identifier; Obtain the logical sequence number and attribute identifier of the multiple procedure fragments in the power dispatch procedure text; The procedure fragment, the procedure fragment identifier, the logical sequence number, and the attribute identifier are stored according to a preset index structure to form a procedure knowledge index.

6. The method according to any one of claims 1-3, characterized in that, The step of constructing a context from the reordered set of candidate procedure fragments to obtain the text sequence corresponding to the power dispatch procedure text includes: In the reordered candidate procedure fragment set, the candidate procedure fragments with reordering scores greater than a preset value are determined as the target procedure fragment set. The target procedure fragment set is subjected to word count control to obtain a word-controlled target procedure fragment set. For any one procedure segment in the target procedure segment set, the procedure segment is reduced according to the electrical topology association factor corresponding to the procedure segment to obtain the reduced procedure segment. Based on the safety constraint factor and electrical topology distance of the deleted procedure fragments, the deleted procedure fragments are sorted to obtain the text sequence corresponding to the power dispatch procedure text.

7. The method according to claim 6, characterized in that, In the reordered candidate procedure fragment set, the candidate procedure fragments with reordering scores greater than a preset value are determined as the target procedure fragment set, including: The average reordering score of every two adjacent candidate procedure segments in the candidate procedure segment set is used as the candidate threshold to divide the candidate procedure segment set into a first segment set and a second segment set one by one. Calculate the weighted inter-class variance between the first fragment set and the second fragment set corresponding to each of the candidate thresholds; The candidate threshold corresponding to the largest weighted inter-class variance is determined as the cutoff threshold; Candidate procedure segments whose reordering scores are greater than the truncation threshold are identified as target procedure segments to construct the target procedure segment set.

8. The method according to claim 7, characterized in that, The step of generating a power dispatch decision scheme based on the text sequence corresponding to the power dispatch instruction and the power dispatch procedure text includes: The text sequence and the power dispatch instruction are input into a large model. During the decoding process of the large model, the weighted inter-class variance is compared with a preset confidence threshold. Based on the comparison results, the corresponding scheduling decision generation strategy is determined, and the power scheduling decision scheme is generated based on the scheduling decision generation strategy.

9. The method according to claim 8, characterized in that, The step of determining the corresponding scheduling decision generation strategy based on the comparison results, and generating the power dispatching decision scheme based on the scheduling decision generation strategy, includes: If the weighted inter-class variance is greater than the preset confidence threshold, the procedure fragment carrying the mandatory attribute identifier is converted into a fixed logical term, and the large model generates a power dispatching decision scheme based on the fixed logical term. If the weighted inter-class variance is not greater than the preset confidence threshold, the large model generates multiple candidate decision schemes, scores and ranks the multiple candidate decision schemes, and determines the power dispatch decision scheme based on the scoring results.

10. A power dispatch decision generation device, characterized in that, The device includes: The processing module is used to perform similarity processing on each procedure segment in the power dispatch procedure text according to the received power dispatch instruction, so as to obtain a set of candidate procedure segments corresponding to the power dispatch procedure text. The determination module is used to determine the reordering score of each candidate procedure segment based on the semantic similarity and logical relationship between each candidate procedure segment in the candidate procedure segment set, the topological distance between the target equipment involved in the power dispatch instruction and the associated equipment involved in each candidate procedure segment, and the operation section safety indicators related to the power dispatch instruction. The reordering module is used to reorder the candidate procedure segments based on their reordering scores to obtain a reordered set of candidate procedure segments. The construction module is used to construct the context of the reordered candidate procedure fragment set to obtain the text sequence corresponding to the power dispatch procedure text. The generation module is used to generate a power dispatching decision scheme based on the text sequence corresponding to the power dispatching instruction and the power dispatching procedure text.