Deep reinforcement learning-based task allocation system and method for multi-AGV system three-dimensional parking lot
Through deep reinforcement learning technology, combined with dynamic multiple attention mechanisms and adaptive coding, it solves the problem of task allocation complexity in multi-AGV three-dimensional parking lots, improves task execution efficiency and load balancing, and adapts to different parking lot environments.
Patent Information
- Application Number
- CN202410899347.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
AI Technical Summary
The existing AGV system is difficult to effectively handle complex task allocation in multi-AGV three-dimensional parking lots, including multi-level space, multi-AGV collaborative operations, real-time dynamic information fusion and insufficient model adaptability, resulting in low task allocation efficiency and accuracy.
A task allocation system based on deep reinforcement learning is adopted, multi-source environmental information is integrated through a dynamic multi-attention mechanism, adaptive RNN sequence encoding and GRU are used to capture the parking space layout and vehicle flow characteristics, and dynamic adaptive noise is introduced in model training , improve the anti-interference ability and generalization ability of the model.
It significantly improves task execution efficiency and AGV load balancing, can better adapt to the task distribution needs in multi-AGV system three-dimensional parking lots of different sizes and types, and ensures that the global average parking and car pickup task execution time is minimized and load balanced.
Smart Images

Figure CN118863404A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of AGV scheduling, and in particular relates to a task allocation system and method based on deep reinforcement learning for a multi-AGV system multi-story parking lot. Background Art
[0002] Generally, in AGV systems, efficient task allocation is required. Examples of such functions include automated container terminals and logistics distribution of manufacturing systems. Existing technologies use mathematical modeling and reinforcement learning algorithms to transform the task allocation problem into a reinforcement learning model, and then train and optimize it to achieve real-time and efficient AGV scheduling. However, these methods are mainly aimed at other specific application scenarios, ignoring the real-time dynamic task information in multi-AGV system parking lots, AGV load balancing, and multiple interference problems in parking lots.
[0003] In a multi-AGV system multi-story parking lot, task allocation is more complex and requires consideration of the following factors: the multi-level nature of the three-dimensional space, the multi-layer structure requires AGVs to select lifting tasks based on the number of parking spaces; the collaborative operation of multiple AGVs requires ensuring coordination between multiple AGVs to avoid conflicts and deadlocks; real-time dynamic information: such as parking space availability, vehicle entry and exit time, etc. have an important impact on task allocation; multiple optimization goals for task allocation, including minimizing the global average parking task execution time, the global average vehicle pickup task execution time, and load balancing.
[0004] However, when performing this function, since the existing methods are usually only applicable to specific scenarios, there are the following problems and cannot meet the needs of multi-AGV system multi-story parking lots: scenario limitations, the existing methods mainly focus on other standardized scenarios and lack research on complex parking lot environments; multi-source information is difficult to fuse and process, and the real-time dynamic information in the multi-story parking lot comes from multiple sensors and monitoring systems, requiring the algorithm to have strong data processing and analysis capabilities; task allocation is not flexible enough, and fixed scheduling rules are difficult to cope with real-time changing task requirements and AGV status, resulting in unreasonable task allocation; real-time dynamic information is not considered enough, and real-time random information such as vehicle entry and exit and parking space occupancy is not adequately processed, affecting the efficiency and accuracy of task allocation; the model is not adaptable enough, lacks generalization and scalability, and is difficult to adapt to different parking lot environments and task types. Summary of the invention
[0005] Based on the above background and the problems existing in the prior art, the present invention provides a task allocation system and method based on deep reinforcement learning for a multi-AGV system multi-story parking lot, which can collect and integrate multi-source environmental information to pay more attention to the complex environment of the parking lot; through the dynamic multiple attention mechanism, the model can pay attention to the global information and gradually focus on key information such as task requirements and AGV status; by using adaptive RNN sequence coding to uniformly encode the input information of parking lots of different sizes, the scalability of the model is increased; GRU is used to capture the spatial layout of the parking lot and the characteristics of vehicle flow, and the dynamic real-time information in the multi-story parking lot is fully considered; and dynamic adaptive multiple noises are introduced in the model training to fully enhance the anti-interference ability of the model; at the same time, considering the comprehensive minimization of the global average parking task execution time, the global average car pickup task execution time and load balancing as the goal, it is more in line with the task allocation in the multi-AGV system multi-story parking lot, and also has a significant effect on the efficiency of the parking system.
[0006] In order to achieve these and other advantages of the present invention, a task allocation system based on deep reinforcement learning for a multi-AGV system three-dimensional parking lot is provided, the system comprising:
[0007] The state processing module is used to obtain the state of the environmental information in the multi-AGV system multi-story parking lot, obtain the weighted state based on the dynamic multi-attention mechanism, and obtain the double-layer space layout and vehicle flow characteristics of the multi-story parking lot after unified coding and feature extraction processing;
[0008] The task allocation module is used to perform automatic traffic flow pattern training in the simulation system based on the state information processed by the state processing module based on the deep reinforcement learning network task allocation model; the task is sent to the simulation system for execution by the AGV and the reward value composed of the global average parking task execution time, the global average car picking task execution time and the AGV load situation of the multi-AGV system multi-story parking lot is calculated, and the noise that changes with the number of training steps is introduced during the training process to train the network; based on the trained network, decision-making tasks are allocated to the AGV for execution.
[0009] Furthermore, the state processing module obtains the environment information as follows:
[0010] Obtaining site information in the parking lot, including: the location of all parking spaces in the parking lot, the number of floors of parking spaces, whether the parking spaces are vacant, whether parking spaces can be parked, whether parking spaces can be walked through, the location division of the parking area, and the location division of the handover area;
[0011] Model the tasks of the multi-AGV system parking lot to obtain task-related information, including: task type, task urgency, task starting point, and task destination;
[0012] The system senses and obtains relevant information of all AGVs in the parking lot, including: the location of the AGV, the type of tasks that the AGV can perform, the current task status of the AGV, the number of tasks that the AGV has performed, and the idle time of the AGV.
[0013] Furthermore, the state with weight is obtained in the state processing module, which is specifically implemented as follows:
[0014] A1. Dynamically select the applicable attention module dimension according to the scale of the parking lot, i.e. the number of AGVs n;
[0015] A2. The state information S is subjected to different linear transformations to obtain the query matrix Q, the key matrix K and the value matrix V respectively;
[0016] A3. Weight the state information S, Q, K, and V through multiple attention mechanisms, and then dynamically adjust the weights of each attention mechanism through weighted fusion to finally obtain a state with weights The specific formula is:
[0017]
[0018] custom_att=S·softmax(row_weights)
[0019] content_att=S·softmax(tanh(Q))
[0020] learnable_att=S·softmax(Q·K T )
[0021]
[0022]
[0023] Among them, softmax() represents the activation function, which is used to calculate the attention score of different attention mechanisms; custom_att is to use a custom attention mechanism based on specific rules row_weights to focus on specific dimensions to obtain weighted states, i represents the AGV number, a m and a n is the environmental information of concern, where a m The larger the weight, the better. n The smaller the weight, the better; content_att is the state where the relevance of input features is learned using the content attention mechanism and the weight change is automatically adjusted; learnable_att is the state where the importance weight of input features is automatically learned using the learnable attention mechanism; dynamic_att is the state obtained using the standard scaled dot product attention mechanism; The final weighted state is obtained by dynamically weighted fusion of the above states. w0, w1, w2, and w3 represent the different weights of the four parts. k is a scaling factor used to prevent the dot product result from being too large or too small and to improve numerical stability.
[0024] Furthermore, the state processing module adaptively adjusts the parameters and number of neurons of the RNN to process the weighted state. A unified code is used to adapt to multi-AGV system parking lots of different sizes. The specific formula is:
[0025]
[0026] Among them, θ is the RNN parameter; N is the neuron parameter; t is the time step; η is used to adjust the RNN parameter; γ is used to adjust the step size of the number of neurons; is the loss function used to measure the predicted value The difference between the true value y, is the gradient of the loss function with respect to the RNN parameter θ; is the gradient of the loss function with respect to the number of neurons N; W h is the weight matrix, applied to the input state with weights U h is the weight matrix applied to the hidden state at the previous time step b h is the bias term; ReLU is the activation function, which calculates the hidden state of each time step by step processing the input
[0027] Furthermore, the uniformly encoded state is extracted through GRU features to capture the spatial layout and vehicle flow characteristics of the multi-AGV system parking lot.
[0028] Furthermore, the training process of the deep reinforcement learning network in the task assignment module is as follows:
[0029] a. Obtain the current state after training from the environmental information obtained from the simulation system of the multi-AGV system three-dimensional parking lot;
[0030] b. The state is transmitted to the Dueling DQN network to generate an action, that is, to decide which AGV will perform the task, and the task is sent to the simulation system for the AGV to perform and calculate the reward value composed of the global average parking task execution time, the global average car-picking task execution time and the AGV load of the multi-AGV system multi-story parking lot;
[0031] c. Pass the reward value to the network and calculate the difference between the actual reward and the expected reward as the objective function of the training model; optimize the model parameters by using the stochastic gradient descent method to finally obtain the trained task allocation model.
[0032] d. Introduce noise that varies with the number of training steps during the training process to enhance the model's ability to resist interference.
[0033] Furthermore, during Dueling DQN network training: the state processed by the state processing module is feature integrated, the state value V(s) and the advantage function A(s,a) are calculated, and the Q(s,a) value is synthesized by the state value V(s) and the advantage function A(s,a) in the Dueling DQN network; the noise generated dynamically and adaptively that changes with the number of training steps is introduced for adjustment. The specific formula is:
[0034] Q′(s,a)=Q(s,a)+∈ DynNoiseFusion
[0035] Among them, ∈ DynNoiseFusion Noise generated for dynamic adaptation.
[0036] Furthermore, the noise dynamically and adaptively generated varies with the number of training steps. The specific formula is:
[0037] σ=σ initial +k·t
[0038] p=p initial +k′·t
[0039] ∈ DynNoiseFusion =σ·∈ gaussian +p·∈ salt&pepper
[0040] Among them, t is the number of training steps in the task allocation module, k and k′ are adjustment coefficients, σ initial 、p initial are the Gaussian and salt and pepper noise intensities at the initial stage of training, ∈ gaussian is Gaussian noise, ∈ salt&pepper is the salt and pepper noise introduced with probability p, ∈ DynNoiseFusion Noise generated for dynamic adaptation.
[0041] On the other hand, the present invention also provides a task allocation method for a task allocation system based on deep reinforcement learning for a multi-AGV system three-dimensional parking lot, the method comprising the following steps:
[0042] (1) Data collection: collect the environmental information of the multi-AGV system parking lot;
[0043] (2) Data preprocessing: The environmental information is weighted by dynamic multiple attention, RNN adaptive unified encoding, and GRU feature extraction to obtain the real-time state after preprocessing;
[0044] (3) Model training: The preprocessed real-time status is passed into the task allocation model to generate corresponding actions, and the tasks are executed in the simulation system. The specified AGV completes the task, and the reward is formed according to the global average parking task execution time, the global average car picking task execution time and the AGV load in the multi-AGV system parking lot after execution. The reward value is fed back to the model, and noise that changes with the number of training steps is introduced to train the model;
[0045] (4) Task allocation: deploying and allocating the trained task allocation model. The task allocation model is deployed and allocated by inputting the real-time status into the trained task allocation model, and deciding which AGV will perform the current task based on the output result of the model.
[0046] Technical effects and advantages of the present invention:
[0047] 1. The present invention proposes a task allocation method based on deep reinforcement learning for a multi-AGV system multi-story parking lot. It collects and integrates multi-source environmental information, pays more attention to the complex environment of a multi-AGV system multi-story parking lot, and uses a dynamic multiple attention mechanism to enable the model to pay attention to global information and gradually focus on key information such as task requirements and AGV status, making it easier to assign tasks to appropriate AGVs, thereby significantly improving task execution efficiency and AGV load balancing.
[0048] 2. The task allocation method proposed in the present invention can use adaptive RNN sequence coding to uniformly encode the input information of parking lots of different sizes, increase the scalability of the model, introduce GRU to capture the spatial layout of parking lots and vehicle flow characteristics, fully consider the dynamic real-time information of multi-story parking lots, and be more suitable for task allocation in multi-story parking lots with multiple AGV systems of different sizes.
[0049] 3. The task allocation method proposed in the present invention introduces dynamic adaptive multi-noise in the process of model training, which fully enhances the anti-interference ability of the model and can maintain good results in variable multi-story parking lots. At the same time, it takes into account the comprehensive minimization of the global average parking task execution time, the global average car-picking task execution time and load balancing as the goal, which plays a significant role in the task execution efficiency of multi-AGV system multi-story parking lots. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 Schematic diagram of the training process of the training task allocation model described in an embodiment of the present invention.
[0051] Figure 2The present invention is a schematic diagram of the overall implementation process of a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot according to an embodiment of the present invention.
[0052] Figure 3 This is a structural schematic diagram of a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot according to an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] like Figure 1 , Figure 2 As shown, in an embodiment of the present invention, a task allocation system based on deep reinforcement learning for a multi-AGV system three-dimensional parking lot is provided, the system comprising a state processing module, a task allocation module and a dynamic adaptive multi-noise module;
[0055] The state processing module is used to obtain the state of the environmental information in the multi-AGV system three-dimensional parking lot;
[0056] The state acquisition module includes a state acquisition submodule, an Attention state weighting submodule, an RNN unified encoding submodule, and a GRU feature extraction submodule;
[0057] The status acquisition submodule collects status through the following modules:
[0058] The parking lot module is used to obtain the site information in the parking lot, including: the location of all parking spaces in the parking lot, the number of parking spaces, whether the parking spaces are vacant, whether the parking spaces can be parked, whether the parking spaces can be walked through, the location division of the parking area, and the location division of the handover area;
[0059] The task module is used to model the tasks of the multi-AGV system parking lot to obtain task-related information, including: task type, task urgency, task starting point, and task destination;
[0060] The AGV module is used to sense and obtain relevant information of all AGVs in the parking lot, including: the location of the AGV, the type of tasks that the AGV can perform, the current task status of the AGV, the number of tasks that the AGV has performed, and the idle time of the AGV.
[0061] The expressions for obtaining the status of the parking module, task module, and AGV module are:
[0062] S t =(Env t ,Task t AGV t )
[0063] Among them, Env t The parking module collects information about the parking lot through radar by environmental perception, including: the location of all parking spaces in the parking lot, the number of parking spaces, whether the parking spaces are vacant, whether parking spaces can be parked, whether parking spaces can be walked through, the location division of the parking area, and the location division of the handover area; Task t The task module obtains task-related information by modeling the tasks of the multi-AGV system parking lot, including: task type, task urgency, task starting point, and task destination; AGV t The AGV module obtains relevant information of all AGVs in the parking lot through AGV perception, including: the location of the AGV, the type of task that the AGV can execute, the current task status of the AGV, the number of tasks that the AGV has executed, and the idle time of the AGV.
[0064] The Attention state weighted submodule is used to obtain a weighted state through a dynamic multiple attention mechanism for each state collected by the state acquisition submodule;
[0065] The specific steps to obtain a state with weights are as follows:
[0066] A1. Dynamically select the applicable attention dimension according to the scale of the parking lot, i.e. the number of AGVs n;
[0067] A2. The state information S is subjected to different linear transformations to obtain the query matrix Q, key matrix K and value matrix V respectively; the specific formula is:
[0068] Q=W Q S
[0069] K=W K S
[0070] V=W V S
[0071] Among them, W Q , W K , W V Represents a linear operation matrix.
[0072] A3. Weight the state information S, Q, K, and V through multiple attention mechanisms, and then dynamically adjust the weights of each attention mechanism through weighted fusion to finally obtain the state information with weights The specific formula is:
[0073]
[0074] custom_att=S·softmax(row_weights)
[0075] content_att=S·softmax(tanh(Q))
[0076] learnable_att=S·softmax(Q·K T )
[0077]
[0078] Among them, softmax() represents the activation function, which is used to calculate the attention score of different attention mechanisms; custom_att is to use a custom attention mechanism based on specific rules row_weights to focus on specific dimensions to obtain weighted states, i represents the AGV number, a m and a n is the environmental information of concern, where a m The larger the weight, the better. n The smaller the weight, the better; content_att is the state where the relevance of input features is learned using the content attention mechanism and the weight change is automatically adjusted; learnable_att is the state where the importance weight of input features is automatically learned using the learnable attention mechanism; dynamic_att is the state obtained using the standard scaled dot product attention mechanism; The final weighted state is obtained by dynamically weighted fusion of the above states. w0, w1, w2, and w3 represent the different weights of the four parts. k is a scaling factor used to prevent the dot product result from being too large or too small and to improve numerical stability. The RNN unified encoding submodule is used to input the state information with weights to adaptively adjust the RNN parameters and the number of neurons to obtain a unified encoded state It is used to adapt to multi-AGV system parking lots of different sizes. The specific formula is:
[0079]
[0080] Among them, θ is the RNN parameter; N is the neuron parameter; t is the time step; η is used to adjust the RNN parameter; γ is used to adjust the step size of the number of neurons; is the loss function used to measure the predicted value The difference between the true value y, is the gradient of the loss function with respect to the RNN parameter θ; is the gradient of the loss function with respect to the number of neurons N; Wh is the weight matrix, applied to the input state with weights U h is the weight matrix applied to the hidden state at the previous time step b h is the bias term; ReLU is the activation function, which calculates the hidden state of each time step by step processing the input The GRU feature extraction submodule is used to extract the uniformly encoded state through GRU feature extraction to capture the unique double-layer space layout and vehicle flow characteristics of the three-dimensional parking lot, and obtain the processed state The specific formula is:
[0081]
[0082] Among them, W z and U z is the weight matrix of the update gate, W r and U r is the weight matrix of the reset gate, W h and U h is the weight matrix of the candidate hidden state, b z , b z , b h They are the update gate, reset gate and bias vector of the candidate hidden state. The weight matrix and bias vector work together to control the flow of information in the GRU unit and the update of the hidden state, thereby achieving efficient modeling of time series data and capturing the unique spatial layout and traffic flow characteristics of the multi-AGV system multi-story parking lot.
[0083] The task allocation module is used to start the automatic traffic flow mode training task allocation model in the simulation system based on the processed state; the training process is:
[0084] A1: The processed state Integrate into o; the specific formula is:
[0085]
[0086] Among them, W fc is the weight matrix of the fully connected layer used for integration, b fc is its bias vector, and o is the output after feature integration;
[0087] A2: Use the output o of feature integration to calculate the state value V(s) of the input task assignment module; the specific formula is:
[0088] V(s)=W V o+b V
[0089] Among them, WV is the weight matrix of the state value function, b V is the bias vector of the state value function;
[0090] A2: Use the output o of feature integration to calculate the advantage function A(s,a); the specific formula is:
[0091] A(s,a)=W A o+b A
[0092] Among them, W A is the weight matrix of the advantage function, b A is the bias vector of the advantage function;
[0093] A3: In the Dueling DQN network of the task assignment module, the Q(s,a) value is synthesized by the state value V(s) and the advantage function A(s,a); the specific formula is:
[0094]
[0095] Among them, |A| is the size of the action space;
[0096] A4: During the Dueling DQN network training process of the task assignment module, the noise generated by the dynamic adaptive multi-noise module is introduced for adjustment; the specific formula is:
[0097] Q′(s,a)=Q(s,a)+∈ DynNoiseFusion
[0098] Among them, ∈ DynNoiseFusion Generate noise that changes with the number of training steps for the dynamic adaptive multi-noise module; the specific formula is:
[0099] σ=σ initial +k·t
[0100] p=p initial +k′·t
[0101] ∈ DynNoiseFusion =σ·∈ gaussian +p·∈ salt&pepper
[0102] Among them, t is the number of training steps generated by the training step feature submodule in the task assignment module, k and k′ are adjustment coefficients, σ initial 、p initial is the lower Gaussian and salt-and-pepper noise intensity at the beginning of training, ∈ gaussian is Gaussian noise, ∈ salt&pepper is the salt and pepper noise introduced with probability p,∈ DynNoiseFusion Noise generated for the Dynamic Adaptive Multi-Noise module;
[0103] A5: Based on the Q' value, select the action that maximizes the Q' value, that is, select the AGV that performs the current task, send the task to the specified AGV in the simulation system, and calculate the global average parking task execution time, global average car pickup task execution time and AGV load conditions of the multi-AGV system multi-story parking lot to form a reward value, and feed the reward value back to the task assignment module Dueling DQN network to calculate the difference between the actual reward and the expected reward as the objective function of the training model. By using the stochastic gradient descent method to optimize the model parameters, the trained task assignment model is finally obtained;
[0104] The present invention deploys the trained task assignment module and the state processing module, that is, the real-time multi-AGV system three-dimensional parking lot environment information is transmitted through the state processing module and the trained task assignment module, and determines which AGV will perform the task according to the output result of the task assignment module.
[0105] Based on the same idea as the deep reinforcement learning-based task allocation system for a multi-AGV system multi-story parking lot in the above-mentioned embodiment, the present invention also provides a deep reinforcement learning-based task allocation method for a multi-AGV system multi-story parking lot. For ease of explanation, the flow chart of the task allocation method based on deep reinforcement learning only shows the parts related to the embodiment of the present invention. Those skilled in the art can understand that the diagram structure does not constitute a limitation on the method steps, and may include more or fewer steps than shown in the diagram, or combine certain steps.
[0106] like Figure 3 As shown, in an embodiment of the present invention, a task allocation method based on deep reinforcement learning for a multi-AGV system three-dimensional parking lot is provided, including processes such as data collection, data preprocessing, model training, task allocation and data storage;
[0107] S1: Data collection, collecting the status of the multi-AGV system parking lot through the parking lot module, task module, and AGV module;
[0108] S2: Data preprocessing: the environmental information is weighted by dynamic multiple attention, RNN adaptive unified encoding, and GRU feature extraction to obtain the real-time state after preprocessing;
[0109] S3: Model training, the pre-processed real-time status is passed into the task allocation model to generate the corresponding action, and the task is executed in the simulation system. The task is completed by the designated AGV. The reward is formed according to the global average parking task execution time, the global average car picking task execution time and the AGV load in the multi-AGV system three-dimensional parking lot after execution, and the reward value is fed back to the model for training;
[0110] S4: Task allocation, deploying and allocating the trained task allocation model. The deployment and allocation of the task allocation model is to input the real-time status into the trained task allocation model, and decide which AGV will perform the current task according to the output result of the model;
[0111] S5: Data storage, storing data information in the entire task allocation process.
[0112] What needs to be specifically explained in this embodiment is that a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot of the present invention corresponds one to one with a task allocation method based on deep reinforcement learning for a multi-AGV system multi-story parking lot of the present invention. The technical features and beneficial effects described in the embodiment of the above-mentioned task allocation method based on deep reinforcement learning for a multi-AGV system multi-story parking lot are all applicable to the embodiment of a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot. For specific contents, please refer to the description in the embodiment of the method of the present invention, which will not be repeated here. This is hereby declared.
[0113] In addition, in the implementation of the deep reinforcement learning-based task assignment system in the above-mentioned embodiment, the logical division of each program module is only an example. In actual applications, the above-mentioned functions can be assigned to different program modules as needed, for example, for the configuration requirements of the corresponding hardware or the convenience of software implementation. That is, the internal structure of the deep reinforcement learning-based task assignment system is divided into different program modules to complete all or part of the functions described above.
[0114] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A task allocation system based on deep reinforcement learning for multi-AGV system parking lot, It is characterized in that The system includes: The state processing module is used to obtain the state of the environmental information in the multi-AGV system multi-story parking lot, obtain the weighted state based on the dynamic multi-attention mechanism, and obtain the double-layer space layout and vehicle flow characteristics of the multi-story parking lot after unified coding and feature extraction processing; The task allocation module is used to perform automatic traffic flow pattern training in the simulation system based on the state information processed by the state processing module based on the deep reinforcement learning network task allocation model; the task is sent to the simulation system for execution by the AGV and the reward value composed of the global average parking task execution time, the global average car picking task execution time and the AGV load situation of the multi-AGV system multi-story parking lot is calculated, and the noise that changes with the number of training steps is introduced during the training process to train the network; based on the trained network, decision-making tasks are allocated to the AGV for execution.
2. According to claim 1, a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot, Features: The specific environmental information obtained in the state processing module is as follows: Obtaining site information in the parking lot, including: the location of all parking spaces in the parking lot, the number of floors of parking spaces, whether the parking spaces are vacant, whether parking spaces can be parked, whether parking spaces can be walked through, the location division of the parking area, and the location division of the handover area; Model the tasks of the multi-AGV system parking lot to obtain task-related information, including: task type, task urgency, task starting point, and task destination; The system senses and obtains relevant information of all AGVs in the parking lot, including: the location of the AGV, the type of tasks that the AGV can perform, the current task status of the AGV, the number of tasks that the AGV has performed, and the idle time of the AGV.
3. According to claim 1, a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot, Features: The state with weight is obtained in the state processing module, and its specific implementation is as follows: A1. Dynamically select the applicable attention module dimension according to the scale of the parking lot, i.e. the number of AGVs n; A2. The state information S is subjected to different linear transformations to obtain the query matrix Q, the key matrix K and the value matrix V respectively; A3. Weight the state information S, Q, K, and V through multiple attention mechanisms, and then dynamically adjust the weights of each attention mechanism through weighted fusion to finally obtain a state with weights The specific formula is: custom_att=S·softmax(row_weights) content_att=S·softmax(tanh(Q)) Among them, softmax() represents the activation function, which is used to calculate the attention score of different attention mechanisms; custom_att is to use a custom attention mechanism based on specific rules row_weights to focus on specific dimensions to obtain weighted states, i represents the AGV number, a m and a n is the environmental information of concern, where a m The larger the weight, the better. n The smaller the weight, the better; content_att is the state where the relevance of input features is learned using the content attention mechanism and the weight change is automatically adjusted; learnable_att is the state where the importance weight of input features is automatically learned using the learnable attention mechanism; dynamic_att is the state obtained using the standard scaled dot product attention mechanism; is the final weighted state obtained by dynamically weighted fusion of the above states, w 0 、w 1 、w 2 、w 3 represents the different weights of the four parts, d k is a scaling factor used to prevent the dot product result from being too large or too small and to improve numerical stability.
4. According to claim 3, a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot, Features: In the state processing module, the parameters and number of neurons of the RNN are adaptively adjusted to process the weighted states. A unified code is used to adapt to multi-AGV system parking lots of different sizes. The specific formula is: Among them, θ is the RNN parameter; N is the neuron parameter; t is the time step; η is used to adjust the RNN parameter; γ is used to adjust the step size of the number of neurons; is the loss function used to measure the predicted value The difference between the true value y, is the gradient of the loss function with respect to the RNN parameter θ; is the gradient of the loss function with respect to the number of neurons N; W h is the weight matrix, applied to the input state with weights U h is the weight matrix applied to the hidden state at the previous time step b h is the bias term; ReLU is the activation function, which calculates the hidden state of each time step by step processing the input 5. According to claim 1, a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot, Features: The uniformly encoded state is extracted through GRU features to capture the spatial layout and traffic flow characteristics of the multi-AGV system parking lot.
6. According to claim 1, a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot, Features: The training process of the deep reinforcement learning network in the task assignment module is as follows: a. Obtain the current state after training from the environmental information obtained from the simulation system of the multi-AGV system three-dimensional parking lot; b. The state is transmitted to the Dueling DQN network to generate an action, that is, to decide which AGV will perform the task, and the task is sent to the simulation system for the AGV to perform and calculate the reward value composed of the global average parking task execution time, the global average car-picking task execution time and the AGV load of the multi-AGV system multi-story parking lot; c. Pass the reward value to the network and calculate the difference between the actual reward and the expected reward as the objective function of the training model; optimize the model parameters by using the stochastic gradient descent method to finally obtain the trained task allocation model. d. Introduce noise that varies with the number of training steps during the training process to enhance the model's ability to resist interference.
7. According to claim 6, a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot, Features: During Dueling DQN network training: the state processed by the state processing module is feature integrated, the state value V(s) and the advantage function A(s,a) are calculated, and the Q(s,a) value is synthesized by the state value V(s) and the advantage function A(s,a) in the Dueling DQN network; the noise generated dynamically and adaptively that changes with the number of training steps is introduced for adjustment. The specific formula is: Q′(s,a)=Q(s,a)+∈ DynNoiseFusion Among them, ∈ DynNoiseFusion Noise generated for dynamic adaptation.
8. According to claim 7, a task allocation system based on deep reinforcement learning for a multi-AGV system multi-story parking lot, Features: The noise generated dynamically and adaptively varies with the number of training steps. The specific formula is: s = s initial +k·t p=p initial +k′·t ∈ DynNoiseFusion =σ·∈ gaussian +p·∈ salt&pepper Among them, t is the number of training steps in the task allocation module, k and k′ are adjustment coefficients, σ initial 、p initial are the Gaussian and salt and pepper noise intensities at the initial stage of training, ∈ gaussian is Gaussian noise, ∈ salt&pepper is the salt and pepper noise introduced with probability p, ∈ DynNoiseFusion Noise generated for dynamic adaptation.
9. A task allocation method for implementing a task allocation system based on deep reinforcement learning for a multi-AGV system three-dimensional parking lot as described in any one of claims 1 to 8, It is characterized in that The method comprises the following steps (1) Data collection: collect the environmental information of the multi-AGV system parking lot; (2) Data preprocessing: The environmental information is weighted by dynamic multiple attention, RNN adaptive unified encoding, and GRU feature extraction to obtain the real-time state after preprocessing; (3) Model training: The preprocessed real-time status is passed into the task allocation model to generate corresponding actions, and the tasks are executed in the simulation system. The specified AGV completes the task, and the reward is formed according to the global average parking task execution time, the global average car picking task execution time and the AGV load in the multi-AGV system parking lot after execution. The reward value is fed back to the model, and noise that changes with the number of training steps is introduced to train the model; (4) Task allocation: deploying and allocating the trained task allocation model. The task allocation model is deployed and allocated by inputting the real-time status into the trained task allocation model, and deciding which AGV will perform the current task based on the output result of the model.
