Large language model and multi-agent collaborative power grid task self-matching and dynamic scheduling method and related equipment
Through the power grid task self-matching and dynamic scheduling method of large language model and multi-agent collaboration, the problems of inflexible task scheduling and compliance risks in the task management system under dynamically changing scenarios are solved, efficient and accurate task resource matching and scheduling are achieved, and the system's adaptability and resource utilization are improved.
Patent Information
- Application Number
- CN202511256248.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-04
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-09-04
AI Technical Summary
Existing task management systems are difficult to adapt to dynamically changing business scenarios, are unable to optimize task response efficiency and resource utilization in real time, and lack the ability to understand the semantics of unstructured task inputs, resulting in inflexible task scheduling and high compliance risks.
By adopting the method of large language model and multi-agent collaboration, semantic parsing and structured modeling of task descriptions are performed through the power grid fine-tuning large model, calibration is performed in combination with the power grid task semantic graph, resource objects are modeled using multi-dimensional vectors, collaborative scheduling is performed based on multi-agent reinforcement learning, and review is performed through the compliance knowledge graph to achieve accurate matching and dynamic scheduling of tasks and resources.
It improves the accuracy of task semantic parsing, enhances the matching accuracy of resource objects and power grid tasks, enhances the adaptive capability of scheduling, reduces compliance risks, improves scheduling response efficiency and resource utilization, and optimizes strategies through a continuous learning mechanism.
Smart Images

Figure CN120806562A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power grid task scheduling, in particular to a power grid task self-matching and dynamic scheduling method based on a large language model and multi-agent collaboration and related equipment. BACKGROUND
[0002] At present, part of the task management system has introduced a workflow engine based on BPM (Business Process Modeling) to realize the automatic circulation of task nodes, but still relies on artificial pre-set process templates, which is difficult to adapt to dynamic changes in business scenarios. For task scheduling, although there are task allocation technologies based on heuristic algorithms, linear programming, genetic algorithms and other algorithms, these methods are mostly static optimization, which cannot make dynamic optimization decisions according to task changes and resource state changes, and cannot adapt to task changes, resource state changes or emergencies in real time, making it difficult to improve the task response efficiency and resource utilization.
[0003] In terms of semantic understanding, traditional task management systems usually require structured input of tasks, and have weak analysis capabilities for task intentions or information appeals expressed in natural language, and cannot automatically identify task elements (such as task type, priority, time limit, dependency relationship, etc.) from unstructured input of users or systems, which limits the versatility and flexibility of the task system. SUMMARY
[0004] In view of the above deficiencies or shortcomings, the present application provides a power grid task self-matching and dynamic scheduling method based on a large language model and multi-agent collaboration and related equipment, which can improve the accuracy of task semantic analysis, improve the matching accuracy of resource objects and power grid tasks, and improve the adaptive and intelligent optimization capabilities of scheduling, effectively avoiding compliance risks.
[0005] According to the first aspect, the present application provides a power grid task self-matching and dynamic scheduling method based on a large language model and multi-agent collaboration, in some embodiments, the method comprises: The task description information is collected, the task description information is preprocessed, the preprocessed task description information is subjected to semantic analysis and structured modeling by using a power grid fine-tuning large model to obtain initial structured task information, the initial structured task information is subjected to semantic calibration based on a power grid task semantic graph to obtain standard structured task information, the standard structured task information is used to generate a power grid task, and the power grid task is added to a task pool; multi-dimensional resource object information is collected, multi-dimensional vector modeling is performed based on the multi-dimensional resource object information to obtain resource objects represented by multi-dimensional vectors, and the resource objects are added to a resource pool; based on a first matching degree scoring mechanism, the matching degree of each to-be-scheduled power grid task in the task pool and each resource object in the resource pool is calculated, and a plurality of first candidate resource objects corresponding to each to-be-scheduled power grid task are determined based on the matching degree calculation result; a task intelligent agent is allocated to each to-be-scheduled power grid task, a resource intelligent agent is allocated to each first candidate resource object, each task intelligent agent and each resource intelligent agent perform collaborative scheduling in a multi-agent reinforcement learning environment to determine a target resource object corresponding to each to-be-scheduled power grid task, and a plurality of task-resource mapping information are generated; each piece of task-resource mapping information is subjected to compliance review according to a compliance knowledge graph; and task dispatching is performed according to the task-resource mapping information that passes the compliance review.
[0006] In some embodiments, the power grid task semantic graph includes a plurality of standard task nodes; the semantic calibration of the initial structured task information based on the power grid task semantic graph to obtain the standard structured task information includes: determining a target task node from the plurality of standard task nodes according to the initial structured task information; calculating a matching degree between the initial structured task information and node information of the target task node by using a graph neural network; when the matching degree is greater than a preset threshold, obtaining the node information of the target task node as the standard structured task information; and when the matching degree is less than or equal to the preset threshold, returning to the step of performing semantic analysis and structured modeling on the preprocessed task description information by using the power grid fine-tuning large model.
[0007] In some embodiments, the calculation of the matching degree of each to-be-scheduled power grid task in the task pool and each resource object in the resource pool includes: embedding the power grid task into a vector space to obtain a task vector; calculating a skill matching score, a response ability score and a success rate score of each resource object based on the task vector; and calculating the matching degree of the task vector and each resource object based on the skill matching score, the response ability score and the success rate score of each resource object.
[0008] In some embodiments, the compliance review of each piece of task-resource mapping information according to the compliance knowledge graph comprises: taking each piece of task-resource mapping information as a review object, performing graph matching on the review object in the compliance knowledge graph to obtain a compliance path corresponding to the review object; verifying whether the review object satisfies all logical rules of the compliance path using a rule reasoning engine; if the review object satisfies all logical rules of the compliance path, determining that the review object passes the compliance review; and if there is no compliance path corresponding to the review object in the compliance knowledge graph, or the review object does not satisfy any logical rule of the compliance path, determining that the review object fails to pass the compliance review.
[0009] In some embodiments, after determining that the review object fails to pass the compliance review, the method further comprises: determining a conflict type between the review object and the compliance path; determining a disposal measure of a to-be-scheduled power grid task related to the review object according to the conflict type, and executing the disposal measure.
[0010] In some embodiments, the collaborative scheduling of the task agents and the resource agents in the multi-agent reinforcement learning environment is performed to determine the target resource object corresponding to each to-be-scheduled power grid task, comprising: constructing a scheduling graph; the scheduling nodes in the scheduling graph are each to-be-scheduled power grid task and each first candidate resource object, and the edges between any two scheduling nodes represent one or more relationships between the two scheduling nodes; the one or more relationships comprise an organizational constraint relationship; each task agent determines a target resource agent to be connected according to the scheduling graph, and sends a task matching request to all target resource agents in parallel; each resource agent, after receiving the task matching request, performs benefit evaluation based on the task information carried by the task matching request, and returns response information indicating acceptance of the task or rejection of the task to the task agent sending the task matching request based on the benefit evaluation result; the second candidate resource object corresponding to each to-be-scheduled power grid task is determined based on the response information of each resource agent; the matching degree of each to-be-scheduled power grid task and each second candidate resource object corresponding thereto is calculated based on a second matching degree scoring mechanism; and the target resource object corresponding to each to-be-scheduled power grid task is determined according to the matching degree of each to-be-scheduled power grid task and each second candidate resource object corresponding thereto.
[0011] In some embodiments, after the task dispatching according to the task-resource mapping information that passes the compliance review, the method further comprises: collecting multi-dimensional execution records of each power grid task after execution; dynamically adjusting the policy parameters in the second matching degree scoring mechanism through a reinforcement learning reward function based on the multi-dimensional execution records, and / or screening high-quality execution records meeting a preset quality requirement from the multi-dimensional execution records of the plurality of power grid tasks, and updating the power grid task semantic graph based on the high-quality execution records.
[0012] The application provides a power grid task self-matching and dynamic scheduling device based on a large language model and a multi-agent according to a second aspect. In some embodiments, the device comprises: a power grid task construction module configured to collect task description information, pre-process the task description information, perform semantic analysis and structured modeling on the pre-processed task description information using a power grid fine-tuning large model, obtain initial structured task information, perform semantic calibration on the initial structured task information based on a power grid task semantic graph, obtain standard structured task information, generate a power grid task based on the standard structured task information, and add the power grid task to a task pool; a resource object construction module configured to collect multi-dimensional resource object information, perform multi-dimensional vector modeling based on the multi-dimensional resource object information, obtain resource objects represented by multi-dimensional vectors, and add the resource objects to a resource pool; a first resource object screening module configured to calculate a matching degree between each to-be-scheduled power grid task in the task pool and each resource object in the resource pool based on a first matching degree scoring mechanism, and determine a plurality of first candidate resource objects corresponding to each to-be-scheduled power grid task based on the matching degree calculation results; a second resource object screening module configured to assign a task agent to each to-be-scheduled power grid task, assign a resource agent to each first candidate resource object, and enable the task agents and the resource agents to perform collaborative scheduling in a multi-agent reinforcement learning environment to determine a target resource object corresponding to each to-be-scheduled power grid task and generate a plurality of task-resource mapping information; a compliance review module configured to perform compliance review on each piece of task-resource mapping information according to a compliance knowledge graph; a task assignment module configured to perform task assignment based on the task-resource mapping information that passes the compliance review.
[0013] The application provides a computer device according to a third aspect, which comprises a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the power grid task self-matching and dynamic scheduling method based on a large language model and a multi-agent provided in any of the embodiments are implemented.
[0014] The application provides a computer readable storage medium according to a fourth aspect, which stores a computer program. When the computer program is executed by a processor, the steps of the power grid task self-matching and dynamic scheduling method based on a large language model and a multi-agent provided in any of the embodiments are implemented.
[0015] In the above embodiments of the present application, by introducing the joint modeling technology of large language model (i.e., power grid fine-tuning large model) and knowledge graph (i.e., power grid task semantic graph), the semantic understanding and structured modeling capability for unstructured task input are greatly improved, the automatic extraction and standardization of task information are realized, the semantic drift phenomenon such as polysemy and non-standard description can be avoided, and the problem of low task semantic analysis accuracy is solved. In the resource modeling layer, the resource objects are modeled by multi-dimensional attributes, and the resource objects are represented by multi-dimensional vectors, which can improve the matching accuracy of resource objects and power grid tasks, and further make the subsequent task scheduling more personalized and more consistent with the business. On this basis, the task scheduling mechanism based on multi-agent reinforcement learning enables multiple task agents and resource agents to cooperate in scheduling, which can make optimal or suboptimal matching decisions in complex scenarios with dynamic task changes and fluctuating resource states, and has significant adaptive and intelligent optimization capabilities, thereby improving the scheduling response efficiency and resource utilization. After generating the task resource mapping information, compliance review is performed to ensure that each task dispatch meets the requirements of industry standards, personnel qualifications, safety regulations and other requirements, and effectively avoids the compliance risk of scheduling results. In addition, the present application also provides a continuous learning mechanism based on scheduling execution feedback, which enables the system to continuously accumulate experience and correct deviations from the task execution results, and realizes the self-evolution of the strategy. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 A flowchart of a large language model and multi-agent cooperative power grid task self-matching and dynamic scheduling method according to one or more embodiments of the present application is provided. Figure 2 A structural block diagram of a large language model and multi-agent cooperative power grid task self-matching and dynamic scheduling device according to one or more embodiments of the present application is provided. Figure 3 An internal structure diagram of a computer device according to one or more embodiments of the present application is provided. DETAILED DESCRIPTION
[0017] To make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings. It should be clear that the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0018] The following description refers to the accompanying drawings. Unless otherwise noted, same or similar components in different drawings have same or similar reference numerals. The implementations described in the following exemplary embodiments are not meant to represent all implementations consistent with the present disclosure. Rather, they are simply examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0019] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not necessarily mean a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, "a plurality of" means two or more, unless otherwise specified. The "and / or" describes the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after are in an "or" relationship.
[0020] In view of the deficiencies or defects of the related art, the present application provides a power grid task self-matching and dynamic scheduling method based on large language model and multi-agent collaboration. The method is suitable for digital management scenarios with task scheduling, task matching, resource allocation, and collaborative execution as the core. The method can be widely applied to job task scheduling, inspection management, marketing inspection, fault repair, and other scenarios of power grid enterprises. Moreover, since the method provides a unified task governance and intelligent allocation mechanism, it is particularly suitable for environments with a large number of heterogeneous tasks, multi-source resource participation, and real-time dynamic adjustment requirements. In addition, the method is not only suitable for power grid enterprises, but also suitable for other industries such as government affairs processes, financial task allocation, and manufacturing operation and maintenance. The present application will take power grid enterprises as an example to illustrate the method.
[0021] The method can be applied to a server for implementing a series of operations such as task management, resource management, and task scheduling. The server can be a standalone server, and can also be a server cluster. Please refer to Figure 1The steps included in the method are shown in the figure, i.e., steps S110-S160. The method at least includes the following improvements: (1) By introducing the joint modeling technology of large language model (i.e., power grid fine-tuning large model) and knowledge graph (i.e., power grid task semantic graph), the semantic understanding and structured modeling capability for unstructured task input are greatly improved, the automatic extraction and standardization of task information are realized, the semantic drift phenomenon such as polysemy and non-standard description can be avoided, and the problem of low task semantic analysis accuracy is solved. (2) At the resource modeling level, the resource objects are modeled by multi-dimensional attributes, and the resource objects are represented by multi-dimensional vectors, which can improve the matching accuracy of resource objects and power grid tasks, and further make the subsequent task scheduling more personalized and higher in business compatibility. (3) The task scheduling mechanism based on multi-agent reinforcement learning enables multiple task agents and resource agents to collaborate in scheduling, which can achieve optimal or suboptimal matching decisions in complex scenarios with dynamic task changes and resource state fluctuations, and has significant adaptive and intelligent optimization capabilities, thereby improving the scheduling response efficiency and resource utilization. (4) After generating the task resource mapping information, compliance review is performed to ensure that each task dispatch meets the requirements of industry standards, personnel qualifications, safety regulations and other requirements, effectively avoiding the compliance risk of scheduling results. (5) The continuous learning mechanism based on scheduling execution feedback enables the system to continuously accumulate experience and correct deviations from the task execution results, and realizes the self-evolution of strategies.
[0022] The various steps shown in the figure will be described in detail below through some embodiments. Figure 1
[0023] S110: Collect task description information, pre-process the task description information, use the power grid fine-tuning large model to perform semantic analysis and structured modeling on the pre-processed task description information, obtain initial structured task information, perform semantic calibration on the initial structured task information based on the power grid task semantic graph, obtain standard structured task information, generate a power grid task based on the standard structured task information, and add the power grid task to the task pool.
[0024] The task description information is used as the only original input source for subsequent semantic analysis, task type identification, resource matching, and order allocation decision. It is information in natural language or semi-structured text form describing field operation tasks such as power grid operation and maintenance, repair, and dispatch. There can be multiple channels for collecting task description information, which can be collected in real time through multiple channels and multiple protocols from people, machines, and systems. For example, an operation and maintenance personnel inputs "Please arrange for the repair of the main transformer of the substation in the south area this afternoon, two people are required to work simultaneously" and "SF6 low pressure alarm of 303 switch on 35 kV side of #2 main transformer of 220 kV station, need to complete gas supplement and signal restoration within 2 hours". For another example, a dispatch center operator fills in the text description in the defect single, repair application, test plan, and patrol work order in the OMS system. Moreover, the task description information is not limited to text, which can be natural language text, voice input, image screenshot, PDF (Portable Document Format) file, Word file, or multi-modal combined input.
[0025] The pre-processing of the task description information can convert the original data into structured or semi-structured text that can be directly understood by the power grid fine-tuning large model, including but not limited to time, location, task type, keyword, object, time, number of people required, qualification requirements, etc. The pre-processing operation can reduce the input noise of the power grid fine-tuning large model, improve the accuracy of subsequent semantic analysis, and retain traceable structured intermediate results.
[0026] The pre-processing can at least include the following operations: a. character cleaning, such as removing HTML tags, special symbols, and expression information; b. word segmentation and part-of-speech tagging, such as identifying professional vocabulary from the task description information through domain dictionary enhancement and other means, such as "SF6", "main transformer", etc.; c. named entity recognition, such as extracting key information such as site name, equipment number, voltage level, time limit, etc. from the task description information; d. dependency syntax analysis: used to locate the action-recipient relationship (such as "gas supplement → switch"); e. spelling correction, which can combine domain word library and language model to correct synonyms, such as unifying "low pressure" and "low pressure".
[0027] The power grid fine-tuning large model refers to a large language model obtained by fine-tuning a general large language model (such as ChatGLM, BLOOM, DeepSeek) using power grid domain corpus (such as defect report, maintenance procedure, dispatching instruction, safety regulation article). Compared with the general large language model, the power grid fine-tuning large model has the ability to deeply understand the professional semantics of the power grid. The power grid fine-tuning large model is used for context semantic analysis and modeling of preprocessed task description information, and outputs initial structured task information, realizing accurate conversion from natural language to power grid knowledge structure. The initial structured task information refers to the output result of the power grid fine-tuning large model, which includes but is not limited to structured fields such as task type, professional attribute, processing object, key target, time requirement and constraint condition. Exemplarily, the field value of the task type can be device inspection, defect processing, fault repair, device replacement, maintenance test, safety inspection, marketing inspection, user visit, data archiving, work order audit, project collaboration, and other business self-defined types; the field value of the professional attribute can be power transmission, power transformation, power distribution, marketing, safety supervision, maintenance and operation, customer service, project construction, asset management, information communication, and comprehensive management; the field value of the processing object can be the south substation, 10kV switch cabinet No. 123, XX area user group, XX line number, certain data system interface, certain marketing inspection case, and specific device identification number (such as meter code and cable code), which is usually bound with the task type and supports automatic extraction of associated relationship combined with the knowledge graph; the field value of the key target can be inspection completion (for inspection tasks), defect elimination (for processing tasks), fault recovery (for repair tasks), data correction or archiving (for information tasks), case verification and case filing (for inspection tasks), result review and feedback (for process tasks), and achievement reporting (for plan tasks); and the field value of the time requirement can be start time, deadline, and response time limit.
[0028] For example, assuming that the task description information is “Please arrange to maintain the main transformer of the south substation this afternoon, and two people need to work simultaneously.”, the output result of the power grid fine-tuning large model can be as follows: {“task type”: “power transformation maintenance”; “processing object”: “main transformer of the south substation”; “operation time”: “this afternoon”; “execution number requirement”: “2 people”; “coordination requirement”: “two people need to work simultaneously”; “constraint condition”: “need to have high-voltage operation qualification”}.
[0029] For example, assume that the task description information is a PDF file containing "Work order number: 220331-BJ301; Task content: equipment replacement (110kV switch cabinet); Deadline: before 18:00 on April 15, 2024; Notes: need live operation qualification", the output of the power grid fine-tuning large model can be as follows: {“task type”: “equipment replacement”; “processing object”: “110kV switch cabinet”; “task ID”: “220331-BJ301”; “deadline”: “2024-04-15 18:00”; “qualification requirement”: “need live operation certificate”}.
[0030] The power grid task semantic graph is a knowledge graph that conforms to the pre-constructed power grid knowledge classification system (including task type ontology, relationship definition, upper and lower label, semantic similarity rule, etc.). It is used to perform semantic calibration and standardization on the initial structured task information generated by the power grid fine-tuning large model, which can eliminate the ambiguity that may exist in the initial structured task information, ensure that the task labels (related information of the power grid task, including but not limited to time, place, task type, keyword, object, time, number of people required, qualification requirement, etc.) are consistent within the entire network, and ensure the accuracy of subsequent resource matching and compliance review.
[0031] The power grid knowledge classification system is obtained by dividing the knowledge of power grid enterprises using a multi-dimensional classification method. Common classification dimensions include knowledge type, business, specialty, equipment asset, and institution. Among them, knowledge type, business, and specialty can be used as main dimensions, for example, first divide multiple knowledge types, then divide multiple businesses under each knowledge type, and then divide multiple specialties under each business. Equipment asset and institution can be used as auxiliary dimensions.
[0032] The construction process of the power grid task semantic graph can be as follows: (1) Extract the main dimension knowledge label as the task classification backbone. The task type ontology can be constructed in a three-dimensional combination of “knowledge type + business classification + specialty classification”; each combination is considered as a standardized task category, forming a semantic tree structure; for example, “operation guide > power transmission business > channel inspection”.
[0033] (2) Introduce non-standard expressions in historical task data. Non-standard expressions can be extracted from historical task data such as work order systems and maintenance platforms; construct synonym / alias tables, such as “main transformer inspection” → “main transformer inspection”.
[0034] (3) Establish the semantic relationship between tasks and devices, organizational entities. The relationship edges such as "has_asset", "has_department", "has_object" can be used: "transformer maintenance task" → has_asset → "10kV switch cabinet", "line patrol" → has_department → "power transmission operation center".
[0035] (4) Set the scheduling meta attribute of each task category, including the professional of the task, the typical processing object, the default priority, the required skill certificate, etc.; facilitate subsequent structured output of tasks and resource capability adaptation.
[0036] (5) Build a graph service interface and connect to the task scheduling system. It can provide a variety of function graph API interfaces, such as querying standard task categories for the task scheduling system, mapping task labels to standard categories, and returning the scheduling rules and compliance requirements of related power grid tasks.
[0037] (6) Implement semantic standardization and label normalization services, for example, input the initial structured task information output by the power grid fine-tuning large model into the mapping module of the power grid task semantic graph to realize the functions of task label standardization, semantic clustering, ambiguity elimination, etc.
[0038] The power grid task semantic graph includes a plurality of standard task nodes, and the node information of the standard task node is also a task label, which includes but is not limited to time, place, task type, keyword, object, time, number of people required, qualification requirement, etc. The description of these fields can be referred to in the above, and will not be repeated here. The steps of performing semantic calibration on the initial structured task information based on the power grid task semantic graph to obtain the standard structured task information can include: determining a target task node from the plurality of standard task nodes according to the initial structured task information; using a graph neural network to calculate the matching degree between the initial structured task information and the node information of the target task node; when the matching degree is greater than a preset threshold, obtaining the node information of the target task node as the standard structured task information; when the matching degree is less than or equal to the preset threshold, returning to the step of using the power grid fine-tuning large model to perform semantic analysis and structured modeling on the preprocessed task description information.
[0039] The standard task nodes are usually more, and can be combined with hash dictionary, vector disambiguation and graph traversal to realize faster and more accurate positioning of the target task node (i.e. the standard task node most matched with the initial structured task information). For example, first build an inverted index of each standard task node of the power grid task semantic graph, and then build a hash dictionary. After obtaining the initial structured task information, the hash bucket is directly searched using the information, so that the node ID of the standard task node uniquely corresponding to the information can be located in seconds. If there are multiple standard task nodes corresponding to the initial structured task information, a graph neural network (such as a relational graph convolution network) can be used to calculate the similarity (such as the cosine similarity) between the initial structured task information and the node information of each standard task node. Finally, the standard task node with the highest similarity is taken as the target task node.
[0040] If the matching degree between the initial structured task information and the node information of the target task node is greater than a preset threshold, the node information of the target task node is taken as the standard structured task information. If the matching degree is less than or equal to the preset threshold, the step of using the power grid fine-tuning large model to perform semantic analysis and structured modeling on the preprocessed task description information is returned, so as to regenerate the initial structured task information from the power grid fine-tuning large model. If the initial structured task information generated by the power grid fine-tuning large model multiple times does not find a standard task node with a matching degree greater than the preset threshold, artificial correction of the initial structured task information can be requested to ensure that the task can be successfully dispatched.
[0041] S120: Collect multi-dimensional resource object information, perform multi-dimensional vector modeling based on the multi-dimensional resource object information, obtain a resource object represented by a multi-dimensional vector, and add the resource object to a resource pool.
[0042] The resource object refers to the smallest entity unit that can be dispatched, allocated and bear specific work in the process of executing the power grid task, and usually exists in the form of personnel, teams, tools, vehicles, spare parts, test equipment, unmanned aerial vehicles, robots, etc. For example, it can be "Mr. Li of the 220 kV professional maintenance team", "SF6 gas filling special tool kit", and "high-altitude working vehicle with license plate Beijing A12345". As the final executor of the dispatching system, the resource object can realize accurate matching and dynamic allocation of tasks and resources by modeling its multi-dimensional attributes such as capability, state and historical performance.
[0043] Multi-dimensional resource object information refers to all attribute data collected and integrated from multiple aspects such as static attributes, dynamic states, behavior records, and preference factors, for fully describing the capability, real-time state, and historical performance of each resource object. Static attributes may be, for example, qualifications, skill levels, professional labels, etc.; dynamic states may be, for example, current task load (e.g., class member A, task load 3, which are respectively inspection task from 9:00 to 10:00 am, defect processing from 11:00 to 12:00 am, and data verification of a power supply area from 2:00 to 3:00 pm. At this time, the current load level of the resource is: number of tasks: 3; current task density: 3 / 8 hours = 37.5%), current location, and availability (e.g., remaining available working hours). Behavior records may be, for example, historical success rate (e.g., task success rate in the last 6 months), timeliness (e.g., average response time), preferred shift (e.g., preference for day shift or night shift), etc.
[0044] The multi-dimensional vector modeling method may be to convert attribute data of each aspect into a vector, and then splice vectors of each aspect, so that the final multi-dimensional vector is: static attribute vector + dynamic state vector + behavior record vector.
[0045] The preference factor represents the preference or selection habit of a resource under certain conditions, such as a resident area, a frequent collaborator, or a preference for processing a certain type of task. The preference factor does not participate in multi-dimensional vector modeling, and it can be used as a weighted correction item or a decision priority factor in the first matching degree scoring mechanism.
[0046] S130: Based on the first matching degree scoring mechanism, the matching degree of each to-be-scheduled power grid task in the task pool and each resource object in the resource pool is calculated, and a plurality of first candidate resource objects corresponding to each to-be-scheduled power grid task are determined based on the matching degree calculation result.
[0047] The to-be-scheduled power grid task refers to a power grid task to be scheduled. Each power grid task has corresponding indication information indicating the scheduling state (e.g., scheduled, to-be-scheduled, etc.), and the to-be-scheduled power grid task can be determined through the indication information.
[0048] The step of calculating the matching degree of each to-be-scheduled power grid task in the task pool and each resource object in the resource pool may include: embedding the power grid task into a vector space to obtain a task vector; calculating the skill matching score, response capability score, and success rate score of the task vector and each resource object; and calculating the matching degree of the task vector and each resource object according to the skill matching score, response capability score, and success rate score of the task vector and each resource object.
[0049] The first matching degree scoring mechanism is to calculate the matching degree of each to-be-scheduled power grid task and each resource object in the resource pool according to a preset matching degree scoring function. The matching degree scoring function may be: Matching degree = a * skill matching score + β * response ability score + γ * success rate score.
[0050] The sum of the three weights a, β and γ is 1, and the system can dynamically adjust the values of a, β and γ.
[0051] The skill matching score is the product of the value of the skill-related attribute (such as skill) in the task vector and the value of the skill-related attribute in the resource object; the response ability score is the product of the value of the response ability-related attribute (such as response time limit and response ability) in the task vector and the value of the response ability-related attribute in the resource object; and the success rate score is the product of the value of the success rate-related attribute (such as historical success rate) in the task vector and the value of the success rate-related attribute in the resource object. For example, the structure of the task vector T is [skill: 0.9, response time limit: 0.6, collaboration demand: 0.2], and the structure of the resource vector R is [skill: 0.85, availability: 0.7, response ability: 0.75, success rate: 0.92], then the skill matching score = 0.9 * 0.85 = 0.765, the response ability score = 0.6 * 0.75 = 0.45, and the success rate score = 0 * 0.92 = 0.
[0052] S140: assign a task agent to each to-be-scheduled power grid task, assign a resource agent to each first candidate resource object, and make each task agent and each resource agent perform collaborative scheduling in a multi-agent reinforcement learning environment to determine the target resource object corresponding to each to-be-scheduled power grid task and generate a plurality of pieces of task resource mapping information.
[0053] The task resource mapping information is the mapping information between the to-be-scheduled power grid task and the target resource object thereof, and specifically can be the task ID of the related power grid task and the resource ID of the resource object.
[0054] The embodiment can adopt a MARL (Multi-Agent Reinforcement Learning) framework, assign a task agent to each to-be-scheduled power grid task, assign a resource agent to each first candidate resource object, and then make each task agent and each resource agent perform collaborative scheduling.
[0055] The step of making each task agent and each resource agent in the multi-agent reinforcement learning environment to cooperatively schedule to determine the target resource object corresponding to each to-be-scheduled power grid task can include: constructing a scheduling graph; the scheduling nodes in the scheduling graph are each to-be-scheduled power grid task and each first candidate resource object, and the edges between any two scheduling nodes represent one or more relationships between the two scheduling nodes; the one or more relationships include an organizational constraint relationship; each task agent determines the target resource agent that needs to be connected according to the scheduling graph, and sends a task matching request to all target resource agents in parallel; after receiving the task matching request, each resource agent performs benefit evaluation based on the task information carried by the task matching request, and returns response information indicating acceptance or rejection of the task to the task agent that sent the task matching request based on the benefit evaluation result; the second candidate resource object corresponding to each to-be-scheduled power grid task is determined based on the response information of each resource agent; the matching degree of each to-be-scheduled power grid task and each second candidate resource object corresponding thereto is calculated based on a second matching degree scoring mechanism; and the target resource object corresponding to each to-be-scheduled power grid task is determined according to the matching degree of each to-be-scheduled power grid task and each second candidate resource object corresponding thereto.
[0056] The flow of cooperative scheduling can be as follows: 1. Initialize the scheduling period: in the multi-agent reinforcement learning environment, load the initial state of the task pool and the resource pool, construct the scheduling graph at time t=0 in combination with the initial state and the preset organizational constraints. The scheduling nodes in the scheduling graph are two kinds, which are each to-be-scheduled power grid task and each first candidate resource object, and the edges between any two scheduling nodes are constructed on demand, which are used to represent one or more relationships between the two scheduling nodes, such as an organizational constraint relationship and a matching relationship, that is, there can be multiple edges between two scheduling nodes, such as an edge representing an organizational constraint relationship and an edge representing a matching relationship. As an example of the construction of the edge, the edge representing the matching relationship can be constructed according to the matching degree score calculated in step S130, such as constructing the edge if the matching degree score is greater than a preset threshold, and not constructing the edge if the matching degree score is less than or equal to the preset threshold.
[0057] 2. Task agent initiates task matching request: each to-be-scheduled power grid task is assigned a corresponding task agent, and each task agent determines the target resource agent that needs to be connected according to the scheduling graph, for example, according to whether there is an edge representing a matching relationship between the scheduling node corresponding to the to-be-scheduled power grid task (referring to the to-be-scheduled power grid task that the task agent is responsible for) and the scheduling node corresponding to other resource objects, the resource agent related to the other scheduling node connected with the to-be-scheduled power grid task through the edge representing the matching relationship is taken as the target resource agent. Then, a task matching request is sent to each target resource agent, and the request can carry the task information of the to-be-scheduled power grid task, such as a task vector.
[0058] 3. Resource agent assesses the willingness to accept the task: each resource agent assesses whether to accept the task according to the local state, which can include the following judgment logic: (1) whether there is an idle period; (2) whether it meets the qualification and skill requirements; (3) whether the task matches the preferences or historical experience; (4) whether there is a conflict in the multi-task scheduling sequence. When any of the judgment logics is true, there is a benefit (for example, one point can be obtained for each logic, and 0 points can be obtained if it is not true). After completing all judgment logics, the sum of all scores is taken as the total benefit. If the total benefit exceeds the preset threshold (such as 2 points), it is determined to accept the task. If the total benefit does not exceed the preset threshold (such as 2 points), it is determined to reject the task.
[0059] 4. Matching score calculation and bidding game.
[0060] For any to-be-scheduled power grid task, if the resource agent feedback indicates an acceptance response information of the task, the resource object responsible for the resource agent is the second candidate resource object corresponding to the to-be-scheduled power grid task. If multiple resource agents feedback indicate an acceptance response information of the task to the task agent related to the to-be-scheduled power grid task, the scheduling system on the server can calculate the matching degree score between the to-be-scheduled power grid task and the resource object responsible for each resource agent based on the second matching degree scoring mechanism.
[0061] The second matching degree scoring mechanism calculates the matching degree between each to-be-scheduled power grid task and its corresponding second candidate resource object according to a preset matching degree scoring function. The matching degree scoring functions of the first and second matching degree scoring mechanisms are different.
[0062] The matching degree scoring function of the second matching degree scoring mechanism can be as follows: Matching degree = a · skill matching score + β · load margin score + γ · geographic proximity score + δ · response history score.
[0063] In this matching degree scoring function, a, β, γ, and δ are weight values, and their sum is 1. Their respective values can be adjusted according to actual conditions.
[0064] After calculating the matching degree of each to-be-scheduled power grid task and each second candidate resource object corresponding thereto, the second candidate resource object with the highest matching degree is taken as the target resource object. Each task agent will send the to-be-scheduled power grid task to the target resource object, and then update the scheduling graph. For example, the scheduling state of the related to-be-scheduled power grid task in the scheduling graph is changed to scheduled, so that the power grid task will not be scheduled.
[0065] S150: Perform compliance review on each task resource mapping information according to the compliance knowledge graph.
[0066] The compliance knowledge graph is a subgraph of the power grid task semantic graph, and represents the relationship network between the power grid task and the regulations. The structure is: task type-constraint rule-approval path.
[0067] The construction process of the compliance knowledge graph can be as follows: (1) Task type standardization and classification modeling: abstract and standardize the modeling of power grid tasks, such as "equipment maintenance-live work", "metering device replacement-business type task", etc., to build a task type tree.
[0068] (2) Regulations knowledge extraction: extract compliance information from enterprise safety procedures, operation rules, and internal management systems, and use rule extraction or manual correction to organize it into structured triples.
[0069] (3) Compliance rule mapping modeling: mapping system provisions and task types one by one to form a "task type-must meet the rules" mapping, such as operation personnel must have a certificate, voltage level restriction, and approval responsibility person restriction, etc.
[0070] (4) Approval process path modeling: modeling the task approval path, such as: "submitter→team leader approval→operation and maintenance responsible person approval→safety review" as a path list.
[0071] (5) Graph fusion and knowledge storage: use a graph database (such as Neo4j) to build a knowledge graph from the above elements, nodes include tasks, rules, and approval nodes, and edges include "requirement", "constraint", and "approval sequence" relationships.
[0072] After the task resource mapping information is generated, the task resource mapping information is matched and rule-inferred based on the compliance knowledge graph, and the compliance of each task resource mapping information is reviewed. The steps of performing compliance review on each task resource mapping information according to the compliance knowledge graph can include: taking each task resource mapping information as a review object, performing graph matching on the review object in the compliance knowledge graph to obtain the compliance path corresponding to the review object; using a rule inference engine to verify whether the review object meets all the logical rules of the compliance path; if the review object meets all the logical rules of the compliance path, it is determined that the review object passes the compliance review; if there is no compliance path corresponding to the review object in the compliance knowledge graph, or the review object does not meet any logical rule of the compliance path, it is determined that the review object does not pass the compliance review.
[0073] The generated task resource mapping information can be considered as a whole as the review object; the task resource mapping information as a whole is the task assignment suggestion information, which includes task identification information (such as task ID, task type, associated work order number), task assignment personnel information (such as suggested personnel list, qualification information, and belonging team), time information (such as recommended start and end time, operation window), resource information (such as required tools, vehicles, and auxiliary tools), approval path information (such as suggested approval node sequence and responsible person list), and execution risk prompt (such as special weather, cross operation, and other reminders).
[0074] For the review object, all possible compliance paths in the compliance knowledge graph are retrieved by using graph matching technology. For example, based on the task assignment suggestion information, a task instance subgraph is constructed, and the task instance subgraph is matched with the standard subgraph in the compliance knowledge graph in structure. It can be checked whether the task instance subgraph meets all the specified paths, nodes, and relationships of the standard subgraph. If all the conditions are met, it is determined that the standard subgraph is a compliance path. If one of the conditions is not met (such as a specified path, node, or relationship), it indicates that there is a conflict. For example, the execution personnel node in the task assignment suggestion information does not have the “high-voltage operation qualification”, which cannot meet the requirements of the standard subgraph, and thus the two do not match, indicating that there is a conflict.
[0075] Then, the rule reasoning engine is used to verify whether the review object meets all the logical rules in the compliance path, and finally a determination is made according to the verification result whether the review object passes or fails the compliance review. When the review object fails the compliance review, the conflict details can also be output. For example, the logical rules in the compliance path are used for reasoning verification, assuming that the logical rule is “task type A and personnel without X qualification, then do not allow task assignment”. If the task type in the task assignment suggestion information is B, it indicates that the review object does not meet this logical rule.
[0076] The logical rules in the compliance path include but are not limited to task qualification requirements, operation safety specifications, business approval conditions, operation coordination rules, and legal regulations. Exemplarily, the task qualification requirements are, for example, (1) the execution personnel needs to have the “high-voltage operation” qualification, and (2) the team needs to have the “non-stop operation” special authorization; the operation safety specifications are, for example, (1) high-altitude operation needs to be coordinated by two people, and a full-time guardian is required, and (2) additional lighting approval must be applied for night operation; the business approval conditions are, for example, (1) operation involving substation operation must obtain dispatch approval, and (2) the same day cannot have multiple operations on the same feeder; and the operation coordination rules are, for example, (1) certain types of maintenance tasks need to be synchronized with the delivery of safety tools, and (2) marketing installation tasks need to be linked with construction teams.
[0077] In some embodiments, after determining that the review object fails the compliance review, the method further comprises: determining a conflict type between the review object and the compliance path; determining a handling measure for the to-be-scheduled power grid task related to the review object according to the conflict type, and executing the handling measure.
[0078] The conflict type can be of various types, such as a qualification conflict (the designated person does not have the operation qualification, certificate or authorization required by the task), a safety specification conflict (operation time, operation method, cooperation mechanism, etc. violate the safety operation specification), an approval path conflict (the approval process is incomplete, missing key links, bypassing approval), a resource allocation conflict (tools, vehicles, auxiliary equipment, etc. resources do not match the task or are occupied), a timing logic conflict (the dispatched task and the preceding task, dependent task have time or state conflicts), and an organization coordination conflict (there are task overlaps, cross-operations, unclear responsibilities between multiple organizations / teams).
[0079] The handling measure can include scheduling rollback, resource replacement, process change, etc. Different conflict types require different handling measures. For example, when the conflict type is a qualification conflict, resource replacement is performed; when the conflict type is a safety specification conflict or an approval path conflict, the process is changed; when the conflict type is a timing logic conflict, scheduling rollback is performed. Resource replacement refers to replacing the relevant resource object with other resource objects, and then re-executing steps S130 and the following steps. Regarding the process change, taking the approval path conflict as an example, it can be to analyze the missing approval node, dynamically insert the missing approval node into the approval task to the workflow, and then notify the relevant approver, after the approval is completed, the dispatching can continue. The operation of scheduling rollback can be to locate the preceding task or dependent task of the current to-be-scheduled power grid task, then calculate the earliest start time, and based on moving or splitting the time window of the current to-be-scheduled power grid task.
[0080] S160: Task dispatching is performed according to the task resource mapping information that passes the compliance review.
[0081] For the task resource mapping information that passes the compliance review, the server can generate a task execution path through the original BPM (Business Process Management) platform or internal process engine of the power grid enterprise. The task execution path includes trigger nodes, task distribution, execution receipt, stage acceptance, exception report, achievement archiving, etc., and each node is bound with a timestamp and an executor ID.
[0082] In some embodiments, after task assignment is performed according to the task resource mapping information passed through the compliance review, the method further comprises: collecting multi-dimensional execution records of each power grid task after execution; dynamically adjusting the policy parameters in the second matching degree scoring mechanism through a reinforcement learning reward function based on the multi-dimensional execution records, and / or screening high-quality execution records meeting preset quality requirements from the multi-dimensional execution records of the plurality of power grid tasks, and updating the power grid task semantic graph based on the high-quality execution records.
[0083] The server can continuously collect multi-dimensional execution records associated with each power grid task after execution, which include but are not limited to task completion timeliness, feedback quality, user evaluation, whether to repair, resource response delay, etc. Based on the collected multi-dimensional execution records, the policy parameters (i.e. the values of a, b, g and d) in the second matching degree scoring mechanism can be dynamically adjusted through a reinforcement learning reward function. After the execution of the power grid task, the scheduling effect can be dynamically evaluated according to the multi-dimensional execution records, and the above-mentioned policy parameters can be fine-tuned through a reinforcement learning method, so as to realize the optimization of the task assignment strategy, and thus realize the continuous evolution and intelligent improvement of the scheduling system in the long-term operation.
[0084] In addition, high-quality execution records meeting preset quality requirements (which can include requirements such as data integrity and data accuracy) can be screened from the multi-dimensional execution records of the plurality of power grid tasks, and the high-quality task execution records can be embedded in the power grid task semantic graph to form case nodes and bind with the task type relationship.
[0085] It should be noted that, as for each step included in the power grid task self-matching and dynamic scheduling method based on the large language model and multi-agent collaboration provided in any one of the above embodiments, unless otherwise specified in this document, the execution of these steps does not have strict order restrictions, and these steps can be executed in other orders. Moreover, at least part of these steps can include multiple sub-steps or multiple stages, which do not necessarily be executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages does not necessarily be sequential, but can be alternately executed with at least part of other steps or sub-steps or stages of other steps.
[0086] Based on the same inventive concept, the present application also provides a large language model and multi-agent collaborative power grid task self-matching and dynamic scheduling device. In some embodiments, as shown in Figure 2 The device comprises the following modules: The power grid task construction module 110 is configured to collect task description information, pre-process the task description information, perform semantic analysis and structured modeling on the pre-processed task description information using a power grid fine-tuning large model to obtain initial structured task information, perform semantic calibration on the initial structured task information based on a power grid task semantic graph to obtain standard structured task information, generate a power grid task based on the standard structured task information, and add the power grid task to a task pool. The resource object construction module 120 is configured to collect multi-dimensional resource object information, perform multi-dimensional vector modeling based on the multi-dimensional resource object information to obtain resource objects represented by multi-dimensional vectors, and add the resource objects to a resource pool. The first resource object screening module 130 is configured to calculate a matching degree of each to-be-scheduled power grid task in the task pool and each resource object in the resource pool based on a first matching degree scoring mechanism, and determine a plurality of first candidate resource objects corresponding to each to-be-scheduled power grid task based on the matching degree calculation result. The second resource object screening module 140 is configured to assign a task intelligent agent to each to-be-scheduled power grid task, assign a resource intelligent agent to each first candidate resource object, and make the task intelligent agents and the resource intelligent agents perform collaborative scheduling in a multi-agent reinforcement learning environment to determine a target resource object corresponding to each to-be-scheduled power grid task and generate a plurality of task resource mapping information. The compliance review module 150 is configured to perform compliance review on each piece of task resource mapping information according to a compliance knowledge graph. The task assignment module 160 is configured to perform task assignment according to the task resource mapping information that passes the compliance review.
[0087] In some embodiments, the power grid task semantic graph includes a plurality of standard task nodes; and the power grid task construction module 110 includes: The task node determination sub-module is configured to determine a target task node from the plurality of standard task nodes according to the initial structured task information. The task information matching sub-module is configured to calculate a matching degree between the initial structured task information and node information of the target task node using a graph neural network. The task information acquisition sub-module is configured to acquire the node information of the target task node as the standard structured task information when the matching degree is greater than a preset threshold. The return sub-module is configured to return to the step of performing semantic analysis and structured modeling on the pre-processed task description information using the power grid fine-tuning large model when the matching degree is less than or equal to the preset threshold.
[0088] In some embodiments, the first resource object screening module 130 includes: The embedding sub-module is configured to embed the power grid task into a vector space to obtain a task vector. a multi-dimensional score calculation sub-module configured to calculate a skill matching score, a response capability score, and a success rate score of the task vector and each resource object; a first matching degree calculation sub-module configured to calculate a matching degree of the task vector and each resource object according to the skill matching score, the response capability score, and the success rate score of the task vector and each resource object.
[0089] In some embodiments, the compliance review module 150 includes: a graph matching sub-module configured to map each piece of task resource mapping information as a review object, and perform graph matching on the review object in the compliance knowledge graph to obtain a compliance path corresponding to the review object; a rule reasoning sub-module configured to verify whether the review object satisfies all logical rules of the compliance path using a rule reasoning engine; a review result determination sub-module configured to determine that the review object passes the compliance review if the review object satisfies all logical rules of the compliance path, and determine that the review object fails the compliance review if there is no compliance path corresponding to the review object in the compliance knowledge graph or the review object does not satisfy any logical rule of the compliance path.
[0090] In some embodiments, the device further includes a disposal module. The disposal module is configured to determine a conflict type between the review object and the compliance path after determining that the review object fails the compliance review, determine a disposal measure for a to-be-scheduled power grid task related to the review object according to the conflict type, and execute the disposal measure.
[0091] In some embodiments, the second resource object screening module 140 includes: a scheduling graph construction sub-module configured to construct a scheduling graph; the scheduling nodes in the scheduling graph are the to-be-scheduled power grid tasks and the first candidate resource objects, and the edges between any two scheduling nodes represent one or more relationships between the two scheduling nodes; the one or more relationships include an organizational constraint relationship; a task agent control sub-module configured to control each task agent to determine a target resource agent that needs to be interfaced according to the scheduling graph, and send a task matching request to all target resource agents in parallel; a resource agent control sub-module configured to control each resource agent to perform benefit evaluation based on task information carried in the task matching request after receiving the task matching request, and return response information indicating acceptance of the task or rejection of the task to the task agent that sent the task matching request based on the benefit evaluation result; a resource object screening sub-module configured to determine the second candidate resource object corresponding to each to-be-scheduled power grid task based on the response information of each resource task body; a second matching degree calculation sub-module, configured to calculate a matching degree of each to-be-scheduled power grid task and each second candidate resource object corresponding to the to-be-scheduled power grid task based on a second matching degree scoring mechanism; a target resource object determination sub-module, configured to determine a target resource object corresponding to each to-be-scheduled power grid task according to the matching degree of each to-be-scheduled power grid task and each second candidate resource object corresponding to the to-be-scheduled power grid task.
[0092] In some embodiments, the apparatus further includes: a task execution record collection module, configured to collect a multi-dimensional execution record of each power grid task after execution; and a policy parameter adjustment module, configured to dynamically adjust a policy parameter in the second matching degree scoring mechanism based on the multi-dimensional execution record through a reinforcement learning reward function, and / or a graph updating module, configured to filter high-quality execution records meeting a preset quality requirement from the multi-dimensional execution records of the plurality of power grid tasks, and update the power grid task semantic graph based on the high-quality execution records.
[0093] For specific definitions of the power grid task self-matching and dynamic scheduling apparatus based on the large language model and the multi-agent collaboration, refer to the definitions of the power grid task self-matching and dynamic scheduling method based on the large language model and the multi-agent collaboration in the foregoing, which will not be repeated here. Each module in the power grid task self-matching and dynamic scheduling apparatus based on the large language model and the multi-agent collaboration can be realized by software, hardware, or a combination thereof, in whole or in part. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.
[0094] The present application also provides a computer device. In some embodiments, the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the power grid task self-matching and dynamic scheduling method based on the large language model and the multi-agent collaboration provided in any of the embodiments can be implemented.
[0095] In some embodiments, the internal structure diagram of the computer device can be as shown in Figure 3As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is used to store power grid tasks, resource objects and the like. The specific data stored can also refer to the definition in the above method embodiments. The network interface of the computer device is used to communicate with the external terminal through the network connection. The computer program is executed by the processor to implement a large language model and multi-agent collaborative power grid task self-matching and dynamic scheduling method.
[0096] Those skilled in the art can understand that, Figure 3 The skilled in the art can understand that,
[0097] The computer program is executed by the processor to implement a large language model and multi-agent collaborative power grid task self-matching and dynamic scheduling method.
[0098] In the above embodiments of the present application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned method embodiments can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiments. Any reference to memory, storage, database or other medium used in the embodiments provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0100] The technical features of the above embodiments can be combined in any way. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present disclosure.
[0101] The above embodiments only express several implementation manners of the present application, and the description is specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of the patent protection of the present application should be subject to the appended claims.
Claims
1. A method for self-matching and dynamic scheduling of power grid tasks based on a large language model and multi-agent collaboration, characterized in that: The method comprises: Collecting task description information, preprocessing the task description information, using the power grid fine-tuning large model to perform semantic parsing and structured modeling on the preprocessed task description information to obtain initial structured task information, performing semantic calibration on the initial structured task information based on the power grid task semantic graph to obtain standard structured task information, generating a power grid task based on the standard structured task information, and adding the power grid task to the task pool; Collecting multi-dimensional resource object information, performing multi-dimensional vector modeling based on the multi-dimensional resource object information, obtaining resource objects represented by multi-dimensional vectors, and adding the resource objects to a resource pool; Based on a first matching degree scoring mechanism, calculating a matching degree between each grid task to be scheduled in the task pool and each resource object in the resource pool, and determining a plurality of first candidate resource objects corresponding to each grid task to be scheduled based on the matching degree calculation result; Assigning a task agent to each of the grid tasks to be dispatched, and assigning a resource agent to each of the first candidate resource objects, so that each of the task agents and each of the resource agents are collaboratively dispatched in a multi-agent reinforcement learning environment to determine a target resource object corresponding to each of the grid tasks to be dispatched, and generating a plurality of task-resource mapping information; Conducting compliance review on each piece of task resource mapping information based on the compliance knowledge graph; Task dispatch is performed based on the task resource mapping information that has passed the compliance review.
2. The method according to claim 1, wherein The power grid task semantic graph includes a plurality of standard task nodes; the semantic calibration of the initial structured task information based on the power grid task semantic graph to obtain standard structured task information includes: Determining a target task node from the plurality of standard task nodes according to the initial structured task information; Using a graph neural network to calculate the matching degree between the initial structured task information and the node information of the target task node; When the matching degree is greater than a preset threshold, obtaining the node information of the target task node as standard structured task information; When the matching degree is less than or equal to the preset threshold, the method returns to the step of using the power grid fine-tuning large model to perform semantic parsing and structural modeling on the pre-processed task description information.
3. The method according to claim 1, wherein The calculating the matching degree between each to-be-scheduled power grid task in the task pool and each resource object in the resource pool includes: Embedding the power grid task into a vector space to obtain a task vector; Calculating a skill matching score, a responsiveness score, and a success rate score for the task vector and each of the resource objects; The matching degree between the task vector and each resource object is calculated according to the skill matching score, the response ability score and the success rate score between the task vector and each resource object.
4. The method according to claim 1, wherein The compliance review of each task resource mapping information according to the compliance knowledge graph includes: Taking each piece of task resource mapping information as a review object, performing graph matching in the compliance knowledge graph according to the review object to obtain the compliance path corresponding to the review object; Using a rule inference engine to verify whether the review object satisfies all logical rules of the compliance path; If the review object satisfies all the logical rules of the compliance path, it is determined that the review object has passed the compliance review; If the compliance path corresponding to the review object does not exist in the compliance knowledge graph, or the review object does not meet any of the logical rules of the compliance path, it is determined that the review object has failed the compliance review.
5. The method according to claim 4, wherein After determining that the review object fails the compliance review, the method further includes: Determining the type of conflict between the review object and the compliance path; Determine the disposal measures for the to-be-scheduled power grid tasks related to the review object according to the conflict type, and execute the disposal measures.
6. The method according to claim 1, wherein The step of enabling each of the task agents and each of the resource agents to perform collaborative scheduling in a multi-agent reinforcement learning environment to determine a target resource object corresponding to each of the grid tasks to be scheduled includes: Constructing a scheduling graph; the scheduling nodes in the scheduling graph are each of the grid tasks to be scheduled and each of the first candidate resource objects, and the edge between any two scheduling nodes represents one or more relationships between the two scheduling nodes; the one or more relationships include organizational constraint relationships; Each of the task agents determines the target resource agents to be connected according to the scheduling graph, and sends task matching requests to all target resource agents in parallel; After receiving the task matching request, each resource agent performs a benefit evaluation based on the task information carried in the task matching request, and returns a response message indicating acceptance or rejection of the task to the task agent that sent the task matching request based on the benefit evaluation result; Determine a second candidate resource object corresponding to each of the to-be-scheduled power grid tasks based on the response information of each of the resource task bodies; Calculating the matching degree of each of the to-be-scheduled power grid tasks and each of the corresponding second candidate resource objects based on the second matching degree scoring mechanism; The target resource object corresponding to each of the to-be-scheduled power grid tasks is determined according to the matching degree of each of the to-be-scheduled power grid tasks and each of the second candidate resource objects corresponding thereto.
7. The method according to claim 6, wherein After dispatching tasks according to the task resource mapping information that has passed the compliance review, the method further includes: Collecting multi-dimensional execution records of each of the power grid tasks after execution; Based on the multidimensional execution records, the strategy parameters in the second matching scoring mechanism are dynamically adjusted through a reinforcement learning reward function, and / or, high-quality execution records that meet preset quality requirements are screened from the multidimensional execution records of multiple power grid tasks, and the power grid task semantic map is updated based on the high-quality execution records.
8. A power grid task self-matching and dynamic scheduling device that collaborates with a large language model and multiple intelligent agents, characterized in that: The device comprises: A power grid task construction module is used to collect task description information, preprocess the task description information, perform semantic parsing and structured modeling on the preprocessed task description information using a power grid fine-tuning large model to obtain initial structured task information, perform semantic calibration on the initial structured task information based on a power grid task semantic graph to obtain standard structured task information, generate a power grid task based on the standard structured task information, and add the power grid task to a task pool; A resource object construction module is used to collect multi-dimensional resource object information, perform multi-dimensional vector modeling based on the multi-dimensional resource object information, obtain resource objects represented by multi-dimensional vectors, and add the resource objects to the resource pool; A first resource object screening module is configured to calculate a matching degree between each grid task to be dispatched in the task pool and each resource object in the resource pool based on a first matching degree scoring mechanism, and determine a plurality of first candidate resource objects corresponding to each grid task to be dispatched based on the matching degree calculation result; A second resource object screening module is used to assign a task agent to each of the grid tasks to be scheduled, and to assign a resource agent to each of the first candidate resource objects, so that each of the task agents and each of the resource agents are collaboratively scheduled in a multi-agent reinforcement learning environment to determine the target resource object corresponding to each of the grid tasks to be scheduled, and to generate multiple task-resource mapping information; A compliance review module, configured to conduct a compliance review on each piece of task resource mapping information based on the compliance knowledge graph; The task dispatching module is used to dispatch tasks according to the task resource mapping information that has passed the compliance review.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Power transmission and distribution production task cooperation system and method based on intelligent agent
CN120338452A
Large model scheduling multi-agent power grid fault coping strategy knowledge graph extension method and system
CN120543154A
Cited By
Heterogeneous device connection matching method of ocean multi-domain wireless communication network
CN121397765A
Database encryption method, device and system based on large-model multi-agent cooperation
CN121435261A
Task planning method and device
CN122131733A
A task planning method and apparatus
CN122131733B
Task skill matching method, system and storage medium
CN122364958A