A complex optimization method for multi-agent task planning

Through the combination of two-way bidding between the agent and the target task and the multi-agent interaction module, the problems of low solution space exploration efficiency and slow solution speed in multi-agent path planning are solved, and efficient task planning in complex environments is achieved, which is suitable for Optimization of many-to-many scenarios.

CN114819316BActive Publication Date: 2024-09-17CHINESE PEOPLES LIBERATION ARMY UNIT 96901
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210401273.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2024-09-17
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

Existing multi-agent path planning algorithms have low solution space exploration efficiency and slow solution speed when faced with complex unstructured environments. It is difficult to balance solution speed and result quality, resulting in limited promotion and application in practical engineering.

Method used

Using Markov decision-making and game theory theory, the target task allocation is achieved through two-way bidding between the agent and the target task, and the multi-agent interaction module is used to reduce the dimension of the global state quantity to build the sharing and information interaction of the agent's historical experience, decomposition Task planning is target task assignment and multi-agent path planning.

Benefits of technology

On the premise of maintaining the validity of information representation, the sample dimension of many-to-many complex task planning problems is reduced, the solution speed and result quality are improved, and a better local optimal solution is obtained, which is suitable for multi-agent tasks in high-dimensional space. planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114819316B
    Figure CN114819316B
Patent Text Reader

Abstract

The present invention belongs to the technical field of agent task planning optimization, and particularly relates to a complex optimization method for multi-agent task planning. The method is implemented based on Markov decision and game theory, and includes multi-objective task allocation and multi-agent path planning; the multi-objective task allocation adopts a two-way bidding strategy, that is, the agent bids for the target task and the target task bids for the agent; the multi-agent interaction module includes a correlation sorting unit and a cyclic interaction unit connected in sequence; the correlation sorting unit is used to perform correlation sorting, and the cyclic interaction unit adopts a cyclic recursive structure to reduce the dimension of the state quantity output by the correlation sorting unit, and obtains interactive information whose data dimension is independent of the number of agents. The present invention can obtain a better local optimal solution in a high-dimensional space of multi-to-multi task planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent agent task planning optimization, and in particular relates to a complex optimization method for multi-agent task planning. Background Art

[0002] Task planning is a necessary and key link for intelligent agents to complete complex tasks. The task planning of intelligent agents mainly includes task allocation, path planning, link usage planning, sensor usage planning, and task planning verification and evaluation.

[0003] Multi-agent path planning is one of the typical applications of multi-agent task planning, that is, a type of problem of finding the optimal path set from the starting position to the target position of multiple agents without conflict. Traditional path planning algorithms such as artificial potential field method and D* method have built path planning solutions for robots, agents, unmanned vehicles and unmanned ships to a certain extent, but these traditional algorithms are mostly focused on solving simple task planning of single goals or static goals in structured or nearly structured constraint scenes. In real scenes, the problems are usually more complicated, and the unstructured field environment is full of various uncertainties. It even requires multi-agent collaboration to complete the scheduled tasks. When the existing task planning technology is directly applied, it is very easy to encounter problems such as low efficiency in solution space exploration, insufficient estimation of dangerous situations, and even partial success of the goal but failure of overall planning.

[0004] The research on multi-agent path planning focuses on the problem-solving method, solution efficiency and solution quality. The solution of task planning problems is usually based on optimization problems. The mainstream methods of optimal multi-agent path planning technology include three categories: A* search, cost growth tree search and conflict-based search. These methods can obtain the global optimal multi-agent path planning with the help of carefully designed optimization algorithms, but usually at the cost of high space and time costs, slow solution speed, high redundancy of high-level search, and high implementation difficulty.

[0005] In recent years, with the rapid development of computing technology, multi-agent path planning has been gradually applied to highly complex real-world scenarios. Many original optimization problems have shown the characteristics of nonlinearity, non-differentiability, large scale, and NP-hardness, which has led to the limitations and shortcomings of the above-mentioned traditional optimal planning methods when facing increasingly complex problems. In particular, the multi-agent solution space grows exponentially with the growth of the state dimension, and the optimal multi-agent path planning has practical value only in a few applications. Therefore, appropriately sacrificing the optimal performance of the multi-agent path planning algorithm in exchange for a significant improvement in the execution efficiency of the algorithm has become a feasible alternative for solving practical engineering problems. Based on this idea, the representative technology consists of search-based and rule-based approximate multi-agent path planning algorithms. These methods are relatively easy to implement, but it is difficult to balance the speed of solution and the quality of the results, which limits their promotion and application in practical engineering.

[0006] In order to solve the above problems, how to reduce the sample dimension of the problem to be optimized while maintaining the effectiveness of information representation is the key to dealing with many-to-many complex task planning problems in real scenarios. Summary of the invention

[0007] In order to solve the problems of high sample space dimension and slow optimization solution speed in the existing many-to-many complex planning problems, the present invention divides multi-agent task planning into target task allocation and multi-agent path planning, adopts two-way bidding between agents and target tasks to realize target task allocation, and adopts multi-agent cyclic interaction units to construct the sharing of agent historical experience and information interaction, so as to complete multi-agent task planning while taking into account both solution speed and result quality.

[0008] In order to achieve the above object, the technical solution of the present invention is:

[0009] A complex optimization method for multi-agent task planning, which is based on Markov decision and game theory, including multi-objective task allocation and multi-agent path planning;

[0010] The multi-objective task allocation adopts a two-way bidding strategy, that is, the agent bids for the target task and the target task bids for the agent;

[0011] The state of all agents is called the global state The multi-agent path planning is to use the multi-agent interaction module to reduce the dimension of the global state quantity, and the state quantity after dimension reduction is determined by action to obtain the optimal action set , which is the optimal path planning result; among them, For the m Agents in t The state quantity at the moment, , the task planning result is to obtain the optimal action ;

[0012] The multi-agent interaction module includes a correlation sorting unit and a cyclic interaction unit connected in sequence; the correlation sorting unit is used to perform correlation sorting, and the cyclic interaction unit uses a cyclic recursive structure to reduce the dimension of the state quantity output by the correlation sorting unit. The output of the cyclic interaction unit is recorded as , and The concatenation of ;

[0013] Any given input and , output , the agent m The expression of the loop recursive structure of the loop interaction unit is:

[0014] (1)

[0015] (2)

[0016] (3)

[0017] in, is the element-wise product, is the sigmoid function, are weight matrices respectively, is the loop interaction unit parameter, i The loop number index of the loop interaction unit.

[0018] The specific steps of multi-objective task allocation include:

[0019] S11: Environmental Modeling

[0020] The environment of the multi-agent task planning is constructed with a digital map to describe the coordinate positions of the elements in the environment. The elements at least include the agent, the target point, and the obstacle. The agent and the target point are abstracted as particles, and the obstacles in the environment are abstracted as geometric areas. Suppose the number of agents is M , the number of target tasks is N ,and M ≥ N ; n Denote as the index of the target task, the total value of the multi-target task allocation P Maximization is a constraint;

[0021] S12: Agent Bidding Target Task

[0022] Select Total Value The biggest planX The optimal task allocation scheme for the agent to bid for the target task, X is a matrix, denoted as the forward allocation scheme;

[0023] (4)

[0024] in, v n It is the target task n The execution income, k mn For the m Agents for target tasks n The matching coefficient, q mn For intelligent agents m Target tasks n The probability of successful completion is in the range of , x mn Representative bidding proposal matrix X The elements of are defined as:

[0025] (5)

[0026] x mn =1, indicating an intelligent agent m Execute target tasks n ; x mn =0, indicating an intelligent agent m Not executing the target task n ;

[0027] S13: Target Task Bidding Agent

[0028] Select Total Value The maximization solution Y The optimal task allocation scheme for the bidding agent for the target task is recorded as the reverse allocation scheme;

[0029] (6)

[0030] in, u m It is an intelligent agent m The execution benefit of the target task, g nm For the n The target task is to m The matching coefficient, q nm For the target task n Using Intelligent Agents m The probability of successful completion, and qnm = q mn , y nm Representative bidding proposal matrix Y The elements of are defined as:

[0031] (7)

[0032] y mn =1, indicating the target task n Select Agent m Execute tasks; y mn =0, indicating the target task n No agent m Execute tasks;

[0033] S14: The plan X and solutions Y The transposed matrix of is compared element by element. If the values ​​of the elements at the corresponding positions are the same, the agent and target task corresponding to the position are taken as the allocation result; if the values ​​of the elements at the corresponding positions are inconsistent, the solution X The inconsistent elements record the corresponding Value, for the solution Y The inconsistent elements record the corresponding Value; the priority of unassigned agents or target tasks is determined by the value of all records. The larger the value, the higher the priority of the corresponding agent and target task assignment result will be adopted until all target tasks are assigned agents.

[0034] The specific steps of multi-agent path planning include:

[0035] S21: Initialization settings

[0036] exist t =0 stage, observe the global state ;set up t The upper limit value of ; traverse all agents and complete the initialization of all agents. The specific method is:

[0037] For the intelligent agent m , using random initialization to randomly generate action strategies Parameters , and set The optimal parameters , randomly generate evaluation strategies Parameters , and set The optimal parameters ; Randomly initialize all parameters of the cyclic interaction unit ;

[0038] S22: Set from m =0 agent, and execute steps S23-S29 one by one;

[0039] S23: Computing multi-agent interaction information

[0040] The global state of the multi-agent The input relevance ranking unit is used for relevance ranking. The output of the relevance ranking unit is m The state quantities of other agents other than the state quantities of the relevance sorting unit are input into the recurrent interaction unit in descending order according to formulas (1)-(3) to obtain the recurrent interaction unit output. ;

[0041] Agent m Each time a task is planned, the parameters of the loop interaction unit are Share with the next agent m +1 recurrent interaction unit, the recurrent interaction unit parameters are updated by sharing, i.e.

[0042] (8)

[0043] In the formula, The value range of is [0.05, 0.5];

[0044] S24: Generate optimal actions

[0045] The optimal action generated based on the action strategy is:

[0046] (9)

[0047] in, is random noise, Indicates that the parameter is Action strategy when

[0048] S25: Evaluate path planning results

[0049] Based on the best action , Agent m Complete a task planning and evaluate the rewards generated by the agent and the target task at this time , and the state it reaches at the next moment ;

[0050] S26: Get the data packet for multi-agent path planning parameter optimization

[0051] storaget Moment To the task planning history database consisting of compact global state, optimal action and reward, a batch of data is extracted from the history database by random sampling to form a multi-agent path planning parameter optimization data package, which contains K Group samples, k is the sample index, , No. k Group Sample Includes the compact global state at a certain moment, the optimal action, the reward, and the compact global state at the next moment;

[0052] S27: According to K The agent is calculated one by one m The expected target value of the total reward

[0053] (10)

[0054] in, Indicates the current optimal action strategy parameters Calculate the optimal action, Represents the expectation of the current reward with the optimal evaluation strategy parameter calculate, , The weight coefficient of the rewards for two consecutive multi-agent path planning;

[0055] S28: Agent m , action strategy , Evaluation strategy and the recurrent interaction unit parameters by minimizing the loss function value L To optimize

[0056] (11)

[0057] in, ;

[0058] The judging strategy parameter Updated to , action strategy Parameters Updated to , Updated to , ;

[0059] S29: Update Agent m Action strategy and judging strategies The optimal model parameters

[0060] (12)

[0061] in, To update the weights, ;

[0062] After all agents complete steps S23-S29, t Within the upper limit range, by continuously repeating S22-S29, the optimal model parameters of the action strategy are gradually optimized, and the final Action Strategy The optimal action is the optimal path planning result.

[0063] Preferably, the specific method of relevance sorting is:

[0064] Agent m With any other agent l The correlation is measured by the distance between its state quantities, using Norm calculation:

[0065] (13)

[0066] in, j Indicates the state , The dimension index of p Generally, 1 or 2 is selected.

[0067] Beneficial effects of the present invention:

[0068] This method decomposes the multi-agent task planning problem into two links: target task allocation and multi-agent path planning. It adopts a two-way bidding scheme in which agents bid for target tasks and target tasks bid for agents. By comparing the two-way bidding schemes, the overall optimal configuration of target task allocation is achieved. By adopting a multi-agent interaction module, a multi-agent state compact representation method for agent information interaction is constructed to obtain interactive information whose data dimension is independent of the number of agents, thereby reducing the computational complexity of task planning in many-to-many scenarios. At the same time, by passing the parameters of the cyclic interaction units of each agent to each other, the equal sharing of historical experience of multiple agents is achieved, so that each agent can obtain performance improvement with the help of experience sharing of other agents under limited observation data. In general, the present invention is more conducive to obtaining better local optimal solutions in high-dimensional spaces of many-to-many task planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 A multi-agent path planning framework;

[0070] Figure 2 Flowchart of this method. DETAILED DESCRIPTION

[0071] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0072] The present invention will be further described below in conjunction with the accompanying drawings.

[0073] The overall task planning framework of the present invention is mainly composed of three modules: a multi-agent module, a target task allocation module and a multi-agent path planning module. The multi-agent module can observe state quantities from the current environment, such as the location information of target points, obstacle areas and the agent itself in the environment, as well as their spatial relationship information. It can also perform specific actions and evaluate the feedback of the environment on the execution of actions, such as using reward values ​​as feedback results. Then, the task allocation module is used to divide the subtasks; after receiving the multi-agent state information and task allocation, the path planning module completes the path planning task of each agent; then each agent executes the results of the planning again, and then a new round of interaction occurs with the environment. Subsequently, the entire framework is continuously updated as the agent and the environment interact repeatedly, and finally each agent obtains a better path planning strategy.

[0074] This method decomposes the multi-agent multi-target task planning problem into two major steps. First, target task allocation is performed to determine the target task that each agent is responsible for, that is, a two-way bidding task allocation strategy is adopted, and two bidding modes are examined: the agent bids for the target task and the target task bids for the agent. The corresponding bidding schemes are compared to complete the task allocation; second, the path planning of each agent is implemented based on the allocation results. Figure 1-2 , the technical solution includes the following steps:

[0075] S11: Environmental Modeling

[0076] Given a problem to be solved, the environment of the multi-agent task planning is constructed with a digital map, describing the coordinate positions of the elements in the environment. The elements at least include the agent, the target point, and the obstacle. The agent and the target point are abstracted as particles, and the obstacles in the environment are abstracted as geometric areas. The total number of target tasks is N , n is the index of the target task, and the number of agents is M , and take M ≥ N . No. m The agent in t The state quantity at the moment is recorded as , the task planning result is to obtain the optimal action The multi-agent task planning is to combine the global state quantity of all agents in the current environment. , make action decisions and get the optimal action set . Set the total revenue of the task assignment P Take the maximum as the constraint.

[0077] S12: Agent Bidding Target Task

[0078] Choose the task that maximizes the total benefit of executing Solution X , X Defined as a matrix, it completes the optimal allocation of the agent's bidding target tasks. v n is the execution benefit of the target task, k mn For the m Agents for target tasks n The matching coefficient of the given bidding scheme X , calculate the total benefit of the agent bidding on the target task:

[0079] (4)

[0080] in, v n It is the target task T n The execution income, k mn For the m Agents for target tasks n The matching coefficient, q mn For intelligent agents m Target tasks n The probability of successful completion is in the range of , x mn Representative bidding proposal matrix X The elements of are defined as:

[0081] (5)

[0082] x mn =1, indicating an intelligent agent m Execute target tasks n ; x mn =0, indicating an intelligent agent m Not executing the target task n ;

[0083] By choosing Take the largest corresponding matrix X , completing the forward bidding process of the intelligent agent bidding target task.

[0084] S13: Target Task Bidding Agent

[0085] Set the target task to select the total reward of the agent Take maximization as the constraint. u m It is an intelligent agent m The execution benefit of the target task, g nm For the n The target task is to m Similarly, the bidding process of the target task for the agent is to maximize the total benefit Scheme selection, given the bidding scheme Y , calculate the total benefit of the target task selection agent as:

[0086] (6)

[0087] in, u m It is an intelligent agent m The execution benefit of the target task, g nm For the n The target task is to m The matching coefficient, q nm For the target task n Using Intelligent Agents m The probability of successful completion, and q nm = q mn , y nm Representative bidding proposal matrix Y The elements of are defined as:

[0088] (7)

[0089] y mn =1, indicating the target task n Select Agent m Execute tasks; y mn =0, indicating the target task n No agent m Execute tasks;

[0090] By choosing Take the largest corresponding matrix Y , completing the reverse bidding process of the target task selection agent.

[0091] S14: The plan X and solutions YThe transposed matrix of is compared element by element. If the values ​​of the elements at the corresponding positions are the same, the agent and target task corresponding to the position are taken as the allocation result; if the values ​​of the elements at the corresponding positions are inconsistent, the solution X The inconsistent elements record the corresponding Value, for the solution Y The inconsistent elements record the corresponding Value; the priority of unassigned agents or target tasks is determined by the value of all records. The larger the value, the higher the priority of the corresponding agent and target task assignment result will be adopted until all target tasks are assigned agents.

[0092] Based on the one-to-one assignment results of multiple agents and target tasks in steps S11-S14, each agent completes the optimal path planning based on its own state quantity and the state quantity of all other agents. t At time , the state quantity of agent m is observed , then based on and the action strategy of agent m Get the best action to perform , and then by executing the optimal action Get the environment to give to the agent m Rewards , and observe the new state after the optimal action is executed, that is, t +1 Moment Agent m The state quantity For the interaction between the agent and the environment, the state quantity and its optimal action The expected value of the total reward obtained is used to judge, and the judging strategy is recorded as By recursion above The process of gradually obtaining action strategies The optimization of the final agent m The path planning is based on the action strategy ,state To predict the best action process.

[0093] Considering that multiple agents have commonalities and there is a cooperation mechanism between them, m The present invention adopts the parameter The loop interaction unit has two input terminals and one output terminal, which are the current information , previous interaction information and current interaction information , where the subscript i Represents the loop count index. The loop recursive structure of this unit is:

[0094] (1)

[0095] (2)

[0096] (3)

[0097] In the formula is the element-wise product of matrices, is the sigmoid function, are weight matrices respectively. , without loss of generality, remember the agent m All parameters of the loop interaction unit are For the agent m , other M -The state quantity of 1 agent circulates through this unit to obtain a compact representation of the state quantity , and The splicing is recorded as an agent m The compact global state .

[0098] The specific implementation steps of multi-agent path planning are:

[0099] S21: Initialization settings for path planning.

[0100] exist t =0 stage, observe the global state ;set up t The upper limit value of ; traverse all agents and complete the initialization of all agents in the following way, that is, for the agent m , using random initialization to randomly generate the parameters of the action strategy , and set The optimal parameters , randomly generate evaluation strategies Parameters , and set The optimal parameters ; Randomly initialize all parameters of the cyclic interaction unit .

[0101] S22: Set from m = 0 agents, and execute the subsequent steps S23-S29 one by one to complete the path planning and update the parameters of the multi-agent path planning module.

[0102] Without loss of generality, we give the following intelligent mThe steps for path planning and updating parameters of the multi-agent path planning module are the same as those for other agents.

[0103] S23: Calculate multi-agent interaction information to obtain a compact global state .

[0104] The multi-agent cooperation of the present invention is accomplished through a multi-agent interaction submodule, which includes a correlation sorting unit and a loop interaction unit. m , the submodule input is the global state quantity , the output is a compact global state that implies the interaction information .

[0105] Agent m The input of the recurrent interaction unit is the agent m The state quantities of other agents other than m Sort in descending order of relevance, l The index for this sort, Then, the most relevant agent state is used to initialize the previous interaction information of the recurrent interaction unit The sorting index is The state quantities of the intelligent agents are sent in order from large to small according to the correlation, and the total number of M -2 iterations of the loop interaction unit. Agent m With any other agent l The correlation is measured by the distance between its state quantities. The correlation is Norm calculation:

[0106] (13)

[0107] In the formula j Indicates the state , The dimension index of p Generally, it is 1 or 2. Each iteration of the loop interaction unit is recursively deduced according to formulas (1)-(3). The loop interaction unit is completed M -After 2 recursions, the output is a compact representation of the state of the agent according to the correlation . Adjustment valve in the loop interaction unit Controls whether to ignore previously weakly correlated agents and focus on the state of the current input agent, so that the module discards irrelevant information and obtains a more compact expression. Adjustment valve Then the current compact representation is controlled to carry how many relatively weakly correlated agent states to help the module establish long-range dependencies among multiple agents. During the task planning process, each time a task planning is completed, the agent passes the loop interaction unit parameters updated by its optimization formula (11) to the loop interaction units of other agents to ensure that each agent quickly optimizes parameters in a parameter sharing manner, thereby improving the performance of multi-agent interaction. The loop interaction unit is shared through parameter transfer between agents, that is, the current agent m The recurrent interaction unit parameters are passed to the next agent m +1:

[0108] (8)

[0109] In the formula, The general value is 0.05~0.5. Reducing its value can suppress data noise, but it also suppresses information interaction between agents.

[0110] The operation method of this step is: first observe the global state of the agent , and then calculate the correlation and sort in descending order using formula (13); then use the cyclic interaction units in descending order according to the correlation, and calculate the compact representation of the state quantity by evaluating formula (1)-formula (3) , and then obtain the compact global state .

[0111] S24: Generate the optimal action of the agent .

[0112] The optimal action generated based on the action strategy is:

[0113] (9)

[0114] in is random noise, and its statistical distribution generally takes the standard normal distribution. Indicates that the parameter is Action strategy when.

[0115] S25: Evaluate the agent’s path planning results.

[0116] Based on the best action , the agent completes a task planning in the environment and evaluates the rewards generated by the agent and the target task at this time , and the new state it reaches .

[0117] S26: Obtain a data packet for parameter optimization of the multi-agent path planning module.

[0118] storage t Moment To the task planning history database consisting of compact global state, optimal action and reward. In order to make the parameter update calculation of steps S27-S29 more reliable, a batch of data is extracted from the history database by replacing the simple random sampling method to form the multi-agent path planning module parameter optimization data package, which contains K Group samples, k is the sample index, , No. k Group Sample It includes the compact global state at a certain moment, the optimal action, the reward, and the compact global state at the next moment.

[0119] S27: According to K Calculate the agent one by one for each group sample m The expected target value of the total reward is:

[0120] (10)

[0121] in, represents the optimal action calculated with the optimal action strategy parameters, Represents the expectation of the current reward with the optimal evaluation strategy parameter calculate, is the weight coefficient of two consecutive multi-agent path planning rewards, , is the weight coefficient of two consecutive multi-agent path planning rewards, The value is usually close to 1 to ensure that the discounted weight of the previous reward is not too small to affect the stability of the iterative results of steps 2.8-2.9.

[0122] S28: Agent m , Action Strategy , Evaluation strategy and the recurrent interaction unit parameters by minimizing the loss function value L To optimize:

[0123] (11)

[0124] in, ;

[0125] The judging strategy parameter Updated to , action strategy Parameters Updated to , Updated to , update step size . The value is generally taken as 0.001~0.2 to ensure the stability of parameters under iteration and better suppress the sample noise that may be introduced by random sampling.

[0126] S29: Agent m Action strategy and judging strategies The optimal parameters are updated as follows:

[0127] (12)

[0128] In the formula, The optimal value is 0.05~0.2 to ensure better suppression of sample noise that may be introduced by random sampling.

[0129] At the same time, the loop interaction unit shares parameters with other agents through equation (8). After all agents complete the above planning, they will continue to repeat steps S22 to S29 to achieve the gradual optimization of the planning scheme. The optimal solution to the multi-agent path planning problem is to use the optimal The action strategy with parameters The optimal action selection.

[0130] The above specific description of the present invention is only used to illustrate the present invention and is not limited to the technical solutions described in the embodiments of the present invention. Those skilled in the art should understand that the present invention can still be modified or replaced by equivalents to achieve the same technical effects; as long as the use requirements are met, they are within the protection scope of the present invention.

Claims

1. A complex optimization method for multi-agent task planning, characterized in that: The multi-agent task planning is implemented based on Markov decision and game theory, including multi-objective task allocation and multi-agent path planning; sub-tasks are divided through the task allocation module; after the path planning module receives the multi-agent state information and task allocation, it completes the path planning task of each agent; then each agent executes the result of the planning, and then a new round of interaction occurs with the environment; The multi-objective task allocation adopts a two-way bidding strategy, that is, the agent bids for the target task and the target task bids for the agent; The state of all agents is called the global state The multi-agent path planning is to use the multi-agent interaction module to reduce the dimension of the global state quantity, and the state quantity after dimension reduction is determined by action to obtain the optimal action set , which is the optimal path planning result; among them, For the m Agents in t The state quantity at the moment, , the task planning result is to obtain the optimal action ; The multi-agent interaction module includes a correlation sorting unit and a cyclic interaction unit connected in sequence; the correlation sorting unit is used to perform correlation sorting, and the cyclic interaction unit uses a cyclic recursive structure to reduce the dimension of the state quantity output by the correlation sorting unit. The output of the cyclic interaction unit is recorded as , and The concatenation of ; Any given input and , output , the agent m The expression of the loop recursive structure of the loop interaction unit is: (1) (2) (3) in, is the element-wise product, is the sigmoid function, are weight matrices respectively, is the loop interaction unit parameter, i is the loop number index of the loop interaction unit; The specific steps of multi-objective task allocation include: S11: Environmental Modeling The environment of the multi-agent task planning is constructed with a digital map to describe the coordinate positions of the elements in the environment. The elements at least include the agent, the target point, and the obstacle. The agent and the target point are abstracted as particles, and the obstacles in the environment are abstracted as geometric areas. Suppose the number of agents is M , the number of target tasks is N ,and M ≥ N ; n Denote as the index of the target task, the total value of the multi-target task allocation P Maximization is a constraint; S12: Agent Bidding Target Task Select Total Value The biggest plan X The optimal task allocation scheme for the agent to bid for the target task, X is a matrix, denoted as the forward allocation scheme; (4) in, v n It is the target task n The execution income, k mn For the m Agents for target tasks n The matching coefficient of q mn For intelligent agents m Target tasks n The probability of successful completion is in the range of [0,1]. x mn Representative bidding proposal matrix X The elements of are defined as: (5) x mn =1, indicating an intelligent agent m Execute target tasks n ; x mn =0, indicating an intelligent agent m Not executing the target task n ; S13: Target Task Bidding Agent Select Total Value The maximization solution Y The optimal task allocation scheme for the bidding agent for the target task is recorded as the reverse allocation scheme; (6) in, u m It is an intelligent agent m The execution benefit of the target task, g nm For the n The target task is to m The matching coefficient of q nm For the target task n Using Intelligent Agents m The probability of successful completion, and q nm = q mn , y nm Representative bidding proposal matrix Y The elements of are defined as: (7) y mn =1, indicating the target task n Select Agent m Execute tasks; y mn =0, indicating the target task n No agent m Execute tasks; S14: The plan X and solutions Y The transposed matrix of is compared element by element. If the values ​​of the elements at the corresponding positions are the same, the agent and target task corresponding to the position are taken as the allocation result; if the values ​​of the elements at the corresponding positions are inconsistent, the solution X The inconsistent elements record the corresponding Value, for the solution Y The inconsistent elements record the corresponding Value; determine the priority of unassigned agents or target tasks according to the value of all records. The larger the value, the higher the priority of the corresponding agent and target task assignment result will be adopted until all target tasks are assigned agents; The specific steps of multi-agent path planning include: S21: Initialization settings exist t =0 stage, observe the global state ;set up t The upper limit value of ; traverse all agents and complete the initialization of all agents. The specific method is: For the intelligent agent m , using random initialization to randomly generate action strategies Parameters , and set The optimal parameters , randomly generate evaluation strategies Parameters , and set The optimal parameters ; Randomly initialize all parameters of the cyclic interaction unit ; S22: Set from m =0 agent, and execute steps S23-S29 one by one; S23: Calculating multi-agent interaction information The global state of the multi-agent The input relevance ranking unit is used for relevance ranking. The output of the relevance ranking unit is m The state quantities of other agents other than the state quantities of the relevance sorting unit are input into the recurrent interaction unit in descending order according to formulas (1)-(3) to obtain the recurrent interaction unit output. ; Agent m Each time a task is planned, the parameters of the loop interaction unit are Share with the next agent m +1 recurrent interaction unit, the recurrent interaction unit parameters are updated by sharing, i.e. (8) In the formula, The value range of is [0.05, 0.5]; S24: Generate optimal actions ; The optimal action generated based on the action strategy is: (9) in, is random noise, Indicates that the parameter is Action strategy when S25: Evaluate path planning results Based on the best action , Agent m Complete a task planning and evaluate the rewards generated by the agent and the target task at this time , and the state it reaches at the next moment ; S26: Get the data packet for multi-agent path planning parameter optimization storage t Moment To the task planning history database consisting of compact global state, optimal action and reward, a batch of data is extracted from the history database by random sampling to form a multi-agent path planning parameter optimization data package, which contains K Group samples, k is the sample index, , No. k Group Sample Includes the compact global state at a certain moment, the optimal action, the reward, and the compact global state at the next moment; S27: According to K The agent is calculated one by one m The expected target value of the total reward (10) in, Indicates the current optimal action strategy parameters Calculate the optimal action, Represents the expectation of the current reward with the optimal evaluation strategy parameter calculate, , The weight coefficient of the rewards for two consecutive multi-agent path planning; S28: Agent m , action strategy , Evaluation strategy and the recurrent interaction unit parameters by minimizing the loss function value L To optimize (11) in, ; The judging strategy parameter Updated to , action strategy Parameters Updated to , Updated to , ; S29: Update Agent m Action strategy and judging strategies The optimal model parameters (12) in, To update the weights, ; After all agents complete steps S23-S29, t Within the upper limit range, by continuously repeating S22-S29, the optimal model parameters of the action strategy are gradually optimized, and the final Action Strategy The optimal action is the optimal path planning result.

2. The method according to claim 1, characterized in that The specific method of relevance sorting is: Agent m With any other agent l The correlation is measured by the distance between its state quantities, using Norm calculation: (13) in, j Indicates the state , The dimension index of p Take 1 or 2.

Citation Information

Patent Citations

  • Task planning method for cooperative ground battle of manned and unmanned aerial vehicles

    CN112733421A

  • Intelligent agent optimal strategy acquisition method and device

    CN113128705A

  • Methods, apparatus and computer programs for automated problem solving in a distributed, collaborative environment

    US20070011281A1