Automated warehouse inbound and outbound scheduling method and device based on Q-Learning algorithm

The automated warehouse inbound and outbound scheduling method designed through the Q-Learning algorithm solves the problems of dependence on detailed information and insufficient flexibility in the existing technology, achieves optimal scheduling based on warehouse status, and improves efficiency and energy consumption management.

CN118536912BActive Publication Date: 2024-10-29HANGZHOU DIANZI UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411000502.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-29
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The existing stacker crane scheduling method in automated three-dimensional warehouses requires obtaining detailed orders or warehousing task information in advance. It lacks flexibility and comprehensive optimization capabilities, and is difficult to cope with environmental changes and rapid adjustments to business needs.

Method used

Adopt an automated warehouse inbound and outbound scheduling method based on the Q-Learning algorithm. By establishing a warehouse shelf model and objective function, design an inbound and outbound allocation model, train and apply the model to determine the target scheduling strategy, and optimize the inbound and outbound strategy based on warehouse status data, including tasks. Sequencing, stacker work strategies and slot allocation rules.

Benefits of technology

It realizes the automatic optimization of inbound and outbound scheduling based on changes in warehouse status, shortens task completion time, reduces the running distance of stackers, reduces equipment energy consumption costs, and improves the efficiency and flexibility of inbound and outbound warehouses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536912B_ABST
    Figure CN118536912B_ABST
Patent Text Reader

Abstract

The present disclosure provides an automated warehouse in-and-out scheduling method and device based on the Q-Learning algorithm, specifically including: firstly, establishing a warehouse shelf model, and establishing a warehouse in-and-out target function according to the total order delay time and the total travel distance of the stacker; then, determining the system status data of the warehouse shelf model according to the warehouse shelf model; and designing a warehouse in-and-out allocation model based on the Q-Learning algorithm according to the warehouse shelf model; then, training the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model; finally, applying it to the automated warehouse, and determining the target in-and-out scheduling strategy of the automated warehouse according to the warehouse status data. The warehouse in-and-out allocation model obtained in the present disclosure can adopt a suitable in-and-out scheduling strategy according to the change of the state of the automated warehouse, which can not only shorten the task completion time to improve the efficiency of in-and-out storage, but also reduce the running distance of the stacker, thereby reducing the energy consumption cost of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of automatic warehouse scheduling, and in particular to an automatic warehouse inbound and outbound scheduling method and device based on a Q-Learning algorithm. Background Art

[0002] At present, the solutions to the stacker scheduling problem in automated warehouses mainly rely on mathematical modeling and optimization algorithms. These solutions use genetic algorithms, particle swarm algorithms, and taboo search methods to model and solve the automated warehouse inbound and outbound scheduling strategies to optimize task execution efficiency and warehouse resource utilization.

[0003] However, in the process of researching related technologies, most methods need to obtain detailed information of orders or warehousing tasks in advance in order to make predictions and scheduling decisions, which is inconsistent with the flexibility requirements of the actual warehousing environment. In addition, related technologies mostly focus on the optimization of a single goal, such as reducing task execution time or reducing energy consumption, which often ignores the comprehensive optimization of customer needs and long-term interests of the enterprise. For example, in some cases, giving priority to warehousing tasks or executing dual-command tasks (that is, both outbound tasks and warehousing tasks) can reduce the running distance and energy consumption of the stacker. However, in current technologies, when faced with environmental changes or new business needs, it may be necessary to retrain and adjust the model, which is time-consuming and lacks sufficient flexibility. Summary of the invention

[0004] The embodiments of the present disclosure at least provide an automated warehouse inbound and outbound scheduling method and device based on the Q-Learning algorithm, which can adopt appropriate inbound and outbound scheduling strategies according to changes in the state of the automated warehouse, which can not only shorten the task completion time to improve the inbound and outbound efficiency; it can also reduce the running distance of the stacker, thereby reducing the energy consumption cost of the equipment.

[0005] The present disclosure provides an automated warehouse inbound and outbound scheduling method based on a Q-Learning algorithm, including:

[0006] Establish a warehouse shelf model and establish the warehouse in and out objective function based on the total order delay time and the total travel distance of the stacker;

[0007] Design a warehouse in-and-out allocation model based on the Q-Learning algorithm according to the warehouse shelf model;

[0008] Training the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model;

[0009] The trained warehouse in-and-out allocation model is applied to the automated warehouse, and the target in-and-out scheduling strategy of the automated warehouse is determined based on the warehouse status data; the target in-and-out scheduling strategy includes task sequencing strategy, stacker working strategy and cargo space allocation rule; the warehouse status data includes the number level of outbound tasks waiting to be assigned at the current moment, the number level of inbound tasks waiting to be assigned at the current moment, the urgency of the remaining outbound tasks at the current moment, and the average number of task queues of the stacker at the current moment.

[0010] The embodiment of the present disclosure provides an automated warehouse inbound and outbound scheduling device based on a Q-Learning algorithm, comprising:

[0011] Function building module, used to build warehouse shelf model and establish warehouse in and out target function according to total order delay time and total stacker travel distance;

[0012] A model design module, used to design a warehouse in-and-out allocation model based on a Q-Learning algorithm according to the warehouse shelf model;

[0013] A model training module is used to train the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model;

[0014] The model application module is used to apply the trained warehouse in-and-out allocation model to the automated warehouse, and determine the target in-and-out scheduling strategy of the automated warehouse based on the warehouse status data; the target in-and-out scheduling strategy includes the task sorting strategy, the stacker working strategy and the cargo space allocation rule; the warehouse status data includes the number level of outbound tasks waiting to be allocated at the current moment, the number level of inbound tasks waiting to be allocated at the current moment, the urgency of the remaining outbound tasks at the current moment and the average number of task queues of the stacker at the current moment.

[0015] An embodiment of the present disclosure provides a computer device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, an automated warehouse inbound and outbound scheduling method based on the Q-Learning algorithm as described in any possible implementation manner described above is performed.

[0016] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the automated warehouse in-and-out scheduling method based on the Q-Learning algorithm as described in any possible implementation manner described above is implemented.

[0017] The automated warehouse in-and-out scheduling method, device, computer equipment and storage medium based on the Q-Learning algorithm provided in the embodiments of the present disclosure first establish a warehouse shelf model, and establish a warehouse in-and-out target function according to the total order delay time and the total travel distance of the stacker; then determine the system status data of the warehouse shelf model according to the warehouse shelf model; and design a warehouse in-and-out allocation model based on the Q-Learning algorithm according to the warehouse shelf model; then train the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model; finally, apply the trained warehouse in-and-out allocation model to the automated warehouse, and determine the target in-and-out scheduling strategy of the automated warehouse according to the warehouse status data. In this way, the warehouse in-and-out allocation model obtained in the present disclosure can adopt a suitable in-and-out scheduling strategy according to the change of the state of the automated warehouse, which can not only shorten the task completion time to improve the efficiency of in-and-out storage, but also reduce the running distance of the stacker, thereby reducing the energy consumption cost of the equipment.

[0018] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required to be cited in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A flowchart of an automated warehouse inbound and outbound scheduling method based on a Q-Learning algorithm provided by an embodiment of the present disclosure is shown;

[0021] Figure 2 A structural schematic diagram of a warehouse shelf model provided by an embodiment of the present disclosure is shown;

[0022] Figure 3 A flowchart of a method for designing a warehouse in-and-out distribution model based on a warehouse shelf model and a Q-Learning algorithm is shown in an embodiment of the present disclosure;

[0023] Figure 4 A flow chart of a warehouse in-and-out distribution model training method provided by an embodiment of the present disclosure is shown;

[0024] Figure 5A schematic diagram of the structure of an automated warehouse inbound and outbound scheduling device based on a Q-Learning algorithm provided in an embodiment of the present disclosure is shown;

[0025] Figure 6 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0027] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0028] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0029] In the field of warehouse scheduling, unreasonable inbound and outbound processes, equipment scheduling, and cargo space allocation will lead to unnecessary time loss and management costs. Improving scheduling efficiency is an important path for reducing costs and increasing efficiency in the future warehousing industry. At present, the solutions to the stacker scheduling problem in automated warehouses mainly rely on mathematical modeling and optimization algorithms. These solutions use genetic algorithms, particle swarm algorithms, and taboo search methods to model and solve automated warehouse inbound and outbound scheduling strategies to optimize task execution efficiency and warehouse resource utilization.

[0030] It has been found that in the process of researching related technologies, most methods need to obtain detailed information of orders or warehousing tasks in advance in order to make predictions and scheduling decisions, which is inconsistent with the flexibility requirements of the actual warehousing environment. In addition, related technologies are mostly focused on the optimization of a single goal, such as reducing task execution time or reducing energy consumption, which often ignores the comprehensive optimization of customer needs and long-term interests of the enterprise. For example, in some cases, giving priority to warehousing tasks or executing dual-command tasks (that is, both outbound tasks and warehousing tasks) can reduce the running distance and energy consumption of the stacker. However, in current technologies, when faced with environmental changes or new business needs, it may be necessary to retrain and adjust the model, which is time-consuming and lacks sufficient flexibility.

[0031] Based on the above research, an automated warehouse in-and-out scheduling method and device based on the Q-Learning algorithm is provided in the embodiments of the present disclosure. First, a warehouse shelf model is established, and a warehouse in-and-out objective function is established according to the total order delay time and the total travel distance of the stacker; then, the system status data of the warehouse shelf model is determined according to the warehouse shelf model; and a warehouse in-and-out allocation model based on the Q-Learning algorithm is designed according to the warehouse shelf model; then, the warehouse in-and-out allocation model is trained to obtain a trained warehouse in-and-out allocation model; finally, the trained warehouse in-and-out allocation model is applied to the automated warehouse, and the target in-and-out scheduling strategy of the automated warehouse is determined according to the warehouse status data.

[0032] In the disclosed embodiment, since the warehouse in-and-out allocation model is designed based on the Q-Learning algorithm, the model can automatically optimize the warehouse in-and-out scheduling strategy according to the warehouse status data, without the need to input the specific task information of each day in advance; and the objective function of the model is established by the total order delay time and the total travel distance of the stacker, which comprehensively considers the impact of the total order delay time and the total travel distance of the stacker on the warehouse in-and-out work efficiency. In this way, the warehouse in-and-out allocation model obtained by the present disclosure can select a suitable target in-and-out scheduling strategy according to the warehouse status data of the automated warehouse, which can not only shorten the task completion time to improve the efficiency of in-and-out storage, but also reduce the running distance of the stacker, thereby reducing the energy consumption cost of the equipment.

[0033] To facilitate understanding of this embodiment, the execution subject of the automated warehouse in-and-out scheduling method based on the Q-Learning algorithm provided in the embodiment of the present disclosure is first introduced in detail. The execution subject of the automated warehouse in-and-out scheduling method based on the Q-Learning algorithm provided in the embodiment of the present disclosure is a computer device. The computer device can be a server. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms.

[0034] The following is a detailed description of the automated warehouse inbound and outbound scheduling method based on the Q-Learning algorithm provided in the embodiment of the present application in conjunction with the accompanying drawings. Figure 1 As shown, it is a flowchart of an automated warehouse inbound and outbound scheduling method based on a Q-Learning algorithm provided by an embodiment of the present disclosure, and the method includes the following S101-S104:

[0035] S101, establish a warehouse shelf model, and establish a warehouse in-and-out objective function based on the total order delay time and the total travel distance of the stacker.

[0036] For example, refer to Figure 2 As shown, Figure 2 Take the warehouse shelf model as an example. The warehouse shelf model consists of a buffer, a stacker, an inbound conveyor belt, and an outbound conveyor belt. In the warehouse shelf model, the task information of the outbound task and the inbound task will be transmitted to the warehouse system. When the warehouse system completes the task assignment and the cargo location allocation, it will pass the instruction to the stacker. The stacker will perform the tasks in sequence according to the task queue. The buffer is used to place the goods corresponding to each task information, and finally the forklift completes the transportation of the goods. Among them, the size of each cargo location can be set in units of L*L. The shelf consists of several cargo locations, which are distributed on both sides of the aisle. The stacker in each aisle can only perform the operations of picking up and storing goods on the shelves on the left and right sides.

[0037] It is understandable that in the context of improving the efficiency of automated warehouse access and reducing storage costs, it is crucial to consider the total order delay time and the total travel distance of the stacker. The total order delay time directly affects customer satisfaction and the responsiveness of the supply chain. It reflects the time required for the order to be placed and completed. By reducing the total order delay time, enterprises can respond to customer needs more quickly, improve customer satisfaction, and thus enhance market competitiveness. On the other hand, the total travel distance of the stacker is directly related to the internal operation efficiency and energy consumption of the warehouse, that is, the shorter the travel distance of the stacker, the higher the speed and efficiency of loading and unloading goods, thereby reducing the time cost and energy consumption of the access process. By optimizing the operation strategy of the stacker, the travel distance can be effectively reduced, and the operational efficiency and overall cost-effectiveness of the warehouse can be improved. Therefore, establishing the warehouse access objective function based on the total order delay time and the total travel distance of the stacker can help enterprises achieve a balance between the dual needs of customers and enterprises while improving the level of warehouse automation, thereby achieving more efficient supply chain management and warehousing operations.

[0038] Specifically, the warehouse inbound and outbound objective functions include:

[0039] ;

[0040] in, Represents the weighted value of the total order delay time and the total travel distance of the stacker; The weight value representing the total delay time of the order; Indicates the total delay time processing value of the order; The weight value representing the total travel distance of the stacker; Indicates the total travel distance processing value of the stacker.

[0041] Here, the total order delay time processing value is obtained by normalizing the total order delay time to the maximum and minimum values; similarly, the total stacker travel distance processing value is obtained by normalizing the total stacker travel distance to the maximum and minimum values. In this way, the two indicators are unified to the same magnitude, making them comparable and quantifiable, and becoming quantitative indicators that can be directly compared and comprehensively analyzed.

[0042] S102 designs a warehouse in-and-out distribution model based on the Q-Learning algorithm according to the warehouse shelf model.

[0043] It is understandable that Q-Learning is a classic algorithm based on reinforcement learning, which is used to solve decision-making problems in unknown environments. The algorithm learns an action-value function (Q function) to guide the agent to select actions in the state space to maximize the long-term cumulative reward. Specifically, the core idea of ​​Q-Learning is to learn the optimal strategy through interaction with the environment. The process mainly includes steps such as state representation, action selection, reward feedback, and Q value update.

[0044] Reference Figure 3 As shown, it is a flowchart of a method for designing a warehouse in-and-out distribution model based on a warehouse shelf model and a Q-Learning algorithm according to an embodiment of the present disclosure. The method includes the following S301-S304:

[0045] S301, determining a task sorting strategy of the task selection model, and determining a target task based on the task selection model according to the task sorting strategy.

[0046] Here, the target task includes multiple target subtasks, and the target subtask is a kind of outbound task or inbound task. The task sorting strategy includes outbound task priority strategy, inbound task priority strategy, joint outbound and inbound priority strategy, and waiting strategy. When the task sorting strategy is outbound task priority strategy, the main goal of the warehouse is to process and complete all outbound tasks as soon as possible. This strategy is suitable for situations where customer orders need to be prioritized, immediate needs are met, or goods are not kept for too long. When the task sorting strategy is inbound task priority strategy, the focus is on introducing goods from external suppliers or production lines to the warehouse as soon as possible. This strategy is usually used when goods need to be replenished in time to meet future needs or to ensure sufficient inventory. When the task sorting strategy is joint outbound and inbound priority strategy, it combines the needs of outbound tasks and inbound tasks, and balances the supply and demand relationship and space utilization efficiency of the warehouse. The goal of this strategy is to ensure immediate response to customer needs while effectively managing and optimizing warehouse space and goods flow. Waiting strategies generally appear in certain specific situations, such as avoiding overcrowding in the warehouse or when certain operating resources are limited. Under the waiting strategy, the task selection model may temporarily postpone the execution of certain tasks until certain prerequisites are met or resources become more available, and then continue to execute the tasks.

[0047] S302 : For each target subtask, according to a preset stacker working strategy, a target stacker corresponding to the target subtask is determined based on the stacker scheduling model.

[0048] Among them, the stacker working strategy includes the shortest task queue priority strategy and the earliest idle time priority strategy. Under the shortest task queue priority strategy, the stacker will give priority to executing the task with the shortest length in the current task queue; this can minimize the task waiting time and the overall duration of task execution, thereby improving the warehouse's response speed and processing efficiency. By giving priority to tasks with the shortest task queue length, the stacker can respond to new inbound or outbound requests more quickly, ensuring the timely processing of goods and the smooth operation of the supply chain. Under the earliest idle time priority strategy, the focus is on selecting the earliest idle stacker to perform tasks. This strategy is suitable for situations where it is necessary to maximize the utilization of the stacker or reduce idle time. By giving priority to those stackers that can be idle faster, warehouse resources can be effectively utilized and the workload of each stacker can be balanced as much as possible during busy hours.

[0049] S303: For each target subtask, determine the target cargo location of the target subtask based on the cargo location allocation rule of the cargo location allocation model.

[0050] It can be understood that the cargo location allocation rules include the shortest distance cargo location priority rule and the random cargo allocation rule. Under the shortest distance cargo location priority principle, the system will calculate the distance between the location of the target subtask and each available cargo location, and give priority to the nearest cargo location as the target cargo location. In this way, the time and cost of moving goods can be minimized and operational efficiency can be improved. The shortest distance cargo location priority rule is applicable to goods that need to be frequently stored and retrieved. Under the random cargo allocation rule, the system will randomly select an available cargo location as the target cargo location. The advantage of this principle is that it is simple and direct, and it is applicable to some specific scenarios, such as when the storage location requirements are not strict or the types of goods in the warehouse are mixed. Random allocation can balance the storage location of goods to a certain extent and avoid long-term idleness or overcrowding of certain cargo locations.

[0051] S304, determining a composite reward function of the warehouse in-and-out distribution model.

[0052] Specifically, the composite reward function includes the total order delay time reward function and the total travel distance reward function of the stacker, which can be expressed as:

[0053] ;

[0054] in, represents the compound reward function; represents the total order delay time reward function; Represents the total travel distance reward function of the stacker.

[0055] The total order delay time is one of the important indicators to measure the efficiency of warehouse operations. The delay time refers to the difference between the order completion time and the earliest completion time required by the order. The optimization goal is to minimize the delay time to ensure customer satisfaction and overall supply chain efficiency. The total order delay time reward function includes:

[0056] ;

[0057] in, Indicates the total number of completed tasks; represents the time to complete processing task j; represents the target deadline of task j;

[0058] The total travel distance of the stacker crane refers to the total distance traveled by all stackers in the process of performing warehouse tasks. The optimization goal is to minimize the travel distance of the stacker crane to save energy, reduce equipment wear, and improve warehouse operation efficiency. The reward function for the total travel distance of the stacker crane includes:

[0059] ;

[0060] in, represents the travel distance of stacker k; Indicates the total number of stackers.

[0061] In some other embodiments, the compound reward function also includes a penalty function, which counts delayed outbound tasks or unfinished inbound tasks after each round (one round is a day or a week), and penalizes tasks that are not completed on time. In this way, the system can be effectively prompted to consider minimizing the total delay time and the stacker travel distance, while also requiring the system to complete all tasks within the specified time to avoid additional costs and customer dissatisfaction. Specifically, the penalty function can be expressed as:

[0062] ;

[0063] in, represents the penalty function; Indicates unit time; Indicates cycle time; Indicates the unfinished inventory quantity; Indicates the number of unfinished outbound tasks.

[0064] Accordingly, the compound reward function is expressed as:

[0065] .

[0066] S103, training the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model.

[0067] Reference Figure 4 As shown, the warehouse in-and-out allocation model is trained through steps S401 to S412, as follows:

[0068] S401, initializing the Q table so that the q value corresponding to each training system state data is 0.

[0069] Here, in Q-learning based algorithms, the Q-table (also called Q-function or Q-value table) stores the expected return (or value) of taking each action in each state. At the beginning, all q values ​​in the Q-table are usually initialized to 0.

[0070] S402, set the unit time tick and the cycle time T; the cycle time T includes multiple unit time ticks; set each cycle time T as one round; the initial time is 0.

[0071] The unit time tick refers to the minimum time interval or step size in the system, which can be set to any fixed time unit (such as hours or days). If the unit time tick is set to 1 hour, the system will train once every hour. The cycle time T includes multiple unit time ticks, and each cycle time T is a round. At the beginning of training, set the initial time to 0.

[0072] S403, set the number of training rounds to e, the total number of training rounds to E, and initialize the number of training rounds to e=1.

[0073] Here, the number of training rounds e represents the number of training rounds of the current model, the total number of training rounds E represents the total number of rounds executed by the algorithm, and the initial value of the number of training rounds e is set to 1.

[0074] S404, randomly generate initial shelf information of the warehouse, and determine the training system status data according to the initial shelf information.

[0075] The initial shelf information may include the location of each shelf, the type and quantity of goods stored on the shelf, and other data related to the warehouse's outbound and inbound tasks. After obtaining the warehouse's initial shelf information, the training system status data is determined based on the initial shelf information. The training system status data is a set of status sets, specifically including the number level of outbound tasks waiting to be assigned at the current moment, the number level of inbound tasks waiting to be assigned at the current moment, the urgency of the remaining outbound tasks at the current moment, and the average number of task queues for the stacker at the current moment.

[0076] S405, tick=tick+1.

[0077] Assign tick+1 to tick.

[0078] S406, according to Strategy and the training system status data, determine the execution action corresponding to each training task in the pre-generated training task list; and complete each training task according to the execution action; based on the completion result, update the training task list, training task information, stacker properties, shelf information and training system status data.

[0079] It is understandable that in In strategy, is the exploration probability parameter of the action. Before each action selection, The probability of selecting the action with the maximum Q value is The probability of randomly selecting an action is set in this disclosure. is 0.5. At the same time, the attenuation rate de is defined to control The decay rate of the value will The value gradually decreases at a rate of de, and de is set to 0.08 in this disclosure.

[0080] Specifically, according to When determining the execution actions corresponding to each training task in the pre-generated training task list, the strategy and training system status data may include the following (1) to (2):

[0081] (1) determining a q-value corresponding to the training system state data based on a preset action exploration probability; if the q-value is not the maximum q-value corresponding to the training system state, randomly determining an execution strategy for the training task; if the q-value is the maximum q-value corresponding to the training system state, determining an execution strategy for the training task according to an execution strategy corresponding to the maximum q-value;

[0082] (2) Determine the execution actions corresponding to each training task according to the task sequencing strategy, stacker working strategy and cargo space allocation rule corresponding to the execution strategy.

[0083] Specifically, before executing the task, the q-value corresponding to the current training system state data is calculated according to the preset action exploration probability. If the calculated q-value is not the maximum q-value of all possible actions under the current training system state, an execution strategy is randomly selected to execute the training task. This strategy aims to explore new execution paths by randomly selecting actions in order to discover potential better solutions. If the calculated q-value is the maximum q-value corresponding to the current training system state, the execution strategy of the training task is determined based on the execution strategy corresponding to this maximum q-value, which means that the system will select the action with the highest expected reward to optimize the efficiency and results of task execution.

[0084] Once the execution strategies are determined, the system will formulate specific task sequencing strategies, stacker operation strategies and cargo space allocation rules according to these strategies, so as to accurately determine the execution actions of each training task. These strategies may be optimized and adjusted based on factors such as the urgency of the task, the availability of the stacker and maximizing system efficiency.

[0085] S407, according to the completion status of each training task, calculate the reward value corresponding to the training system status data based on the composite reward function; and calculate the q value corresponding to the training system status data based on the reward value and the q value calculation function, and update the Q table based on the calculation result.

[0086] It can be understood that after each training task is completed, the above-mentioned composite reward function is used to calculate the reward value corresponding to the current training system state data, and then this reward value and the q-value calculation function are used to calculate the new q-value corresponding to the current training system state data, and the Q table is updated according to the calculation results.

[0087] Among them, the q value calculation function includes:

[0088] ;

[0089] in, Indicates the training system status; Indicates the execution of an action; is the q-value corresponding to the state of the training system and the action performed; Represents the learning rate, which represents the update speed of the q value; Indicates the reward value; represents the discount factor, which represents the discount rate of future rewards; Indicates the next training system state The maximum q value that can be obtained.

[0090] S408, using the training task list, training task information, stacker properties, shelf information and training system status data updated in S406 as initial input data for the next training in S406.

[0091] Here, the updated data (training task list, training task information, stacker attributes, shelf information, and training system status data) is used as the initial input for the next training. In the new round of training, it helps the model make more effective decisions and operations based on the previously learned knowledge and experience to determine the q value under the new training system status data. This method of continuously updating and utilizing data helps improve the system's adaptability and overall efficiency, thereby better responding to changing operating environments and needs.

[0092] S409, whether the modulo calculation result of the unit time and the cycle time is 0; if so, execute step S410; if not, execute step S411.

[0093] Determine whether the modulo calculation result of the unit time and the cycle time is 0, that is, determine whether the current time is an integer multiple of the cycle time, to determine whether this round of training is completed.

[0094] S410, e=e+1.

[0095] When the modulo calculation result of the unit time and the cycle time is 0, it means that this round of training is over, and we jump to the next round of training, and assign e+1 to e.

[0096] S411, whether the number of training rounds e is equal to the total number of training rounds E; if so, execute step S412; if not, execute step S405.

[0097] When the modulo calculation result of the unit time and the cycle time is not 0, it is determined whether the number of training rounds e is equal to the total number of training rounds E.

[0098] S412, training ends.

[0099] When the number of training rounds e is equal to the total number of training rounds E, it means that the number of training rounds has reached the total number of training rounds, the training is completed, the model training is completed, and the trained warehouse in-and-out allocation model is obtained.

[0100] S104, applying the trained warehouse inbound and outbound allocation model to the automated warehouse, and determining a target inbound and outbound scheduling strategy for the automated warehouse based on the warehouse status data;

[0101] After applying the trained warehouse in-and-out allocation model to the automated warehouse, the target in-and-out scheduling strategy is formulated based on the real-time warehouse status data. Specifically, the trained model is used to determine the task sorting strategy, stacker working strategy, and cargo space allocation rules based on the current level of outbound tasks waiting to be assigned, the current level of inbound tasks waiting to be assigned, the current urgency of the remaining outbound tasks, and the current average number of task queues of the stacker.

[0102] The automated warehouse in-and-out scheduling method and device based on the Q-Learning algorithm provided in the embodiments of the present disclosure, since the warehouse in-and-out allocation model is designed based on the Q-Learning algorithm, the model can automatically optimize the warehouse in-and-out scheduling strategy according to the warehouse status data, without the need to input the specific task information of each day in advance; and the objective function of the model is established by the total order delay time and the total travel distance of the stacker, which comprehensively considers the impact of the total order delay time and the total travel distance of the stacker on the warehouse in-and-out work efficiency. In this way, the warehouse in-and-out allocation model obtained by the present disclosure can select a suitable target in-and-out scheduling strategy according to the warehouse status data of the automated warehouse, which can not only shorten the task completion time to improve the efficiency of in-and-out storage, but also reduce the running distance of the stacker, thereby reducing the energy consumption cost of the equipment.

[0103] Reference Figure 5 FIG. 5 is a schematic diagram of an automated warehouse inbound and outbound scheduling device 500 based on a Q-Learning algorithm provided in an embodiment of the present disclosure, wherein the device comprises:

[0104] Function building module 501, used to build a warehouse shelf model and build a warehouse in-and-out target function based on the total order delay time and the total travel distance of the stacker;

[0105] A model design module 502, used to design a warehouse in-and-out distribution model based on a Q-Learning algorithm according to the warehouse shelf model;

[0106] Model training module 503, used to train the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model;

[0107] The model application module 504 is used to apply the trained warehouse in-and-out allocation model to the automated warehouse, and determine the target in-and-out scheduling strategy of the automated warehouse based on the warehouse status data; the target in-and-out scheduling strategy includes the task sorting strategy, the stacker working strategy and the cargo space allocation rule; the warehouse status data includes the number level of outbound tasks waiting to be allocated at the current moment, the number level of inbound tasks waiting to be allocated at the current moment, the urgency of the remaining outbound tasks at the current moment and the average number of task queues of the stacker at the current moment.

[0108] In some possible embodiments, the warehouse inbound and outbound objective function includes:

[0109] ;

[0110] in, Represents the weighted value of the total order delay time and the total travel distance of the stacker; The weight value representing the total delay time of the order; Indicates the total delay time processing value of the order; The weight value representing the total travel distance of the stacker; Indicates the total travel distance processing value of the stacker.

[0111] In some possible embodiments, the warehouse in-and-out allocation model includes a task selection model, a stacker scheduling model, and a cargo space allocation model; the model design module 502 is specifically used for:

[0112] Determine a task sorting strategy of the task selection model, and determine a target task based on the task selection model according to the task sorting strategy; the task sorting strategy is one of an outbound task priority strategy, an inbound task priority strategy, a combined outbound and inbound priority strategy, or a waiting strategy; the target task includes a plurality of target subtasks; the target subtask is one of an outbound task and an inbound task;

[0113] For each target subtask, according to a preset stacker working strategy, a target stacker corresponding to the target subtask is determined based on the stacker scheduling model; the stacker working strategy includes a task queue shortest priority strategy and an earliest idle time priority strategy;

[0114] For each target subtask, determining a target cargo location of the target subtask based on a cargo location allocation rule of the cargo location allocation model; the cargo location allocation rule is one of a shortest distance cargo location priority rule or a random cargo allocation rule;

[0115] Determine the composite reward function of the warehouse in-and-out distribution model; the composite reward function includes a total order delay time reward function and a total stacker travel distance reward function.

[0116] In some possible embodiments, the model training module 503 is specifically used to:

[0117] Step 1: Initialize the Q table so that the q value corresponding to each training system state data is 0;

[0118] Step 2 sets the unit time tick and the cycle time T; the cycle time T includes multiple unit time ticks; each cycle time T is set to one round; the initial time is 0;

[0119] Step 3: Set the number of training rounds to e, the total number of training rounds to E, and initialize the number of training rounds to e=1;

[0120] Step 4 randomly generates initial shelf information of the warehouse, and determines the training system state data according to the initial shelf information;

[0121] Step 5 assigns tick+1 to tick;

[0122] Step 6 According to strategy and the training system status data, determine the execution action corresponding to each training task in the pre-generated training task list; and complete each training task according to the execution action; based on the completion result, update the training task list, training task information, stacker attributes, shelf information and training system status data;

[0123] Step 7: according to the completion status of each training task, the reward value corresponding to the training system state data is calculated based on the composite reward function; and the q value corresponding to the training system state data is calculated based on the reward value and the q value calculation function, and the Q table is updated based on the calculation result;

[0124] Step 8: using the training task list, training task information, stacker attributes, shelf information, and training system status data updated in step 6 as initial input data for the next training in step 6;

[0125] Step 9: If the modulo calculation result of the unit time and the cycle time is not equal to 0, jump to step 5; otherwise, it means that this round of training is completed, assign e+1 to e, and jump to step 5;

[0126] Step 10: If the number of training rounds e is equal to the total number of training rounds E, the training is completed; otherwise, jump to step 5.

[0127] In some possible embodiments, the model training module 503 is further used to:

[0128] Determine the q value corresponding to the training system state data based on the preset action exploration probability; if the q value is not the maximum q value corresponding to the training system state, randomly determine the execution strategy of the training task; if the q value is the maximum q value corresponding to the training system state, determine the execution strategy of the training task according to the execution strategy corresponding to the maximum q value;

[0129] The execution actions corresponding to each training task are determined respectively according to the task sequencing strategy, the stacker working strategy and the cargo space allocation rule corresponding to the execution strategy.

[0130] In some possible embodiments, the total order delay time reward function includes:

[0131] ;

[0132] in, represents the total order delay time reward function; Indicates the total number of completed tasks; represents the time to complete processing task j; represents the target deadline of task j;

[0133] The total travel distance reward function of the stacker includes:

[0134] ;

[0135] in, represents the total travel distance reward function of the stacker; represents the travel distance of stacker k; Indicates the total number of stackers;

[0136] The compound reward function includes:

[0137] ;

[0138] in, represents the compound reward function.

[0139] In some possible embodiments, the q-value calculation function includes:

[0140] ;

[0141] in, Indicates the training system status; Indicates the execution of an action; is the q-value corresponding to the state of the training system and the action performed; Represents the learning rate, which represents the update speed of the q value; Indicates the reward value; represents the discount factor, which represents the discount rate of future rewards; Indicates the next training system state The maximum q value that can be obtained.

[0142] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 6 , which is a schematic diagram of the structure of a computer device 600 provided in an embodiment of the present disclosure, including a processor 601, a memory 602, and a bus 603. The memory 602 is used to store execution instructions, including a memory 6021 and an external memory 6022; the memory 6021 is also called an internal memory, which is used to temporarily store the operation data in the processor 601 and the data exchanged with the external memory 6022 such as a hard disk. The processor 601 exchanges data with the external memory 6022 through the memory 6021.

[0143] In the embodiment of the present application, the memory 602 is specifically used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 601. That is, when the computer device 600 is running, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the application code stored in the memory 602, and then executes the method described in any of the above embodiments.

[0144] Among them, the memory 602 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0145] Processor 601 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0146] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the computer device 600. In other embodiments of the present application, the computer device 600 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0147] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the automated warehouse in-and-out scheduling method based on the Q-Learning algorithm described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0148] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the automated warehouse in-and-out scheduling method based on the Q-Learning algorithm described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0149] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0150] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0152] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0153] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0154] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. An automated warehouse inbound and outbound scheduling method based on the Q-Learning algorithm, characterized in that: include: Establish a warehouse shelf model and establish the warehouse in and out objective function based on the total order delay time and the total travel distance of the stacker; According to the warehouse shelf model, a warehouse in-and-out allocation model based on the Q-Learning algorithm is designed; wherein the warehouse in-and-out allocation model includes a task selection model, a stacker scheduling model and a cargo space allocation model; Training the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model; The trained warehouse in-and-out allocation model is applied to the automated warehouse, and the target in-and-out scheduling strategy of the automated warehouse is determined according to the warehouse status data; the target in-and-out scheduling strategy includes a task sequencing strategy, a stacker working strategy, and a cargo space allocation rule; the warehouse status data includes the number level of outbound tasks waiting to be allocated at the current moment, the number level of inbound tasks waiting to be allocated at the current moment, the urgency of the remaining outbound tasks at the current moment, and the average number of task queues of the stacker at the current moment; The warehouse in-and-out allocation model based on the Q-Learning algorithm is designed according to the warehouse shelf model, including: Determine a task sorting strategy of the task selection model, and determine a target task based on the task selection model according to the task sorting strategy; the task sorting strategy is one of an outbound task priority strategy, an inbound task priority strategy, a combined outbound and inbound priority strategy, or a waiting strategy; the target task includes a plurality of target subtasks; the target subtask is one of an outbound task and an inbound task; For each target subtask, according to a preset stacker working strategy, a target stacker corresponding to the target subtask is determined based on the stacker scheduling model; the stacker working strategy includes a task queue shortest priority strategy and an earliest idle time priority strategy; For each target subtask, determining a target cargo location of the target subtask based on a cargo location allocation rule of the cargo location allocation model; the cargo location allocation rule is one of a shortest distance cargo location priority rule or a random cargo allocation rule; Determine the composite reward function of the warehouse in-and-out distribution model; the composite reward function includes a total order delay time reward function and a total stacker travel distance reward function.

2. The method according to claim 1, characterized in that The warehouse in and out objective function includes: ; in, Represents the weighted value of the total order delay time and the total travel distance of the stacker; The weight value representing the total delay time of the order; Indicates the total delay time processing value of the order; The weight value representing the total travel distance of the stacker; Indicates the total travel distance processing value of the stacker.

3. The method according to claim 1, characterized in that The training of the warehouse in-and-out allocation model comprises the following steps: Step 1: Initialize the Q table so that the q value corresponding to each training system state data is 0; Step 2 sets the unit time tick and the cycle time T; the cycle time T includes multiple unit time ticks; each cycle time T is set to one round; the initial time is 0; Step 3: Set the number of training rounds to e, the total number of training rounds to E, and initialize the number of training rounds to e=1; Step 4 randomly generates initial shelf information of the warehouse, and determines the training system state data according to the initial shelf information; Step 5 assigns tick+1 to tick; Step 6 According to strategy and the training system status data, determine the execution action corresponding to each training task in the pre-generated training task list; and complete each training task according to the execution action; based on the completion result, update the training task list, training task information, stacker attributes, shelf information and training system status data; Step 7: according to the completion status of each training task, the reward value corresponding to the training system state data is calculated based on the composite reward function; and the q value corresponding to the training system state data is calculated based on the reward value and the q value calculation function, and the Q table is updated based on the calculation result; Step 8: using the training task list, training task information, stacker attributes, shelf information, and training system status data updated in step 6 as initial input data for the next training in step 6; Step 9: If the modulo calculation result of the unit time and the cycle time is not equal to 0, jump to step 5; otherwise, it means that this round of training is completed, assign e+1 to e, and jump to step 5; Step 10: If the number of training rounds e is equal to the total number of training rounds E, the training is completed; otherwise, jump to step 5.

4. The method according to claim 3, characterized in that: The basis strategy and the training system status data, determining the execution action corresponding to each training task in the pre-generated training task list; include: Determine the q value corresponding to the training system state data based on the preset action exploration probability; if the q value is not the maximum q value corresponding to the training system state, randomly determine the execution strategy of the training task; if the q value is the maximum q value corresponding to the training system state, determine the execution strategy of the training task according to the execution strategy corresponding to the maximum q value; The execution actions corresponding to each training task are determined respectively according to the task sequencing strategy, the stacker working strategy and the cargo space allocation rule corresponding to the execution strategy.

5. The method according to claim 1, characterized in that The total order delay time reward function includes: ; in, represents the total order delay time reward function; Indicates the total number of completed tasks; represents the time to complete processing task j; represents the target deadline of task j; The total travel distance reward function of the stacker includes: ; in, represents the total travel distance reward function of the stacker; represents the travel distance of stacker k; Indicates the total number of stackers; The compound reward function includes: ; in, represents the compound reward function.

6. The method according to claim 3, characterized in that The q-value calculation function includes: ; in, Indicates the training system status; Indicates the execution of an action; is the q-value corresponding to the state of the training system and the action performed; Represents the learning rate, which represents the update speed of the q value; Indicates the reward value; represents the discount factor, which represents the discount rate of future rewards; Indicates the next training system state The maximum q value that can be obtained.

7. An automated warehouse inbound and outbound scheduling device based on a Q-Learning algorithm, the device being used to implement the automated warehouse inbound and outbound scheduling method based on a Q-Learning algorithm as described in any one of claims 1 to 6, characterized in that: include: Function building module, used to build warehouse shelf model and establish warehouse in and out target function according to total order delay time and total stacker travel distance; A model design module, used to design a warehouse in-and-out allocation model based on the Q-Learning algorithm according to the warehouse shelf model; wherein the warehouse in-and-out allocation model includes a task selection model, a stacker scheduling model and a cargo space allocation model; A model training module is used to train the warehouse in-and-out allocation model to obtain a trained warehouse in-and-out allocation model; A model application module is used to apply the trained warehouse in-and-out allocation model to the automated warehouse, and determine the target in-and-out scheduling strategy of the automated warehouse according to the warehouse status data; the target in-and-out scheduling strategy includes a task sequencing strategy, a stacker working strategy, and a cargo space allocation rule; the warehouse status data includes the number level of outbound tasks waiting to be allocated at the current moment, the number level of inbound tasks waiting to be allocated at the current moment, the urgency of the remaining outbound tasks at the current moment, and the average number of task queues of the stacker at the current moment; The model design module is also used to: Determine a task sorting strategy of the task selection model, and determine a target task based on the task selection model according to the task sorting strategy; the task sorting strategy is one of an outbound task priority strategy, an inbound task priority strategy, a combined outbound and inbound priority strategy, or a waiting strategy; the target task includes a plurality of target subtasks; the target subtask is one of an outbound task and an inbound task; For each target subtask, according to a preset stacker working strategy, a target stacker corresponding to the target subtask is determined based on the stacker scheduling model; the stacker working strategy includes a task queue shortest priority strategy and an earliest idle time priority strategy; For each target subtask, determining a target cargo location of the target subtask based on a cargo location allocation rule of the cargo location allocation model; the cargo location allocation rule is one of a shortest distance cargo location priority rule or a random cargo allocation rule; Determine the composite reward function of the warehouse in-and-out distribution model; the composite reward function includes a total order delay time reward function and a total stacker travel distance reward function.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Automatic stereoscopic warehouse in-out intelligent scheduling method

    CN116596440A