A multi-agent collaborative task allocation strategy and its implementation method and system
By decomposing multi-agent tasks into subtasks and using the Hungarian algorithm for agent matching, combined with the communication mechanism between agents, the problem of overload of task managers and underutilization of resources in the existing technology is solved, and multi-agent performance is improved. overall efficiency and stability of the system.
Patent Information
- Application Number
- CN202410815102.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-24
AI Technical Summary
When assigning tasks in existing multi-agent systems, the task manager is overloaded and failures may cause the system to stagnate, and the task assignment scheme is not globally optimized, resulting in insufficient resource utilization or low execution efficiency.
By decomposing the multi-agent task into subtasks and evaluating the capabilities of each agent to generate an efficiency index, the Hungarian algorithm is used for subtask-agent matching to ensure that each subtask is executed by the most suitable agent to establish the agent. communication mechanism to dynamically adjust the system.
It effectively avoids the risk of overloading a single agent, improves the resource utilization and execution efficiency of the system, and ensures the dynamic balance and stability of the system.
Smart Images

Figure CN118396337B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of task allocation, and specifically to a multi-agent collaborative task allocation strategy and an implementation method and system thereof. Background Art
[0002] In complex environments, some tasks may be too large for a single agent to complete all tasks effectively. A multi-agent system is needed to decompose the tasks into sub-tasks and assign them to multiple agents. Multi-agent task allocation can take advantage of parallel processing. Different agents can process different sub-tasks at the same time, maximizing their respective advantages and improving the performance of the entire system.
[0003] In the prior art, publication number CN111489049A discloses a method: modeling a multi-agent system, calculating the value of the agent's contribution to each unfinished task, selecting the task with the highest value, and setting it as the task manager. If the task manager can complete the task alone, the task is completed and a message is broadcast; if the task manager cannot complete the task alone, the task is marked as a task to be organized, and the information is broadcast to other agents. The agent that receives the task information responds according to its own status, and the agent confirmed to participate in the task to be organized sends a confirmation message to the task manager. If all confirmed participating agents can complete the task, a message that the task execution plan has been determined is broadcast, otherwise, the task is reallocated. When the task is completed, the agent modifies its own status and broadcasts a message that the task is completed.
[0004] The main problem with the above method is that only the most valuable agent is selected as the task manager in the system. The task manager broadcasts all unfinished tasks to other agents, which overloads the task manager. If the task manager fails, the entire system may stagnate. When the participating agents are confirmed, the task plan will be broadcast. However, this plan is determined by local information and does not take global optimization into consideration, which may lead to insufficient resource utilization or low execution efficiency.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention
[0006] The purpose of the present invention is to provide a multi-agent collaborative task allocation strategy and its implementation method and system to solve the problems raised in the above background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A multi-agent collaborative task allocation strategy and implementation method thereof, the specific steps include:
[0009] Step 1: Decompose the multi-agent task into several sub-tasks, each of which can be independently executed by an agent. When all sub-tasks are completed, the multi-agent task is completed.
[0010] Step 2: Evaluate the capabilities of each agent in the multi-agent system, combine various evaluation indicators, and generate an efficiency index for each agent, which serves as a weight reference for the agent in task allocation and system optimization;
[0011] Step 3: Design the agent functions required to complete different subtasks. According to the system requirements and goals, determine the agent modules required to complete the subtasks. Based on the determined functional modules, generate the agent's behavior strategy.
[0012] Step 4: Use the Hungarian algorithm to assign each subtask to the agent that is most suitable to perform them in the multi-agent system, and maximize the efficiency and performance of the system by finding the best subtask-agent matching solution. In this process, each agent is given a subtask, and each subtask is assigned to an agent;
[0013] Step 5: Establish a communication mechanism between agents so that they can make appropriate decisions based on the information they receive and the system goals, and dynamically adjust the system;
[0014] Step 6: In the final stage of task execution, integrate each agent that has completed the subtask, integrate the output of all agents, and generate the final processing result.
[0015] Furthermore, the subtasks of the multi-agent task decomposition are as follows:
[0016] Input preprocessing task: preprocess the input data and perform denoising, standardization, and normalization operations according to the specific data type; feature extraction task: extract features from the original data; sub-model training task: train each sub-model to improve processing speed; sub-model integration task: integrate the sub-models completed after training; output processing task: decode and integrate the output results.
[0017] Furthermore, the principle for evaluating the ability of each agent and generating the efficiency index is as follows:
[0018] ;
[0019] ;
[0020] in, Indicates resource utilization, Indicates the actual usage of resources. Indicates the total amount of resources. Indicates The efficiency index of an agent, Indicates the amount of tasks completed, Represents the total amount of tasks, Indicates the maximum available amount of resources. Represents the robustness factor of the agent, which is used to measure the fault tolerance of the agent.
[0021] Furthermore, the principles for designing the agent functions required to complete different subtasks are as follows:
[0022] According to different subtasks, set an agent module that matches each subtask, including:
[0023] Input preprocessing task: The input data contains noise, errors or invalid information. The input preprocessing module clarifies and filters the information to remove outliers, noise and incomplete data;
[0024] Feature extraction task: extract data information related to the collaborative task from the original data through the feature extraction module, including the structural information, frequency domain information, and time domain information of the data;
[0025] Sub-model training task: Before training the intelligent agent model, a large amount of data is required to start training. The sub-model training module is responsible for collecting and preprocessing data to ensure the quality and applicability of the data. During the training process, the sub-model training module evaluates the model performance and optimizes the model based on the evaluation results.
[0026] Sub-model integration task: Different sub-modules obtain data from different angles or data sources and generate corresponding outputs. The sub-model integration module integrates multi-source data to generate a comprehensive view of the system as a whole, makes decisions based on the integrated multi-source data, and provides feedback to each sub-module;
[0027] Output processing task: The output processing module accepts system decisions from the sub-model integration module, converts them into executable operations, and communicates and interacts between intelligent agents.
[0028] Furthermore, the principle of using the Hungarian algorithm for task allocation is:
[0029] The decision variables of the Hungarian algorithm are:
[0030] ;
[0031] in, Indicates An intelligent agent, Indicates tasks, represents the decision variable, when , indicating that the The agent executes task, when , indicating that the The agent executes tasks;
[0032] The constraints of the Hungarian algorithm are:
[0033] ;
[0034] in, represents the decision variable, formula ① means that each task can only be performed by one agent, and formula ② means that each agent can only perform one task;
[0035] The objective function that the Hungarian algorithm needs to satisfy is:
[0036] ;
[0037] in, Indicates The agent executes The efficiency of the task, represents the decision variable, It represents the minimum cost required to complete the task when the Hungarian algorithm is most efficient;
[0038] The specific steps of the Hungarian algorithm are: An intelligent agent, The system with subtasks generates a coefficient matrix of the time required for each agent to complete the subtask. The formula for generating the coefficient matrix is:
[0039] ;
[0040] in, represents the coefficient matrix, Indicates The agent executes The efficiency of a task;
[0041] ① Subtract the minimum value in each row and column of the coefficient matrix so that there are 0 elements in each row and column;
[0042] ② Find a row with only one 0 element, mark the 0 element, and delete the other 0 elements in the column; find a column with only one 0 element, mark the 0 element, and delete the other 0 elements in the row;
[0043] ③ If there are unmarked 0 elements and no rows or columns with independent 0 elements are found, start from the row or column with the least remaining 0 elements, compare the number of 0 elements in the row with the number of 0 elements in the corresponding column, mark the 0 elements in the column with the least 0 elements, and cross out the other 0 elements in the row or column;
[0044] Repeat ② and ③ until n 0 elements in different rows and columns are found. At this time, the rows and columns corresponding to the 0 elements are the optimal solutions for the agent to execute subtasks with the highest efficiency. Tasks are assigned according to the agents and subtasks corresponding to the rows and columns. The result of the assignment is the assignment strategy under global considerations.
[0045] Furthermore, the principles for establishing the communication mechanism between agents are:
[0046] Build a communication framework based on KQML, which is divided into content layer, message layer and communication layer;
[0047] Among them, the content layer uses the expression language of the submodule itself to transmit the actual content of the message;
[0048] The communication layer is responsible for encoding the characteristics of the message, which specifically describe the identifiers of the sending and receiving modules;
[0049] When the message layer completes the transmission of a message from one submodule to another, it encapsulates the transmitted message, identifies the protocol used when sending the message, and provides the message sending module with a predicate attached to the message content to enable analysis and correct transmission of the message.
[0050] The present invention further provides a multi-agent collaborative task allocation system, which is used to implement the above-mentioned multi-agent collaborative task allocation strategy and its implementation method, including:
[0051] Task decomposition module: decomposes the multi-agent task into several sub-tasks, each of which can be executed independently by the agent. After all sub-tasks are completed, the multi-agent task is completed;
[0052] Capability evaluation module: evaluates the capabilities of each agent in the multi-agent system, integrates various evaluation indicators, and generates an efficiency index for each agent, which serves as a weight reference for the agent in task allocation and system optimization;
[0053] Functional design module: Design the agent functions required to complete different subtasks. According to the system requirements and goals, determine the agent modules required to complete the subtasks. Based on the determination of the functional modules, generate the agent's behavior strategy.
[0054] Task assignment module: Use the Hungarian algorithm to assign each subtask in the multi-agent system to the agent that is most suitable to perform them, and maximize the efficiency and performance of the system by finding the best subtask-agent matching solution. In this process, each agent is assigned a subtask, and each subtask is assigned to an agent;
[0055] Communication module: establishes a communication mechanism between agents so that they can make appropriate decisions based on the information they receive and the system goals, and dynamically adjust the system;
[0056] Integration module: In the final stage of task execution, each agent that has completed the subtask is integrated together, the output of all agents is integrated, and the final processing result is generated.
[0057] Compared with the prior art, the present invention has the following beneficial effects:
[0058] The present invention decomposes a multi-agent task into multiple subtasks, assigns an agent module to each subtask one by one, and uses the Hungarian algorithm to sequentially assign the agent module with the highest agent efficiency matching degree to each subtask according to the efficiency index of the independent agent; the present invention also constructs a communication framework through KQML to transmit information between agent modules to maintain the dynamic balance of the system. The present invention simultaneously takes into account all agents, and each agent has the same time complexity, so as to avoid system failure caused by an overloaded agent, and traverses all subtasks and agent modules during task matching, so as to avoid waste or excess of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A flowchart of a multi-agent collaborative task allocation strategy and its implementation method according to an embodiment of the present invention;
[0060] Figure 2 This is a system flow chart of the multi-agent collaborative task allocation strategy according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0062] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0063] Example:
[0064] See also Figure 1 , the present invention provides a technical solution:
[0065] A multi-agent collaborative task allocation strategy and implementation method thereof, the specific steps include:
[0066] Step 1: Decompose the multi-agent task into several sub-tasks, each of which can be independently executed by an agent. When all sub-tasks are completed, the multi-agent task is completed.
[0067] In this embodiment, the subtasks of the multi-agent task decomposition are specifically:
[0068] Input preprocessing task: preprocess the input data, including data cleaning, denoising, standardization, normalization, feature scaling and other operations according to the specific data type, to improve the reliability of subsequent tasks; feature extraction task: extract features useful for problem modeling from the original data, and capture the key part of the information after preprocessing; sub-model training task: train each sub-model to improve the processing speed, which can be trained through deep learning algorithms; sub-model integration task: integrate the trained sub-models to improve the performance and generalization ability of the model; output processing task: decode and integrate the output results of the sub-model integration task to meet the needs of the final application; decompose the multi-agent task into the above-mentioned tasks, and then construct different agent modules to handle the above tasks separately.
[0069] Step 2: Evaluate the capabilities of each agent in the multi-agent system, combine various evaluation indicators, and generate an efficiency index for each agent, which serves as a weight reference for the agent in task allocation and system optimization;
[0070] In this embodiment, the principle for evaluating the capability of each agent and generating the efficiency index is as follows:
[0071] ;
[0072] ;
[0073] in, Indicates resource utilization, Indicates the actual usage of resources. Represents the total amount of resources. The greater the proportion of used resources to the total amount of resources, the higher the resource utilization rate. A high resource utilization rate means that the agent can use more resources when processing tasks, so the resource utilization rate Efficiency Index is proportional to; Indicates The efficiency index of an agent, Indicates the amount of tasks completed, Represents the total amount of tasks, the amount of tasks completed by the agent Total workload The larger the ratio is, the more tasks are completed and the higher the efficiency of the agent is. Indicates the maximum available amount of resources. The robustness factor of the intelligent agent is the agent's own attribute and is used to measure the agent's fault tolerance. The stronger the agent's fault tolerance, the smoother the handling of abnormal situations when processing tasks, and the higher the efficiency index.
[0074] Step 3: Design the agent functions required to complete different subtasks. According to the system requirements and goals, determine the agent modules required to complete the subtasks. Based on the determined functional modules, generate the agent's behavior strategy.
[0075] In this embodiment, the principles for designing the agent functions required to complete different subtasks are as follows:
[0076] According to different subtasks, set an agent module that matches each subtask, including:
[0077] Input preprocessing task: The input data contains noise, errors or invalid information. The input preprocessing module clarifies and filters the information to remove outliers, noise and incomplete data;
[0078] Feature extraction task: extract data information related to the collaborative task from the original data through the feature extraction module, including the structural information, frequency domain information, and time domain information of the data;
[0079] Sub-model training task: Before training the intelligent agent model, a large amount of data is required to start training. The sub-model training module is responsible for collecting and preprocessing data to ensure the quality and applicability of the data. During the training process, the sub-model training module evaluates the model performance and optimizes the model based on the evaluation results.
[0080] Sub-model integration task: Different sub-modules obtain data from different angles or data sources and generate corresponding outputs. The sub-model integration module integrates multi-source data to generate a comprehensive view of the system as a whole, makes decisions based on the integrated multi-source data, and provides feedback to each sub-module;
[0081] Output processing task: The output processing module accepts system decisions from the sub-model integration module, converts them into executable operations, and communicates and interacts between intelligent agents.
[0082] Step 4: Use the Hungarian algorithm to assign each subtask to the agent that is most suitable to perform them in the multi-agent system, and maximize the efficiency and performance of the system by finding the best subtask-agent matching solution. In this process, each agent is given a subtask, and each subtask is assigned to an agent;
[0083] In this embodiment, the principle for dividing the multi-agent task is:
[0084] According to the process steps of data processing, subtasks are divided according to the process of data collection, data organization, data description, and data analysis. Specifically, they are divided into input preprocessing tasks, feature extraction tasks, sub-model training tasks, sub-model integration tasks, and output processing tasks. At the same time, the multi-agent is divided into several agent modules whose number is greater than the subtasks. The Hungarian algorithm is used to determine the input preprocessing module, feature extraction module, sub-model training module, sub-model integration module, and output processing module that process the corresponding subtasks respectively;
[0085] In this embodiment, the principle of using the Hungarian algorithm for task allocation is:
[0086] The decision variables of the Hungarian algorithm are:
[0087] ;
[0088] in, Indicates An intelligent agent, Indicates tasks, represents the decision variable, when , indicating that the The agent executes task, when , indicating that the The agent executes tasks;
[0089] The constraints of the Hungarian algorithm are:
[0090] ;
[0091] in, represents the decision variable, formula ① means that each task can only be performed by one agent, and formula ② means that each agent can only perform one task;
[0092] The objective function that the Hungarian algorithm needs to satisfy is:
[0093] ;
[0094] in, Indicates The agent executes The efficiency of the task, represents the decision variable, It represents the minimum cost required to complete the task when the Hungarian algorithm is most efficient;
[0095] The specific steps of the Hungarian algorithm are: An intelligent agent, The system with subtasks generates a coefficient matrix of the time required for each agent to complete the subtask. The formula for generating the coefficient matrix is:
[0096] ;
[0097] in, represents the coefficient matrix, Indicates The agent executes The efficiency of a task;
[0098] ① Subtract the minimum value in each row and column of the coefficient matrix so that there are 0 elements in each row and column;
[0099] ② Find a row with only one 0 element, mark the 0 element, and delete the other 0 elements in the column; find a column with only one 0 element, mark the 0 element, and delete the other 0 elements in the row;
[0100] ③ If there are unmarked 0 elements and no rows or columns with independent 0 elements are found, start from the row or column with the least remaining 0 elements, compare the number of 0 elements in the row with the number of 0 elements in the corresponding column, mark the 0 elements in the column with the least 0 elements, and cross out the other 0 elements in the row or column;
[0101] Repeat ② and ③ until n 0 elements in different rows and columns are found. At this time, the rows and columns corresponding to the 0 elements are the optimal solutions for the agent to execute subtasks with the highest efficiency. Tasks are assigned according to the agents and subtasks corresponding to the rows and columns. The result of the assignment is the assignment strategy under global considerations.
[0102] Step 5: Establish a communication mechanism between agents so that they can make appropriate decisions based on the information they receive and the system goals, and dynamically adjust the system;
[0103] In this embodiment, the principle for establishing the communication mechanism between agents is as follows:
[0104] Build a communication framework based on KQML, which is divided into content layer, message layer and communication layer;
[0105] Among them, the content layer uses the expression language of the submodule itself to transmit the actual content of the message;
[0106] The communication layer is responsible for encoding the characteristics of the message, which specifically describe the identifiers of the sending and receiving modules;
[0107] When the message layer completes the transmission of a message from one submodule to another, it encapsulates the transmitted message, identifies the protocol used when sending the message, and provides the message sending module with a predicate attached to the message content to enable analysis and correct transmission of the message.
[0108] Step 6: In the final stage of task execution, integrate each agent that has completed the subtask, integrate the output of all agents, and generate the final processing result.
[0109] See also Figure 2 The present invention also provides a multi-agent collaborative task allocation system, which is used to implement the above-mentioned multi-agent collaborative task allocation strategy and its implementation method, including:
[0110] Task decomposition module: decomposes the multi-agent task into several sub-tasks, each of which can be executed independently by the agent. After all sub-tasks are completed, the multi-agent task is completed;
[0111] Capability evaluation module: evaluates the capabilities of each agent in the multi-agent system, integrates various evaluation indicators, and generates an efficiency index for each agent, which serves as a weight reference for the agent in task allocation and system optimization;
[0112] Functional design module: Design the agent functions required to complete different subtasks. According to the system requirements and goals, determine the agent modules required to complete the subtasks. Based on the determination of the functional modules, generate the agent's behavior strategy.
[0113] Task assignment module: Use the Hungarian algorithm to assign each subtask in the multi-agent system to the agent that is most suitable to perform them, and maximize the efficiency and performance of the system by finding the best subtask-agent matching solution. In this process, each agent is assigned a subtask, and each subtask is assigned to an agent;
[0114] Communication module: establishes a communication mechanism between agents so that they can make appropriate decisions based on the information they receive and the system goals, and dynamically adjust the system;
[0115] Integration module: In the final stage of task execution, each agent that has completed the subtask is integrated together, the output of all agents is integrated, and the final processing result is generated.
[0116] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0117] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.
[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A multi-agent collaborative task allocation strategy and its implementation method, characterized in that: The specific steps include: Step 1: Decompose the multi-agent task into several sub-tasks, each of which can be independently executed by an agent. When all sub-tasks are completed, the multi-agent task is completed. Step 2: Evaluate the capabilities of each agent in the multi-agent system, combine various evaluation indicators, and generate an efficiency index for each agent, which serves as a weight reference for the agent in task allocation and system optimization; Step 3: Design the agent functions required to complete different subtasks. According to the system requirements and goals, determine the agent modules required to complete the subtasks. Based on the determined functional modules, generate the agent's behavior strategy. Step 4: Use the Hungarian algorithm to assign each subtask to the agent that is most suitable to perform them in the multi-agent system, and maximize the efficiency and performance of the system by finding the best subtask-agent matching solution. In this process, each agent is given a subtask, and each subtask is assigned to an agent; Step 5: Establish a communication mechanism between agents so that they can make appropriate decisions based on the information they receive and the system goals, and dynamically adjust the system; Step 6: At the final stage of task execution, integrate all agents that have completed the subtasks together, integrate the outputs of all agents, and generate the final processing result; The principle for evaluating the ability of each agent and generating the efficiency index is as follows: Among them, β represents resource utilization, R actual Indicates the actual usage of resources, R total Represents the total amount of resources, μ i represents the efficiency index of the ith agent, n represents the amount of tasks completed, m represents the total amount of tasks, and R max represents the maximum available amount of resources, and γ represents the robustness factor of the agent, which is used to measure the fault tolerance of the agent.
2. A multi-agent collaborative task allocation strategy and implementation method thereof according to claim 1, characterized in that: The subtasks of the multi-agent task decomposition in step 1 are specifically: Input preprocessing task: preprocess the input data and perform denoising, standardization, and normalization operations according to the specific data type; feature extraction task: extract features from the original data; sub-model training task: train each sub-model to improve processing speed; sub-model integration task: integrate the sub-models completed after training; output processing task: decode and integrate the output results.
3. A multi-agent collaborative task allocation strategy and implementation method according to claim 1, characterized in that: The principle for designing the agent functions required to complete different subtasks in step 3 is: According to different subtasks, set an agent module that matches each subtask, including: Input preprocessing task: The input data contains noise, errors or invalid information. The input preprocessing module clarifies and filters the information to remove outliers, noise and incomplete data; Feature extraction task: extract data information related to the collaborative task from the original data through the feature extraction module, including the structural information, frequency domain information, and time domain information of the data; Sub-model training task: Before training the intelligent agent model, a large amount of data is required to start training. The sub-model training module is responsible for collecting and preprocessing data to ensure the quality and applicability of the data. During the training process, the sub-model training module evaluates the model performance and optimizes the model based on the evaluation results. Sub-model integration task: Different sub-modules obtain data from different angles or data sources and generate corresponding outputs. The sub-model integration module integrates multi-source data to generate a comprehensive view of the system as a whole, makes decisions based on the integrated multi-source data, and provides feedback to each sub-module; Output processing task: The output processing module accepts system decisions from the sub-model integration module, converts them into executable operations, and communicates and interacts between intelligent agents.
4. A multi-agent collaborative task allocation strategy and implementation method thereof according to claim 1, characterized in that: The principle of using the Hungarian algorithm to allocate tasks in step 4 is: The decision variables of the Hungarian algorithm are: Among them, i represents the i-th agent, j represents the j-th task, and x ij represents the decision variable, when x ij = 1, indicating that the i-th agent is assigned to perform the j-th task. ij = 0, it means that the i-th agent is not assigned to perform the j-th task; The constraints of the Hungarian algorithm are: Among them, x ij represents the decision variable, formula ① means that each task can only be performed by one agent, and formula ② means that each agent can only perform one task; The objective function that the Hungarian algorithm needs to satisfy is: Among them, c ij represents the efficiency of the i-th agent in performing the j-th task, x ij represents the decision variable, min(Z) represents the minimum cost required to complete the task when the Hungarian algorithm is most efficient; The specific steps of the Hungarian algorithm are: for a system with i agents and j subtasks, generate a coefficient matrix of the time required for each agent to complete the subtask. The formula for generating the coefficient matrix is: Among them, C represents the coefficient matrix, c ij represents the efficiency of the i-th agent in performing the j-th task; ① Subtract the minimum value in each row and column of the coefficient matrix so that there are 0 elements in each row and column; ② Find a row with only one 0 element, mark the 0 element, and delete the other 0 elements in the column; find a column with only one 0 element, mark the 0 element, and delete the other 0 elements in the row; ③ If there are unmarked 0 elements and no rows or columns with independent 0 elements are found, start from the row or column with the least remaining 0 elements, compare the number of 0 elements in the row with the number of 0 elements in the corresponding column, mark the 0 elements in the column with the least 0 elements, and cross out the other 0 elements in the row or column; Repeat ② and ③ until n 0 elements in different rows and columns are found. At this time, the rows and columns corresponding to the 0 elements are the optimal solutions for the agent to execute subtasks with the highest efficiency. Tasks are assigned according to the agents and subtasks corresponding to the rows and columns. The result of the assignment is the assignment strategy under global considerations.
5. A multi-agent collaborative task allocation strategy and implementation method according to claim 1, characterized in that: The principle for establishing the communication mechanism between agents in step 5 is: Build a communication framework based on KQML, which is divided into content layer, message layer and communication layer; Among them, the content layer uses the expression language of the submodule itself to transmit the actual content of the message; The communication layer is responsible for encoding the characteristics of the message, which specifically describe the identifiers of the sending and receiving modules; When the message layer completes the transmission of a message from one submodule to another, it encapsulates the transmitted message, identifies the protocol used when sending the message, and provides the message sending module with a predicate attached to the message content to enable analysis and correct transmission of the message.
6. A multi-agent collaborative task allocation system, characterized in that: The system is used to implement the multi-agent collaborative task allocation strategy and implementation method thereof as described in any one of claims 1 to 5, comprising: Task decomposition module: decomposes the multi-agent task into several sub-tasks, each of which can be executed independently by the agent. After all sub-tasks are completed, the multi-agent task is completed; Capability evaluation module: evaluates the capabilities of each agent in the multi-agent system, integrates various evaluation indicators, and generates an efficiency index for each agent, which serves as a weight reference for the agent in task allocation and system optimization; Functional design module: Design the agent functions required to complete different subtasks. According to the system requirements and goals, determine the agent modules required to complete the subtasks. Based on the determination of the functional modules, generate the agent's behavior strategy. Task assignment module: Use the Hungarian algorithm to assign each subtask in the multi-agent system to the agent that is most suitable to perform them, and maximize the efficiency and performance of the system by finding the best subtask-agent matching solution. In this process, each agent is assigned a subtask, and each subtask is assigned to an agent; Communication module: establishes a communication mechanism between agents so that they can make appropriate decisions based on the information they receive and the system goals, and dynamically adjust the system; Integration module: In the final stage of task execution, each agent that has completed the subtask is integrated together, the output of all agents is integrated, and the final processing result is generated.
