Heterogeneous multi-machine system dynamic task scheduling method based on multi-agent reinforcement learning
Through the method based on multi-agent reinforcement learning, the task is decomposed and the adhesion utility evaluation and Markov decision-making model is established, and the efficiency and robustness of heterogeneous multi-robot system in a dynamic environment is solved, achieving rapid and efficient Task Scheduling.
Patent Information
- Application Number
- CN202411055024.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-02
AI Technical Summary
The prior art is difficult to coordinate heterogeneous multi-robot systems to complete complex tasks while ensuring safety and efficiency, especially in dynamic environments, where traditional task scheduling methods are time-consuming to calculate and are not robust to uncertainty.
A dynamic task scheduling method of heterogeneous multi-machine system based on multi-agent reinforcement learning is adopted. By decomposing the task into an atomic task, a sticky utility evaluation model and a Markov decision-making model are established, and combined with a deep reinforcement learning training solver, dynamic scheduling is realized.
Fast and robustly generate efficient task scheduling solutions to adapt to dynamic environment changes, and improve the efficiency and flexibility of task execution.
Smart Images

Figure CN118885274A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-agent task scheduling, and in particular to a dynamic task scheduling method for a heterogeneous multi-machine system based on multi-agent reinforcement learning. Background Art
[0002] In recent years, with the rapid development of robot technology, the application of robot technology in various industries has become more and more in-depth. In the industrial field, collaborative robots have received widespread attention, and key enterprises have vigorously promoted the intelligent manufacturing model in order to further improve the level of intelligence and production efficiency in the manufacturing industry. In the service field, due to the further integration of mobile robot technology with mobile Internet, big data processing and other technologies, mobile robots have gained the attention of industry leaders; innovative applications are also emerging in the field of special robots, such as post-disaster rescue and complex terrain exploration. However, as the application scenarios of robots become more and more complex, the types and number of tasks to be performed are also increasing. The early single-robot processing method can no longer meet the current needs. The multi-robot system solution is more flexible, scalable and has outstanding collaborative capabilities. Most of the time, heterogeneous robot systems with different functions and different roles have more advantages, but the problem that follows is how to better coordinate different robots to complete more complex overall tasks under the premise of ensuring safety. Therefore, it is crucial to reasonably and efficiently schedule tasks for heterogeneous multi-robot systems.
[0003] The task scheduling problem of heterogeneous multi-robot systems can be reduced to the sub-problem of MRTA (Multi-Robot Task Allocation) extended in the time dimension, which is still an NP-hard problem, that is, when the problem scale becomes larger, it is almost impossible to find an exact solution within a reasonable time. In this regard, the more common solution methods in related research include heuristic algorithms, such as designing heuristic rules based on experience, and assigning tasks based on the earliest completion time or the shortest execution time. This method has a certain adaptability to problems of different scales, but the solution effect is poor. Generally, there will be a large number of idle time windows in robots or processing machines, which will lead to inefficient overall task execution. In addition, there are meta-heuristic algorithms such as genetic algorithms, particle swarm algorithms, ant colony algorithms and their respective variants. The basic idea of these algorithms is to iteratively search in different paradigms in the encoded candidate solution space, and finally obtain the optimal or suboptimal solution. This type of method can generally obtain a good quality solution when the problem scale is not large, but the computational time will increase exponentially with the growth of the problem scale, and it is not robust to the dynamic uncertainty in actual scenarios.
[0004] In most cases, the above studies oversimplify the modeling of actual scenarios, mostly based on the assumption of isomorphism for multi-machine systems, do not explore the complex constraints that actually exist between tasks in depth, and ignore the dynamics and uncertainties that are widely present in actual scenarios. In addition, it is difficult to achieve an ideal level of real-time performance. Therefore, there is a need for a heterogeneous multi-robot task scheduling method that can adapt to dynamic environments and come up with a better solution within a reasonable time. Summary of the invention
[0005] The present invention provides a dynamic task scheduling method for a heterogeneous multi-machine system based on multi-agent reinforcement learning to solve the technical problems mentioned in the background technology.
[0006] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0007] The present invention provides a method for dynamic task scheduling of a heterogeneous multi-machine system based on multi-agent reinforcement learning, which specifically comprises the following steps:
[0008] S1. Input task information, decompose all tasks into multiple atomic tasks with different capability requirements that can be executed by a single robot according to task complexity and constraint relationships, and establish a constraint relationship matrix to describe the complex constraint relationships between tasks;
[0009] S2, input robot information, establish an adhesion utility evaluation model and heterogeneous priority according to the differences in the three dimensions of robot capability, speed and size and the constraint relationship matrix, and further create a mathematical optimization model with maximizing adhesion utility and as the objective function;
[0010] S3, establish a local perception domain model based on the robot characteristics, and establish a Markov decision model based on the sequential decision process of the scheduling decision points;
[0011] S4. Based on the above modeling and deep reinforcement learning paradigm, a heterogeneous multi-machine system scheduling environment is built. In combination with a variety of advanced training strategies, a deep reinforcement learning solver for heterogeneous multi-machine task scheduling is learned in the interaction between the environment and the agent.
[0012] S5. Through the deep reinforcement learning solver, dynamic task changes and robot failures are taken into account, and actions are sequentially output for the scheduling instance at each scheduling decision point to obtain a dynamic scheduling plan.
[0013] Furthermore, the S1 specifically includes the following steps:
[0014] S11, input task information, and classify and decompose the input task information according to task complexity and constraint relationship to obtain multiple atomic tasks;
[0015] S12, establishing a constraint relationship matrix between multiple atomic tasks, the constraint relationship matrix including matrix elements kj and matrix elements jk;
[0016] Among them, the values of matrix element kj and matrix element jk are both 2, which means that there is a hard constraint between atomic task k and atomic task j that "atomic task k and atomic task j must be assigned to the same robot". Hard constraints refer to constraints that must be met;
[0017] The values of the matrix element kj and the matrix element jk are both -2, which means that there is a hard constraint between atomic task k and atomic task j that "atomic task k and atomic task j cannot be assigned to the same robot";
[0018] If the matrix element kj is 1 and the matrix element jk is -1, it means that atomic task k must be completed before atomic task j starts;
[0019] If the values of matrix elements kj and jk are decimals between (0,1) or (-1,0), there is a soft constraint between atomic task k and atomic task j, which means that after atomic task k and atomic task j are assigned to the same robot, the utility will be increased or decreased by a degree of β. Soft constraints indicate constraints that will have a positive or negative impact on the execution of specific atomic tasks when they exist.
[0020] Furthermore, the implementation of S11 is as follows:
[0021] For a composite task composed of multiple independent tasks, it is directly split into independent subtasks. For a complex task with dependencies between subtasks, it is decomposed into subtasks with different constraints according to the dependencies. Regardless of whether it is an independent subtask or a subtask with constraints, it must eventually be decomposed to a granularity that can be executed and completed by a single robot, which is called an atomic task. Through task classification and decomposition, a total of multiple atomic tasks are obtained;
[0022] The basic information of each atomic task is represented by a five-tuple<pos,utility,exe_time,ability_need,state> , where pos represents the location of the atomic task, utility represents the direct utility of completing the atomic task, exe_time represents the execution time required for the robot to complete the atomic task, ability_need represents the ability requirement required to complete the atomic task, and state represents whether the atomic task has been assigned and to which robot it has been assigned.
[0023] Furthermore, the S2 specifically includes the following steps:
[0024] S21. Input robot attributes. The basic information of the robot in the heterogeneous system can be represented by a five-tuple.<cur_pos,left_time,speed,ability,size> , where cur_pos represents the current position of the robot, left_time represents the remaining running time of the robot, speed represents the speed of the robot, ability represents the ability level of the robot to complete the atomic task, and size represents the size of the robot;
[0025] S22. Based on the differences in the three dimensions of robot capability, speed and size and the constraint relationship matrix, an adhesion utility evaluation model is established;
[0026] S23, based on the three heterogeneous attributes of capability, speed and size, and according to the current state of the robot, a dynamic heterogeneous priority list is constructed to obtain heterogeneous priorities;
[0027] S24. Create a mathematical optimization model with maximizing adhesion utility as the objective function.
[0028] Furthermore, the adhesion utility evaluation model in S22 is specifically as follows:
[0029]
[0030] Where U ij represents the direct utility of robot i completing atomic task j, represents the adhesion utility obtained by robot i after completing all assigned atomic tasks; α ij represents the hard constraint satisfaction of atomic task j assigned to robot i; β ij represents the soft constraint satisfaction when assigning atomic task j to robot i; J i Represents the set of all atomic tasks assigned to robot i.
[0031] Furthermore, the mathematical optimization model in S24 is specifically as follows:
[0032] Objective function:
[0033]
[0034] Constraints:
[0035] (1) A single robot can only perform one atomic task at a time;
[0036]
[0037] in, is a binary variable, indicating Whether atomic task j is assigned to robot i at the moment, I represents the set of all robots; J represents the set of all atomic tasks; It means any;
[0038] (2) An atomic task can only be assigned to one robot at a time;
[0039]
[0040] Among them, x ij Refers to the allocation of atomic task j. If atomic task j is assigned to robot i, then x ij is equal to 1, otherwise it is 0;
[0041] (3) The time it takes for the robot to complete all assigned atomic tasks must be less than T ddl ;
[0042]
[0043] Among them, t ij represents the execution time required for robot i to perform atomic task j, represents the time required for the robot to travel to the location of atomic task j, represents the waiting time of the robot at atomic task j, T ddl Indicates the final time of atomic task scheduling;
[0044] (4) The capabilities of the robot must match the capabilities required by the assigned atomic tasks;
[0045]
[0046] Among them, c ij is a binary variable, representing whether the capability of robot i matches the requirements of atomic task j;
[0047] (5) If there are timing constraints between the assigned atomic tasks, the timing constraints must be met;
[0048]
[0049] Among them, δ jk is a binary variable, representing the order constraint between atomic task j and atomic task k; x nk Indicates whether the atomic task k is assigned to robot n; s nk represents the time when robot n starts to execute atomic task k: x mj Indicates whether the atomic task j is assigned to robot m; f mj represents the time point when robot m completes atomic task j; R represents a set of real numbers.
[0050] Furthermore, the S3 specifically includes the following steps:
[0051] S31. Determine the appropriate size of the local perception field LPF through comprehensive evaluation of the robot's speed, capabilities, and remaining resources. The radius of the local perception field LPF is R lpf The calculation formula is:
[0052] R lpf =ω r ×T lim ×speed
[0053] Among them, ω r is the adjustable coefficient, T lim is the maximum value of the robot’s available time, speed is the robot’s speed;
[0054] Then the radius R of the local receptive field LPF is lpf The utility of the visible atomic tasks is evaluated, feasible atomic tasks are screened out, and three indicators of local state information in the state space of Markov modeling are calculated. The three indicators are the attractiveness of the special atomic tasks to the robot in the local perception domain att_s, the attractiveness of the sequential atomic tasks to the robot in the local perception domain att_t, and the attractiveness of the closest atomic tasks to the robot in the local perception domain att_g;
[0055] At this point, the local perception domain model is obtained;
[0056] S32, and based on the sequential decision-making process of the scheduling decision point, establish a Markov decision model; the Markov decision model includes a state space, an action space, a reward function and a state transition;
[0057] The state space mainly includes three parts: individual state information of the decision-making robot, local state information and global state information. The individual state information of the decision-making robot comes from the robot attributes; the local state information includes the atomic task information most relevant to the robot;
[0058] The action space includes two types of heuristic rules, namely priority rules and exploration rules. Both act on the available atomic tasks in the local perception domain. Priority rules focus more on obtaining short-term utility; exploration rules are compound actions that focus more on obtaining long-term potential utility and may not necessarily obtain specific atomic tasks that match the rule; priority rules refer to three priority actions, namely: 1. Select the nearest idle task that meets the capacity constraint; 2. Select the nearest idle task with special capacity requirements; 3. Select the idle task with the highest priority that meets the timing constraint;
[0059] The structure of the reward function has three main parts: the basic reward for effective actions, additional encouragement when different actions are effective, and penalties when different actions fail;
[0060] State transfer means that every time a time step reaches a scheduling decision point, a state transfer will be triggered. According to the current heterogeneous priority list, the next robot will be selected as the decision-making robot, and the next state will be obtained based on the robot's state and the specific state of the environment. This process continues until the robot's remaining time is used up. At this time, it will exit the priority list and no longer participate in sequential decision-making. When all robots have insufficient remaining running time, they enter the termination state.
[0061] Furthermore, the reward function in S32 is specifically as follows:
[0062]
[0063] Among them, r represents the reward function; u is the utility of the atomic task selected by the action, t used The total time used to complete the atomic task, w1, w2 and w3 respectively represent the Boolean values of the three priority actions in S32, and w represents the Boolean value of whether the exploration action is effective.
[0064] Furthermore, the S4 specifically includes the following steps:
[0065] S41. Build a heterogeneous multi-machine system scheduling environment based on adhesion utility evaluation model, mathematical optimization model, local perception domain model, Markov decision model and deep reinforcement learning paradigm;
[0066] S42, introduce the behavior network and the target network, where the behavior network is used to select actions, and the target network is used to evaluate the Q value of the action. The Q value is the state-action value, which represents the expected value of the long-term cumulative return of taking a specific action in a specific state, and the target value is is the target network's estimate of the Q value; the target value The calculation formula is as follows:
[0067]
[0068] Among them, γ is the discount factor, θ t is the parameter of the t-time walk behavior network, θ - is the parameter of the target network; Q(.) represents the behavior network or the target network; at the target value In the formula, Q(.) in the brackets represents the behavior network, and Q(.) outside the brackets represents the target network; t Represents the reward value of the environment feedback at the tth time step; s t+1 represents the state of the t+1th time step; a t+1represents the action at the t+1th time step;
[0069] The parameter relationship between the behavior network and the target network is agreed upon. The target network that calculates the target Q value only follows the behavior network for soft update through the above parameter relationship. The specific parameter relationship is:
[0070] θ - =λ·θ t +(1-λ)·θ -
[0071] Among them, λ is a fixed value, and λ<<1;
[0072] S43. Using the Dueling DQN training strategy and by changing the internal architecture of the behavior network and the target network, the target network's direct prediction of the Q value is decomposed into the state value and the action advantage value relative to the state value to improve the accuracy of the state-action value evaluation. The behavior network and the target network are further trained in a heterogeneous multi-machine system scheduling environment until the reward curve of the reward function converges, and the trained behavior network and target network are obtained. The trained behavior network and target network are used as deep reinforcement learning solvers.
[0073] Furthermore, the S5 specifically includes the following steps:
[0074] S51, input the state information of the scheduling instance at the initial moment into the deep reinforcement learning solver, the deep reinforcement learning solver outputs the action, determines the specific atomic task allocation according to the heuristic rule corresponding to the action, the atomic task and the robot attributes change accordingly, updates the state, and repeats the above process to obtain a static scheduling solution;
[0075] S52. Determine the information of different scheduling decision points according to the static scheduling plan and the execution status of the atomic tasks at the current moment. If a dynamic event occurs, insert a dynamic scheduling decision point. According to the relevant information of the dynamic scheduling decision point, input the corresponding moment status in order according to the heterogeneous priority, and then call the deep reinforcement learning solver to solve in real time to obtain several candidate solutions. Select the most suitable robot-atomic task allocation among the candidate solutions, update the scheduling plan, and obtain the dynamic scheduling plan.
[0076] Beneficial effects of the present invention:
[0077] The present invention provides a dynamic task scheduling method for a heterogeneous multi-machine system based on multi-agent reinforcement learning. By establishing an adhesion utility evaluation model for complex constraint relationships between tasks and a Markov decision model based on a local perception domain description, a heterogeneous multi-machine system scheduling environment is built. Then, based on the reinforcement learning training paradigm, a double adversarial Q network (i.e., a behavior network and a target network using an adversarial network architecture) is trained to obtain a deep reinforcement learning solver. The scheduling process based on the deep reinforcement learning solver can quickly obtain an efficient scheduling solution for the scheduling problem, and can handle the uncertainty in the task execution process by inserting dynamic scheduling decision points for dynamic events, thereby realizing fast and robust dynamic task scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 is a flow chart of the present invention;
[0079] Figure 2 A schematic diagram of a problem instance generated according to atomic task information in an embodiment of the present invention;
[0080] Figure 3 A schematic diagram of a dynamic heterogeneous priority list generated in an embodiment of the present invention;
[0081] Figure 4 Schematic diagram of coverage of different robot perception domains in an embodiment of the present invention;
[0082] Figure 5 This is a diagram of the overall training framework of multi-agent reinforcement learning combined with multiple training strategies in the present invention;
[0083] Figure 6 Schematic diagram of the execution status of each robot in the embodiment of the present invention;
[0084] Figure 7 It is a specific flow chart of S5 in the present invention. DETAILED DESCRIPTION
[0085] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Preferred embodiments of the present invention are provided in the drawings. However, the present invention can be implemented in many other different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
[0086] Reference Figure 1 The embodiment of the present application provides a method for dynamic task scheduling of a heterogeneous multi-machine system based on multi-agent reinforcement learning, which specifically includes the following steps:
[0087] S1. Input task information, decompose all tasks into multiple atomic tasks with different capability requirements that can be executed by a single robot according to task complexity and constraint relationships, and establish a constraint relationship matrix to describe the complex constraint relationships between tasks;
[0088] S2, input robot information, establish an adhesion utility evaluation model and heterogeneous priority according to the differences in the three dimensions of robot capability, speed and size and the constraint relationship matrix, and further create a mathematical optimization model with maximizing adhesion utility and as the objective function;
[0089] S3, establish a local perception domain model based on the robot characteristics, and establish a Markov decision model based on the sequential decision process of the scheduling decision points;
[0090] S4. Based on the above modeling and deep reinforcement learning paradigm, a heterogeneous multi-machine system scheduling environment is built. In combination with a variety of advanced training strategies, a deep reinforcement learning solver for heterogeneous multi-machine task scheduling is learned in the interaction between the environment and the agent.
[0091] S5. Through the deep reinforcement learning solver, dynamic task changes and robot failures are taken into account, and actions are sequentially output for the scheduling instance at each scheduling decision point to obtain a dynamic scheduling plan.
[0092] In some embodiments, the S1 specifically includes the following steps:
[0093] S11, input task information, and classify and decompose the input task information according to task complexity and constraint relationship to obtain multiple atomic tasks;
[0094] S12, establishing a constraint relationship matrix between multiple atomic tasks, the constraint relationship matrix including matrix elements kj and matrix elements jk;
[0095] Among them, the values of matrix element kj and matrix element jk are both 2, which means that there is a hard constraint between atomic task k and atomic task j that "atomic task k and atomic task j must be assigned to the same robot". Hard constraints refer to constraints that must be met;
[0096] The values of the matrix element kj and the matrix element jk are both -2, which means that there is a hard constraint between atomic task k and atomic task j that "atomic task k and atomic task j cannot be assigned to the same robot";
[0097] If the matrix element kj is 1 and the matrix element jk is -1, it means that atomic task k must be completed before atomic task j starts;
[0098] If the values of matrix elements kj and jk are decimals between (0,1) or (-1,0), there is a soft constraint between atomic task k and atomic task j, which means that after atomic task k and atomic task j are assigned to the same robot, the utility will be increased or decreased by a degree of β. Soft constraints indicate constraints that will have a positive or negative impact on the execution of specific atomic tasks when they exist.
[0099] C represents the constraint relationship matrix that describes the constraints between all atomic tasks. Based on the known atomic task information, problem instances can be generated such as Figure 2 In the figure, black nodes represent warehouses; black arrows represent timing constraints, pointing from predecessor atomic tasks to successor atomic tasks; digital nodes represent atomic tasks, their size represents the utility, and the numbers inside them represent the capacity requirements for completing the atomic tasks.
[0100] In some embodiments, the implementation of S11 is as follows:
[0101] For a composite task composed of multiple independent tasks, it is directly split into independent subtasks. For a complex task with dependencies between subtasks, it is decomposed into subtasks with different constraints according to the dependencies. Regardless of whether it is an independent subtask or a subtask with constraints, it must eventually be decomposed to a granularity that can be executed and completed by a single robot, which is called an atomic task. Through task classification and decomposition, a total of multiple atomic tasks are obtained;
[0102] The basic information of each atomic task is represented by a five-tuple<pos,utility,exe_time,ability_need,state> , where pos represents the location of the atomic task, utility represents the direct utility of completing the atomic task, exe_time represents the execution time required for the robot to complete the atomic task, ability_need represents the ability requirement required to complete the atomic task, and state represents whether the atomic task has been assigned and to which robot it has been assigned.
[0103] In some embodiments, S2 specifically includes the following steps:
[0104] S21. Input robot attributes. The basic information of the robot in the heterogeneous system can be represented by a five-tuple.<cur_pos,left_time,speed,ability,size> , where cur_pos represents the current position of the robot, left_time represents the remaining running time of the robot, speed represents the speed of the robot, ability represents the ability level of the robot to complete the atomic task, and size represents the size of the robot;
[0105] S22. Since the atomic tasks assigned to each robot satisfy different constraints under different allocation schemes, the robot's completion of the atomic task has an impact on the total utility of the system U IJ The contributions of U IJ ≠∑ i∈I ∑ j∈J U ij As shown in the formula, the total system utility is no longer simply equal to the sum of the direct utilities of all robots completing atomic tasks. Therefore, it is necessary to establish an adhesion utility model to reflect the impact of the complex constraint relationship between atomic tasks on the utility obtained by robots completing atomic tasks when different atomic tasks are assigned; the establishment process is as follows:
[0106] According to the differences in the three dimensions of robot capability, speed and size and the constraint relationship matrix, an adhesion utility evaluation model is established;
[0107] S23, based on the three heterogeneous attributes of capability, speed and size, and according to the current state of the robot, a dynamic heterogeneous priority list is constructed to obtain heterogeneous priorities; Figure 3 ,This list provides the basic basis for the decision order for subsequent dynamic scheduling;
[0108] S24. Create a mathematical optimization model with maximizing adhesion utility as the objective function.
[0109] In some embodiments, the adhesion utility evaluation model in S22 is specifically as follows:
[0110]
[0111] In the formula, α ij ∈{0,1},β ij ∈(-1,1), U ij represents the direct utility of robot i completing atomic task j, represents the adhesion utility obtained by robot i after completing all assigned atomic tasks. Its calculation result needs to consider the satisfaction of the hard constraints and soft constraints of the completed atomic tasks at the same time; α ij represents the satisfaction of the hard constraints of atomic task j assigned to robot i, and is 1 if and only if the hard constraints are satisfied; β ij Represents the soft constraint satisfaction when assigning atomic task j to robot i. Its value range is (-1,1). It is 0 if and only if the atomic task is an atomic task with no dependencies. i Represents the set of all atomic tasks assigned to robot i
[0112] In some embodiments, the mathematical optimization model in S24 is specifically as follows:
[0113] Objective function:
[0114]
[0115] Constraints:
[0116] (1) A single robot can only perform one atomic task at a time;
[0117]
[0118] in, is a binary variable, indicating Whether atomic task j is assigned to robot i at the moment, I represents the set of all robots; J represents the set of all atomic tasks; It means any;
[0119] (2) An atomic task can only be assigned to one robot at a time;
[0120]
[0121] Among them, x ij Refers to the allocation of atomic task j. If atomic task j is assigned to robot i, then x ij is equal to 1, otherwise it is 0;
[0122] (3) The time it takes for the robot to complete all assigned atomic tasks must be less than T ddl ;
[0123]
[0124] Among them, t ij represents the execution time required for robot i to perform atomic task j, represents the time required for the robot to travel to the location of atomic task j, represents the waiting time of the robot at atomic task j, T ddl Indicates the final time of atomic task scheduling;
[0125] (4) The capabilities of the robot must match the capabilities required by the assigned atomic tasks;
[0126]
[0127] Among them, c ij is a binary variable, representing whether the capability of robot i matches the requirements of atomic task j;
[0128] (5) If there are timing constraints between the assigned atomic tasks, the timing constraints must be met;
[0129]
[0130] Among them, δ jk is a binary variable, representing the order constraint between atomic task j and atomic task k; x nk Indicates whether the atomic task k is assigned to robot n; s nk represents the time when robot n starts to execute atomic task k: x mj Indicates whether the atomic task j is assigned to robot m; f mj represents the time point when robot m completes atomic task j; R represents a set of real numbers.
[0131] In addition, the present invention relies on the following premises and assumptions:
[0132] 1) All robots are initially in the charging dock area and are fully charged;
[0133] 2) All tasks were not assigned to any robot at the beginning;
[0134] 3) Once the robot starts executing a task, it cannot be interrupted unless a failure occurs.
[0135] In some embodiments, S3 specifically includes the following steps:
[0136] S31. Determine the appropriate size of the local perception field (LPF) by comprehensively evaluating the robot's speed, capabilities, and remaining resources. Evaluate the utility of different types of available atomic tasks within the local perception field (LPF) and calculate their attractiveness as part of the subsequent Markov decision modeling. The radius R of the local perception field (LPF) is lpf The calculation formula is:
[0137] R lpf =ω r ×T lim ×speed
[0138] Among them, ω r is the adjustable coefficient, T lim is the maximum value of the robot's available time, and speed is the robot's speed; Figure 4 ,Different robots have different perception domain coverage;
[0139] Then the radius R of the local receptive field LPF is lpfThe utility of the visible atomic tasks is evaluated, feasible atomic tasks are screened out, and three indicators of local state information in the state space of Markov modeling are calculated. The three indicators are the attractiveness of the special atomic tasks to the robot in the local perception domain att_s, the attractiveness of the sequential atomic tasks to the robot in the local perception domain att_t, and the attractiveness of the closest atomic tasks to the robot in the local perception domain att_g;
[0140] At this point, the local perception domain model is obtained;
[0141] S32, and based on the sequential decision-making process of the scheduling decision point, establish a Markov decision model; the Markov decision model includes a state space, an action space, a reward function and a state transition;
[0142] Among them, only time points that meet the following conditions can be used as scheduling decision points: 1. The initial moment when atomic tasks start to be allocated; 2. The moment when a robot is idle; 3. The moment when a dynamic event occurs; At each scheduling decision point, utility evaluation is performed in sequence according to the order of the current heterogeneous priority list, and atomic tasks are allocated based on the reinforcement learning solver;
[0143] The following octets are available in the state space:
[0144] <(left_time,speed,ability,size),(att_s,att_t,att_g),left_g> means that it mainly includes three parts, namely, individual state information of the decision-making robot, local state information and global state information. The individual state information of the decision-making robot comes from the robot attributes; left_time is the remaining available time of the robot, speed is the speed of the robot, ability is the ability of the robot, and size is the size of the robot; the local state information includes the atomic task information most relevant to the robot; att_s represents the attractiveness of the robot to the special atomic task in the local perception domain, att_t represents the attractiveness of the robot to the sequential atomic task in the local perception domain, and att_g represents the attractiveness of the robot to the closest atomic task in the local perception domain; the global state information will affect the exploration-utilization balance of the robot's decision, and left_g is the proportion of unassigned atomic tasks to all atomic tasks;
[0145] The action space includes two types of heuristic rules, namely priority rules and exploration rules. Both act on the available atomic tasks in the local perception domain. The priority rule focuses more on obtaining short-term utility. The priority rule refers to three priority actions, which are: 1. Select the nearest idle atomic task that meets the capacity constraint; 2. Select the nearest idle atomic task with special capacity requirements; 3. Select the idle atomic task with the highest priority that meets the timing constraint; the exploration rule is a compound action that focuses more on obtaining long-term potential utility, and may not necessarily obtain a specific atomic task that matches the rule; the steps are as follows: first, expand the radius of the local perception domain to the limit radius R_lim, which can be Get the limit LPF, then take the distance from the visible atomic task in the limit LPF to the robot's location as the dynamic radius R_dym, and then take the corresponding visible atomic task as the center and R_dtm as the radius to get the target LPF. According to the limit LPF and the target LPF, we can find the common area to get several candidate exploration areas, and then calculate the number of idle available atomic tasks in all candidate exploration areas (which can be called density), and finally select the nearest available atomic task in the exploration area with the highest density. The design motivation of the action space is to achieve a balance between exploration and utilization of the intelligent agent, so as to better handle the scheduling of atomic tasks in dynamic situations, without falling into short-sighted greed or excessive exploration.
[0146] The structure of the reward function has three main parts: the basic reward for effective actions, additional encouragement when different actions are effective, and penalties when different actions fail;
[0147] State transfer means that every time a time step reaches a scheduling decision point, a state transfer will be triggered. According to the current heterogeneous priority list, the next robot will be selected as the decision-making robot, and the next state will be obtained based on the robot's state and the specific state of the environment. This process continues until the robot's remaining time is used up. At this time, it will exit the priority list and no longer participate in sequential decision-making. When all robots have insufficient remaining running time, they enter the termination state.
[0148] In some embodiments, the reward function in S32 is specifically as follows:
[0149]
[0150] Among them, r represents the reward function; u is the utility of the atomic task selected by the action, t used The total time used to complete the atomic task, w represents the Boolean value of whether the exploration action is effective, and currently it is 1 only when the exploration action is effective; w1, w2 and w3 respectively represent the Boolean values of the three priority actions in S32, and the value is 0 if and only if a priority rule action is selected but no atomic task allocation occurs.
[0151] In some embodiments, reference Figure 5 , the S4 specifically comprises the following steps:
[0152] S41. Build a heterogeneous multi-machine system scheduling environment based on adhesion utility evaluation model, mathematical optimization model, local perception domain model, Markov decision model and deep reinforcement learning paradigm;
[0153] The machine that learns and executes decisions in the heterogeneous multi-machine system scheduling environment is called an agent, and all external things that interact with the agent are called the environment. The specific interaction between the agent and the environment in the heterogeneous multi-machine system scheduling environment is as follows: At each time step t, the agent observes the environment state s t , and select action a based on strategy π t When the environment receives an action, a state transition will occur, and the quality of the selected action will be fed back to the agent as a reward r t , and transfer to the new state s t+1 Through the interaction between the agent and the environment, we can obtain the trajectory from the initial state to the final state (s0, a0, r0, s1, a1, r1, ...);
[0154] S42, introduce the behavior network and the target network. The behavior network and the target network are Q networks with the same initial parameters but different update methods. The behavior network is used to select actions, and the target network is used to evaluate the Q value of actions. The Q value is the state-action value, which represents the expected value of the long-term cumulative return of taking a specific action in a specific state, and the target value is is the target network's estimate of the Q value; the target value The calculation formula is as follows:
[0155]
[0156] Among them, γ is the discount factor, θ t is the parameter of the t-time walk behavior network, θ - is the parameter of the target network; Q(.) represents the behavior network or the target network; at the target value In the formula, Q(.) in the brackets represents the behavior network, and Q(.) outside the brackets represents the target network; t Represents the reward value of the environment feedback at the tth time step; s t+1 represents the state of the t+1th time step; a t+1 represents the action at the t+1th time step;
[0157] The parameter relationship between the behavior network and the target network is agreed upon. The target network that calculates the target Q value only follows the behavior network for soft update through the above parameter relationship. The specific parameter relationship is:
[0158] θ - =λ·θt +(1-λ)·θ -
[0159] Among them, λ is a fixed value, and λ<<1;
[0160] S43. Using the Dueling DQN training strategy and by changing the internal architecture of the behavior network and the target network, the target network's direct prediction of the Q value is decomposed into the state value and the action advantage value relative to the state value to improve the accuracy of the state-action value evaluation. The behavior network and the target network are further trained in a heterogeneous multi-machine system scheduling environment until the reward curve of the reward function converges, that is, the reward curve gradually becomes stable, and the parameter update of the behavior network and the target network is almost stagnant at this stage. The trained behavior network and target network are obtained, and the trained behavior network and target network are used as deep reinforcement learning solvers.
[0161] In some embodiments, S5 specifically includes the following steps:
[0162] S51, input the state information of the scheduling instance at the initial moment into the deep reinforcement learning solver, the deep reinforcement learning solver outputs the action, determines the specific atomic task allocation according to the heuristic rule corresponding to the action, the atomic task and the robot attributes change accordingly, updates the state, and repeats the above process to obtain a static scheduling solution;
[0163] According to the static scheduling scheme, robots execute atomic tasks over time according to their respective atomic task assignments, e.g. Figure 6 As shown, the robot may be in one of the three states of moving, waiting, and executing at different time points. During the entire atomic task execution process, it will determine in real time whether a dynamic event occurs;
[0164] Specifically, the S51 includes the following steps:
[0165] S511, firstly generate a scheduling case according to the atomic task and the robot attributes;
[0166] S512, updating the heterogeneous priority according to the scheduling case; and confirming the decision robot according to the current heterogeneous priority order;
[0167] S513, obtaining a state vector according to the individual, local and global states of the decision-making robot, calling a deep reinforcement learning solver to solve the state vector, and then confirming the atomic task allocation according to the action output by the deep reinforcement learning solver;
[0168] S514, updating the heterogeneous multi-machine system scheduling environment related information according to the above information;
[0169] S515: Determine whether termination is required. If so, output and obtain a static scheduling solution; if not, proceed to S512.
[0170] S52. Determine the information of different scheduling decision points according to the static scheduling plan and the execution status of the atomic tasks at the current moment. If a dynamic event occurs, insert a dynamic scheduling decision point. According to the relevant information of the dynamic scheduling decision point, input the corresponding moment status in order according to the heterogeneous priority, and then call the deep reinforcement learning solver to solve in real time to obtain several candidate solutions. Select the most suitable robot-atomic task allocation among the candidate solutions, update the scheduling plan, and obtain the dynamic scheduling plan.
[0171] Specifically, the S52 specifically includes the following steps:
[0172] S521, the robot executes the atomic task according to the static scheduling plan or the updated scheduling plan;
[0173] S522, during the execution of the atomic task, determine in real time whether there is a dynamic event, if yes, proceed to S523; if no, proceed to S527;
[0174] S523, inserting a dynamic scheduling decision point and confirming the relevant information at that moment;
[0175] S524, updating the heterogeneous priority, confirming the candidate robots, and then obtaining the corresponding state vector according to the candidate robots;
[0176] S525, calling a deep reinforcement learning solver to solve different state vectors of multiple candidate robots to obtain a candidate action set;
[0177] S526, selecting the optimal allocation from the candidate action set;
[0178] S527, updating the scheduling plan;
[0179] S528, determine whether the execution is completed, if yes, then end and output the dynamic scheduling plan, if not, enter S521.
[0180] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered within the protection scope of the present invention. In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present invention.
Claims
1. A dynamic task scheduling method for heterogeneous multi-machine systems based on multi-agent reinforcement learning, characterized in that: The specific steps include: S1. Input task information, decompose all tasks into multiple atomic tasks with different capability requirements that can be executed by a single robot according to task complexity and constraint relationships, and establish a constraint relationship matrix; S2, input robot information, establish an adhesion utility evaluation model and heterogeneous priority according to the differences in the three dimensions of robot capability, speed and size and the constraint relationship matrix, and further create a mathematical optimization model with maximizing adhesion utility and as the objective function; S3, establish a local perception domain model based on the robot characteristics, and establish a Markov decision model based on the sequential decision process of the scheduling decision points; S4. Based on the above modeling and deep reinforcement learning paradigm, a heterogeneous multi-machine system scheduling environment is built. In combination with a variety of advanced training strategies, a deep reinforcement learning solver for heterogeneous multi-machine task scheduling is learned in the interaction between the environment and the agent. S5. Through the deep reinforcement learning solver, dynamic task changes and robot failures are taken into account, and actions are sequentially output for the scheduling instance at each scheduling decision point to obtain a dynamic scheduling plan.
2. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 1, characterized in that: The S1 specifically includes the following steps: S11, input task information, and classify and decompose the input task information according to task complexity and constraint relationship to obtain multiple atomic tasks; S12, establishing a constraint relationship matrix between multiple atomic tasks, the constraint relationship matrix including matrix elements kj and matrix elements jk; Among them, the values of matrix element kj and matrix element jk are both 2, which means that there is a hard constraint between atomic task k and atomic task j that "atomic task k and atomic task j must be assigned to the same robot". Hard constraints refer to constraints that must be met; The values of matrix element kj and matrix element jk are both -2, which means that there is a hard constraint between atomic task k and atomic task j that "atomic task k and atomic task j cannot be assigned to the same robot"; If the matrix element kj is 1 and the matrix element jk is -1, it means that atomic task k must be completed before atomic task j starts; If the values of matrix elements kj and jk are decimals between (0,1) or (-1,0), there is a soft constraint between atomic task k and atomic task j, which means that after atomic task k and atomic task j are assigned to the same robot, the utility will be increased or decreased by a degree of β. Soft constraints indicate constraints that will have a positive or negative impact on the execution of specific atomic tasks when they exist.
3. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 2, characterized in that: The implementation of S11 is as follows: For a composite task composed of multiple independent tasks, it is directly split into independent subtasks. For a complex task with dependencies between subtasks, it is decomposed into subtasks with different constraints according to the dependencies. Regardless of whether it is an independent subtask or a subtask with constraints, it is ultimately decomposed to a granularity that can be executed and completed by a single robot, which is called an atomic task. Through task classification and decomposition, a total of multiple atomic tasks are obtained. The basic information of each atomic task is represented by a five-tuple<pos,utility,exe_time,ability_need,state> , where pos represents the location of the atomic task, utility represents the direct utility of completing the atomic task, exe_time represents the execution time required for the robot to complete the atomic task, ability_need represents the ability requirement required to complete the atomic task, and state represents whether the atomic task has been assigned and to which robot it has been assigned.
4. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 1, characterized in that: The S2 specifically includes the following steps: S21. Input robot attributes. The basic information of the robot in the heterogeneous system can be represented by a five-tuple.<cur_pos,left_time,speed,ability,size> , where cur_pos represents the current position of the robot, left_time represents the remaining running time of the robot, speed represents the speed of the robot, ability represents the ability level of the robot to complete the atomic task, and size represents the size of the robot; S22. Based on the differences in the three dimensions of robot capability, speed and size and the constraint relationship matrix, an adhesion utility evaluation model is established; S23, based on the three heterogeneous attributes of capability, speed and size, and according to the current state of the robot, a dynamic heterogeneous priority list is constructed to obtain heterogeneous priorities; S24. Create a mathematical optimization model with maximizing adhesion utility as the objective function.
5. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 4, characterized in that: The adhesion utility evaluation model in S22 is specifically as follows: Where U ij represents the direct utility of robot i completing atomic task j, represents the adhesion utility obtained by robot i after completing all assigned atomic tasks; α ij represents the hard constraint satisfaction of atomic task j assigned to robot i; β ij represents the soft constraint satisfaction when assigning atomic task j to robot i; J i Represents the set of all atomic tasks assigned to robot i.
6. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 5, characterized in that: The mathematical optimization model in S24 is specifically as follows: Objective function: Constraints: (1) A single robot can only perform one atomic task at a time; in, is a binary variable, indicating Whether atomic task j is assigned to robot i at the moment, I represents the set of all robots; J represents the set of all atomic tasks; It means any; (2) An atomic task can only be assigned to one robot at a time; Among them, x ij Refers to the allocation of atomic task j. If atomic task j is assigned to robot i, then x ij is equal to 1, otherwise it is 0; (3) The time it takes for the robot to complete all assigned atomic tasks must be less than T ddl ; Among them, t ij represents the execution time required for robot i to perform atomic task j, represents the time required for the robot to travel to the location of atomic task j, represents the waiting time of the robot at atomic task j, T ddl Indicates the final time of atomic task scheduling; (4) The capabilities of the robot must match the capabilities required by the assigned atomic tasks; Among them, c ij is a binary variable, representing whether the capability of robot i matches the requirements of atomic task j; (5) If there are timing constraints between the assigned atomic tasks, the timing constraints must be met; Among them, δ jk is a binary variable, representing the order constraint between atomic task j and atomic task k; x nk Indicates whether the atomic task k is assigned to robot n; s nk represents the time when robot n starts to execute atomic task k: x mj Indicates whether the atomic task j is assigned to robot m; f mj represents the time point when robot m completes atomic task j; R represents a set of real numbers.
7. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 1, characterized in that: The S3 specifically includes the following steps: S31. Determine the appropriate size of the local perception field LPF through a comprehensive evaluation of the robot's speed, capabilities, and remaining resources. The radius of the local perception field LPF is R lpf The calculation formula is: R lpf =ω r ×T lim ×speed Among them, ω r is the adjustable coefficient, T lim is the maximum value of the robot’s available time, speed is the robot’s speed; Then the radius R of the local receptive field LPF is lpf The utility of the visible atomic tasks is evaluated, feasible atomic tasks are screened out, and three indicators of local state information in the state space of Markov modeling are calculated. The three indicators are the attractiveness of the special atomic tasks to the robot in the local perception domain att_s, the attractiveness of the sequential atomic tasks to the robot in the local perception domain att_t, and the attractiveness of the closest atomic tasks to the robot in the local perception domain att_g; At this point, the local perception domain model is obtained; S32, and based on the sequential decision-making process of the scheduling decision point, establish a Markov decision model; the Markov decision model includes a state space, an action space, a reward function and a state transition; Among them, the state space mainly includes three parts, namely, the individual state information of the decision-making robot, the local state information and the global state information. The individual state information of the decision-making robot comes from the robot attributes; The action space includes two types of heuristic rules, namely priority rules and exploration rules, both of which act on the available atomic tasks in the local perception domain; the priority rule refers to three priority actions, namely:
1. Select the nearest idle task that meets the capacity constraint; 2. Select the nearest idle task with special capacity requirements; 3. Select the idle task with the highest priority that meets the timing constraint; The structure of the reward function has three main parts: the basic reward for effective actions, additional encouragement when different actions are effective, and penalties when different actions fail; State transfer means that every time a time step reaches a scheduling decision point, a state transfer will be triggered. According to the current heterogeneous priority list, the next robot will be selected as the decision-making robot, and the next state will be obtained based on the robot's state and the specific state of the environment. This process continues until the robot's remaining time is used up. At this time, it will exit the priority list and no longer participate in sequential decision-making. When all robots have insufficient remaining running time, they enter the termination state.
8. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 7, characterized in that: The reward function in S32 is as follows: Among them, r represents the reward function; u is the utility of the atomic task selected by the action, t used The total time used to complete the atomic task, w1, w2 and w3 respectively represent the Boolean values of the three priority actions in S32; w represents the Boolean value of whether the exploration action is effective.
9. The method for dynamic task scheduling of heterogeneous multi-machine systems according to claim 1, characterized in that: The S4 specifically includes the following steps: S41. Build a heterogeneous multi-machine system scheduling environment based on adhesion utility evaluation model, mathematical optimization model, local perception domain model, Markov decision model and deep reinforcement learning paradigm; S42, introduce the behavior network and the target network, where the behavior network is used to select actions, and the target network is used to evaluate the Q value of the action. The Q value is the state-action value, which represents the expected value of the long-term cumulative return of taking a specific action in a specific state, and the target value is is the target network's estimate of the Q value; the target value The calculation formula is as follows: Among them, γ is the discount factor, θ t is the parameter of the t-time walk behavior network, θ - is the parameter of the target network; Q(.) represents the behavior network or the target network; at the target value In the formula, Q(.) in the brackets represents the behavior network, and Q(.) outside the brackets represents the target network; t Represents the reward value of the environment feedback at the tth time step; s t+1 represents the state of the t+1th time step; a t+1 represents the action at the t+1 time step; The parameter relationship between the behavior network and the target network is agreed upon. The target network that calculates the target Q value only follows the behavior network for soft update through the above parameter relationship. The specific parameter relationship is: i - =λ·θ t +(1-λ)·θ - Among them, λ is a fixed value, and λ<<1; S43. Using the Dueling DQN training strategy and by changing the internal architecture of the behavior network and the target network, the target network's direct prediction of the Q value is decomposed into the state value and the action advantage value relative to the state value to improve the accuracy of the state-action value evaluation. The behavior network and the target network are further trained in a heterogeneous multi-machine system scheduling environment until the reward curve of the reward function converges, and the trained behavior network and target network are obtained. The trained behavior network and target network are used as deep reinforcement learning solvers.
10. The method for dynamic task scheduling of a heterogeneous multi-machine system according to any one of claims 1 to 9, characterized in that: The S5 specifically includes the following steps: S51, input the state information of the scheduling instance at the initial moment into the deep reinforcement learning solver, the deep reinforcement learning solver outputs the action, determines the specific atomic task allocation according to the heuristic rule corresponding to the action, the atomic task and the robot attributes change accordingly, updates the state, and repeats the above process to obtain a static scheduling solution; S52. Determine the information of different scheduling decision points according to the static scheduling plan and the execution status of the atomic tasks at the current moment. If a dynamic event occurs, insert a dynamic scheduling decision point. According to the relevant information of the dynamic scheduling decision point, input the corresponding moment status in order according to the heterogeneous priority, and then call the deep reinforcement learning solver to solve in real time to obtain several candidate solutions. Select the most suitable robot-atomic task allocation among the candidate solutions, update the scheduling plan, and obtain the dynamic scheduling plan.
Citation Information
Patent Citations
Intelligent agent training method, cross-domain heterogeneous environment task scheduling method and related device
CN114757352A
Heterogeneous task scheduling method based on hierarchical strategy
CN114915665A
Multi-strategy intelligent scheduling method and device oriented to heterogeneous computing power
CN115237581A
AGV task allocation method based on multi-agent deep reinforcement learning
CN116307464A
Unmanned aerial vehicle scheduling method based on multi-agent reinforcement learning
CN117055619A
Cited By
Charging robot scheduling method and storage medium
CN119443728A
