A method and device for determining the delivery range of a courier

By dividing the map of the delivery site into multiple grids and using the multi-traveling salesman work balancing algorithm to determine the binding relationship between the courier and the grid, the problems of adjustment error and performance timeliness of the courier's delivery area in the existing technology are solved, and the implementation of Workload balancing and efficiency improvement.

CN112837003BActive Publication Date: 2024-09-20BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201911164499.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-25
Publication Date
2024-09-20
Estimated Expiration
2039-11-25

AI Technical Summary

Technical Problem

In the existing technology, the adjustment of the courier's delivery area mainly relies on manual adjustment, which has large errors and consumes a lot of manpower. It cannot guarantee the timeliness of contract performance and affects the delivery efficiency and user experience.

Method used

By dividing the map of the delivery site into multiple grids, the grid center point coordinates are collected based on historical orders, and the multi-traveling salesman work balancing algorithm is used to determine the binding relationship between the courier and the grid, adjust the delivery scope, and optimize fulfillment through simulation. Timeliness, re-grid to determine the delivery range of the courier.

Benefits of technology

It achieves a balance of courier workload, improves distribution efficiency, reduces labor costs, and optimizes courier performance timeliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112837003B
    Figure CN112837003B
Patent Text Reader

Abstract

The present invention discloses a method and device for determining the delivery range of a courier, and relates to the field of computer technology. A specific implementation of the method includes: dividing a map corresponding to the delivery area of ​​a delivery site into multiple grids; mapping historical orders belonging to the delivery site into the grids, and counting the orders in each grid; determining the coordinates of the center point of each grid based on the orders in each grid; determining the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes the delivery range of the courier. This implementation can adjust the delivery range of the courier, ensure the workload balance between couriers, improve delivery efficiency, and reduce labor costs; and further optimize the delivery range of each courier by simulating the delivery timeliness of the adjusted couriers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining a delivery range of a courier. Background Art

[0002] As the "last mile" of the logistics system, delivery directly faces the end customer. The overall capacity of the delivery link directly affects the customer's loyalty to the company. The division of delivery areas is conducive to rapid response to delivery needs and meeting the personalized needs of customers. However, each courier has a different delivery area, and the courier's workload may vary greatly.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: At present, the adjustment of the delivery area of ​​the courier mainly relies on the station manager and other management personnel to make manual adjustments based on the number of orders in each delivery area. This method has large errors and consumes a lot of manpower. In addition, manual adjustments cannot guarantee the courier's performance timeliness, thus affecting the delivery efficiency and user experience. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for determining the delivery range of a courier, which can adjust the delivery range of the courier, ensure the workload balance among the couriers, improve the delivery efficiency, and reduce the labor cost; and simulate the delivery timeliness of the adjusted courier, and further optimize the delivery range of each courier according to the simulation results.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for determining a courier's delivery range is provided, comprising:

[0006] Divide the map corresponding to the delivery area of ​​the delivery station into multiple grids;

[0007] Mapping historical orders belonging to the delivery site into the grids, and counting the orders in each grid;

[0008] Based on the order within each grid, determine the coordinates of the center point of each grid;

[0009] Based on the orders in each grid and the coordinates of the center point of each grid, the binding relationship between the courier and the grid is determined, wherein the grid bound to the courier constitutes the delivery range of the courier.

[0010] Optionally, determining the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid includes: determining the binding relationship between the courier and the grid using a multi-traveling salesman work equilibrium algorithm based on the orders in each grid and the coordinates of the center point of each grid.

[0011] Optionally, based on the orders in each grid and the coordinates of the center point of each grid, determining the binding relationship between the courier and the grid using the multi-traveling salesman work equilibrium algorithm includes:

[0012] With the goal of minimizing the delivery distance of each courier and the difference in order volume between couriers, and with the constraint that each grid can only be bound to one courier, the binding relationship between the courier and the grid is calculated; among which, the courier's delivery distance is determined according to the distance between the grids bound to the courier, and the courier's order volume is determined according to the number of orders in the grid bound to the courier.

[0013] Optionally, after determining the binding relationship between the courier and the grid, the method further includes: simulating the courier's fulfillment time based on the orders within the bound grid; and re-gridding the map corresponding to the delivery area according to the simulation results to redefine the courier's delivery range.

[0014] Optionally, based on the orders in the bound grid, simulating the fulfillment time of the courier includes:

[0015] Divide the orders within the grid bound to the courier into delivery orders and pickup orders;

[0016] Arrange the delivery orders in the order of completed delivery to construct a delivery order queue, and calculate the courier timestamp corresponding to each delivery order in turn according to the delivery orders; wherein the courier timestamp is determined according to the journey time, the delivery service time and the pickup service time;

[0017] Based on the pickup time of the pickup order and the courier timestamp corresponding to the delivery order, the pickup order is added to the delivery order queue to construct a courier fulfillment order queue;

[0018] The courier timestamp corresponding to each order in the courier's fulfillment order queue is calculated to simulate the courier's fulfillment timeliness.

[0019] Optionally, based on the pickup time of the pickup order and the time when the delivery order completes delivery, adding the pickup order to the delivery order queue includes:

[0020] Based on the pickup time of the pickup order and the time when the delivery order completes the delivery, the KNN proximity algorithm is used to determine the target delivery order closest to the pickup order, and the pickup order is added after the target delivery order.

[0021] To achieve the above object, according to another aspect of an embodiment of the present invention, a device for determining a delivery range of a courier is provided, comprising:

[0022] A grid division module, used to divide the map corresponding to the distribution area of ​​the distribution station into multiple grids;

[0023] An order mapping module, used to map the historical orders belonging to the distribution site to the grid and count the orders in each grid;

[0024] A center point coordinate determination module, used to determine the center point coordinates of each grid based on the orders in each grid;

[0025] The binding module is used to determine the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes the delivery range of the courier.

[0026] Optionally, the binding module is further used to: determine the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid using a multi-travelling salesman work equilibrium algorithm.

[0027] Optionally, the binding module is also used to calculate the binding relationship between the courier and the grid with the goal of minimizing the delivery distance of each courier and minimizing the difference in order quantities between the couriers, and with the constraint that each grid can only be bound to one courier; wherein the courier's delivery distance is determined according to the distance between the grids bound to the courier, and the courier's order quantity is determined according to the number of orders in the grid bound to the courier.

[0028] Optionally, the device further comprises a simulation module for simulating the fulfillment time of the courier based on the orders within the bound grid;

[0029] The grid division module is also used to re-grid the map corresponding to the delivery area according to the simulation results to redefine the delivery range of the courier.

[0030] Optionally, the simulation module is also used to: divide the orders within the grid bound to the courier into delivery orders and collection orders; arrange the delivery orders in the order of completion of delivery to construct a delivery order queue, and calculate the courier timestamp corresponding to each delivery order in turn according to the delivery orders; wherein the courier timestamp is determined according to the journey time, the delivery service time and the collection service time; based on the collection time of the collection order and the courier timestamp corresponding to the delivery order, add the collection order to the delivery order queue to construct a courier fulfillment order queue; calculate the courier timestamp corresponding to each order in the courier fulfillment order queue to simulate the fulfillment timeliness of the courier.

[0031] Optionally, the simulation module is also used to: based on the collection time of the collection order and the time for the delivery order to complete delivery, use the KNN proximity algorithm to determine the target delivery order closest to the collection order, and add the collection order after the target delivery order.

[0032] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the delivery range of a courier according to an embodiment of the present invention.

[0033] To achieve the above objective, according to one aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, a method for determining a courier's delivery range according to an embodiment of the present invention is implemented.

[0034] An embodiment of the above invention has the following advantages or beneficial effects: because the map corresponding to the delivery area of ​​the delivery station is divided into multiple grids; the historical orders belonging to the delivery station are mapped into the grids, and the orders in each grid are counted; based on the orders in each grid, the coordinates of the center point of each grid are determined; based on the orders in each grid and the coordinates of the center point of each grid, the binding relationship between the courier and the grid is determined, wherein the grid bound to the courier constitutes the technical means of the delivery range of the courier, so the delivery range of the courier can be adjusted to ensure the workload balance between the couriers, improve the delivery efficiency, and reduce the labor cost; and the courier's performance time limit is simulated based on the orders in the bound grids; according to the simulation results, the map corresponding to the delivery area is re-divided to redetermine the means of the courier's delivery range, simulate the adjusted courier's delivery time limit, and further optimize the delivery range of each courier according to the simulation results.

[0035] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0037] Figure 1 is a schematic diagram of the main process of the method for determining the delivery range of a courier according to an embodiment of the present invention;

[0038] Figure 2 is a schematic diagram of grid division in a method for determining a courier's delivery range in an embodiment of the present invention;

[0039] Figure 3 is a schematic diagram of the main process of a method for determining a courier's delivery range according to another embodiment of the present invention;

[0040] Figure 4 It is a schematic diagram of simulating the courier's performance time in the method for determining the courier's delivery range in an embodiment of the present invention;

[0041] Figure 5 is a schematic diagram of main modules of a device for determining a courier's delivery range according to an embodiment of the present invention;

[0042] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0043] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0045] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for determining the delivery range of a courier according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0046] Step S101: Divide the map corresponding to the delivery area of ​​the delivery station into a plurality of grids, and determine the coordinates of the center point of each grid.

[0047] In this step, based on the longitude and latitude corresponding to the delivery area of ​​the delivery station, the delivery area of ​​the delivery station is mapped to the geographic space to obtain the longitude and latitude range of the delivery area on the map. Then the map is divided into N grids, where N is an integer greater than 1. Specifically, the size of the grid can be flexibly set according to the application scenario, and the present invention does not limit this. As a specific example, the grid division diagram corresponding to the delivery area of ​​the delivery station is as follows: Figure 2 shown.

[0048] Step S102: Mapping the historical orders belonging to the distribution site into the grids, and counting the orders in each grid.

[0049] In this step, the delivery address of the historical orders of the distribution site can be converted into longitude and latitude data based on the address resolution interface of the map service provider, and then the historical orders are mapped to the grid, and the historical orders in the grid are counted.

[0050] Step S103: Based on the orders in each grid, determine the coordinates of the center point of each grid.

[0051] In this embodiment, the grid center point coordinates refer to the center of gravity coordinates of the orders in the grid, which are specifically calculated as the average of the longitude and latitude of all orders in the grid. Among them, m represents the total number of orders, x m is the longitude of the mth order.

[0052] Step S104: Based on the orders in each grid and the coordinates of the center point of each grid, determine the binding relationship between the courier and the grid, wherein the grid bound to the courier constitutes the delivery range of the courier.

[0053] In this step, the binding relationship between the courier and the grid can be determined by using the multiple traveling salesman work equilibrium algorithm. The Multiple Traveling Salesman Problem (MTSP) can be described as multiple traveling salesmen traversing multiple cities. Under the premise that each city is passed by a traveling salesman once, the shortest path to traverse all cities is sought. It is a classic combinatorial optimization problem.

[0054] For the order delivery scenario in this embodiment, the binding relationship between the courier and the grid can be determined specifically according to the following process:

[0055] With the goal of minimizing the delivery distance of each courier and the difference in order volume between couriers, and with the constraint that each grid can only be bound to one courier, the binding relationship between the courier and the grid is calculated; among which, the courier's delivery distance is determined according to the distance between the grids bound to the courier, and the courier's order volume is determined according to the number of orders in the grid bound to the courier.

[0056] More specifically, the binding relationship between the courier and the grid can be determined according to the following process:

[0057] Assume there are N grids, Q couriers, the total number of orders in grid i is M, and the distance between the center point of grid i and grid j is d ij (In this embodiment, the distance represents the distance between two grids), the order quantity belonging to the kth courier is C k .

[0058] Objective 1: M couriers have the shortest delivery distance;

[0059] Objective function: Among them, y ik Represents the binding relationship between grid i and courier k. This variable is a 0-1 variable. 1 indicates that grid i is bound to courier k (that is, the orders in grid i are delivered by courier k), and 0 indicates that grid i is not bound to courier k.

[0060] Goal 2: Minimize the difference in order volume between couriers;

[0061] Objective function: min(C z -C p ), where C z represents the largest order volume among all couriers, C p Indicates the smallest order volume among all couriers.

[0062] Constraints: That is, orders within each grid can only be delivered by one courier.

[0063] The binding relationship between the courier and the grid is calculated through the above-mentioned goal one, goal two and constraint conditions, and the grid bound to the courier constitutes the delivery range of the courier.

[0064] The method for determining the delivery range of a courier according to an embodiment of the present invention can adjust the delivery range of the courier, ensure the workload balance among the couriers, improve the delivery efficiency, and reduce the labor cost.

[0065] In an optional embodiment, the data obtained above can be stored, such as the latitude and longitude data of the distribution site, the site contour fence, the relevant data of the segmented grid, the grid fence, etc., as well as the detailed data of the historical order (which may include the order number, delivery address and the corresponding longitude and latitude data, the completion time of the delivery order, the time of the pickup order, etc.), etc., to facilitate subsequent inquiries. Among them, the site contour fence data is composed of a series of longitude and latitude coordinate points, which can be obtained through the geo-fence interface provided by the map service provider, or can be drawn manually. As an example, the site contour fence is as follows: Figure 2 The edges of the map shown. The grid fence data can be understood as the longitude and latitude coordinates of the four vertices of the grid.

[0066] Figure 3 FIG. 1 is a flow chart of a method for determining a courier's delivery range according to another embodiment of the present invention. Figure 3 As shown, the method includes:

[0067] Step S301: Divide the map corresponding to the delivery area of ​​the delivery station into a plurality of grids;

[0068] Step S302: Mapping the historical orders belonging to the distribution site into the grids, and counting the orders in each grid;

[0069] Step S303: determining the coordinates of the center point of each grid based on the orders in each grid;

[0070] Step S304: determining the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes the delivery range of the courier;

[0071] Step S305: simulating the courier's fulfillment time based on the orders in the bound grid;

[0072] Step S306: Based on the simulation results, the map corresponding to the delivery area is re-divided into grids to redefine the delivery range of the courier.

[0073] Among them, step S301 to step S304 can refer to step S101 to step S104, and the present invention will not be repeated here.

[0074] For step S305, the courier's performance time can be simulated according to the following process:

[0075] (1) Orders in the grid bound to couriers are divided into delivery orders and pickup orders. Delivery orders refer to orders shipped from the warehouse, and couriers are responsible for delivering the orders from the distribution station to the customers. Pickup orders refer to orders sent by customers, and couriers are responsible for picking up the orders from the users and returning them to the distribution station.

[0076] (2) Arrange the delivery orders in the order of completed delivery to construct a delivery order queue, and calculate the courier timestamp corresponding to each delivery order in turn according to the delivery orders; wherein the courier timestamp is determined according to the journey time, the delivery service time, and the pickup service time. In this embodiment, when the delivery order is handed over to the customer, the current timestamp is recorded.

[0077] (3) Based on the pickup time of the pickup order and the courier timestamp corresponding to the delivery order, the pickup order is added to the delivery order queue to construct a courier fulfillment order queue.

[0078] Among them, the KNN neighbor algorithm can be used to determine the target delivery order closest to the pickup order, and the pickup order can be added after the target delivery order. The KNN neighbor algorithm (k-nearest neighbor) is a basic classification and regression method. Its basic approach is: given a test instance, based on a certain distance metric, find the k instance points closest to it in the training set, and then make predictions based on the information of these k nearest neighbors.

[0079] In this embodiment, the target pickup order whose pickup time is after the delivery completion time of the delivery order can be determined first, and then the KNN proximity algorithm is used to find the target pickup order closest to the delivery completion time of the delivery order in the set of target pickup orders, and the target pickup order is added after the delivery order.

[0080] (4) Calculate the courier timestamp corresponding to each order in the courier's fulfillment order queue to simulate the courier's fulfillment timeliness.

[0081] In this embodiment, the courier timestamp is the sum of the distance consumption time (the quotient of the distance divided by the courier speed), the delivery service time, and the pickup service time. The courier speed, the delivery service time, and the pickup service time can be preset according to experience, and the distance is determined according to the delivery address or the pickup address.

[0082] In this embodiment, first, the courier timestamp corresponding to each delivery order is calculated in sequence according to the delivery order queue; then, the target pickup orders whose pickup time is after the courier timestamp are analyzed in sequence, and the KNN neighbor algorithm is used to find the nearest target delivery order, and the pickup order is added to the delivery order; the courier timestamp of the pickup order is recalculated according to the pickup journey time and the pickup service time; the courier timestamp corresponding to the delivery order after the pickup order is updated in sequence; and the above steps are repeated until the last order is completed. In this way, a queue containing courier delivery orders, pickup orders and their corresponding courier fulfillment orders is obtained. Through the courier fulfillment order, it can be known that the courier's fulfillment time limit after the courier's delivery range is divided.

[0083] In this embodiment, within a certain delivery wave time period, a delivery order queue is first constructed based on the delivery order. At the same time, the collection orders of the collection wave within this time period will affect the courier's work content, and the collection orders need to be assigned to the delivery personnel corresponding to the grid to which they belong, which results in the delivery personnel adding a new collection order task. The collection order is added to the delivery order queue to form the courier's fulfillment order queue. The newly added collection will affect the timeliness of its subsequent orders. The simulation process mainly adds the simulation of collection in the delivery order process. Each newly added collection order will affect the orders after the courier's timestamp. After the collection orders are assigned, the courier timestamp of each order when all orders in the courier's fulfillment order queue in this wave are calculated, and the final timestamp can also be compared with the deadline timestamp of this wave.

[0084] For step S306, according to the simulation results, the map corresponding to the delivery area is re-divided into grids, and the binding relationship between the courier and the grid is recalculated to redefine the delivery range of the courier.

[0085] The method for determining the delivery range of a courier in an embodiment of the present invention divides a map corresponding to the delivery area of ​​a delivery station into multiple grids; maps historical orders belonging to the delivery station into the grids, and counts the orders in each grid; determines the coordinates of the center point of each grid based on the orders in each grid; determines the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes a technical means of the delivery range of the courier, so that the delivery range of the courier can be adjusted to ensure the workload balance between the couriers, improve the delivery efficiency, and reduce the labor cost; and simulates the performance timeliness of the courier based on the orders in the bound grids; according to the simulation results, the map corresponding to the delivery area is re-divided to redetermine the means of the courier's delivery range, simulate the adjusted courier's delivery timeliness, and further optimize the delivery range of each courier according to the simulation results.

[0086] In an optional embodiment, in the field of logistics, a batch of multiple orders is usually used as a unit for dispatching or collecting. The industry generally refers to this batch of operations as a wave, such as Figure 4As shown in the figure, the delivery waves are: 8:00 to 12:00 is one wave, and 12:00 to 16:00 is the second wave. For a simple example, the time is divided into morning and afternoon, and the tasks of completing the order from the warehouse to the user are completed respectively, which are two waves. Then for this case, when simulating the courier's fulfillment time, the courier fulfillment order queue of each wave is obtained in units of waves. Specifically, before constructing the delivery order queue, the orders are divided according to the waves, that is, the delivery orders are divided according to the different waves of delivery orders assigned to the courier station grid. The pickup orders are divided into corresponding order waves according to the receipt timestamp of the pickup orders and the start timestamps of different waves of the delivery orders. For a single-wave delivery order queue, calculate the courier timestamp corresponding to each delivery in turn according to the delivery order; analyze the pickup orders whose pickup time is after the timestamp, use the KNN nearest neighbor algorithm to find the nearest delivery order, and add the pickup order to the delivery order; recalculate the courier timestamp of the pickup order based on the pickup journey time and pickup service time; update the courier timestamp corresponding to each subsequent delivery in turn; repeat the above steps until the last order is completed. In this way, a courier fulfillment order queue containing courier dispatches, pickup orders and their corresponding courier timestamps is calculated for each wave.

[0087] Figure 5 is a schematic diagram of the main modules of the device 500 for determining the delivery range of a courier according to an embodiment of the present invention, such as Figure 5 As shown, the device 500 includes:

[0088] A grid division module 501 is used to divide the map corresponding to the delivery area of ​​the delivery station into a plurality of grids;

[0089] An order mapping module 502, for mapping the historical orders belonging to the distribution site to the grids, and counting the orders in each grid;

[0090] A center point coordinate determination module 503, used to determine the center point coordinates of each grid based on the orders in each grid;

[0091] The binding module 504 is used to determine the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes the delivery range of the courier.

[0092] Optionally, the binding module is further used for 504: based on the orders in each grid and the coordinates of the center point of each grid, using a multi-travelling salesman work equilibrium algorithm to determine the binding relationship between the courier and the grid.

[0093] Optionally, the binding module is also used for 504: with the goal of minimizing the delivery distance of each courier and minimizing the difference in order quantities between the couriers, and with the constraint that each grid can only be bound to one courier, calculating the binding relationship between the courier and the grid; wherein the courier's delivery distance is determined according to the distance between the grids bound to the courier, and the courier's order quantity is determined according to the number of orders in the grid bound to the courier.

[0094] Optionally, the device further comprises a simulation module for simulating the fulfillment time of the courier based on the orders within the bound grid;

[0095] The grid division module 501 is also used to re-grid the map corresponding to the delivery area according to the simulation results to redefine the delivery range of the courier.

[0096] Optionally, the simulation module is further used to: divide the orders in the grid bound to the courier into delivery orders and pickup orders;

[0097] Arrange the delivery orders in the order of completed delivery to construct a delivery order queue, and calculate the courier timestamp corresponding to each delivery order in turn according to the delivery orders; wherein the courier timestamp is determined according to the journey time, the delivery service time and the pickup service time;

[0098] Based on the pickup time of the pickup order and the courier timestamp corresponding to the delivery order, the pickup order is added to the delivery order queue to construct a courier fulfillment order queue;

[0099] The courier timestamp corresponding to each order in the courier's fulfillment order queue is calculated to simulate the courier's fulfillment timeliness.

[0100] Optionally, the simulation module is also used to: based on the collection time of the collection order and the time for the delivery order to complete delivery, use the KNN proximity algorithm to determine the target delivery order closest to the collection order, and add the collection order after the target delivery order.

[0101] The device for determining the delivery range of a courier in an embodiment of the present invention divides a map corresponding to the delivery area of ​​a delivery site into multiple grids; maps historical orders belonging to the delivery site into the grids, and counts the orders in each grid; determines the coordinates of the center point of each grid based on the orders in each grid; determines the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes a technical means of the delivery range of the courier, so that the delivery range of the courier can be adjusted to ensure the workload balance between the couriers, improve the delivery efficiency, and reduce the labor cost; and simulates the performance time of the courier based on the orders in the bound grids; according to the simulation results, the map corresponding to the delivery area is re-divided to redetermine the means of the courier's delivery range, simulate the adjusted courier's delivery time, and further optimize the delivery range of each courier according to the simulation results.

[0102] The above device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0103] Figure 6 An exemplary system architecture 600 is shown to which the method for determining a delivery range of a courier or the apparatus for determining a delivery range of a courier according to an embodiment of the present invention can be applied.

[0104] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0105] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0106] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0107] The server 605 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 601, 602, and 603. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information and product information) to the terminal device.

[0108] It should be noted that the method for determining the delivery range of a courier provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the device for determining the delivery range of a courier is generally set in the server 605 .

[0109] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0110] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0111] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0112] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0113] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0114] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0115] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0116] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute a limitation on the unit itself. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."

[0117] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:

[0118] Divide the map corresponding to the delivery area of ​​the delivery station into multiple grids;

[0119] Mapping historical orders belonging to the delivery site into the grids, and counting the orders in each grid;

[0120] Based on the order within each grid, determine the coordinates of the center point of each grid;

[0121] Based on the orders in each grid and the coordinates of the center point of each grid, the binding relationship between the courier and the grid is determined, where the grid bound to the courier constitutes the delivery range of the courier.

[0122] The technical solution of the embodiment of the present invention is to divide the map corresponding to the delivery area of ​​the delivery station into multiple grids; map the historical orders belonging to the delivery station into the grids, and count the orders in each grid; determine the coordinates of the center point of each grid based on the orders in each grid; determine the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes the technical means of the delivery range of the courier, so that the delivery range of the courier can be adjusted to ensure the workload balance between the couriers, improve the delivery efficiency, and reduce the labor cost; and simulate the performance time of the courier based on the orders in the bound grids; according to the simulation results, the map corresponding to the delivery area is re-divided to redefine the means of the courier's delivery range, simulate the adjusted courier's delivery time, and further optimize the delivery range of each courier according to the simulation results.

[0123] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for determining the delivery range of a courier, It is characterized in that include: Divide the map corresponding to the delivery area of ​​the delivery station into multiple grids; Mapping historical orders belonging to the delivery site into the grids, and counting the orders in each grid; Based on the order within each grid, determine the coordinates of the center point of each grid; Based on the orders in each grid and the coordinates of the center point of each grid, the binding relationship between the courier and the grid is determined, wherein the grid bound to the courier constitutes the delivery range of the courier; Based on the orders within the bound grid, the courier's fulfillment time efficiency is simulated, including: adding the pickup order to the delivery order queue to build a courier fulfillment order queue, calculating the courier timestamp corresponding to each order in the courier fulfillment order queue to simulate the courier's fulfillment time efficiency; according to the simulation results, re-gridding the map corresponding to the distribution area to redefine the courier's distribution range.

2. The method according to claim 1, It is characterized in that Based on the orders in each grid and the coordinates of the center point of each grid, the binding relationship between the courier and the grid is determined including: Based on the orders within each grid and the coordinates of the center point of each grid, the multi-traveling salesman work equilibrium algorithm is used to determine the binding relationship between the courier and the grid.

3. The method according to claim 2, It is characterized in that Based on the orders in each grid and the coordinates of the center point of each grid, the binding relationship between the courier and the grid is determined using the multi-traveling salesman work equilibrium algorithm, including: With the goal of minimizing the delivery distance of each courier and the difference in order volume between couriers, and with the constraint that each grid can only be bound to one courier, the binding relationship between the courier and the grid is calculated; among which, the courier's delivery distance is determined according to the distance between the grids bound to the courier, and the courier's order volume is determined according to the number of orders in the grid bound to the courier.

4. The method according to claim 1, It is characterized in that Based on the orders in the bound grid, the simulation of the courier's fulfillment time includes: Divide the orders within the grid bound to the courier into delivery orders and pickup orders; Arrange the delivery orders in the order of completed delivery to construct a delivery order queue, and calculate the courier timestamp corresponding to each delivery order in turn according to the delivery orders; wherein the courier timestamp is determined according to the journey time, the delivery service time and the pickup service time; Based on the pickup time of the pickup order and the courier timestamp corresponding to the delivery order, the pickup order is added to the delivery order queue to construct a courier fulfillment order queue; The courier timestamp corresponding to each order in the courier's fulfillment order queue is calculated to simulate the courier's fulfillment timeliness.

5. The method according to claim 4, It is characterized in that Based on the pickup time of the pickup order and the time when the delivery order is delivered, adding the pickup order to the delivery order queue includes: Based on the pickup time of the pickup order and the time when the delivery order completes the delivery, the KNN proximity algorithm is used to determine the target delivery order closest to the pickup order, and the pickup order is added after the target delivery order.

6. A device for determining the delivery range of a courier, It is characterized in that include: A grid division module, used to divide the map corresponding to the distribution area of ​​the distribution station into multiple grids; An order mapping module, used to map the historical orders belonging to the distribution site to the grid and count the orders in each grid; A center point coordinate determination module, used to determine the center point coordinates of each grid based on the orders in each grid; A binding module, used to determine the binding relationship between the courier and the grid based on the orders in each grid and the coordinates of the center point of each grid, wherein the grid bound to the courier constitutes the delivery range of the courier; A simulation module is used to simulate the courier's performance time efficiency based on the orders in the bound grid, including: adding the pickup order to the delivery order queue to build a courier performance order queue, and calculating the courier timestamp corresponding to each order in the courier performance order queue to simulate the courier's performance time efficiency; The grid division module is also used to re-grid the map corresponding to the delivery area according to the simulation results to redefine the delivery range of the courier.

7. The device according to claim 6, It is characterized in that The binding module is also used to: Based on the orders within each grid and the coordinates of the center point of each grid, the multi-traveling salesman work equilibrium algorithm is used to determine the binding relationship between the courier and the grid.

8. The device according to claim 7, It is characterized in that The binding module is also used to: With the goal of minimizing the delivery distance of each courier and the difference in order volume between couriers, and with the constraint that each grid can only be bound to one courier, the binding relationship between the courier and the grid is calculated; among which, the courier's delivery distance is determined according to the distance between the grids bound to the courier, and the courier's order volume is determined according to the number of orders in the grid bound to the courier.

9. The device according to claim 6, It is characterized in that The simulation module is also used for: Divide the orders within the grid bound to the courier into delivery orders and pickup orders; Arrange the delivery orders in the order of completed delivery to construct a delivery order queue, and calculate the courier timestamp corresponding to each delivery order in turn according to the delivery orders; wherein the courier timestamp is determined according to the journey time, the delivery service time and the pickup service time; Based on the pickup time of the pickup order and the courier timestamp corresponding to the delivery order, the pickup order is added to the delivery order queue to construct a courier fulfillment order queue; The courier timestamp corresponding to each order in the courier's fulfillment order queue is calculated to simulate the courier's fulfillment timeliness.

10. The device according to claim 9, It is characterized in that The simulation module is also used for: Based on the pickup time of the pickup order and the time when the delivery order completes the delivery, the KNN proximity algorithm is used to determine the target delivery order closest to the pickup order, and the pickup order is added after the target delivery order.

11. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

12. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Delivery path optimization method and apparatus, computer device and storage medium

    CN107464018A

  • Logistics distribution simulation method and device

    CN108364146A

  • Delivery region determination method and device

    CN108960694A

  • A method and a device for automatically distributing tasks, an electronic device and a storage medium

    CN109214613A

  • Delivery transport capacity scheduling method, order distribution method and device, and electronic device

    CN109636121A