Order scheduling method and device

By calculating the local optimal matching degree of delivery personnel and orders in parallel, it solves the problem that the existing scheduling algorithm takes too long when the order volume increases, and improves scheduling efficiency and real-time performance.

CN110288232BActive Publication Date: 2024-09-24BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910556285.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-25
Publication Date
2024-09-24
Estimated Expiration
2039-06-25

Smart Images

  • Figure CN110288232B
    Figure CN110288232B
Patent Text Reader

Abstract

The present application provides an order scheduling method, device, computer-readable storage medium and electronic device. The method includes: obtaining orders to be assigned and couriers to be assigned; calculating the degree of match between each couriers and each order; for each order, selecting the locally optimal degree of match from the degrees of match with each couriers and determining the couriers corresponding to the locally optimal degree of match as target couriers; assigning each order to the corresponding target couriers. The application of the present application can improve the efficiency of order scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to an order scheduling method, device, computer storage medium and electronic device. Background Art

[0002] In related technologies, in order to improve the efficiency of logistics distribution, the scheduling system needs to match orders and delivery personnel and assign the best delivery personnel to the orders.

[0003] However, in order to select the best delivery person, the existing scheduling algorithm can only match and schedule one order at a time. As the number of orders continues to grow, the scheduling algorithm takes longer and longer to run. Summary of the invention

[0004] In view of this, the present application provides an order scheduling method, device, computer storage medium and electronic device to solve the above-mentioned problem of low order scheduling efficiency.

[0005] Specifically, the present application is implemented through the following technical solutions:

[0006] An order scheduling method, the method comprising:

[0007] Get the orders to be distributed and the delivery personnel to be assigned;

[0008] Calculate the matching degree between each delivery person and each order;

[0009] For each order, the locally optimal matching degree is selected from the matching degrees with various couriers, and the couriers corresponding to the locally optimal matching degree are determined as the target couriers;

[0010] Assign each order to the corresponding target delivery person.

[0011] Optionally, for calculating the matching degree between each delivery person and each order, the process of calculating the matching degree between any delivery person and any order includes:

[0012] Obtain a first path of the delivery person before being assigned to the order and a second path of the delivery person after being assigned to the order;

[0013] The distance increment and / or similarity between the first path and the second path are calculated, and the distance increment and / or similarity are used as the matching degree between the delivery person and the order.

[0014] Optionally, before assigning each order to a corresponding target delivery person, the method further includes:

[0015] If there are at least two orders that have determined the same target delivery person, selecting the target order with the best matching degree from the matching degrees between the at least two orders and the target delivery person;

[0016] A target delivery person is determined for the orders among the at least two orders except the target order.

[0017] Optionally, determining a target delivery person for an order other than the target order among the at least two orders includes:

[0018] Deleting the matching degree between the order for which the target delivery person has been determined and each delivery person, and recalculating the matching degree between each delivery person and each order of the at least two orders except the target order;

[0019] For each order among the at least two orders except the target order, repeatedly selecting a locally optimal matching degree from the matching degrees with each delivery person and determining the delivery person corresponding to the locally optimal matching degree as the target delivery person.

[0020] Optionally, the order to be allocated and the delivery person to be assigned meet preset conditions.

[0021] Optionally, the preset condition includes at least one of the following:

[0022] The orders to be allocated belong to the same delivery area;

[0023] The delivery personnel to be assigned belong to the same delivery area;

[0024] The order to be distributed and the delivery person to be assigned belong to the same delivery area.

[0025] Optionally, after selecting the locally optimal matching degree from the matching degrees with the couriers and determining the couriers corresponding to the locally optimal matching degree as the target couriers, the method further includes:

[0026] Marking the target delivery person with an order ID of the corresponding order;

[0027] The step of assigning each order to a corresponding target delivery person includes:

[0028] The order corresponding to the order ID is assigned based on the order ID marked by each target delivery person.

[0029] An order scheduling device, comprising:

[0030] Acquisition unit, to obtain the orders to be distributed and the delivery personnel to be assigned;

[0031] A calculation unit calculates the matching degree between each delivery person and each order;

[0032] A selection unit, for each order, selects a locally optimal matching degree from the matching degrees with various couriers and determines the couriers corresponding to the locally optimal matching degree as target couriers;

[0033] The dispatching unit assigns each order to the corresponding target delivery person.

[0034] A computer-readable storage medium stores a computer program, wherein the computer program is used to execute any of the order scheduling methods described above.

[0035] An electronic device, comprising:

[0036] processor;

[0037] a memory for storing processor-executable instructions;

[0038] The processor is configured to implement any of the order scheduling methods described above.

[0039] The embodiment of the present application provides an order scheduling solution. For each order, the locally optimal matching degree is selected from the matching degrees with various couriers and the couriers corresponding to the locally optimal matching degree are determined as the target couriers. One order scheduling can assign the corresponding couriers to each order. In this way, through parallel processing, the real-time performance and system throughput are improved while reducing the consumption of the scheduling algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1a-1b It is a schematic diagram of the process of executing order scheduling using the existing order scheduling scheme;

[0041] Figure 2 is a flow chart of an order scheduling method shown in an exemplary embodiment of the present application;

[0042] Figure 3a-3c It is a schematic diagram of the process of executing order scheduling using the order scheduling solution provided by this application;

[0043] Figure 4 is a hardware structure diagram of an order scheduling device shown in an exemplary embodiment of the present application;

[0044] Figure 5 It is a module diagram of an order scheduling device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0045] 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, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0046] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims 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 herein refers to and includes any or all possible combinations of one or more associated listed items.

[0047] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these 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 the present application, 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".

[0048] As mentioned above, in order to select the best delivery person, the existing scheduling algorithm can only match and schedule one order at a time. As the number of orders continues to grow, the operation time of the scheduling algorithm is also getting longer and longer.

[0049] Specifically, the increase in computing time often occurs in the following aspects:

[0050] 1: The longer the operation time, the greater the difference between the dispatch time and the data collection time. Since the location of the delivery person is constantly moving, the status of the assigned order is constantly changing, and the effect of the dispatch will also be affected.

[0051] 2: Business needs place high demands on the real-time performance of the scheduling algorithm. Newly created orders usually need to be scheduled and assigned in a short period of time. As the number of orders increases, the operation time cannot meet the timeliness requirements.

[0052] 3. The scheduling system distributes the order tasks of each region to the server cluster, which then processes the tasks serially. Since it is serial processing, the problem of long computing time cannot be solved by simply expanding the cluster capacity.

[0053] The following is a detailed introduction to the existing scheduling algorithms:

[0054] Step 1: Get the orders to be distributed and the delivery personnel to be assigned;

[0055] Step 2: Calculate the matching degree between each delivery person and each order.

[0056] Step 3: Select the globally optimal matching degree from all the delivery degrees, determine the order and the delivery person corresponding to the globally optimal matching degree as the target order and the target delivery person, and assign the target order to the target delivery person;

[0057] Step 4: Delete the matching degree between the target order and each delivery person, recalculate the matching degree between the target delivery person and each order other than the target order, and repeat step 3.

[0058] For example, at a certain scheduling time, there are 10 new orders, numbered 1 to 10, and 15 deliverymen, numbered 1 to 15.

[0059] First, we need to calculate the matching degree between each order and each delivery person. Figure 1a The matrix shown in the figure can be constructed by the matching degree of 15 rows and 10 columns. The 15 rows correspond to 15 delivery persons, and the 10 columns correspond to 10 orders; the matching degree in the matrix indicates the matching degree between the delivery persons in the row and the orders in the column. The matching degree can be a value between 0 and 1. In this example, the lower the value, the higher the matching degree, and the higher the value, the lower the matching degree.

[0060] It is worth mentioning that the matrix can also be converted into a matching matrix of 10 rows and 15 columns; in this case, the rows correspond to the orders and the columns correspond to the delivery personnel.

[0061] exist Figure 1a It can be found that the value between order No. 9 and deliveryman No. 2 is the lowest, which indicates the highest degree of matching, which is the global optimal matching degree; therefore, it can be determined that deliveryman No. 2 is the best deliveryman for order No. 9, so order No. 9 can be assigned to deliveryman No. 2.

[0062] like Figure 1b As shown in the figure, after completing order No. 9, order No. 9 can be deleted from the matrix. Since the deliveryman No. 2 has newly accepted order No. 9, which will cause the current route of deliveryman No. 2 to change, it is necessary to recalculate the matching degree between deliveryman No. 2 and other orders except order No. 9 ( Figure 1b marked with a dotted box).

[0063] like Figure 1bAs shown in the figure, on the one hand, since order No. 9 has been assigned, order No. 9 can be deleted from the matrix. On the other hand, since the deliveryman No. 2 has received order No. 9, the current route of deliveryman No. 2 will change. Therefore, it is necessary to recalculate the matching degree between deliveryman No. 2 and other orders (1-8 and order No. 10) except order No. 9 ( Figure 1b marked with a dotted box).

[0064] Then continue to find the minimum value in the matrix, that is, the global optimal delivery degree, and assign the corresponding order to the delivery person. Repeat the above steps to complete the assignment of all orders.

[0065] It can be seen that since the global optimal delivery degree needs to be selected each time, these 10 orders need to be scheduled 10 times, and the assigned deliveryman's path needs to be updated after each scheduling to recalculate the matching degree between the assigned deliveryman and other orders (the number of times the deliveryman's path and matching degree are updated is proportional to the number of orders). That is, in the existing solution, order scheduling is serial and the scheduling efficiency is not high.

[0066] To this end, the present application provides an order scheduling solution. For each order, the locally optimal matching degree is selected from the matching degrees with various delivery personnel and the delivery personnel corresponding to the locally optimal matching degree is determined as the target delivery personnel. One order scheduling can assign the corresponding delivery personnel to each order. In this way, through parallel processing, the real-time performance and system throughput are improved while reducing the consumption of the scheduling algorithm. The parallel processing can mean that by matching each order with a target delivery personnel, only one scheduling is needed to complete the assignment of all orders at the same time.

[0067] Figure 2 This is a flowchart of a method for order scheduling shown in an exemplary embodiment of the present application. The method can be applied in a server for order scheduling (hereinafter referred to as the server). The method may specifically include the following steps:

[0068] Step 210: Obtain the orders to be distributed and the delivery personnel to be assigned.

[0069] First, the orders to be assigned and the delivery personnel to be assigned that the server needs to obtain must meet certain conditions, such as the orders to be assigned must belong to the same delivery area, the delivery personnel to be assigned must belong to the same delivery area, or both the orders to be assigned and the delivery personnel to be assigned belong to the same delivery area. In this way, since the orders to be assigned and the delivery personnel to be assigned are located in the same delivery area, the delivery personnel can quickly deliver the orders after being assigned, thereby improving the efficiency of the order scheduling.

[0070] Assume that we have J orders to be assigned and I couriers to be assigned. Then, we can construct a J*I or I*J matrix.

[0071] Taking the I*J matrix as an example, the I row corresponds to I delivery personnel, and the J column corresponds to J orders. The matrix has I*J matching degrees; among them, the i-th row and the j-th column represent the matching degree between the i-th delivery personnel and the j-th order, j is [1, J], and i is [1, I].

[0072] Taking the J*I matrix as an example, J rows correspond to J orders, and I columns correspond to I delivery personnel. The matrix has J*I matching degrees; among them, the j-th row and the i-th column represent the matching degree between the i-th delivery person and the j-th order, where j is [1, J] and i is [1, I].

[0073] It is worth mentioning that the order to be assigned can be obtained from the order pool, and the delivery person to be assigned can be obtained from the delivery person pool. Usually, the order pool and the delivery person pool can be dynamically changed. For example, newly added orders need to be added to the order pool, and the delivery persons who are online need to be added to the order pool. If the order to be assigned is cancelled, it needs to be deleted from the order pool, and when the delivery person goes offline, the delivery person needs to be deleted from the delivery person pool.

[0074] If the server has obtained the orders to be allocated and the couriers to be assigned, and after executing subsequent steps, new orders are added to the order pool or new couriers are added to the couriers pool; at this time, the server can add the newly added orders and / or couriers to the matrix, that is, calculate the matching degree between the newly added orders and all couriers, and calculate the matching degree between the newly added couriers and all orders.

[0075] For canceled orders or offline delivery personnel, the matching degree between the canceled orders and all delivery personnel is deleted from the matrix, and the matching degree between the offline delivery personnel and all orders is deleted from the matrix.

[0076] Step 220: Calculate the matching degree between each delivery person and each order.

[0077] For the matrix of couriers and orders, the matching degree between each couriers and each order in the matrix is ​​calculated.

[0078] In one embodiment, the matching degree between each delivery person and each order is calculated, wherein the matching degree between any delivery person and any order is calculated by:

[0079] Get the first path of the delivery person before the order is assigned and the second path after the order is assigned;

[0080] The distance increment between the first path and the second path is calculated, and the distance increment is used as the matching degree between the delivery person and the order.

[0081] In this embodiment, the distance increment is used as the basis for the matching degree; the lower the value of the distance increment is, the higher the matching degree is; conversely, the higher the value of the distance increment is, the lower the matching degree is.

[0082] In another embodiment, with respect to calculating the matching degree between each delivery person and each order, the process of calculating the matching degree between any delivery person and any order specifically includes:

[0083] Get the first path of the delivery person before the order is assigned and the second path after the order is assigned;

[0084] The similarity between the first path and the second path is calculated, and the similarity is used as the matching degree between the delivery person and the order.

[0085] In this embodiment, the degree of similarity is used as the basis for the degree of matching; the lower the value of the degree of similarity, the lower the degree of matching; conversely, the higher the value of the degree of similarity, the higher the degree of matching.

[0086] Step 230: for each order, select the locally optimal matching degree from the matching degrees with each delivery person and determine the delivery person corresponding to the locally optimal matching degree as the target delivery person;

[0087] Step 240: Assign each order to a corresponding target delivery person.

[0088] For example, let's say there are 10 new orders, numbered 1 to 10, and 15 couriers, numbered 1 to 15.

[0089] After executing steps 210 and 220, the above Figure 1a Schematic diagram of the same matrix.

[0090] Afterwards, for each order, the locally optimal matching degree is selected from the matching degrees with each delivery person (assuming that the distance increment is used as the matching degree in this embodiment, the lower the value, the higher the matching degree; conversely, the higher the value, the lower the matching degree) and the delivery person corresponding to the locally optimal matching degree is determined as the target delivery person for the order. Figure 3a As shown in , the target delivery person with the local optimal matching degree corresponding to each order is marked. Specifically,

[0091] The target deliveryman with the local optimal matching degree for order No. 1 is deliveryman No. 5;

[0092] The target deliveryman with the local optimal matching degree for order No. 2 is deliveryman No. 7;

[0093] The target deliveryman with the local optimal matching degree for order No. 3 is deliveryman No. 14;

[0094] The target deliveryman with the local optimal matching degree for order No. 4 is deliveryman No. 6;

[0095] The target deliveryman with the local optimal matching degree for order No. 5 is deliveryman No. 4;

[0096] The target deliveryman with the local optimal matching degree for order No. 6 is deliveryman No. 9;

[0097] The target deliveryman with the local optimal matching degree for order No. 7 is deliveryman No. 5;

[0098] The target deliveryman with the local optimal matching degree for order No. 8 is deliveryman No. 3;

[0099] The target deliveryman with the local optimal matching degree for order No. 9 is deliveryman No. 2;

[0100] The target deliveryman with the local optimal matching degree for order No. 10 is deliveryman No. 7.

[0101] Then, find the best order for each delivery person; there are three cases:

[0102] 1. The delivery person does not have a corresponding order;

[0103] For example, for deliveryman No. 1, there is no order marking this deliveryman as the target deliveryman.

[0104] For this type of delivery personnel, no action is required.

[0105] 2. The delivery person has a corresponding order:

[0106] For example, if the deliveryman is No. 2, only Order No. 9 marks him as the target deliveryman;

[0107] For this type of deliveryman, just assign the corresponding order to him. For example, assign order No. 9 to deliveryman No. 2.

[0108] 3. The delivery person has at least two corresponding orders:

[0109] Specifically, if there are at least two orders that simultaneously determine the same target delivery person, a target order with the best matching degree is selected from the matching degrees between the at least two orders and the target delivery person;

[0110] A target delivery person is determined for the orders among the at least two orders except the target order.

[0111] For example, deliveryman No. 5 is marked as the target deliveryman by two orders, namely, order No. 1 and order No. 7.

[0112] For this type of deliveryman, it is necessary to select the order with the smallest matching degree value from multiple corresponding orders. Since the value of order No. 1 is less than the value of order No. 7, order No. 1 is assigned to deliveryman No. 5.

[0113] The marking in the present application may mean: after determining the target delivery person for the order, marking the target delivery person with the order identification of the order.

[0114] The order identifier may refer to unique information of the order, such as an order number, order ID, etc.

[0115] The form of the marking may be to establish a corresponding relationship or mapping relationship between the target delivery person and the order identifier; or, to add a new field for the target delivery person, and the content of the field is the order identifier.

[0116] Furthermore, based on the order number marked by the deliveryman, it can be determined how many orders have identified the deliveryman as the optimal target deliveryman.

[0117] like Figure 3b As shown: It can be seen that both deliveryman No. 5 and deliveryman No. 7 are marked as target deliverymen by multiple orders. Specifically, Figure 3b As marked by the dotted box, deliveryman No. 5 is marked as the target deliveryman by both order No. 1 and order No. 7; deliveryman No. 7 is marked as the target deliveryman by both order No. 2 and order No. 10.

[0118] Furthermore, it is necessary to select target orders for deliverymen No. 5 and No. 7 (select the waybill with the smallest matching degree for assignment), that is, order No. 1 is assigned to deliveryman No. 5, and order No. 2 is assigned to deliveryman No. 7.

[0119] At this point, among orders 1 to 10, only orders 7 and 10 have not yet determined the target delivery personnel; therefore, the next step is to determine the target delivery personnel for orders 7 and 10.

[0120] In one embodiment, determining a target delivery person for an order other than the target order among the at least two orders includes:

[0121] Deleting the matching degree between the order for which the target delivery person has been determined and each delivery person, and recalculating the matching degree between each delivery person and each order of the at least two orders except the target order;

[0122] For each order among the at least two orders except the target order, repeatedly selecting a locally optimal matching degree from the matching degrees with each delivery person and determining the delivery person corresponding to the locally optimal matching degree as the target delivery person.

[0123] Continue to use Figure 3b , since the target delivery personnel have been determined for orders 1, 2, 3, 4, 5, 6, 8, and 9; therefore, Figure 3c As shown, the matching degree between orders 1, 2, 3, 4, 5, 6, 8, and 9 and each delivery person can be deleted from the matrix. Since these 8 orders have been determined to be assigned to 8 different delivery persons, it is necessary to recalculate the latest path of the delivery persons assigned to the orders as the path before the delivery persons are assigned to the orders; here, the latest paths of the delivery persons assigned to the orders can be respectively:

[0124] The route calculated by deliveryman No. 5 after being assigned order No. 1;

[0125] The route calculated by deliveryman No. 7 after being assigned order No. 2;

[0126] The route calculated by deliveryman No. 14 after being assigned order No. 3;

[0127] The route calculated by deliveryman No. 6 after being assigned order No. 4;

[0128] The route calculated by deliveryman No. 4 after being assigned order No. 5;

[0129] The route calculated by deliveryman No. 9 after being assigned order No. 6;

[0130] The route calculated by deliveryman No. 3 after being assigned order No. 8;

[0131] The route calculated by deliveryman No. 2 after being assigned order No. 9.

[0132] Please note that at this time, there are still orders No. 7 and No. 10 whose target couriers have not been determined. The matching degree between order No. 7 and each couriers and the matching degree between order No. 10 and each couriers in the matrix can be recalculated and updated later.

[0133] Then, for orders No. 7 and No. 10 (the orders other than the target order among the at least two orders at this time, i.e., the orders for which the target deliveryman has not yet been determined), except for orders No. 1, 2, 3, 4, 5, 6, 8, and 9 (the orders for which the target deliveryman has been determined at this time), step 230 is re-executed, i.e., for orders No. 7 and No. 10, the locally optimal matching degree is selected from the matching degrees with each deliveryman, and the deliveryman corresponding to the locally optimal matching degree is determined as the target delivery. This cycle is repeated until all orders are assigned.

[0134] It can be seen that the order scheduling solution described in this application reduces the number of times the delivery person's path and matching degree are updated through parallel processing; thereby reducing the scheduling algorithm consumption while improving real-time performance and system throughput.

[0135] Corresponding to the above-mentioned embodiment of the order scheduling method, the present application also provides an embodiment of the order scheduling device.

[0136] The embodiment of the order scheduling device of the present application can be applied on a server. The embodiment of the device can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Figure 4 As shown, it is a hardware structure diagram of the order scheduling device of this application, except Figure 4 In addition to the processor, memory, network interface, and non-volatile memory shown, the embodiments may also include other hardware according to the actual functions of the order scheduling, which will not be described in detail.

[0137] Please refer to Figure 5 In a software implementation, the order scheduling device may include:

[0138] An acquisition unit 310 acquires the order to be distributed and the delivery person to be assigned;

[0139] A calculation unit 320 calculates the matching degree between each delivery person and each order;

[0140] A selection unit 330 selects, for each order, a locally optimal matching degree from the matching degrees with various couriers and determines the couriers corresponding to the locally optimal matching degree as target couriers;

[0141] The scheduling unit 340 assigns each order to a corresponding target delivery person.

[0142] Optionally, with respect to the calculation unit 320, the matching degree between any delivery person and any order is calculated by the following subunits:

[0143] Obtain a subunit to obtain a first path of the delivery person before being assigned to the order and a second path of the delivery person after being assigned to the order;

[0144] The calculation subunit calculates the distance increment and / or similarity between the first path and the second path, and uses the distance increment and / or similarity as the matching degree between the delivery person and the order.

[0145] Optionally, before the scheduling unit 340, the device further includes:

[0146] A selection subunit, if there are at least two orders that simultaneously determine the same target delivery person, selecting a target order with the best matching degree from the matching degrees between the at least two orders and the target delivery person;

[0147] A determination subunit is provided to determine a target delivery person for an order among the at least two orders except the target order.

[0148] Optionally, the determining subunit includes:

[0149] An updating subunit deletes the matching degree between the order for which the target delivery person has been determined and each delivery person, and recalculates the matching degree between each delivery person and each order of the at least two orders except the target order;

[0150] The repeating subunit repeatedly selects the locally optimal matching degree from the matching degrees with each delivery person for each order in the at least two orders except the target order, and determines the delivery person corresponding to the locally optimal matching degree as the target delivery person.

[0151] Optionally, the order to be allocated and the delivery person to be assigned meet preset conditions.

[0152] Optionally, the preset condition includes at least one of the following:

[0153] The orders to be allocated belong to the same delivery area;

[0154] The delivery personnel to be assigned belong to the same delivery area;

[0155] The order to be distributed and the delivery person to be assigned belong to the same delivery area.

[0156] Optionally, after the selecting unit 330, the device further includes:

[0157] A marking subunit, marking the order identifier of the corresponding order for the target delivery person;

[0158] The scheduling unit 340 includes:

[0159] The order corresponding to the order ID is assigned based on the order ID marked by each target delivery person.

[0160] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0161] 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 units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0162] above Figure 5 The internal functional modules and structural schematic diagram of the order scheduling device are described. Its actual execution subject can be an electronic device, including:

[0163] processor;

[0164] a memory for storing processor-executable instructions;

[0165] Wherein, the processor is configured to:

[0166] Get the orders to be distributed and the delivery personnel to be assigned;

[0167] Calculate the matching degree between each delivery person and each order;

[0168] For each order, the locally optimal matching degree is selected from the matching degrees with various couriers, and the couriers corresponding to the locally optimal matching degree are determined as the target couriers;

[0169] Assign each order to the corresponding target delivery person.

[0170] Optionally, for calculating the matching degree between each delivery person and each order, the process of calculating the matching degree between any delivery person and any order includes:

[0171] Obtain a first path of the delivery person before being assigned to the order and a second path of the delivery person after being assigned to the order;

[0172] The distance increment and / or similarity between the first path and the second path are calculated, and the distance increment and / or similarity are used as the matching degree between the delivery person and the order.

[0173] Optionally, before assigning each order to a corresponding target delivery person, the method further includes:

[0174] If there are at least two orders that have determined the same target delivery person, selecting the target order with the best matching degree from the matching degrees between the at least two orders and the target delivery person;

[0175] A target delivery person is determined for the orders among the at least two orders except the target order.

[0176] Optionally, determining a target delivery person for an order other than the target order among the at least two orders includes:

[0177] Deleting the matching degree between the order for which the target delivery person has been determined and each delivery person, and recalculating the matching degree between each delivery person and each order of the at least two orders except the target order;

[0178] For each order among the at least two orders except the target order, repeatedly selecting a locally optimal matching degree from the matching degrees with each delivery person and determining the delivery person corresponding to the locally optimal matching degree as the target delivery person.

[0179] Optionally, the order to be allocated and the delivery person to be assigned meet preset conditions.

[0180] Optionally, the preset condition includes at least one of the following:

[0181] The orders to be allocated belong to the same delivery area;

[0182] The delivery personnel to be assigned belong to the same delivery area;

[0183] The order to be distributed and the delivery person to be assigned belong to the same delivery area.

[0184] Optionally, after selecting the locally optimal matching degree from the matching degrees with the couriers and determining the couriers corresponding to the locally optimal matching degree as the target couriers, the method further includes:

[0185] Marking the target delivery person with an order ID of the corresponding order;

[0186] The step of assigning each order to a corresponding target delivery person includes:

[0187] The order corresponding to the order ID is assigned based on the order ID marked by each target delivery person.

[0188] In the above-mentioned embodiment of the electronic device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor, etc., and the aforementioned memory can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk, or a solid-state drive. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0189] Each embodiment in this application 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 electronic device embodiment, 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.

[0190] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An order scheduling method, It is characterized in that The method comprises: Get the orders to be distributed and the delivery personnel to be assigned; Calculate the matching degree between each delivery person and each order; for each order, select the local optimal matching degree from the matching degrees with each delivery person and determine the delivery person corresponding to the local optimal matching degree as the target delivery person; Assign each order to the corresponding target delivery person; Before assigning each order to a corresponding target delivery person, the method further includes: If there are at least two orders that have determined the same target delivery person, selecting the target order with the best matching degree from the matching degrees between the at least two orders and the target delivery person; Determining a target delivery person for an order other than the target order among the at least two orders; Wherein, determining a target delivery person for an order other than the target order among the at least two orders includes: Deleting the matching degree between the order for which the target delivery person has been determined and each delivery person, and recalculating the matching degree between each delivery person and each order of the at least two orders except the target order; For each order among the at least two orders except the target order, repeatedly selecting a locally optimal matching degree from the matching degrees with each delivery person and determining the delivery person corresponding to the locally optimal matching degree as the target delivery person.

2. The method according to claim 1, It is characterized in that Regarding the calculation of the matching degree between each delivery person and each order, the calculation process of the matching degree between any delivery person and any order includes: Obtain a first path of the delivery person before being assigned to the order and a second path of the delivery person after being assigned to the order; The distance increment and / or similarity between the first path and the second path are calculated, and the distance increment and / or similarity are used as the matching degree between the delivery person and the order.

3. The method according to claim 1, It is characterized in that The order to be allocated and the delivery person to be assigned meet the preset conditions.

4. The method according to claim 3, It is characterized in that The preset condition includes at least one of the following: The orders to be allocated belong to the same delivery area; The delivery personnel to be assigned belong to the same delivery area; The order to be distributed and the delivery person to be assigned belong to the same delivery area.

5. The method according to claim 1, It is characterized in that After selecting the locally optimal matching degree from the matching degrees with the respective delivery persons and determining the delivery person corresponding to the locally optimal matching degree as the target delivery person, the method further includes: Marking the target delivery person with an order ID of the corresponding order; The step of assigning each order to a corresponding target delivery person includes: The order corresponding to the order ID is assigned based on the order ID marked by each target delivery person.

6. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 5.

7. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to perform the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Order distribution calculating method and system, server, and storage medium

    CN107818498A

  • A distribution scheduling method and apparatus

    CN109214551A

  • Order processing method, apparatus, apparatus, and computer-readable storage medium

    CN109523202A

  • An electric vehicle path planning method and system based on double-strategy search

    CN109919365A