Waybill processing methods, devices, storage media and electronic equipment
Patent Information
- Application Number
- CN202210494329.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-07
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2042-05-07
AI Technical Summary
[0003]相关技术中,为了确保运单没有超时风险,可以只将完全顺路的待指派运单指派给骑手,但是,会导致骑手的配送效率比较低;而为了提高骑手的配送效率,将不完全顺路的待指派运单指派给骑手,会导致骑手的配送压力比较大,影响骑手的配送体验
[0063]通过上述技术方案,在接收到待指派运单的情况下,获取目标骑手对应的待派送运单的待派送运单信息;根据所述待指派运单的待指派运单信息和所述待派送运单信息,确定所述目标骑手对应的配送路径信息;根据所述配送路径信息,确定所述目标骑手配送所述待指派运单的预估送达时间;在根据所述预估送达时间确定将所述待指派运单指派给所述目标骑手的情况下,根据所述预估送达时间,调整所述待指派运单对应的第一时间阈值,所述第一时间阈值为所述目标骑手将所述待指派运单送达的最晚时间。也就是说,本公开可以结合目标骑手的待派送运单的待派送运单信息,确定待指派运单的预估送达时间,并根据该预估送达时间调整该待指派运单对应的第一时间阈值,这样,使得该目标骑手的运单派送时间更加合理,从而可以在确保骑手配送效率的同时,提高骑手的配送体验。
Smart Images

Figure CN114897466B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to a waybill processing method, apparatus, storage medium, and electronic device. Background Technology
[0002] Currently, to improve delivery efficiency, food delivery platforms typically assign orders to riders based on the match between the orders and riders during dispatch. When determining the match between an order and a rider, it's necessary to consider both the rider's ability to deliver the order on time and their ability to deliver other orders on time.
[0003] In related technologies, to ensure that there is no risk of delivery orders being late, only orders that are completely in the same direction can be assigned to riders. However, this leads to relatively low delivery efficiency for riders. On the other hand, to improve delivery efficiency, orders that are not completely in the same direction can be assigned to riders, which increases the delivery pressure on riders and affects their delivery experience. Therefore, how to improve the delivery experience for riders while ensuring their delivery efficiency has become an urgent problem to be solved. Summary of the Invention
[0004] The purpose of this disclosure is to provide a waybill processing method, apparatus, storage medium, and electronic device.
[0005] To achieve the above objectives, firstly, this disclosure provides a waybill processing method, the method comprising:
[0006] Upon receiving a pending delivery order, obtain the pending delivery order information for the target rider.
[0007] Based on the information of the pending dispatch order and the information of the pending delivery order, the delivery route information corresponding to the target rider is determined.
[0008] Based on the delivery route information, the estimated delivery time for the target rider to deliver the assigned order is determined.
[0009] When the delivery order to be assigned to the target rider is determined based on the estimated delivery time, the first time threshold corresponding to the delivery order to be assigned is adjusted according to the estimated delivery time. The first time threshold is the latest time when the target rider will deliver the delivery order to be assigned.
[0010] Optionally, determining to assign the waybill to the target rider based on the estimated delivery time includes:
[0011] Determine the second time threshold corresponding to the waybill to be assigned;
[0012] If the estimated delivery time is less than or equal to the second time threshold, it is determined that the order to be assigned will be assigned to the target rider.
[0013] Optionally, determining the second time threshold corresponding to the waybill to be assigned includes:
[0014] Obtain the first preset extension time;
[0015] Determine the estimated delivery time corresponding to the waybill to be assigned;
[0016] The sum of the estimated delivery time and the first preset extension time is used as the second time threshold.
[0017] Optionally, adjusting the first time threshold corresponding to the waybill to be assigned based on the estimated delivery time includes:
[0018] If the estimated delivery time is less than or equal to the second time threshold and greater than or equal to the first time threshold, the time increment after the target rider delivers the order to be assigned is determined, and the second time threshold is greater than the first time threshold.
[0019] Based on the time increment, determine the delivery extension time corresponding to the waybill to be assigned;
[0020] Adjust the first time threshold based on the delivery extension time.
[0021] Optionally, the time increment after determining the target rider to deliver the assigned order includes:
[0022] Determine the first delivery time for the target rider to deliver the order to be delivered, and the second delivery time for the target rider to deliver the order to be assigned and the order to be delivered;
[0023] The difference between the second delivery time and the first delivery time is used as the time increment.
[0024] Optionally, determining the delivery extension time corresponding to the waybill to be assigned based on the time increment includes:
[0025] According to a pre-set first extension time association relationship, the first extension time corresponding to the time increment is determined, and the first extension time association relationship includes the correspondence between different time increments and extension times;
[0026] The step of adjusting the first time threshold based on the delivery extension time includes:
[0027] The sum of the first time threshold and the first extended time is used as the new first time threshold.
[0028] Optionally, the method further includes:
[0029] If the estimated delivery time is less than the first time threshold, the delivery time margin corresponding to the target delivery order is determined. The target delivery order is the delivery order to be delivered by the target rider after the assigned delivery order.
[0030] Determine the time segment corresponding to the order to be assigned, wherein the time segment is used to characterize the average time taken by the target rider to deliver the order to be assigned;
[0031] The first time threshold is adjusted based on the delivery time margin and the time occupancy.
[0032] Secondly, this disclosure provides a waybill processing device, the device comprising:
[0033] The pending delivery order information acquisition module is used to acquire the pending delivery order information of the target rider when a pending delivery order is received.
[0034] The route information determination module is used to determine the delivery route information corresponding to the target rider based on the dispatch order information and the delivery order information to be delivered.
[0035] The estimated delivery time determination module is used to determine the estimated delivery time for the target rider to deliver the assigned waybill based on the delivery route information.
[0036] The first time threshold adjustment module is used to adjust the first time threshold corresponding to the order to be assigned according to the estimated delivery time when the order to be assigned to the target rider is determined based on the estimated delivery time. The first time threshold is the latest time when the target rider will deliver the order to be assigned.
[0037] Optionally, the first time threshold adjustment module is further configured to:
[0038] Determine the second time threshold corresponding to the waybill to be assigned;
[0039] If the estimated delivery time is less than or equal to the second time threshold, it is determined that the order to be assigned will be assigned to the target rider.
[0040] Optionally, the first time threshold adjustment module is further configured to:
[0041] Obtain the first preset extension time;
[0042] Determine the estimated delivery time corresponding to the waybill to be assigned;
[0043] The sum of the estimated delivery time and the first preset extension time is used as the second time threshold.
[0044] Optionally, the first time threshold adjustment module is further configured to:
[0045] If the estimated delivery time is less than or equal to the second time threshold and greater than or equal to the first time threshold, the time increment after the target rider delivers the order to be assigned is determined, and the second time threshold is greater than the first time threshold.
[0046] Based on the time increment, determine the delivery extension time corresponding to the waybill to be assigned;
[0047] Adjust the first time threshold based on the delivery extension time.
[0048] Optionally, the first time threshold adjustment module is further configured to:
[0049] Determine the first delivery time for the target rider to deliver the order to be delivered, and the second delivery time for the target rider to deliver the order to be assigned and the order to be delivered;
[0050] The difference between the second delivery time and the first delivery time is used as the time increment.
[0051] Optionally, the first time threshold adjustment module is further configured to:
[0052] According to a pre-set first extension time association relationship, the first extension time corresponding to the time increment is determined, and the first extension time association relationship includes the correspondence between different time increments and extension times;
[0053] The step of adjusting the first time threshold based on the delivery extension time includes:
[0054] The sum of the first time threshold and the first extended time is used as the new first time threshold.
[0055] Optionally, the device further includes:
[0056] The delivery time margin determination module is used to determine the delivery time margin corresponding to the target delivery order when the estimated delivery time is less than the first time threshold. The target delivery order is the delivery order to be delivered by the target rider after the assigned delivery order.
[0057] The time allocation determination module is used to determine the time allocation corresponding to the order to be assigned, and the time allocation is used to characterize the average time taken by the target rider to deliver the order to be assigned.
[0058] The first time threshold adjustment module is further configured to adjust the first time threshold based on the delivery time margin and the time occupancy.
[0059] Thirdly, this disclosure provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in the first aspect of this disclosure.
[0060] Fourthly, this disclosure provides an electronic device, comprising:
[0061] A memory on which computer programs are stored;
[0062] A processor for executing the computer program in the memory to implement the steps of the method described in the first aspect of this disclosure.
[0063] Through the above technical solution, upon receiving a pending delivery order, the system obtains the pending delivery order information corresponding to the target rider; based on the pending delivery order information and the pending delivery order details, it determines the delivery route information corresponding to the target rider; based on the delivery route information, it determines the estimated delivery time for the target rider to deliver the pending delivery order; if the system determines to assign the pending delivery order to the target rider based on the estimated delivery time, it adjusts the first time threshold corresponding to the pending delivery order based on the estimated delivery time. The first time threshold is the latest time the target rider can deliver the pending delivery order. In other words, this disclosure can combine the pending delivery order information of the target rider's pending delivery orders to determine the estimated delivery time of the pending delivery order, and adjust the first time threshold corresponding to the pending delivery order based on the estimated delivery time. This makes the delivery time of the target rider's orders more reasonable, thereby improving the rider's delivery experience while ensuring delivery efficiency.
[0064] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0065] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings:
[0066] Figure 1 This is a flowchart illustrating a waybill processing method according to an exemplary embodiment of the present disclosure;
[0067] Figure 2 This is a flowchart illustrating another waybill processing method according to an exemplary embodiment of the present disclosure;
[0068] Figure 3 This is an exemplary embodiment of the present disclosure illustrating a time-consuming increment distribution histogram;
[0069] Figure 4 This is a graph illustrating the first extended time correlation relationship according to an exemplary embodiment of the present disclosure;
[0070] Figure 5 This is a schematic diagram of a target delivery order according to an exemplary embodiment of the present disclosure;
[0071] Figure 6 This is a time operation diagram illustrated according to an exemplary embodiment of the present disclosure;
[0072] Figure 7 This is a second extended time correlation curve diagram illustrated according to an exemplary embodiment of the present disclosure;
[0073] Figure 8 This is a block diagram illustrating a waybill processing apparatus according to an exemplary embodiment of the present disclosure;
[0074] Figure 9 This is a block diagram illustrating another waybill processing apparatus according to an exemplary embodiment of the present disclosure;
[0075] Figure 10 This is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0076] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit this disclosure.
[0077] It should be noted that all actions involving the acquisition of signals, information, or data in this disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the location is situated, and with authorization from the owner of the relevant device.
[0078] In the following description, the words "first" and "second" are used only to distinguish the purpose of the description and should not be interpreted as indicating or implying relative importance or order.
[0079] Before detailing the specific implementation methods of this disclosure, its application scenario will first be explained. In the food delivery scenario, when each order is generated, a pre-trained neural network model outputs the estimated delivery time for that order. To avoid unexpected situations for riders during delivery, a relatively broad delivery time is usually set for the rider. The rider simply needs to deliver the order within this timeframe. For example, the delivery time could be the estimated delivery time + α. Although this method of setting the delivery time considers the unexpected situations that may occur during the delivery process, the α set for each rider is the same, without considering the number of orders waiting to be delivered for each rider. In other words, the preset delivery time assigned to any rider for an order is the same. In this way, when determining the match between a delivery order and a rider, if the delivery order and the rider's delivery route are very compatible (on the same route), but the rider's other orders might cause the order to time out, then that rider must be filtered out. The search then shifts to finding riders with a lower compatibility (not on the same route) but no risk of timeout, or making different choices during route planning to avoid timeouts. While this can ensure riders don't face timeout risks to some extent, the smaller number of orders each rider handles results in lower delivery efficiency.
[0080] To address the aforementioned problems, this disclosure provides a waybill processing method, apparatus, storage medium, and electronic device. This method can combine the information of the pending delivery orders of a target rider to determine the estimated delivery time of the pending delivery order, and adjust the first time threshold corresponding to the pending delivery order based on the estimated delivery time. This makes the delivery time of the target rider's orders more reasonable, thereby improving the rider's delivery experience while ensuring delivery efficiency.
[0081] The present disclosure will now be described in conjunction with specific embodiments.
[0082] Figure 1 This is a flowchart illustrating a waybill processing method according to an exemplary embodiment of the present disclosure, such as... Figure 1 As shown, the method may include:
[0083] S101. Upon receiving a pending delivery order, obtain the pending delivery order information for the target rider.
[0084] The pending delivery order can be a recently submitted order that has not yet been assigned. The information of the pending delivery order can include the origin, destination and estimated delivery time of the order. The estimated delivery time can be obtained by a pre-trained estimated delivery time acquisition model when the pending delivery order is generated. It is the theoretical delivery time determined according to the delivery route (without considering unforeseen circumstances during delivery). The estimated delivery time acquisition model can be trained using existing model training methods, which will not be elaborated here.
[0085] In this step, upon receiving the order to be assigned, the order information can be obtained and input into a pre-trained order matching model to obtain a target rider initially matched with the order. The order information may include the order's origin, destination, and estimated delivery time. The order matching model can be trained using existing model training methods, which will not be elaborated here. After obtaining the target rider initially matched with the order, the order information for the corresponding order to be assigned can be obtained.
[0086] S102. Based on the information of the pending dispatch order and the information of the pending delivery order, determine the delivery route information corresponding to the target rider.
[0087] The information of the waybill to be assigned may include the waybill origin, waybill destination and estimated delivery time.
[0088] In this step, after obtaining the delivery order information for the target rider, the delivery order information and the order information can be input into a pre-trained route planning model to obtain the delivery route information for the target rider output by the route planning model. This route planning model can be trained using existing model training methods, which will not be elaborated upon here.
[0089] S103. Based on the delivery route information, determine the estimated delivery time for the target rider to deliver the order to be assigned.
[0090] In this step, after determining the delivery route information corresponding to the target rider, the delivery route information can be input into a pre-trained estimated delivery time acquisition model to obtain the estimated delivery time output by the estimated delivery time acquisition model. The estimated delivery time acquisition model can be trained using existing model training methods, which will not be elaborated here.
[0091] S104. If it is determined that the order to be assigned is to the target rider based on the estimated delivery time, the first time threshold corresponding to the order to be assigned is adjusted according to the estimated delivery time.
[0092] The first time threshold can be the latest time that the target rider can deliver the order to be assigned.
[0093] In this step, after determining the estimated delivery time for the target rider to deliver the order to be assigned, it can be determined whether to assign the order to the target rider based on the estimated delivery time. In one possible implementation, a second time threshold corresponding to the order to be assigned can be determined. If the estimated delivery time is less than or equal to the second time threshold, the order to be assigned to the target rider is determined. If the estimated delivery time is greater than the second time threshold, the order to be assigned cannot be assigned to the target rider, and a new target rider is determined from riders other than the target rider.
[0094] First, a first preset extension time can be obtained to determine the estimated delivery time for the assigned order. The sum of the estimated delivery time and the first preset extension time is used as the second time threshold. The first preset extension time is the time added to ensure the assigned order can be assigned to the target rider while meeting user needs (the user's acceptable delivery time). In other words, the second time threshold is the latest delivery time set for the target rider to deliver the assigned order, considering the possibility of adding the assigned order (a delivery along the same route). If adding the first preset extension time allows the target rider to deliver the assigned order along the same route while delivering the assigned order, the rider's delivery efficiency can be improved. In addition, the extended delivery time reduces the pressure on the target rider to deliver the assigned order. When setting the first preset extension time, it is necessary to balance the needs of riders and users. From the rider's perspective, a longer first preset extension time reduces delivery pressure, while from the user's perspective, a shorter first preset extension time leads to higher user satisfaction. Based on this, a reasonable first preset extension time needs to be set. For example, a reasonable first preset extension time can be set by analyzing the historical delivery times of multiple riders; for instance, the first preset extension time could be 15 minutes.
[0095] Furthermore, if it is determined that the order to be assigned will be placed to the target rider, in one possible implementation, a first time threshold can be determined. If the estimated delivery time is greater than or equal to the first time threshold, the time increment after the target rider delivers the order to be assigned can be determined. Based on the time increment, the delivery extension time corresponding to the order to be assigned can be determined. Based on the delivery extension time, the first time threshold can be adjusted. Wherein, the second time threshold is greater than the first time threshold.
[0096] In another possible implementation, if the estimated delivery time is less than the first time threshold, a delivery time margin corresponding to the target order to be delivered is determined, wherein the target order to be delivered is the order to be delivered by the target rider after the order to be assigned; a time segment corresponding to the order to be assigned is determined, wherein the time segment is used to characterize the average time taken by the target rider to deliver the order to be assigned; and the first time threshold is adjusted according to the delivery time margin and the time segment.
[0097] By using the above method, the estimated delivery time of the pending delivery orders of the target rider can be determined by combining the pending delivery order information. The first time threshold corresponding to the pending delivery order can be adjusted according to the estimated delivery time. In this way, the delivery time of the target rider's orders is more reasonable, thereby improving the rider's delivery experience while ensuring the rider's delivery efficiency.
[0098] Figure 2 This is a flowchart illustrating another waybill processing method according to an exemplary embodiment of the present disclosure, such as... Figure 2 As shown, the method may include:
[0099] S201. Upon receiving a pending delivery order, obtain the pending delivery order information for the target rider.
[0100] The pending delivery order can be a recently submitted order that has not yet been assigned. The information of the pending delivery order can include the origin, destination and estimated delivery time of the order. The estimated delivery time can be obtained by a pre-trained estimated delivery time acquisition model when the pending delivery order is generated. It is the theoretical delivery time determined according to the delivery route (without considering unforeseen circumstances during delivery). The estimated delivery time acquisition model can be trained using existing model training methods, which will not be elaborated here.
[0101] S202. Based on the information of the pending dispatch order and the information of the pending delivery order, determine the delivery route information corresponding to the target rider.
[0102] The information of the waybill to be assigned may include the waybill origin, waybill destination and estimated delivery time.
[0103] S203. Based on the delivery route information, determine the estimated delivery time for the target rider to deliver the assigned order.
[0104] S204. Determine the second time threshold corresponding to the waybill to be assigned.
[0105] S205. If the estimated delivery time is less than or equal to the second time threshold, determine whether the estimated delivery time is greater than or equal to the first time threshold. If the estimated delivery time is greater than or equal to the first time threshold, execute steps S206 to S208. If the estimated delivery time is less than the first time threshold, execute steps S209 to S211.
[0106] The second time threshold is greater than the first time threshold.
[0107] In this step, if the estimated delivery time is determined to be less than or equal to the second time threshold, it means that the order to be assigned can be assigned to the target rider. A second preset extension time can be obtained, and the sum of the estimated delivery time corresponding to the order to be assigned and the second preset extension time can be calculated. This sum is then used as the first time threshold. Afterwards, it can be determined whether the estimated delivery time is greater than or equal to the first time threshold.
[0108] The second preset extension time can be determined based on the time increments of multiple historical movements. Figure 3 This is an exemplary embodiment of the present disclosure illustrating a time-consuming increment distribution histogram, such as... Figure 3 As shown, the horizontal axis represents the time increment when the waybill is delivered (the time increment based on the estimated delivery time), and the vertical axis represents the frequency of the waybill. Through the analysis of the time increment of multiple waybills, it can be seen that the waybill with a time increment of 8 minutes is the most numerous, and it can be determined that the second preset extension time is 8 minutes.
[0109] S206. Determine the time increment after the target rider delivers the assigned order.
[0110] In this step, if the estimated delivery time is greater than or equal to the first time threshold, it means that the target rider will exceed the latest delivery time according to the normal delivery method (not along the route). In this case, the time increment after the target rider delivers the assigned order (the assigned order is added to the order to be delivered) can be determined so that the first time threshold for the target rider to deliver the assigned order can be adjusted according to the time increment.
[0111] In one possible implementation, a first delivery time for the target rider to deliver the order to be delivered, and a second delivery time for the target rider to deliver both the order to be assigned and the order to be delivered, can be determined. The difference between the second delivery time and the first delivery time is then used as the time increment. For example, the first delivery time for the target rider to deliver the order to be delivered can be determined based on the delivery route information of the target rider delivering the order to be delivered. The second delivery time for the target rider to deliver both the order to be assigned and the order to be delivered can be determined based on the delivery route information of the target rider delivering both the order to be assigned and the order to be delivered. Then, the difference between the second delivery time and the first delivery time is calculated, and this difference is used as the time increment.
[0112] S207. Based on the time increment, determine the delivery extension time corresponding to the waybill to be assigned.
[0113] In this step, after determining the time increment after the target rider delivers the order to be assigned, the first extended time corresponding to the time increment can be determined according to the pre-set first extended time association relationship. The first extended time association relationship can include the correspondence between different time increments and extended times.
[0114] It should be noted that the smaller the time increment, the more convenient the route is for the target rider. When the route is relatively convenient (small time increment), after assigning the route to the target rider, a new route can be assigned to the same rider. Based on this, a larger first extension time can be set. Conversely, when the route is not convenient (large time increment), after assigning the route to the target rider, no new route can be assigned (it cannot be delivered before the second time threshold after assignment). Based on this, a smaller first extension time can be set.
[0115] The first delay time relationship can be represented by a quadratic function. The horizontal axis of the curve corresponding to this quadratic function can be the time increment, and the vertical axis can be the first extension time. Continuing with... Figure 3 Taking the second preset extension time shown as an example, the second preset extension time is 8 minutes, and the first preset extension time is 15 minutes. In this case, the maximum first extension time is 7 minutes. Figure 3It can also be determined that the average time increment for each waybill cannot exceed 8 minutes. Based on this, the intersection of the curve corresponding to the first extended time correlation with the horizontal axis is (8,0), and the intersection of the curve corresponding to the first extended time correlation with the vertical axis is (0,7). Substituting the coordinates of the two intersection points into the quadratic function corresponding to the first extended time correlation, the quadratic function expression corresponding to the first extended time correlation can be obtained. Figure 4 This is a graph illustrating the first extended time correlation relationship according to an exemplary embodiment of the present disclosure, such as... Figure 4 As shown, the horizontal axis represents the time increment, and the vertical axis represents the first preset extension time.
[0116] S208. Adjust the first time threshold according to the delivery extension time.
[0117] The first time threshold can be the latest time that the target rider can deliver the order to be assigned.
[0118] In this step, after determining the delivery extension time corresponding to the order to be assigned, the sum of the first time threshold and the first extension time can be used as the new first time threshold, and the target rider can deliver the order to be assigned according to the new first time threshold.
[0119] S209. Determine the delivery time margin corresponding to the target delivery order.
[0120] In this context, the target delivery order can be a delivery order to be delivered by the target rider after the assigned delivery order. Figure 5 This is a schematic diagram of a target delivery note according to an exemplary embodiment of the present disclosure, such as... Figure 5 As shown, D3 is the waybill to be assigned, and D1 and D2 are the target waybills to be delivered.
[0121] In this step, if the estimated delivery time is less than the first time threshold, it means that the order to be assigned is very convenient for the target rider. If the target rider adds the order to be assigned to the target rider based on the order to be assigned, it will not increase the time consumption too much. In this case, the delivery time margin corresponding to the target order to be assigned can be determined, and it can be determined whether a new order can be assigned to the rider based on the delivery time margin.
[0122] The target delivery order can include multiple orders. For each target delivery order, the difference between the estimated delivery time and the first time threshold can be determined. This difference is used as the delivery time margin for the target delivery order. Then, the sum of the delivery time margins of multiple orders can be used as the delivery time margin for the target delivery order.
[0123] S210. Determine the time slot corresponding to the waybill to be assigned.
[0124] The time schedule can be used to characterize the average time taken for the target rider to deliver the assigned order; the time schedule can include static time schedule and dynamic time schedule. The static time schedule can reflect the current route information of the target rider to deliver the assigned order and the order to be delivered, while the dynamic time schedule can reflect the route information of the target rider to deliver the assigned order and the order to be delivered in the future time period.
[0125] In this step, after determining the delivery time margin corresponding to the target delivery order, a preset time margin threshold can be obtained first. If the delivery time margin is greater than or equal to the preset time margin threshold, the time allocation corresponding to the delivery order is determined. The preset time margin threshold can be the minimum time required to deliver one delivery order.
[0126] In one possible implementation, the delivery time for the target rider to deliver the assigned and undelivered orders can be determined based on the order information and delivery details. Based on this delivery time, the average delivery time for each order within the assigned and undelivered orders can be determined, and this average delivery time is used as the static time allocation. The dynamic time allocation is then determined using a pre-trained time allocation determination model based on the order information and delivery details. This time allocation determination model can be trained using existing model training methods, which will not be elaborated here. For example, if the delivery time for the target rider to deliver the assigned and undelivered orders is determined to be 20 minutes, and the number of assigned and undelivered orders is 5, then the static time allocation can be determined to be 4 minutes.
[0127] S211. Adjust the first time threshold according to the delivery time margin and the time occupancy.
[0128] In this step, if the static time operation and the dynamic time operation meet the preset time operation conditions, the operation difference between the static time operation and the dynamic time operation is determined; according to the preset second extension time correlation relationship, the second extension time corresponding to the operation difference is determined, the second extension time correlation relationship includes the correspondence between different operation differences and extension times; the sum of the first time threshold and the second extension time is used as the new first time threshold.
[0129] The preset time operation conditions may include: the difference between the static time operation and the dynamic time operation is less than or equal to a preset difference threshold; or, the ratio between the static time operation and the dynamic time operation is less than or equal to a preset ratio threshold. The preset difference threshold and the preset ratio threshold can be obtained through pre-testing. For example, the preset difference threshold may be 5 minutes, and the preset ratio threshold may be 1.5.
[0130] If the static time allocation and the dynamic time allocation meet the preset time allocation conditions, it means that after the order to be assigned is assigned to the target rider, the target rider can continue to accept new orders. In this case, the first time threshold can be adjusted so that the target rider can be successfully matched with new orders.
[0131] This disclosure uses a quadratic function to represent the second delay time correlation. The horizontal axis of the curve corresponding to this quadratic function can be the operation difference, and the vertical axis of the curve can be the second delay time. Continuing with... Figure 3 Taking the second preset extension time shown as an example, the second preset extension time is 8 minutes, and the first preset extension time is 15 minutes. In this case, the maximum second extension time is 7 minutes. Figure 6 This is a time operation diagram illustrated according to an exemplary embodiment of the present disclosure, such as... Figure 6 As shown, the horizontal axis represents the operational difference, and the vertical axis represents the frequency. Figure 6 It can be seen that the most frequent waybills have a 4-minute delay. Therefore, for waybills with a delay greater than or equal to 4 minutes, the maximum second extension time is set. For waybills with a delay of 0 minutes, the second extension time is also set to 0 minutes. Based on this, we can obtain two points (0, 0) and (4, 7) on the curve corresponding to the second extension time relationship. Substituting the coordinates of the two points into the quadratic function corresponding to the second extension time relationship, we can obtain the quadratic function expression corresponding to the second delay time relationship. Figure 7 This is a second extended time correlation curve diagram illustrated according to an exemplary embodiment of the present disclosure, such as... Figure 7 As shown, the horizontal axis represents the operation difference, and the vertical axis represents the second preset extension time.
[0132] Using the above method, the estimated delivery time of each pending order can be determined by combining the pending order information of the target rider. The first time threshold corresponding to this pending order is then adjusted based on the estimated delivery time, making the delivery time for the target rider more reasonable. This improves the rider's delivery experience while ensuring delivery efficiency. Furthermore, adjusting the first time threshold based on delivery time leeway allows the target rider to take on more orders along their route in the future, further improving the rider's delivery experience while maintaining delivery efficiency. Additionally, the adjustment of the first time threshold is dynamic and based on different riders, without needing to adjust the existing model, thus avoiding impacting the accuracy of the existing model.
[0133] Figure 8 This is a block diagram illustrating a waybill processing apparatus according to an exemplary embodiment of the present disclosure, such as... Figure 8 As shown, the device may include:
[0134] The pending delivery order information acquisition module 801 is used to acquire the pending delivery order information of the target rider when a pending delivery order is received.
[0135] The route information determination module 802 is used to determine the delivery route information corresponding to the target rider based on the dispatch order information and the delivery order information.
[0136] The estimated delivery time determination module 803 is used to determine the estimated delivery time for the target rider to deliver the assigned order based on the delivery route information.
[0137] The first time threshold adjustment module 804 is used to adjust the first time threshold corresponding to the order to be assigned according to the estimated delivery time when it is determined that the order to be assigned to the target rider based on the estimated delivery time. The first time threshold is the latest time when the target rider delivers the order to be assigned.
[0138] Optionally, the first time threshold adjustment module 804 is further configured to:
[0139] Determine the second time threshold corresponding to the waybill to be assigned;
[0140] If the estimated delivery time is less than or equal to the second time threshold, the waybill to be assigned is determined to be assigned to the target rider.
[0141] Optionally, the first time threshold adjustment module 804 is further configured to:
[0142] Obtain the first preset extension time;
[0143] Determine the estimated delivery time for the waybill to be assigned;
[0144] The sum of the estimated delivery time and the first preset extension time is used as the second time threshold.
[0145] Optionally, the first time threshold adjustment module 804 is further configured to:
[0146] If the estimated delivery time is less than or equal to the second time threshold and greater than or equal to the first time threshold, the time increment after the target rider delivers the order to be assigned is determined, and the second time threshold is greater than the first time threshold.
[0147] Based on this time increment, determine the delivery extension time corresponding to the waybill to be assigned;
[0148] Adjust the first time threshold based on the delivery extension time.
[0149] Optionally, the first time threshold adjustment module 804 is further configured to:
[0150] Determine the first delivery time for the target rider to deliver the order to be delivered, and the second delivery time for the target rider to deliver both the order to be assigned and the order to be delivered.
[0151] The difference between the second delivery time and the first delivery time is taken as the time increment.
[0152] Optionally, the first time threshold adjustment module 804 is further configured to:
[0153] According to the pre-set first extension time association relationship, determine the first extension time corresponding to the time increment, and the first extension time association relationship includes the correspondence between different time increments and extension times;
[0154] The adjustment of the first time threshold based on the delivery extension time includes:
[0155] The sum of the first time threshold and the first extended time is used as the new first time threshold.
[0156] Optionally, Figure 9 This is a block diagram illustrating another waybill processing apparatus according to an exemplary embodiment of the present disclosure, such as Figure 9 As shown, the device also includes:
[0157] The delivery time margin determination module 805 is used to determine the delivery time margin corresponding to the target delivery order when the estimated delivery time is less than the first time threshold. The target delivery order is the delivery order to be delivered by the target rider after the assigned delivery order.
[0158] The time allocation determination module 806 is used to determine the time allocation corresponding to the order to be assigned. The time allocation is used to characterize the average time taken for the target rider to deliver the order to be assigned.
[0159] The first time threshold adjustment module 804 is also used to adjust the first time threshold according to the delivery time margin and the time occupancy.
[0160] The aforementioned device can be used to determine the estimated delivery time of the assigned order by combining the information of the order to be delivered to the target rider. The first time threshold corresponding to the order to be delivered can be adjusted according to the estimated delivery time. This makes the order delivery time of the target rider more reasonable, thereby improving the rider's delivery experience while ensuring the rider's delivery efficiency.
[0161] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0162] Figure 10 This is a block diagram illustrating an electronic device 1000 according to an exemplary embodiment of the present disclosure. For example, the electronic device 1000 may be provided as a server. (Refer to...) Figure 10 The electronic device 1000 includes a processor 1022, which may be one or more, and a memory 1032 for storing computer programs executable by the processor 1022. The computer program stored in the memory 1032 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processor 1022 may be configured to execute the computer program to perform the aforementioned waybill processing method.
[0163] Additionally, the electronic device 1000 may also include a power supply component 1026 and a communication component 1050. The power supply component 1026 can be configured to perform power management of the electronic device 1000, and the communication component 1050 can be configured to enable communication of the electronic device 1000, such as wired or wireless communication. Furthermore, the electronic device 1000 may also include an input / output interface 1058. The electronic device 1000 can operate on an operating system, such as Windows Server, stored in the memory 1032. TM Mac OS X TM Unix TM Linux TM etc.
[0164] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the waybill processing method described above. For example, the computer-readable storage medium may be the memory 1032 including program instructions described above, which may be executed by the processor 1022 of the electronic device 1000 to complete the waybill processing method described above.
[0165] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the above-described waybill processing method when executed by the programmable device.
[0166] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure. It should also be noted that the various specific technical features described in the above embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this disclosure will not further describe the various possible combinations.
[0167] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.
Claims
1. A waybill processing method, characterized in that, The method includes: Upon receiving a pending delivery order, obtain the pending delivery order information for the target rider. Based on the information of the pending dispatch order and the information of the pending delivery order, the delivery route information corresponding to the target rider is determined. Based on the delivery route information, the estimated delivery time for the target rider to deliver the assigned order is determined. Determine the second time threshold corresponding to the waybill to be assigned; If the estimated delivery time is less than or equal to the second time threshold, it is determined that the order to be assigned will be assigned to the target rider. If the estimated delivery time is less than or equal to the second time threshold and greater than or equal to the first time threshold, the time increment after the target rider delivers the assigned order is determined. The second time threshold is greater than the first time threshold, and the first time threshold is the latest time when the target rider delivers the assigned order. Based on the time increment, determine the delivery extension time corresponding to the waybill to be assigned; Adjust the first time threshold based on the delivery extension time.
2. The method according to claim 1, characterized in that, The determination of the second time threshold corresponding to the waybill to be assigned includes: Obtain the first preset extension time; Determine the estimated delivery time corresponding to the waybill to be assigned; The sum of the estimated delivery time and the first preset extension time is used as the second time threshold.
3. The method according to claim 1, characterized in that, The time increment after determining the target rider to deliver the assigned order includes: Determine the first delivery time for the target rider to deliver the order to be delivered, and the second delivery time for the target rider to deliver the order to be assigned and the order to be delivered; The difference between the second delivery time and the first delivery time is used as the time increment.
4. The method according to claim 1, characterized in that, The step of determining the delivery extension time corresponding to the waybill to be assigned based on the time increment includes: According to a pre-set first extension time association relationship, the first extension time corresponding to the time increment is determined, and the first extension time association relationship includes the correspondence between different time increments and extension times; The step of adjusting the first time threshold based on the delivery extension time includes: The sum of the first time threshold and the first extended time is used as the new first time threshold.
5. The method according to claim 1, characterized in that, The method further includes: If the estimated delivery time is less than the first time threshold, the delivery time margin corresponding to the target delivery order is determined. The target delivery order is the delivery order to be delivered by the target rider after the assigned delivery order. Determine the time segment corresponding to the order to be assigned, wherein the time segment is used to characterize the average time taken by the target rider to deliver the order to be assigned; The first time threshold is adjusted based on the delivery time margin and the time occupancy.
6. A waybill processing device, characterized in that, The device includes: The pending delivery order information acquisition module is used to acquire the pending delivery order information of the target rider when a pending delivery order is received. The route information determination module is used to determine the delivery route information corresponding to the target rider based on the dispatch order information and the delivery order information to be delivered. The estimated delivery time determination module is used to determine the estimated delivery time for the target rider to deliver the assigned waybill based on the delivery route information. The first time threshold adjustment module is used to determine the second time threshold corresponding to the order to be assigned, and when the estimated delivery time is less than or equal to the second time threshold, determine to assign the order to the target rider. When the estimated delivery time is less than or equal to the second time threshold and greater than or equal to the first time threshold, determine the time increment after the target rider delivers the order to be assigned, wherein the second time threshold is greater than the first time threshold, and the first time threshold is the latest time when the target rider delivers the order to be assigned. The module determines the delivery extension time corresponding to the order to be assigned based on the time increment, and adjusts the first time threshold based on the delivery extension time.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1-5.
8. An electronic device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1-5.
Citation Information
Patent Citations
Order allocation method and device, computer readable storage medium and electronic equipment
CN110414731A
Order scheduling method and device, storage medium and electronic equipment
CN113887773A