WO2018137330A1 - Order processing method, device, server and computer storage medium - Google Patents
Order processing method, device, server and computer storage medium Download PDFInfo
- Publication number
- WO2018137330A1 WO2018137330A1 PCT/CN2017/096000 CN2017096000W WO2018137330A1 WO 2018137330 A1 WO2018137330 A1 WO 2018137330A1 CN 2017096000 W CN2017096000 W CN 2017096000W WO 2018137330 A1 WO2018137330 A1 WO 2018137330A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- order
- group
- orders
- distance
- cluster
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
- G06Q10/08355—Routing methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
- G06Q10/0838—Historical data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Managing shopping lists, e.g. compiling or processing purchase lists
- G06Q30/0635—Managing shopping lists, e.g. compiling or processing purchase lists replenishment orders; recurring orders
Definitions
- the present disclosure relates to the field of Internet technologies, and in particular, to an order processing method, apparatus, server, and computer storage medium.
- O2O Online To Offline
- a current logistics scheduling method is: for a logistics service provider, a plurality of distribution centers are preset in a city, and each distribution center corresponds to a certain coverage area, thereby, for any distribution center A
- the delivery address that is, the order of the consignee's address within its coverage, will be dispatched to the distribution center A for distribution processing.
- the dispatchers are often based on manual experience, and some orders that are close to the delivery address are assigned to the corresponding delivery personnel for distribution. This may result in a large number of orders that some delivery personnel need to deliver, and a small amount of orders delivered by some delivery personnel.
- the distribution method based on manual experience may also result in the delivery address of the order assigned to a delivery person. It is closer in distance, so that the delivery personnel need to spend more time and travel longer distances to complete the delivery. Therefore, the current logistics scheduling method makes the utilization of distribution capacity low.
- the embodiments of the present disclosure provide an order processing method, apparatus, server, and computer storage medium for improving the utilization rate of the delivery capacity.
- an order processing method including:
- the obtaining the actual packet capacity according to the total number of the multiple orders includes:
- the actual packet capacity is determined according to the total number of the plurality of orders and the preset packet capacity such that the actual packet capacity is close to the preset packet capacity.
- the preset packet capacity includes a preset minimum packet capacity and a preset maximum packet capacity.
- Determining the actual packet capacity according to the total number of the multiple orders and the preset packet capacity, so that the actual packet capacity is close to the preset packet capacity including:
- the actual packet capacity is obtained according to the following conditions, according to the total number of the multiple orders, the preset minimum packet capacity, and the preset maximum packet capacity:
- the current cluster center order is selected according to the distance between the respective delivery addresses of the plurality of orders and the collection and delivery address, including:
- Unscheduled orders are filtered out from the plurality of orders according to cluster state flags associated with each of the plurality of orders;
- the clustering processing is performed on the un-clustered order according to the distance between the un-clustering order of the plurality of orders and the delivery address of the cluster center order, including:
- the un-clustered order is clustered according to the distance between the un-cluster order of the plurality of orders and the delivery address of the order in the order group corresponding to the cluster center order.
- the clustering is performed on the un-clustered order according to the distance between the delivery addresses of the orders in the order group corresponding to the clustering center order in the plurality of orders, including:
- the clustering cutoff condition includes that the order quantity of the order group reaches the actual packet capacity.
- an order processing apparatus including:
- An obtaining module configured to obtain an actual packet capacity according to a total number of multiple orders, where the multiple orders correspond to the same collection and distribution address;
- a selection module configured to select a current cluster center order according to a distance between a delivery address of the plurality of orders and the collection address;
- a clustering processing module configured to cluster the un-clustered orders according to the actual grouping capacity according to a distance between an un-clustering order of the plurality of orders and a delivery address of the cluster center order, An order group corresponding to the cluster center order is determined.
- the above-mentioned order processing apparatus includes a processor and a memory for storing a program supporting the order processing apparatus to execute the order processing method in the above first aspect, the processor being configured to use Executing the program stored in the memory.
- the order processing device can also include a communication interface for the order processing device to communicate with other devices or communication networks.
- an embodiment of the present disclosure provides a server, including a memory and a processor, where
- the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are for execution by the processor;
- the processor is configured to: obtain an actual packet capacity according to a total number of multiple orders, where the multiple orders correspond to the same collection address; and select a current aggregation according to a distance between a delivery address of the plurality of orders and the collection address a class center order; based on the actual grouping capacity, clustering the unclustered orders according to a distance between an un-clustering order of the plurality of orders and a delivery address of the cluster center order to determine The order group corresponding to the cluster center order.
- an embodiment of the present disclosure provides a computer storage medium for storing computer software instructions for use in an order processing apparatus, including a program for executing the order processing method in the first aspect described above.
- the order processing method and apparatus when there are multiple orders in a certain distribution place and need to be distributed, firstly, the actual grouping capacity of each order group is adaptively determined according to the total order quantity, and then the actual grouping capacity is used as a constraint. , grouping multiple orders.
- the current cluster center order is first selected based on the distance between the respective delivery addresses of the plurality of orders and the distribution address, and the cluster center order causes an order group, and further, according to the unscheduled orders in the plurality of orders
- a plurality of un-clustered orders are clustered with the distance between the distribution addresses of the cluster center orders to obtain orders in the order group caused by the cluster center order, and an order group is formed.
- the order within each group is based on the distance between the un-cluster order and the delivery address of the cluster center order.
- the clustering determines that the distribution range of different groups is significantly different, the delivery address of the order within the same group has a strong agglomeration, and the group size is adapted to the order quantity, thereby ensuring that each delivery person is allocated.
- the order group size is matched with the actual capacity and the distribution range is relatively concentrated. Overall, the utilization rate of the delivery capacity can be improved.
- FIG. 1 is a flowchart of Embodiment 1 of an order processing method according to an embodiment of the present disclosure
- Figure 1b - Figure 1f is a schematic diagram of a grouping process corresponding to the embodiment shown in Figure 1a;
- Embodiment 2a is a flowchart of Embodiment 2 of an order processing method according to an embodiment of the present disclosure
- FIG. 2b-2c is a schematic diagram of an order replenishment process corresponding to the embodiment shown in FIG. 2a;
- FIG. 3 is a flowchart of Embodiment 3 of an order processing method according to an embodiment of the present disclosure
- 3b-3d are schematic diagrams of an order replenishment process corresponding to the embodiment shown in FIG. 3a;
- Embodiment 4a is a flowchart of Embodiment 4 of an order processing method according to an embodiment of the present disclosure
- 4b-4d are schematic diagrams of an order adjustment process corresponding to the embodiment shown in FIG. 4a;
- FIG. 5 is a flowchart of Embodiment 5 of an order processing method according to an embodiment of the present disclosure
- FIG. 6 is a schematic structural diagram of Embodiment 1 of an order processing apparatus according to an embodiment of the present disclosure
- FIG. 7 is a schematic structural diagram of Embodiment 2 of an order processing apparatus according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of Embodiment 3 of an order processing apparatus according to an embodiment of the present disclosure.
- FIG. 9 is a schematic structural diagram of Embodiment 4 of an order processing apparatus according to an embodiment of the present disclosure.
- FIG. 10 is a schematic structural diagram of Embodiment 5 of an order processing apparatus according to an embodiment of the present disclosure.
- FIG. 11 is a schematic structural diagram of Embodiment 6 of an order processing apparatus according to an embodiment of the present disclosure.
- first, second, third, etc. may be used to describe XXX in embodiments of the present disclosure, these XXX should not be limited to these terms. These terms are only used to distinguish XXX.
- the first XXX may also be referred to as a second XXX without departing from the scope of the embodiments of the present disclosure.
- the second XXX may also be referred to as a first XXX.
- the words “if” and “if” as used herein may be interpreted to mean “when” or “when” or “in response to determining” or “in response to detecting.”
- the phrase “if determined” or “if detected (conditions or events stated)” may be interpreted as “when determined” or “in response to determination” or “when detected (stated condition or event) “Time” or “in response to a test (condition or event stated)”.
- FIG. 1 is a flowchart of Embodiment 1 of an order processing method according to an embodiment of the present disclosure.
- the order processing method provided by this embodiment may be executed by an order processing apparatus, and the order processing apparatus may be implemented as software or implemented as software.
- the order processing device can be integrated in a device on the side of the logistics dispatch platform, such as a server. As shown in FIG. 1a, the method includes the following steps:
- cluster the un-clustered orders according to the distance between the un-cluster order of the plurality of orders and the delivery address of the cluster center order to determine an order group corresponding to the cluster center order.
- the order in the embodiment of the present disclosure may be a courier order.
- the courier order will experience at least one distribution center, so that when a certain distribution center is reached, the order will be associated with the collection address. Therefore, for a collection and distribution address, based on this, an order corresponding to the collection and delivery address can be obtained, and the total number of the plurality of orders is the total number of orders corresponding to the collection and delivery address in a certain period of time.
- the order corresponding to each of the collection and distribution addresses may be counted at a certain time interval, thereby obtaining a plurality of orders to be allocated corresponding to the same collection and distribution address, and in the following embodiments of the present disclosure, only one
- the order processing method is described by taking a plurality of orders corresponding to the collection and delivery addresses as an example.
- the actual number of orders for each order group is determined in real time in accordance with the current order quantity.
- the correspondence between the order quantity interval and the actual packet capacity may be preset, so that the actual packet capacity currently used is determined based on the correspondence relationship and the interval in which the current order quantity is located.
- the obtaining of the actual packet capacity may be implemented as follows:
- the actual packet capacity is determined based on the total number of multiple orders and the preset packet capacity such that the actual packet capacity is close to the preset packet capacity.
- the preset packet capacity may include a preset minimum packet capacity and a preset maximum packet capacity, that is, a packet capacity interval is formed by the preset minimum packet capacity and the preset maximum packet capacity, thereby, in a specific
- the actual packet capacity may be obtained according to the total number of multiple orders, the preset minimum packet capacity, and the preset maximum packet capacity, by combining the following conditions: the remainder of dividing the total number of multiple orders by the actual packet capacity is greater than the preset minimum packet. Capacity, where the actual packet capacity is an integer taken between the preset minimum packet capacity and the preset maximum packet capacity.
- the upper and lower limits of the capacity of any order group may be preset, and the actual packet capacity is taken from the upper and lower limits.
- the total number of the above multiple orders is divided by the remainder of the actual grouping capacity, that is, the total number of orders is modulo the actual grouping capacity.
- the actual packet capacity may be a minimum capacity value such that the remainder is greater than the minimum packet capacity, that is, assuming that a plurality of capacity values between the upper and lower limits of the capacity can satisfy the condition, a minimum capacity value that satisfies the condition is taken.
- the practical significance of the above conditions is that the total number of orders for the above multiple orders is likely not to be an integral multiple of the actual grouping capacity, that is, the multiple orders are often not evenly divided into n order groups.
- the above-mentioned remainder is as large as possible to be greater than the minimum packet capacity, in order to obtain as many order orders as possible in the order group obtained from the plurality of orders in sequence according to the actual packet capacity, so as to be effective for the delivery capacity.
- the use has a positive effect, because it can make the order quantity of each distribution personnel to be balanced to a certain extent, avoiding the imbalance of the amount of orders received by some distribution personnel and the unbalanced load of some distribution personnel.
- the preset packet capacity may be determined by assuming that the delivery tools of the respective delivery personnel are the same, that is, each delivery tool has the same transportation capability, such as having the same volume size, and capable of carrying the total
- the weight is the same.
- the corresponding number of items to be delivered, the weight of the item, the volume of the item, and the like are extracted, and then the distribution is determined according to the total weight of the delivery tool, such as the upper limit of the weight of the delivery tool.
- the average order quantity that the tool can carry which can be used as a preset grouping capacity.
- the final preset packet capacity may be expressed differently. For example, in addition to determining the average order quantity that the delivery tool can carry, it is also possible to statistically determine the minimum order quantity that the delivery tool can carry, and the maximum number.
- the order quantity is the above minimum packet capacity and maximum packet capacity.
- each order group obtained by the final grouping in the embodiment of the present disclosure may have the same packet capacity, that is, have the actual packet capacity determined above, but may also be that each order group may have different packets.
- Capacity such as the packet capacity of one or several order groups, is the result of fine-tuning based on the actual packet capacity. For example, for an order group, the fine-tuning of the grouping capacity is based on the following: when the order group is generated, it is found that the order capacity in the order group has not reached the limit of the actual packet capacity, the order The total weight and/or total volume corresponding to the order within the group has reached the limit of the weight and/or volume of the delivery tool.
- the packet capacity within the order group will be less than the actual packet capacity limit; conversely, if found
- the order capacity in the order group has reached the above limit of the actual grouping capacity, the total weight and/or the total volume corresponding to the order in the order group has not reached the limit of the weight and/or volume of the delivery tool.
- the packet capacity within the order group can exceed the limit of the actual packet capacity.
- the actual packet capacity in this embodiment can be understood as an estimated value.
- the order capacity of each order group may be floating based on the estimated value.
- the overall idea of grouping multiple orders is: a division generation process for each order group: first selecting a cluster center order from the cluster The central order leads to an order group; further, based on the cluster center order, the order is continuously added to the order group, that is, the cluster processing in the order group is performed until the order group satisfies the above-mentioned actual grouping capacity limit, or Meet the clustering cutoff criteria for other order groups. After that, the division generation process of the next order group is triggered until the above multiple orders are grouped.
- the selection basis of the cluster center order is selected according to the distance between the delivery address of the order and the collection and distribution address.
- the order for joining the order in the above order group is based on the distance between the delivery addresses between the unclustered order and the cluster center order.
- the order of the order in the order group that is drawn may be based on the delivery address of the other order that has not been clustered to an order group and the order of the cluster center. Select between the delivery addresses between the delivery addresses; in addition, further based on the delivery addresses of these other orders that have not been clustered to an order group and the order groups that have been clustered to the cluster center order The distance between the delivery addresses of the orders within the selection is to be described in detail later.
- the distance between the un-cluster order of the plurality of orders corresponding to the collection address and the delivery address of the cluster center order may be The order is clustered to determine the order group corresponding to the cluster center order; in another alternative, the delivery address of the order in the order group corresponding to the unclustered order and the cluster center order in the plurality of orders may be Inter-distance, clustering un-cluster orders.
- the un-cluster order refers to each of the plurality of orders that have not been clustered into an order group.
- the proximity from the collection address to the remote collection address may be And the far way to select the cluster center order in turn, or to select the cluster center order in turn from the far and near way from the collection address to the collection address.
- one or more cluster center orders may be selected at one time, for example, two cluster center orders are selected at a time.
- the distribution of the plurality of cluster center orders The addresses should be far apart from each other. Therefore, in practical applications, the distance threshold between the delivery addresses of different cluster center orders can be reasonably set to make reasonable selection of different cluster center orders.
- the cluster status flag associated with each of the current orders may be firstly selected to filter out the multiple orders.
- the class order, and further, according to the distance between the respective delivery addresses of the un-cluster orders and the collection and distribution addresses, the orders farthest from the collection and distribution addresses are selected from the un-cluster orders as the current cluster center order.
- the distance matrix reflecting the distance between the distribution address and the delivery address of each order may be constructed in advance. Therefore, for the first order group, an order can be selected from the distance matrix as the first cluster center order, for example, the order corresponding to the maximum distance value is used as the first cluster center order, and then the The aggregation process of the order in the first order group corresponding to the first cluster center order. And, in the process, optionally, the added order may be marked as clustered each time an order is determined to join the first order group.
- the distance value of the unmarked, un-clustered order and the cluster center order can be filtered from the distance matrix based on the mark. And then determine the second cluster center order, for example, the order corresponding to the maximum distance value as the second cluster center order.
- the selection process of subsequent cluster center orders is similar, and will not be described again.
- the delivery address of order a is farthest from the collection address, so the current order a is currently selected as the cluster center order, and it is assumed that the order group led by the cluster center order a is represented as order group 1. Next, the order clustering process for order group 1 needs to be performed.
- the order may be constructed for each order in advance.
- the distance matrix between the corresponding delivery addresses For an order, the meaning of the distance matrix between the corresponding delivery addresses is: the distance between the delivery address of the order and the delivery address of the other order, that is, the distance between the delivery addresses, so as to be followed by the distance matrix between the delivery addresses.
- Clustering processing each element in the distance matrix of each order's delivery address, that is, each distance value, may also be associated with a cluster status flag. If the corresponding order has been clustered to an order group, the flag is set to The cluster status indicator is set, otherwise, it is set to the uncluster status indicator.
- the cluster processing mode of the order group corresponding to the order based on the distance matrix between the delivery addresses corresponding to the cluster center order, and the cluster state flag associated with each distance value in the combination matrix, it can be known that the current un-cluster orders are relative The distance between the delivery addresses of the cluster center order; further, the actual grouping capacity is the order quantity constraint in the order group, and the n orders with the largest distance value selected from the ungrouped orders are added to the order group, n is taken The value is the actual packet size minus one.
- the order group corresponding to the cluster center order is generated.
- the shipping address of the cluster center order a can be used.
- select from the other orders b, c, d, e, f the two orders whose delivery address is closest to the delivery address of the cluster center order a assuming that the order b, c is added to the order group 1, and thus, the order Group 1 includes three orders order a, b, and c.
- the timing of constructing the distance matrix between delivery addresses corresponding to the above-mentioned order is not limited to the initial situation of the foregoing example, and the distance between the delivery addresses between the order and other orders is not limited to one time.
- the calculation is completed.
- the cluster center order leads to an order group, and constructs a distance matrix between delivery addresses corresponding to the cluster center order, so as to select one or more to join the order group based on the matrix.
- the distance matrix between the delivery addresses corresponding to the order just joined to the order group can be reconstructed at this time, and at this time, the order is just added.
- the distance matrix between the delivery addresses corresponding to the group order may only include the distance between the delivery address and the delivery address of the un-cluster order, and the distance between the delivery address and the delivery address of the order in the order group may not be calculated.
- the embodiment of the present disclosure further provides another optional method for clustering the order in the order group, that is, the un-cluster order and the cluster center order according to the plurality of orders mentioned above.
- the distance between the delivery addresses of the orders in the corresponding order group is clustered for the un-clustered orders.
- the specific process can be:
- the order that is closest to the order group is selected from the current un-cluster order
- the clustering cutoff condition includes: the number of orders of the current order group reaches the actual packet capacity.
- the order closest to the order group refers to the unscheduled order with the shortest distance between the delivery addresses among the plurality of un-clustered orders that are closest to the delivery address of each order in the order group.
- order group 1 contains only order a. Since all other orders are currently in an un-clustering state, that is, they are all un-clustered orders, they can be selected from the current un-clustering orders b, c, d, e, and f based on the distance matrix between the delivery addresses of order a.
- the order closest to order a that is, the order closest to the current order group 1.
- the selected nearest order relative to the current order group is referred to as an order to be aggregated, indicating the meaning of the order waiting to be aggregated into the current order group.
- the order can be selected from the un-cluster order.
- the cluster status flag of the order b becomes the clustered state, and after the ungrouped order is updated, the unclustered order becomes the order c, d, e, f.
- the number of orders in the current order group 1 has reached the actual grouping capacity 3. Since the current order group 1 includes only orders a and b, and has not yet reached 3 orders, the next iteration process is performed.
- the current order group 1 includes orders a and b, and the current un-cluster order includes orders c, d, e, f.
- the current un-cluster order includes orders c, d, e, f.
- the order a in 1 determines the closest un-clustering distance between the delivery address and the delivery address of the order a from the current un-clustered orders c, d, e, and f based on the distance matrix between the corresponding delivery addresses.
- Order assuming that the distance between the delivery address of order c and the delivery address of order a is smaller than the delivery addresses of other un-clustered orders, ie, d, e, and f, respectively.
- the distance between the delivery addresses of a determines that the order c is the closest order to the order a.
- the current un-cluster order c, d, e, f is determined between the delivery address and the delivery address of the order b.
- the distance from the nearest un-clustered order assuming that the distance between the delivery address of order d and the delivery address of order b is less than the delivery address of other un-clustered orders, ie, c, e, f, and the delivery address of order b Distance determines that order d is the closest order to order b. Then, at this time, for the current order group 1, the orders c, d constitute a candidate order set, and the closest to-order order with respect to the current order group 1 is to select the to-be-integrated order from the candidate order set. , joined to order group 1.
- the order of the order that is closest to the current order group 1 to be aggregated is based on: the order corresponding to the minimum distance between the shortest delivery addresses corresponding to each order in the current order group 1 is the latest relative to the current order group 1 The order will also be placed in the order.
- the distance between the shortest delivery addresses is relative to the order.
- the distance between the shortest delivery addresses corresponding to an order refers to: the delivery address of the order and the current delivery address of each un-cluster order.
- the shortest distance between the distances For example, for the order a in the current order group 1, the ungrouped order c, d, e, f, the distance between the delivery address of the order c and the delivery address of the order a compared to the orders d, e, f The shortest, so it is called the shortest delivery address distance.
- the minimum of the distance between the shortest delivery addresses is for the order group.
- each order included in the current order group has a shortest delivery address distance, and the minimum value refers to these shortest delivery addresses.
- the minimum of the distances between For the order group 1 in the above example, since the order quantity in the current order group 1 is not 1, that is, for each of the orders, there is a shortest delivery address distance corresponding thereto, and the distance between all the shortest delivery addresses is The unclustered order corresponding to the minimum value is the current order to be aggregated into the order group, that is, the order closest to the current order group.
- the distance between the order a and the shortest delivery address of the order c is D1
- the distance between the shortest delivery address of the order b and the order d is D2
- D1 is less than D2
- the order c is the current to-be-integrated order, and Join in order group 1, as shown in Figure 1d.
- the cluster status flag of the order c becomes the clustered state
- the un-cluster order becomes the order d, e, and f.
- the order a is used as the cluster center order.
- Order group 1 is grouped.
- the un-cluster order is the order d, e, f. It should be noted that if the actual packet capacity is assumed to be 4, then for the order group 1, the current order group 1 includes orders a, b, and c, and has not reached the capacity limit of 4 orders, and then continues to execute.
- An iterative process, the third iteration process is similar to the second iteration process.
- the next cluster center order selection can be made, and the order clustering process of the order group 2 led by the following cluster center order is as shown in FIG. 1e, assuming that the current cluster is not clustered. If the order is order d, e, f, then according to these un-cluster orders and the collection address The distance from which the order farthest from the collection address is d is selected, and the order d is taken as the second cluster center order, and the order group 2 is drawn. Further, referring to the foregoing description of the process of clustering orders to the order group 1, the order is continuously added to the order group 2, assuming that the cluster cutoff condition is that the number of orders in the order group reaches the actual grouping capacity 3, as shown in FIG. 1f, Order group 2 includes three orders d, e, and f. At this point, all orders have been grouped.
- the latest order with respect to an order group or an order set mentioned in the following embodiments may be determined according to the following manner: first, corresponding to each order in the group/set The minimum distance value of the un-cluster state flag is determined in the distance matrix between the delivery addresses, and then the determined minimum distance values are compared, and the minimum value is selected, that is, the minimum value is selected from the plurality of minimum distance values, The unclustered order corresponding to the minimum value is the nearest order to which the group/set currently corresponds.
- the clustering cutoff condition may be that the number of orders in the order group reaches the actual grouping capacity limit, so that all the finally obtained order groups have a relatively balanced order capacity.
- the clustering cutoff condition may further include: selecting a closest distance of the order to be aggregated into the order group relative to the order group is greater than or equal to a preset distance threshold. This condition further ensures that the orders within the same order group are relatively concentrated in the spatial scope, avoiding the need for the delivery personnel to complete the delivery of a set of orders within an excessively wide range.
- the order that has been selected is the order c
- the distance between the order c and the delivery address of the order a is D1
- D1 is greater than or equal to the preset distance threshold
- the order c is far from the order in the order group 1.
- the order c is not added to the order group 1, then the order group 1 will eventually only include the orders a, b, and the order number does not reach the actual group size.
- the distance threshold can be set reasonably to make a compromise between the order group capacity and the spatial range concentration.
- the actual grouping capacity of each order group is adaptively determined according to the total order quantity, and then the actual grouping capacity is used as a constraint, and multiple Orders are grouped.
- the current cluster center order is first selected based on the distance between the respective delivery addresses of the plurality of orders and the distribution address, and the cluster center order causes an order group, and further, according to the unscheduled orders in the plurality of orders
- the un-cluster order is clustered with the distance between the delivery addresses of the cluster center order to obtain the order in the order group caused by the cluster center order, and an order group is formed.
- the order within each group is based on the distance between the un-cluster order and the delivery address of the cluster center order.
- the clustering determines that the distribution range of different groups is significantly different, the delivery address of the order within the same group has a strong agglomeration, and the group size is adapted to the order quantity, thereby ensuring that each delivery person is allocated.
- the order group size is matched with the actual capacity and the distribution range is relatively concentrated. Overall, the utilization rate of the delivery capacity can be improved.
- the embodiment of the present disclosure further provides an additional means for replenishing the order.
- the premise of the supplementary order is based on whether the actual determined packet capacity has reached the preset maximum packet capacity, because in actual application, the maximum packet capacity is often comprehensive statistics, considering various factors affecting the utilization of the delivery capacity. If the actual packet capacity is less than the preset maximum packet capacity, it indicates that for the current order group 1, a certain number of unclustered orders satisfying certain conditions can be appropriately added. That is, if the actual packet capacity is less than the preset maximum packet capacity, the order may be replenished to the current order group according to the distance between the current order group order and the current un-cluster order delivery address. Of course, if there is no order in the current un-cluster order that satisfies the certain condition, the order group 1 can be replenished.
- one or more iterative processes may be performed to sequentially replenish the order group 1 with an order that satisfies certain conditions, and ideally, it is uniformly added to Until the supplementary deadline is met.
- FIG. 2a is a flowchart of a second embodiment of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 2a, after performing a 103, the following steps may be further included:
- the to-be-replenished order that is the closest to the order group distance in the un-cluster order refers to the distance between the delivery addresses in the plurality of un-clustered orders that are closest to the delivery address of each order in the order group.
- the shortest un-cluster order refers to the distance between the delivery addresses in the plurality of un-clustered orders that are closest to the delivery address of each order in the order group.
- order group 1 has been currently grouped, wherein order group 1 contains orders a, b, and c.
- the current un-cluster order is order d, e, f.
- order d is the order closest to the order group 1, that is, the order to be replenished.
- the order with the closest distance between the delivery address and the delivery address of order a is order d, and the distance between the delivery address of order a and order d is assumed to be D1; the delivery address and the order b
- the closest order between the delivery addresses is order e, and the distance between the delivery address of the order b and the order e is assumed to be D2; the order closest to the delivery address of the delivery address and the delivery address of the order c is the order f, and the order c and the order f are assumed.
- the distance between the delivery addresses is D3, and it is assumed that D1 is the smallest among D1, D2, and D3.
- the order d is the closest order to be replenished relative to the current order group 1, and the closest distance to the order group 1 is D1.
- the closest distance of the to-be-replenished order relative to the remaining un-clustered order set refers to the distance between the to-be-supplemented order and the delivery address of each un-clustered order in the remaining un-clustered order set.
- the shortest distance For example, after determining the order d closest to the order group 1 from the current un-cluster orders d, e, f, the remaining un-cluster orders e, f can be regarded as a whole to constitute the remaining un-cluster Order collection. Further, the nearest distance between the order d and the remaining un-clustered order set is determined by calculating the distance between the order d and the delivery address corresponding to the orders e and f in the set respectively.
- D4 the distance between the order d and the delivery address of the order e is D4
- D5 the distance between the order d and the delivery address of the order f is D5. If D4 is less than D5, it is determined that D4 is the closest distance of the order d to the remaining un-clustered order set.
- the closest distance of the to-be-replenished order relative to the order group is the shortest distance between the to-be-replenished order and the delivery address of each order in the order group.
- the order replenishment process is an iterative process
- the supplemental cut-off condition of the iteration includes: the order quantity of the order group reaches the preset maximum packet capacity, or the closest distance of the to-be-replenished order relative to the order group is greater than or Equal to the closest distance of the order to be replenished relative to the remaining unclustered order set.
- the distance D1 between the order d and the delivery address of the order a and the distance D4 between the order d and the delivery address of the order e are compared. If D1 is less than D4, the order d is added to the order group 1, as shown in Fig. 2c. As shown, at this time, the order in order group 1 is a, b, c, d. When an un-cluster order is updated, the current un-cluster order is updated to: order e, f.
- the process ends, and the final order group 1 is obtained; if the number of orders in the order group 1 has not reached the preset maximum grouping capacity at this time, The selection of the next order to be replenished is made, and the selection method is the same as the selection method of the order d, and will not be described.
- FIG. 3 is a flowchart of a third embodiment of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 3a, after performing a 103, the following steps may be further included:
- the to-be-replenished order closest to the order group distance refers to an un-clustered order with the shortest distance between the delivery addresses in the distance from the delivery address of each order in the order group.
- the closest distance of the to-be-replenished order relative to the replenishment order set is the shortest distance among the distances between the replenishment order and the delivery address of each replenishment order in the replenishment order set.
- the closest distance of the to-be-replenished order relative to the order group refers to the shortest distance between the replenishment order and the delivery address of each order in the order group.
- updating the un-clustered order may be to modify the identity of the un-clustered order that is added to the order group to a clustered order to remove the un-clustered order that is added to the order group from the un-cluster order set.
- the order replenishment process is an iterative process
- the supplemental cut-off condition of the iteration includes: the order quantity of the order group reaches the preset maximum packet capacity, or the closest distance of the to-be-replenished order relative to the order group is greater than or Equal to the closest distance of the replenishment order relative to the replenishment order set.
- a supplementary order set is first generated, and initially, the supplementary order set is empty.
- the order in the current order group 1 is the order a, b, c, and the current un-cluster order includes the orders d, e, f.
- the order selection method provided in the foregoing embodiment it is assumed that the order d is the order closest to the order group 1, that is, the current order to be replenished, and it is assumed that the closest distance of the order d to the order group 1 is D1.
- the current distance of the current to-be-replenished order d relative to the supplementary order set may be considered to be infinite, and at this time, the order to be replenished is relative to the order group 1.
- the nearest distance is less than the closest distance to its relative replenishment order set, the order to be replenished is added to order group 1, and the order to be replenished is added to the replenishment order set, as shown in Figure 3b.
- the un-cluster order is updated, and the updated un-cluster order is the order e, f.
- the current order group 1 includes orders a, b, c, and d. If the number of orders in the group has not reached the preset maximum packet capacity, the selection process of the next to-be-replenished order is iteratively executed.
- the to-be-replenished order corresponding to the current order group 1 including the orders a, b, c, and d is first selected from the current un-clustering orders e and f, assuming that the order e is selected as the current The order to be replenished, and the closest distance of the order e to the current order group 1 is assumed to be D2.
- the nearest distance of the order e relative to the supplementary order set is determined, since only the order d is included in the current supplementary order set, Therefore, at this time, the closest distance is the distance between the order e of the order e and the order d, which is assumed to be D3.
- the distance between the delivery addresses of each order in the supplementary order and the supplementary order set is respectively calculated, and the shortest distance between the delivery addresses is selected as the to-be-replenished. The closest distance of the order relative to the replenishment order set.
- the sizes of D2 and D3 are compared. If D2 is smaller than D3, the order to be replenished is added to the order group 1, and the order to be replenished e is added to the supplementary order set, as shown in FIG. 3d. On the other hand, if D2 is smaller than D3, the order to be replenished e is discarded, and the grouping processing of the order group 1 is ended.
- the order replenishing means of the embodiment shown in FIG. 2a and FIG. 3a After the order grouping process is performed in the order group with the actual packet capacity as the limit, after the order group is obtained, if the actual packet capacity has not reached the maximum packet capacity limit, Further, the order with the obvious concentration in the space within the order group can be further added to the order group, so that each delivery person can deliver more orders at a time, which can further improve the utilization rate of the delivery capacity. .
- the order of the order in the order group can be adjusted according to the distance between the order in the order group and the delivery address of the order in the other order group.
- the adjustment process can be implemented in conjunction with the embodiment shown in Figure 4a.
- FIG. 4A is a flowchart of a fourth embodiment of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 4a, optionally, after performing group processing on multiple orders corresponding to the current collection and delivery address, the method may further include The following steps:
- first closest distance is greater than the second closest distance, add any one of the orders to another order group to which the order corresponding to the second closest distance belongs.
- the first closest distance of the any order relative to other orders in the order group refers to the shortest distance between the delivery addresses between the any order and other orders in the order group.
- the second closest distance of any one of the orders relative to the order in the other order group is the shortest distance between the delivery address between the order and the order between each order in the other order group.
- the order in order group 1 includes orders a, b, and c.
- the order in order group 2 includes orders d, e, and f.
- any order c in order group 1 calculate it separately.
- the distance between the delivery addresses with other orders in order group 1, that is, orders a and b, is assumed to be D1 and D2, respectively.
- the minimum distance between delivery addresses is selected from D1, D2 as the first closest distance of the order c relative to other orders in the order group 1, and if D1 is less than D2, it is determined that the first closest distance is D1, as shown in Fig. 4c. It can be understood that, for the orders a and b in the order group 1, the calculation manner is the same as the calculation method of the order c, and will not be described again.
- the distance between the delivery address between the order c and each order group other than the order group 1, that is, the order in the order group 2, is calculated separately, assuming that the distance between the order of the order c and the order d is D3, the order c
- the distance between the delivery address and the order e is D4
- the distance between the delivery address between the order c and the order f is D5.
- the ownership of the order is adjusted according to the closest distance of the order relative to the currently owned order group and the closest distance of the order relative to other order groups, so as to ensure the order in the same order group.
- orders of different order groups have more obvious positional dispersion, so as to avoid the same delivery personnel need to walk more ways to complete the distribution of an order group and improve the utilization of distribution capacity.
- FIG. 5 is a flowchart of Embodiment 5 of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 5, after 103, the following steps may be further included:
- the delivery of the orders can also be performed for each order group.
- the process performs navigation path planning.
- the principle of navigation path planning can be the shortest path principle.
- the corresponding navigation path can be planned according to the minimum principle of the total path.
- order processing apparatus of one or more embodiments of the present disclosure will be described in detail below.
- order processing devices can be implemented in the infrastructure of the server or in an interactive architecture between the client and the server.
- order processing devices can be constructed using commercially available hardware components configured by the steps taught by the present solution.
- FIG. 6 is a schematic structural diagram of Embodiment 1 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the apparatus includes: an obtaining module 11, a selecting module 12, and a clustering processing module 13.
- the obtaining module 11 is configured to obtain an actual packet capacity according to a total number of the plurality of orders, where the plurality of orders correspond to the same collection and distribution address.
- the selecting module 12 is configured to select a current cluster center order according to a distance between a delivery address of the plurality of orders and the collection address.
- the clustering processing module 13 is configured to cluster the un-clustered orders according to the actual grouping capacity according to the distance between the un-clustering order of the plurality of orders and the delivery address of the cluster center order To determine an order group corresponding to the cluster center order.
- the cluster processing module 13 is specifically configured to: according to the actual packet capacity, according to the distance between the delivery addresses of the orders in the order group corresponding to the clustered center order in the unscheduled order of the plurality of orders And clustering the un-cluster order to determine an order group corresponding to the cluster center order.
- the obtaining module 11 is specifically configured to:
- the actual packet capacity is determined according to the total number of the plurality of orders and the preset packet capacity such that the actual packet capacity is close to the preset packet capacity.
- the obtaining module 11 is specifically configured to:
- the actual packet capacity is obtained according to the following conditions, according to the total number of the multiple orders, the preset minimum packet capacity, and the preset maximum packet capacity:
- An integer between the preset packet capacity includes the preset minimum packet capacity and the preset maximum packet capacity.
- the selection module 12 includes: a first selection unit 121 and a second selection unit 122.
- the first selecting unit 121 is configured to filter an un-clustered order from the plurality of orders according to a cluster state flag associated with each of the plurality of orders.
- a second selecting unit 122 configured to select, according to a distance between a delivery address of the un-cluster order and the collection address, an order that is farthest or closest to the collection address from the un-cluster order The cluster center order.
- the cluster processing module 13 is specifically configured to:
- the clustering cutoff condition includes that the order quantity of the order group reaches the actual packet capacity.
- the clustering cutoff condition further includes: a closest distance of the selected order relative to the order group is greater than or equal to a preset distance threshold.
- the apparatus shown in FIG. 6 can perform the method of the embodiment shown in FIG. 1a.
- the apparatus shown in FIG. 6 can perform the method of the embodiment shown in FIG. 1a.
- the parts not described in detail in this embodiment reference may be made to the related description of the embodiment shown in FIG. 1a.
- the implementation process and technical effects of the technical solution refer to the description in the embodiment shown in FIG. 1a, and details are not described herein again.
- FIG. 7 is a schematic structural diagram of Embodiment 2 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 7, on the basis of the embodiment shown in FIG. 6, the apparatus further includes: a supplementary processing module 21.
- the supplementary processing module 21 is configured to, if the actual packet capacity is less than the preset maximum packet capacity, replenish the order group according to the distance between the current order group order and the current un-cluster order delivery address.
- the supplementary processing module 21 may include a first supplementary processing unit 211, configured to:
- the to-be-replenished order is added to the order group
- the supplementary deadline condition includes: the order quantity of the order group reaches the preset maximum packet capacity, or the closest distance of the to-be-replenished order relative to the order group is greater than or equal to the to-be-replenished order relative to the remaining The closest distance to the ungrouped order collection.
- the apparatus shown in FIG. 7 can perform the method of the embodiment shown in FIG. 2a.
- the apparatus shown in FIG. 7 can perform the method of the embodiment shown in FIG. 2a.
- the parts not described in detail in this embodiment reference may be made to the related description of the embodiment shown in FIG. 2a.
- the implementation process and technical effects of the technical solution refer to the description in the embodiment shown in FIG. 2a, and details are not described herein again.
- FIG. 8 is a schematic structural diagram of Embodiment 3 of an order processing apparatus according to an embodiment of the present disclosure.
- the supplementary processing module 21 may further include: Supplementation processing unit 212.
- the second supplementary processing unit 212 is configured to:
- the to-be-replenished order is added to the order group, and the to-be-replenished order is added to the supplementary order set;
- the supplementary deadline condition includes: the order quantity of the order group reaches the preset maximum group size, or the closest distance of the to-be-replenished order relative to the order group is greater than or equal to the to-be-replenished order relative to the supplement The closest distance to the order collection.
- the apparatus shown in FIG. 8 can perform the method of the embodiment shown in FIG. 3a.
- the apparatus shown in FIG. 8 can perform the method of the embodiment shown in FIG. 3a.
- the parts not described in detail in this embodiment reference may be made to the related description of the embodiment shown in FIG. 3a.
- the implementation process and technical effects of the technical solution refer to the description in the embodiment shown in FIG. 3a, and details are not described herein again.
- FIG. 9 is a schematic structural diagram of Embodiment 4 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 9 , on the basis of the embodiment shown in FIG. 6 , the apparatus further includes: an adjustment module 41 .
- An adjustment module 41 configured to deliver the order according to the order group and the order in another order group
- the distance between the addresses adjusts the attribution of the orders in the order group.
- the adjusting module 41 is specifically configured to:
- the any order is added to another order group to which the order corresponding to the second closest distance belongs.
- the apparatus shown in FIG. 9 can perform the method of the embodiment shown in FIG. 4a.
- the apparatus shown in FIG. 9 can perform the method of the embodiment shown in FIG. 4a.
- the parts not described in detail in this embodiment reference may be made to the related description of the embodiment shown in FIG. 4a.
- the implementation process and technical effects of the technical solution refer to the description in the embodiment shown in FIG. 4a, and details are not described herein again.
- FIG. 10 is a schematic structural diagram of Embodiment 5 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 10, on the basis of the embodiment shown in FIG. 6, the apparatus further includes: a path planning module 51.
- the path planning module 51 is configured to use a shortest path algorithm to plan a delivery path of an order in the order group.
- the apparatus shown in FIG. 10 can perform the method of the embodiment shown in FIG. 5.
- the apparatus shown in FIG. 10 can perform the method of the embodiment shown in FIG. 5.
- the parts not described in detail in this embodiment reference may be made to the related description of the embodiment shown in FIG.
- the implementation process and technical effects of the technical solution refer to the description in the embodiment shown in FIG. 5, and details are not described herein again.
- the structure of the order processing apparatus can be implemented as a server.
- the processor 61 and the memory 62 can be included.
- the memory 62 is configured to store a program supporting the order processing apparatus to execute the order processing method provided in any of the above embodiments, the processor 61 being configured to execute the program stored in the memory 62.
- the program includes one or more computer instructions, wherein the one or more computer instructions are for execution by the processor 61.
- the processor 61 is configured to: obtain an actual packet capacity according to a total number of multiple orders, where the multiple orders correspond to the same collection address; and select a current according to a distance between a delivery address of the plurality of orders and the collection address The clustering center order; based on the actual grouping capacity, clustering the un-clustered orders according to the distance between the un-clustering order of the plurality of orders and the delivery address of the cluster center order, An order group corresponding to the cluster center order is determined.
- the processor 61 is further configured to perform all or part of the foregoing method steps.
- the structure of the order processing device may further include a communication interface 63 for the order processing device to communicate with other devices or communication networks.
- an embodiment of the present disclosure provides a computer storage medium for storing computer software instructions for use in an order processing apparatus, including a program for executing the order processing method in the above first aspect.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
Landscapes
- Business, Economics & Management (AREA)
- Economics (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Development Economics (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Human Resources & Organizations (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本公开涉及互联网技术领域,尤其涉及一种订单处理方法、装置、服务器及计算机存储介质。The present disclosure relates to the field of Internet technologies, and in particular, to an order processing method, apparatus, server, and computer storage medium.
随着互联网的发展,线上到线下(Online To Offline,简称O2O)服务作为一种新型的电子商务模式,已经大大改变了人们的生活方式,比如人们的出行方式、购物方式。比如网上购物类应用,使得用户足不出户即可获取自己所需的物品。这些应用在便利用户的同时,也面临着物品配送问题即快递配送问题,于是物流调度系统应运而生。With the development of the Internet, Online To Offline (O2O) services, as a new type of e-commerce model, have greatly changed people's lifestyles, such as people's travel and shopping methods. For example, the online shopping application allows users to get the items they need without leaving home. These applications are also convenient for users, but also face the problem of delivery of goods, that is, express delivery problems, so the logistics scheduling system came into being.
目前的一种物流调度方式是:针对某个物流服务提供方来说,其在一城市中预先设置有多个集散地,每个集散地对应于一定的覆盖范围,从而,针对任一集散地A来说,配送地址即收货方地址在其覆盖范围内的订单都会被派往该集散地A进行配送处理。A current logistics scheduling method is: for a logistics service provider, a plurality of distribution centers are preset in a city, and each distribution center corresponds to a certain coverage area, thereby, for any distribution center A The delivery address, that is, the order of the consignee's address within its coverage, will be dispatched to the distribution center A for distribution processing.
发明内容Summary of the invention
针对某集散地处需要进行配送处理的多个订单来说,调度人员往往是基于人工经验,从中拣选出配送地址较为接近的部分订单分配给相应的配送人员进行配送。这可能导致某些配送人员需要配送的订单量很多,某些配送人员配送的订单量很少的现象,另外,基于人工经验的分配方式,也可能导致分配给某配送人员的订单的配送地址并非在距离上较为接近,从而使得该配送人员需要花费更多的时间、行走更远的距离才能完成配送。因此,目前的物流调度方式使得配送运力利用率较低。For multiple orders that need to be distributed in a certain distribution center, the dispatchers are often based on manual experience, and some orders that are close to the delivery address are assigned to the corresponding delivery personnel for distribution. This may result in a large number of orders that some delivery personnel need to deliver, and a small amount of orders delivered by some delivery personnel. In addition, the distribution method based on manual experience may also result in the delivery address of the order assigned to a delivery person. It is closer in distance, so that the delivery personnel need to spend more time and travel longer distances to complete the delivery. Therefore, the current logistics scheduling method makes the utilization of distribution capacity low.
有鉴于此,本公开实施例提供一种订单处理方法、装置、服务器及计算机存储介质,用以提高配送运力利用率。In view of this, the embodiments of the present disclosure provide an order processing method, apparatus, server, and computer storage medium for improving the utilization rate of the delivery capacity.
第一方面,本公开实施例提供一种订单处理方法,包括:In a first aspect, an embodiment of the present disclosure provides an order processing method, including:
根据多个订单的总数获取实际分组容量,所述多个订单对应于同一集散地址;Acquiring actual packet capacity according to the total number of multiple orders, the multiple orders corresponding to the same collection address;
根据所述多个订单各自的配送地址与所述集散地址的距离,选取当前的聚类中心订单;Selecting a current cluster center order according to a distance between a respective delivery address of the plurality of orders and the collection address;
基于所述实际分组容量,根据所述多个订单中未聚类订单与所述聚类中心订单的配送地址间距离,对所述未聚类订单进行聚类处理,以确定与所述聚类中心订单对应的订单组。Determining, according to the actual grouping capacity, the clustering processing according to the distance between the un-clustering order of the plurality of orders and the delivery address of the cluster center order, to determine the clustering The order group corresponding to the central order.
可选地,所述根据多个订单的总数获取实际分组容量,包括: Optionally, the obtaining the actual packet capacity according to the total number of the multiple orders includes:
根据所述多个订单的总数和预设分组容量确定所述实际分组容量,以使所述实际分组容量接近所述预设分组容量。The actual packet capacity is determined according to the total number of the plurality of orders and the preset packet capacity such that the actual packet capacity is close to the preset packet capacity.
可选地,所述预设分组容量包括预设最小分组容量和预设最大分组容量,Optionally, the preset packet capacity includes a preset minimum packet capacity and a preset maximum packet capacity.
所述根据所述多个订单的总数和预设分组容量确定所述实际分组容量,以使所述实际分组容量接近所述预设分组容量,包括:Determining the actual packet capacity according to the total number of the multiple orders and the preset packet capacity, so that the actual packet capacity is close to the preset packet capacity, including:
根据所述多个订单的总数、预设最小分组容量和预设最大分组容量,结合如下条件获取所述实际分组容量:The actual packet capacity is obtained according to the following conditions, according to the total number of the multiple orders, the preset minimum packet capacity, and the preset maximum packet capacity:
使所述多个订单的总数除以所述实际分组容量的余数,大于所述预设最小分组容量,所述实际分组容量为取自所述预设最小分组容量和所述预设最大分组容量之间的整数。And dividing the total number of the plurality of orders by the remainder of the actual packet capacity, which is greater than the preset minimum packet capacity, where the actual packet capacity is taken from the preset minimum packet capacity and the preset maximum packet capacity. The integer between.
可选地,所述根据所述多个订单各自的配送地址与所述集散地址的距离,选取当前的聚类中心订单,包括:Optionally, the current cluster center order is selected according to the distance between the respective delivery addresses of the plurality of orders and the collection and delivery address, including:
根据当前所述多个订单各自关联的聚类状态标记,从所述多个订单中筛选出未聚类订单;Unscheduled orders are filtered out from the plurality of orders according to cluster state flags associated with each of the plurality of orders;
根据所述未聚类订单各自的配送地址与所述集散地址的距离,从所述未聚类订单中选出距离所述集散地址最远或最近的订单作为所述聚类中心订单。And selecting, according to the distance between the respective delivery addresses of the un-cluster orders and the collection address, an order that is farthest or closest to the collection address from the un-cluster orders as the cluster center order.
可选地,所述根据所述多个订单中未聚类订单与所述聚类中心订单的配送地址间距离,对所述未聚类订单进行聚类处理,,包括:Optionally, the clustering processing is performed on the un-clustered order according to the distance between the un-clustering order of the plurality of orders and the delivery address of the cluster center order, including:
根据所述多个订单中未聚类订单与所述聚类中心订单对应的订单组内订单的配送地址间距离,对所述未聚类订单进行聚类处理。And the un-clustered order is clustered according to the distance between the un-cluster order of the plurality of orders and the delivery address of the order in the order group corresponding to the cluster center order.
可选地,所述根据所述多个订单中未聚类订单与所述聚类中心订单对应的订单组内订单的配送地址间距离,对所述未聚类订单进行聚类处理,包括:Optionally, the clustering is performed on the un-clustered order according to the distance between the delivery addresses of the orders in the order group corresponding to the clustering center order in the plurality of orders, including:
迭代执行如下过程,直到满足所述订单组对应的聚类截止条件:Iteratively executes the following process until the clustering cutoff condition corresponding to the order group is satisfied:
根据当前所述订单组内订单与当前的未聚类订单的配送地址间距离,从所述当前的未聚类订单中选择出相对所述订单组距离最近的订单;And selecting, according to the current distance between the order group order and the current un-cluster order delivery address, an order that is closest to the order group from the current un-cluster order;
将选择出的所述订单加入所述订单组;Adding the selected order to the order group;
更新所述未聚类订单;Updating the un-cluster order;
所述聚类截止条件包括:所述订单组的订单数达到所述实际分组容量。The clustering cutoff condition includes that the order quantity of the order group reaches the actual packet capacity.
第二方面,本公开实施例提供一种订单处理装置,包括:In a second aspect, an embodiment of the present disclosure provides an order processing apparatus, including:
获取模块,用于根据多个订单的总数获取实际分组容量,所述多个订单对应于同一集散地址;An obtaining module, configured to obtain an actual packet capacity according to a total number of multiple orders, where the multiple orders correspond to the same collection and distribution address;
选择模块,用于根据所述多个订单各自的配送地址与所述集散地址的距离,选取当前的聚类中心订单; a selection module, configured to select a current cluster center order according to a distance between a delivery address of the plurality of orders and the collection address;
聚类处理模块,用于基于所述实际分组容量,根据所述多个订单中未聚类订单与所述聚类中心订单的配送地址间距离,对所述未聚类订单进行聚类处理,以确定与所述聚类中心订单对应的订单组。a clustering processing module, configured to cluster the un-clustered orders according to the actual grouping capacity according to a distance between an un-clustering order of the plurality of orders and a delivery address of the cluster center order, An order group corresponding to the cluster center order is determined.
在一个可能的设计中,上述订单处理装置的结构中包括处理器和存储器,所述存储器用于存储支持订单处理装置执行上述第一方面中订单处理方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。所述订单处理装置还可以包括通信接口,用于订单处理装置与其他设备或通信网络通信。In a possible design, the above-mentioned order processing apparatus includes a processor and a memory for storing a program supporting the order processing apparatus to execute the order processing method in the above first aspect, the processor being configured to use Executing the program stored in the memory. The order processing device can also include a communication interface for the order processing device to communicate with other devices or communication networks.
第三方面,本公开实施例提供了一种服务器,包括存储器和处理器;其中,In a third aspect, an embodiment of the present disclosure provides a server, including a memory and a processor, where
所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令供所述处理器调用执行;The memory is configured to store one or more computer instructions, wherein the one or more computer instructions are for execution by the processor;
所述处理器用于:根据多个订单的总数获取实际分组容量,所述多个订单对应于同一集散地址;根据所述多个订单各自的配送地址与所述集散地址的距离,选取当前的聚类中心订单;基于所述实际分组容量,根据所述多个订单中未聚类订单与所述聚类中心订单的配送地址间距离,对所述未聚类订单进行聚类处理,以确定与所述聚类中心订单对应的订单组。The processor is configured to: obtain an actual packet capacity according to a total number of multiple orders, where the multiple orders correspond to the same collection address; and select a current aggregation according to a distance between a delivery address of the plurality of orders and the collection address a class center order; based on the actual grouping capacity, clustering the unclustered orders according to a distance between an un-clustering order of the plurality of orders and a delivery address of the cluster center order to determine The order group corresponding to the cluster center order.
第四方面,本公开实施例提供了一种计算机存储介质,用于储存订单处理装置所用的计算机软件指令,其包含用于执行上述第一方面中订单处理方法所涉及的程序。In a fourth aspect, an embodiment of the present disclosure provides a computer storage medium for storing computer software instructions for use in an order processing apparatus, including a program for executing the order processing method in the first aspect described above.
本公开实施例提供的订单处理方法和装置,当某集散地存在多个订单需要进行配送时,首先根据订单总量适应性地确定每个订单分组的实际分组容量,进而以该实际分组容量为约束,对多个订单进行分组处理。其中,分组处理过程中,首先基于多个订单各自的配送地址与集散地址的距离选取当前的聚类中心订单,该聚类中心订单引起一个订单组,进而,根据多个订单中未聚类订单与聚类中心订单间的配送地址间距离对多个未聚类订单进行聚类处理,以获取该聚类中心订单所引起的订单组内的订单,形成一个订单组。本方案中,由于每个分组的聚类中心订单是基于订单配送地址与集散地的距离选定的,每个分组内的订单是基于未聚类订单与聚类中心订单的配送地址之间的距离而聚类确定的,使得不同分组的配送范围有明显差异,同一分组内的订单的配送地址具有较强集聚性,且分组大小与订单量相适应,从而,有利于保证每个配送人员被分配到的订单组大小与实际运力匹配且配送范围比较集中,整体来说,可以提高配送运力的利用率。The order processing method and apparatus provided by the embodiments of the present disclosure, when there are multiple orders in a certain distribution place and need to be distributed, firstly, the actual grouping capacity of each order group is adaptively determined according to the total order quantity, and then the actual grouping capacity is used as a constraint. , grouping multiple orders. Wherein, in the group processing process, the current cluster center order is first selected based on the distance between the respective delivery addresses of the plurality of orders and the distribution address, and the cluster center order causes an order group, and further, according to the unscheduled orders in the plurality of orders A plurality of un-clustered orders are clustered with the distance between the distribution addresses of the cluster center orders to obtain orders in the order group caused by the cluster center order, and an order group is formed. In this solution, since the cluster center order of each group is selected based on the distance between the order delivery address and the distribution center, the order within each group is based on the distance between the un-cluster order and the delivery address of the cluster center order. The clustering determines that the distribution range of different groups is significantly different, the delivery address of the order within the same group has a strong agglomeration, and the group size is adapted to the order quantity, thereby ensuring that each delivery person is allocated. The order group size is matched with the actual capacity and the distribution range is relatively concentrated. Overall, the utilization rate of the delivery capacity can be improved.
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中 的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related art, the drawings used in the embodiments or the related art description will be briefly described below, and obviously, in the following description The drawings are some embodiments of the present disclosure, and other drawings may be obtained from those skilled in the art without departing from the drawings.
图1a为本公开实施例提供的订单处理方法实施例一的流程图;FIG. 1 is a flowchart of Embodiment 1 of an order processing method according to an embodiment of the present disclosure;
图1b‐图1f为图1a所示实施例对应的一种分组过程示意图;Figure 1b - Figure 1f is a schematic diagram of a grouping process corresponding to the embodiment shown in Figure 1a;
图2a为本公开实施例提供的订单处理方法实施例二的流程图;2a is a flowchart of Embodiment 2 of an order processing method according to an embodiment of the present disclosure;
图2b‐图2c为图2a所示实施例对应的一种订单补充过程示意图;2b-2c is a schematic diagram of an order replenishment process corresponding to the embodiment shown in FIG. 2a;
图3a为本公开实施例提供的订单处理方法实施例三的流程图;FIG. 3 is a flowchart of Embodiment 3 of an order processing method according to an embodiment of the present disclosure;
图3b‐图3d为图3a所示实施例对应的一种订单补充过程示意图;3b-3d are schematic diagrams of an order replenishment process corresponding to the embodiment shown in FIG. 3a;
图4a为本公开实施例提供的订单处理方法实施例四的流程图;4a is a flowchart of Embodiment 4 of an order processing method according to an embodiment of the present disclosure;
图4b‐图4d为图4a所示实施例对应的一种订单调整过程示意图;4b-4d are schematic diagrams of an order adjustment process corresponding to the embodiment shown in FIG. 4a;
图5为本公开实施例提供的订单处理方法实施例五的流程图;FIG. 5 is a flowchart of Embodiment 5 of an order processing method according to an embodiment of the present disclosure;
图6为本公开实施例提供的订单处理装置实施例一的结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 1 of an order processing apparatus according to an embodiment of the present disclosure;
图7为本公开实施例提供的订单处理装置实施例二的结构示意图;FIG. 7 is a schematic structural diagram of Embodiment 2 of an order processing apparatus according to an embodiment of the present disclosure;
图8为本公开实施例提供的订单处理装置实施例三的结构示意图;FIG. 8 is a schematic structural diagram of Embodiment 3 of an order processing apparatus according to an embodiment of the present disclosure;
图9为本公开实施例提供的订单处理装置实施例四的结构示意图;FIG. 9 is a schematic structural diagram of Embodiment 4 of an order processing apparatus according to an embodiment of the present disclosure;
图10为本公开实施例提供的订单处理装置实施例五的结构示意图;FIG. 10 is a schematic structural diagram of Embodiment 5 of an order processing apparatus according to an embodiment of the present disclosure;
图11为本公开实施例提供的订单处理装置实施例六的结构示意图。FIG. 11 is a schematic structural diagram of Embodiment 6 of an order processing apparatus according to an embodiment of the present disclosure.
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the drawings in the embodiments of the present disclosure. It is a partial embodiment of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without departing from the inventive scope are the scope of the disclosure.
在本公开实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义,“多种”一般包含至少两种,但是不排除包含至少一种的情况。The terms used in the embodiments of the present disclosure are for the purpose of describing the specific embodiments, and are not intended to limit the disclosure. The singular forms "a", "the", "the" and "the" Generally, at least two types are included, but the case of including at least one is not excluded.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" as used herein is merely an association describing the associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, while A and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应当理解,尽管在本公开实施例中可能采用术语第一、第二、第三等来描述XXX,但这些XXX不应限于这些术语。这些术语仅用来将XXX区分开。例如,在 不脱离本公开实施例范围的情况下,第一XXX也可以被称为第二XXX,类似地,第二XXX也可以被称为第一XXX。It should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present disclosure, these XXX should not be limited to these terms. These terms are only used to distinguish XXX. For example, in The first XXX may also be referred to as a second XXX without departing from the scope of the embodiments of the present disclosure. Similarly, the second XXX may also be referred to as a first XXX.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if" and "if" as used herein may be interpreted to mean "when" or "when" or "in response to determining" or "in response to detecting." Similarly, depending on the context, the phrase "if determined" or "if detected (conditions or events stated)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event) "Time" or "in response to a test (condition or event stated)".
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。It should also be noted that the terms "including", "comprising" or "comprising" or any other variations thereof are intended to encompass a non-exclusive inclusion, such that the item or system comprising a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such goods or systems. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the item or system including the element, without further limitation.
进一步值得说明的是,本公开各实施例中各步骤之间的顺序是可以调整的,不是必须按照以下举例的顺序执行。It is further noted that the order between the steps in the various embodiments of the present disclosure may be adjusted, and is not necessarily performed in the order illustrated below.
图1a为本公开实施例提供的订单处理方法实施例一的流程图,本实施例提供的该订单处理方法可以由一订单处理装置来执行,该订单处理装置可以实现为软件,或者实现为软件和硬件的组合,该订单处理装置可以集成设置在物流调度平台侧的设备中,比如服务器中。如图1a所示,该方法包括如下步骤:FIG. 1 is a flowchart of Embodiment 1 of an order processing method according to an embodiment of the present disclosure. The order processing method provided by this embodiment may be executed by an order processing apparatus, and the order processing apparatus may be implemented as software or implemented as software. In combination with the hardware, the order processing device can be integrated in a device on the side of the logistics dispatch platform, such as a server. As shown in FIG. 1a, the method includes the following steps:
101、根据多个订单的总数获取实际分组容量,多个订单对应于同一集散地址。101. Acquire actual packet capacity according to the total number of multiple orders, and multiple orders correspond to the same collection address.
102、根据多个订单各自的配送地址与集散地址的距离,选取当前的聚类中心订单。102. Select a current cluster center order according to the distance between each delivery address and the collection address of the multiple orders.
103、基于实际分组容量,根据多个订单中未聚类订单与聚类中心订单的配送地址间距离,对未聚类订单进行聚类处理,以确定与聚类中心订单对应的订单组。103. Based on the actual grouping capacity, cluster the un-clustered orders according to the distance between the un-cluster order of the plurality of orders and the delivery address of the cluster center order to determine an order group corresponding to the cluster center order.
本公开实施例中的订单可以是快递订单,实际应用中,随着快递物品的配送过程,快递订单会经历至少一个集散地,从而,在到达某个集散地时,该订单会关联上该集散地址。从而,针对一个集散地址来说,基于此,可以获得该集散地址对应的订单,上述多个订单的总数即为某时间段内该集散地址对应的订单的总数量。The order in the embodiment of the present disclosure may be a courier order. In actual application, with the delivery process of the courier item, the courier order will experience at least one distribution center, so that when a certain distribution center is reached, the order will be associated with the collection address. Therefore, for a collection and distribution address, based on this, an order corresponding to the collection and delivery address can be obtained, and the total number of the plurality of orders is the total number of orders corresponding to the collection and delivery address in a certain period of time.
可选地,实际应用中,可以以一定的时间间隔来统计每个集散地址对应的订单,从而,获得同一集散地址对应的多个待分配的订单,以下本公开实施例中,仅以某个集散地址对应的多个订单为例进行订单处理方法的说明。Optionally, in an actual application, the order corresponding to each of the collection and distribution addresses may be counted at a certain time interval, thereby obtaining a plurality of orders to be allocated corresponding to the same collection and distribution address, and in the following embodiments of the present disclosure, only one The order processing method is described by taking a plurality of orders corresponding to the collection and delivery addresses as an example.
由于不同时刻,某个集散地址对应的订单数量可能不同,如果不管订单数量多少都固定设置每个订单分组的容量,对配送运力的高效利用不利。因此,本公 开实施例中,适应于当前的订单数量来实时确定针对当前的多个订单,每个订单组的实际分组容量,即每个订单组能够容纳的订单个数。Since the number of orders corresponding to a certain collection address may be different at different times, if the capacity of each order group is fixed regardless of the number of orders, the efficient use of the delivery capacity is disadvantageous. Therefore, the public In the embodiment, the actual number of orders for each order group, that is, the number of orders that each order group can accommodate, is determined in real time in accordance with the current order quantity.
针对101来说,在一种可选方式中,可以预先设置订单数量区间与实际分组容量的对应关系,从而,基于该对应关系以及当前的订单数量所处于的区间,确定当前采用的实际分组容量。For 101, in an optional manner, the correspondence between the order quantity interval and the actual packet capacity may be preset, so that the actual packet capacity currently used is determined based on the correspondence relationship and the interval in which the current order quantity is located. .
在另一可选方式中,上述实际分组容量的获取可以通过如下方式实现:In another optional manner, the obtaining of the actual packet capacity may be implemented as follows:
根据多个订单的总数和预设分组容量确定实际分组容量,以使实际分组容量接近所述预设分组容量。The actual packet capacity is determined based on the total number of multiple orders and the preset packet capacity such that the actual packet capacity is close to the preset packet capacity.
可选地,其中,预设分组容量可以包括预设最小分组容量和预设最大分组容量,即由预设最小分组容量和预设最大分组容量构成了一个分组容量区间,从而,在一种具体实现方式中,可以根据多个订单的总数、预设最小分组容量和预设最大分组容量,结合如下条件获取实际分组容量:使多个订单的总数除以实际分组容量的余数大于预设最小分组容量,其中,实际分组容量为取自预设最小分组容量和预设最大分组容量之间的整数。Optionally, the preset packet capacity may include a preset minimum packet capacity and a preset maximum packet capacity, that is, a packet capacity interval is formed by the preset minimum packet capacity and the preset maximum packet capacity, thereby, in a specific In the implementation manner, the actual packet capacity may be obtained according to the total number of multiple orders, the preset minimum packet capacity, and the preset maximum packet capacity, by combining the following conditions: the remainder of dividing the total number of multiple orders by the actual packet capacity is greater than the preset minimum packet. Capacity, where the actual packet capacity is an integer taken between the preset minimum packet capacity and the preset maximum packet capacity.
上述实现方式中,可以预先设定任一订单组的容量上下限,即最大分组容量和最小分组容量,实际分组容量取自上下限之间。上述多个订单的总数除以实际分组容量的余数,即为订单总数对实际分组容量取模。可选地,实际分组容量可以是使得该余数大于最小分组容量的最小容量值,即假设容量上下限之间有多个容量值能够满足该条件时,取满足该条件的最小容量值。In the foregoing implementation manner, the upper and lower limits of the capacity of any order group, that is, the maximum packet capacity and the minimum packet capacity, may be preset, and the actual packet capacity is taken from the upper and lower limits. The total number of the above multiple orders is divided by the remainder of the actual grouping capacity, that is, the total number of orders is modulo the actual grouping capacity. Alternatively, the actual packet capacity may be a minimum capacity value such that the remainder is greater than the minimum packet capacity, that is, assuming that a plurality of capacity values between the upper and lower limits of the capacity can satisfy the condition, a minimum capacity value that satisfies the condition is taken.
上述条件的实际意义在于:上述多个订单的订单总数很有可能不是实际分组容量的整数倍,即这多个订单往往不能正好平均划分为n个订单组。另上述余数尽量大于最小分组容量,是为了在按照该实际分组容量依次从上述多个订单中划分得到一个个订单组时,最后得到的订单组内的订单数量尽量多,这样对于配送运力的有效利用具有积极作用,因为这样能够一定程度上使得每个配送人员承接的订单量较为均衡,避免出现部分配送人员承接订单量过重,部分配送人员闲置的负载不均衡现象。The practical significance of the above conditions is that the total number of orders for the above multiple orders is likely not to be an integral multiple of the actual grouping capacity, that is, the multiple orders are often not evenly divided into n order groups. The above-mentioned remainder is as large as possible to be greater than the minimum packet capacity, in order to obtain as many order orders as possible in the order group obtained from the plurality of orders in sequence according to the actual packet capacity, so as to be effective for the delivery capacity. The use has a positive effect, because it can make the order quantity of each distribution personnel to be balanced to a certain extent, avoiding the imbalance of the amount of orders received by some distribution personnel and the unbalanced load of some distribution personnel.
举例来说,实际应用中,上述预设分组容量可以通过如下方式确定:假设各配送人员的配送工具相同,即每个配送工具具有相同的运输能力,比如具有相同的体积大小,能够承载的总重量相同。针对一定历史时间段内的大量订单中的各订单,提取出其对应的需要配送的物品数量、物品重量、物品体积等参数,进而根据配送工具的比如承载总重量、体积的上限,统计确定配送工具能够承载的平均订单数量,该平均订单数量可以作为一种预设分组容量。当然,基于统计方式的不同,最终得到的预设分组容量的表现形式可能不同,比如,除了通过确定配送工具能够承载的平均订单数量外,还可以统计确定配送工具能够承载的最小订单数量、最大订单数量,即为上述最小分组容量、最大分组容量。 For example, in an actual application, the preset packet capacity may be determined by assuming that the delivery tools of the respective delivery personnel are the same, that is, each delivery tool has the same transportation capability, such as having the same volume size, and capable of carrying the total The weight is the same. For each order in a large number of orders within a certain historical time period, the corresponding number of items to be delivered, the weight of the item, the volume of the item, and the like are extracted, and then the distribution is determined according to the total weight of the delivery tool, such as the upper limit of the weight of the delivery tool. The average order quantity that the tool can carry, which can be used as a preset grouping capacity. Of course, based on the difference in statistical methods, the final preset packet capacity may be expressed differently. For example, in addition to determining the average order quantity that the delivery tool can carry, it is also possible to statistically determine the minimum order quantity that the delivery tool can carry, and the maximum number. The order quantity is the above minimum packet capacity and maximum packet capacity.
另外,值得说明的是,本公开实施例最终分组得到的各订单组可以具有相同的分组容量,即具有上述确定出的实际分组容量,但是,也可以是各订单组可以具有不完全相同的分组容量,比如某个或某些个订单组的分组容量是在该实际分组容量的基础上进行微调后的结果。其中,针对某个订单组来说,其分组容量微调的依据比如是:随着该订单组的生成过程,发现在该订单组内的订单容量还没有达到上述实际分组容量的限制时,该订单组内订单对应的总重量和/或总体积已经达到了配送工具的重量和/或体积的限制,此时,该订单组内的分组容量将小于实际分组容量的限制;相反的,如果发现在该订单组内的订单容量在已经达到上述实际分组容量的限制时,该订单组内订单对应的总重量和/或总体积还未达到配送工具的重量和/或体积的限制,此时,该订单组内的分组容量可以超过实际分组容量的限制。In addition, it should be noted that each order group obtained by the final grouping in the embodiment of the present disclosure may have the same packet capacity, that is, have the actual packet capacity determined above, but may also be that each order group may have different packets. Capacity, such as the packet capacity of one or several order groups, is the result of fine-tuning based on the actual packet capacity. For example, for an order group, the fine-tuning of the grouping capacity is based on the following: when the order group is generated, it is found that the order capacity in the order group has not reached the limit of the actual packet capacity, the order The total weight and/or total volume corresponding to the order within the group has reached the limit of the weight and/or volume of the delivery tool. At this time, the packet capacity within the order group will be less than the actual packet capacity limit; conversely, if found When the order capacity in the order group has reached the above limit of the actual grouping capacity, the total weight and/or the total volume corresponding to the order in the order group has not reached the limit of the weight and/or volume of the delivery tool. The packet capacity within the order group can exceed the limit of the actual packet capacity.
综上,在某些场景中,本实施例中的实际分组容量可以理解为是一预估值,实际应用中,各订单组的订单容量可以在该预估值基础上存在浮动。In summary, in some scenarios, the actual packet capacity in this embodiment can be understood as an estimated value. In an actual application, the order capacity of each order group may be floating based on the estimated value.
针对102和103来说,本公开实施例中,可选地,对多个订单进行分组划分的整体思想是:对于每个订单组的划分生成过程:首先选择聚类中心订单,从该聚类中心订单引出一个订单组;进而,以该聚类中心订单为基础,向该订单组中不断加入订单,即进行订单组内聚类处理,直到该订单组满足上述实际分组容量的限制,或者,满足其他订单组的聚类截止条件。之后,触发下一个订单组的划分生成过程,直到上述多个订单分组完毕。For 102 and 103, in the embodiment of the present disclosure, optionally, the overall idea of grouping multiple orders is: a division generation process for each order group: first selecting a cluster center order from the cluster The central order leads to an order group; further, based on the cluster center order, the order is continuously added to the order group, that is, the cluster processing in the order group is performed until the order group satisfies the above-mentioned actual grouping capacity limit, or Meet the clustering cutoff criteria for other order groups. After that, the division generation process of the next order group is triggered until the above multiple orders are grouped.
其中,聚类中心订单的选择依据是根据订单的配送地址与集散地址之间的距离进行选择。加入上述订单组内订单的选择依据是未聚类订单与聚类中心订单之间的配送地址间距离。The selection basis of the cluster center order is selected according to the distance between the delivery address of the order and the collection and distribution address. The order for joining the order in the above order group is based on the distance between the delivery addresses between the unclustered order and the cluster center order.
其中,可选地,针对某聚类中心订单来说,其引出的订单组内订单的选择,可以是依据其他还未被聚类到某订单组的订单的配送地址与该聚类中心订单的配送地址之间的配送地址间来选择;除此之外,还可以进一步依据这些其他还未被聚类到某订单组的订单的配送地址与已经聚类到该聚类中心订单对应的订单组内的订单的配送地址间的距离来选择,将在后续详细说明。也就是说,在一可选方式中,当前的聚类中心订单确定之后,可以根据集散地址对应的多个订单中未聚类订单与该聚类中心订单的配送地址间距离,对未聚类订单进行聚类处理,以确定与聚类中心订单对应的订单组;在另一可选方式中,可以根据多个订单中未聚类订单与聚类中心订单对应的订单组内订单的配送地址间距离,对未聚类订单进行聚类处理。这里,未聚类订单是指该多个订单中还没有被聚类到一订单组内的各个订单。可以理解的是,在刚刚确定某个聚类中心订单时,其对应的订单组中仅包括该聚类中心订单,随着不断有订单加入到该订单组,该订单组内的订 单不断更新,同时,未聚类订单也随之更新,因此,上述另一可选方式中,随着订单组内不断加入订单,上述未聚类订单以及订单组内订单是随时更新的。Optionally, for a cluster center order, the order of the order in the order group that is drawn may be based on the delivery address of the other order that has not been clustered to an order group and the order of the cluster center. Select between the delivery addresses between the delivery addresses; in addition, further based on the delivery addresses of these other orders that have not been clustered to an order group and the order groups that have been clustered to the cluster center order The distance between the delivery addresses of the orders within the selection is to be described in detail later. That is to say, in an optional manner, after the current cluster center order is determined, the distance between the un-cluster order of the plurality of orders corresponding to the collection address and the delivery address of the cluster center order may be The order is clustered to determine the order group corresponding to the cluster center order; in another alternative, the delivery address of the order in the order group corresponding to the unclustered order and the cluster center order in the plurality of orders may be Inter-distance, clustering un-cluster orders. Here, the un-cluster order refers to each of the plurality of orders that have not been clustered into an order group. It can be understood that when a certain cluster center order is just determined, only the cluster center order is included in the corresponding order group, and the order within the order group is added as the order is continuously added to the order group. The order is continuously updated, and the un-cluster order is also updated. Therefore, in the above alternative, as the order is continuously added to the order group, the un-cluster order and the order within the order group are updated at any time.
可选地,在根据多个订单各自的配送地址与集散地址之间的距离依次进行每个订单组对应的聚类中心订单的选择时,既可以按照从靠近集散地址至远离集散地址的由近及远的方式来依次选择聚类中心订单,也可以按照从远离集散地址至靠近集散地址的由远及近的方式来依次选择聚类中心订单。Optionally, when the selection of the cluster center order corresponding to each order group is sequentially performed according to the distance between the respective delivery address and the collection and delivery address of the plurality of orders, the proximity from the collection address to the remote collection address may be And the far way to select the cluster center order in turn, or to select the cluster center order in turn from the far and near way from the collection address to the collection address.
但是,在基于前述说明的订单分组的整体思想的情况下,在一种可选的订单组内订单的选择方式下,由近及远的方式容易导致最后得到的一个或几个订单组内的订单,其配送地址在空间上较为分散,不利于配送运力的提高,因此,结合采用的订单组内订单选择方式的不同,聚类中心订单的选择亦可不同。However, in the case of the overall idea of order grouping based on the foregoing description, in an alternative order group selection mode, the near and far way is likely to result in the last one or several order groups. Orders, their delivery addresses are more scattered in space, which is not conducive to the improvement of delivery capacity. Therefore, the choice of cluster center orders may be different depending on the order selection method in the order group.
另外,在进行当前的聚类中心订单选择时,可选地,可以一次选择出一个或多个聚类中心订单,比如一次选择出两个聚类中心订单。其中,在一次选择出多个聚类中心订单时,为保证多个聚类中心订单所对应的订单组内的订单在地理位置上具有较为明显的差异性,该多个聚类中心订单的配送地址之间应该相距较远,因此,实际应用中,可以合理设置不同聚类中心订单的配送地址间距离的距离阈值,以便进行不同聚类中心订单的合理选择。In addition, when the current cluster center order selection is performed, one or more cluster center orders may be selected at one time, for example, two cluster center orders are selected at a time. In the case that multiple cluster center orders are selected at one time, in order to ensure that the orders in the order group corresponding to the plurality of cluster center orders have obvious geographical differences, the distribution of the plurality of cluster center orders The addresses should be far apart from each other. Therefore, in practical applications, the distance threshold between the delivery addresses of different cluster center orders can be reasonably set to make reasonable selection of different cluster center orders.
具体地,在根据多个订单各自的配送地址与集散地址的距离选取当前的聚类中心订单时,可以先根据当前多个订单各自关联的聚类状态标记,从多个订单中筛选出未聚类订单,进而,根据这些未聚类订单各自的配送地址与集散地址的距离,从这些未聚类订单中选出距离集散地址最远的订单作为当前的聚类中心订单。Specifically, when the current cluster center order is selected according to the distance between the delivery address and the collection and delivery address of the plurality of orders, the cluster status flag associated with each of the current orders may be firstly selected to filter out the multiple orders. The class order, and further, according to the distance between the respective delivery addresses of the un-cluster orders and the collection and distribution addresses, the orders farthest from the collection and distribution addresses are selected from the un-cluster orders as the current cluster center order.
对于上述聚类中心订单的选择,在一可选实现方式中,初始情况时即还未进行正式的订单分组处理时,可以预先构建反映集散地址与各订单的配送地址之间距离的距离矩阵。从而,对于第一个订单组来说,可以从该距离矩阵中选择出一个订单作为第一个聚类中心订单,例如将最大距离值对应的订单作为第一个聚类中心订单,进而进行该第一个聚类中心订单对应的第一个订单组内订单的聚入处理过程。并且,在该过程中,可选地,可以在每当确定一个订单加入该第一订单组时,将该加入的订单标记为已聚类。从而,在第一个订单组生成完毕,需要进行第二个订单组的生成时,可以基于该标记,从距离矩阵中先筛选出没有标记即未聚类的订单与聚类中心订单的距离值,再从中确定第二个聚类中心订单,例如将最大距离值对应的订单作为第二个聚类中心订单。后续其他聚类中心订单的选择过程与之类似,不再赘述。For the selection of the above cluster center order, in an optional implementation manner, when the formal order grouping process has not been performed in the initial situation, the distance matrix reflecting the distance between the distribution address and the delivery address of each order may be constructed in advance. Therefore, for the first order group, an order can be selected from the distance matrix as the first cluster center order, for example, the order corresponding to the maximum distance value is used as the first cluster center order, and then the The aggregation process of the order in the first order group corresponding to the first cluster center order. And, in the process, optionally, the added order may be marked as clustered each time an order is determined to join the first order group. Therefore, when the first order group is generated and the second order group needs to be generated, the distance value of the unmarked, un-clustered order and the cluster center order can be filtered from the distance matrix based on the mark. And then determine the second cluster center order, for example, the order corresponding to the maximum distance value as the second cluster center order. The selection process of subsequent cluster center orders is similar, and will not be described again.
为便于理解,举例来说,如图1b所示,假设当前的时机为初始情况时,并且假设多个订单分别表示为a、b、c、d、e、f,每个订单对应的实心圆点表征对应的配送地址,集散地址表示为Z。由于初始情况下所有订单还没有被进行分组划分,所以每个订单关联的聚类状态标记都为未聚类状态,因此,此时需要根据 所有订单即订单a、b、c、d、e、f各自的配送地址与集散地址的距离,从所有订单中选出距离集散地址最远的订单作为当前的聚类中心订单,图中示意的订单a的配送地址距离集散地址最远,因此,当前选择订单a作为聚类中心订单,并且假设该聚类中心订单a引出的订单组表示为订单组1。接下来需要执行针对订单组1的订单聚类处理过程。For ease of understanding, for example, as shown in FIG. 1b, assuming that the current timing is the initial situation, and assuming that multiple orders are represented as a, b, c, d, e, f, respectively, the solid circle corresponding to each order The point characterizes the corresponding delivery address, and the collection address is represented as Z. Since all orders have not been grouped in the initial situation, the cluster status flags associated with each order are un-clustered. Therefore, it needs to be based on this. All orders are the distance between the delivery address and the collection and delivery address of orders a, b, c, d, e, and f. The order with the farthest distance from the collection address is selected from all orders as the current cluster center order, as indicated in the figure. The delivery address of order a is farthest from the collection address, so the current order a is currently selected as the cluster center order, and it is assumed that the order group led by the cluster center order a is represented as order group 1. Next, the order clustering process for order group 1 needs to be performed.
在针对当前的聚类中心订单引出的订单组比如上述举例中的订单组1进行订单聚类处理之前,比如在初始情况时,在一可选实现方式中,可以预先针对每个订单,构建其对应的配送地址间距离矩阵。对于某订单来说,其对应的配送地址间距离矩阵的含义是:该订单的配送地址与其他订单的配送地址之间的距离即配送地址间距离,以便于基于该配送地址间距离矩阵进行后续的聚类处理。另外,每个订单的配送地址间距离矩阵中的每个元素即每个距离值还可以关联有聚类状态标记,如果对应的订单已经被聚类到某个订单组,则该标记置为已聚类状态标识,反之,置为未聚类状态标识。Before the order clustering process is performed on the order group drawn by the current cluster center order, such as the order group 1 in the above example, for example, in the initial case, in an alternative implementation, the order may be constructed for each order in advance. The distance matrix between the corresponding delivery addresses. For an order, the meaning of the distance matrix between the corresponding delivery addresses is: the distance between the delivery address of the order and the delivery address of the other order, that is, the distance between the delivery addresses, so as to be followed by the distance matrix between the delivery addresses. Clustering processing. In addition, each element in the distance matrix of each order's delivery address, that is, each distance value, may also be associated with a cluster status flag. If the corresponding order has been clustered to an order group, the flag is set to The cluster status indicator is set, otherwise, it is set to the uncluster status indicator.
比如,在基于当前订单组的实际分组容量,根据多个订单中未聚类订单与当前的聚类中心订单的配送地址间距离,对未聚类订单进行聚类处理以确定与该聚类中心订单对应的订单组的聚类处理方式中:基于该聚类中心订单对应的配送地址间距离矩阵,以及结合矩阵中各距离值关联的聚类状态标记,可以获知当前的各个未聚类订单相对该聚类中心订单的配送地址间距离;进而,以实际分组容量为该订单组内订单数量约束,从未聚类订单中选择出对应的距离值最大的n个订单加入该订单组,n取值为实际分组容量减一。从而,该聚类中心订单对应的订单组生成完毕。For example, based on the actual grouping capacity of the current order group, clustering the unclustered orders according to the distance between the un-clustering order of the plurality of orders and the delivery address of the current cluster center order to determine the clustering center In the cluster processing mode of the order group corresponding to the order: based on the distance matrix between the delivery addresses corresponding to the cluster center order, and the cluster state flag associated with each distance value in the combination matrix, it can be known that the current un-cluster orders are relative The distance between the delivery addresses of the cluster center order; further, the actual grouping capacity is the order quantity constraint in the order group, and the n orders with the largest distance value selected from the ungrouped orders are added to the order group, n is taken The value is the actual packet size minus one. Thus, the order group corresponding to the cluster center order is generated.
为方便理解,继续以前述举例来说,由于预先已经确定出订单组1对应的实际分组容量,比如为3个订单,因此,在一可选方式中,可以以聚类中心订单a的配送地址为基准,从其他订单b、c、d、e、f中选择出配送地址相距该聚类中心订单a的配送地址最近的两个订单,假设为订单b、c加入订单组1,从而,订单组1中包括了订单a、b、c三个订单。For the sake of understanding, continue with the foregoing example, since the actual grouping capacity corresponding to the order group 1 has been determined in advance, for example, 3 orders, in an optional manner, the shipping address of the cluster center order a can be used. For the benchmark, select from the other orders b, c, d, e, f the two orders whose delivery address is closest to the delivery address of the cluster center order a, assuming that the order b, c is added to the order group 1, and thus, the order Group 1 includes three orders order a, b, and c.
值得说明的是,上述一订单对应的配送地址间距离矩阵的构建时机,并非局限于前述举例的初始情况时,而且,该订单与其他各订单之间的配送地址间距离也不局限于一次全部计算完毕。比如,在确定出某聚类中心订单,该聚类中心订单引出一订单组时,构建该聚类中心订单对应的配送地址间距离矩阵,以基于该矩阵选择出加入该订单组的一个或多个订单;之后,如果该订单组内订单数量没有达到实际分组容量的限制,则此时可以再构建刚加入该订单组的订单所对应的配送地址间距离矩阵,而此时,刚加入该订单组的订单所对应的配送地址间距离矩阵中可以仅包含其与未聚类订单的配送地址间距离,可以不用计算其与订单组内订单的配送地址间距离。 It should be noted that the timing of constructing the distance matrix between delivery addresses corresponding to the above-mentioned order is not limited to the initial situation of the foregoing example, and the distance between the delivery addresses between the order and other orders is not limited to one time. The calculation is completed. For example, when determining a cluster center order, the cluster center order leads to an order group, and constructs a distance matrix between delivery addresses corresponding to the cluster center order, so as to select one or more to join the order group based on the matrix. After the order, if the order quantity in the order group does not reach the limit of the actual grouping capacity, then the distance matrix between the delivery addresses corresponding to the order just joined to the order group can be reconstructed at this time, and at this time, the order is just added. The distance matrix between the delivery addresses corresponding to the group order may only include the distance between the delivery address and the delivery address of the un-cluster order, and the distance between the delivery address and the delivery address of the order in the order group may not be calculated.
除上述以当前的聚类中心订单的配送地址为基准,根据其他未聚类订单与该聚类中心订单的配送地址间距离来选择相距聚类中心订单最近的一定数量的订单组成该聚类中心订单对应的订单组外,本公开实施例还提供了另一种可选方式进行订单组中订单的聚类处理,即为前述提及的根据多个订单中未聚类订单与聚类中心订单对应的订单组内订单的配送地址间距离,对未聚类订单进行聚类处理。具体过程可以为:In addition to the above-mentioned distribution address of the current cluster center order, a certain number of orders closest to the cluster center order are selected according to the distance between other un-cluster orders and the delivery address of the cluster center order to form the cluster center. In addition to the order group corresponding to the order, the embodiment of the present disclosure further provides another optional method for clustering the order in the order group, that is, the un-cluster order and the cluster center order according to the plurality of orders mentioned above. The distance between the delivery addresses of the orders in the corresponding order group is clustered for the un-clustered orders. The specific process can be:
迭代执行如下过程,直到满足订单组对应的聚类截止条件:Iteratively executes the following process until the clustering deadlines corresponding to the order group are met:
根据当前订单组内订单与当前的未聚类订单的配送地址间距离,从当前的未聚类订单中选择出相对订单组距离最近的订单;According to the distance between the order in the current order group and the delivery address of the current un-clustered order, the order that is closest to the order group is selected from the current un-cluster order;
将选择出的订单加入当前的订单组;Add the selected order to the current order group;
更新未聚类订单。Update un-cluster orders.
其中,可选地,聚类截止条件包括:当前订单组的订单数达到实际分组容量。Optionally, the clustering cutoff condition includes: the number of orders of the current order group reaches the actual packet capacity.
可选地,相对订单组距离最近的订单是指与该订单组中的每一个订单的配送地址间距离最近的多个未聚类订单中,所述配送地址间距离最短的未聚类订单。Optionally, the order closest to the order group refers to the unscheduled order with the shortest distance between the delivery addresses among the plurality of un-clustered orders that are closest to the delivery address of each order in the order group.
为便于理解,仍以前述举例来说,在首次迭代过程中,基于前述聚类中心订单的选择过程,已经确定订单a为当前的聚类中心订单,引出订单组1,即此时如图1b所示,订单组1中仅包含有订单a。由于当前其他订单都处于未聚类状态,即都为未聚类订单,因此,可以基于订单a的配送地址间距离矩阵,从当前的未聚类订单b、c、d、e、f中选出相对于订单a最近的订单,亦即相对当前的订单组1最近的订单。本实施例中,为描述方便,将选出的相对当前的订单组距离最近的订单,称为待聚入订单,表示等待聚入到当前的订单组内的订单的含义。假设未聚类订单b的配送地址与订单a的配送地址之间的距离小于其他未聚类订单的配送地址与订单a的配送地址之间的距离,则可以从未聚类订单中选出订单b作为当前的待聚入订单,将其加入到订单组1中,如图1c所示。此时,由于订单b已经被加入到订单组1中,则订单b的聚类状态标记变为已聚类状态,更新未聚类订单后,未聚类订单变为订单c、d、e、f。此时,判断当前订单组1内的订单数是否已经达到实际分组容量3,由于当前订单组1内仅包括了订单a和b,还没有达到3个订单,因此执行下一次迭代过程。For ease of understanding, still in the foregoing example, in the first iteration process, based on the selection process of the aforementioned cluster center order, it has been determined that the order a is the current cluster center order, and the order group 1 is taken out, that is, as shown in FIG. 1b. As shown, order group 1 contains only order a. Since all other orders are currently in an un-clustering state, that is, they are all un-clustered orders, they can be selected from the current un-clustering orders b, c, d, e, and f based on the distance matrix between the delivery addresses of order a. The order closest to order a, that is, the order closest to the current order group 1. In this embodiment, for convenience of description, the selected nearest order relative to the current order group is referred to as an order to be aggregated, indicating the meaning of the order waiting to be aggregated into the current order group. Assuming that the distance between the delivery address of the un-clustering order b and the delivery address of the order a is smaller than the distance between the delivery address of the other un-clustered order and the delivery address of the order a, the order can be selected from the un-cluster order. b As the current order to be aggregated, add it to order group 1, as shown in Figure 1c. At this time, since the order b has been added to the order group 1, the cluster status flag of the order b becomes the clustered state, and after the ungrouped order is updated, the unclustered order becomes the order c, d, e, f. At this time, it is judged whether the number of orders in the current order group 1 has reached the actual grouping capacity 3. Since the current order group 1 includes only orders a and b, and has not yet reached 3 orders, the next iteration process is performed.
在执行第二次迭代过程时,如图1c所示,当前订单组1内包括了订单a和b,当前的未聚类订单包括订单c、d、e、f。此时,在执行根据当前订单组内订单与当前的未聚类订单的配送地址间距离,从当前的未聚类订单中选择出相对订单组距离最近的订单的过程中,首先针对当前订单组1内的订单a,基于其对应的配送地址间距离矩阵,从当前的未聚类订单c、d、e、f中确定出配送地址与订单a的配送地址之间的距离最近的未聚类订单,假设订单c的配送地址与订单a的配送地址之间的距离小于其他未聚类订单即d、e、f的配送地址分别与订单 a的配送地址之间的距离,则确定订单c为相对订单a最近的订单。同理,针对当前订单组1内的订单b,基于其对应的配送地址间距离矩阵,从当前的未聚类订单c、d、e、f中确定出配送地址与订单b的配送地址之间的距离最近的未聚类订单,假设订单d的配送地址与订单b的配送地址之间的距离小于其他未聚类订单即c、e、f的配送地址分别与订单b的配送地址之间的距离,则确定订单d为相对订单b最近的订单。那么,此时,针对当前订单组1来说,订单c、d构成了一个候选订单集合,而相对当前订单组1最近的待聚入订单就是从该候选订单集合中选择出该待聚入订单,加入到订单组1中。During the execution of the second iteration process, as shown in Figure 1c, the current order group 1 includes orders a and b, and the current un-cluster order includes orders c, d, e, f. At this time, in the process of executing the order according to the current order group and the current un-cluster order delivery address, and selecting the nearest order from the current un-cluster order, first for the current order group. The order a in 1 determines the closest un-clustering distance between the delivery address and the delivery address of the order a from the current un-clustered orders c, d, e, and f based on the distance matrix between the corresponding delivery addresses. Order, assuming that the distance between the delivery address of order c and the delivery address of order a is smaller than the delivery addresses of other un-clustered orders, ie, d, e, and f, respectively. The distance between the delivery addresses of a determines that the order c is the closest order to the order a. Similarly, for the order b in the current order group 1, based on the distance matrix between the corresponding delivery addresses, the current un-cluster order c, d, e, f is determined between the delivery address and the delivery address of the order b. The distance from the nearest un-clustered order, assuming that the distance between the delivery address of order d and the delivery address of order b is less than the delivery address of other un-clustered orders, ie, c, e, f, and the delivery address of order b Distance determines that order d is the closest order to order b. Then, at this time, for the current order group 1, the orders c, d constitute a candidate order set, and the closest to-order order with respect to the current order group 1 is to select the to-be-integrated order from the candidate order set. , joined to order group 1.
其中,相对当前订单组1最近的订单即待聚入订单的选择依据是:当前订单组1内各订单对应的最短配送地址间距离中的最小值所对应的订单即为相对当前订单组1最近的订单亦即待聚入订单。The order of the order that is closest to the current order group 1 to be aggregated is based on: the order corresponding to the minimum distance between the shortest delivery addresses corresponding to each order in the current order group 1 is the latest relative to the current order group 1 The order will also be placed in the order.
其中,该最短配送地址间距离是相对于订单来说的,简单来说,某个订单对应的最短配送地址间距离是指:该订单的配送地址与当前的各未聚类订单的配送地址之间的距离中的最短距离。比如针对当前订单组1内的上述订单a来说,未聚类订单c、d、e、f中,相比于订单d、e、f,订单c的配送地址与订单a的配送地址间距离最短,故而称为最短配送地址间距离。Wherein, the distance between the shortest delivery addresses is relative to the order. In short, the distance between the shortest delivery addresses corresponding to an order refers to: the delivery address of the order and the current delivery address of each un-cluster order. The shortest distance between the distances. For example, for the order a in the current order group 1, the ungrouped order c, d, e, f, the distance between the delivery address of the order c and the delivery address of the order a compared to the orders d, e, f The shortest, so it is called the shortest delivery address distance.
而最短配送地址间距离中的最小值是针对订单组来说的,简单来说,当前该订单组内包含的每个订单都对应有一个最短配送地址间距离,最小值就是指这些最短配送地址间距离中的最小值。对于上述举例中的订单组1来说,由于当前订单组1内订单数量不为1,即针对其中的每个订单都有与之对应的最短配送地址间距离,所有的最短配送地址间距离中的最小值所对应的那个未聚类订单,即为当前的待聚入到订单组内的订单,也就是相对当前订单组距离最近的订单。假设上述订单a与订单c的最短配送地址间距离为D1,订单b与订单d的最短配送地址间距离为D2,且假设D1小于D2,则确定订单c为当前的待聚入订单,将其加入到订单组1中,如图1d所示。此时,订单c的聚类状态标记变为已聚类状态,更新未聚类订单后,未聚类订单变为订单d、e、f。此时,判断当前订单组1内的订单数是否已经达到实际分组容量3,由于当前订单组1内包括订单a、b和c,已经达到3个订单,则以订单a为聚类中心订单的订单组1分组完毕。此时,更新未聚类订单后,未聚类订单为订单d、e、f。值得说明的是,如果假设上述实际分组容量为4,则针对上述订单组1来说,当前订单组1内包括订单a、b和c,还没有达到4个订单的容量限制,则继续执行下一次迭代过程,即第三次迭代过程,具体的过程与第二次迭代过程类似。The minimum of the distance between the shortest delivery addresses is for the order group. In short, each order included in the current order group has a shortest delivery address distance, and the minimum value refers to these shortest delivery addresses. The minimum of the distances between. For the order group 1 in the above example, since the order quantity in the current order group 1 is not 1, that is, for each of the orders, there is a shortest delivery address distance corresponding thereto, and the distance between all the shortest delivery addresses is The unclustered order corresponding to the minimum value is the current order to be aggregated into the order group, that is, the order closest to the current order group. Assume that the distance between the order a and the shortest delivery address of the order c is D1, and the distance between the shortest delivery address of the order b and the order d is D2, and if D1 is less than D2, it is determined that the order c is the current to-be-integrated order, and Join in order group 1, as shown in Figure 1d. At this time, the cluster status flag of the order c becomes the clustered state, and after the un-cluster order is updated, the un-cluster order becomes the order d, e, and f. At this time, it is judged whether the number of orders in the current order group 1 has reached the actual grouping capacity 3. Since the current order group 1 includes orders a, b, and c, and 3 orders have been reached, the order a is used as the cluster center order. Order group 1 is grouped. At this time, after the un-cluster order is updated, the un-cluster order is the order d, e, f. It should be noted that if the actual packet capacity is assumed to be 4, then for the order group 1, the current order group 1 includes orders a, b, and c, and has not reached the capacity limit of 4 orders, and then continues to execute. An iterative process, the third iteration process, is similar to the second iteration process.
在订单组1分组完毕之后,可以进行下一个聚类中心订单的选择,以及以下一个聚类中心订单引出的订单组2的订单聚类处理过程,如图1e所示,假设根据当前未聚类订单为订单d、e、f,则根据这些未聚类订单分别与集散地址之间 的距离,从中选择出距离集散地址最远的订单为d,则订单d作为第二个聚类中心订单,引出订单组2。进而,参见前述向订单组1聚类订单的过程的说明,不断向订单组2中加入订单,假设聚类截止条件为订单组内订单数达到实际分组容量3,则如图1f所示,最终,订单组2中包括了订单d、e、f三个订单。至此,所有订单已经分组完毕。After the order group 1 is grouped, the next cluster center order selection can be made, and the order clustering process of the order group 2 led by the following cluster center order is as shown in FIG. 1e, assuming that the current cluster is not clustered. If the order is order d, e, f, then according to these un-cluster orders and the collection address The distance from which the order farthest from the collection address is d is selected, and the order d is taken as the second cluster center order, and the order group 2 is drawn. Further, referring to the foregoing description of the process of clustering orders to the order group 1, the order is continuously added to the order group 2, assuming that the cluster cutoff condition is that the number of orders in the order group reaches the actual grouping capacity 3, as shown in FIG. 1f, Order group 2 includes three orders d, e, and f. At this point, all orders have been grouped.
通过上述说明可知,本公开实施例中,相对于一订单组或者下述实施例中提及到的一个订单集合的最近订单,可以根据如下方式确定:首先从该组/集合内每个订单对应的配送地址间距离矩阵中确定出具有未聚类状态标记的最小距离值,进而比较确定出的各最小距离值,从中选择出最小值,即从多个最小距离值中选出最小值,该最小值对应的未聚类订单,作为该组/集合当前对应的距离最近订单。As can be seen from the above description, in the embodiment of the present disclosure, the latest order with respect to an order group or an order set mentioned in the following embodiments may be determined according to the following manner: first, corresponding to each order in the group/set The minimum distance value of the un-cluster state flag is determined in the distance matrix between the delivery addresses, and then the determined minimum distance values are compared, and the minimum value is selected, that is, the minimum value is selected from the plurality of minimum distance values, The unclustered order corresponding to the minimum value is the nearest order to which the group/set currently corresponds.
另外,上述订单组内订单的聚类处理过程中,聚类截止条件可以是订单组内订单数达到实际分组容量的限制,如此,能够保证最终得到的全部订单组具有相对均衡的订单容量。除此之外,可选地,该聚类截止条件还可以包括:选择出的即待聚入到订单组内的订单相对订单组的最近距离大于或等于预设距离阈值。该条件进一步保证同一订单组内的订单在空间范围上相对集中,避免配送人员需要在过于宽广的范围内完成一组订单的配送。In addition, in the clustering process of the order in the above order group, the clustering cutoff condition may be that the number of orders in the order group reaches the actual grouping capacity limit, so that all the finally obtained order groups have a relatively balanced order capacity. In addition, optionally, the clustering cutoff condition may further include: selecting a closest distance of the order to be aggregated into the order group relative to the order group is greater than or equal to a preset distance threshold. This condition further ensures that the orders within the same order group are relatively concentrated in the spatial scope, avoiding the need for the delivery personnel to complete the delivery of a set of orders within an excessively wide range.
仍以上述举例来说,针对第二次迭代过程来说,已经选择出的订单为订单c,且订单c与订单a的配送地址间距离为D1,如果D1大于或等于预设距离阈值,说明该订单c相对订单组1内订单来说相距较远,此时,不将订单c加入订单组1,则此时订单组1最终将仅包括订单a、b,订单数未达到实际分组大小。实际应用中,可以通过合理设置该距离阈值,在订单组容量和空间范围集中性间进行折中。Still taking the above example, for the second iteration process, the order that has been selected is the order c, and the distance between the order c and the delivery address of the order a is D1, and if D1 is greater than or equal to the preset distance threshold, The order c is far from the order in the order group 1. At this time, the order c is not added to the order group 1, then the order group 1 will eventually only include the orders a, b, and the order number does not reach the actual group size. In practical applications, the distance threshold can be set reasonably to make a compromise between the order group capacity and the spatial range concentration.
综上,以上实施例中,当某集散地存在多个订单需要进行配送时,首先根据订单总量适应性地确定每个订单分组的实际分组容量,进而以该实际分组容量为约束,对多个订单进行分组处理。其中,分组处理过程中,首先基于多个订单各自的配送地址与集散地址的距离选取当前的聚类中心订单,该聚类中心订单引起一个订单组,进而,根据多个订单中未聚类订单与该聚类中心订单的配送地址间距离对未聚类订单进行聚类处理,以获取该聚类中心订单所引起的订单组内的订单,形成一个订单组。本方案中,由于每个分组的聚类中心订单是基于订单配送地址与集散地的距离选定的,每个分组内的订单是基于未聚类订单与聚类中心订单的配送地址之间的距离而聚类确定的,使得不同分组的配送范围有明显差异,同一分组内的订单的配送地址具有较强集聚性,且分组大小与订单量相适应,从而,有利于保证每个配送人员被分配到的订单组大小与实际运力匹配且配送范围比较集中,整体来说,可以提高配送运力的利用率。 In summary, in the above embodiment, when there are multiple orders in a certain distribution center and need to be distributed, firstly, the actual grouping capacity of each order group is adaptively determined according to the total order quantity, and then the actual grouping capacity is used as a constraint, and multiple Orders are grouped. Wherein, in the group processing process, the current cluster center order is first selected based on the distance between the respective delivery addresses of the plurality of orders and the distribution address, and the cluster center order causes an order group, and further, according to the unscheduled orders in the plurality of orders The un-cluster order is clustered with the distance between the delivery addresses of the cluster center order to obtain the order in the order group caused by the cluster center order, and an order group is formed. In this solution, since the cluster center order of each group is selected based on the distance between the order delivery address and the distribution center, the order within each group is based on the distance between the un-cluster order and the delivery address of the cluster center order. The clustering determines that the distribution range of different groups is significantly different, the delivery address of the order within the same group has a strong agglomeration, and the group size is adapted to the order quantity, thereby ensuring that each delivery person is allocated. The order group size is matched with the actual capacity and the distribution range is relatively concentrated. Overall, the utilization rate of the delivery capacity can be improved.
实际配送过程中,由于需配送物品的体积、重量往往各不相同,在上述以实际分组容量为聚类截止条件时,可能会出现对于一个订单组,虽然该订单组内订单数量达到了实际分组容量的限制,但是,实际配送过程中发现,这个订单组内订单对应的物品可能不足以供一次配送运输,这对配送运力的有效利用不利。而相反地,如果这个订单组内订单对应的物品稍微超过一次配送运输的运力,实际配送过程中还可以通过一定方法将一组订单对应的物品一次运输完毕。因此,本公开实施例在通过前述实施例的方式得到当前聚类中心订单对应的订单组比如上述举例的订单组1后,还提供了额外的补充订单的手段。In the actual delivery process, since the volume and weight of the items to be delivered tend to be different, when the actual grouping capacity is used as the clustering cutoff condition, an order group may appear for the order group, although the order quantity in the order group reaches the actual grouping. The capacity is limited. However, during the actual distribution process, it is found that the items corresponding to the orders in this order group may not be sufficient for one-time delivery and transportation, which is unfavorable for the effective utilization of the delivery capacity. On the contrary, if the items corresponding to the order in this order group slightly exceed the capacity of the delivery and transportation, the actual delivery process can also be used to transport the items corresponding to a group of orders at one time. Therefore, after obtaining the order group corresponding to the current cluster center order, such as the order group 1 of the above example, the embodiment of the present disclosure further provides an additional means for replenishing the order.
其中,补充订单的前提是基于当前确定出的实际分组容量是否已经达到预设的最大分组容量,因为实际应用中,最大分组容量往往是全面统计、考虑了影响配送运力利用率的多方面因素而设定的,如果实际分组容量小于预设最大分组容量,说明对于当前的订单组1,还可以适当补入一定数量的、满足一定条件的未聚类订单。即可选地,若实际分组容量小于预设最大分组容量,则根据当前订单组内订单与当前的未聚类订单的配送地址间距离,可以向当前的订单组补充订单。当然,如果当前的未聚类订单中不存在满足该一定条件的订单可以补入订单组1,则补充过程结束。也就是说,可选地,若实际分组容量小于预设最大分组容量,则可以执行一次或多个迭代过程,以向订单组1依次补入满足一定条件的订单,理想情况下,一致补充至直到满足补充截止条件为止。The premise of the supplementary order is based on whether the actual determined packet capacity has reached the preset maximum packet capacity, because in actual application, the maximum packet capacity is often comprehensive statistics, considering various factors affecting the utilization of the delivery capacity. If the actual packet capacity is less than the preset maximum packet capacity, it indicates that for the current order group 1, a certain number of unclustered orders satisfying certain conditions can be appropriately added. That is, if the actual packet capacity is less than the preset maximum packet capacity, the order may be replenished to the current order group according to the distance between the current order group order and the current un-cluster order delivery address. Of course, if there is no order in the current un-cluster order that satisfies the certain condition, the order group 1 can be replenished. That is, optionally, if the actual packet capacity is less than the preset maximum packet capacity, one or more iterative processes may be performed to sequentially replenish the order group 1 with an order that satisfies certain conditions, and ideally, it is uniformly added to Until the supplementary deadline is met.
下面结合图2a和图3a所示实施例,介绍两种补充订单的可选实现方式。An alternative implementation of two supplementary orders is described below in conjunction with the embodiment shown in Figures 2a and 3a.
图2a为本公开实施例提供的订单处理方法实施例二的流程图,如图2a所示,在执行完一次103之后,还可以包括如下步骤:2a is a flowchart of a second embodiment of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 2a, after performing a 103, the following steps may be further included:
201、根据当前订单组内订单与当前的未聚类订单的配送地址间距离,从当前的未聚类订单中选择出相对订单组距离最近的待补充订单。201. According to the distance between the order in the current order group and the delivery address of the current un-cluster order, select the to-be-replenished order that is closest to the order group from the current un-cluster order.
可选地,未聚类订单中选择出相对订单组距离最近的待补充订单是指与订单组中每个订单的配送地址间距离最近的多个未聚类订单中,所述配送地址间距离最短的未聚类订单。Optionally, the to-be-replenished order that is the closest to the order group distance in the un-cluster order refers to the distance between the delivery addresses in the plurality of un-clustered orders that are closest to the delivery address of each order in the order group. The shortest un-cluster order.
仍以前述实施例中的举例来说,假设当前已经分组完毕订单组1,其中,订单组1中包含了订单a、b和c。当前的未聚类订单为订单d、e、f。按照前述实施例中提供的订单选择方式,假设订单d为相对订单组1最近的订单,即为待补充订单。具体地,假设订单d、e、f中,配送地址与订单a的配送地址间距离最近的订单为订单d,且假设订单a与订单d的配送地址间距离为D1;配送地址与订单b的配送地址间距离最近的订单为订单e,且假设订单b与订单e的配送地址间距离为D2;配送地址与订单c的配送地址间距离最近的订单为订单f,且假设订单c与订单f的配送地址间距离为D3,且假设D1、D2、D3中D1最小, 则确定订单d为相对当前订单组1最近的待补充订单,相对订单组1的最近距离为D1。Still in the example of the previous embodiment, it is assumed that order group 1 has been currently grouped, wherein order group 1 contains orders a, b, and c. The current un-cluster order is order d, e, f. According to the order selection method provided in the foregoing embodiment, it is assumed that the order d is the order closest to the order group 1, that is, the order to be replenished. Specifically, suppose that in order d, e, f, the order with the closest distance between the delivery address and the delivery address of order a is order d, and the distance between the delivery address of order a and order d is assumed to be D1; the delivery address and the order b The closest order between the delivery addresses is order e, and the distance between the delivery address of the order b and the order e is assumed to be D2; the order closest to the delivery address of the delivery address and the delivery address of the order c is the order f, and the order c and the order f are assumed. The distance between the delivery addresses is D3, and it is assumed that D1 is the smallest among D1, D2, and D3. Then, it is determined that the order d is the closest order to be replenished relative to the current order group 1, and the closest distance to the order group 1 is D1.
202、根据待补充订单与剩余未聚类订单集合内订单的配送地址间距离,确定待补充订单相对剩余未聚类订单集合的最近距离;其中,剩余未聚类订单集合由除了待补充订单之外的未聚类订单组成。202. Determine, according to the distance between the to-be-replenished order and the delivery address of the order in the remaining un-clustered order set, the closest distance of the to-be-replenished order relative to the remaining un-clustered order set; wherein, the remaining un-clustered order set is excluded by the order to be replenished The composition of the un-cluster orders outside.
本实施例中,可选地,待补充订单相对所述剩余未聚类订单集合的最近距离是指该待补充订单与剩余未聚类订单集合中每个未聚类订单的配送地址间距离中最短的距离。例如,当从当前的未聚类订单d、e、f中确定出相对订单组1距离最近的订单d之后,可以将剩余的未聚类订单e、f视为一个整体,构成剩余未聚类订单集合。进而,通过计算订单d与该集合中订单e、f分别对应的配送地址间距离,确定订单d相对剩余未聚类订单集合的最近距离。假设订单d与订单e的配送地址间距离为D4,订单d与订单f的配送地址间距离为D5,若D4小于D5,则确定D4为订单d相对剩余未聚类订单集合的最近距离。In this embodiment, optionally, the closest distance of the to-be-replenished order relative to the remaining un-clustered order set refers to the distance between the to-be-supplemented order and the delivery address of each un-clustered order in the remaining un-clustered order set. The shortest distance. For example, after determining the order d closest to the order group 1 from the current un-cluster orders d, e, f, the remaining un-cluster orders e, f can be regarded as a whole to constitute the remaining un-cluster Order collection. Further, the nearest distance between the order d and the remaining un-clustered order set is determined by calculating the distance between the order d and the delivery address corresponding to the orders e and f in the set respectively. Assume that the distance between the order d and the delivery address of the order e is D4, and the distance between the order d and the delivery address of the order f is D5. If D4 is less than D5, it is determined that D4 is the closest distance of the order d to the remaining un-clustered order set.
203、判断待补充订单相对订单组的最近距离是否小于待补充订单相对剩余未聚类订单集合的最近距离,若小于,则执行204,否则,结束。203. Determine whether the closest distance of the to-be-replenished order relative to the order group is less than the closest distance of the to-be-replenished order relative to the remaining un-clustered order set. If not, execute 204, otherwise, end.
可选地,待补充订单相对订单组的最近距离是指该待补充订单与订单组中每个订单的配送地址间距离中最短的距离。Optionally, the closest distance of the to-be-replenished order relative to the order group is the shortest distance between the to-be-replenished order and the delivery address of each order in the order group.
204、将待补充订单加入所述订单组,更新未聚类订单。204. Add the order to be replenished to the order group, and update the un-cluster order.
205、判断订单组的订单数是否达到预设最大分组容量,若否,则继续执行201,若是,则结束。205. Determine whether the order quantity of the order group reaches the preset maximum packet capacity. If not, continue to execute 201, and if yes, end.
由此可知,本实施例中,订单补充过程是一迭代过程,且迭代的补充截止条件包括:订单组的订单数达到预设最大分组容量,或者,待补充订单相对订单组的最近距离大于或等于待补充订单相对剩余未聚类订单集合的最近距离。Therefore, in this embodiment, the order replenishment process is an iterative process, and the supplemental cut-off condition of the iteration includes: the order quantity of the order group reaches the preset maximum packet capacity, or the closest distance of the to-be-replenished order relative to the order group is greater than or Equal to the closest distance of the order to be replenished relative to the remaining unclustered order set.
如图2b所示,比较订单d与订单a的配送地址间距离D1和订单d与订单e的配送地址间距离D4,如果D1小于D4,则将订单d加入到订单组1中,如图2c所示,此时,订单组1中的订单为a、b、c、d。更新未聚类订单,则当前的未聚类订单更新为:订单e、f。如果此时订单组1内的订单数已经达到预设的最大分组容量,则结束,获得最终的订单组1;如果此时订单组1内的订单数还未达到预设的最大分组容量,则进行下一个待补充订单的选择,选择方式与订单d的选择方式一致,不赘述。As shown in FIG. 2b, the distance D1 between the order d and the delivery address of the order a and the distance D4 between the order d and the delivery address of the order e are compared. If D1 is less than D4, the order d is added to the order group 1, as shown in Fig. 2c. As shown, at this time, the order in order group 1 is a, b, c, d. When an un-cluster order is updated, the current un-cluster order is updated to: order e, f. If the number of orders in the order group 1 has reached the preset maximum grouping capacity at this time, the process ends, and the final order group 1 is obtained; if the number of orders in the order group 1 has not reached the preset maximum grouping capacity at this time, The selection of the next order to be replenished is made, and the selection method is the same as the selection method of the order d, and will not be described.
图3a为本公开实施例提供的订单处理方法实施例三的流程图,如图3a所示,在执行完一次103之后,还可以包括如下步骤:FIG. 3 is a flowchart of a third embodiment of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 3a, after performing a 103, the following steps may be further included:
301、根据当前订单组内订单与当前的未聚类订单的配送地址间距离,从当前的未聚类订单中选择出相对订单组距离最近的待补充订单。 301. Select a to-be-replenished order that is closest to the order group from the current un-cluster order according to the distance between the order in the current order group and the delivery address of the current un-cluster order.
可选地,相对订单组距离最近的待补充订单是指与订单组中每一个订单的配送地址间距离中,所述配送地址间距离最短的未聚类订单。Optionally, the to-be-replenished order closest to the order group distance refers to an un-clustered order with the shortest distance between the delivery addresses in the distance from the delivery address of each order in the order group.
302、根据待补充订单与补充订单集合中订单的配送地址间距离,确定待补充订单相对补充订单集合的最近距离。302. Determine a closest distance of the to-be-replenished order relative to the supplementary order set according to the distance between the to-be-replenished order and the delivery address of the order in the supplementary order set.
可选地,待补充订单相对补充订单集合的最近距离是指待补充订单与补充订单集合中每一个补充订单的配送地址间距离中的最短距离。Optionally, the closest distance of the to-be-replenished order relative to the replenishment order set is the shortest distance among the distances between the replenishment order and the delivery address of each replenishment order in the replenishment order set.
303、判断待补充订单相对订单组的最近距离是否小于待补充订单相对补充订单集合的最近距离,若小于,则执行304,否则,结束。303. Determine whether the closest distance of the to-be-replenished order relative to the order group is less than the closest distance of the to-be-replenished order relative to the supplementary order set. If less, execute 304, otherwise, end.
可选地,待补充订单相对订单组的最近距离指待补充订单与订单组中每一个订单的配送地址间距离中的最短距离。Optionally, the closest distance of the to-be-replenished order relative to the order group refers to the shortest distance between the replenishment order and the delivery address of each order in the order group.
304、将待补充订单加入订单组,并将待补充订单加入补充订单集合,更新未聚类订单。304. Add the order to be replenished to the order group, and add the order to be replenished to the supplementary order set to update the ungrouped order.
可选地,更新未聚类订单可以是将加入订单组的未聚类订单的标识修改成已聚类订单,以便将加入订单组的未聚类订单从未聚类订单集合中去除。Alternatively, updating the un-clustered order may be to modify the identity of the un-clustered order that is added to the order group to a clustered order to remove the un-clustered order that is added to the order group from the un-cluster order set.
305、判断订单组的订单数是否达到预设最大分组容量,若否,则继续执行301,若是,则结束。305. Determine whether the order quantity of the order group reaches a preset maximum packet capacity, and if not, continue to execute 301, and if yes, end.
由此可知,本实施例中,订单补充过程是一迭代过程,且迭代的补充截止条件包括:订单组的订单数达到预设最大分组容量,或者,待补充订单相对订单组的最近距离大于或等于待补充订单相对补充订单集合的最近距离。Therefore, in this embodiment, the order replenishment process is an iterative process, and the supplemental cut-off condition of the iteration includes: the order quantity of the order group reaches the preset maximum packet capacity, or the closest distance of the to-be-replenished order relative to the order group is greater than or Equal to the closest distance of the replenishment order relative to the replenishment order set.
本实施例中,当确定实际分组容量小于预设最大分组容量时,首先生成一补充订单集合,初始时,该补充订单集合为空。In this embodiment, when it is determined that the actual packet capacity is less than the preset maximum packet capacity, a supplementary order set is first generated, and initially, the supplementary order set is empty.
之后,根据前述实施例中的说明,假设当前订单组1中订单为订单a、b、c,当前的未聚类订单包括订单d、e、f。按照前述实施例中提供的订单选择方式,假设订单d为相对订单组1最近的订单,即为当前的待补充订单,且假设订单d相对订单组1的最近距离为D1。由于此时补充订单集合中为空,当补充订单集合为空时,可以认为当前的待补充订单d相对补充订单集合的最近距离为无限大,则此时,待补充订单d相对订单组1的最近距离小于其相对补充订单集合的最近距离,将待补充订单d加入订单组1,并将待补充订单d加入补充订单集合,如图3b所示。进而,更新未聚类订单,更新后的未聚类订单为订单e、f。Thereafter, according to the description in the foregoing embodiment, it is assumed that the order in the current order group 1 is the order a, b, c, and the current un-cluster order includes the orders d, e, f. According to the order selection method provided in the foregoing embodiment, it is assumed that the order d is the order closest to the order group 1, that is, the current order to be replenished, and it is assumed that the closest distance of the order d to the order group 1 is D1. Since the supplementary order set is empty at this time, when the supplementary order set is empty, the current distance of the current to-be-replenished order d relative to the supplementary order set may be considered to be infinite, and at this time, the order to be replenished is relative to the order group 1. The nearest distance is less than the closest distance to its relative replenishment order set, the order to be replenished is added to order group 1, and the order to be replenished is added to the replenishment order set, as shown in Figure 3b. Further, the un-cluster order is updated, and the updated un-cluster order is the order e, f.
此时,当前订单组1内包括订单a、b、c、d,假设该组内订单数还没有达到预设最大分组容量,则进而迭代执行下一个待补充订单的选择过程。At this time, the current order group 1 includes orders a, b, c, and d. If the number of orders in the group has not reached the preset maximum packet capacity, the selection process of the next to-be-replenished order is iteratively executed.
在该次迭代过程中,同样地,首先从当前的未聚类订单e和f中选择出相对当前包括订单a、b、c、d的订单组1的待补充订单,假设选择订单e为当前的待补充订单,且假设订单e相对当前的订单组1的最近距离为D2。之后,确定订单e相对补充订单集合的最近距离,由于当前补充订单集合中仅包括了订单d, 因此,此时该最近距离即为订单e与订单d的配送地址间距离,假设为D3。当然,可以理解的是,如果当前补充订单集合中的订单数量多于一个,则分别计算待补充订单与补充订单集合中各订单的配送地址间距离,从中选择最短的配送地址间距离作为待补充订单相对补充订单集合的最近距离。In the same iteration process, firstly, the to-be-replenished order corresponding to the current order group 1 including the orders a, b, c, and d is first selected from the current un-clustering orders e and f, assuming that the order e is selected as the current The order to be replenished, and the closest distance of the order e to the current order group 1 is assumed to be D2. After that, the nearest distance of the order e relative to the supplementary order set is determined, since only the order d is included in the current supplementary order set, Therefore, at this time, the closest distance is the distance between the order e of the order e and the order d, which is assumed to be D3. Of course, it can be understood that if there are more than one order quantity in the current supplementary order set, the distance between the delivery addresses of each order in the supplementary order and the supplementary order set is respectively calculated, and the shortest distance between the delivery addresses is selected as the to-be-replenished. The closest distance of the order relative to the replenishment order set.
进而,如图3c所示,比较D2与D3的大小,如果D2小于D3,则将待补充订单e加入订单组1,并将待补充订单e加入补充订单集合,如图3d所示。反之,如果D2小于D3,则丢弃待补充订单e,结束订单组1的分组处理。Further, as shown in FIG. 3c, the sizes of D2 and D3 are compared. If D2 is smaller than D3, the order to be replenished is added to the order group 1, and the order to be replenished e is added to the supplementary order set, as shown in FIG. 3d. On the other hand, if D2 is smaller than D3, the order to be replenished e is discarded, and the grouping processing of the order group 1 is ended.
通过上述图2a、图3a所示实施例的订单补充手段,在以实际分组容量为限制的订单组内订单聚类处理,得到一个订单组之后,如果实际分组容量还未达到最大分组容量限制,则可以进一步将相对该订单组内订单,在空间范围内具有明显集中性的订单补充加入到该订单组内,从而使得每个配送人员一次能够配送更多订单,可以进一步提高配送运力的利用率。Through the order replenishing means of the embodiment shown in FIG. 2a and FIG. 3a, after the order grouping process is performed in the order group with the actual packet capacity as the limit, after the order group is obtained, if the actual packet capacity has not reached the maximum packet capacity limit, Further, the order with the obvious concentration in the space within the order group can be further added to the order group, so that each delivery person can deliver more orders at a time, which can further improve the utilization rate of the delivery capacity. .
在基于前述各实施例提供的方法得到最终的多个订单组后,还可以通过一定的调整策略来微调各订单组内的订单,以克服可能的订单组分组结果不合理问题。比如针对某个订单组来说,可以根据该订单组内订单与其他订单组内订单的配送地址间距离,调整该订单组内订单的归属。可选地,可以结合图4a所示实施例来实现该调整过程。After obtaining the final plurality of order groups based on the methods provided in the foregoing embodiments, it is also possible to fine-tune the orders in each order group through a certain adjustment strategy to overcome the problem that the order group group results are unreasonable. For example, for an order group, the order of the order in the order group can be adjusted according to the distance between the order in the order group and the delivery address of the order in the other order group. Alternatively, the adjustment process can be implemented in conjunction with the embodiment shown in Figure 4a.
图4a为本公开实施例提供的订单处理方法实施例四的流程图,如图4a所示,可选地,在对当前的集散地址对应的多个订单都执行完毕分组处理后,还可以包括如下步骤:4A is a flowchart of a fourth embodiment of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 4a, optionally, after performing group processing on multiple orders corresponding to the current collection and delivery address, the method may further include The following steps:
401、针对订单组内的任一订单,根据该任一订单与该订单组内其他订单的配送地址间距离,确定该任一订单相对该订单组内其他订单的第一最近距离。401. Determine, for any order in the order group, the first closest distance of the any order to other orders in the order group according to the distance between the order and the delivery address of other orders in the order group.
402、根据该任一订单与其他订单组内订单的配送地址间距离,确定该任一订单相对其他订单组内订单的第二最近距离。402. Determine a second closest distance of the order to the order in the other order group according to the distance between the order and the delivery address of the order in the other order group.
403、若第一最近距离大于第二最近距离,则将该任一订单加入到第二最近距离对应的订单所属的其他订单组。403. If the first closest distance is greater than the second closest distance, add any one of the orders to another order group to which the order corresponding to the second closest distance belongs.
本实施例中,可选地,该任一订单相对该订单组内其他订单的第一最近距离是指该任一订单与该订单组内其他订单之间的配送地址间距离中最短的距离。该任一订单相对其他订单组内订单的第二最近距离是指该任一订单与其他订单组内每一订单之间的配送地址间距离中最短的距离。例如,对多个订单分组最终得到了图4b所示的订单组1和订单组2之后,还可以通过一定的调整策略来微调各订单组内的订单,以克服可能的订单组分组结果不合理问题。比如,发现某个归属于订单组1的订单,与订单组2内的订单更加具有相似性,比如空间位置上更加贴近订单组2,则可以通过该调整过程进行调整,将其重新归属至订单组2中。 In this embodiment, optionally, the first closest distance of the any order relative to other orders in the order group refers to the shortest distance between the delivery addresses between the any order and other orders in the order group. The second closest distance of any one of the orders relative to the order in the other order group is the shortest distance between the delivery address between the order and the order between each order in the other order group. For example, after grouping multiple orders and finally obtaining order group 1 and order group 2 as shown in Fig. 4b, it is also possible to fine-tune the orders in each order group by a certain adjustment strategy to overcome the irrational result of the possible order group group. problem. For example, it is found that an order belonging to the order group 1 is more similar to the order in the order group 2, for example, the space position is closer to the order group 2, and the adjustment process can be adjusted to re-attribute the order to the order. In group 2.
具体举例来说,假设订单组1内的订单包括订单a、b、c,订单组2内的订单包括订单d、e、f,针对订单组1中的任一订单c来说,分别计算其与订单组1内的其他订单即订单a、b之间的配送地址间距离,假设分别为D1、D2。从D1、D2中选择最小的配送地址间距离作为订单c相对该订单组1内其他订单的第一最近距离,假设D1小于D2,则确定第一最近距离为D1,如图4c所示。可以理解的是,针对订单组1中的订单a、b来说,计算方式与订单c的计算方式一致,不再赘述。For example, suppose the order in order group 1 includes orders a, b, and c. The order in order group 2 includes orders d, e, and f. For any order c in order group 1, calculate it separately. The distance between the delivery addresses with other orders in order group 1, that is, orders a and b, is assumed to be D1 and D2, respectively. The minimum distance between delivery addresses is selected from D1, D2 as the first closest distance of the order c relative to other orders in the order group 1, and if D1 is less than D2, it is determined that the first closest distance is D1, as shown in Fig. 4c. It can be understood that, for the orders a and b in the order group 1, the calculation manner is the same as the calculation method of the order c, and will not be described again.
另外,再分别计算订单c与除订单组1外的其他订单组即订单组2内的各订单之间的配送地址间距离,假设订单c与订单d间的配送地址间距离为D3,订单c与订单e间的配送地址间距离为D4,订单c与订单f间的配送地址间距离为D5。从D3、D4、D5中选择最小的配送地址间距离作为订单c相对订单组1外其他订单的第二最近距离,假设D3、D4、D5中D3最小,则确定第二最近距离为D3,如图4c所示。In addition, the distance between the delivery address between the order c and each order group other than the order group 1, that is, the order in the order group 2, is calculated separately, assuming that the distance between the order of the order c and the order d is D3, the order c The distance between the delivery address and the order e is D4, and the distance between the delivery address between the order c and the order f is D5. Select the minimum distance between delivery addresses from D3, D4, D5 as the second closest distance of order c relative to other orders outside order group 1, assuming that D3 is the smallest in D3, D4, D5, then determine the second closest distance is D3, such as Figure 4c shows.
进而,比较D1与D3,若发现D1大于D3,说明订单c相对订单组2中订单的距离比相对自身当前归属的订单组1的距离更近,则将该订单c重新调整加入到订单组2中,如图4d所示。Further, comparing D1 with D3, if D1 is found to be greater than D3, indicating that the order c is closer to the order in the order group 2 than the order group 1 currently belonging to itself, the order c is re-adjusted to the order group 2 In, as shown in Figure 4d.
本实施例中,通过在订单组分组之后,结合订单相对当前归属的订单组的最近距离以及该订单相对其他订单组的最近距离,对该订单的归属进行调整,以保证同一订单组内的订单具有更加明显的位置集聚性,不同订单组的订单具有更加明显的位置分散性,以避免同一配送人员需要行走更多的路途才能完成一个订单组的配送,提高配送运力的利用率。In this embodiment, after the order component group, the ownership of the order is adjusted according to the closest distance of the order relative to the currently owned order group and the closest distance of the order relative to other order groups, so as to ensure the order in the same order group. With more obvious location agglomeration, orders of different order groups have more obvious positional dispersion, so as to avoid the same delivery personnel need to walk more ways to complete the distribution of an order group and improve the utilization of distribution capacity.
图5为本公开实施例提供的订单处理方法实施例五的流程图,如图5所示,在103之后,还可以包括如下步骤:FIG. 5 is a flowchart of Embodiment 5 of an order processing method according to an embodiment of the present disclosure. As shown in FIG. 5, after 103, the following steps may be further included:
501、采用最短路径算法,规划订单组内订单的配送路径。501. Use the shortest path algorithm to plan the delivery path of the order in the order group.
本实施例中,为了在配送人员的配送过程中,为配送人员提供更好的辅助,在对多个订单进行分组,得到各个订单组后,还可以针对每个订单组,对其中订单的配送过程进行导航路径规划。其中,导航路径规划的原则可以是最短路径原则。In this embodiment, in order to provide better assistance to the delivery personnel during the delivery process of the delivery personnel, after the multiple orders are grouped, and each order group is obtained, the delivery of the orders can also be performed for each order group. The process performs navigation path planning. Among them, the principle of navigation path planning can be the shortest path principle.
举例来说,可以通过调用电子地图或者使用地图数据,,按照总路径最小原则,规划得到相应的导航路径。For example, by calling an electronic map or using map data, the corresponding navigation path can be planned according to the minimum principle of the total path.
以下将详细描述本公开的一个或多个实施例的订单处理装置。这些订单处理装置可以被实现在服务器的基础架构中,或者实现在客户端与服务器的交互架构中。本领域技术人员可以理解,这些订单处理装置均可使用市售的硬件组件通过本方案所教导的步骤进行配置来构成。 The order processing apparatus of one or more embodiments of the present disclosure will be described in detail below. These order processing devices can be implemented in the infrastructure of the server or in an interactive architecture between the client and the server. Those skilled in the art will appreciate that these order processing devices can be constructed using commercially available hardware components configured by the steps taught by the present solution.
图6为本公开实施例提供的订单处理装置实施例一的结构示意图,如图6所示,该装置包括:获取模块11、选择模块12、聚类处理模块13。FIG. 6 is a schematic structural diagram of Embodiment 1 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the apparatus includes: an obtaining
获取模块11,用于根据多个订单的总数获取实际分组容量,所述多个订单对应于同一集散地址。The obtaining
选择模块12,用于根据所述多个订单各自的配送地址与所述集散地址的距离,选取当前的聚类中心订单。The selecting
聚类处理模块13,用于基于所述实际分组容量,根据所述多个订单中未聚类订单与所述聚类中心订单的配送地址间距离,对所述未聚类订单进行聚类处理,以确定与所述聚类中心订单对应的订单组。The
可选地,该聚类处理模块13具体用于:基于所述实际分组容量,根据所述多个订单中未聚类订单与所述聚类中心订单对应的订单组内订单的配送地址间距离,对所述未聚类订单进行聚类处理,以确定与所述聚类中心订单对应的订单组。Optionally, the
可选地,所述获取模块11具体用于:Optionally, the obtaining
根据所述多个订单的总数和预设分组容量确定所述实际分组容量,以使所述实际分组容量接近所述预设分组容量。The actual packet capacity is determined according to the total number of the plurality of orders and the preset packet capacity such that the actual packet capacity is close to the preset packet capacity.
可选地,所述获取模块11具体用于:Optionally, the obtaining
根据所述多个订单的总数、预设最小分组容量和预设最大分组容量,结合如下条件获取所述实际分组容量:The actual packet capacity is obtained according to the following conditions, according to the total number of the multiple orders, the preset minimum packet capacity, and the preset maximum packet capacity:
使所述多个订单的总数除以所述实际分组容量的余数,大于所述预设最小分组容量,所述实际分组容量为取自所述预设最小分组容量和所述预设最大分组容量之间的整数,所述预设分组容量包括所述预设最小分组容量和所述预设最大分组容量。And dividing the total number of the plurality of orders by the remainder of the actual packet capacity, which is greater than the preset minimum packet capacity, where the actual packet capacity is taken from the preset minimum packet capacity and the preset maximum packet capacity. An integer between the preset packet capacity includes the preset minimum packet capacity and the preset maximum packet capacity.
可选地,所述选择模块12包括:第一选择单元121、第二选择单元122。Optionally, the
第一选择单元121,用于根据当前所述多个订单各自关联的聚类状态标记,从所述多个订单中筛选出未聚类订单。The first selecting
第二选择单元122,用于根据所述未聚类订单各自的配送地址与所述集散地址的距离,从所述未聚类订单中选出距离所述集散地址最远或最近的订单作为所述聚类中心订单。a second selecting
可选地,所述聚类处理模块13具体用于:Optionally, the
迭代执行如下过程,直到满足所述订单组对应的聚类截止条件:Iteratively executes the following process until the clustering cutoff condition corresponding to the order group is satisfied:
根据当前所述订单组内订单与当前的未聚类订单的配送地址间距离,从所述当前的未聚类订单中选择出相对所述订单组距离最近的订单;And selecting, according to the current distance between the order group order and the current un-cluster order delivery address, an order that is closest to the order group from the current un-cluster order;
将选择出的所述订单加入所述订单组;Adding the selected order to the order group;
更新所述未聚类订单; Updating the un-cluster order;
所述聚类截止条件包括:所述订单组的订单数达到所述实际分组容量。The clustering cutoff condition includes that the order quantity of the order group reaches the actual packet capacity.
可选地,所述聚类截止条件还包括:所述选择出的订单相对所述订单组的最近距离大于或等于预设距离阈值。Optionally, the clustering cutoff condition further includes: a closest distance of the selected order relative to the order group is greater than or equal to a preset distance threshold.
图6所示装置可以执行图1a所示实施例的方法,本实施例未详细描述的部分,可参考对图1a所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1a所示实施例中的描述,在此不再赘述。The apparatus shown in FIG. 6 can perform the method of the embodiment shown in FIG. 1a. For the parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 1a. For the implementation process and technical effects of the technical solution, refer to the description in the embodiment shown in FIG. 1a, and details are not described herein again.
图7为本公开实施例提供的订单处理装置实施例二的结构示意图,如图7所示,在图6所示实施例基础上,该装置还包括:补充处理模块21。FIG. 7 is a schematic structural diagram of Embodiment 2 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 7, on the basis of the embodiment shown in FIG. 6, the apparatus further includes: a
补充处理模块21,用于若所述实际分组容量小于预设最大分组容量,则根据当前所述订单组内订单与当前的未聚类订单的配送地址间距离,向所述订单组补充订单。The
可选地,该补充处理模块21可以包括第一补充处理单元211,用于:Optionally, the
执行如下迭代过程,直到满足补充截止条件:Perform the following iterative process until the supplemental deadline is met:
根据当前所述订单组内订单与当前的未聚类订单的配送地址间距离,从所述当前的未聚类订单中选择出相对所述订单组距离最近的待补充订单;Selecting a to-be-replenished order that is closest to the order group from the current un-cluster order according to the current distance between the order group order and the current un-cluster order delivery address;
根据所述待补充订单与剩余未聚类订单集合内订单的配送地址间距离,确定所述待补充订单相对所述剩余未聚类订单集合的最近距离;其中,所述剩余未聚类订单集合由除了所述待补充订单之外的未聚类订单组成;Determining, according to the distance between the to-be-replenished order and the delivery address of the order in the remaining un-clustered order set, the closest distance of the to-be-replenished order relative to the remaining un-clustered order set; wherein the remaining un-clustered order set Composed of un-cluster orders other than the to-be-supplemented order;
判断所述待补充订单相对所述订单组的最近距离是否小于所述待补充订单相对所述剩余未聚类订单集合的最近距离;Determining whether a closest distance of the to-be-replenished order relative to the order group is less than a closest distance of the to-be-replenished order relative to the remaining un-clustered order set;
若小于,则将所述待补充订单加入所述订单组;If less than, the to-be-replenished order is added to the order group;
所述补充截止条件包括:所述订单组的订单数达到所述预设最大分组容量,或者,所述待补充订单相对所述订单组的最近距离大于或等于所述待补充订单相对所述剩余未聚类订单集合的最近距离。The supplementary deadline condition includes: the order quantity of the order group reaches the preset maximum packet capacity, or the closest distance of the to-be-replenished order relative to the order group is greater than or equal to the to-be-replenished order relative to the remaining The closest distance to the ungrouped order collection.
图7所示装置可以执行图2a所示实施例的方法,本实施例未详细描述的部分,可参考对图2a所示实施例的相关说明。该技术方案的执行过程和技术效果参见图2a所示实施例中的描述,在此不再赘述。The apparatus shown in FIG. 7 can perform the method of the embodiment shown in FIG. 2a. For the parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 2a. For the implementation process and technical effects of the technical solution, refer to the description in the embodiment shown in FIG. 2a, and details are not described herein again.
图8为本公开实施例提供的订单处理装置实施例三的结构示意图,如图8所示,在图7所示实施例基础上,可选地,该补充处理模块21还可以包括:第二补充处理单元212。FIG. 8 is a schematic structural diagram of Embodiment 3 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 8 , on the basis of the embodiment shown in FIG. 7 , the
第二补充处理单元212,用于:The second
生成补充订单集合,执行如下迭代过程,直到满足补充截止条件:Generate a supplementary order set and perform the following iterative process until the supplemental deadline is met:
根据当前所述订单组内订单与当前的未聚类订单的配送地址间距离,从所述当前的未聚类订单中选择出相对所述订单组距离最近的待补充订单; Selecting a to-be-replenished order that is closest to the order group from the current un-cluster order according to the current distance between the order group order and the current un-cluster order delivery address;
根据所述待补充订单与所述补充订单集合中订单的配送地址间距离,确定所述待补充订单相对所述补充订单集合的最近距离;Determining, according to the distance between the to-be-replenished order and the delivery address of the order in the supplementary order set, the closest distance of the to-be-replenished order relative to the supplementary order set;
判断所述待补充订单相对所述订单组的最近距离是否小于所述待补充订单相对所述补充订单集合的最近距离;Determining whether a closest distance of the to-be-replenished order relative to the order group is less than a closest distance of the to-be-replenished order relative to the supplementary order set;
若小于,则将所述待补充订单加入所述订单组,并将所述待补充订单加入所述补充订单集合;If less than, the to-be-replenished order is added to the order group, and the to-be-replenished order is added to the supplementary order set;
所述补充截止条件包括:所述订单组的订单数达到所述预设最大分组容量,或者,所述待补充订单相对所述订单组的最近距离大于或等于所述待补充订单相对所述补充订单集合的最近距离。The supplementary deadline condition includes: the order quantity of the order group reaches the preset maximum group size, or the closest distance of the to-be-replenished order relative to the order group is greater than or equal to the to-be-replenished order relative to the supplement The closest distance to the order collection.
图8所示装置可以执行图3a所示实施例的方法,本实施例未详细描述的部分,可参考对图3a所示实施例的相关说明。该技术方案的执行过程和技术效果参见图3a所示实施例中的描述,在此不再赘述。The apparatus shown in FIG. 8 can perform the method of the embodiment shown in FIG. 3a. For the parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 3a. For the implementation process and technical effects of the technical solution, refer to the description in the embodiment shown in FIG. 3a, and details are not described herein again.
图9为本公开实施例提供的订单处理装置实施例四的结构示意图,如图9所示,在图6所示实施例基础上,该装置还包括:调整模块41。FIG. 9 is a schematic structural diagram of Embodiment 4 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 9 , on the basis of the embodiment shown in FIG. 6 , the apparatus further includes: an
调整模块41,用于根据所述订单组内订单与其他订单组内订单的配送An
地址间距离,调整所述订单组内订单的归属。The distance between the addresses adjusts the attribution of the orders in the order group.
可选地,该调整模块41具体用于:Optionally, the adjusting
针对所述订单组内的任一订单,根据所述任一订单与所述订单组内其他订单的配送地址间距离,确定所述任一订单相对所述订单组内其他订单的第一最近距离;Determining, for any order in the order group, a first closest distance of any one of the orders relative to other orders in the order group according to a distance between the any order and a delivery address of other orders in the order group ;
根据所述任一订单与所述其他订单组内订单的配送地址间距离,确定所述任一订单相对所述其他订单组内订单的第二最近距离;Determining, according to the distance between the any order and the delivery address of the order in the other order group, the second closest distance of the order relative to the order in the other order group;
若所述第一最近距离大于所述第二最近距离,则将所述任一订单加入到所述第二最近距离对应的订单所属的其他订单组。If the first closest distance is greater than the second closest distance, the any order is added to another order group to which the order corresponding to the second closest distance belongs.
图9所示装置可以执行图4a所示实施例的方法,本实施例未详细描述的部分,可参考对图4a所示实施例的相关说明。该技术方案的执行过程和技术效果参见图4a所示实施例中的描述,在此不再赘述。The apparatus shown in FIG. 9 can perform the method of the embodiment shown in FIG. 4a. For the parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 4a. For the implementation process and technical effects of the technical solution, refer to the description in the embodiment shown in FIG. 4a, and details are not described herein again.
图10为本公开实施例提供的订单处理装置实施例五的结构示意图,如图10所示,在图6所示实施例基础上,该装置还包括:路径规划模块51。FIG. 10 is a schematic structural diagram of Embodiment 5 of an order processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 10, on the basis of the embodiment shown in FIG. 6, the apparatus further includes: a
路径规划模块51,用于采用最短路径算法,规划所述订单组内订单的配送路径。The
图10所示装置可以执行图5所示实施例的方法,本实施例未详细描述的部分,可参考对图5所示实施例的相关说明。该技术方案的执行过程和技术效果参见图5所示实施例中的描述,在此不再赘述。 The apparatus shown in FIG. 10 can perform the method of the embodiment shown in FIG. 5. For the parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. For the implementation process and technical effects of the technical solution, refer to the description in the embodiment shown in FIG. 5, and details are not described herein again.
以上描述了订单处理装置的内部功能和结构,在一个可能的设计中,该订单处理装置的结构可实现为服务器,如图11所示,可以包括:处理器61和存储器62。其中,所述存储器62用于存储支持订单处理装置执行上述任一实施例中提供的订单处理方法的程序,所述处理器61被配置为用于执行所述存储器62中存储的程序。The internal functions and structure of the order processing apparatus have been described above. In one possible design, the structure of the order processing apparatus can be implemented as a server. As shown in FIG. 11, the
所述程序包括一条或多条计算机指令,其中,所述一条或多条计算机指令供所述处理器61调用执行。The program includes one or more computer instructions, wherein the one or more computer instructions are for execution by the
所述处理器61用于:根据多个订单的总数获取实际分组容量,所述多个订单对应于同一集散地址;根据所述多个订单各自的配送地址与所述集散地址的距离,选取当前的聚类中心订单;基于所述实际分组容量,根据所述多个订单中未聚类订单与所述聚类中心订单的配送地址间距离,对所述未聚类订单进行聚类处理,以确定与所述聚类中心订单对应的订单组。The
可选地,所述处理器61还用于执行前述各方法步骤中的全部或部分步骤。Optionally, the
其中,所述订单处理装置的结构中还可以包括通信接口63,用于订单处理装置与其他设备或通信网络通信。The structure of the order processing device may further include a
另外,本公开实施例提供了一种计算机存储介质,用于储存订单处理装置所用的计算机软件指令,其包含用于执行上述第一方面中订单处理方法所涉及的程序。In addition, an embodiment of the present disclosure provides a computer storage medium for storing computer software instructions for use in an order processing apparatus, including a program for executing the order processing method in the above first aspect.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以产品的形式体现出来,该计算机产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by adding a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above technical solutions may be embodied in the form of products in essence or in the form of products, which may be stored in a computer readable storage medium such as a ROM/RAM, a magnetic disk, or an optical disk. And, a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in the various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only for explaining the technical solutions of the present disclosure, and are not intended to be limiting; although the present disclosure has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims (27)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710061836.6 | 2017-01-26 | ||
| CN201710061836.6A CN107392513B (en) | 2017-01-26 | 2017-01-26 | Order processing method and apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018137330A1 true WO2018137330A1 (en) | 2018-08-02 |
Family
ID=60338275
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/096000 Ceased WO2018137330A1 (en) | 2017-01-26 | 2017-08-04 | Order processing method, device, server and computer storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107392513B (en) |
| WO (1) | WO2018137330A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020224248A1 (en) * | 2019-05-06 | 2020-11-12 | 深圳壹账通智能科技有限公司 | Blockchain-based virtual certificate value allocation method and contract operation apparatus, and storage medium |
| US20210374660A1 (en) * | 2019-12-05 | 2021-12-02 | Coupang Corp. | Computer implemented systems and methods for optimization of a product inventory by intelligent distribution of inbound products |
Families Citing this family (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108564211B (en) * | 2018-04-09 | 2020-05-26 | 无锡太湖学院 | Logistics transportation path planning method and system |
| CN110570136B (en) * | 2018-05-17 | 2021-11-02 | 北京三快在线科技有限公司 | Distribution range determining method, distribution range determining device, electronic equipment and storage medium |
| CN109631926B (en) * | 2018-12-27 | 2022-06-07 | 拉扎斯网络科技(上海)有限公司 | Determination method and determination device for rider path and electronic equipment |
| CN110322106B (en) * | 2019-04-12 | 2023-08-01 | 赵志为 | Luggage taking-in and dispatching method for multiple destination and multiple transport means |
| CN110231044B (en) * | 2019-06-10 | 2020-09-04 | 北京三快在线科技有限公司 | Path planning method and device |
| CN112200336A (en) * | 2019-06-20 | 2021-01-08 | 北京京东振世信息技术有限公司 | A method and device for vehicle travel path planning |
| CN112693802B (en) * | 2019-10-22 | 2022-12-27 | 北京京东振世信息技术有限公司 | Method and apparatus for processing packages |
| CN112862228A (en) * | 2019-11-28 | 2021-05-28 | 北京三快在线科技有限公司 | Order distribution method and device, computer readable storage medium and electronic equipment |
| CN111046053B (en) * | 2019-11-29 | 2022-11-15 | 苏宁云计算有限公司 | Ordering address maintenance method and device |
| CN111191982B (en) * | 2019-12-25 | 2020-12-01 | 北京顺达同行科技有限公司 | Order grouping method and device, computer equipment and storage medium |
| JP2021124877A (en) * | 2020-02-04 | 2021-08-30 | ブラーマ・イノヴェーションズ・インコーポレーテッド | Order management and delivery method, system, and non-temporal computer readable medium |
| CN113313335A (en) * | 2020-02-27 | 2021-08-27 | 北京京东振世信息技术有限公司 | Logistics vehicle scheduling method and device and storage medium |
| CN113706065B (en) * | 2020-05-22 | 2024-08-16 | 百度在线网络技术(北京)有限公司 | Goods classification method, device, equipment and storage medium |
| CN112766859A (en) * | 2021-01-28 | 2021-05-07 | 深圳市跨越新科技有限公司 | Waybill grouping method, system, terminal and storage medium based on road segmentation |
| CN113095553A (en) * | 2021-03-29 | 2021-07-09 | 北京沃东天骏信息技术有限公司 | Scheduling method, scheduling device, electronic equipment and storage medium |
| CN114169571A (en) * | 2021-11-05 | 2022-03-11 | 艾普工华科技(武汉)有限公司 | Lean logistics distribution task grouping method and device |
| CN114386895B (en) * | 2021-12-21 | 2022-11-04 | 中武(福建)跨境电子商务有限责任公司 | Supply chain marine transportation cabin booking system |
| CN117371740B (en) * | 2023-10-27 | 2024-08-09 | 深圳丰赞科技有限公司 | Direct delivery logistics intelligent method oriented to group meal delivery scene |
| CN119991237A (en) * | 2023-11-10 | 2025-05-13 | 北京京东远升科技有限公司 | A method, device, system and storage medium for pushing express orders |
| CN118941282B (en) * | 2024-10-12 | 2025-01-24 | 山东海沃嘉美环境工程有限公司 | A method for managing garbage classification orders |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8015081B1 (en) * | 2007-05-01 | 2011-09-06 | Hector Franco | Supply-chain management system |
| CN103440566A (en) * | 2013-08-27 | 2013-12-11 | 北京京东尚科信息技术有限公司 | Method and device for generating order picking collection lists and method for optimizing order picking route |
| CN103473255A (en) * | 2013-06-06 | 2013-12-25 | 中国科学院深圳先进技术研究院 | A data clustering method, system and data processing equipment |
| CN105447667A (en) * | 2015-11-17 | 2016-03-30 | 成都信息工程大学 | Automatic distribution method of express delivery orders |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102467703A (en) * | 2010-11-10 | 2012-05-23 | 北京天德世通科技发展有限公司 | Logistics management method, device and system based on cloud computing |
| CN105096068A (en) * | 2014-04-30 | 2015-11-25 | 青岛日日顺物流有限公司 | Logistics order distribution method and system |
| CN104951913A (en) * | 2015-05-14 | 2015-09-30 | 河北涵购电子商务有限公司 | Regional comprehensive network commercial operation method |
| CN105184531A (en) * | 2015-08-27 | 2015-12-23 | 江苏惠居乐信息科技有限公司 | Multi-functional logistics management system |
-
2017
- 2017-01-26 CN CN201710061836.6A patent/CN107392513B/en not_active Expired - Fee Related
- 2017-08-04 WO PCT/CN2017/096000 patent/WO2018137330A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8015081B1 (en) * | 2007-05-01 | 2011-09-06 | Hector Franco | Supply-chain management system |
| CN103473255A (en) * | 2013-06-06 | 2013-12-25 | 中国科学院深圳先进技术研究院 | A data clustering method, system and data processing equipment |
| CN103440566A (en) * | 2013-08-27 | 2013-12-11 | 北京京东尚科信息技术有限公司 | Method and device for generating order picking collection lists and method for optimizing order picking route |
| CN105447667A (en) * | 2015-11-17 | 2016-03-30 | 成都信息工程大学 | Automatic distribution method of express delivery orders |
Non-Patent Citations (1)
| Title |
|---|
| YU , XIAOHAN ET AL.: "Study on City Express Delivery Area Division Based on Constrained K-means Clustering Algorithm", JOURNAL OF HARBIN UNIVERSITY OF COMMERCE: NATURAL SCIENCES EDITION, vol. 32, no. 5, 31 October 2016 (2016-10-31), pages 631 - 633 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020224248A1 (en) * | 2019-05-06 | 2020-11-12 | 深圳壹账通智能科技有限公司 | Blockchain-based virtual certificate value allocation method and contract operation apparatus, and storage medium |
| US20210374660A1 (en) * | 2019-12-05 | 2021-12-02 | Coupang Corp. | Computer implemented systems and methods for optimization of a product inventory by intelligent distribution of inbound products |
| US11880782B2 (en) * | 2019-12-05 | 2024-01-23 | Coupang Corp. | Computer implemented systems and methods for optimization of a product inventory by intelligent distribution of inbound products |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107392513A (en) | 2017-11-24 |
| CN107392513B (en) | 2018-12-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018137330A1 (en) | Order processing method, device, server and computer storage medium | |
| CN111353840B (en) | Order information processing method, device and electronic device | |
| US12118503B2 (en) | Delivery driver routing and order preparation timing system | |
| WO2018227859A1 (en) | Method and apparatus for dividing delivery regions, electronic device, and computer-readable storage medium | |
| US10200457B2 (en) | Selective distribution of machine-learned models | |
| CN107392412A (en) | Order dispatch method and apparatus | |
| WO2018095066A1 (en) | Method and device for task grouping, electronic device, and computer storage medium | |
| JP2019511786A (en) | Method and apparatus for generating a logistics distribution network | |
| US20210201213A1 (en) | Reservation and waitlist management using precision table turn-time analysis | |
| US12417429B2 (en) | En-route business selection, routing and order preparation timing system | |
| CN107679750A (en) | A kind of cloud manufacturing service reso urce matching method based on adaptation coefficient genetic algorithm | |
| CN108960722A (en) | Logistics receipts send part dispatching method and device | |
| US11720851B2 (en) | System and methods for automated order preparation and fulfillment timing | |
| CN104023042B (en) | Cloud platform resource scheduling method | |
| CN110046861A (en) | Inventory management method and device, electronic equipment, computer-readable medium | |
| CN104639645A (en) | Network load balancing method, device and cluster service system | |
| TW202344456A (en) | A path generation method, apparatus, device, and storage medium | |
| CN111325428A (en) | A work order push method, device and storage medium | |
| WO2024022087A1 (en) | Method and apparatus for data processing, and storage medium | |
| CN110223123A (en) | Data processing method and device, readable storage medium and electronic equipment | |
| CN107301519A (en) | A kind of task weight pricing method in mass-rent express system | |
| US10248922B1 (en) | Managing network paths within a network of inventory spaces | |
| CN104283963A (en) | Distributed and collaborative type CDN load balancing method | |
| CN107808265B (en) | Data processing method and device | |
| CN110807612A (en) | Method and device for determining residual capacity |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17894502 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17894502 Country of ref document: EP Kind code of ref document: A1 |