Shipping order scheduling method, device, equipment and medium
By analyzing the delivery difficulty parameters and estimated delivery time of the target store, combined with the duration threshold, the delivery orders are allocated to the own or third-party platform, which solves the order overflow problem caused by the insufficient number of riders on the self-owned platform and improves on-time delivery. Rate.
Patent Information
- Application Number
- CN202410706523.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-01
AI Technical Summary
In the food delivery business, the number of riders on the self-owned delivery platform may not be able to meet the demand for delivery orders during peak periods, resulting in order overflow. Some orders need to be allocated to third-party delivery platforms. However, accurately determining the timing of overflow will have an impact on the on-time delivery rate. big.
Based on the history and current delivery difficulty parameters of the target store, the estimated delivery time, and the preset time threshold, the appropriate target delivery platform is determined from multiple alternative delivery platforms to ensure timely delivery of delivery orders.
Effectively judge and allocate delivery orders to ensure on-time delivery to target stores and avoid order cancellations by users due to excessive delivery pressure.
Smart Images

Figure CN118735160A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more particularly to a method, device, equipment and medium for scheduling delivery orders. Background Art
[0002] In recent years, with the rapid development of food delivery business, more and more chain restaurants have begun to pay attention to food delivery services. In order to improve the quality and efficiency of food delivery services, some chain restaurants have established their own delivery platforms (that is, their own food delivery systems and their own food delivery riders) to better control and manage food delivery services and improve the reliability and efficiency of food delivery services.
[0003] However, when there are many delivery orders, the number of riders on the self-owned delivery platform may not be able to meet the delivery needs of the delivery orders. At this time, it is necessary to overflow the delivery orders to allocate part of the orders to the third-party delivery platform, which will be delivered by the riders of the third-party delivery platform. In the related technology, accurately determining the timing of delivery order overflow is of great significance to ensuring the on-time delivery rate of restaurants. Summary of the invention
[0004] In order to overcome the problems existing in the related art, this specification provides a method, device, equipment and medium for scheduling delivery orders.
[0005] According to a first aspect of an embodiment of the present specification, a method for scheduling a delivery order is provided, the method comprising:
[0006] Determine a second estimated delivery time of the target store in the second time period based on the historical delivery difficulty parameter of the target store in the first time period, the current delivery difficulty parameter of the target store in the second time period, and the first estimated delivery time of the target store in the first time period; wherein the end time of the second time period is the current time, the end time of the first time period is before the current time, the start time of the first time period and the start time of the second time period are the same, and the delivery difficulty parameter is used to indicate the difficulty of delivering all the delivery orders of the target store by the delivery personnel of the target store;
[0007] Based on the second estimated delivery time and the preset first time threshold, a target delivery platform for delivering each new delivery order is determined from multiple alternative delivery platforms, and the new delivery order is the delivery order newly generated in the second time period compared to the first time period.
[0008] According to a second aspect of an embodiment of the present specification, a dispatching device for delivery orders is provided, the device comprising:
[0009] A first determination module is used to determine a second estimated delivery time of the target store in a second time period based on a historical delivery difficulty parameter of the target store in the first time period, a current delivery difficulty parameter of the target store in the second time period, and a first estimated delivery time of the target store in the first time period; wherein the end time of the second time period is the current time, the end time of the first time period is before the current time, the start time of the first time period and the start time of the second time period are the same, and the delivery difficulty parameter is used to indicate the difficulty of delivering all the delivery orders of the target store by the delivery personnel of the target store;
[0010] The second determination module is used to determine a target delivery platform for delivering each new delivery order from a plurality of alternative delivery platforms based on the second estimated delivery time and a pre-set first time threshold, where the new delivery order is a delivery order newly generated in the second time period compared to the first time period.
[0011] According to a third aspect of an embodiment of the present specification, a computing device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the operations performed by the above-mentioned method for scheduling delivery orders when executing the computer program.
[0012] According to a fourth aspect of the embodiments of the present specification, a computer-readable storage medium is provided, on which a program is stored, and the program is executed by a processor to perform the operations performed by the above-mentioned dispatching method for delivery orders.
[0013] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program, which, when executed by a processor, implements the operations performed by the above-mentioned dispatching method for delivery orders.
[0014] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:
[0015] By determining the estimated delivery time of the target store in the second time period based on the historical delivery difficulty parameter and the first estimated delivery time of the target store in the first time period before the current time period, and the current delivery difficulty parameter of the target store in the second time period with the same starting time as the first time period and the current time period as the end time, the target delivery platform for delivering each newly added delivery order generated in the second time period compared to the first time period is determined from multiple alternative delivery platforms based on the second estimated delivery time and the pre-set first threshold. Through the solution provided in this specification, the alternative delivery platform suitable for delivering the newly added delivery order can be timely determined to ensure the on-time delivery rate of the target store.
[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0018] Figure 1 It is a flow chart of a method for scheduling delivery orders according to an exemplary embodiment of the present application.
[0019] Figure 2 It is a schematic diagram of a delivery route shown in the present application according to an exemplary embodiment.
[0020] Figure 3 It is a schematic diagram of an optional delivery route shown in the present application according to an exemplary embodiment.
[0021] Figure 4 It is a schematic diagram of an optional delivery route shown in the present application according to an exemplary embodiment.
[0022] Figure 5 It is a schematic diagram of a first delivery area and a second delivery area according to an exemplary embodiment of the present application.
[0023] Figure 6 It is a flowchart of a delivery order scheduling process shown in the present application according to an exemplary embodiment.
[0024] Figure 7 It is a block diagram of a dispatching device for delivery orders according to an exemplary embodiment of the present application.
[0025] Figure 8 It is a structural diagram of a computing device shown in the present application according to an exemplary embodiment. DETAILED DESCRIPTION
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in this application.
[0027] The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms of "a", "the" and "the" used in this application are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0029] The delivery order scheduling method provided in this application can be applied to food delivery business scenarios.
[0030] Optionally, in a food delivery business scenario, customers can place a delivery order (or food delivery order) through the food delivery software. After the user places a delivery order through the food delivery software, the delivery system can receive the user's order. As for the target store, if there is a new delivery order, the target store needs to inform when the order is expected to be delivered. The estimated delivery time is called the estimated delivery time (or promised delivery time), and the difference between the estimated delivery time and the time when the user places the order is the estimated delivery time (or promised delivery time) of the delivery order.
[0031] For example, a user places an order at 12:00:00, and the delivery system determines through calculation that the order will be delivered at 12:40:00. Then 12:40:00 is the estimated delivery time of the order, and the difference between 12:40:00 and 12:00:00 is the estimated delivery time of the order, that is, the estimated delivery time of the order is 40 minutes.
[0032] In some embodiments, each time the estimated delivery time is calculated, the delivery system can perform a simulated delivery based on all the delivery personnel (riders) and all the delivery orders at that time, that is, which delivery personnel will go to the target store to pick up which orders, and then deliver these orders in what order. After completion, the delivery personnel will return to the target store to pick up and deliver the next order, until all delivery personnel have delivered all the delivery orders received by all stores. The estimated delivery time for each delivery order can be calculated through simulated delivery.
[0033] Optionally, the delivery system may calculate the estimated delivery time every certain period of time (such as every 1 minute), and the calculated estimated delivery time may be used as the estimated delivery time for all delivery orders generated in the future period of time (according to the previous example, that is, in the next 1 minute). For example, at 12:00:00, the delivery system calculates that the estimated delivery time for the target store is 40 minutes, and the delivery system calculates the estimated delivery time every 1 minute, then the estimated delivery time for all delivery orders generated in the period of 12:00:00-12:01:00 is 40 minutes. Optionally, the delivery system may store the latest simulated delivery results, that is, the delivery system may store the latest simulated delivery sequence of orders.
[0034] Optionally, the delivery platforms available to the target store (i.e., alternative delivery platforms) may include self-owned delivery platforms and third-party delivery platforms, wherein the self-owned delivery platform may be a delivery platform maintained by the target store itself, and the third-party delivery platform may be other delivery platforms that have signed a cooperation agreement with the target store. Compared with third-party delivery platforms, self-owned delivery platforms are easier to manage and more controllable for the target store. Therefore, the target store will give priority to self-owned delivery platforms as delivery platforms for delivery orders.
[0035] However, the transportation capacity of a self-owned delivery platform is not unlimited. For a self-owned delivery platform, the number of delivery personnel is usually fixed. If the target store receives more delivery orders, the delivery personnel will need to deliver the delivery orders for a longer time, that is, the estimated delivery time of the delivery order will be longer. However, an excessively long estimated delivery time may cause users to cancel their orders directly. In order to ensure user retention, some of the newly added delivery orders can be overflowed to third-party delivery platforms for delivery, thereby ensuring that the estimated delivery time of the target store's delivery orders is within a reasonable range.
[0036] That is, for the delivery orders that have been received, a delivery platform can be assigned to them through the scheduling method for delivery orders provided in this application, so that the delivery orders can be delivered through the corresponding delivery platform to ensure that the delivery orders can be delivered to the users as soon as possible.
[0037] Optionally, the delivery order can be used to order food, purchase daily necessities, purchase medicines, purchase flowers, etc., but is not limited thereto.
[0038] The above-mentioned delivery order scheduling method can be executed by a computing device, and the computing device can be a server, such as one server, multiple servers, a server cluster, a cloud computing platform, etc., but is not limited to this. This application does not limit the device type and number of computing devices.
[0039] The above is only an exemplary description of the application scenario of the present application and does not constitute a limitation on the application scenario of the present application. In more possible implementations, the present application can be applied to other scenarios that require allocating delivery platforms for delivery orders.
[0040] After introducing the application scenarios of the present application, the scheduling method for delivery orders provided by the present application is further explained in combination with the embodiments of the present application.
[0041] like Figure 1 As shown, Figure 1 : is a flowchart of a method for scheduling a delivery order according to an exemplary embodiment of the present application. The method may include the following steps:
[0042] Step 101: determine a second estimated delivery time of the target store in the second time period based on a historical delivery difficulty parameter of the target store in the first time period, a current delivery difficulty parameter of the target store in the second time period, and a first estimated delivery time of the target store in the first time period; wherein the end time of the second time period is the current time, the end time of the first time period is before the current time, the start time of the first time period is the same as the start time of the second time period, and the delivery difficulty parameter is used to indicate the difficulty of delivering all the delivery orders of the target store by the target store's own delivery personnel.
[0043] The target store may be any of the multiple stores in the business scenario, such as a restaurant, a convenience store, a supermarket, a flower shop, a dessert shop, etc. This application does not limit the store type of the target store. Taking the business scenario of a takeaway business scenario as an example, the target store may be any restaurant in the takeaway business scenario.
[0044] It should be noted that the duration of the first time period and the second time period can be two time periods with the same starting time, wherein the end time of the second time period is the current time, and the end time of the first time period is before the current time. For example, if the current time is 00:10, the second time period can be the time period corresponding to 00:00 to 00:05, and the first time period can be the time period corresponding to 00:05 to 00:10.
[0045] Among them, the estimated delivery time can also be called the promised delivery time, which means that the target store estimates that the delivery order will be delivered to the user within this time.
[0046] Optionally, the first estimated delivery time may be determined by a machine learning method. For example, the first estimated delivery time for the first time period may be determined by a delivery time estimation model based on the number of delivery orders of the target store in the first time period and the number of available delivery personnel of the target store in the first time period.
[0047] Among them, the delivery time estimation model can be any type of machine learning model. For example, the delivery time estimation model can be a support vector machine (SVM) model, but is not limited to this. The delivery time estimation model can also be other types of machine learning models. This application does not limit the model type of the delivery time estimation model.
[0048] It should be noted that the first estimated delivery time is applicable to all delivery orders generated within the first time period, that is, the estimated delivery time of all delivery orders generated within the first time period is the first estimated delivery time.
[0049] Through the historical delivery difficulty parameters and the current delivery difficulty parameters, the delivery pressure of the target store in the second time period can be predicted, so that the second estimated delivery time can be predicted based on the first estimated delivery time.
[0050] Step 102: Based on the second estimated delivery time and the preset first time threshold, determine a target delivery platform for delivering each newly added delivery order from a plurality of alternative delivery platforms, where the newly added delivery order is a delivery order newly generated in the second time period compared to the first time period.
[0051] Optionally, the first time threshold can be an arbitrary value. The first time threshold can be set according to business needs. For example, if the business need is to prioritize order delivery rate, the first time threshold can be set to a larger value. If the business need is to use the own delivery platform for delivery as much as possible, the first time threshold can be set to a smaller value. This application does not limit the value of the first time threshold.
[0052] Optionally, the new delivery orders generated in the previous period can be allocated to the delivery platform at preset intervals to achieve the effect of periodically completing the distribution of delivery platforms and ensure that each delivery order can be allocated to a suitable delivery platform.
[0053] The above embodiment determines the estimated delivery time of the target store in the second time period based on the historical delivery difficulty parameter and the first estimated delivery time of the target store in the first time period with the end time before the current time, and the current delivery difficulty parameter of the target store in the second time period with the same start time as the first time period and the end time as the current time, thereby determining the target delivery platform for delivering each newly added delivery order generated in the second time period compared to the first time period from multiple alternative delivery platforms based on the second estimated delivery time and the pre-set first threshold. Through the solution provided in this specification, the alternative delivery platform suitable for delivering the newly added delivery order can be timely determined to ensure the on-time delivery rate of the target store.
[0054] After introducing the basic implementation process of the present application, various non-limiting implementation methods of the present application are specifically introduced below.
[0055] In some embodiments, before step 101, the following steps may also be included:
[0056] Step 100: Determine a historical delivery difficulty parameter of the target store and a current delivery difficulty parameter of the target store based on the order data and delivery personnel data of the target store in the first time period and the second time period, respectively.
[0057] Optionally, the order data may include the number of delivery orders and the amount of delivery orders, but are not limited thereto; the delivery personnel data may include the number of delivery personnel of the self-owned delivery platform, but are not limited thereto. For example, the order data of the target store in the first time period may at least include the number of the first delivery orders and the amount of the delivery orders of the target store in the first time period, and the delivery personnel data of the target store in the first time period may at least include the number of delivery personnel of the self-owned delivery platform of the target store in the first time period; the order data of the target store in the second time period may at least include the number of the second delivery orders and the amount of the delivery orders of the target store in the second time period, and the delivery personnel data of the target store in the second time period may at least include the number of delivery personnel of the self-owned delivery platform of the target store in the second time period.
[0058] It should be noted that the number of delivery orders that each delivery staff can carry is limited. Therefore, the more delivery orders the target store receives, the more difficult it is to deliver the delivery orders of the target store. Conversely, the fewer delivery orders the target store receives, the easier it is to deliver the delivery orders of the target store. In addition, the amount of delivery orders that each delivery staff can carry is limited. Therefore, the larger the amount of delivery orders received by the target store, the more difficult it is to deliver the delivery orders of the target store. Conversely, the smaller the amount of delivery orders received by the target store, the easier it is to deliver the delivery orders of the target store.
[0059] In addition, the number of delivery personnel will also affect the delivery difficulty of the target store's delivery orders. The more delivery personnel there are, the fewer orders each delivery personnel needs to carry, the shorter the time it takes for the delivery personnel to return to the target store, and the easier it is to deliver the delivery orders to the target store; conversely, the fewer delivery personnel there are, the more orders each delivery personnel needs to carry, the longer the time it takes for the delivery personnel to return to the target store, and the easier it is to deliver the delivery orders to the target store.
[0060] Therefore, in some embodiments, the difficulty of delivering delivery orders to the target store can be measured based on three factors, namely, the number of delivery orders received, the amount of delivery orders, and the number of delivery personnel.
[0061] In some embodiments, for step 100, when determining the historical delivery difficulty parameter of the target store and the current delivery difficulty parameter of the target store based on the order data and delivery personnel data of the target store in the first time period and the second time period, respectively, it can be implemented by the following steps:
[0062] Step 1001: determine the historical delivery difficulty parameter of the target store in the first time period based on the number of delivery orders, the amount of delivery orders, and the number of delivery personnel of the target store's own delivery platform in the first time period for the first delivery orders generated by the target store in the first time period.
[0063] In one possible implementation, the product of the number of delivery orders and the amount of the delivery orders generated by the target store in the first time period can be determined as the first product, thereby determining the ratio of the first product to the number of delivery personnel on the target store's own delivery platform in the first time period as the historical delivery difficulty parameter of the target store in the first time period.
[0064] For example, the historical delivery difficulty parameter of the target store in the first time period can be determined by the following formula (1):
[0065]
[0066] Among them, diff last represents the historical delivery difficulty parameter of the target store in the first time period, n last represents the number of delivery orders for the first delivery order generated by the target store in the first time period, p last represents the delivery order amount of the first delivery order generated by the target store in the first time period, m last Indicates the number of delivery personnel on the target store’s own delivery platform during the first time period.
[0067] Step 1002: determine the current delivery difficulty parameter of the target store in the second time period based on the number of delivery orders, the amount of delivery orders, and the number of delivery personnel of the target store's own delivery platform in the second time period generated by the target store in the second time period.
[0068] In one possible implementation, the product of the number of delivery orders and the amount of the delivery orders generated by the target store in the second time period can be determined as the second product, thereby determining the ratio of the second product to the number of delivery personnel on the target store's own delivery platform in the second time period as the current delivery difficulty parameter of the target store in the second time period.
[0069] For example, the current delivery difficulty parameter of the target store in the second time period can be determined by the following formula (2):
[0070]
[0071] Among them, diff now represents the current delivery difficulty parameter of the target store in the second time period, n now represents the number of delivery orders for the second delivery order generated by the target store in the second time period, p now represents the delivery order amount of the second delivery order generated by the target store in the second time period, m now Indicates the number of delivery personnel on the target store’s own delivery platform during the second time period.
[0072] After the delivery difficulty parameters of the target stores in different time periods are determined through the above-mentioned embodiments, the estimated delivery time can be determined based on the determined delivery difficulty parameters.
[0073] It should be noted that the estimated delivery time of the target store is proportional to the delivery difficulty parameter. For the first time period, the first estimated delivery time of the target store in the first time period is proportional to the historical delivery difficulty parameter, that is, t last ∝diff last , where t last Indicates the first estimated delivery time, diff last represents the historical delivery difficulty parameter; for the second time period, the second estimated delivery time of the target store in the second time period is proportional to the current delivery difficulty parameter, that is, t now ∝diff now , where t now Indicates the second estimated delivery time, diff now Indicates the current delivery difficulty parameter.
[0074] Optionally, the first estimated delivery time of the target store in the first time period is proportional to the historical delivery difficulty parameter, which can be t last = k·diff last , the second estimated delivery time of the target store in the second time period is proportional to the current delivery difficulty parameter, which can be t now = k·diff now , where k represents the linear coefficient of the delivery difficulty parameter and the estimated delivery time.
[0075] Therefore, in some embodiments, for step 101, when determining the second estimated delivery time of the target store in the second time period based on the historical delivery difficulty parameter of the target store in the first time period, the current delivery difficulty parameter of the target store in the second time period, and the first estimated delivery time of the target store in the first time period, it can be achieved in the following manner:
[0076] Based on the ratio of the current delivery difficulty parameter and the historical delivery difficulty parameter, a delivery difficulty change parameter is determined; based on the delivery difficulty change parameter and the first estimated delivery time, a second estimated delivery time is determined.
[0077] For example, the second estimated delivery time may be determined by the following formula (3):
[0078]
[0079] Among them, t last Indicates the first estimated delivery time, diff last represents the historical delivery difficulty parameter, t now Indicates the second estimated delivery time, diff now Indicates the current delivery difficulty parameter.
[0080] After the second estimated delivery time of the target store in the second time period is determined through the above embodiment, it can be determined whether there is an overflow of delivery orders based on the second estimated delivery time.
[0081] Optionally, if the second estimated delivery time is less than the first time threshold, it can be determined that the second delivery order does not need to overflow, but can be directly delivered by the own delivery platform; if the second estimated delivery time is greater than or equal to the first time threshold, it indicates that there is a high probability that the second delivery order needs to overflow to a third-party delivery platform for delivery.
[0082] For ease of understanding, several examples are used below to introduce the process of calculating the second estimated delivery time and determining whether there is an overflow of delivery orders based on the second estimated delivery time.
[0083] For example, see Table 1 below, which introduces the relevant delivery data of the target stores.
[0084] Table 1
[0085] First time period Second time period Delivery Order Quantity 6 7 Delivery order amount (yuan) 768 812 Number of delivery personnel 2 2 Delivery Difficulty Parameters 2304 2842 Estimated delivery time (minutes) 48 59.21
[0086] As shown in Table 1 above, the number of delivery orders of the target store in the first time period is n last =6, the delivery order amount is p last =768 yuan, the number of delivery personnel is m last =2, then the delivery difficulty parameter of the target store in the first time period can be determined as:
[0087]
[0088] If 1 new delivery order is added, the number of delivery orders in the second time period is n now =7, the delivery order amount is p now= 812 yuan, the number of delivery personnel is m now =2, then the delivery difficulty parameter of the target store in the second time period can be determined as:
[0089]
[0090] Therefore, based on the two calculated delivery difficulty parameters, the estimated delivery time t at the target store at the current moment can be estimated. now :
[0091]
[0092] That is to say, if one new delivery order is added, the second estimated delivery time at the target store at the current moment is 59.21 minutes.
[0093] If the first duration threshold is t thl =60,t now <t thl , then the target store’s delivery orders do not need to overflow, but can all be delivered by the target store’s own delivery platform.
[0094] For another example, see Table 2 below, which introduces the relevant delivery data of the target store.
[0095] Table 2
[0096] First time period Second time period Delivery Order Quantity 6 8 Delivery order amount (yuan) 768 834 Number of delivery personnel 2 2 Delivery Difficulty Parameters 2304 3336 Estimated delivery time (minutes) 48 69.5
[0097] As shown in Table 2 above, the number of delivery orders of the target store in the first time period is n last =6, the delivery order amount is p last =768 yuan, the number of delivery personnel is m last =2, then the delivery difficulty parameter of the target store in the first time period can be determined as:
[0098]
[0099] If two new delivery orders are added, the number of delivery orders in the second time period is n now =8, the delivery order amount is p now = 834 yuan, the number of delivery personnel is m now =2, then the delivery difficulty parameter of the target store in the second time period can be determined as:
[0100]
[0101] Therefore, based on the two calculated delivery difficulty parameters, the estimated delivery time t at the target store at the current moment can be estimated. now :
[0102]
[0103] That is to say, if 2 new delivery orders are added, the second estimated delivery time at the target store at the current moment is 69.5 minutes.
[0104] If the first duration threshold is t thl =60,t now >t thl , then the delivery orders of the target store need to overflow to the third-party delivery platform for delivery.
[0105] For another example, see Table 3 below, which introduces the relevant delivery data of the target store.
[0106] Table 3
[0107] First time period Second time period Delivery Order Quantity 6 9 Delivery order amount (yuan) 768 1000 Number of delivery personnel 2 2 Delivery Difficulty Parameters 2304 4500 Estimated delivery time (minutes) 48 93.75
[0108] As shown in Table 3 above, the number of delivery orders of the target store in the first time period is n last =6, the delivery order amount is p last =768 yuan, the number of delivery personnel is m last =2, then the delivery difficulty parameter of the target store in the first time period can be determined as:
[0109]
[0110] If 3 new delivery orders are added, the number of delivery orders in the second time period is n now =9, the delivery order amount is p now = 1000 yuan, the number of delivery personnel is m now =2, then the delivery difficulty parameter of the target store in the second time period can be determined as:
[0111]
[0112] Therefore, based on the two calculated delivery difficulty parameters, the estimated delivery time t at the target store at the current moment can be estimated. now :
[0113]
[0114] That is to say, if 3 new delivery orders are added, the second estimated delivery time at the target store at the current moment is 93.75 minutes.
[0115] If the first duration threshold is t thl =60,t now >t thl , then the delivery orders of the target store need to overflow to the third-party delivery platform for delivery.
[0116] In some embodiments, the multiple candidate delivery platforms include at least one third-party delivery platform and the target store's own delivery platform. Based on this, for step 102, when determining the target delivery platform for delivering each newly added delivery order from the multiple candidate delivery platforms based on the second estimated delivery time and the preset first time threshold, there are two implementation methods:
[0117] In one possible implementation, in response to the second estimated delivery time being less than the first time threshold, the target store's own delivery platform is determined as the target delivery platform for delivering each newly added delivery order.
[0118] That is, when the second estimated delivery time does not exceed the first time threshold, the target store's own delivery platform can deliver the new delivery orders generated in the second time period compared to the first time period.
[0119] In another possible implementation, in response to the second estimated delivery time being greater than or equal to the first time threshold, based on the order data and delivery data of the target store in the first time period, the order data of the target store in the second time period and the first time threshold, a target delivery platform for delivering each new delivery order is determined from at least one third-party delivery platform and the target store's own delivery platform.
[0120] That is, when the second estimated delivery time reaches the first time threshold, it is necessary to further determine which new delivery orders need to be overflowed to the third-party delivery platform for delivery.
[0121] Optionally, the delivery data of the target store in the first time period includes at least a first estimated delivery time of the target store in the first time period and a first order allocation result of the first delivery order generated by the target store in the first time period, and the first order allocation result is used to indicate the delivery order of each first delivery order; the order data of the target store in the first time period includes at least a delivery address of the first delivery order generated by the target store in the first time period, and the order data of the target store in the second time period includes at least a plurality of delivery addresses of newly added delivery orders.
[0122] Therefore, in some embodiments, when determining a target delivery platform for delivering each newly added delivery order from at least one third-party delivery platform and the target store's own delivery platform based on the target store's order data and delivery data in the first time period, the target store's order data in the second time period, and the first time threshold, the following steps can be used:
[0123] Step S1. For any newly added delivery order among multiple newly added delivery orders, a first increased delivery time is determined based on the delivery address of the first delivery order and the first order allocation result, as well as the delivery address of the newly added delivery order. The first increased delivery time is used to indicate the increase in the total delivery time when the newly added delivery order is delivered by the target store's own delivery platform.
[0124] In one possible implementation, a first target delivery order whose delivery address is the shortest distance between the delivery address of the newly added delivery order can be determined from the first delivery orders generated within the first time period; based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, the delivery address of the second reference delivery order and the delivery address of the newly added delivery order, a first increased delivery time is determined, the first reference delivery order being the first delivery order whose delivery order in the first order allocation result is before the first target delivery order, and the second reference delivery order being the first delivery order whose delivery order in the first order allocation result is after the first target delivery order.
[0125] Optionally, the distance between the delivery address of each first delivery order and the delivery address of the newly added delivery order that is currently undergoing overflow judgment can be determined based on the delivery address of each first delivery order and the delivery address of the newly added delivery order that is currently undergoing overflow judgment, thereby determining the first delivery order whose delivery address is closest to the delivery address of the newly added delivery order that is currently undergoing overflow judgment from among multiple first delivery orders as the first target delivery order.
[0126] Further, after the first target delivery order is determined, a first reference delivery order and a second reference delivery order corresponding to the first target delivery order may be determined based on the first order allocation result.
[0127] It should be noted that the first order allocation result may be a delivery order of the first delivery orders generated after simulated delivery based on the first delivery orders generated within the first time period. The delivery is performed in the delivery order indicated by the first order allocation result, and each first delivery order can be delivered to the user as soon as possible.
[0128] Optionally, the first delivery order whose delivery order in the first order allocation result is before the first target delivery order can be determined as the first reference delivery order, and the first delivery order whose delivery order in the first order allocation result is after the first target delivery order can be determined as the second reference delivery order.
[0129] For example, the first order allocation result is "delivery staff 1 → return to target store → pick up delivery order 1 and delivery order 2 → deliver delivery order 1 → deliver delivery order 2 → return to target store → pick up delivery order 3, delivery order 4 and delivery order 5 → deliver delivery order 3 → deliver delivery order 5 → deliver delivery order 4 → return to target store, delivery staff 1 → return to target store → pick up delivery order 6 → deliver delivery order 6 → return to target store → pick up delivery order 7, delivery order 8 and delivery order 9 → deliver delivery order 8 → deliver delivery order 7 → deliver delivery order 9 → return to target store", if the first target delivery order is delivery order 5, then the first reference delivery order is delivery order 3, and the second reference delivery order is delivery order 4.
[0130] It should be noted that if the first target delivery order is the first delivery order that the delivery personnel has just left the target store to deliver, there is no need to determine the first reference delivery order, but the address of the target store is directly used as the delivery address of the previous delivery order delivered by the delivery personnel, that is, the address of the target store is used as the delivery address of the first reference delivery order; in addition, if the first target delivery order is the last delivery order delivered by the delivery personnel, that is, the delivery personnel will return to the target store after delivering the first target delivery order, there is no need to determine the second reference delivery order, but the address of the target store is directly used as the delivery address of the next delivery order delivered by the delivery personnel, that is, the address of the target store is used as the delivery address of the second reference delivery order.
[0131] Since the delivery address of the first target delivery order is the shortest distance away from the delivery address of the newly added delivery order, if you want to minimize the increase in the total delivery time when delivering the newly added delivery order, you need to deliver the newly added delivery order before or after the delivery of the first target delivery order, that is, deliver the new delivery order after delivering the first reference delivery order, and then deliver the first target delivery order, or deliver the new delivery order after delivering the first target delivery order, and then deliver the second reference delivery order.
[0132] Therefore, when determining the first increased delivery time based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, the delivery address of the second reference delivery order, and the delivery address of the newly added delivery order, it can be achieved in the following manner:
[0133] Based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order and the delivery address of the newly added delivery order, a first alternative increased delivery time is determined; based on the delivery address of the first target delivery order, the delivery address of the second reference delivery order and the delivery address of the newly added delivery order, a second alternative increased delivery time is determined; the smaller value of the first alternative increased delivery time and the second alternative increased delivery time is determined as the first increased delivery time.
[0134] It should be noted that, since the means of transportation used by the delivery personnel is relatively fixed, the driving speed of the delivery personnel is also relatively fixed. The increase in the delivery time can be achieved by determining the average driving speed based on the driving speeds of multiple delivery personnel.
[0135] Optionally, when determining the first alternative increased delivery time based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order and the delivery address of the newly added delivery order, a first distance between the delivery address of the first reference delivery order and the delivery address of the newly added delivery order can be determined, thereby determining a first time required from the delivery address of the first reference delivery order to the delivery address of the newly added delivery order based on the first distance and the average driving speed; determining a second distance between the delivery address of the newly added delivery order and the delivery address of the first target delivery order, thereby determining a first time required from the delivery address of the first reference delivery order to the delivery address of the newly added delivery order based on the first distance and the average driving speed; and determining a second distance between the delivery address of the newly added delivery order and the delivery address of the first target delivery order. Based on the second distance and the average driving speed, the second duration required to deliver from the delivery address of the newly added delivery order to the delivery address of the first target delivery order is determined; the third distance between the delivery address of the first reference delivery order and the delivery address of the first target delivery order is determined, and thus based on the third distance and the average driving speed, the third duration required to deliver from the delivery address of the first reference delivery order to the delivery address of the first target delivery order is determined; the sum of the first duration and the second duration is determined, and the difference between the sum and the third duration is determined as the first alternative increased delivery time.
[0136] For example, the first alternative to increase the delivery time can be determined by the following formula (4):
[0137] Δt1=t move (pos j-1 ,pos new )+t move (pos new ,pos j )-t move (pos j-1 ,pos j ) (4)
[0138] Among them, Δt1 represents the first alternative to increase the delivery time, pos j-1 Indicates the first reference delivery order, pos j Indicates the first target delivery order, pos new Indicates the newly added delivery order that is currently undergoing overflow judgment, t move (pos j-1 ,pos new ) represents the first duration, that is, the duration from the delivery address of the first reference delivery order to the delivery address of the newly added delivery order, t move (pos new ,posj ) represents the second duration, that is, the duration from the delivery address of the newly added delivery order to the delivery address of the first target delivery order, t move (pos j-1 ,pos j ) represents the third duration, which is the duration required from the delivery address of the first reference delivery order to the delivery address of the first target delivery order.
[0139] Optionally, when determining the second alternative increased delivery time based on the delivery address of the first target delivery order, the delivery address of the second reference delivery order and the delivery address of the newly added delivery order, a fourth distance between the delivery address of the first target delivery order and the delivery address of the newly added delivery order can be determined, thereby determining a fourth time required from the delivery address of the first target delivery order to the delivery address of the newly added delivery order based on the fourth distance and the average driving speed; determining a fifth distance between the delivery address of the newly added delivery order and the delivery address of the second reference delivery order, from Based on the fifth distance and the average driving speed, the fifth duration required to get from the delivery address of the newly added delivery order to the delivery address of the second reference delivery order is determined; the sixth distance between the delivery address of the first target delivery order and the delivery address of the second reference delivery order is determined, and thus based on the sixth distance and the average driving speed, the sixth duration required to get from the delivery address of the first target delivery order to the delivery address of the second reference delivery order is determined; the sum of the fourth duration and the fifth duration is determined, and the difference between the sum and the sixth duration is determined as the second alternative increased delivery time.
[0140] For example, the second alternative to increase the delivery time can be determined by the following formula (5):
[0141] Δt2=t move (pos j ,pos new )+t move (pos new ,pos j+1 )-t move (pos j ,pos j+1 ) (5)
[0142] Among them, Δt2 represents the second alternative to increase the delivery time, pos j Indicates the first target delivery order, pos j+1 Indicates the second reference delivery order, pos new Indicates the newly added delivery orders currently being processed, t move (pos j ,pos new) represents the fourth duration, which is the duration from the delivery address of the first target delivery order to the delivery address of the newly added delivery order, t move (pos new ,pos j+1 ) represents the fifth duration, which is the duration from the delivery address of the newly added delivery order to the delivery address of the second reference delivery order, t move (pos j ,pos j+1 ) represents the sixth duration, which is the duration required from the delivery address of the first target delivery order to the delivery address of the second reference delivery order.
[0143] After determining the first alternative additional delivery time and the second alternative additional delivery time, the smaller value of the first alternative additional delivery time and the second alternative additional delivery time can be determined as the first additional delivery time. That is, the determination of the first additional delivery time can be achieved by the following formula (6):
[0144] Δt=min{Δt1,Δt2} (6)
[0145] Among them, Δt represents the first increased delivery time, Δt1 represents the first alternative increased delivery time, and Δt2 represents the second alternative increased delivery time.
[0146] Step S2: based on the first estimated delivery time, the first increased delivery time corresponding to each newly added delivery order and the first time threshold, determine the target delivery platform for each newly added delivery order from the third-party delivery platform and the target store's own delivery platform.
[0147] In one possible implementation, for a new delivery order corresponding to a sum of a first increased delivery time and a first estimated delivery time greater than or equal to a first time threshold, a third-party delivery platform may be determined as a target delivery platform for the new delivery order.
[0148] In another possible implementation, for new delivery orders corresponding to the sum of the first increased delivery time and the first estimated delivery time which is less than the first time threshold, the target delivery platform for each new delivery order can be determined from the third-party delivery platform and the target store's own delivery platform based on the order overflow parameter of the new delivery order, the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of multiple new delivery orders, the second order allocation result and the second time threshold, the order overflow parameter is used to indicate the difficulty of delivering the new delivery order through the target store's own delivery platform, the third estimated delivery time is the delivery time required for delivering each first delivery order and the new delivery orders that have been allocated to the own delivery platform for delivery, and the second order allocation result is the delivery order of each first delivery order and the new delivery orders that have been allocated to the own delivery platform for delivery.
[0149] That is, for new delivery orders whose corresponding sum of the first increased delivery time and the first estimated delivery time is greater than or equal to the first time threshold, they can be directly overflowed to the third-party delivery platform for delivery; for new delivery orders whose corresponding sum of the first increased delivery time and the first estimated delivery time is less than the first time threshold, they can be further judged to determine whether they need to be overflowed to the third-party delivery platform for delivery.
[0150] Taking the situation shown in Table 2 above as an example, it can be determined through the above embodiment that if two new delivery orders are added (recorded as new delivery order 1 (new-order1) and new delivery order 2 (new-order2)), the current second estimated delivery time of the target store is greater than the first time threshold t thl =60, the delivery orders of the target stores need to overflow to the third-party delivery platform for delivery.
[0151] Assume that the delivery routes of two delivery personnel are as follows:
[0152] Delivery Personnel 1: Deliver delivery order 1 → Deliver delivery order 2 → Return to the target store → Pick up delivery order 3 and delivery order 4 → Deliver delivery order 3 → Deliver delivery order 4;
[0153] Delivery Personnel 2: Return to the target store → Pick up delivery order 5 and delivery order 6 → Deliver delivery order 5 → Deliver delivery order 6;
[0154] The delivery routes of delivery personnel 1 and delivery personnel 2 can be found in Figure 2 , Figure 2 is a schematic diagram of a delivery route shown in the present application according to an exemplary embodiment, such as Figure 2 As shown, the delivery route of delivery person 1 can be as follows Figure 2 As shown in the implementation in , the delivery route of delivery person 2 can be as follows Figure 2 In addition, the delivery addresses of the newly added delivery order 1 and the newly added delivery order 2 can also be found in Figure 2 .
[0155] After calculation, it can be determined that the existing delivery orders closest to the newly added delivery order 1 and the newly added delivery order 2 are both delivery order 5 (i.e., order 5). For the newly added delivery order 1, if the increase in the total delivery time when delivering the newly added delivery order 1 is to be minimized, the newly added delivery order 1 needs to be delivered before or after the delivery of delivery order 5. That is, the optional delivery routes can be as follows: Figure 3 The two cases shown (denoted as case 1 and case 2) are shown in Figure 3 , Figure 3 is a schematic diagram of an optional delivery route according to an exemplary embodiment of the present application. Figure 3 As shown, the optional delivery routes are:
[0156] Case 1: Delivery person 2 → returns to the target store → picks up delivery order 5, delivery order 6 and newly added delivery order 1 → delivers delivery order 5 → delivers newly added delivery order 1 → delivers delivery order 6;
[0157] Case 2: Delivery person 2 → returns to the target store → picks up delivery order 5, delivery order 6 and newly added delivery order 1 → delivers newly added delivery order 1 → delivers delivery order 5 → delivers delivery order 6;
[0158] Among them, for case 1, because of the additional delivery order 1, the total delivery time will increase by Δt case1 :
[0159] Δt case1 =t move (poos5, newpos1)+t move (newpos1,pos6)-t move (pos5,pos6)=6min;
[0160] Among them, t move (pos5, newpos1) represents the time required from the delivery address of delivery order 5 to the delivery address of the newly added delivery order 1, t move (newpos1, pos6) represents the time required from the delivery address of the newly added delivery order 1 to the delivery address of the delivery order 6, t move (pos5, pos6) represents the time required to reach the delivery address of delivery order 6 from the delivery address of delivery order 5.
[0161] For case 2, because of the addition of 1 delivery order, the total delivery time will increase by Δt. case2:
[0162] Δt case2 =t move (shop,newpos1)+t move (newpos1,pos5)-t move (shop,pos5)=5min;
[0163] Among them, t move (shop, newpos1) represents the time required to reach the delivery address of the newly added delivery order 1 from the target store, t move (newpos1, pos5) represents the time required from the delivery address of the newly added delivery order 1 to the delivery address of the delivery order 5, t move (shop,pos5) represents the time required to reach the delivery address of delivery order 5 from the target store.
[0164] It can be seen that the minimum increase in delivery time (i.e. the first increase in delivery time) Δt min for:
[0165] Δt min =min{Δt case1 , Δt case2}=5min;
[0166] That is, if the delivery adds a new delivery order 1, the total delivery time needs to increase by at least 5 minutes, and the first estimated delivery time t last and the minimum increase in delivery time Δt min The sum is 53 minutes, which is less than the first duration threshold of 60 minutes. Therefore, Δt is added to the first estimated delivery duration. min The first time threshold is not exceeded, so the new delivery order 1 does not need to overflow, but can be delivered by the target store's own delivery platform.
[0167] For the newly added delivery order 2, if the total delivery time is to be increased less when delivering the newly added delivery order 2, the newly added delivery order 2 needs to be delivered before or after the delivery of the delivery order 5. That is, the optional delivery routes may be as follows: Figure 4 The two cases shown (denoted as case 3 and case 4) are shown in Figure 4 , Figure 4 is a schematic diagram of an optional delivery route according to an exemplary embodiment of the present application. Figure 4 As shown, the optional delivery routes are:
[0168] Case 3: Delivery person 2 → returns to the target store → picks up delivery order 5, delivery order 6 and newly added delivery order 2 → delivers delivery order 5 → delivers newly added delivery order 2 → delivers delivery order 6;
[0169] Case 4: Delivery person 2 → returns to the target store → picks up delivery order 5, delivery order 6 and newly added delivery order 2 → delivers newly added delivery order 2 → delivers delivery order 5 → delivers delivery order 6;
[0170] Among them, for case 3, because of the additional delivery order 2, the total delivery time will increase by Δt case3 :
[0171] Δt case3 =t move (pos5, newpos2)+t move (newpos2,pos6)-t move (pos5,pos6)=18min;
[0172] Among them, t move (pos5, newpos2) represents the time required from the delivery address of delivery order 5 to the delivery address of the newly added delivery order 2, t move (newpos2, pos6) represents the time required from the delivery address of the newly added delivery order 2 to the delivery address of the delivery order 6, t move (pos5, pos6) represents the time required to reach the delivery address of delivery order 6 from the delivery address of delivery order 5.
[0173] For case 4, because of the addition of 2 delivery orders, the total delivery time will increase by Δt. case4 :
[0174] Δt case4 =t move (shop,newpos2)+t move (newpos2,pos5)-t move (shop, pos5) = 15min;
[0175] Among them, t move (shop, newpos1) represents the time required to reach the delivery address of the newly added delivery order 1 from the target store, t move (newpos1, pos5) represents the time required from the delivery address of the newly added delivery order 1 to the delivery address of the delivery order 5, t move (shop, pos5) represents the time required to reach the delivery address of delivery order 5 from the target store.
[0176] It can be seen that the minimum increase in delivery time (i.e. the first increase in delivery time) Δt min for:
[0177] Δtmin =min{Δt case3 , Δt case4}=15min;
[0178] That is, if the delivery adds a delivery order 2, the total delivery time needs to be increased by at least 15 minutes, and the first estimated delivery time t last and the minimum increase in delivery time Δt min The sum is 63 minutes, which is greater than the first duration threshold of 60 minutes. Therefore, Δt is added to the first estimated delivery duration. min The first time threshold will be exceeded, so the newly added delivery order 2 needs to overflow to the third-party delivery platform for delivery.
[0179] Among them, for the new delivery orders corresponding to the sum of the first increased delivery time and the first estimated delivery time which is less than the first time threshold, the order overflow parameters of the new delivery orders can be determined, so as to determine the target delivery platform for each new delivery order from the third-party delivery platform and the target store's own delivery platform based on the order overflow parameters of the second delivery order, the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of the second delivery order, the second order allocation result and the second time threshold.
[0180] Optionally, when determining the order overflow parameter of the newly added delivery order, the following steps may be performed:
[0181] Step S2A: Determine a delivery urgency parameter for the second delivery order based on the order data of the newly added delivery order and the historical order data of the target store, where the delivery urgency parameter is used to indicate the delivery urgency of the newly added delivery order.
[0182] It should be noted that, for a newly added delivery order, the higher the amount of the delivery order, the longer the preparation time required for the delivery order, the shorter the time available for delivery, and the higher the degree of urgency; conversely, the lower the amount of the delivery order, the shorter the preparation time required for the delivery order, the longer the time available for delivery, and the lower the degree of urgency.
[0183] In addition, the delivery address of the delivery order will also affect the urgency of the delivery order. The farther the delivery address of the delivery order is from the target store, the longer the delivery time required and the higher the urgency; the closer the delivery address of the delivery order is to the target store, the shorter the delivery time required and the lower the urgency.
[0184] Therefore, the urgency of the delivery order can be determined based on the order amount and the delivery address of the delivery order.
[0185] Optionally, the order data may include the order amount and delivery address of the delivery order, but is not limited thereto; the historical order data may include the average amount and average delivery distance of the delivery order, but is not limited thereto.
[0186] Therefore, when determining the delivery urgency parameter of the newly added delivery order based on the order data of the newly added delivery order and the historical order data of the target store, it can be achieved in the following ways:
[0187] The delivery distance of the new delivery order is determined based on the delivery address of the new delivery order and the address of the target store. The delivery urgency parameters of the new delivery order are determined based on the order amount and delivery distance of the new delivery order and the average amount and average delivery distance of the delivery orders of the target store.
[0188] Optionally, the ratio of the order amount of the newly added delivery order to the average amount of the delivery orders of the target store can be determined as the first ratio; the ratio of the delivery distance of the newly added delivery order to the average delivery distance of the target store can be determined as the second ratio; the product of the first ratio and the second ratio can be determined as the delivery urgency parameter of the second delivery order.
[0189] For example, the delivery urgency parameter of the newly added delivery order can be determined according to the following formula (7):
[0190]
[0191] Among them, urgency new Indicates the delivery urgency parameter, price new Indicates the order amount of the newly added delivery order, price mean represents the average amount of delivery orders from the target store, dis new Indicates the delivery distance of the newly added delivery order, mean Represents the average delivery distance to the target stores.
[0192] That is, relative to the historical average, the higher the order amount of the new delivery order and the farther the delivery address is from the target store, the greater the urgency score (that is, the delivery urgency parameter); the lower the order amount of the new delivery order and the closer the delivery address is to the target store, the smaller the urgency score (that is, the delivery urgency parameter).
[0193] Step S2B: based on the order data of the newly added delivery order and the order data of the first delivery order, determine a current order consolidation possibility parameter of the newly added delivery order, where the current order consolidation possibility parameter is used to indicate the possibility of consolidating the newly added delivery order with the first delivery order for delivery.
[0194] It should be noted that, for a newly added delivery order, if the distance between the newly added delivery order and the delivery address of a first delivery order that has been received is closer, the possibility that the newly added delivery order will be delivered together with the first delivery order that has been received is higher, and the possibility of combining the orders is higher. If one more such order is delivered, the delivery distance increased for the entire delivery system is smaller. If the distance between the newly added delivery order and the delivery address of a first delivery order that has been received is farther, the possibility that the newly added delivery order will be delivered together with the first delivery order that has been received is lower, and the possibility of combining the orders is higher. If one more such order is delivered, the delivery distance increased for the entire delivery system is larger.
[0195] Therefore, the possibility of merging the newly added delivery order can be determined based on the distance between the delivery address of the newly added delivery order and the delivery address of the first delivery order.
[0196] Optionally, the order data may include, but is not limited to, a delivery address for a delivery order.
[0197] Therefore, when determining the current order consolidation possibility parameter of the newly added delivery order based on the order data of the newly added delivery order and the order data of the first delivery order, it can be achieved in the following manner:
[0198] Determine the delivery address distance between the delivery address of the newly added delivery order and the delivery address of each first delivery order; determine the shortest delivery address distance among multiple delivery address distances; based on the shortest delivery address distance, determine the current order consolidation possibility parameter.
[0199] For example, the current merge possibility parameter can be determined according to the following formula (8):
[0200]
[0201] Among them, merge now Indicates the current merge possibility parameter, dis min Indicates the shortest delivery address distance.
[0202] It should be noted that dis min = min{dis(order new , order j ), j = 1, 2, ..., n}, where order new Indicates the newly added delivery order that is currently undergoing overflow judgment, order j represents the jth first delivery order, dis(order new , order j ) represents the delivery address distance between the delivery address of the newly added delivery order currently undergoing overflow judgment and the delivery address of the j-th first delivery order.
[0203] Step S2C: based on the order data of the newly added delivery order and the historical order data of the target store, determine a future order consolidation possibility parameter of the newly added delivery order, where the future order consolidation possibility parameter is used to indicate the possibility of consolidating the newly added delivery order with delivery orders that may be generated in the future.
[0204] It should be noted that, for any new delivery order, even if the possibility of it being combined with the currently received delivery order is low (that is, its delivery address is far away from the delivery addresses of all the currently received delivery orders), it cannot be concluded that this new delivery order must overflow, because if some delivery orders appear around this new delivery order in the future, this new delivery order can be delivered together with these new orders, so that the delivery distance increased by the entire delivery system is relatively small.
[0205] Optionally, the order data may include, but is not limited to, the delivery address of a delivery order; the historical order data may include, but is not limited to, the delivery address of a historical order.
[0206] Therefore, when determining the future order consolidation possibility parameters of the newly added delivery orders based on the order data of the newly added delivery orders and the historical order data of the target stores, it can be achieved in the following ways:
[0207] Based on the delivery address of the newly added delivery order, the first distribution area and the second distribution area are determined, the first distribution area being the area centered on the delivery address of the new delivery order, and the second distribution area being the area determined based on the delivery address of the new delivery order and the delivery address of the target store; based on the delivery address of the new delivery order, the regional average order number for the delivery address within the first distribution area and the regional average order number for the delivery address within the second distribution area are determined; based on the regional average order number for the delivery address within the first distribution area, the regional average order number for the delivery address within the second distribution area and the regional historical average order number of the target store, the possibility parameters for future order consolidation are determined.
[0208] Optionally, when determining the first delivery area and the second delivery area based on the delivery address of the newly added delivery order, the delivery delivery range of the target store can be gridded to obtain the grid where the delivery address of the newly added delivery order is located and the grid where the address of the target store is located, thereby realizing the determination of the first delivery area and the second delivery area based on the grid where the delivery address of the newly added delivery order is located and the grid where the address of the target store is located.
[0209] Optionally, the grid where the delivery address of the newly added delivery order is located can be taken as the center, and the area formed by the grids within a preset range nearby can be used as the first delivery area. For example, the grid where the delivery address of the newly added delivery order is located can be taken as the center, and the first delivery area can be formed by m grids extending up, down, left, and right respectively.
[0210] Optionally, a line connecting the grid where the target store's address is located and the grid where the delivery address of the newly added delivery order is located can be determined, and extended outward at preset angles on both sides to form an open fan-shaped area; then a circle is drawn with the distance between the target store's address and the delivery address of the newly added delivery order as the radius to form a closed fan-shaped area with the open fan-shaped area, and the closed fan-shaped area is the second delivery area that is on the way to deliver the newly added delivery order.
[0211] See also Figure 5 , Figure 5 is a schematic diagram of a first delivery area and a second delivery area according to an exemplary embodiment of the present application, such as Figure 5 As shown, the rectangular area centered on the delivery address of the newly added delivery order is the first delivery area, and the fan-shaped area with the address of the target store as the vertex and the delivery address of the newly added delivery order as the midpoint of the arc is the second delivery area.
[0212] After determining the first delivery area and the second delivery area, the possibility parameters of future order consolidation can be determined based on the regional average order quantity where the delivery address is located in the first delivery area, the regional average order quantity where the delivery address is located in the second delivery area, and the regional historical average order quantity of the target store.
[0213] It should be noted that the regional average order number for the delivery address located in the first distribution area is the ratio of the number of delivery orders where the delivery address is located in the first distribution area to the number of grids included in the first distribution area; the regional average order number for the delivery address located in the second distribution area is the ratio of the number of delivery orders where the delivery address is located in the second distribution area to the number of grids included in the second distribution area; the regional average order number of the target store is the historical average order number of each grid in the first and second distribution areas corresponding to the target store, that is, the average number of delivery orders in the history of each grid, such as the ratio of the historical order number of the delivery address located in the first and second distribution areas to the number of grids included in the first and second distribution areas.
[0214] Optionally, the total regional average order quantity based on the regional average order quantity of the delivery address within the first delivery area and the regional average order quantity of the delivery address within the second delivery area can be determined, thereby determining the ratio of the total regional average order quantity and the regional historical average order quantity of the target store as a parameter for the possibility of future order consolidation.
[0215] For example, the following formula (9) can be used to determine the future merge possibility parameter:
[0216]
[0217] Among them, merge future represents the future and single possibility parameter, The regional average order quantity represents the sum of the regional average order quantity for the delivery address in the first delivery area and the regional average order quantity for the delivery address in the second delivery area. Indicates the target store's regional historical average order quantity.
[0218] Step S2D: determining an order overflow parameter based on the delivery urgency parameter, the current order consolidation possibility parameter, and the future order consolidation possibility parameter.
[0219] It should be noted that, the larger the delivery urgency parameter of the newly added delivery order is, the higher the delivery urgency of the newly added delivery order is, and the greater the delivery difficulty of the newly added delivery order is; the smaller the current consolidation possibility parameter of the newly added delivery order is, the lower the possibility of the current consolidation of the newly added delivery order is, and the lower the possibility of the newly added delivery order being delivered together with other delivery orders is; the smaller the future consolidation possibility parameter of the newly added delivery order is, the lower the possibility of future consolidation of the new delivery order is, and the lower the possibility of the new delivery order being delivered together with delivery orders generated in the future is.
[0220] Correspondingly, the smaller the delivery urgency parameter of the newly added delivery order, the lower the delivery urgency of the newly added delivery order, and the easier it is to deliver the new delivery order; the larger the current consolidation possibility parameter of the newly added delivery order, the higher the possibility of the current consolidation of the newly added delivery order, and the higher the possibility that the new delivery order will be delivered together with other delivery orders; the larger the future consolidation possibility parameter of the newly added delivery order, the higher the possibility of the future consolidation of the new delivery order, and the higher the possibility that the new delivery order will be delivered together with delivery orders generated in the future.
[0221] Therefore, when determining the order overflow parameter based on the delivery urgency parameter, the current order consolidation possibility parameter and the future order consolidation possibility parameter, the product of the current order consolidation possibility parameter and the future order consolidation possibility parameter can be determined, thereby determining the ratio of the delivery urgency parameter to the product as the order overflow parameter.
[0222] For example, the order overflow parameter can be determined according to the following formula (10):
[0223]
[0224] Among them, score represents the order overflow parameter, urgency new Indicates the delivery urgency parameter, merge now Indicates the current merge possibility parameter, merge future Represents a future and single possibility parameter.
[0225] It should be noted that the new delivery orders with larger order overflow parameters are overflowed to the third-party delivery platform for delivery, while the new delivery orders with smaller order overflow parameters are delivered by the target store's own delivery platform. This can improve the delivery efficiency of the delivery personnel of the own delivery platform, allowing the delivery personnel of the own delivery platform to deliver more delivery orders in the same time.
[0226] Therefore, when determining the target delivery platform for each new delivery order from the third-party delivery platform and the target store's own delivery platform based on the order overflow parameter of the second delivery order, the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of multiple new delivery orders, the second order allocation result, and the second time threshold, it can be achieved in the following way:
[0227] According to the parameter values of the order overflow parameters of multiple new delivery orders in ascending order, the target delivery platform for each new delivery order is determined from the third-party delivery platform and the target store's own delivery platform based on the three estimated delivery times, the order data of the first delivery order generated in the first time period, the order data of each new delivery order, the second order allocation result and the second time threshold.
[0228] For example, the target delivery platform for the new delivery order with the largest order overflow parameter can be determined based on the third estimated delivery time (which is also the first estimated delivery time at this time), the order data of the first delivery order generated in the first time period, the order data of the new delivery order, the second order allocation result (which is also the first order allocation result at this time), and the second time threshold. If the target delivery platform for the new delivery order with the largest order overflow parameter is a third-party delivery platform, there is no need to judge the subsequent new delivery orders with smaller order overflow parameters, but directly overflow the subsequent new delivery orders with smaller order overflow parameters to the third-party delivery platform for delivery. That’s it; if the target delivery platform of the new delivery order with the largest order overflow parameter is the self-owned delivery platform, the second order allocation result (at this time, the first order allocation result) can be updated based on the new delivery order allocated to the self-owned delivery platform, that is, the new delivery order allocated to the self-owned delivery platform is inserted into the second order allocation result (at this time, the first order allocation result) to obtain an updated second order allocation result, and then the new delivery order ranked second by the order overflow parameter is processed based on the updated second order allocation result to determine the target delivery platform of the new delivery order ranked second by the order overflow parameter. If the target delivery platform of the new delivery order ranked second in order overflow parameter is a third-party delivery platform, there is no need to judge the subsequent new delivery orders with smaller order overflow parameters, but the subsequent new delivery orders with smaller order overflow parameters can be directly overflowed to the third-party delivery platform for delivery; if the target delivery platform of the new delivery order ranked second in order overflow parameter is the self-owned delivery platform, the second order allocation result can be further updated based on the new delivery order allocated to the self-owned delivery platform, that is, the new delivery order allocated to the self-owned delivery platform can be inserted into the updated second order allocation result to obtain the updated second order allocation result again, and then the new delivery order ranked third in order overflow parameter can be continued to be processed based on the updated second order allocation result to determine the target delivery platform of the new delivery order ranked third in order overflow parameter, and so on, so as to realize the processing of all new delivery orders.
[0229] When processing any new delivery order, it can be achieved in the following ways:
[0230] Optionally, for any newly added delivery order, the second increased delivery time may be determined based on order data of a first delivery order generated within a first time period, order data of a second delivery order, and a second order allocation result.
[0231] In a possible implementation, the second target delivery order whose delivery address is the shortest distance from the delivery address of the newly added delivery order currently being processed can be determined from the first delivery order generated within the first time period and the newly added delivery order that has been assigned to the self-owned delivery platform for delivery; the second increased delivery time is determined based on the delivery address of the second target delivery order, the delivery address of the third reference delivery order, the delivery address of the fourth reference delivery order, and the delivery address of the newly added delivery order currently being processed, the third reference delivery order is the delivery order that is the previous one of the second target delivery order in the second order allocation result, and the fourth reference delivery order is the delivery order that is the next one of the second target delivery order in the second order allocation result. It should be noted that the third reference delivery order and the fourth delivery reference order may both be the first delivery order, or may be newly added delivery orders that have been assigned to the self-owned delivery platform for delivery.
[0232] Optionally, the distance between the delivery address of each first delivery order and the delivery address of the newly added delivery order that is currently undergoing overflow judgment, as well as the distance between the delivery address of each newly added delivery order that has been allocated to the own delivery platform for delivery and the delivery address of the newly added delivery order that is currently undergoing overflow judgment can be determined based on the delivery address of each first delivery order, the delivery address of each newly added delivery order that has been allocated to the own delivery platform for delivery and the delivery address of the newly added delivery order that is currently undergoing overflow judgment, thereby determining the delivery order whose delivery address is closest to the delivery address of the newly added delivery order that is currently undergoing overflow judgment from the first delivery orders generated in the first time period and the newly added delivery orders that have been allocated to the own delivery platform for delivery as the second target delivery order.
[0233] Further, after the second target delivery order is determined, a third reference delivery order and a fourth reference delivery order corresponding to the second target delivery order may be determined based on the second order allocation result.
[0234] It should be noted that the second order allocation result can be the delivery order of the delivery orders generated after the simulated delivery of the first delivery orders generated in the first time period and the newly added delivery orders that have been allocated to the self-owned delivery platform for delivery. The delivery is carried out in the delivery order indicated by the second order allocation result, and each delivery order can be delivered to the user as soon as possible. For the newly added delivery order with the largest order overflow parameter, the second order allocation result is also the first order allocation result; for the newly added delivery order with a non-largest order overflow parameter, the second order allocation result is also the order allocation result obtained by inserting the newly added delivery order that has been determined to be allocated to the self-owned delivery platform into the first order allocation result.
[0235] Optionally, the delivery order whose delivery order in the second order allocation result is before the second target delivery order can be determined as the third reference delivery order, and the delivery order whose delivery order in the second order allocation result is after the second target delivery order can be determined as the fourth reference delivery order.
[0236] It should be noted that if the second target delivery order is the first delivery order that the delivery personnel has just left the target store to deliver, there is no need to determine the third reference delivery order, but the address of the target store is directly used as the delivery address of the previous delivery order delivered by the delivery personnel, that is, the address of the target store is used as the delivery address of the third reference delivery order; in addition, if the second target delivery order is the last delivery order delivered by the delivery personnel, that is, the delivery personnel will return to the target store after delivering the second target delivery order, there is no need to determine the fourth reference delivery order, but the address of the target store is directly used as the delivery address of the next delivery order delivered by the delivery personnel, that is, the address of the target store is used as the delivery address of the fourth reference delivery order.
[0237] Since the delivery address of the second target delivery order is the shortest distance from the delivery address of the newly added delivery order currently being processed, if you want to minimize the increase in the total delivery time when delivering the newly added delivery order, you need to deliver the newly added delivery order before and after the delivery of the target delivery order, that is, deliver the new delivery order after delivering the third reference delivery order, and then deliver the second target delivery order, or, deliver the new delivery order after delivering the second target delivery order, and then deliver the fourth reference delivery order.
[0238] Therefore, when determining the second increased delivery time based on the delivery address of the second target delivery order, the delivery address of the third reference delivery order, the delivery address of the fourth reference delivery order, and the delivery address of the newly added delivery order, it can be achieved in the following manner:
[0239] Based on the delivery address of the second target delivery order, the delivery address of the third reference delivery order and the delivery address of the fourth reference delivery order, the third alternative increased delivery time is determined; based on the delivery address of the second target delivery order, the delivery address of the fourth reference delivery order and the delivery address of the newly added delivery order, the fifth alternative increased delivery time is determined; the smaller value of the third alternative increased delivery time and the fourth alternative increased delivery time is determined as the second increased delivery time.
[0240] It should be noted that the implementation method of the above embodiment can refer to the process of determining the first alternative to increase the delivery time, the second alternative to increase the delivery time and the first to increase the delivery time, which will not be repeated here.
[0241] After the second increased delivery time is determined, it can be determined whether there is an overflow of delivery orders based on the second increased delivery time and the third estimated delivery time.
[0242] It should be noted that, for the new delivery orders with the largest order overflow parameter, the third estimated delivery time is the first estimated delivery time; for the new delivery orders with not the largest order overflow parameter, the third estimated delivery time is the delivery time required for order delivery according to the second order allocation result obtained after inserting the new delivery orders that have been determined to be allocated to the own delivery platform into the first order allocation result.
[0243] In one possible implementation, if the sum of the third estimated delivery time and the second increased delivery time of the new delivery order is less than the second time threshold, the target store's own delivery platform is determined as the target delivery platform for the new delivery order, and the second order allocation result is updated based on the new delivery order, so as to continue to process the new delivery order with a larger order overflow parameter based on the updated second order allocation result.
[0244] It should be noted that the second duration threshold may be set according to business requirements, and the second duration threshold may be any value greater than the first duration threshold.
[0245] In another possible implementation, if the sum of the first estimated delivery time and the second increased delivery time of the new delivery order is greater than or equal to the second time threshold, the third-party delivery platform is determined as the target delivery platform for the new delivery orders and the new delivery orders with larger order overflow parameters.
[0246] It should be noted that the larger the order overflow parameter is, the more difficult it is to deliver the new delivery order. The orders are sorted in ascending order according to the order overflow parameter, and it is gradually determined whether the new delivery orders with smaller order overflow parameters need to be overflowed to the third-party delivery platform for delivery. If the second time threshold is exceeded after the delivery of a new delivery order, it means that the new delivery order needs to overflow, and the order overflow parameters of the remaining new delivery orders are larger. There is no need to try to insert the existing order allocation results. Instead, the remaining new delivery orders are directly overflowed to the third-party delivery platform for delivery, which can reduce the processing time and processing pressure of the computing equipment and improve the order allocation efficiency and order allocation speed.
[0247] In more possible implementations, for new delivery orders whose second estimated delivery time is greater than or equal to the first time threshold, their order overflow parameters can be directly calculated, thereby achieving order allocation based on the order overflow parameters.
[0248] See also Figure 6 , Figure 6is a flow chart of a delivery order scheduling process according to an exemplary embodiment of the present application. Figure 6 As shown, in the process of continuous generation of new delivery orders, it is possible to determine at regular intervals whether the multiple new delivery orders generated during the past period need to be overflowed to the third-party delivery platform for delivery. If not, the multiple new delivery orders generated during this period can be directly delivered by the store's own delivery platform; if necessary, overflow selection can be performed on all new delivery orders to determine the new delivery orders that need to be delivered by the free delivery platform and the new delivery orders that need to be delivered by the third-party delivery platform among all new delivery orders. The specific implementation method can refer to the above embodiment and will not be repeated here.
[0249] For ease of understanding, an example is used below to introduce the process of determining whether an order overflow occurs based on order overflow parameters.
[0250] For example, the number of the newly added second delivery order is n add =4, the relevant order data is shown in Table 4 below:
[0251] Table 4
[0252] The average amount of delivery orders is known to be price mean = 50 yuan, the average delivery distance of the target store is dis mean = 1 km, if the order amount of the newly added second delivery order order1 is price1 = 60 yuan, and the delivery distance of the second delivery order order1 is dis1 = 1.5 km, then the delivery urgency parameter of the second delivery order order1 is:
[0253]
[0254] Similarly, the order amount of the newly added delivery order order2 is price2 = 90 yuan, and the delivery distance of the newly added delivery order order2 is dis2 = 2km. Then the delivery urgency parameter of the newly added delivery order order2 is:
[0255]
[0256] Add a new delivery order, order3, with the order amount as price a = 80 yuan, the delivery distance of the newly added delivery order order3 is dis3 = 0.4km, then the delivery urgency parameter of the newly added delivery order order3 is:
[0257]
[0258] The order amount of the newly added delivery order order4 is price4 = 30 yuan, and the delivery distance of the newly added delivery order order4 is dis4 = 0.6km. The delivery urgency parameter of the newly added delivery order order4 is:
[0259]
[0260] It can be seen that the order amount of the newly added delivery order order4 is the smallest and the delivery distance is relatively short, so the time used to prepare the order and the time used for delivery are the shortest, and its urgency is the lowest; comparatively, the order amount of the newly added delivery order order2 is the largest and the delivery distance is the longest, so the time used to prepare the order and the time used for delivery are the longest, and its urgency is the highest.
[0261] In addition, it is known that the minimum distance between the newly added delivery order orderl and all received orders is dis min1 =1.4km, then the current order consolidation possibility parameter of the newly added delivery order order1 is:
[0262]
[0263] Similarly, it is known that the minimum distance between the newly added delivery order oTder2 and all received orders is dis min2 = 0.2km, then the current order consolidation possibility parameter of the newly added delivery order order2 is:
[0264]
[0265] It is known that the minimum distance between the newly added delivery order order3 and all received orders is dis min3 =1km, then the current order consolidation possibility parameters of the newly added delivery order order3 are:
[0266]
[0267] It is known that the minimum distance between the newly added delivery order order4 and all received orders is dis min4 = 0.3km, then the current order consolidation possibility parameters of the newly added delivery order order4 are:
[0268]
[0269] It can be seen that the newly added delivery order order2 is very close to the delivery address of a received delivery order, which is only 0.2km. Therefore, the possibility that the newly added delivery order order2 can be delivered together with other orders is very high, and its current possibility of being combined is the highest. Relatively speaking, the newly added delivery order order1 is far away from the delivery addresses of other received orders, and it is also 1.4km away from the delivery address of the nearest delivery order. The possibility of being delivered together with other orders is low, and its current possibility of being combined is the lowest.
[0270] In addition, the target store's regional historical average order quantity is For the newly added delivery order order1, the average number of orders in the area where the delivery address is located in the first delivery area and the average number of orders in the area where the delivery address is located in the second delivery area are The possible parameters for future consolidation of the newly added delivery order order1 are:
[0271]
[0272] Similarly, for the newly added delivery order order2, the average number of orders in the area where the delivery address is located in the first delivery area and the average number of orders in the area where the delivery address is located in the second delivery area are The possible parameters for future consolidation of the newly added delivery order order2 are:
[0273]
[0274] For the newly added delivery order order3, the average order quantity in the area where the delivery address is located in the first delivery area and the average order quantity in the area where the delivery address is located in the second delivery area is The possible parameters for future consolidation of the newly added delivery order order3 are:
[0275]
[0276] For the newly added delivery order order4, the average order quantity in the area where the delivery address is located in the first delivery area and the average order quantity in the area where the delivery address is located in the second delivery area is The possible parameters for future consolidation of the newly added delivery order order4 are:
[0277]
[0278] It can be seen that the parameter of the possibility of future consolidation of the newly added delivery order order4 is the largest, indicating that the delivery address of the newly added delivery order order4 is located in a high-density order area, and there is a high probability that new orders will be generated in the future and can be delivered together with the newly added delivery order order4; in contrast, the parameter of the possibility of future consolidation of the newly added delivery order order3 is the smallest, indicating that the delivery address of the newly added delivery order3 is located in a low-density order area, and there is a low probability that new orders will be generated in the future, so the newly added delivery order order3 cannot be delivered together with other orders.
[0279] Based on the above three parameters, the order overflow parameters of each newly added delivery order can be calculated. Among them, the order overflow parameter of the newly added delivery order order1 is:
[0280]
[0281] Similarly, the order overflow parameters for the newly added delivery order order2 are:
[0282]
[0283] The order overflow parameters for the newly added delivery order order3 are:
[0284]
[0285] The order overflow parameters for the newly added delivery order order4 are:
[0286]
[0287] Then, by sorting the order overflow parameters of the newly added delivery orders in ascending order, we can get:
[0288] order4→order2→order3→order1;
[0289] If it is known that the first estimated delivery time of the target store is 40 minutes, the newly added delivery orders order4, order2, order3, and order1 are inserted into the order allocation result delivery_result one by one in the ascending order of the order overflow parameters of the newly added delivery orders. If the insertion is successful, the order allocation result delivery_result is updated.
[0290] First, the latest insertion method is used to insert the newly added delivery order order4 into the order allocation result delivery_result. It is calculated that the estimated delivery time after the newly added delivery order order4 is inserted is 43 minutes, which is less than the second time threshold. It can be determined that the newly added delivery order order4 is delivered by the self-owned delivery platform, so the newly added delivery order order2 can be inserted. At this time, the order allocation result has been updated to delivery_result1, and delivery_result1 already includes order4.
[0291] Then, the newly added delivery order order2 is inserted into the order allocation result delivery_result1. After the newly added delivery order order2 is inserted, the estimated delivery time is 53 minutes, which is less than the second time threshold. It can be determined that the newly added delivery order order2 is delivered by the self-owned delivery platform, so the newly added delivery order order3 can be inserted. At this time, the order allocation result has been updated to delivery_result2, and order2 is included in delivery_result1.
[0292] Next, the newly added delivery order order3 is inserted into the order allocation result delivery_result2. The estimated delivery time after inserting the newly added delivery order order3 is 65 minutes, which is greater than the second time threshold. It can be confirmed that the newly added delivery order order3 needs to be overflowed to the third-party delivery platform for delivery.
[0293] The order overflow parameter of the newly added delivery order order1 is larger, and the overflow possibility is greater. The newly added delivery order order3 with a smaller order overflow parameter already needs to overflow to the third-party delivery platform for delivery. In this case, if the newly added delivery order order1 is inserted into the order allocation result delivery_result2, the estimated delivery time after inserting the newly added delivery order order1 will definitely be greater than the second time threshold. Therefore, there is no need to perform calculation, but directly overflow the newly added delivery order order3 and the newly added delivery order order1 to the third-party delivery platform for delivery.
[0294] Corresponding to the aforementioned method embodiments, this specification also provides embodiments of an apparatus and a computing device used therein.
[0295] See also Figure 7 , Figure 7 is a block diagram of a dispatching device for delivery orders according to an exemplary embodiment of the present application. Figure 7 As shown, the device comprises:
[0296] The first determination module 701 is used to determine the second estimated delivery time of the target store in the second time period based on the historical delivery difficulty parameter of the target store in the first time period, the current delivery difficulty parameter of the target store in the second time period, and the first estimated delivery time of the target store in the first time period; wherein the end time of the second time period is the current time, the end time of the first time period is before the current time, the start time of the first time period and the start time of the second time period are the same, and the delivery difficulty parameter is used to indicate the difficulty of delivering all the delivery orders of the target store by the delivery personnel of the target store;
[0297] The second determination module 702 is used to determine a target delivery platform for delivering each new delivery order from a plurality of alternative delivery platforms based on the second estimated delivery time and a pre-set first time threshold, where the new delivery order is a delivery order newly generated in the second time period compared to the first time period.
[0298] In some embodiments, the first determination module 701, when used to determine the second estimated delivery time of the target store in the second time period based on the historical delivery difficulty parameter of the target store in the first time period, the current delivery difficulty parameter of the target store in the second time period, and the first estimated delivery time of the target store in the first time period, is used to:
[0299] Determine the delivery difficulty change parameter based on the ratio of the current delivery difficulty parameter to the historical delivery difficulty parameter;
[0300] Based on the delivery difficulty change parameter and the first estimated delivery time, a second estimated delivery time is determined.
[0301] In some embodiments, the plurality of alternative delivery platforms include at least one third-party delivery platform and the target store's own delivery platform;
[0302] The second determination module 702, when used to determine a target delivery platform for delivering each newly added delivery order from a plurality of candidate delivery platforms based on the second estimated delivery time and the preset first time threshold, is used for any of the following:
[0303] In response to the second estimated delivery time being less than the first time threshold, determining the target store's own delivery platform as a target delivery platform for delivering each newly added delivery order;
[0304] In response to the second estimated delivery time being greater than or equal to the first time threshold, based on the order data and delivery data of the target store in the first time period, the order data of the target store in the second time period and the first time threshold, a target delivery platform for delivering each new delivery order is determined from at least one third-party delivery platform and the target store's own delivery platform.
[0305] In some embodiments, the delivery data of the target store in the first time period at least includes the first estimated delivery time of the target store in the first time period and the first order allocation result of the first delivery order generated by the target store in the first time period, and the first order allocation result is used to indicate the delivery sequence of each first delivery order; the order data of the target store in the first time period at least includes the delivery address of the first delivery order generated by the target store in the first time period, and the order data of the target store in the second time period at least includes the delivery addresses of multiple newly added delivery orders;
[0306] The second determination module 702, when used to determine a target delivery platform for delivering each newly added delivery order from at least one third-party delivery platform and the target store's own delivery platform based on the target store's order data and delivery data in the first time period, the target store's order data in the second time period, and the first time threshold, is used to:
[0307] For any newly added delivery order among the multiple newly added delivery orders, based on the delivery address of the first delivery order and the first order allocation result, and the delivery address of the newly added delivery order, determine a first increased delivery time, the first increased delivery time being used to indicate an increase in a total delivery time when the newly added delivery order is delivered by the target store's own delivery platform;
[0308] Based on the first estimated delivery time, the first increased delivery time corresponding to each new delivery order and the first time threshold, a target delivery platform for each new delivery order is determined from a third-party delivery platform and the target store's own delivery platform.
[0309] In some embodiments, the second determination module 702, when used to determine the first increased delivery time based on the delivery address of the first delivery order and the first order allocation result, and the delivery address of the newly added delivery order, is used to:
[0310] Determine, from the first delivery orders generated in the first time period, a first target delivery order whose delivery address is the shortest distance from the delivery address of the newly added delivery order;
[0311] The first increased delivery time is determined based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, the delivery address of the second reference delivery order and the delivery address of the newly added delivery order, the first reference delivery order being the first delivery order whose delivery order in the first order allocation result is before the first target delivery order, and the second reference delivery order being the first delivery order whose delivery order in the first order allocation result is after the first target delivery order.
[0312] In some embodiments, the second determining module 702, when used to determine the first increased delivery time based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, the delivery address of the second reference delivery order, and the delivery address of the newly added delivery order, is used to:
[0313] Determining a first alternative increased delivery time based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, and the delivery address of the newly added delivery order;
[0314] Determining a second alternative increased delivery time based on the delivery address of the first target delivery order, the delivery address of the second reference delivery order, and the delivery address of the newly added delivery order;
[0315] The smaller value between the first alternative increased delivery time and the second alternative increased delivery time is determined as the first increased delivery time.
[0316] In some embodiments, the second determination module 702, when used to determine the target delivery platform for each newly added delivery order from the third-party delivery platform and the target store's own delivery platform based on the first estimated delivery time, the first increased delivery time corresponding to each newly added delivery order, and the first time threshold, is used for any of the following:
[0317] For a newly added delivery order corresponding to a sum of the first increased delivery time and the first estimated delivery time being greater than or equal to the first time threshold, determining the third-party delivery platform as a target delivery platform for the newly added delivery order;
[0318] For the new delivery orders whose corresponding sum of the first increased delivery time and the first estimated delivery time is less than the first time threshold, the target delivery platform for each new delivery order is determined from the third-party delivery platform and the target store's own delivery platform based on the order overflow parameter of the new delivery order, the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of multiple new delivery orders, the second order allocation result and the second time threshold, the order overflow parameter is used to indicate the difficulty of delivering the new delivery order through the target store's own delivery platform, the third estimated delivery time is the delivery time required for delivering each first delivery order and the new delivery orders that have been allocated to the own delivery platform for delivery, and the second order allocation result is the delivery sequence of each first delivery order and the new delivery orders that have been allocated to the own delivery platform for delivery.
[0319] In some embodiments, the second determination module 702 is further used to determine an order overflow parameter of a newly added delivery order for which the sum of the first increased delivery time and the third estimated delivery time is less than the first time threshold.
[0320] In some embodiments, for any newly added delivery order corresponding to the sum of the first increased delivery time and the third estimated delivery time being less than the first time threshold, the second determination module 702, when determining the order overflow parameter of the newly added delivery order, is used to:
[0321] Determine a delivery urgency parameter for the second delivery order based on the order data of the newly added delivery order and the historical order data of the target store, where the delivery urgency parameter is used to indicate the delivery urgency of the newly added delivery order;
[0322] Determine a current order consolidation possibility parameter of the newly added delivery order based on the order data of the newly added delivery order and the order data of the first delivery order, where the current order consolidation possibility parameter is used to indicate the possibility of consolidating the newly added delivery order with the first delivery order for delivery;
[0323] Based on the order data of the newly added delivery orders and the historical order data of the target stores, determine a future order consolidation possibility parameter of the newly added delivery orders, where the future order consolidation possibility parameter is used to indicate the possibility of consolidating the newly added delivery orders with delivery orders that may be generated in the future;
[0324] The order overflow parameter is determined based on the delivery urgency parameter, the current order consolidation possibility parameter and the future order consolidation possibility parameter.
[0325] In some embodiments, the order data includes at least the order amount and the delivery address of the delivery order, and the historical order data includes at least the average amount and the average delivery distance of the delivery order;
[0326] The second determination module 702, when used to determine the delivery urgency parameter of the newly added delivery order based on the order data of the newly added delivery order and the historical order data of the target store, is used to:
[0327] Determine the delivery distance of the new delivery order based on the delivery address of the new delivery order and the address of the target store;
[0328] Determine the delivery urgency parameters of the new delivery orders based on the order amount and delivery distance of the new delivery orders and the average amount and average delivery distance of the delivery orders of the target stores.
[0329] In some embodiments, the order data includes at least a delivery address for an outbound order;
[0330] The second determining module 702, when used to determine the current order consolidation possibility parameter of the newly added delivery order based on the order data of the newly added delivery order and the order data of the first delivery order, is used to:
[0331] Determine the delivery address distance between the delivery address of the newly added delivery order and the delivery address of each first delivery order;
[0332] Determine the shortest delivery address distance among multiple delivery address distances;
[0333] Based on the shortest delivery address distance, determine the current order consolidation possibility parameters.
[0334] In some embodiments, the order data includes at least a delivery address for an outbound order, and the historical order data includes at least a delivery address for a historical order;
[0335] The second determination module 702, when used to determine the future order consolidation possibility parameter of the newly added delivery order based on the order data of the newly added delivery order and the historical order data of the target store, is used to:
[0336] Based on the delivery address of the newly added delivery order, determine a first delivery area and a second delivery area, the first delivery area being an area centered on the delivery address of the newly added delivery order, and the second delivery area being an area determined based on the delivery address of the newly added delivery order and the delivery address of the target store;
[0337] Based on the delivery addresses of the newly added delivery orders, determine the average number of orders in the region where the delivery addresses are located in the first delivery area and the average number of orders in the region where the delivery addresses are located in the second delivery area;
[0338] Based on the regional average order quantity where the delivery address is within the first delivery area, the regional average order quantity where the delivery address is within the second delivery area, and the regional historical average order quantity of the target store, the possibility parameters of future order consolidation are determined.
[0339] In some embodiments, second determining module 702, when used to determine a target delivery platform for each newly added delivery order from a third-party delivery platform and a target store's own delivery platform based on the order overflow parameter of the second delivery order, the third estimated delivery time, the order data of the first delivery order generated within the first time period, the order data of multiple newly added delivery orders, the second order allocation result, and the second time threshold, is used to:
[0340] According to the parameter values of the order overflow parameters of multiple new delivery orders in ascending order, the target delivery platform for each new delivery order is determined from the third-party delivery platform and the target store's own delivery platform based on the three estimated delivery times, the order data of the first delivery order generated in the first time period, the order data of each new delivery order, the second order allocation result and the second time threshold.
[0341] In some embodiments, the second determining module 702, when used to determine the target delivery platform for each newly added delivery order from the third-party delivery platform and the target store's own delivery platform based on the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of each newly added delivery order, the second order allocation result, and the second time threshold, is used to:
[0342] For any newly added delivery order, determining a second increased delivery time based on the order data of the first delivery order generated within the first time period, the order data of the newly added delivery order, and the second order allocation result;
[0343] If the sum of the third estimated delivery time and the second increased delivery time of the newly added delivery order is less than the second time threshold, the target store's own delivery platform is determined as the target delivery platform for the newly added delivery order, and the second order allocation result is updated based on the newly added delivery order, so as to continue to process the newly added delivery order with a larger parameter value of the order overflow parameter based on the updated second order allocation result;
[0344] If the sum of the third estimated delivery time and the second increased delivery time of the new delivery order is greater than or equal to the second time threshold, the third-party delivery platform is determined as the target delivery platform for the new delivery orders and the new delivery orders with a larger parameter value of the order overflow parameter.
[0345] In some embodiments, the apparatus further comprises:
[0346] The third determination module 703 is used to determine the historical delivery difficulty parameter of the target store and the current delivery difficulty parameter of the target store based on the order data and delivery personnel data of the target store in the first time period and the second time period, respectively.
[0347] In some embodiments, the order data of the target store in the first time period includes at least the number of first delivery orders and the amount of the delivery orders generated by the target store in the first time period, the delivery personnel data of the target store in the first time period includes at least the number of delivery personnel of the target store's own delivery platform in the first time period, the order data of the target store in the second time period includes at least the number of multiple newly added delivery orders and the amount of the delivery orders, and the delivery personnel data of the target store in the second time period includes at least the number of delivery personnel of the target store's own delivery platform in the second time period;
[0348] The third determination module 703, when used to determine the historical delivery difficulty parameter of the target store in the first time period and the current delivery difficulty parameter of the target store in the second time period based on the order data and the delivery personnel data of the target store in the first time period and the second time period respectively, is used to:
[0349] Determine a historical delivery difficulty parameter of the target store in the first time period based on the number of delivery orders and the amount of the delivery orders generated by the target store in the first time period and the number of delivery personnel of the target store's own delivery platform in the first time period;
[0350] Based on the number of delivery orders, the amount of delivery orders of the multiple newly added delivery orders, and the number of delivery personnel of the target store's own delivery platform in the second time period, a current delivery difficulty parameter of the target store in the second time period is determined.
[0351] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0352] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0353] The present application also provides a computing device, see Figure 8 , Figure 8 is a schematic diagram of a computing device according to an exemplary embodiment of the present application. Figure 8 As shown, the computing device includes a processor 810, a memory 820, and a network interface 830. The memory 820 is used to store computer instructions that can be run on the processor 810. The processor 810 is used to implement the dispatching method for delivery orders provided in any embodiment of the present application when executing the computer instructions. The network interface 830 is used to implement input and output functions. In more possible implementations, the computing device may also include other hardware, which is not limited in the present application.
[0354] The present application also provides a computer-readable storage medium, which can be in various forms. For example, in different examples, the computer-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof. In particular, the computer-readable medium can also be paper or other suitable medium capable of printing programs. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the scheduling method for delivery orders provided in any embodiment of the present application is implemented.
[0355] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the method for scheduling delivery orders provided in any embodiment of the present application.
[0356] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, an apparatus, a computing device, a computer-readable storage medium, or a computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0357] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiment corresponding to the computing device, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0358] The above specific embodiments of this specification are described. Other embodiments are within the scope of this application. In some cases, the actions or steps recorded in this application can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0359] The embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-temporary program carrier to be executed by a data processing device or to control the operation of a data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by a dispatch device for delivery orders. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
[0360] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits), and the apparatus can also be implemented as special purpose logic circuits.
[0361] Computers suitable for executing computer programs include, for example, general and / or special microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to this large-capacity storage device to receive data from it or to transmit data to it, or both. However, the computer does not necessarily have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.
[0362] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0363] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.
[0364] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.
[0365] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the present application. In some cases, the actions described in the present application can be performed in a different order and still achieve the desired results. In addition, the processing depicted in the accompanying drawings does not necessarily require the specific order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.
[0366] Those skilled in the art will readily appreciate other embodiments of the present specification after considering the specification and practicing the invention claimed herein. The present specification is intended to cover any variations, uses or adaptations of the present specification that follow the general principles of the present specification and include common knowledge or customary techniques in the art that are not claimed in the present specification. That is, the present specification is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof.
[0367] The above description is only an optional embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A method for dispatching delivery orders, characterized in that: The method comprises: Determine a second estimated delivery time of the target store in the second time period based on a historical delivery difficulty parameter of the target store in the first time period, a current delivery difficulty parameter of the target store in the second time period, and a first estimated delivery time of the target store in the first time period; wherein the end time of the second time period is the current time, the end time of the first time period is before the current time, the start time of the first time period and the start time of the second time period are the same, and the delivery difficulty parameter is used to indicate the difficulty of delivering all the delivery orders of the target store by the delivery personnel of the target store; Based on the second estimated delivery time and the preset first time threshold, a target delivery platform for delivering each new delivery order is determined from a plurality of alternative delivery platforms, and the new delivery order is a delivery order newly generated in the second time period compared to the first time period.
2. The method according to claim 1, characterized in that: The determining, based on the historical delivery difficulty parameter of the target store in the first time period, the current delivery difficulty parameter of the target store in the second time period, and the first estimated delivery time of the target store in the first time period, a second estimated delivery time of the target store in the second time period includes: Determining a delivery difficulty change parameter based on a ratio of the current delivery difficulty parameter to the historical delivery difficulty parameter; The second estimated delivery time is determined based on the delivery difficulty change parameter and the first estimated delivery time.
3. The method according to claim 1, characterized in that: The multiple alternative delivery platforms include at least one third-party delivery platform and the target store's own delivery platform; The determining, based on the second estimated delivery time and the preset first delivery time threshold, a target delivery platform for delivering each newly added delivery order from a plurality of candidate delivery platforms includes any of the following: In response to the second estimated delivery time being less than the first time threshold, determining the target store's own delivery platform as a target delivery platform for delivering each newly added delivery order; In response to the second estimated delivery time being greater than or equal to the first time threshold, based on the order data and delivery data of the target store in the first time period, the order data of the target store in the second time period and the first time threshold, the target delivery platform for delivering each new delivery order is determined from the at least one third-party delivery platform and the target store's own delivery platform.
4. The method according to claim 3, characterized in that The delivery data of the target store in the first time period at least includes the first estimated delivery time of the target store in the first time period and the first order allocation result of the first delivery order generated by the target store in the first time period, and the first order allocation result is used to indicate the delivery sequence of each first delivery order; the order data of the target store in the first time period at least includes the delivery address of the first delivery order generated by the target store in the first time period, and the order data of the target store in the second time period at least includes the delivery addresses of multiple newly added delivery orders; The determining, based on the order data and delivery data of the target store in the first time period, the order data of the target store in the second time period, and the first time threshold, a target delivery platform for delivering each newly added delivery order from the at least one third-party delivery platform and the target store's own delivery platform includes: For any newly added delivery order among the multiple newly added delivery orders, determining a first increased delivery time based on the delivery address of the first delivery order and the first order allocation result, and the delivery address of the newly added delivery order, wherein the first increased delivery time is used to indicate an increase in a total delivery time when the newly added delivery order is delivered by the target store's own delivery platform; Based on the first estimated delivery time, the first increased delivery time corresponding to each new delivery order and the first time threshold, a target delivery platform for each new delivery order is determined from a third-party delivery platform and the target store's own delivery platform.
5. The method according to claim 4, characterized in that The determining a first increased delivery time based on the delivery address of the first delivery order and the first order allocation result, and the delivery address of the newly added delivery order, includes: Determining, from the first delivery orders generated within the first time period, a first target delivery order whose delivery address is the shortest distance from the delivery address of the newly added delivery order; The first increased delivery time is determined based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, the delivery address of the second reference delivery order and the delivery address of the newly added delivery order, the first reference delivery order being the first delivery order whose delivery order in the first order allocation result is before the first target delivery order, and the second reference delivery order being the first delivery order whose delivery order in the first order allocation result is after the first target delivery order.
6. The method according to claim 5, characterized in that The determining the first increased delivery time based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, the delivery address of the second reference delivery order, and the delivery address of the newly added delivery order includes: Determining a first alternative increased delivery time based on the delivery address of the first target delivery order, the delivery address of the first reference delivery order, and the delivery address of the newly added delivery order; Determining a second alternative increased delivery time based on the delivery address of the first target delivery order, the delivery address of the second reference delivery order, and the delivery address of the newly added delivery order; The smaller value between the first alternative increased delivery time and the second alternative increased delivery time is determined as the first increased delivery time.
7. The method according to claim 5, characterized in that The determining, based on the first estimated delivery time, the first increased delivery time corresponding to each newly added delivery order, and the first time threshold, of a target delivery platform for each newly added delivery order from a third-party delivery platform and the target store's own delivery platform includes any of the following: For a newly added delivery order corresponding to a sum of the first increased delivery time and the first estimated delivery time being greater than or equal to the first time threshold, determining a third-party delivery platform as a target delivery platform for the newly added delivery order; For the new delivery orders corresponding to the sum of the first increased delivery time and the first estimated delivery time which is less than the first time threshold, the target delivery platform for each new delivery order is determined from the third-party delivery platform and the target store's own delivery platform based on the order overflow parameter of the new delivery order, the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of multiple new delivery orders, the second order allocation result and the second time threshold, the order overflow parameter is used to indicate the difficulty of delivering the new delivery order through the target store's own delivery platform, the third estimated delivery time is the delivery time required for delivering each first delivery order and the new delivery orders that have been allocated to the own delivery platform for delivery, and the second order allocation result is the delivery sequence of each first delivery order and the new delivery orders that have been allocated to the own delivery platform for delivery.
8. The method according to claim 7, characterized in that The method further comprises: For a newly added delivery order corresponding to a sum of the first increased delivery time and the third estimated delivery time that is less than the first time threshold, an order overflow parameter of the newly added delivery order is determined.
9. The method according to claim 8, characterized in that For any newly added delivery order corresponding to the sum of the first increased delivery time and the third estimated delivery time being less than the first time threshold, determining the order overflow parameter of the newly added delivery order includes: Determining a delivery urgency parameter for the second delivery order based on the order data of the newly added delivery order and the historical order data of the target store, wherein the delivery urgency parameter is used to indicate the delivery urgency of the newly added delivery order; Determining a current order-merging possibility parameter of the newly added delivery order based on the order data of the newly added delivery order and the order data of the first delivery order, wherein the current order-merging possibility parameter is used to indicate a possibility of merging the newly added delivery order with the first delivery order for delivery; Determining a future order consolidation possibility parameter of the newly added delivery order based on the order data of the newly added delivery order and the historical order data of the target store, wherein the future order consolidation possibility parameter is used to indicate the possibility of consolidating the newly added delivery order with delivery orders that may be generated in the future; The order overflow parameter is determined based on the delivery urgency parameter, the current order consolidation possibility parameter and the future order consolidation possibility parameter.
10. The method according to claim 9, characterized in that The order data includes at least the order amount and delivery address of the delivery order, and the historical order data includes at least the average amount and average delivery distance of the delivery order; The determining, based on the order data of the newly added delivery order and the historical order data of the target store, a delivery urgency parameter of the newly added delivery order includes: Determining a delivery distance for the newly added delivery order based on the delivery address of the newly added delivery order and the address of the target store; Based on the order amount and delivery distance of the newly added delivery order and the average amount and average delivery distance of the delivery orders of the target store, a delivery urgency parameter of the newly added delivery order is determined.
11. The method according to claim 9, characterized in that The order data at least includes the delivery address of the delivery order; The determining, based on the order data of the newly added delivery order and the order data of the first delivery order, a current order consolidation possibility parameter of the newly added delivery order includes: Determine the delivery address distance between the delivery address of the newly added delivery order and the delivery address of each first delivery order; Determine the shortest delivery address distance among multiple delivery address distances; Based on the shortest delivery address distance, the current order consolidation possibility parameter is determined.
12. The method according to claim 9, characterized in that The order data at least includes the delivery address of the delivery order, and the historical order data at least includes the delivery address of the historical order; The determining, based on the order data of the newly added delivery order and the historical order data of the target store, a future order consolidation possibility parameter of the newly added delivery order includes: Based on the delivery address of the newly added delivery order, determine a first delivery area and a second delivery area, wherein the first delivery area is an area centered on the delivery address of the newly added delivery order, and the second delivery area is an area determined based on the delivery address of the newly added delivery order and the delivery address of the target store; Based on the delivery address of the newly added delivery order, determine the average number of orders in the region where the delivery address is located in the first delivery area and the average number of orders in the region where the delivery address is located in the second delivery area; The future order consolidation possibility parameter is determined based on the regional average order quantity where the delivery address is within the first delivery area, the regional average order quantity where the delivery address is within the second delivery area, and the regional historical average order quantity of the target store.
13. The method according to claim 7, characterized in that The method of determining a target delivery platform for each newly added delivery order from a third-party delivery platform and a self-owned delivery platform of the target store based on the order overflow parameter of the second delivery order, the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of multiple newly added delivery orders, the second order allocation result, and the second time threshold, comprises: According to the parameter values of the order overflow parameters of the multiple new delivery orders in ascending order, the target delivery platform for each new delivery order is determined from the third-party delivery platform and the target store's own delivery platform based on the three estimated delivery times, the order data of the first delivery order generated within the first time period, the order data of each new delivery order, the second order allocation result and the second time threshold.
14. The method according to claim 13, characterized in that The step of determining a target delivery platform for each newly added delivery order from a third-party delivery platform and a self-owned delivery platform of the target store based on the third estimated delivery time, the order data of the first delivery order generated in the first time period, the order data of each newly added delivery order, the second order allocation result, and the second time threshold in sequence includes: For any newly added delivery order, determining a second increased delivery time based on order data of a first delivery order generated within the first time period, order data of the newly added delivery order, and the second order allocation result; If the sum of the third estimated delivery time and the second increased delivery time of the newly added delivery order is less than the second time threshold, the target store's own delivery platform is determined as the target delivery platform for the newly added delivery order, and the second order allocation result is updated based on the newly added delivery order, so as to continue to process the newly added delivery order with a larger parameter value of the order overflow parameter based on the updated second order allocation result; If the sum of the third estimated delivery time and the second increased delivery time of the new delivery order is greater than or equal to the second time threshold, the third-party delivery platform is determined as the target delivery platform for the new delivery orders and the new delivery orders with a larger parameter value of the order overflow parameter.
15. The method according to claim 1, characterized in that Before determining a second estimated delivery time of the target store in the second time period based on the historical delivery difficulty parameter of the target store in the first time period, the current delivery difficulty parameter of the target store in the second time period, and the first estimated delivery time of the target store in the first time period, the method further includes: Based on the order data and delivery personnel data of the target store in the first time period and the second time period, respectively, a historical delivery difficulty parameter of the target store and a current delivery difficulty parameter of the target store are determined.
16. The method according to claim 15, characterized in that The order data of the target store in the first time period at least includes the number of first delivery orders and the amount of delivery orders generated by the target store in the first time period, the delivery personnel data of the target store in the first time period at least includes the number of delivery personnel of the target store's own delivery platform in the first time period, the order data of the target store in the second time period at least includes the number of multiple newly added delivery orders and the amount of delivery orders, and the delivery personnel data of the target store in the second time period at least includes the number of delivery personnel of the target store's own delivery platform in the second time period; The determining, based on the order data and delivery personnel data of the target store in the first time period and the second time period, of the historical delivery difficulty parameter of the target store in the first time period and the current delivery difficulty parameter of the target store in the second time period, includes: Determine a historical delivery difficulty parameter of the target store in the first time period based on the number of delivery orders and the amount of the delivery orders generated by the target store in the first time period and the number of delivery personnel of the target store's own delivery platform in the first time period; Based on the number of delivery orders, the amount of delivery orders of the multiple newly added delivery orders, and the number of delivery personnel of the target store's own delivery platform in the second time period, a current delivery difficulty parameter of the target store in the second time period is determined.
17. A dispatching device for delivery orders, characterized in that: The device comprises: A first determination module is used to determine a second estimated delivery time of the target store in the second time period based on a historical delivery difficulty parameter of the target store in the first time period, a current delivery difficulty parameter of the target store in the second time period, and a first estimated delivery time of the target store in the first time period; wherein the end time of the second time period is the current time, the end time of the first time period is before the current time, the start time of the first time period is the same as the start time of the second time period, and the delivery difficulty parameter is used to indicate the difficulty of delivering all the delivery orders of the target store by the delivery personnel of the target store; The second determination module is used to determine a target delivery platform for delivering each new delivery order from a plurality of alternative delivery platforms based on the second estimated delivery time and a pre-set first time threshold, where the new delivery order is a delivery order newly generated in the second time period compared to the first time period.
18. A computing device, characterized in that The computing device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the operations performed by the method for scheduling delivery orders as described in any one of claims 1 to 16 are implemented.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and the program is used by a processor to execute the operations performed by the method for scheduling delivery orders as described in any one of claims 1 to 16.
