Order distribution method and device, electronic device and storage medium

By calculating and optimizing the drop-in value of the delivery person, the problem in the existing technology of ignoring the delivery timeliness and the impact of existing orders when allocating orders is solved, achieving more efficient distribution and cost reduction, especially when delivering the second type of order. The strategy of delivering orders to be allocated first improves delivery efficiency and reduces costs.

CN110751433BActive Publication Date: 2024-10-15BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910913999.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-25
Publication Date
2024-10-15
Estimated Expiration
2039-09-25

AI Technical Summary

Technical Problem

The existing technology ignores the delivery timeliness characteristics and the timeliness impact of the delivery staff's existing orders when allocating orders, resulting in increased delivery efficiency and costs.

Method used

By calculating the drop-in value of candidate delivery personnel, and according to the type of order and delivery time requirements, delivery personnel are assigned to optimize the delivery path, reduce delivery costs and time, and improve delivery efficiency.

Benefits of technology

While ensuring the timeliness of orders to be distributed, it improves the delivery efficiency of existing orders and reduces distribution costs. In particular, by delivering the first order to be distributed on the way to the delivery of the second type of order, the delivery efficiency of the second type of order is improved. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110751433B_ABST
    Figure CN110751433B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an order allocation method and device, electronic equipment and storage medium to ensure the delivery efficiency of the orders to be allocated and the existing orders of the allocated delivery personnel. The method includes: in response to receiving a first order to be allocated of a first type, determining all first candidate delivery personnel for the first order to be allocated; determining the co-location value of each first candidate delivery personnel for delivering the first order to be allocated; allocating the first order to be allocated to the first candidate delivery personnel with the smallest co-location value; wherein, if the existing orders of the first candidate delivery personnel include orders of the second type, then according to the optional delivery locations of the orders of the second type, the pick-up and delivery locations of the first order to be allocated, the location of the first candidate delivery personnel and the pick-up and delivery locations of other orders, determining the first co-location value of the pick-up and delivery location of the first order to be allocated relative to the optional delivery location; and determining the co-location value of the first candidate delivery personnel for delivering the first order to be allocated according to the obtained first co-location value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network technology, and in particular to an order distribution method and device, an electronic device and a storage medium. Background Art

[0002] With the rapid development of network technology, network applications such as express delivery, food delivery, and shared power bank delivery have become widely popular. Users can place orders through the Internet and the delivery staff will complete the delivery service.

[0003] In the related art, when an order is assigned, a corresponding delivery person is assigned to the order based on factors such as the delivery person's location within a certain range of the pickup and delivery point of the order and the estimated delivery time of the order. Summary of the invention

[0004] The purpose of the present disclosure is to provide an order allocation method and device, an electronic device and a storage medium, so as to improve the delivery efficiency of the existing orders of the allocated delivery personnel and reduce the delivery cost while ensuring the delivery timeliness of the orders to be allocated.

[0005] In order to achieve the above objective, according to a first aspect of an embodiment of the present disclosure, a method for allocating an order is provided, comprising:

[0006] In response to receiving a first order of a first type to be assigned, determining all first candidate delivery persons for the first order to be assigned;

[0007] Determine a route value for each of the first candidate delivery personnel in delivering the first order to be assigned;

[0008] Allocating the first order to be assigned to a first candidate delivery person who has the smallest en-route value for delivering the first order to be assigned;

[0009] For each of the first candidate deliverymen, if the existing orders of the first candidate deliveryman include orders of the second type, the en-route value of the first candidate deliveryman in delivering the first order to be assigned is determined according to the following method:

[0010] According to the optional delivery location of the second type of order, the pick-up and delivery location of the first to-be-allocated order, the location of the first candidate deliveryman, and the pick-up and delivery locations of other orders among the existing orders except the second type of order, determine a first commute value of the pick-up and delivery location of the first to-be-allocated order relative to the optional delivery location, wherein the first commute value is used to represent the cost difference between the first candidate deliveryman delivering the first to-be-allocated order and not delivering the first to-be-allocated order during the delivery of the second type of order at the optional delivery location;

[0011] The en-route value of the first candidate delivery person in delivering the first order to be assigned is determined based on the obtained first en-route value.

[0012] According to a second aspect of an embodiment of the present disclosure, there is provided an order allocation device, comprising:

[0013] A first determination module, configured to determine all first candidate couriers for a first order to be assigned in response to receiving a first type of first order to be assigned;

[0014] A second determination module is used to determine the en-route value of each of the first candidate delivery personnel in delivering the first order to be assigned;

[0015] A first allocation module, configured to allocate the first order to be allocated to a first candidate delivery person who has the smallest en-route value for delivering the first order to be allocated;

[0016] The second determination module is specifically configured to determine, for each of the first candidate deliverymen, the en-route value of the first candidate deliveryman in delivering the first order to be assigned according to the following method if the first candidate deliveryman's existing orders include orders of the second type:

[0017] According to the optional delivery locations of the second type of order, the pick-up and delivery location of the first to-be-allocated order, the location of the first candidate deliveryman, and the pick-up and delivery locations of other orders among the existing orders except the second type of order, determining a first commute value of the pick-up and delivery location of the first to-be-allocated order relative to the optional delivery location, wherein the first commute value is used to represent the cost difference between the first candidate deliveryman delivering the first to-be-allocated order and not delivering the first to-be-allocated order during the delivery of the second type of order;

[0018] The en-route value of the first candidate delivery person in delivering the first order to be assigned is determined based on the obtained first en-route value.

[0019] Optionally, the second determining module is specifically configured to determine a first commute value of the pickup and delivery location of the first order to be allocated relative to the optional delivery location in the following manner:

[0020] If there are multiple optional delivery locations, then for each optional delivery location, according to the optional delivery location, the pick-up and delivery location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery locations of other orders among the existing orders except for the second type of order, determine the first commute value of the pick-up and delivery location of the first order to be assigned relative to the optional delivery location;

[0021] The first allocation module is used to determine the en-route value of the first candidate delivery person in delivering the first order to be allocated according to the following method:

[0022] The minimum value among all the first en-route values ​​obtained is used as the en-route value for the first candidate deliveryman to deliver the first order to be assigned.

[0023] Optionally, the second determining module determines, for each optional delivery location, a first delivery pick-up location of the first order to be assigned, the location of the first candidate delivery person, and delivery pick-up locations of other orders among the existing orders except for the second type of order, to determine a first co-location value of the delivery pick-up location of the first order to be assigned relative to the optional delivery location, including:

[0024] For each of the optional delivery locations, a plurality of first delivery paths are planned according to the optional delivery location, the location of the first candidate delivery person, and the pickup and delivery locations of other orders among the existing orders except for the second type of orders, and the length of each first delivery path is calculated;

[0025] For each first delivery route, according to the first delivery route and the pick-up and delivery location of the first order to be assigned, a plurality of second delivery routes for the first candidate deliveryman to deliver the first order to be assigned along the first delivery route are planned, and the length of each second delivery route is calculated, and,

[0026] Calculate the cost difference between the first delivery path and each of its corresponding second delivery paths according to the length difference between the first delivery path and each of its corresponding second delivery paths, the distance between the optional delivery location in each of the corresponding second delivery paths and its adjacent location, and the distance between the pickup and delivery locations of the first order to be allocated;

[0027] The minimum value of the calculated cost differences is used as the first en route value of the delivery location of the first order to be allocated relative to the optional delivery location.

[0028] Optionally, the second determining module is specifically configured to determine the en-route value of the first candidate deliveryman for delivering the first order to be assigned in the following manner if the existing orders of the first candidate deliveryman do not include orders of the second type:

[0029] According to the pick-up and delivery location of the first order to be assigned, the location of the first candidate deliveryman, and the pick-up and delivery location of the existing order, a second commute value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order is determined, wherein the second commute value is used to represent the cost difference between the first candidate deliveryman delivering the first order to be assigned and not delivering the first order to be assigned during the delivery of the existing order;

[0030] The second en-route value is used as the en-route value for the first candidate delivery person to deliver the first order to be assigned.

[0031] Optionally, the second determining module determines a second co-location value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order according to the pick-up and delivery location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery location of the existing order, including:

[0032] Planning a third delivery route according to the location of the first candidate delivery person and the pickup and delivery location of the existing order, and calculating the length of the third delivery route;

[0033] According to the third delivery route and the pick-up and delivery location of the first order to be assigned, a plurality of fourth delivery routes for the first candidate deliveryman to deliver the first order to be assigned along the third delivery route are planned, and the length of each fourth delivery route is calculated, and,

[0034] Calculate the cost difference between the third delivery path and each of its corresponding fourth delivery paths according to the length difference between the third delivery path and each of its corresponding fourth delivery paths, and the distance between the pickup and delivery locations of the first order to be allocated;

[0035] The minimum value of all the calculated cost differences is used as the second en-route value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order.

[0036] Optionally, the device further comprises:

[0037] A third determining module, configured to determine all second candidate couriers for the second order to be assigned in response to receiving the second order to be assigned of the second type;

[0038] a fourth determination module, for determining, for each of the second candidate delivery personnel, a ride-on value for the second candidate delivery personnel to collect the second order to be allocated, according to the pickup location of the second order to be allocated, the location of the second candidate delivery personnel and the pickup and delivery location of the existing order, wherein the ride-on value is used to represent the cost difference between the second candidate delivery personnel collecting the second order to be allocated and not collecting the second order to be allocated during the delivery of the existing order;

[0039] The second allocation module is used to allocate the second order to be allocated to a second candidate delivery person who has the smallest en-route value for receiving the second order to be allocated.

[0040] Optionally, the fourth determining module is specifically configured to determine the en route value of the second candidate delivery person receiving the second order to be assigned according to the following method:

[0041] For each of the second candidate delivery personnel, a fifth delivery route is planned according to the location of the second candidate delivery personnel and the pickup and delivery location of the existing orders, and the length of the fifth delivery route is calculated;

[0042] According to the fifth delivery route and the pickup and delivery location of the second order to be allocated, a plurality of sixth delivery routes for the second candidate deliveryman to pick up the second order to be allocated along the fifth delivery route are planned, and the length of each sixth delivery route and the estimated pickup time of the second order to be allocated along each sixth delivery route are calculated, and,

[0043] Calculate the cost difference between the fifth delivery path and each of its corresponding sixth delivery paths according to the length difference between the fifth delivery path and each of its corresponding sixth delivery paths, and the interval between the estimated pickup time of the second order to be allocated and the promised pickup time of the second order to be delivered under each of the corresponding sixth delivery paths;

[0044] The minimum value of all calculated cost differences is used as the en route value for the second order to be assigned to the second candidate delivery person.

[0045] According to a third aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0046] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the method described in the first aspect.

[0047] Through the above technical solution, at least the following technical effects can be achieved: by assigning the first order to be assigned to the first candidate deliveryman with the smallest commute value for delivering the first order to be assigned, the cost and time of the deliveryman delivering the first order to be assigned can be reduced, thereby improving the delivery efficiency of the first order to be assigned. In addition, when calculating the commute value of the first candidate deliveryman delivering the first order to be assigned, if the first candidate deliveryman's existing orders include orders of the second type, the optional delivery locations of the second type of orders are taken into consideration, and the commute value of the first candidate deliveryman delivering the first order to be assigned is calculated in combination with the characteristics of the high delivery timeliness requirements of the first order to be assigned and the characteristics of the flexible delivery of the second type of orders, and then based on the calculated commute value, the deliveryman is assigned to the first order to be assigned, so that the assigned deliveryman delivers the first order to be assigned as much as possible on the way to deliver the second type of orders, thereby ensuring the delivery timeliness of the first order to be assigned, while improving the delivery efficiency of the assigned deliveryman's existing second type of orders with lower delivery timeliness requirements and reducing the delivery cost.

[0048] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0050] Figure 1 is a flow chart of a method for delivering an order according to an exemplary embodiment of the present disclosure;

[0051] Figure 2 is a flow chart showing a method for determining a route value for delivering a first order to be assigned according to an exemplary embodiment of the present disclosure;

[0052] Figure 3 is a flow chart showing a method for determining a route value for delivering a first order to be assigned according to another exemplary embodiment of the present disclosure;

[0053] Figure 4 is a flow chart of an order delivery method according to another exemplary embodiment of the present disclosure;

[0054] Figure 5 is a flow chart of a method for determining a route value for delivering a second order to be assigned according to an exemplary embodiment of the present disclosure;

[0055] Figure 6 is a block diagram of an order allocation device according to an exemplary embodiment of the present disclosure;

[0056] Figure 7 is a block diagram of an order allocation device according to another exemplary embodiment of the present disclosure;

[0057] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0058] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0059] It is worth noting that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and do not have to be understood as a specific order or sequence.

[0060] The present disclosure is mainly applied to business scenarios such as takeaway delivery, supermarket delivery, same-city delivery, express delivery, and shared items (such as shared power banks) pick-up and return. In these business scenarios, it is usually necessary to comprehensively consider many factors to allocate and schedule orders. In the related art, when allocating orders, the corresponding delivery personnel are usually allocated to the order based on the location information of the delivery personnel within a certain range of the pickup location and / or delivery location of the order and the estimated delivery time of the order. However, the order allocation method only refers to factors such as the pickup and delivery location and the estimated delivery time of the order, while ignoring the delivery time characteristics of the order itself and the delivery time characteristics of different orders that the delivery personnel already have on the order delivery efficiency. For example, the delivery personnel usually give priority to the delivery of existing orders with higher delivery time requirements (such as same-city flash delivery, take-out ordering, etc.), which may affect the delivery efficiency and delivery cost of other existing orders with lower delivery time requirements (such as ordinary express delivery, shared items pick-up and return orders).

[0061] In order to solve the above technical problems, the embodiments of the present disclosure provide an order delivery method and device, an electronic device and a storage medium, so as to improve the delivery efficiency of the existing orders of the assigned delivery personnel and reduce the delivery cost while ensuring the delivery timeliness of the orders to be assigned.

[0062] Figure 1 is a flow chart of a method for delivering an order according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the method includes:

[0063] S101. In response to receiving a first order of a first type to be assigned, determining all first candidate delivery persons for the first order to be assigned.

[0064] In the present disclosure, the types of orders are divided according to the delivery time requirements of the orders. Specifically, the orders in the embodiments of the present disclosure include a first type of order and a second type of order. Among them, the first type of order is an order whose prescribed delivery time (that is, the time interval between the generation time of the order and the prescribed delivery time) is less than a preset time (such as 1 hour), for example, it may include but is not limited to: take-out orders, same-city express delivery orders, supermarket delivery orders, etc. The second type of order is an order whose prescribed delivery time exceeds the preset time, for example, it may include but is not limited to: ordinary express delivery, shared item retrieval, etc.

[0065] S102: Determine the en route value of each first candidate deliveryman in delivering the first order to be assigned.

[0066] For each first candidate deliveryman, the en-route value of the first candidate deliveryman delivering the first order to be assigned is used to characterize the cost difference between the first candidate deliveryman delivering the first order to be assigned and not delivering the first order to be assigned during the delivery of the existing order. The cost difference may include time cost difference and / or distance cost difference. The smaller the en-route value of the first candidate deliveryman delivering the first order to be assigned is, the smaller the cost difference between the two cases is; conversely, the greater the cost difference between the two cases is.

[0067] S103: Allocate the first order to be assigned to the first candidate delivery person who has the smallest en-route value for delivering the first order to be assigned.

[0068] By assigning the first order to be assigned to the first candidate deliveryman with the smallest en-route value for delivering the first order to be assigned, the cost and time of the assigned deliveryman for delivering the first order to be assigned can be reduced, thereby improving the delivery efficiency of the first order to be assigned.

[0069] In order to enable those skilled in the art to better understand the technical solution provided by the embodiments of the present disclosure, the method for predicting the order delivery time provided by the embodiments of the present disclosure is described in detail below.

[0070] First, with respect to the above step S101, a delivery person who is located within a preset distance range of the pickup location of the first order to be assigned may be selected as the first candidate delivery person for the first order to be assigned. In this way, it can be ensured that the first order to be assigned can be picked up by the assigned delivery person as soon as possible, thereby improving the delivery efficiency of the first order to be assigned.

[0071] Secondly, with respect to the above step S102, considering that the existing orders of each first candidate deliveryman may have different delivery time requirements, for example, their existing orders may include orders of the second type. Since the first order to be assigned has a higher delivery time requirement than the second type of order, the deliveryman assigned to the first order to be assigned will give priority to delivering the first order to be assigned in order to meet the delivery time requirement of the first order to be assigned, thereby affecting the delivery efficiency and delivery cost of the second type of order. In order to improve the delivery efficiency of the existing orders including the second type of order and reduce the delivery cost while ensuring the delivery efficiency of the first order to be assigned, for each first candidate deliveryman, the en-route value of the first candidate deliveryman delivering the first order to be assigned can be calculated based on whether the existing orders of the first candidate deliveryman include orders of the second type. Next, the calculation method of the en-route value of the first candidate deliveryman delivering the first order to be assigned in two cases is described respectively.

[0072] Case 1: The first candidate deliveryman’s existing orders include orders of the second type.

[0073] In this case, if Figure 2 As shown, the above step S102 includes:

[0074] S221. Determine the first en-route value of the pick-up delivery location of the first order to be assigned relative to the optional delivery location based on the optional delivery location of the second type of orders in the existing orders of the first candidate deliveryman, the pick-up delivery location of the first order to be assigned, the location of the first candidate deliveryman, and the pick-up delivery locations of other orders in the existing orders except the second type of orders.

[0075] Among them, the first en route value of the pick-up and delivery location of the first order to be assigned relative to the optional delivery location is used to characterize the cost difference between delivering the first order to be assigned and not delivering the first order to be assigned when the first candidate deliveryman delivers the second type of order at the optional delivery location.

[0076] S222. Determine the en-route value of the first candidate delivery person for delivering the first order to be assigned based on the obtained first en-route value.

[0077] It is worth noting that the existing orders of the first candidate deliveryman may include at least one order of the second type, and each order of the second type may have at least one optional delivery location.

[0078] If the first candidate deliveryman already has an order of the second type with only one optional delivery location, then according to the above step S221, the first en-route value of the delivery location of the first order to be assigned relative to the optional delivery location can be determined. Accordingly, in the above step S2222, the first en-route value is used as the en-route value for the first candidate deliveryman to deliver the first order to be assigned.

[0079] If the first candidate deliveryman has multiple optional delivery locations for the second type of order, in this case, the cost of delivering the second type of order at different optional delivery locations is different, and thus the first delivery location of the first order to be assigned has different first commute values ​​relative to different optional delivery locations. Therefore, in the above step S221, for each optional delivery location, the first delivery location, the first delivery location of the first order to be assigned, the location of the first candidate deliveryman, and the delivery locations of other orders except the second type of order among the first candidate deliveryman's existing orders can be used to determine the first commute value of the first order to be assigned relative to the optional delivery location, and then obtain. Accordingly, in the above step S222, the minimum value of the first commute value of the first order to be assigned relative to all optional delivery locations can be selected as the commute value of the first candidate deliveryman delivering the first order to be assigned.

[0080] In this case, when calculating the en-route value of the first candidate deliveryman in delivering the first order to be assigned, if the first candidate deliveryman's existing orders include orders of the second type, the optional delivery locations of the second type of orders are taken into consideration, and the en-route value of the first candidate deliveryman in delivering the first order to be assigned is calculated in combination with the high delivery time requirement of the first order to be assigned and the flexible delivery characteristic of the second type of orders. Based on the calculated en-route value, a deliveryman is assigned to the first order to be assigned, so that the assigned deliveryman can deliver the first order to be assigned as much as possible on the way to delivering the second type of orders. This ensures the delivery time requirement of the first order to be assigned while improving the delivery efficiency of the assigned deliveryman's existing second type of orders with lower delivery time requirement and reducing the delivery cost.

[0081] In addition, when there are multiple optional delivery locations for the second type of order, the first commute value of the delivery location of the first order to be assigned relative to each optional delivery location of the second type of order is calculated, and the commute value of the first candidate deliveryman for delivering the first order to be assigned is determined based on all the obtained first commute values, and then a deliveryman is assigned to the first order to be assigned based on the calculated commute value, so that the assigned deliveryman can select a suitable optional delivery location to deliver the existing second type of order according to the real-time status information of different optional delivery locations such as warehouse saturation and business hours, and can deliver the first order to be assigned as much as possible on the way of delivering the existing second type of order, so as to ensure the delivery timeliness of the first order to be assigned.

[0082] Since different delivery paths are formed due to the different orders in which the delivery personnel arrive at the pickup locations and delivery locations of the existing orders, the cost difference between delivering and not delivering the first order to be assigned is different under different delivery paths. Therefore, the first en-route value of the pickup and delivery location of the first order to be assigned relative to the optional delivery location of the second type of order can be calculated based on the cost difference between delivering and not delivering the first order to be assigned under different delivery paths.

[0083] Specifically, for each optional delivery location, first, the optional delivery location, the location of the first candidate deliveryman, and the pickup and delivery locations of other orders in the existing orders except the second type of order can be used to plan at least one first delivery path for the first candidate deliveryman without delivering the first order to be delivered, and the length of each first delivery path is calculated. Then, for each first delivery path, according to the first delivery path and the pickup and delivery location of the first order to be assigned, multiple second delivery paths for the first candidate deliveryman to deliver the first order to be assigned along the way are planned under the first delivery path, and the length of each second delivery path is calculated. Further, for each first delivery path, according to the length difference between the first delivery path and each corresponding second delivery path, the distance between the optional delivery location in each second delivery path and its adjacent location, and the distance between the pickup and delivery locations of the first order to be assigned, the cost difference between the first delivery path and each corresponding second delivery path is calculated. Finally, the minimum value of the calculated cost differences is used as the first along-the-way value of the pickup and delivery location of the first order to be assigned relative to the optional delivery location. The length of the first delivery path and the length of the second delivery path can both be calculated according to formula (1), and the cost difference between the first delivery path and each corresponding second delivery path can be calculated according to formula (2).

[0084]

[0085] Where L is the length of the delivery path; P jis the location of the jth point in the delivery path; P j+1 is the location of the j+1th location in the delivery path; n is the number of locations included in the delivery path.

[0086]

[0087] Among them, θ ir is the first delivery path k of the first candidate delivery person i and its corresponding second delivery path k r The cost difference between them; L(k) is the length of the first delivery path k; L(k r ) is the second delivery path k r Length; The pickup location for the first order to be assigned With delivery location The distance between ir For the first delivery path k and the second delivery path k r The distance cost difference between them; x is the second delivery path k r The distance between the optional delivery location r and its adjacent locations; β and m are both preset parameters, and m is a positive integer.

[0088] Furthermore, the first delivery path information and / or the second delivery path information corresponding to the minimum value of the calculated cost difference can also be sent to the terminal device of the delivery person assigned to the first order to be assigned, and the first delivery path and / or the second delivery path can be displayed on the terminal device to instruct the delivery person to deliver the existing orders according to the first delivery path and / or to deliver the first order to be assigned along the way according to the second delivery path, which can facilitate the delivery person to deliver the first order to be assigned and his existing orders.

[0089] By adopting the above-mentioned implementation method of calculating the first commute value, various possible delivery routes are planned for the first candidate deliveryman to deliver the existing second type of order, and the commute value of the first candidate deliveryman in delivering the first order to be assigned is calculated based on these various possible delivery routes, so that the calculated commute value is more accurate, and then a deliveryman is assigned to the first order to be assigned based on the commute value calculated in this way, which can further improve the delivery efficiency of the first order to be assigned and the existing orders of the assigned deliveryman, and further reduce the overall delivery cost.

[0090] Case 2: The first candidate deliveryman’s existing orders do not include orders of the second type.

[0091] In this case, if Figure 3 As shown, the above step S102 includes:

[0092] S223. Determine a second en-route value of the pick-up location of the first order to be assigned relative to the pick-up location of the existing order based on the pick-up location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up location of the existing order.

[0093] The second en-route value is used to characterize the cost difference between the first candidate deliveryman delivering the first order to be assigned and not delivering the first order to be assigned while delivering the existing order.

[0094] Since different delivery paths are formed due to the order in which the first deliveryman arrives at the pick-up locations and delivery locations of the existing orders, the cost difference between delivering and not delivering the first order to be assigned is different under different delivery paths. Therefore, the second en-route value of the pick-up and delivery locations of the first order to be assigned relative to the pick-up and delivery locations of the existing orders can be calculated based on the cost difference between delivering and not delivering the first order to be assigned under different delivery paths.

[0095] Specifically, for each first candidate deliveryman, first, according to the position of the first candidate deliveryman and the pick-up and delivery position of the existing order, at least one third delivery path can be planned when the first candidate deliveryman does not deliver the first order to be assigned, and the length of each third delivery path is calculated. Then, for each third delivery path, according to the third delivery path and the pick-up and delivery position of the first order to be assigned, multiple fourth delivery paths for the first candidate deliveryman to deliver the first order to be assigned under the third delivery path are planned, and the length of each fourth delivery path is calculated. Further, for each third delivery path, according to the length difference between the third delivery path and each corresponding fourth delivery path, and the distance between the pick-up and delivery positions of the first order to be assigned, the cost difference between the third delivery path and each corresponding fourth delivery path is calculated. Finally, the minimum value of all the calculated cost differences is used as the second co-route value of the pick-up and delivery position of the first order to be assigned relative to the pick-up and delivery position of the existing order. The length of the third delivery path and the length of the fourth delivery path can both be calculated according to the above formula (1), and the cost difference between the third delivery path and each corresponding fourth delivery path can be calculated according to formula (3).

[0096]

[0097] Among them, θ ik is the third delivery path k of the first candidate delivery person i old The fourth delivery route k corresponding to it new The cost difference between old ) is the third delivery path k old The length of L(k new) is the fourth delivery path k new Length; The pickup location for the first order to be assigned With delivery location The distance between.

[0098] By adopting the implementation method of calculating the second delivery value, various possible delivery routes are planned for the first candidate deliveryman to deliver the existing order, and the delivery value of the first candidate deliveryman in delivering the first order to be assigned is calculated based on these various possible delivery routes, so that the calculated delivery value is more accurate. Then, based on the delivery value calculated in this way, a deliveryman is assigned to the first order to be assigned, which can further improve the delivery efficiency of the first order to be assigned and the existing orders of the assigned deliveryman, and further reduce the overall delivery cost.

[0099] S224. Use the second en-route value as the en-route value for the first candidate deliveryman to deliver the first order to be assigned.

[0100] Furthermore, the third delivery path information and / or the fourth delivery path information corresponding to the minimum value of the calculated cost difference can also be sent to the terminal device of the delivery person assigned to the first order to be assigned, and the third delivery path and / or the fourth delivery path can be displayed on the terminal device to instruct the delivery person to deliver the existing orders according to the third delivery path and / or to deliver the first order to be assigned along the way according to the fourth delivery path, which can facilitate the delivery person to deliver the first order to be assigned and his existing orders.

[0101] Under this implementation, when calculating the en-route value of the first candidate deliveryman for delivering the first order to be assigned, if the first candidate deliveryman's existing orders do not include orders of the second type, the pickup location and delivery location of all existing orders of the first candidate deliveryman are taken into consideration, and the en-route value of the first candidate deliveryman for delivering the first order to be assigned is determined based on the second en-route value of the pickup and delivery location of the first order to be assigned relative to the pickup and delivery location of the existing orders, and then a deliveryman is assigned to the first order to be assigned based on the calculated en-route value, so that the assigned deliveryman can deliver the first order to be assigned as much as possible on the way to delivering the existing orders, thereby improving the delivery efficiency of the assigned deliveryman's existing orders and reducing the delivery cost while ensuring the delivery timeliness of the first order to be assigned.

[0102] In another embodiment of the present disclosure, Figure 4 As shown, the above order allocation method also includes:

[0103] S104: In response to receiving a second order of the second type to be assigned, determine all second candidate delivery persons for the second order to be assigned.

[0104] S105. For each second candidate deliveryman, determine the en route value for the second candidate deliveryman to collect the second order to be assigned based on the pickup location of the second order to be assigned, the location of the second candidate deliveryman and the pickup and delivery location of the existing order.

[0105] The en route value of the second candidate deliveryman receiving the second order to be assigned is used to represent the cost difference between the second candidate deliveryman receiving the second order to be assigned and not receiving the second order to be assigned while delivering his existing orders.

[0106] S106. Allocate the second order to be assigned to the second candidate delivery person with the smallest en-route value for receiving the second order to be assigned.

[0107] By assigning the second order to be assigned to the second candidate deliveryman with the smallest en route value for receiving the second order to be assigned, the assigned deliveryman can deliver the second order to be assigned as much as possible on the way to delivering the existing orders, thereby ensuring the delivery efficiency of the second order to be assigned while improving the delivery efficiency of the existing orders of the assigned deliveryman and reducing the overall delivery cost.

[0108] In order to enable those skilled in the art to better understand the technical solution provided by this embodiment, the method for predicting the order delivery time provided by this embodiment is described in detail below.

[0109] First, with respect to the above step S104, the delivery personnel who are located within the preset distance range of the pickup location of the second order to be assigned can be used as the second candidate delivery personnel for the second order to be assigned. In this way, it can be ensured that the second order to be assigned can be picked up by the assigned delivery personnel as soon as possible, thereby improving the delivery efficiency of the second order to be assigned.

[0110] Secondly, for the above step S105, since the order in which the second deliveryman arrives at the pickup location and delivery location of his existing orders is different, different delivery paths will be formed, and the cost difference between collecting and not collecting the second order to be assigned is different under different delivery paths. Therefore, the en-route value of the second candidate deliveryman collecting the second order to be assigned can be calculated based on the cost difference between collecting and not collecting the second order to be assigned under different delivery paths.

[0111] Specifically, Figure 5 As shown, for each second candidate delivery person, step S105 may include:

[0112] S151. Plan at least one fifth delivery path according to the location of the second candidate delivery person and the pickup and delivery location of the existing order, and calculate the length of each fifth delivery path.

[0113] Among them, the fifth delivery path is the delivery path of the second candidate delivery person when he does not deliver the second order to be assigned.

[0114] S152. For each fifth delivery route, based on the fifth delivery route and the pick-up and delivery location of the second order to be assigned, plan multiple sixth delivery routes for the second candidate deliveryman to pick up the second order to be assigned along the fifth delivery route, and calculate the length of each sixth delivery route and the estimated pickup time of the second order to be assigned along each sixth delivery route.

[0115] S153. For each fifth delivery path, calculate the cost difference between the fifth delivery path and each corresponding sixth delivery path according to the length difference between the fifth delivery path and each corresponding sixth delivery path, and the time interval between the estimated pickup time of the second order to be allocated and the promised pickup time of the second order to be allocated under each corresponding sixth delivery path.

[0116] The length of the fifth delivery path and the length of the sixth delivery path can be calculated according to the above formula (1), and the cost difference between the fifth delivery path and each of its corresponding sixth delivery paths can be calculated according to formula (4).

[0117]

[0118] in, is the fifth delivery route of the second candidate deliveryman i The corresponding sixth delivery route Cost differences between The fifth delivery route Length; The sixth delivery route Length; t promised is the promised pickup time of the second order to be assigned; t predict For the second candidate deliveryman i on the sixth delivery path In the case of collecting the second order to be allocated, the estimated pickup time of the second order to be allocated; T(t predict -t promised ) is the fifth delivery route The corresponding sixth delivery route The time cost difference between them; α and n are both preset coefficients, and n is a positive integer.

[0119] S154. The minimum value among all the calculated cost differences is used as the en route value for the second candidate delivery person to collect for the second order to be assigned.

[0120] Furthermore, the fifth delivery path information and / or the sixth delivery path information corresponding to the minimum value of the calculated cost difference can also be sent to the terminal device of the delivery person assigned to the second order to be assigned, and the terminal device will display the fifth delivery path and / or the sixth delivery path to instruct the delivery person to deliver the existing order according to the fifth delivery path and / or to deliver the second order to be assigned along the way according to the sixth delivery path, which can facilitate the delivery person to deliver the second order to be assigned and his existing orders.

[0121] Under the above-mentioned implementation method of calculating the pick-up value for the second candidate deliveryman to receive the second order to be assigned, various possible delivery routes are planned for the second candidate deliveryman to deliver his existing orders, and the pick-up value for the second candidate deliveryman to receive the second order to be assigned is calculated based on the planned various possible delivery routes, so that the calculated pick-up value is more accurate, and then a deliveryman is assigned to the second order to be assigned based on the pick-up value calculated by this method, which can further improve the delivery efficiency of the second order to be assigned and the existing orders of the assigned deliveryman, and further reduce the overall delivery cost.

[0122] The disclosed embodiment also provides an order distribution device, Figure 6 is a block diagram of an order allocation device according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the device 600 includes:

[0123] A first determination module 601 is used to determine all first candidate couriers for a first order to be assigned in response to receiving the first type of first order to be assigned;

[0124] A second determination module 602 is used to determine the route value of each of the first candidate delivery personnel in delivering the first order to be assigned;

[0125] A first allocation module 603 is used to allocate the first order to be allocated to a first candidate delivery person who has the smallest en-route value for delivering the first order to be allocated;

[0126] The second determination module 602 is specifically configured to determine, for each of the first candidate delivery personnel, if the existing orders of the first candidate delivery personnel include orders of the second type, the en-route value of the first candidate delivery personnel in delivering the first order to be assigned according to the following method:

[0127] According to the optional delivery locations of the second type of order, the pick-up and delivery location of the first to-be-allocated order, the location of the first candidate deliveryman, and the pick-up and delivery locations of other orders among the existing orders except the second type of order, determining a first commute value of the pick-up and delivery location of the first to-be-allocated order relative to the optional delivery location, wherein the first commute value is used to represent the cost difference between the first candidate deliveryman delivering the first to-be-allocated order and not delivering the first to-be-allocated order during the delivery of the second type of order;

[0128] The en-route value of the first candidate delivery person in delivering the first order to be assigned is determined based on the obtained first en-route value.

[0129] By using the above-mentioned order allocation device, by allocating the first order to be allocated to the first candidate deliveryman with the smallest commute value for delivering the first order to be allocated, the cost and time of the deliveryman delivering the first order to be allocated can be reduced, thereby improving the delivery efficiency of the first order to be allocated. In addition, when calculating the commute value of the first candidate deliveryman delivering the first order to be allocated, if the first candidate deliveryman's existing orders include orders of the second type, the optional delivery locations of the second type of orders are taken into consideration, and the commute value of the first candidate deliveryman delivering the first order to be allocated is calculated in combination with the characteristics of the high delivery timeliness requirements of the first order to be allocated and the characteristics of the flexible delivery of the second type of orders, and then based on the calculated commute value, the deliveryman is allocated to the first order to be allocated, so that the assigned deliveryman delivers the first order to be allocated as much as possible on the way to deliver the second type of orders, thereby ensuring the delivery timeliness of the first order to be allocated, while improving the delivery efficiency of the assigned deliveryman's existing second type of orders with lower delivery timeliness requirements and reducing the delivery cost.

[0130] Optionally, the second determining module 602 is specifically configured to determine a first commute value of the pickup and delivery location of the first order to be allocated relative to the optional delivery location in the following manner:

[0131] If there are multiple optional delivery locations, then for each optional delivery location, according to the optional delivery location, the pick-up and delivery location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery locations of other orders among the existing orders except for the second type of order, determine the first commute value of the pick-up and delivery location of the first order to be assigned relative to the optional delivery location;

[0132] The first allocation module is used to determine the en-route value of the first candidate delivery person in delivering the first order to be allocated according to the following method:

[0133] The minimum value among all the first en-route values ​​obtained is used as the en-route value for the first candidate deliveryman to deliver the first order to be assigned.

[0134] Under this implementation, when calculating the en-route value of the first candidate deliveryman in delivering the first order to be assigned, if the first candidate deliveryman's existing orders include orders of the second type, the optional delivery locations of the second type of orders are taken into consideration, and the en-route value of the first candidate deliveryman in delivering the first order to be assigned is calculated in combination with the characteristics of the first order to be assigned having high delivery time requirements and the second type of orders having flexible delivery characteristics. Based on the calculated en-route value, a deliveryman is assigned to the first order to be assigned, so that the assigned deliveryman can deliver the first order to be assigned as much as possible on the way to delivering the second type of orders. This can improve the delivery efficiency of the assigned deliveryman's existing second type of orders with lower delivery time requirements and reduce delivery costs while ensuring the delivery time requirements of the first order to be assigned.

[0135] In addition, when there are multiple optional delivery locations for the second type of order, by calculating the first commute value of the pick-up delivery location of the first order to be assigned relative to each optional delivery location of the second type of order, the commute value of the first candidate deliveryman for delivering the first order to be assigned is determined based on all the first commute values ​​obtained, and then the deliveryman is assigned to the first order to be assigned based on the calculated commute value, so that the assigned deliveryman can select a suitable optional delivery location to deliver the existing second type of order according to the real-time status information such as warehouse saturation and business hours of different optional delivery locations, and can deliver the first order to be assigned as much as possible on the way to deliver the existing second type of order, so as to ensure the delivery timeliness of the first order to be assigned. Optionally, the second determination module 602 determines the first commute value of the pick-up delivery location of the first order to be assigned relative to the optional delivery location for each optional delivery location according to the optional delivery location, the pick-up delivery location of the first order to be assigned, the location of the first candidate deliveryman, and the pick-up delivery locations of other orders in the existing orders except the second type of order, including:

[0136] For each of the optional delivery locations, a plurality of first delivery paths are planned according to the optional delivery location, the location of the first candidate delivery person, and the pickup and delivery locations of other orders among the existing orders except for the second type of orders, and the length of each first delivery path is calculated;

[0137] For each first delivery route, according to the first delivery route and the pick-up and delivery location of the first order to be assigned, plan multiple second delivery routes for the first candidate deliveryman to deliver the first order to be assigned along the first delivery route, calculate the length of each second delivery route, and, according to the length difference between the first delivery route and each corresponding second delivery route, the distance between the optional delivery location in each corresponding second delivery route and its adjacent location, and the distance between the pick-up and delivery locations of the first order to be assigned, calculate the cost difference between the first delivery route and each corresponding second delivery route;

[0138] The minimum value of the calculated cost differences is used as the first en route value of the delivery location of the first order to be allocated relative to the optional delivery location.

[0139] By adopting the above-mentioned implementation method of calculating the first commute value, various possible delivery routes are planned for the first candidate deliveryman to deliver the existing second type of order, and the commute value of the first candidate deliveryman in delivering the first order to be assigned is calculated based on these various possible delivery routes, so that the calculated commute value is more accurate, and then a deliveryman is assigned to the first order to be assigned based on the commute value calculated in this way, which can further improve the delivery efficiency of the first order to be assigned and the existing orders of the assigned deliveryman, and further reduce the overall delivery cost.

[0140] Optionally, the second determining module 602 is specifically configured to determine the en-route value of the first candidate deliveryman for delivering the first order to be assigned in the following manner if the existing orders of the first candidate deliveryman do not include orders of the second type:

[0141] According to the pick-up and delivery location of the first order to be assigned, the location of the first candidate deliveryman, and the pick-up and delivery location of the existing order, a second commute value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order is determined, wherein the second commute value is used to represent the cost difference between the first candidate deliveryman delivering the first order to be assigned and not delivering the first order to be assigned during the delivery of the existing order;

[0142] The second en-route value is used as the en-route value for the first candidate delivery person to deliver the first order to be assigned.

[0143] Under this implementation, when calculating the en-route value of the first candidate deliveryman for delivering the first order to be assigned, if the first candidate deliveryman's existing orders do not include orders of the second type, the pickup location and delivery location of all existing orders of the first candidate deliveryman are taken into consideration, and the en-route value of the first candidate deliveryman for delivering the first order to be assigned is determined based on the second en-route value of the pickup and delivery location of the first order to be assigned relative to the pickup and delivery location of the existing orders, and then a deliveryman is assigned to the first order to be assigned based on the calculated en-route value, so that the assigned deliveryman can deliver the first order to be assigned as much as possible on the way to delivering the existing orders, thereby improving the delivery efficiency of the assigned deliveryman's existing orders and reducing the delivery cost while ensuring the delivery timeliness of the first order to be assigned.

[0144] Optionally, the second determining module 602 determines a second co-location value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order according to the pick-up and delivery location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery location of the existing order, including:

[0145] Planning a third delivery route according to the location of the first candidate delivery person and the pickup and delivery location of the existing order, and calculating the length of the third delivery route;

[0146] According to the third delivery route and the pick-up and delivery location of the first order to be assigned, a plurality of fourth delivery routes for the first candidate deliveryman to deliver the first order to be assigned along the third delivery route are planned, and the length of each fourth delivery route is calculated, and,

[0147] Calculate the cost difference between the third delivery path and each of its corresponding fourth delivery paths according to the length difference between the third delivery path and each of its corresponding fourth delivery paths, and the distance between the pickup and delivery locations of the first order to be allocated;

[0148] The minimum value of all the calculated cost differences is used as the second en-route value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order.

[0149] By adopting the implementation method of calculating the second delivery value, various possible delivery routes are planned for the first candidate deliveryman to deliver the existing order, and the delivery value of the first candidate deliveryman in delivering the first order to be assigned is calculated based on these various possible delivery routes, so that the calculated delivery value is more accurate. Then, based on the delivery value calculated in this way, a deliveryman is assigned to the first order to be assigned, which can further improve the delivery efficiency of the first order to be assigned and the existing orders of the assigned deliveryman, and further reduce the overall delivery cost.

[0150] Alternatively, if Figure 7 As shown, the device 600 also includes:

[0151] A third determining module 604 is configured to determine all second candidate couriers for the second order to be assigned in response to receiving the second type of the second order to be assigned;

[0152] The fourth determination module 605 is used to determine, for each of the second candidate delivery personnel, a ride-through value for the second candidate delivery personnel to collect the second order to be allocated, according to the pickup location of the second order to be allocated, the location of the second candidate delivery personnel and the pickup and delivery location of the existing order, wherein the ride-through value is used to represent the cost difference between the second candidate delivery personnel collecting the second order to be allocated and not collecting the second order to be allocated during the delivery of the existing order;

[0153] The second allocation module 606 is used to allocate the second order to be allocated to the second candidate delivery person who has the smallest en-route value for receiving the second order to be allocated.

[0154] Through the order allocation device described in this embodiment, by allocating the second order to be allocated to the second candidate deliveryman who has the smallest en route value for receiving the second order to be allocated, the allocated deliveryman is allowed to deliver the second order to be allocated as much as possible while delivering the existing orders. This can improve the delivery efficiency of the existing orders of the allocated deliveryman and reduce the overall delivery cost while ensuring the delivery efficiency of the second order to be allocated.

[0155] Optionally, the fourth determining module 605 is specifically configured to determine the en-route value of the second candidate delivery person receiving the second order to be assigned according to the following method:

[0156] For each of the second candidate delivery personnel, a fifth delivery route is planned according to the location of the second candidate delivery personnel and the pickup and delivery location of the existing orders, and the length of the fifth delivery route is calculated;

[0157] According to the fifth delivery route and the pickup and delivery location of the second order to be allocated, a plurality of sixth delivery routes for the second candidate deliveryman to pick up the second order to be allocated along the fifth delivery route are planned, and the length of each sixth delivery route and the estimated pickup time of the second order to be allocated along each sixth delivery route are calculated, and,

[0158] Calculate the cost difference between the fifth delivery path and each of its corresponding sixth delivery paths according to the length difference between the fifth delivery path and each of its corresponding sixth delivery paths, and the interval between the estimated pickup time of the second order to be allocated and the promised pickup time of the second order to be delivered under each of the corresponding sixth delivery paths;

[0159] The minimum value of all calculated cost differences is used as the en route value for the second order to be assigned to the second candidate delivery person.

[0160] Under this implementation, various possible delivery routes are planned for the second candidate deliveryman to deliver his existing orders, and the en-route value of the second candidate deliveryman for collecting the second order to be assigned is calculated based on the planned various possible delivery routes, so that the calculated en-route value is more accurate. Then, based on the en-route value calculated by this method, a deliveryman is assigned to the second order to be assigned, which can further improve the delivery efficiency of the second order to be assigned and the existing orders of the assigned deliveryman, and further reduce the overall delivery cost.

[0161] Regarding the device in the above embodiment, the specific manner in which each module performs operations is implemented in the same or similar manner as in the above method embodiment, and will not be elaborated here.

[0162] In addition, those skilled in the art will clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0163] The embodiment of the present disclosure also provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned order allocation method when executed by a processor.

[0164] The embodiment of the present disclosure also provides an electronic device, comprising: a memory on which a computer program is stored; and a processor, configured to execute the computer program in the memory to implement the steps of the above-mentioned order allocation method.

[0165] Figure 8 8 is a block diagram of an electronic device 800 according to an exemplary embodiment of the present disclosure. For example, the electronic device 800 may be provided as a server. Figure 8 The electronic device 800 includes a processor 822, which may be one or more, and a memory 832 for storing a computer program executable by the processor 822. The computer program stored in the memory 832 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 822 may be configured to execute the computer program to perform the above-mentioned order allocation method.

[0166] In addition, the electronic device 800 may further include a power supply component 826 and a communication component 850, wherein the power supply component 826 may be configured to perform power management of the electronic device 800, and the communication component 850 may be configured to implement communication of the electronic device 800, for example, wired or wireless communication. In addition, the electronic device 800 may further include an input / output (I / O) interface 858. The electronic device 800 may operate based on an operating system stored in the memory 832, such as Windows Server™, Mac OSX™, Unix™, Linux™, etc.

[0167] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned method for allocating orders are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 832 including program instructions, and the above-mentioned program instructions can be executed by the processor 822 of the electronic device 800 to complete the above-mentioned method for allocating orders.

[0168] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0169] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0170] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A method for allocating orders, characterized in that: include: In response to receiving a first order of a first type to be assigned, determining all first candidate delivery persons for the first order to be assigned; Determine a route value for each of the first candidate delivery personnel in delivering the first order to be assigned; Allocating the first order to be assigned to a first candidate delivery person who has the smallest en-route value for delivering the first order to be assigned; For each of the first candidate deliverymen, if the existing orders of the first candidate deliveryman include orders of the second type, the en-route value of the first candidate deliveryman in delivering the first order to be assigned is determined according to the following method: The first type of order is an order with a delivery time shorter than a preset time, and the second type of order is an order for picking up or returning shared items with a delivery time longer than the preset time. The second type of order has different optional delivery locations: According to the optional delivery location of the second type of order, the pick-up and delivery location of the first to-be-allocated order, the location of the first candidate deliveryman, and the pick-up and delivery locations of other orders among the existing orders except the second type of order, determine a first commute value of the pick-up and delivery location of the first to-be-allocated order relative to the optional delivery location, wherein the first commute value is used to represent the cost difference between the first candidate deliveryman delivering the first to-be-allocated order and not delivering the first to-be-allocated order during the delivery of the second type of order at the optional delivery location; Determining the first delivery candidate's delivery value for the first order to be assigned based on the first delivery candidate's delivery value; The determining, based on the optional delivery locations of the orders of the second type, the pick-up and delivery locations of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery locations of other orders among the existing orders except the orders of the second type, a first co-ordination value of the pick-up and delivery location of the first order to be assigned relative to the optional delivery location comprises: If there are multiple optional delivery locations, then for each optional delivery location, according to the optional delivery location, the pick-up and delivery location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery locations of other orders among the existing orders except for the second type of order, determine the first commute value of the pick-up and delivery location of the first order to be assigned relative to the optional delivery location; The step of determining the first delivery candidate's delivery value for delivering the first order to be assigned based on the first delivery candidate's delivery value includes: The minimum value among all the first commute values ​​obtained is used as the commute value for the first candidate deliveryman to deliver the first order to be assigned; The method of determining, for each optional delivery location, a first delivery pick-up location of the first order to be assigned relative to the optional delivery location according to the optional delivery location, the delivery pick-up location of the first order to be assigned, the location of the first candidate delivery person, and the delivery pick-up locations of other orders among the existing orders except for the second type of order, comprises: For each of the optional delivery locations, a plurality of first delivery paths are planned according to the optional delivery location, the location of the first candidate delivery person, and the pickup and delivery locations of other orders among the existing orders except for the second type of orders, and the length of each first delivery path is calculated; For each first delivery route, according to the first delivery route and the pick-up and delivery location of the first order to be assigned, plan multiple second delivery routes for the first candidate deliveryman to deliver the first order to be assigned along the first delivery route, calculate the length of each second delivery route, and, according to the length difference between the first delivery route and each corresponding second delivery route, the distance between the optional delivery location in each corresponding second delivery route and its adjacent location, and the distance between the pick-up and delivery locations of the first order to be assigned, calculate the cost difference between the first delivery route and each corresponding second delivery route; The minimum value of the calculated cost differences is used as the first en route value of the delivery location of the first order to be allocated relative to the optional delivery location.

2. The method according to claim 1, characterized in that If the existing orders of the first candidate deliveryman do not include orders of the second type, the en-route value of the first candidate deliveryman in delivering the first order to be assigned is determined in the following manner: According to the pick-up and delivery location of the first order to be assigned, the location of the first candidate deliveryman, and the pick-up and delivery location of the existing order, a second commute value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order is determined, wherein the second commute value is used to represent the cost difference between the first candidate deliveryman delivering the first order to be assigned and not delivering the first order to be assigned during the delivery of the existing order; The second en-route value is used as the en-route value for the first candidate delivery person to deliver the first order to be assigned.

3. The method according to claim 2, characterized in that The determining, based on the pick-up and delivery location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery location of the existing order, a second co-location value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order includes: Planning a third delivery route according to the location of the first candidate delivery person and the pickup and delivery location of the existing order, and calculating the length of the third delivery route; According to the third delivery route and the pick-up and delivery location of the first order to be assigned, plan multiple fourth delivery routes for the first candidate deliveryman to deliver the first order to be assigned along the third delivery route, calculate the length of each fourth delivery route, and, according to the length difference between the third delivery route and each corresponding fourth delivery route, and the distance between the pick-up and delivery locations of the first order to be assigned, calculate the cost difference between the third delivery route and each corresponding fourth delivery route; The minimum value of all the calculated cost differences is used as the second en-route value of the pick-up and delivery location of the first order to be assigned relative to the pick-up and delivery location of the existing order.

4. The method according to claim 1, characterized in that The method further comprises: In response to receiving a second order to be assigned of the second type, determining all second candidate delivery persons for the second order to be assigned; For each of the second candidate delivery personnel, according to the pickup location of the second order to be assigned, the location of the second candidate delivery personnel and the pickup and delivery location of the existing order, determine the en route value of the second candidate delivery personnel for collecting the second order to be assigned, wherein the en route value is used to represent the cost difference between the second candidate delivery personnel collecting the second order to be assigned and not collecting the second order to be assigned during the delivery of the existing order; The second order to be assigned is assigned to the second candidate delivery person with the smallest en route value for receiving the second order to be assigned.

5. The method according to claim 4, characterized in that The step of determining, for each of the second candidate delivery personnel, a pick-up location of the second order to be assigned, the location of the second candidate delivery personnel and the pick-up and delivery location of the existing order, for the second candidate delivery personnel to receive the second order to be assigned, includes: For each of the second candidate delivery personnel, a fifth delivery route is planned according to the location of the second candidate delivery personnel and the pickup and delivery location of the existing orders, and the length of the fifth delivery route is calculated; According to the fifth delivery route and the pickup and delivery location of the second order to be allocated, a plurality of sixth delivery routes for the second candidate deliveryman to pick up the second order to be allocated along the way along the fifth delivery route are planned, and the length of each sixth delivery route and the estimated pickup time of the second order to be allocated under each sixth delivery route are calculated, and, according to the length difference between the fifth delivery route and each corresponding sixth delivery route, and the interval between the estimated pickup time of the second order to be allocated under each corresponding sixth delivery route and the promised pickup time of the second order to be allocated, the cost difference between the fifth delivery route and each corresponding sixth delivery route is calculated; The minimum value of all calculated cost differences is used as the en route value for the second order to be assigned to the second candidate delivery person.

6. An order distribution device, characterized in that: include: A first determination module, configured to determine all first candidate couriers for a first order to be assigned in response to receiving a first type of first order to be assigned; A second determination module is used to determine the en-route value of each of the first candidate delivery personnel in delivering the first order to be assigned; A first allocation module, configured to allocate the first order to be allocated to a first candidate delivery person who has the smallest en-route value for delivering the first order to be allocated; For each of the first candidate deliverymen, if the existing orders of the first candidate deliveryman include orders of the second type, the second determination module determines the en-route value of the first candidate deliveryman in delivering the first order to be assigned according to the following method: According to the optional delivery locations of the second type of order, the pick-up and delivery location of the first to-be-allocated order, the location of the first candidate deliveryman, and the pick-up and delivery locations of other orders among the existing orders except the second type of order, determining a first commute value of the pick-up and delivery location of the first to-be-allocated order relative to the optional delivery location, wherein the first commute value is used to represent the cost difference between the first candidate deliveryman delivering the first to-be-allocated order and not delivering the first to-be-allocated order during the delivery of the second type of order; Determining the first delivery candidate's delivery value for the first order to be assigned based on the first delivery candidate's delivery value; The first type of order is an order with a delivery time shorter than a preset time, the second type of order is a pick-up or return of a shared item with a delivery time longer than the preset time, and the second type of order has different optional delivery locations; The determining, based on the optional delivery locations of the orders of the second type, the pick-up and delivery locations of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery locations of other orders among the existing orders except the orders of the second type, a first co-ordination value of the pick-up and delivery location of the first order to be assigned relative to the optional delivery location comprises: If there are multiple optional delivery locations, then for each optional delivery location, according to the optional delivery location, the pick-up and delivery location of the first order to be assigned, the location of the first candidate delivery person, and the pick-up and delivery locations of other orders among the existing orders except for the second type of order, determine the first commute value of the pick-up and delivery location of the first order to be assigned relative to the optional delivery location; The step of determining the first delivery candidate's delivery value for delivering the first order to be assigned based on the first delivery candidate's delivery value includes: The minimum value among all the first commute values ​​obtained is used as the commute value for the first candidate deliveryman to deliver the first order to be assigned; The method of determining, for each optional delivery location, a first delivery pick-up location of the first order to be assigned relative to the optional delivery location according to the optional delivery location, the delivery pick-up location of the first order to be assigned, the location of the first candidate delivery person, and the delivery pick-up locations of other orders among the existing orders except for the second type of order, comprises: For each of the optional delivery locations, a plurality of first delivery paths are planned according to the optional delivery location, the location of the first candidate delivery person, and the pickup and delivery locations of other orders among the existing orders except for the second type of orders, and the length of each first delivery path is calculated; For each first delivery route, according to the first delivery route and the pick-up and delivery location of the first order to be assigned, plan multiple second delivery routes for the first candidate deliveryman to deliver the first order to be assigned along the first delivery route, calculate the length of each second delivery route, and, according to the length difference between the first delivery route and each corresponding second delivery route, the distance between the optional delivery location in each corresponding second delivery route and its adjacent location, and the distance between the pick-up and delivery locations of the first order to be assigned, calculate the cost difference between the first delivery route and each corresponding second delivery route; The minimum value of the calculated cost differences is used as the first en route value of the delivery location of the first order to be allocated relative to the optional delivery location.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.

8. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 5.