Order batch aggregation method and system
By combining the warehouse segmentation algorithm and the smallest product type algorithm, the global optimal order batch aggregation is achieved, and the problem of batch aggregation in the existing technology does not consider global optimality, which improves the picking efficiency and path optimization.
Patent Information
- Application Number
- CN202210503868.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-05-10
AI Technical Summary
In the judgment of warehouse picking efficiency in the prior art, only one indicator is selected for batch aggregation, resulting in the inability to obtain the optimal solution for order aggregation of all batches in the entire warehouse, and it has an impact on the order selection of other batches.
By segmenting the positions in the target warehouse and combining the algorithm for the minimum product types, the orders in each search segment are batch aggregated to ensure that the number of orders in each search segment reaches the upper or lower limit of the batch order. This achieves global optimal order batch aggregation.
The total picking path and time consumption of the entire warehouse are shortened, and the picking efficiency is improved, ensuring the shortest walking distance for orders in each search segment to complete batches, and converging multiple orders into one batch.
Smart Images

Figure CN114926114B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of e-commerce warehousing technology, and in particular to an order batch aggregation method and system. Background Art
[0002] In the prior art, the judgment index of warehouse picking efficiency is generally selected from the number of channels, the total number of batches, the path and the number of SKUs (Stock Keeping Units) in a single batch. When the path is used as the judgment index, the staff generally selects the order with the shortest picking distance as the origin, and then aggregates multiple orders with the orders at the origin into one order batch with the shortest order distance from the origin as the goal. However, in the above scheme, only the order selection with the best walking path in the current batch is obtained. When aggregating the orders of the next batch, it is necessary to select the order with the shortest picking distance from the remaining orders as the origin again, and re-aggregate the orders. Different batches are independent of each other and do not interfere with each other when aggregated. When the order with the least number of SKUs is used as the origin, the multiple orders with the orders at the origin are aggregated into one order batch with the goal of minimizing the increment of the number of SKUs with the origin. Similarly, the above batch aggregation only obtains the order batch with the best walking path in the batch, and has no effect on other batch orders.
[0003] In summary, when performing batch aggregation in the prior art, only one indicator is selected to aggregate a certain batch, and what is obtained is the optimal choice of orders in the batch, and it is only the current batch, and it will not affect the order selection of other batches, and it is impossible to obtain the optimal solution for order aggregation of all batches in the entire warehouse. Summary of the invention
[0004] The purpose of the present invention is to provide an order batch aggregation method and system, which aggregates order batches in combination with all commodity locations and the number of commodity types in a warehouse, so that the aggregated batches are the global optimal solution.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] An order batch aggregation method, comprising:
[0007] Segmenting the locations in the target warehouse to obtain a plurality of current search segments; the current search segment includes one location or a plurality of consecutive locations;
[0008] Determine whether the number of warehouses in the current search segment is equal to the number of warehouses in the target warehouse;
[0009] If the number of positions in the current search segment is not equal to the number of positions in the target warehouse, then comparing the number of orders in the current search segment with the batch order upper limit;
[0010] When the number of orders in the current search segment is greater than the upper limit of batch orders, batch aggregation is performed on the orders in the current search segment according to a minimum number of commodity types algorithm, so as to determine the orders whose order quantity is equal to the upper limit of batch orders as one order batch;
[0011] When the number of orders in the current search segment is equal to the lower limit of the batch order, all orders in the current search segment are determined as an order batch;
[0012] When the number of orders in the current search segment is less than the lower limit of the batch order, the number of positions in the current search segment is increased by a set value, and the positions in the target warehouse are segmented to obtain multiple current search segments;
[0013] If the number of storage locations in the current search segment is equal to the number of storage locations in the target warehouse, all the order batches are output.
[0014] Optionally, the batch aggregation of the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch specifically includes:
[0015] Determine the order set corresponding to the current search segment, and calculate the number of commodity types of each order in the order set;
[0016] Arrange the orders in the order set in a first ascending order according to the number of commodity types;
[0017] Determine whether the inventory of goods in the current search segment is less than the number of goods types of the i-th order in the order set after the first ascending order, and obtain a first determination result; i is a positive integer, and i≥1;
[0018] If the first judgment result indicates yes, then update i to i+1, and then return to the step of judging whether the product inventory in the current search segment is less than the number of product types of the i-th order in the order set after the first ascending order, to obtain the first judgment result;
[0019] If the first judgment result indicates no, the i-th order in the order set after the first ascending order is used as the order of the marked order batch, and then the commodity increment of each sequence order relative to all orders in the marked order batch is calculated, and the sequence orders are subjected to a second ascending order according to the commodity increment; the sequence orders are the orders after the i-th order;
[0020] When the inventory of goods in the current search segment is greater than or equal to the number of goods types of the j-th sequence order after the second ascending order, the j-th sequence order after the second ascending order is added to the marked order batch; j is a positive integer, and j≥1;
[0021] Determine whether the order quantity value in the marked order batch meets the set condition, and obtain a second judgment result; the set condition is that the order quantity value in the marked order batch is greater than the batch order lower limit value, and the order quantity value in the marked order batch is less than the batch order upper limit value;
[0022] If the second judgment result indicates yes, outputting the marked order batch;
[0023] If the second judgment result indicates no, the process returns to the step of calculating the commodity increment of each serial order relative to all orders in the marked order batch, and performing a second ascending order on the serial orders according to the commodity increment.
[0024] Optionally, determining the order set corresponding to the current search segment specifically includes:
[0025] Obtain the head sequence number and tail sequence number of the current search segment; the head sequence number is the sequence number of the starting position of the current search segment, and the tail sequence number is the sequence number of the ending position of the current search segment;
[0026] According to the head number and tail number of the current search segment, a first hash table and a second hash table are constructed; the hash key of the first hash table is the serial number pair from the warehouse starting position to the warehouse ending position of the first sub-warehouse; the warehouse starting position of the first sub-warehouse is the starting position of the current search segment; the warehouse ending position of the first sub-warehouse is the ending position of the target warehouse; the hash value of the first hash table is the order set in the first sub-warehouse; the hash key of the second hash table is the serial number pair from the warehouse starting position to the warehouse ending position of the second sub-warehouse; the warehouse starting position of the second sub-warehouse is the starting position of the target warehouse; the warehouse ending position of the second sub-warehouse is the ending position of the current search segment; the hash value of the second hash table is the order set in the second sub-warehouse;
[0027] The order set of the current search segment is determined according to the first hash table and the second hash table.
[0028] Optionally, the batch aggregation of the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch further includes:
[0029] When performing a first ascending sort on the orders in the order set, if there are orders with the same number of commodity types in the order set, the number of covering orders for each commodity in each first target order is calculated, and the first target orders in the order set are performed a third ascending sort according to the number of covering orders; the first target orders are orders with the same number of commodity types.
[0030] Optionally, the batch aggregation of the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch further includes:
[0031] When performing a second ascending order on the serial orders, if there are serial orders with the same commodity increment, the number of repeated types of commodities in each second target order is calculated, and the second target orders in the order set are descended according to the number of repeated types; the second target orders are serial orders with the same commodity increment.
[0032] Optionally, before segmenting the locations in the target warehouse to obtain a plurality of current search segments, the order batch aggregation method further includes:
[0033] Orders that are out of stock in the target warehouse are removed from all orders to be batch aggregated.
[0034] To achieve the above object, the present invention also provides the following technical solutions:
[0035] An order batch aggregation system, comprising:
[0036] A search segment module, used to segment the locations in the target warehouse to obtain multiple current search segments; the current search segment includes one location or multiple consecutive locations;
[0037] A storage location quantity determination module, used to determine whether the storage location quantity in the current search segment is equal to the storage location quantity of the target warehouse;
[0038] An order quantity comparison module, configured to compare the order quantity in the current search segment with the batch order upper limit when the number of positions in the current search segment is not equal to the number of positions in the target warehouse;
[0039] A first batch output module, configured to, when the number of orders in the current search segment is greater than an upper limit of batch orders, aggregate the orders in the current search segment in batches according to a minimum number of commodity types algorithm, so as to determine the orders whose number of orders is equal to the upper limit of batch orders as one order batch;
[0040] A second batch output module, configured to determine all orders in the current search segment as an order batch when the number of orders in the current search segment is equal to a batch order lower limit;
[0041] A third batch output module is used for, when the number of orders in the current search segment is less than the lower limit of the batch order, adding a set value to the number of warehouses in the current search segment, and returning to the step of segmenting the warehouses in the target warehouse to obtain multiple current search segments;
[0042] The fourth batch output module is used to output all the order batches when the number of storage locations in the current search segment is equal to the number of storage locations in the target warehouse.
[0043] Optionally, in the aspect of batch-aggregating the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch, the first batch output module specifically includes:
[0044] A commodity category calculation submodule, used to determine the order set corresponding to the current search segment, and calculate the number of commodity categories of each order in the order set;
[0045] A first ascending submodule, used to perform a first ascending order on the orders in the order set according to the number of commodity types;
[0046] The first judgment submodule is used to judge whether the inventory of goods in the current search segment is less than the number of types of goods in the i-th order in the order set after the first ascending order, and obtain a first judgment result; i is a positive integer, and i≥1;
[0047] A sequence number updating submodule, configured to update i to i+1 when the first judgment result indicates yes, and then return to the step of judging whether the commodity inventory in the current search segment is less than the number of commodity types of the i-th order in the order set after the first ascending order, to obtain the first judgment result;
[0048] A second ascending submodule is used for, when the first judgment result indicates no, taking the i-th order in the order set after the first ascending order as the order of the marked order batch, then calculating the commodity increment of each sequence order relative to all orders in the marked order batch, and performing a second ascending order on the sequence orders according to the commodity increment; the sequence orders are orders arranged after the i-th order;
[0049] The batch aggregation submodule is used to add the jth sequence order after the second ascending order to the marked order batch when the inventory of goods in the current search segment is greater than or equal to the number of product types of the jth sequence order after the second ascending order; j is a positive integer, and j≥1;
[0050] A second judgment submodule is used to judge whether the order quantity value in the marked order batch meets the set condition to obtain a second judgment result; the set condition is that the order quantity value in the marked order batch is greater than the batch order lower limit value, and the order quantity value in the marked order batch is less than the batch order upper limit value;
[0051] a batch output submodule, configured to output the marked order batch when the second judgment result indicates yes;
[0052] The step return submodule is used to return to the step of calculating the commodity increment of each serial order relative to all orders in the marked order batch, and performing a second ascending order on the serial orders according to the commodity increment when the second judgment result indicates no.
[0053] Optionally, in determining the order set corresponding to the current search segment, the commodity category calculation submodule specifically includes:
[0054] A head and tail sequence number determination unit, used to obtain a head sequence number and a tail sequence number of a current search segment; the head sequence number is the sequence number of a starting position of the current search segment, and the tail sequence number is the sequence number of an ending position of the current search segment;
[0055] A hash table determination unit, used to construct a first hash table and a second hash table according to the head sequence number and the tail sequence number of the current search segment; the hash key of the first hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the first sub-warehouse; the warehouse starting position of the first sub-warehouse is the starting position of the current search segment; the warehouse ending position of the first sub-warehouse is the ending position of the target warehouse; the hash value of the first hash table is the order set in the first sub-warehouse; the hash key of the second hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the second sub-warehouse; the warehouse starting position of the second sub-warehouse is the starting position of the target warehouse; the warehouse ending position of the second sub-warehouse is the ending position of the current search segment; the hash value of the second hash table is the order set in the second sub-warehouse;
[0056] An order set determining unit is used to determine the order set of the current search segment according to the first hash table and the second hash table.
[0057] Optionally, in the aspect of batch-aggregating the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch, the first batch output module further includes:
[0058] The third ascending submodule is used to calculate the number of covering orders for each commodity in each first target order when performing the first ascending order on the orders in the order set, if there are orders with the same number of commodity types in the order set, and perform the third ascending order on the first target orders in the order set according to the number of covering orders; the first target orders are orders with the same number of commodity types.
[0059] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0060] The search segments are divided according to the warehouse locations. When the number of orders in the search segment does not reach the lower limit of the batch order and cannot be batched, the number of locations in the current search segment is increased by a set value, and the search segments are re-divided according to the number of locations after the increase; when the number of orders in the search segment reaches the lower limit of the batch order, the orders in the search segment are grouped into an order batch; when the number of orders in the search segment is greater than the upper limit of the batch order, the orders in the current search segment are batch aggregated according to the minimum number of commodity types algorithm, so that the orders with an order quantity equal to the upper limit of the batch order are determined as an order batch. That is, the present application divides the search segments so that each search segment completes the shortest walking distance for the orders in the search segment to complete the batching. The present application reverses the shortest walking distance of the batch to deduce the orders that can be picked up by the shortest distance, and groups multiple orders into one batch, thereby shortening the total picking walking path of the entire warehouse, and further shortening the walking time in the total picking time. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0062] Figure 1 It is a flow chart of the order batch aggregation method of the present invention;
[0063] Figure 2 It is a schematic diagram of the order batch aggregation system of the present invention. DETAILED DESCRIPTION
[0064] 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.
[0065] The purpose of the present invention is to provide an order batch aggregation method and system, which can reduce the total number of picking bins required to shorten the time for picking bins in the total picking time, and the sum of the walking distances of all batches is the shortest, rather than the walking distance of a single batch being the shortest.
[0066] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0067] Embodiment 1
[0068] like Figure 1 As shown, this embodiment provides an order batch aggregation method including:
[0069] Step 100, segment the warehouse in the target warehouse to obtain multiple current search segments; the current search segment includes one warehouse or multiple continuous warehouses. Specifically, when the search segment includes multiple continuous warehouses, there are repeated warehouses in two adjacent search segments, and the first search segment of the two adjacent search segments includes a warehouse before the repeated warehouse in addition to the repeated warehouse, and the second search segment of the two adjacent search segments includes a warehouse after the repeated warehouse in addition to the repeated warehouse.
[0070] Step 200, determining whether the number of storage locations in the current search segment is equal to the number of storage locations in the target warehouse.
[0071] Step 300: If the number of positions in the current search segment is not equal to the number of positions in the target warehouse, the number of orders in the current search segment is compared with the batch order upper limit.
[0072] Step 400, when the number of orders in the current search segment is greater than the batch order upper limit, batch aggregation is performed on the orders in the current search segment according to a minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as one order batch.
[0073] Step 500: When the number of orders in the current search segment is equal to the batch order lower limit, all orders in the current search segment are determined as an order batch. In a specific embodiment, the batch order lower limit may be the same as the batch order upper limit.
[0074] Step 600, when the number of orders in the current search segment is less than the lower limit of the batch order, the number of positions in the current search segment is increased by a set value, and the steps of segmenting the positions in the target warehouse to obtain multiple current search segments are returned. Specifically, the set value can be set by the staff according to the actual warehouse situation, which can be to add one position or to add all positions in a channel. In other words, when adjusting the number of positions in the search segment, the position increment of the search segment can be set according to the actual situation.
[0075] Step 700: If the number of warehouse locations in the current search segment is equal to the number of warehouse locations in the target warehouse, then all the order batches are output.
[0076] Specifically, set a warehouse as the minimum search segment (any number of warehouses can be set as the minimum search segment, and the smaller the setting value, the closer to the global optimal solution); assuming that a batch does not exceed m orders and there are 22 warehouses in a target warehouse, the specific process of search segment division is as follows:
[0077] First, divide the search segments into bins one by one: bin 0, bin 1, ..., bin 22. Search the orders contained in each search segment. If it contains k orders, generate k / m (integer part) batches (here, use the minimum number of commodity types algorithm to aggregate batches, which can reduce the batch walking distance and the number of commodity types to be picked). The order set after excluding the orders in the generated batches is used for the calculation of subsequent generated batches.
[0078] Secondly, every 2 warehouses are divided into search segments: warehouse 0 / 1, warehouse 1 / 2, ... warehouse 21 / 22. Search the orders contained in each search segment. If it contains k orders, generate k / m (take the integer part) batches (here, use the minimum number of commodity types algorithm to aggregate batches, which can reduce the batch walking distance and the number of commodity types to be picked). The order set after excluding the orders in the generated batch is used for the calculation of the subsequent generated batches.
[0079] Then, divide the search into segments of every 3 positions: Position 0 / 1 / 2, Position 1 / 2 / 3, ... Position 20 / 21 / 22. Search the orders included in each search segment, and the specific operation steps are the same as above.
[0080] …
[0081] Finally, every 22 positions are divided into search segments: positions 0-21. Search for orders in the search segment consisting of positions 0-21, and the specific steps are the same as above.
[0082] Preferably, when the number of types of goods to be picked in a batch is smaller, the number of bins required for picking is smaller, and more picking time is saved. Based on this, the step 400 specifically includes:
[0083] Step S1, determine the order set corresponding to the current search segment, and calculate the number of commodity types of each order in the order set. The number of commodity types includes commodity types and the quantity of each commodity type.
[0084] Step S2, performing a first ascending order on the orders in the order set according to the number of commodity types. When performing a first ascending order on the orders in the order set, if there are orders with the same number of commodity types in the order set, the number of covering orders for each commodity in each first target order is calculated, and the first target orders in the order set are performed a third ascending order according to the number of covering orders; the first target orders are orders with the same number of commodity types.
[0085] Step S3, determining whether the commodity inventory in the current search segment is less than the number of commodity types of the i-th order in the order set after the first ascending order, and obtaining a first determination result; i is a positive integer, and i≥1.
[0086] Step S4, if the first judgment result indicates yes, then update i to i+1, and then return to determine whether the product inventory in the current search segment is less than the number of product types in the i-th order in the order set after the first ascending order, to obtain the first judgment result.
[0087] Step S5, if the first judgment result indicates no, then the i-th order in the order set after the first ascending order is used as the order of the marked order batch, and then the commodity increment of each serial order relative to all orders in the marked order batch is calculated (for example: the increment of ABC order for order A and order AB in the batch is 1 commodity), and the serial orders are sorted in a second ascending order according to the commodity increment; the serial orders are the orders after the i-th order.
[0088] Step S6, when the commodity inventory in the current search segment is greater than or equal to the number of commodity types of the jth sequence order after the second ascending order, the jth sequence order after the second ascending order is added to the marked order batch; j is a positive integer, and j≥1. When the sequence orders are subjected to the second ascending order, if there are sequence orders with the same commodity increment, the number of repeated commodity types in each second target order is calculated (for example, the number of repeated commodities in the ABC order and the A order and the AB order in the batch is 2), and the second target orders in the order set are descended according to the number of repeated commodities; the second target orders are sequence orders with the same commodity increment. When the sequence orders are subjected to the second ascending order, if there are sequence orders with the same commodity increment and the same number of repeated commodities, the fourth ascending order is further performed according to the number of covering orders for each commodity in the sequence orders.
[0089] Step S7, determine whether the order quantity value in the marked order batch meets the set conditions to obtain a second judgment result; the set conditions are that the order quantity value in the marked order batch is greater than the lower limit of the batch order, and the order quantity value in the marked order batch is less than the upper limit of the batch order.
[0090] Step S8: If the second judgment result indicates yes, output the marked order batch.
[0091] Step S9: if the second judgment result indicates no, then return to the step of calculating the commodity increment of each serial order relative to all orders in the marked order batch, and performing a second ascending order on the serial orders according to the commodity increment.
[0092] Specifically, the step S1 includes:
[0093] Get the head sequence number and tail sequence number of the current search segment; the head sequence number is the sequence number of the starting position of the current search segment, and the tail sequence number is the sequence number of the ending position of the current search segment.
[0094] According to the head number and tail number of the current search segment, a first hash table and a second hash table are constructed; the hash key of the first hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the first sub-warehouse; the warehouse starting position of the first sub-warehouse is the starting position of the current search segment; the warehouse ending position of the first sub-warehouse is the ending position of the target warehouse; the hash value of the first hash table is the order set in the first sub-warehouse; the hash key of the second hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the second sub-warehouse; the warehouse starting position of the second sub-warehouse is the starting position of the target warehouse; the warehouse ending position of the second sub-warehouse is the ending position of the current search segment; the hash value of the second hash table is the order set in the second sub-warehouse.
[0095] The order set of the current search segment is determined according to the first hash table and the second hash table.
[0096] In a specific embodiment, the order batch aggregation method specifically includes:
[0097] Preprocessing:
[0098] (1) All picking locations in the target warehouse are sorted according to the order of picking in the target warehouse, thereby binding the locations to the serial numbers.
[0099] (2) Orders that are out of stock in the target warehouse are removed from all orders to be batch aggregated.
[0100] (3) Divide the orders into different order sets according to different business requirements of the warehouse, and perform aggregated batch calculations separately.
[0101] Regarding order aggregation:
[0102] (1) Construct two hashmap data structures for subsequent in-warehouse-section order search calculations. Among them, the key of the first hashmap is the warehouse position number (from the first warehouse position to the last warehouse position), and the value is the order set (orders with the starting warehouse position number > this warehouse position number are added to the set). The key of the second hashmap is the warehouse position number (from the first warehouse position to the last warehouse position), and the value is the order set (orders with the ending warehouse position number < this warehouse position number are added to the set). When searching for orders between warehouse positions a and b (a number < b number), use the a number to query the order set of the first hashmap, then use the b number to query the order set of the second hashmap, and then perform an intersection calculation on the above two order sets (orders that appear in both sets are the result set). The calculated order set is the orders between warehouse positions a and b. This search algorithm can reduce the time complexity from O(n^2) to O(n).
[0103] (2) Divide the target warehouse into search sections, and determine the starting and ending warehouse positions of the search sections according to the divided search sections, thereby obtaining the head number and the tail number.
[0104] Example 1: There are 5 warehouse positions, and the warehouse position numbers are from 1 to 5. The initial search section includes warehouse position 1. Each time the search section is divided, one more warehouse position is added. Then the search sections that need to be divided are as follows:
[0105] 1-1, 2-2, 3-3, 4-4, 5-5, 1-2, 2-3, 3-4, 4-5, 1-3, 2-4, 3-5, 1-4, 2-5, 1-5.
[0106] Example 2: There are 10 warehouse positions, and the warehouse position numbers are from 1 to 10. The initial search section includes warehouse position 1. Each time the search section is divided, two more warehouse positions are added. Then the search sections that need to be divided are as follows:
[0107] 1-1, 2-2, 3-3, 4-4, 5-5, 6-6, 7-7, 8-8, 9-9, 10-10, 1-3, 2-4, 3-5, 4-6, 5-7, 6-8, 7-9, 8-10, 1-5, 2-6, 3-7, 4-8, 5-9, 6-10, 1-7, 2-8, 3-9, 4-10, 1-9, 2-10, 1-10.
[0108] Each time the number of bins in a search segment is adjusted, the walking distance in the search segment and the number of items in each batch when batch aggregation is performed in the search segment need to be considered comprehensively, so that the walking distance in the search segment after division and the number of items in a single batch reach a certain weight balance. For example, when the number of bins in a search segment is large, the walking distance in the corresponding search segment increases, and the number of items in a single batch decreases accordingly.
[0109] (3) Determine the order set in the current search segment based on the head and tail sequence numbers of the current search segment and the hashmap data structure constructed in step (1).
[0110] (4) Determine whether the number of orders in the order set is greater than the upper limit of the number of orders that can be included in the batch; if not, it means that the number of products in the order set is small, then skip the search segment, determine the order set in the next search segment, and determine the number of orders in the order set; if yes, it means that the number of products in the order set is large, and select a suitable number of orders from it to group them into batches, specifically:
[0111] Calculate the number of orders covered by each product in the order set (the number of orders in which the product appears), sort the products in descending order by the number of orders, and mark the serial number of each product (from O to N) in the above order.
[0112] Arrange the orders in the order set in ascending order by the number of product types in the order. Orders with the same number of product types are arranged in ascending order by the smallest serial number of the products contained in the order.
[0113] Check whether the inventory can meet the picking requirements of the first order of the above-mentioned sorted orders. If the inventory is insufficient, remove the order from the sorted orders and remove it from the order set without subsequent calculation. At the same time, re-query whether the inventory can meet the picking requirements of the second order of the above-mentioned sorted orders, and so on, until an order is included in the batch; if the inventory meets the requirements, deduct the inventory and include the order in the batch as the first order in the batch.
[0114] Calculate the incremental product type of the remaining orders for all orders in the batch (for example, the incremental product of ABC order for orders A and AB in the batch is 1), and sort the orders in ascending order by the incremental product type. If the increment is the same, sort the orders in descending order by the number of repeated product types between the orders and all orders in the batch (for example, the number of repeated products between ABC order and orders A and AB in the batch is 2). If the increment and the number of repeated products are the same, sort the orders in ascending order by the smallest serial number of the products included in the orders (excluding the product types included in all orders in the batch).
[0115] Check whether the inventory can meet the picking of the first order of the above sorted orders. If the inventory is insufficient, remove the order from the sorted orders, and re-query whether the inventory can meet the picking of the second order of the above sorted orders, and so on, until an order is included in the batch; if the inventory meets the requirements, deduct the inventory and include the order in the batch as an order in the batch.
[0116] (5) Determine whether the number of orders in the batch reaches the upper limit of the number of orders in the batch. If it reaches the upper limit of the number of orders in the batch, the batch is output; if it does not reach it, the orders in the last batch that is less than the upper limit of the number of orders in the batch calculated above are deducted from the inventory (the picking inventory is added back), and then the orders removed from the order set in the last batch calculation of the batch calculation are put back into the order set, so that the orders that do not meet the order set batch can be used for the calculation of order aggregation in the subsequent search segment.
[0117] (6) When all search segments are searched, batch aggregation ends and all batch aggregation results are output. The above completes order batch aggregation.
[0118] Embodiment 2
[0119] like Figure 2 As shown, this embodiment provides an order batch aggregation system, including:
[0120] The search segment module 101 is used to segment the locations in the target warehouse to obtain multiple current search segments; the current search segment includes one location or multiple consecutive locations.
[0121] The storage location quantity determination module 201 is used to determine whether the storage location quantity in the current search segment is equal to the storage location quantity of the target warehouse.
[0122] The order quantity comparison module 301 is used to compare the order quantity in the current search segment with the batch order upper limit when the number of positions in the current search segment is not equal to the number of positions in the target warehouse.
[0123] The first batch output module 401 is used to batch aggregate the orders in the current search segment according to a minimum number of commodity types algorithm when the number of orders in the current search segment is greater than an upper limit value of batch orders, so as to determine the orders whose order quantity is equal to the upper limit value of batch orders as an order batch.
[0124] The second batch output module 501 is used to determine all orders in the current search segment as an order batch when the number of orders in the current search segment is equal to the lower limit of the batch order.
[0125] The third batch output module 601 is used to add a set value to the number of warehouses in the current search segment when the number of orders in the current search segment is less than the lower limit of the batch order, and return to the step of segmenting the warehouses in the target warehouse to obtain multiple current search segments.
[0126] The fourth batch output module 701 is used to output all the order batches when the number of storage locations in the current search segment is equal to the number of storage locations in the target warehouse.
[0127] Specifically, in terms of batching the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch, the first batch output module 401 specifically includes:
[0128] The commodity category calculation submodule is used to determine the order set corresponding to the current search segment and calculate the number of commodity categories of each order in the order set.
[0129] The first ascending submodule is used to perform a first ascending order on the orders in the order set according to the number of commodity types.
[0130] The third ascending submodule is used to calculate the number of covering orders for each commodity in each first target order when performing the first ascending order on the orders in the order set, if there are orders with the same number of commodity types in the order set, and perform the third ascending order on the first target orders in the order set according to the number of covering orders; the first target orders are orders with the same number of commodity types.
[0131] The first judgment submodule is used to judge whether the commodity inventory in the current search segment is less than the number of commodity types of the i-th order in the order set after the first ascending order, and obtain a first judgment result; i is a positive integer, and i≥1.
[0132] The serial number updating submodule is used to update i to i+1 when the first judgment result indicates yes, and then return to determine whether the commodity inventory in the current search segment is less than the number of commodity types of the i-th order in the order set after the first ascending order, to obtain the first judgment result.
[0133] The second ascending submodule is used to, when the first judgment result indicates no, take the i-th order in the order set after the first ascending order as the order of the marked order batch, then calculate the commodity increment of each serial order relative to all orders in the marked order batch, and perform a second ascending order on the serial orders according to the commodity increment; the serial orders are orders that are arranged after the i-th order.
[0134] The batch aggregation submodule is used to add the jth sequence order after the second ascending order to the marked order batch when the commodity inventory in the current search segment is greater than or equal to the number of commodity types of the jth sequence order after the second ascending order; j is a positive integer, and j≥1.
[0135] The second judgment submodule is used to judge whether the order quantity value in the marked order batch meets the set conditions to obtain a second judgment result; the set conditions are that the order quantity value in the marked order batch is greater than the lower limit value of the batch order and less than the upper limit value of the batch order.
[0136] The batch output submodule is used to output the marked order batch when the second judgment result indicates yes.
[0137] The step return submodule is used to return to the step of calculating the commodity increment of each serial order relative to all orders in the marked order batch, and performing a second ascending order on the serial orders according to the commodity increment when the second judgment result indicates no.
[0138] Furthermore, in determining the order set corresponding to the current search segment, the commodity category calculation submodule specifically includes:
[0139] The head and tail sequence number determination unit is used to obtain the head sequence number and tail sequence number of the current search segment; the head sequence number is the sequence number of the starting position of the current search segment, and the tail sequence number is the sequence number of the ending position of the current search segment.
[0140] A hash table determination unit is used to construct a first hash table and a second hash table according to the head number and the tail number of the current search segment; the hash key of the first hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the first sub-warehouse; the warehouse starting position of the first sub-warehouse is the starting position of the current search segment; the warehouse ending position of the first sub-warehouse is the ending position of the target warehouse; the hash value of the first hash table is the order set in the first sub-warehouse; the hash key of the second hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the second sub-warehouse; the warehouse starting position of the second sub-warehouse is the starting position of the target warehouse; the warehouse ending position of the second sub-warehouse is the ending position of the current search segment; the hash value of the second hash table is the order set in the second sub-warehouse.
[0141] An order set determining unit is used to determine the order set of the current search segment according to the first hash table and the second hash table.
[0142] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0143] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for aggregating order batches, characterized in that: The order batch aggregation method comprises: Segmenting the locations in the target warehouse to obtain a plurality of current search segments; the current search segment includes one location or a plurality of consecutive locations; Determine whether the number of warehouses in the current search segment is equal to the number of warehouses in the target warehouse; If the number of positions in the current search segment is not equal to the number of positions in the target warehouse, then comparing the number of orders in the current search segment with the batch order upper limit; When the number of orders in the current search segment is greater than the upper limit of batch orders, batch aggregation is performed on the orders in the current search segment according to a minimum number of commodity types algorithm, so as to determine the orders whose order quantity is equal to the upper limit of batch orders as one order batch; When the number of orders in the current search segment is equal to the lower limit of the batch order, all orders in the current search segment are determined as an order batch; When the number of orders in the current search segment is less than the lower limit of the batch order, the number of positions in the current search segment is increased by a set value, and the positions in the target warehouse are segmented to obtain multiple current search segments; If the number of storage locations in the current search segment is equal to the number of storage locations in the target warehouse, all the order batches are output.
2. The order batch aggregation method according to claim 1, characterized in that: The batch aggregation of the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch specifically includes: Determine the order set corresponding to the current search segment, and calculate the number of commodity types of each order in the order set; Arrange the orders in the order set in a first ascending order according to the number of commodity types; Determine whether the inventory of goods in the current search segment is less than the number of goods types of the i-th order in the order set after the first ascending order, and obtain a first determination result; i is a positive integer, and i≥1; If the first judgment result indicates yes, then update i to i+1, and then return to the step of judging whether the product inventory in the current search segment is less than the number of product types of the i-th order in the order set after the first ascending order, to obtain the first judgment result; If the first judgment result indicates no, the i-th order in the order set after the first ascending order is used as the order of the marked order batch, and then the commodity increment of each sequence order relative to all orders in the marked order batch is calculated, and the sequence orders are subjected to a second ascending order according to the commodity increment; the sequence orders are the orders after the i-th order; When the inventory of goods in the current search segment is greater than or equal to the number of goods types of the j-th sequence order after the second ascending order, the j-th sequence order after the second ascending order is added to the marked order batch; j is a positive integer, and j≥1; Determine whether the order quantity value in the marked order batch meets the set condition, and obtain a second judgment result; the set condition is that the order quantity value in the marked order batch is greater than the batch order lower limit value, and the order quantity value in the marked order batch is less than the batch order upper limit value; If the second judgment result indicates yes, outputting the marked order batch; If the second judgment result indicates no, the process returns to the step of calculating the commodity increment of each serial order relative to all orders in the marked order batch, and performing a second ascending order on the serial orders according to the commodity increment.
3. The order batch aggregation method according to claim 2, characterized in that: The determining the order set corresponding to the current search segment specifically includes: Obtain the head sequence number and tail sequence number of the current search segment; the head sequence number is the sequence number of the starting position of the current search segment, and the tail sequence number is the sequence number of the ending position of the current search segment; According to the head number and tail number of the current search segment, a first hash table and a second hash table are constructed; the hash key of the first hash table is the serial number pair from the warehouse starting position to the warehouse ending position of the first sub-warehouse; the warehouse starting position of the first sub-warehouse is the starting position of the current search segment; the warehouse ending position of the first sub-warehouse is the ending position of the target warehouse; the hash value of the first hash table is the order set in the first sub-warehouse; the hash key of the second hash table is the serial number pair from the warehouse starting position to the warehouse ending position of the second sub-warehouse; the warehouse starting position of the second sub-warehouse is the starting position of the target warehouse; the warehouse ending position of the second sub-warehouse is the ending position of the current search segment; the hash value of the second hash table is the order set in the second sub-warehouse; The order set of the current search segment is determined according to the first hash table and the second hash table.
4. The order batch aggregation method according to claim 2, characterized in that: The step of batching the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the upper limit of the batch orders as an order batch also includes: When performing a first ascending sort on the orders in the order set, if there are orders with the same number of commodity types in the order set, the number of covering orders for each commodity in each first target order is calculated, and the first target orders in the order set are performed a third ascending sort according to the number of covering orders; the first target orders are orders with the same number of commodity types.
5. The order batch aggregation method according to claim 2, characterized in that: The step of batching the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the upper limit of the batch orders as an order batch also includes: When performing a second ascending order on the serial orders, if there are serial orders with the same commodity increment, the number of repeated types of commodities in each second target order is calculated, and the second target orders in the order set are descended according to the number of repeated types; the second target orders are serial orders with the same commodity increment.
6. The order batch aggregation method according to claim 1, characterized in that: Before segmenting the warehouse locations in the target warehouse to obtain a plurality of current search segments, the order batch aggregation method further includes: Orders that are out of stock in the target warehouse are removed from all orders to be batch aggregated.
7. An order batch aggregation system, characterized in that: The order batch aggregation system comprises: A search segment module, used to segment the locations in the target warehouse to obtain multiple current search segments; the current search segment includes one location or multiple consecutive locations; A storage location quantity determination module, used to determine whether the storage location quantity in the current search segment is equal to the storage location quantity of the target warehouse; An order quantity comparison module, configured to compare the order quantity in the current search segment with the batch order upper limit when the number of positions in the current search segment is not equal to the number of positions in the target warehouse; A first batch output module, configured to, when the number of orders in the current search segment is greater than an upper limit of batch orders, aggregate the orders in the current search segment in batches according to a minimum number of commodity types algorithm, so as to determine the orders whose number of orders is equal to the upper limit of batch orders as one order batch; A second batch output module, configured to determine all orders in the current search segment as an order batch when the number of orders in the current search segment is equal to a batch order lower limit; A third batch output module is used for, when the number of orders in the current search segment is less than the lower limit of the batch order, adding a set value to the number of warehouses in the current search segment, and returning to the step of segmenting the warehouses in the target warehouse to obtain multiple current search segments; The fourth batch output module is used to output all the order batches when the number of storage locations in the current search segment is equal to the number of storage locations in the target warehouse.
8. The order batch aggregation system according to claim 7, characterized in that: In terms of batching the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch, the first batch output module specifically includes: A commodity category calculation submodule, used to determine the order set corresponding to the current search segment, and calculate the number of commodity categories of each order in the order set; A first ascending submodule, used to perform a first ascending order on the orders in the order set according to the number of commodity types; The first judgment submodule is used to judge whether the inventory of goods in the current search segment is less than the number of types of goods in the i-th order in the order set after the first ascending order, and obtain a first judgment result; i is a positive integer, and i≥1; A sequence number updating submodule, configured to update i to i+1 when the first judgment result indicates yes, and then return to the step of judging whether the commodity inventory in the current search segment is less than the number of commodity types of the i-th order in the order set after the first ascending order, to obtain the first judgment result; A second ascending submodule is used for, when the first judgment result indicates no, taking the i-th order in the order set after the first ascending order as the order of the marked order batch, then calculating the commodity increment of each sequence order relative to all orders in the marked order batch, and performing a second ascending order on the sequence orders according to the commodity increment; the sequence orders are orders arranged after the i-th order; The batch aggregation submodule is used to add the jth sequence order after the second ascending order to the marked order batch when the inventory of goods in the current search segment is greater than or equal to the number of product types of the jth sequence order after the second ascending order; j is a positive integer, and j≥1; A second judgment submodule is used to judge whether the order quantity value in the marked order batch meets the set condition to obtain a second judgment result; the set condition is that the order quantity value in the marked order batch is greater than the batch order lower limit value, and the order quantity value in the marked order batch is less than the batch order upper limit value; a batch output submodule, configured to output the marked order batch when the second judgment result indicates yes; The step return submodule is used to return to the step of calculating the commodity increment of each serial order relative to all orders in the marked order batch, and performing a second ascending order on the serial orders according to the commodity increment when the second judgment result indicates no.
9. The order batch aggregation system according to claim 8, characterized in that: In determining the order set corresponding to the current search segment, the commodity category calculation submodule specifically includes: A head and tail sequence number determination unit, used to obtain a head sequence number and a tail sequence number of a current search segment; the head sequence number is the sequence number of a starting position of the current search segment, and the tail sequence number is the sequence number of an ending position of the current search segment; A hash table determination unit, used to construct a first hash table and a second hash table according to the head sequence number and the tail sequence number of the current search segment; the hash key of the first hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the first sub-warehouse; the warehouse starting position of the first sub-warehouse is the starting position of the current search segment; the warehouse ending position of the first sub-warehouse is the ending position of the target warehouse; the hash value of the first hash table is the order set in the first sub-warehouse; the hash key of the second hash table is the sequence number pair from the warehouse starting position to the warehouse ending position of the second sub-warehouse; the warehouse starting position of the second sub-warehouse is the starting position of the target warehouse; the warehouse ending position of the second sub-warehouse is the ending position of the current search segment; the hash value of the second hash table is the order set in the second sub-warehouse; An order set determining unit is used to determine the order set of the current search segment according to the first hash table and the second hash table.
10. The order batch aggregation system according to claim 8, characterized in that: In the aspect of batch-aggregating the orders in the current search segment according to the minimum number of commodity types algorithm to determine the orders whose order quantity is equal to the batch order upper limit as an order batch, the first batch output module further includes: The third ascending submodule is used to calculate the number of covering orders for each commodity in each first target order when performing the first ascending order on the orders in the order set, if there are orders with the same number of commodity types in the order set, and perform the third ascending order on the first target orders in the order set according to the number of covering orders; the first target orders are orders with the same number of commodity types.
Citation Information
Patent Citations
Order aggregation method and system for shortening warehouse cargo allocation walking path
CN112036635A
Automated warehouse system and method for optimized batch picking
WO2020006010A1
