WO2021147353A1 - Order dispatch - Google Patents

Order dispatch Download PDF

Info

Publication number
WO2021147353A1
WO2021147353A1 PCT/CN2020/115991 CN2020115991W WO2021147353A1 WO 2021147353 A1 WO2021147353 A1 WO 2021147353A1 CN 2020115991 W CN2020115991 W CN 2020115991W WO 2021147353 A1 WO2021147353 A1 WO 2021147353A1
Authority
WO
WIPO (PCT)
Prior art keywords
order
orders
dispatched
target
pending
Prior art date
Application number
PCT/CN2020/115991
Other languages
French (fr)
Chinese (zh)
Inventor
王圣尧
包建东
郑环宇
Original Assignee
北京三快在线科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京三快在线科技有限公司 filed Critical 北京三快在线科技有限公司
Publication of WO2021147353A1 publication Critical patent/WO2021147353A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Definitions

  • the present disclosure relates to the field of Internet technology, and in particular, to an order scheduling method, device, storage medium, and electronic equipment.
  • the purpose of the present disclosure is to provide an order scheduling method, device, storage medium, and electronic equipment, which can reduce the amount of data calculation and improve real-time performance.
  • an order scheduling method includes: clustering each pending order according to the order information of each pending order within a time unit to obtain Multiple order groups; respectively determine the delivery capacity corresponding to each of the order groups; for each of the order groups, according to the order information of each of the pending orders in the order group and the respective delivery corresponding to the order group
  • the distribution information of the capacity determines the matching degree between each of the pending orders in the order group and each of the distribution capacity corresponding to the order group; according to each of the matching degrees, each of the pending orders is determined Carry out order scheduling.
  • the method further includes: Set a threshold order group, split the order group into multiple order groups, wherein the number of orders to be dispatched in each order group obtained by the split is less than the preset threshold.
  • the clustering the to-be-dispatched orders according to the order information of the to-be-dispatched orders in a time unit to obtain multiple order groups includes: according to the quantity of each of the to-be-dispatched orders and the preset The threshold value determines the number of cluster centers; clusters the pending orders according to the number of cluster centers and the order information of each pending order to obtain the multiple order groups.
  • the performing order scheduling on each of the pending orders according to each of the matching degrees includes: for each of the pending orders, determining the delivery capacity with the highest matching degree corresponding to the pending orders Is the target delivery capacity corresponding to the order to be dispatched; each order to be dispatched is delivered to the corresponding target delivery capacity.
  • the method further includes: For each target delivery capacity, if there are more than two pending orders corresponding to the target delivery capacity, the pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target corresponding to the target delivery capacity Order; in the case that there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target order corresponding to the target delivery capacity;
  • the distributing each of the pending orders to the corresponding target distribution capacity includes: allocating each of the target orders to the respective corresponding target distribution capacity.
  • the method further includes: for each target delivery capacity, if there are two or more orders to be dispatched with the highest matching degree corresponding to the target delivery capacity, if each of the highest matching orders is If the task point information of the to-be-scheduled orders is the same, each of the to-be-scheduled orders is taken as the target order of the target delivery capacity; if the task point information of each of the to-be-scheduled orders with the highest matching degree is different, then each of the to-be-scheduled orders is different
  • the dispatch order selects a to-be dispatched order as the target order of the target delivery capacity.
  • the method further includes: taking orders other than the target order among the to-be-dispatched orders as the to-be-dispatched orders in the next time unit.
  • the order information includes different types of task point information
  • the clustering of the orders to be dispatched according to the order information of the orders to be dispatched in a time unit includes: according to the order information of the orders to be dispatched in the time unit
  • the task point information of the same type of the to-be-scheduled orders clusters the to-be-scheduled orders.
  • the respectively determining the delivery capacity corresponding to each of the order groups includes: for each of the order groups, the distance between the current position and the starting position of each of the to-be-scheduled orders in the order group The delivery capacity less than the preset distance is determined as the delivery capacity corresponding to the order group.
  • the matching degree between each of the distribution capacity corresponding to the order group includes: for each of the distribution capacity, according to the distribution information of the distribution capacity, respectively determine to pre-order each of the pending orders in the order group After being allocated to the distribution capacity, the target parameter corresponding to the distribution capacity, the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each of the distribution capacities; according to the distribution capacity and The target parameter corresponding to each of the to-be-dispatched orders determines the degree of matching between each of the to-be-dispatched orders and the delivery capacity.
  • an order scheduling device comprising: a clustering module, configured to perform order scheduling on each pending order according to the order information of each pending order within a time unit Clustering to obtain multiple order groups; the first determining module is configured to determine the delivery capacity corresponding to each of the order groups; the second determining module is configured to determine the delivery capacity corresponding to each of the order groups according to The order information of each order to be dispatched in the order group and the distribution information of each delivery capacity corresponding to the order group are determined to determine each of the orders to be dispatched in the order group and each corresponding to the order group The degree of matching between the distribution capacity; the scheduling module is configured to perform order scheduling on each of the orders to be dispatched according to each of the degrees of matching.
  • the clustering module includes: a splitting sub-module configured to split the order group into multiple order groups for an order group in which the number of orders to be scheduled exceeds a preset threshold, wherein, The number of orders to be dispatched in each order group obtained by splitting is less than the preset threshold.
  • the clustering module is configured to determine the number of cluster centers according to the number of each of the pending orders and the preset threshold; according to the number of the cluster centers, and each of the pending orders The order information of the dispatch order clusters the pending orders to obtain the multiple order groups.
  • the scheduling module includes: a first determining sub-module configured to determine, for each of the pending orders, the delivery capacity with the highest matching degree corresponding to the pending orders as the first determining sub-module. Dispatch the target delivery capacity corresponding to the order; the allocation sub-module is configured to allocate each of the pending orders to the corresponding target delivery capacity.
  • the scheduling module includes: a second determining sub-module configured to deliver capacity for each target, and when there are more than two orders to be dispatched corresponding to the target distribution capacity, the The pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity; in the case that there is one pending order corresponding to the target delivery capacity, the pending order is determined as the The target order corresponding to the target delivery capacity; the allocation sub-module is configured to allocate each of the target orders to the corresponding target delivery capacity.
  • the device is further configured to target delivery capacity for each target, and if there are two or more orders to be dispatched with the highest matching degree corresponding to the target delivery capacity, if the highest matching degree is If the task point information of each order to be dispatched is the same, then each order to be dispatched is regarded as the target order of the target delivery capacity; if the task point information of each order to be dispatched with the highest matching degree is different, then the order is different from each other.
  • the to-be-dispatched order selects a to-be-dispatched order as the target order of the target delivery capacity.
  • the device further includes: a third determining module configured to take orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
  • a third determining module configured to take orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
  • the order information includes different types of task point information;
  • the clustering module includes: a clustering sub-module configured to perform tasks of the same type according to each of the to-be-scheduled orders in the time unit Point information to cluster the pending orders.
  • the first determining module is configured to: for each of the order groups, determine the delivery capacity whose current position is less than a preset distance from the starting position of each of the orders to be dispatched in the order group Is the delivery capacity corresponding to the order group.
  • the second determining module includes: a third determining sub-module configured to determine, for each of the distribution capacity, according to the distribution information of the distribution capacity, to separately determine the distribution of each of the orders in the order group.
  • the target parameter corresponding to the delivery capacity after the order to be dispatched is pre-allocated to the delivery capacity, and the size of the target parameter is used to distinguish the pros and cons of pre-allocating the order to be dispatched to each delivery capacity; according to the The target parameter corresponding to the delivery capacity and each of the orders to be dispatched determines the degree of matching between each of the orders to be dispatched and the delivery capacity.
  • a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any of the methods described in the first aspect are implemented.
  • an electronic device including: a memory on which a computer program is stored; and a processor configured to execute the computer program in the memory to implement the following steps: For the order information of each pending order within a time unit, cluster each pending order to obtain multiple order groups; respectively determine the delivery capacity corresponding to each of the order groups; for each of the order groups, according to The order information of each order to be dispatched in the order group and the distribution information of each delivery capacity corresponding to the order group determine each of the orders to be dispatched in the order group and each corresponding to the order group The degree of matching between the distribution capacity; according to each degree of matching, order scheduling is performed on each of the orders to be dispatched.
  • each pending order is clustered in the present disclosure, when calculating the matching degree between the pending order and the delivery capacity, only the matching between the delivery capacity corresponding to its order group needs to be calculated Therefore, it can effectively reduce the amount of calculation required to calculate the matching degree, and during order scheduling, it can also perform partial scheduling for each order group.
  • it effectively reduces the complexity of order scheduling, and on the other hand, it reduces the complexity of order scheduling.
  • the amount of calculation during order scheduling improves the efficiency and accuracy of order scheduling. It has good real-time performance and fast speed. It can be applied to large-scale order scheduling tasks and meet the needs of instant delivery services. In addition, it can also be used within the time unit.
  • the pending orders are processed in parallel to further improve the efficiency of order scheduling.
  • the method provided by the present disclosure can greatly reduce the amount of data access and the calculation of the algorithm, and reduce the requirements for memory and computing resources when implementing the method, it can also effectively broaden the order scheduling method provided by the present disclosure. The scope of application.
  • Fig. 1 is a flowchart of an order scheduling method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of an exemplary embodiment of order scheduling for orders to be scheduled according to the matching degree
  • Fig. 3 is a block diagram of an order scheduling device according to an embodiment of the present disclosure.
  • Fig. 4 is a block diagram showing an electronic device according to an exemplary embodiment
  • Fig. 5 is a block diagram showing an electronic device according to an exemplary embodiment
  • Fig. 6 is a schematic diagram showing an implementation environment according to an exemplary embodiment.
  • order scheduling is usually carried out in a geographical dimension. For example, every minute all new orders are matched with dispatchers in the area in real time through a scheduling algorithm.
  • the matching calculation process requirements usually need to be completed in a relatively short time. Since the matching of multiple orders and multiple distributors is a global optimization, there may be coupling between each matching relationship. Therefore, through the above method, the amount of calculation required for order scheduling is too large and time-consuming.
  • Fig. 1 shows a flowchart of an order scheduling method according to an embodiment of the present disclosure. As shown in Figure 1, the method may include:
  • the order information includes starting position information and destination position information corresponding to the order to be dispatched.
  • the starting location information is the initial location corresponding to the order to be dispatched.
  • the starting location information is the location of the merchant who made the items in the order
  • the destination location information is the expected delivery of the order. s position.
  • the starting location information is the user's pick-up location corresponding to the order
  • the destination location information is the user's drop-off location corresponding to the order.
  • the starting location information and the destination location information respectively indicate one or more locations.
  • one order corresponds to multiple stores, that is, the user may purchase items from multiple stores in one order At this time, you need to go to each store to obtain the corresponding items, so as to deliver the prepared items to the destination location.
  • the duration of the time unit can be set according to actual usage scenarios. For example, for scenarios with higher real-time requirements, the duration is set to be shorter, and for scenarios with lower real-time requirements, the duration is set to be longer. In another example, different time lengths are set according to different time periods. Take a takeaway scenario as an example, the time length set during the evening peak period is shorter, and the time length set for other time periods is slightly longer. The above are only exemplary descriptions, and the present disclosure does not limit this.
  • the delivery capacity corresponding to each order group is determined respectively.
  • the delivery capacity includes one or more of delivery personnel, delivery robots, and unmanned vehicles.
  • the distribution capacity corresponding to the determined order group is the distribution capacity used to distribute the pending orders in the order group.
  • the distribution capacity refers to the manpower or material resources that can carry out the distribution.
  • each pending order in the order group corresponds to the order group
  • the distribution information of the distribution capacity is the current location of the distribution capacity, the information of the orders currently to be distributed by the distribution capacity, and so on.
  • the matching degree between the order to be delivered and the delivery capacity is used to characterize the pros and cons of the order to be dispatched by the delivery capacity. Wherein, the greater the matching degree, the better the delivery capacity to deliver the pending order.
  • the pros and cons of the delivery capacity of the pending order refers to the possibility that the delivery capacity will deliver the order in a timely manner, where the better the delivery capacity is to deliver the pending order, the delivery capacity will deliver the order in time The higher the probability, the worse the delivery capacity to deliver the pending order, and the lower the probability that the delivery capacity will complete the order in time.
  • the orders to be dispatched in each order group and the corresponding delivery capacity of the order group can be separately dispatched, so that when calculating the matching degree between the order to be dispatched and the delivery capacity, It only needs to be calculated separately for each order group, and there is no need to match the current pending orders with the corresponding delivery capacity of other order groups, which can effectively reduce the amount of calculation required for order scheduling.
  • each order group is processed in parallel, or each order group is processed in sequence, or each time the target quantity of order groups is processed in parallel, and then the remaining target quantity is processed in parallel.
  • the order group is processed, and so on, the embodiment of the present disclosure does not limit the processing manner of each order group.
  • the matching degree corresponding to each order to be dispatched only includes the matching degree between it and the delivery capacity corresponding to the order group to which the order to be dispatched belongs. Therefore, when order scheduling is performed, it can be targeted for each order group. Dispatch separately.
  • each pending order is clustered in the present disclosure, when calculating the matching degree between the pending order and the delivery capacity, only the matching degree between the delivery capacity corresponding to its order group needs to be calculated, which can effectively reduce The amount of calculation required to calculate the matching degree, and when performing order scheduling, it can also perform partial scheduling for each order group.
  • it effectively reduces the complexity of order scheduling on the other hand, it also reduces the calculation during order scheduling.
  • the real-time performance is good, the speed is fast, and it can be applied to large-scale order scheduling tasks, and can meet the needs of instant delivery services.
  • Parallel processing can further improve the efficiency of order scheduling.
  • the method provided by the present disclosure can greatly reduce the amount of data access and the calculation of the algorithm, and reduce the requirements for memory and computing resources when implementing the method, it can also effectively broaden the order scheduling method provided by the present disclosure. The scope of application.
  • the order information includes different types of task point information.
  • it includes the task point information of the starting type, such as the locations of multiple merchants in the same order in the example described above, and optionally, it also includes the task point information of the destination type, such as the order corresponding to the example described above The user’s drop-off location, etc.
  • each order information includes the initial type of task point information, such as the location of the merchant making the takeaway corresponding to the takeaway order (ie the pickup location); it also includes the purpose type of task point information, The user who ordered the takeout expects the delivery location (that is, the delivery location) of the takeout.
  • the exemplary embodiment of clustering the to-be-dispatched orders according to the order information of the to-be-dispatched orders in a time unit is as follows, including:
  • clustering is performed according to the starting position of each order to be scheduled. Therefore, the starting positions of the orders to be scheduled in the same cluster obtained are similar, so as to be able to group as much as possible.
  • the pending orders corresponding to the merchants in the business district are clustered.
  • clustering can be performed according to the destination positions of the orders to be scheduled, so that the destination positions of the orders to be scheduled in the same cluster obtained are similar, so that users belonging to similar cells or communities can be assigned to the corresponding to-be-scheduled orders Orders are clustered.
  • the to-be-scheduled orders are clustered according to the task point information of the same type of each to-be-scheduled order in a time unit, so that the to-be-scheduled orders with similar starting positions or similar destination positions can be clustered To the same order group. Therefore, by clustering orders to be dispatched, orders to be dispatched that are close to each other can be grouped into the same order group, while orders to be dispatched in different order groups are far apart, so there is no need to consider different order groups when scheduling orders. The influence between the orders to be dispatched realizes the independent order dispatching of each order group, and can effectively reduce the amount of data calculation in the order dispatching process.
  • the order group is split into multiple order groups, where the splitting The number of orders to be dispatched in each order group obtained is less than the preset threshold.
  • the preset threshold is set according to actual usage scenarios, which is not limited in the present disclosure.
  • N clusters will be obtained. After that, determine the number of pending orders in each cluster. If the number of pending orders in one of the clusters (denoted as cluster C) exceeds the preset threshold, cluster C is split at this time.
  • the distance threshold is further adjusted to perform re-clustering according to the order information of the pending orders in cluster C. For example, during the initial clustering, cluster any two orders to be scheduled whose starting position is less than M1, and when splitting cluster C, set the starting position of cluster C to any two orders whose starting position is less than M2. Clustering of orders to be dispatched, where M2 is less than M1.
  • the K-Means (K-means clustering) algorithm is used for re-clustering during splitting, where K is any integer greater than or equal to 1, for example, the value of K is based on the number of orders to be scheduled in cluster C and the The preset threshold is determined. For example, if the number of orders to be scheduled in cluster C is Q, and the preset threshold is P, then the value of K is greater than the ratio of Q to P, so as to avoid sub-clusters after splitting as much as possible The number of pending orders is greater than the preset threshold.
  • the number of cluster centers (K) is determined according to the number of orders to be dispatched in the order group and the number of the preset threshold. According to the K clusters The center re-clusters the order group to obtain K clusters, that is, re-divides the order group into K order groups.
  • clustering the scheduled orders according to the order information of each pending order in a time unit to obtain multiple order groups includes: determining the number of cluster centers according to the number of each pending order and a preset threshold ;According to the number of cluster centers and the order information of each pending order, the scheduled orders are clustered to obtain multiple order groups.
  • the sub-cluster is further split until the sub-cluster obtained by splitting cluster C
  • the data of the orders to be dispatched is less than the preset threshold, that is, the number of orders to be dispatched in each order group obtained by splitting is less than the preset threshold.
  • each order group contains a small number of pending orders, thereby further reducing the computing resources consumed in subsequent calculations of the matching degree between pending orders and delivery capacity. And to a certain extent, it can also ensure that the number of orders to be allocated in each order group is relatively uniform, ensuring high concurrency in order scheduling while also ensuring the consistency of processing efficiency, thereby ensuring the accuracy of order scheduling.
  • this step may include:
  • the delivery capacity whose current position is less than the preset distance from the starting position of each pending order in the order group is determined as the delivery capacity corresponding to the order group.
  • the delivery capacity that is closer to the initial position of the order to be dispatched will be preferentially selected.
  • the starting position of each order to be dispatched in the order group is determined.
  • the starting position is determined according to the order information of the order to be dispatched. If there are multiple positions indicated by the starting position information corresponding to the order to be dispatched, the first position on the path corresponding to the order to be dispatched among the positions indicated by the starting position information is used as the starting position. If the position indicated by the starting position information corresponding to the to-be-dispatched order is one, the position is directly used as the starting position.
  • the multiple locations indicated by the starting location information are connected according to the shortest path rule to obtain the driving route, and the first The first position or the last position is used as the starting position.
  • the distance between the order to be dispatched and each delivery capacity is determined according to the initial position of the order to be dispatched and the current position of each delivery capacity, and the distance is less than the preset distance
  • the distribution capacity of is used as the distribution capacity to be allocated.
  • calculating the distance between two location points is to determine two locations in the map, obtain at least one driving path between the two locations, determine the shortest driving path in the at least one driving path, and set the shortest The length of the driving path is determined as the distance between two location points.
  • a position range within a preset distance range centered on the order to be dispatched is determined, and the delivery capacity whose current position belongs to the position range is determined as the delivery capacity to be allocated.
  • determining a position range centered on the order to be dispatched within a preset distance range refers to determining a position range centered on the order to be dispatched and the distance from the center does not exceed the preset distance.
  • determining the position range according to the position and distance of the center point is to determine a circular area with the order to be dispatched as the center and the preset distance range as the radius. Subsequently, the delivery capacity whose current location belongs to the circular area is determined as the delivery capacity to be allocated.
  • the distribution capacity to be allocated determined according to each pending order in the order group is taken as the distribution capacity corresponding to the order group.
  • the distribution capacity whose current position is less than the preset distance from the starting position of each pending order in the order group is determined as the distribution capacity corresponding to the order group Distribution capacity, on the one hand, can ensure that the distribution capacity reaches the initial position of the pending order in a timely manner, thereby improving the efficiency of order distribution. On the other hand, it can avoid excessive invalid movement of the distribution capacity, thereby saving the resources consumed by the distribution capacity to reach the initial position of the pending order, and improving the rationality and comprehensiveness of the order scheduling method.
  • each pending order in the order group corresponds to the order group.
  • An exemplary embodiment of the degree of matching between various distribution capacities is as follows, and this step includes:
  • each of the distribution capacity according to the distribution information of the distribution capacity, respectively determine the target parameter corresponding to the distribution capacity after each pending order in the order group is pre-allocated to the distribution capacity, and the size of the target parameter Used to distinguish the pros and cons of pre-allocating the pending order to each distribution capacity;
  • the degree of matching between each order to be dispatched and the delivery capacity is determined according to the target parameter corresponding to the delivery capacity and each order to be dispatched.
  • the target parameter is determined by the increase in the distribution itinerary corresponding to the distribution capacity after the order to be dispatched is pre-allocated to the distribution capacity.
  • the increase in the distribution itinerary is used to determine the degree of matching between the order to be dispatched and the distribution capacity. .
  • after allocating order X to the distribution capacity its distribution itinerary increases by a large amount, which means that after the distribution capacity is increased to deliver the order X, it needs to increase more itineraries to complete the distribution.
  • the distribution capacity needs to be bypassed.
  • the order X is delivered by route, that is, the matching degree between the pending order and the delivery capacity is low.
  • the increase in the distribution itinerary is small, which means that after the distribution capacity is increased to distribute the order X, it only needs to add a small amount of itinerary to complete the distribution, if the distribution capacity can be delivered along the way
  • the order X that is, the order to be dispatched has a higher degree of matching with the delivery capacity.
  • the following describes an exemplary embodiment of the increase in the distribution journey corresponding to the distribution capacity after each pending order in the order group is pre-allocated to the distribution capacity according to the distribution information of the distribution capacity. .
  • the order distribution path is planned according to the assigned order of the distribution capacity and the order X, so as to distribute each order assigned and distributed.
  • the search is performed according to the order information (for example, the starting location information and the destination location information) of each order allocated by the delivery capacity, that is, according to the order information of each order , Traverse all the order connection sequence and obtain the total path in each alternative scheme, and use the shortest path as the order delivery path.
  • the difference between the order delivery path and the order delivery path before the unallocated order X is determined as the delivery itinerary increase, that is, the order delivery path change after the order X is pre-allocated for the delivery capacity.
  • the order X is pre-allocated for the delivery capacity, for the delivery capacity, according to the greedy algorithm and the set constraints, with the goal of maximizing the order delivery efficiency, insert into the delivery path of the order
  • the trial planning path corresponding to the distribution capacity is obtained, wherein the constraint condition is related to the set of each task point.
  • the trial planning route is adjusted to obtain the order delivery route corresponding to the delivery capacity.
  • the difference between the order delivery path and the order delivery path before the unallocated order X is determined as the delivery itinerary increase.
  • the delivery itinerary growth amount after determining the delivery itinerary growth amount, take the reciprocal of the delivery itinerary growth amount and perform normalization processing, so as to obtain the degree of matching between the pending order and the delivery capacity, where the delivery itinerary
  • the corresponding target parameter indicates that the pre-allocation of the pending order to the distribution capacity is the better, that is, the greater the matching degree between the pending order and the distribution capacity.
  • the above method of determining the matching degree is only an exemplary description, and is only used to indicate the negative correlation between the growth of the delivery itinerary and the matching degree, that is, the greater the growth of the delivery itinerary, the greater the relationship between the corresponding pending order and the delivery capacity
  • the smaller the matching degree of is not used to limit the present disclosure.
  • the target parameter is determined by the timeout period corresponding to the order to be delivered for the delivery capacity after the order to be dispatched is pre-allocated to the delivery capacity.
  • the delivery time corresponding to each order in the order delivery route is determined.
  • the sum of the time periods in which the delivery time of each order is later than the planned arrival time of the corresponding order is determined as the timeout time corresponding to the pending order of the delivery capacity.
  • the method for determining the matching degree according to the timeout period is the same as the above-mentioned method for determining the matching degree.
  • the relationship between the timeout period and the matching degree is negatively correlated , That is, the longer the timeout period, the smaller the matching degree between the corresponding pending order and the delivery capacity.
  • the corresponding timeout period is determined.
  • the weights corresponding to the timeout time and the delivery itinerary increase are set in advance, so that when the time-out time and the delivery itinerary increase are determined, the weighted sum is determined according to the respective weights as the target parameter, and the matching degree is determined according to the target parameter.
  • the matching degree is also determined by taking the reciprocal of the weighted sum and performing normalization. In this embodiment, the smaller the target parameter, the better the pre-allocation of the pending order to the distribution capacity, that is, the greater the degree of matching between the pending order and the distribution capacity.
  • the method of determining the matching degree according to the target parameters in the above examples is only exemplary, and it is only used to indicate that the determined target parameter and the matching degree are negatively correlated, that is, the larger the target parameter, the corresponding The smaller the matching degree between the order to be dispatched and the delivery capacity is, it is not used to limit the present disclosure.
  • the target parameters corresponding to the distribution capacity after each pending order in the order group is pre-allocated to the distribution capacity are determined according to the distribution information of the distribution capacity for each of the distribution capacity. ; Determine the degree of matching between each order to be dispatched and the delivery capacity according to the target parameter corresponding to the delivery capacity and each order to be dispatched. Therefore, in the above technical solution, it is possible to pre-allocate orders for the distribution capacity, and determine the matching degree between the pending order and the distribution capacity according to the parameter change of the distribution capacity after the order is allocated, so that the parameter change can be used to determine the matching degree between the order to be dispatched and the distribution capacity.
  • the delivery capacity of the delivery of the order is quantitatively expressed, which provides accurate data support for subsequent order scheduling based on the matching degree, and can ensure the rationality of order scheduling and meet the use requirements of order scheduling services.
  • an exemplary embodiment of order scheduling for the order to be scheduled is as follows, as shown in FIG. 2, this step may include:
  • the delivery capacity with the highest matching degree corresponding to the order to be dispatched is determined as the target delivery capacity corresponding to the order to be dispatched.
  • the delivery capacity with the highest matching degree corresponding to the pending order is determined as the target delivery capacity corresponding to the pending order, that is, the optimal delivery capacity of the scheduled order is first used to deliver the pending order Order.
  • the pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity
  • the pending order is determined as the target order corresponding to the target delivery capacity.
  • the corresponding delivery capacity is A1, A2, A3, and the pending orders are C1, C2, C3, C4, C5.
  • the target delivery capacity corresponding to C1 is determined to be A2,
  • the determined target distribution capacity corresponding to C2 is A1
  • the determined target distribution capacity corresponding to C3 is A1
  • the determined target distribution capacity corresponding to C4 is A1
  • the determined target distribution capacity corresponding to C5 is A3.
  • the corresponding pending orders are C2, C3, C4.
  • one of the multiple pending orders is selected as the target delivery capacity A1 in this scheduling process.
  • the target order is the order for A1 to deliver.
  • the order to be dispatched with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity. If the matching degree between C3 and A1 is higher than the matching degree between C2 and A1, and the matching degree between C3 and A1 is higher than the matching degree between C4 and A1, then C3 is taken as the target order of A1. At this time, C2 and C3 did not perform scheduling allocation in this order scheduling.
  • the corresponding pending order is C1.
  • C1 is directly used as the target order of A2.
  • C5 takes C5 as the target order for A3.
  • the method of determining the target order in other order groups adopts the same method as described above, and will not be repeated here.
  • each order group can be determined separately, and high concurrency in the calculation of the order delivery method can also be ensured, and the efficiency of order scheduling can be effectively improved.
  • the matching degrees of the multiple pending orders corresponding to the target delivery capacity are the same and all have the highest value, it is determined whether the task point information of the multiple pending orders is the same, if the tasks of the multiple pending orders If the point information is the same, then the multiple pending orders will be regarded as the target order of the target delivery capacity; if the multiple pending orders have different task point information, then a pending order will be randomly selected from the multiple pending orders as the target Target order for delivery capacity.
  • the corresponding pending orders are C2, C3, and C4, where the matching degree between C2 and A1 and the matching degree between C3 and A1 are higher than the matching degree between C4 and A1, and the matching degree between C2 and A1 is higher than that between C4 and A1.
  • the matching degree of A1 is the same as the matching degree of C3 and A1, then C2 and C3 are taken as the target orders of A1.
  • C2 and C3 may be orders generated by two users in the same office building to purchase items at the same merchant. In this way, the starting positions and destination positions of C2 and C3 are the same, and the corresponding matching degrees are also the same.
  • each target order is assigned to its corresponding target delivery capacity.
  • each target order in the to-be-dispatched order is determined, so that each target order can be assigned to its corresponding target delivery capacity. For example, assign target order C3 to target delivery capacity A1, target order C1 to target delivery capacity A2, and target order C5 to target delivery capacity A3 to complete this order scheduling.
  • assigning each target order to its corresponding target delivery capacity is to add the order information of the target order to the delivery information of the target delivery capacity, that is, the target order is regarded as the order to be delivered for the target delivery capacity.
  • the distribution capacity is assigned the most suitable order to be dispatched, so as to ensure that in this scheduling, the For the dispatched order, the distribution capacity assigned to it is the most suitable, and for the distribution capacity of each assigned order, the assigned order is also the most suitable, so as to ensure the accuracy of the order scheduling, which is the follow-up
  • the fast delivery of orders provides the basis, and can simplify the complexity of global order scheduling and improve the efficiency of order scheduling.
  • the orders to be dispatched may not be able to be dispatched all through one order dispatch.
  • the pending orders C2 and C3 in the above example that is, no scheduling allocation is performed in this order scheduling. Therefore, the present disclosure also provides the following embodiments to ensure that each pending order can be scheduled, thereby ensuring user experience.
  • the method further includes: taking orders other than the target order among the to-be-dispatched orders as the to-be-dispatched orders in the next time unit.
  • the target order is the order scheduled during the order scheduling process of this time unit. Therefore, for the orders that are not scheduled during the order scheduling process of this time unit (that is, orders other than the target order among the pending orders) ), the partial order is regarded as the to-be-dispatched order to be scheduled in the next time unit, so that the partial order can be scheduled in the subsequent scheduling process.
  • the pending orders to be scheduled in the next time unit also include the newly created orders to be scheduled during the scheduling process of the current time unit, such as those in the current time unit.
  • a new order created by the user a new order created by the user.
  • the steps S11-S14 are re-executed, thereby realizing real-time scheduling of pending orders and improving scheduling efficiency.
  • the implementation of the steps S11-S14 has been described in detail above, and will not be repeated here.
  • the device 300 includes: a clustering module 301 configured to perform an order for each pending order within a time unit. Orders are dispatched for clustering to obtain multiple order groups; the first determining module 302 is configured to determine the delivery capacity corresponding to each of the order groups; the second determining module 303 is configured to target each order group. According to the order group, according to the order information of each order to be dispatched in the order group and the distribution information of each delivery capacity corresponding to the order group, determine each order to be dispatched in the order group and each delivery capacity corresponding to the order group The degree of matching between each; the scheduling module 304 is configured to perform order scheduling on each of the pending orders according to each of the degrees of matching.
  • the clustering module includes: a splitting sub-module configured to split the order group into multiple order groups for an order group in which the number of orders to be scheduled exceeds a preset threshold, wherein the splitting The number of orders to be dispatched in each of the divided order groups is less than the preset threshold.
  • the clustering module is configured to determine the number of cluster centers according to the number of each of the pending orders and the preset threshold; according to the number of the cluster centers, and each of the pending orders The order information of the dispatch order clusters the pending orders to obtain the multiple order groups.
  • the scheduling module includes: a first determining sub-module configured to determine, for each of the pending orders, the delivery capacity with the highest matching degree corresponding to the pending orders as the first determining sub-module that corresponds to the pending orders Corresponding target delivery capacity; an allocation sub-module configured to allocate each of the pending orders to the corresponding target delivery capacity.
  • the scheduling module includes: a second determining sub-module configured to deliver capacity for each target.
  • a second determining sub-module configured to deliver capacity for each target.
  • the order to be dispatched with the highest matching degree corresponding to the capacity is determined as the target order corresponding to the target delivery capacity; if there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target order corresponding to the target delivery capacity Target orders; an allocation sub-module configured to allocate each of the target orders to their corresponding target delivery capacity.
  • the device is further configured to target delivery capacity for each target, and if there are two or more orders to be dispatched with the highest matching degree corresponding to the target delivery capacity, if the highest matching degree is If the task point information of each order to be dispatched is the same, then each order to be dispatched is regarded as the target order of the target delivery capacity; if the task point information of each order to be dispatched with the highest matching degree is different, then the order is different from each other.
  • the to-be-dispatched order selects a to-be-dispatched order as the target order of the target delivery capacity.
  • the device further includes: a third determining module configured to take orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
  • a third determining module configured to take orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
  • the order information includes different types of task point information;
  • the clustering module includes:
  • the clustering sub-module is configured to cluster the to-be-scheduled orders according to the task point information of the same type of the to-be-scheduled orders in the time unit.
  • the first determining module is configured to: for each of the order groups, determine the delivery capacity whose current position is less than a preset distance from the starting position of each order to be dispatched in the order group as the The delivery capacity corresponding to the order group.
  • the second determining module includes: a third determining sub-module configured to determine, for each of the distribution capacity, according to the distribution information of the distribution capacity, each pending order in the order group After being pre-allocated to the distribution capacity, the target parameter corresponding to the distribution capacity, the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending order to each distribution capacity; the fourth determining sub-module is configured to It is used to determine the matching degree between each order to be dispatched and the distribution capacity according to the target parameter corresponding to the distribution capacity and each order to be dispatched.
  • Fig. 4 is a block diagram showing an electronic device 400 according to an exemplary embodiment.
  • the electronic device 400 includes a processor 401 and a memory 402.
  • the electronic device 400 further includes one or more of a multimedia component 403, an input/output (I/O) interface 404, and a communication component 405.
  • a multimedia component 403 an input/output (I/O) interface 404
  • the processor 401 is used to control the overall operation of the electronic device 400 to complete all or part of the steps in the above-mentioned order scheduling method.
  • the memory 402 is used to store various types of data to support the operation of the electronic device 400.
  • the data includes, for example, instructions for any application or method to operate on the electronic device 400, and application-related data, such as Contact data, messages sent and received, pictures, audio, video, etc.
  • the memory 402 is implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable and programmable memory devices.
  • SRAM static random access memory
  • the multimedia component 403 may include a screen and an audio component.
  • the screen is, for example, a touch screen, and the audio component is used to output and/or input audio signals.
  • the audio component includes a microphone, which is used to receive external audio signals.
  • the received audio signal is further stored in the memory 402 or sent through the communication component 405.
  • the audio component also includes at least one speaker for outputting audio signals.
  • the I/O interface 404 provides an interface between the processor 401 and other interface modules.
  • the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like.
  • these buttons are virtual buttons or physical buttons.
  • the communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 405 includes: a Wi-Fi module, a Bluetooth module, an NFC module, and so on.
  • the electronic device 400 is controlled by one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processor (Digital Signal Processor, DSP for short), and digital signal processing equipment (Digital Signal Processing Device).
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD programmable logic device
  • PLD programmable Logic Device
  • FPGA field programmable gate array
  • controller microcontroller, microprocessor or other electronic components , Used to execute the above order scheduling method.
  • a computer-readable storage medium including program instructions that, when executed by a processor, implement the steps of the above-mentioned order scheduling method.
  • the computer-readable storage medium is the aforementioned memory 402 including program instructions, and the aforementioned program instructions can be executed by the processor 401 of the electronic device 400 to complete the aforementioned order scheduling method.
  • Fig. 5 is a block diagram showing an electronic device 500 according to an exemplary embodiment.
  • the electronic device 500 is provided as a server. 5
  • the electronic device 500 includes a processor 522, the number of which may be one or more, and a memory 532 for storing a computer program executable by the processor 522.
  • the computer program stored in the memory 532 includes one or more modules each corresponding to a set of instructions.
  • the processor 522 is configured to execute the computer program to execute the aforementioned order scheduling method.
  • the electronic device 500 further includes a power supply component 526 and a communication component 550, the power supply component 526 is configured to perform power management of the electronic device 500, and the communication component 550 is configured to implement the communication of the electronic device 500, for example, wired or Wireless communication.
  • the electronic device 500 further includes an input/output (I/O) interface 558.
  • the operation of the electronic device 500 is based on an operating system stored in the memory 532, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, and so on.
  • a computer-readable storage medium including program instructions that, when executed by a processor, implement the steps of the above-mentioned order scheduling method.
  • the computer-readable storage medium may be the aforementioned memory 532 including program instructions, and the aforementioned program instructions may be executed by the processor 522 of the electronic device 500 to complete the aforementioned order scheduling method.
  • a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the following steps are implemented: According to the order information of each pending order in a time unit, Each pending order is clustered to obtain multiple order groups; the distribution capacity corresponding to each order group is determined respectively; for each order group, according to the order information of each pending order in the order group and the distribution capacity corresponding to the order group To determine the matching degree between each pending order in the order group and each distribution capacity corresponding to the order group; according to each matching degree, order scheduling is performed on each pending order.
  • the following steps are further implemented: for an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into multiple order groups, where the split The number of orders to be dispatched in each order group is less than the preset threshold.
  • the following steps are implemented: determine the number of cluster centers according to the number of orders to be dispatched and a preset threshold; according to the number of cluster centers, and the orders of each order to be dispatched The information is clustered on the orders to be dispatched, and multiple order groups are obtained.
  • the following steps are implemented: for each order to be dispatched, the delivery capacity with the highest matching degree corresponding to the order to be dispatched is determined as the target delivery capacity corresponding to the order to be dispatched; Assign each pending order to the corresponding target delivery capacity.
  • the following steps are also implemented: for each target delivery capacity, if there are more than two orders to be dispatched corresponding to the target delivery capacity, the order corresponding to the target delivery capacity will be The pending order with the highest matching degree is determined as the target order corresponding to the target delivery capacity; when there is one pending order corresponding to the target delivery capacity, the pending order is determined as the target order corresponding to the target delivery capacity; Dispatching orders to the corresponding target distribution capacity includes: assigning each target order to its corresponding target distribution capacity.
  • the following steps are further implemented: taking orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
  • the order information includes different types of task point information; when the program is executed by the processor, the following steps are implemented: according to the same type of task point information of each pending order in a time unit, the pending orders are gathered kind.
  • the following steps are implemented: For each order group, determine the delivery capacity whose current position and the starting position of each pending order in the order group are less than the preset distance The distribution capacity corresponding to the order group.
  • the following steps are implemented: for each distribution capacity, according to the distribution information of the distribution capacity, it is determined to pre-allocate each pending order in the order group to the distribution capacity, and the distribution The target parameter corresponding to the capacity.
  • the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each distribution capacity; according to the distribution capacity and the target parameters corresponding to each pending order, determine the difference between each pending order and the distribution capacity suitability.
  • an electronic device includes: a memory on which a computer program is stored; and a processor configured to execute the computer program in the memory to implement the following steps:
  • the order information of each pending order in a time unit is clustered to obtain multiple order groups; the delivery capacity corresponding to each order group is determined respectively; for each order group, according to each pending order in the order group
  • the order information of the dispatch order and the distribution information of each distribution capacity corresponding to the order group determine the matching degree between each pending order in the order group and each distribution capacity corresponding to the order group; according to each matching degree, each pending order is determined Carry out order scheduling.
  • the processor is further configured to execute a computer program in the memory to implement the following steps: for an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into Multiple order groups, where the number of orders to be dispatched in each of the split order groups is less than a preset threshold.
  • the processor is configured to execute a computer program in the memory to implement the following steps: determine the number of cluster centers according to the number of orders to be dispatched and a preset threshold; The quantity and the order information of each pending order are clustered to obtain multiple order groups.
  • the processor is further configured to execute a computer program in the memory to implement the following steps: for each pending order, the delivery capacity with the highest matching degree corresponding to the pending order is determined as The target delivery capacity corresponding to the order to be dispatched; each order to be dispatched is assigned to the corresponding target delivery capacity.
  • the processor is further configured to execute a computer program in the memory to implement the following steps: for each target distribution capacity, in the case where there are more than two orders to be dispatched corresponding to the target distribution capacity Next, the order to be dispatched with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity; when there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target delivery The target order corresponding to the capacity; the processor is configured to execute a computer program in the memory to implement the following steps: each target order is assigned to the corresponding target distribution capacity.
  • the processor is further configured to execute a computer program in the memory to implement the following steps: take orders other than the target order among the orders to be scheduled as the orders to be scheduled in the next time unit Pending orders.
  • the order information includes different types of task point information; the processor is configured to execute a computer program in the memory to implement the following steps: according to the same type of orders for each pending order in a time unit Task point information, clustering orders to be scheduled.
  • the processor is configured to execute a computer program in the memory to implement the following steps: For each order group, compare the current position with the starting position of each pending order in the order group. The delivery capacity whose distance is less than the preset distance is determined as the delivery capacity corresponding to the order group.
  • the processor is configured to execute a computer program in the memory to implement the following steps: for each distribution capacity, according to the distribution information of the distribution capacity, respectively determine the order group to be dispatched After the order is pre-allocated to the distribution capacity, the target parameter corresponding to the distribution capacity.
  • the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each distribution capacity; each is determined according to the distribution capacity and the target parameters corresponding to each pending order The degree of matching between pending orders and delivery capacity.
  • a computer program product includes a computer program that can be executed by a programmable device, and the computer program has a function for executing the foregoing when executed by the programmable device.
  • the code part of the order scheduling method is further provided, the computer program product includes a computer program that can be executed by a programmable device, and the computer program has a function for executing the foregoing when executed by the programmable device.
  • a computer program product includes a computer program that can be executed by a programmable device.
  • the following steps are implemented: Order information of orders to be dispatched, cluster each order to be dispatched to obtain multiple order groups; respectively determine the delivery capacity corresponding to each order group; for each order group, according to the order information of each order to be dispatched in the order group.
  • the distribution information of each distribution capacity corresponding to the order group determines the matching degree between each pending order in the order group and each distribution capacity corresponding to the order group; order scheduling is performed on each pending order according to each matching degree.
  • the following steps are further implemented: for an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into multiple order groups, where The number of orders to be dispatched in each of the divided order groups is less than the preset threshold.
  • the following steps are implemented: determine the number of cluster centers according to the number of orders to be dispatched and a preset threshold; according to the number of cluster centers, and the number of orders to be dispatched
  • the order information clusters the orders to be scheduled to obtain multiple order groups.
  • the following steps are implemented: for each pending order, the delivery capacity with the highest matching degree corresponding to the pending order is determined as the target delivery capacity corresponding to the pending order ; Assign each pending order to the corresponding target distribution capacity.
  • the following steps are also implemented: For each target delivery capacity, if there are more than two orders to be dispatched corresponding to the target delivery capacity, it will correspond to the target delivery capacity.
  • the pending order with the highest matching degree is determined as the target order corresponding to the target delivery capacity; in the case of one pending order corresponding to the target delivery capacity, the pending order is determined as the target order corresponding to the target delivery capacity;
  • the allocation of pending orders to the corresponding target delivery capacity includes: allocating each target order to its corresponding target delivery capacity.
  • the following step is further implemented: taking orders other than the target order among the orders to be dispatched as orders to be dispatched in the next time unit.
  • the order information includes different types of task point information; when the computer level is executed by the electronic device, the following steps are implemented: according to the same type of task point information of each pending order in a time unit, the pending order is processed Clustering.
  • the following steps are implemented: For each order group, the distance between the current position and the starting position of each pending order in the order group is smaller than the delivery capacity of the preset distance Determine the delivery capacity corresponding to the order group.
  • the following steps are implemented: for each distribution capacity, according to the distribution information of the distribution capacity, respectively determine to pre-allocate each pending order in the order group to the distribution capacity, The target parameter corresponding to the distribution capacity, the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each distribution capacity; according to the distribution capacity and the target parameters corresponding to each pending order, determine the difference between each pending order and the distribution capacity The degree of match.
  • Fig. 6 is a schematic diagram showing an implementation environment according to an exemplary embodiment.
  • the implementation environment includes a plurality of first terminals 601, a plurality of second terminals 602, and a server 603.
  • the terminal 601 is directly or indirectly connected to the server 603 in a wired or wireless manner
  • the multiple second terminals 602 are directly or indirectly connected to the server 603 in a wired or wireless manner, respectively.
  • first terminals 601 are installed with a first target application client
  • multiple second terminals 602 are installed with a second target application client
  • the server 603 is for the first target application client and the second target application client.
  • the server that provides services at the end.
  • the first target application client is a client with a purchasing service function, for example, the first target application client is a shopping client, an instant messaging client, and so on.
  • the second target application client is a client with a task distribution function, for example, a delivery client.
  • multiple first terminals 601 upload multiple user orders to the server 602, and the server 602 performs order scheduling on the multiple orders, and distributes the delivery tasks of the multiple orders to multiple second terminals 602.
  • the user using the second terminal 602 delivers the multiple orders.

Abstract

Clustering is performed on each order to be dispatched according to order information of each order to be dispatched within a time unit, and a plurality of order groups are obtained; delivery transport forces corresponding to each order group are respectively determined; with respect to each order group, match degrees between each order to be dispatched within said order group and delivery transport forces corresponding to the order group are determined according to the order information of each order to be dispatched within the order group and delivery information of each delivery transport force corresponding to the order group; order dispatch is performed on each order to be dispatched according to the match degrees.

Description

订单调度Order scheduling
本公开要求于2020年01月21日提交、申请号为202010071676.5、发明名称为“订单调度方法、装置、存储介质和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This disclosure claims the priority of the Chinese patent application filed on January 21, 2020, the application number is 202010071676.5, and the invention title is "Order scheduling method, device, storage medium and electronic equipment", the entire content of which is incorporated into this application by reference middle.
技术领域Technical field
本公开涉及互联网技术领域,具体地,涉及一种订单调度方法、装置、存储介质和电子设备。The present disclosure relates to the field of Internet technology, and in particular, to an order scheduling method, device, storage medium, and electronic equipment.
背景技术Background technique
随着计算机技术的发展,外卖、拼车等业务也随之兴起,而其对应的订单量的规模也不断增大。为了持续优化成本,提高订单的配送效率变得越来越重要。With the development of computer technology, businesses such as food delivery and carpooling have also emerged, and the scale of their corresponding orders has also been increasing. In order to continuously optimize costs, it is becoming more and more important to improve the efficiency of order distribution.
发明内容Summary of the invention
本公开的目的是提供一种订单调度方法、装置、存储介质和电子设备,能够降低数据计算量和提高了实时性。The purpose of the present disclosure is to provide an order scheduling method, device, storage medium, and electronic equipment, which can reduce the amount of data calculation and improve real-time performance.
为了实现上述目的,根据本公开的第一方面,提供一种订单调度方法,所述方法包括:根据一时间单元内各个待调度订单的订单信息,对各个所述待调度订单进行聚类,获得多个订单组;分别确定与各个所述订单组对应的配送运力;针对各个所述订单组,根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的各个配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度;根据各个所述匹配度,对各个所述待调度订单进行订单调度。In order to achieve the above objective, according to the first aspect of the present disclosure, there is provided an order scheduling method. The method includes: clustering each pending order according to the order information of each pending order within a time unit to obtain Multiple order groups; respectively determine the delivery capacity corresponding to each of the order groups; for each of the order groups, according to the order information of each of the pending orders in the order group and the respective delivery corresponding to the order group The distribution information of the capacity determines the matching degree between each of the pending orders in the order group and each of the distribution capacity corresponding to the order group; according to each of the matching degrees, each of the pending orders is determined Carry out order scheduling.
可选地,所述根据一时间单元内各个待调度订单的订单信息对所述待调度订单进行聚类,获得多个订单组之后,所述方法还包括:针对其中待调度订单的数量超过预设阈值的订单组,将所述订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于所述预设阈值。Optionally, the clustering of the to-be-dispatched orders according to the order information of the to-be-dispatched orders in a time unit, and after obtaining a plurality of order groups, the method further includes: Set a threshold order group, split the order group into multiple order groups, wherein the number of orders to be dispatched in each order group obtained by the split is less than the preset threshold.
可选地,所述根据一时间单元内各个待调度订单的订单信息对所述待调度订单进行聚类,获得多个订单组,包括:根据各个所述待调度订单的数量和所述预设阈值,确定簇中心的数量;根据所述簇中心的数量,以及各个所述待调度订单的订单信息对所述待调度订单进行聚类,获得所述多个订单组。Optionally, the clustering the to-be-dispatched orders according to the order information of the to-be-dispatched orders in a time unit to obtain multiple order groups includes: according to the quantity of each of the to-be-dispatched orders and the preset The threshold value determines the number of cluster centers; clusters the pending orders according to the number of cluster centers and the order information of each pending order to obtain the multiple order groups.
可选地,所述根据各个所述匹配度,对各个所述待调度订单进行订单调度,包括:针对各个所述待调度订单,将与所述待调度订单对应的匹配度最高的配送运力确定为与所述待调度订单对应的目标配送运力;将各个所述待调度订单配送给对应的目标配送运力。Optionally, the performing order scheduling on each of the pending orders according to each of the matching degrees includes: for each of the pending orders, determining the delivery capacity with the highest matching degree corresponding to the pending orders Is the target delivery capacity corresponding to the order to be dispatched; each order to be dispatched is delivered to the corresponding target delivery capacity.
可选地,所述针对各个所述待调度订单,将与所述待调度订单对应的匹配度最高的配送运力确定为与所述待调度订单对应的目标配送运力之后,所述方法还包括:针对各个目标配送运力,在所述目标配送运力对应的待调度订单为 两个以上的情况下,将与所述目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在所述目标配送运力对应的待调度订单为一个的情况下,将所述待调度订单确定为所述目标配送运力对应的目标订单;Optionally, after determining, for each order to be dispatched, the delivery capacity corresponding to the order to be dispatched with the highest matching degree as the target delivery capacity corresponding to the order to be dispatched, the method further includes: For each target delivery capacity, if there are more than two pending orders corresponding to the target delivery capacity, the pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target corresponding to the target delivery capacity Order; in the case that there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target order corresponding to the target delivery capacity;
所述将各个所述待调度订单配送给对应的目标配送运力,包括:将各个所述目标订单分配给各自对应的目标配送运力。The distributing each of the pending orders to the corresponding target distribution capacity includes: allocating each of the target orders to the respective corresponding target distribution capacity.
可选地,所述方法还包括:针对各个目标配送运力,在所述目标配送运力对应的匹配度最高的待调度订单为两个或两个以上的情况下,若匹配度最高的各个所述待调度订单的任务点信息相同,则将各个所述待调度订单作为所述目标配送运力的目标订单;若匹配度最高的各个所述待调度订单的任务点信息不同,则从各个所述待调度订单选取一个待调度订单作为所述目标配送运力的目标订单。Optionally, the method further includes: for each target delivery capacity, if there are two or more orders to be dispatched with the highest matching degree corresponding to the target delivery capacity, if each of the highest matching orders is If the task point information of the to-be-scheduled orders is the same, each of the to-be-scheduled orders is taken as the target order of the target delivery capacity; if the task point information of each of the to-be-scheduled orders with the highest matching degree is different, then each of the to-be-scheduled orders is different The dispatch order selects a to-be dispatched order as the target order of the target delivery capacity.
可选地,所述方法还包括:将所述待调度订单中除所述目标订单之外的订单作为下一时间单元内待调度的待调度订单。Optionally, the method further includes: taking orders other than the target order among the to-be-dispatched orders as the to-be-dispatched orders in the next time unit.
可选地,所述订单信息包括不同类型的任务点信息;所述根据一时间单元内各个待调度订单的订单信息对所述待调度订单进行聚类,包括:根据所述时间单元内各个所述待调度订单的同类型的任务点信息对所述待调度订单进行聚类。Optionally, the order information includes different types of task point information; the clustering of the orders to be dispatched according to the order information of the orders to be dispatched in a time unit includes: according to the order information of the orders to be dispatched in the time unit The task point information of the same type of the to-be-scheduled orders clusters the to-be-scheduled orders.
可选地,所述分别确定与各个所述订单组对应的配送运力,包括:针对各个所述订单组,将当前位置与所述订单组内的各个所述待调度订单的起始位置的距离小于预设距离的配送运力确定为与所述订单组对应的配送运力。Optionally, the respectively determining the delivery capacity corresponding to each of the order groups includes: for each of the order groups, the distance between the current position and the starting position of each of the to-be-scheduled orders in the order group The delivery capacity less than the preset distance is determined as the delivery capacity corresponding to the order group.
可选地,所述根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度,包括:针对各个所述配送运力,根据所述配送运力的配送信息,分别确定将所述订单组内的各个所述待调度订单预分配给所述配送运力后、所述配送运力对应的目标参数,所述目标参数的大小用于区分将所述待调度订单预分配给各个所述配送运力的优劣;根据所述配送运力与各个所述待调度订单对应的目标参数确定各个所述待调度订单与该配送运力之间的匹配度。Optionally, the determining, according to the order information of each order to be dispatched in the order group and the distribution information of the delivery capacity corresponding to the order group, determine that each of the orders to be dispatched in the order group and all the orders The matching degree between each of the distribution capacity corresponding to the order group includes: for each of the distribution capacity, according to the distribution information of the distribution capacity, respectively determine to pre-order each of the pending orders in the order group After being allocated to the distribution capacity, the target parameter corresponding to the distribution capacity, the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each of the distribution capacities; according to the distribution capacity and The target parameter corresponding to each of the to-be-dispatched orders determines the degree of matching between each of the to-be-dispatched orders and the delivery capacity.
根据本公开的第二方面,提供一种订单调度装置,所述装置包括:聚类模块,被配置成用于根据一时间单元内各个待调度订单的订单信息,对各个所述待调度订单进行聚类,获得多个订单组;第一确定模块,被配置成用于分别确定与各个所述订单组对应的配送运力;第二确定模块,被配置成用于针对各个所述订单组,根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的各个配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度;调度模块,被配置成用于根据各个所述匹配度,对各个所述待调度订单进行订单调度。According to a second aspect of the present disclosure, there is provided an order scheduling device, the device comprising: a clustering module, configured to perform order scheduling on each pending order according to the order information of each pending order within a time unit Clustering to obtain multiple order groups; the first determining module is configured to determine the delivery capacity corresponding to each of the order groups; the second determining module is configured to determine the delivery capacity corresponding to each of the order groups according to The order information of each order to be dispatched in the order group and the distribution information of each delivery capacity corresponding to the order group are determined to determine each of the orders to be dispatched in the order group and each corresponding to the order group The degree of matching between the distribution capacity; the scheduling module is configured to perform order scheduling on each of the orders to be dispatched according to each of the degrees of matching.
可选地,所述聚类模块包括:拆分子模块,被配置成用于针对其中待调度订单的数量超过预设阈值的订单组,将所述订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于所述预设阈值。Optionally, the clustering module includes: a splitting sub-module configured to split the order group into multiple order groups for an order group in which the number of orders to be scheduled exceeds a preset threshold, wherein, The number of orders to be dispatched in each order group obtained by splitting is less than the preset threshold.
可选地,所述聚类模块,被配置成用于根据各个所述待调度订单的数量和所述预设阈值,确定簇中心的数量;根据所述簇中心的数量,以及各个所述待调度订单的订单信息对所述待调度订单进行聚类,获得所述多个订单组。Optionally, the clustering module is configured to determine the number of cluster centers according to the number of each of the pending orders and the preset threshold; according to the number of the cluster centers, and each of the pending orders The order information of the dispatch order clusters the pending orders to obtain the multiple order groups.
可选地,所述调度模块包括:第一确定子模块,被配置成用于针对各个所述待调度订单,将与所述待调度订单对应的匹配度最高的配送运力确定为与所述待调度订单对应的目标配送运力;分配子模块,被配置成用于将各个所述待调度订单分配给对应的目标配送运力。Optionally, the scheduling module includes: a first determining sub-module configured to determine, for each of the pending orders, the delivery capacity with the highest matching degree corresponding to the pending orders as the first determining sub-module. Dispatch the target delivery capacity corresponding to the order; the allocation sub-module is configured to allocate each of the pending orders to the corresponding target delivery capacity.
可选地,所述调度模块包括:第二确定子模块,被配置成用于针对各个目标配送运力,在所述目标配送运力对应的待调度订单为两个以上的情况下,将与所述目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在所述目标配送运力对应的待调度订单为一个的情况下,将所述待调度订单确定为所述目标配送运力对应的目标订单;分配子模块,被配置成用于将各个所述目标订单分配给各自对应的目标配送运力。Optionally, the scheduling module includes: a second determining sub-module configured to deliver capacity for each target, and when there are more than two orders to be dispatched corresponding to the target distribution capacity, the The pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity; in the case that there is one pending order corresponding to the target delivery capacity, the pending order is determined as the The target order corresponding to the target delivery capacity; the allocation sub-module is configured to allocate each of the target orders to the corresponding target delivery capacity.
可选地,所述装置还被配置成用于针对各个目标配送运力,在所述目标配送运力对应的匹配度最高的待调度订单为两个或两个以上的情况下,若匹配度最高的各个所述待调度订单的任务点信息相同,则将各个所述待调度订单作为所述目标配送运力的目标订单;若匹配度最高的各个所述待调度订单的任务点信息不同,则从各个所述待调度订单选取一个待调度订单作为所述目标配送运力的目标订单。Optionally, the device is further configured to target delivery capacity for each target, and if there are two or more orders to be dispatched with the highest matching degree corresponding to the target delivery capacity, if the highest matching degree is If the task point information of each order to be dispatched is the same, then each order to be dispatched is regarded as the target order of the target delivery capacity; if the task point information of each order to be dispatched with the highest matching degree is different, then the order is different from each other. The to-be-dispatched order selects a to-be-dispatched order as the target order of the target delivery capacity.
可选地,所述装置还包括:第三确定模块,被配置成用于将所述待调度订单中除所述目标订单之外的订单作为下一时间单元内待调度的待调度订单。Optionally, the device further includes: a third determining module configured to take orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
可选地,所述订单信息包括不同类型的任务点信息;所述聚类模块包括:聚类子模块,被配置成用于根据所述时间单元内各个所述待调度订单的同类型的任务点信息,对所述待调度订单进行聚类。Optionally, the order information includes different types of task point information; the clustering module includes: a clustering sub-module configured to perform tasks of the same type according to each of the to-be-scheduled orders in the time unit Point information to cluster the pending orders.
可选地,所述第一确定模块用于:针对各个所述订单组,将当前位置与所述订单组内的各个所述待调度订单的起始位置的距离小于预设距离的配送运力确定为与所述订单组对应的配送运力。Optionally, the first determining module is configured to: for each of the order groups, determine the delivery capacity whose current position is less than a preset distance from the starting position of each of the orders to be dispatched in the order group Is the delivery capacity corresponding to the order group.
可选地,所述第二确定模块包括:第三确定子模块,被配置成用于针对各个所述配送运力,根据所述配送运力的配送信息,分别确定将所述订单组内的各个所述待调度订单预分配给所述配送运力后、所述配送运力对应的目标参数,所述目标参数的大小用于区分将所述待调度订单预分配给各个配送运力的优劣;根据所述配送运力与各个所述待调度订单对应的目标参数,确定各个所述待调度订单与所述配送运力之间的匹配度。Optionally, the second determining module includes: a third determining sub-module configured to determine, for each of the distribution capacity, according to the distribution information of the distribution capacity, to separately determine the distribution of each of the orders in the order group. The target parameter corresponding to the delivery capacity after the order to be dispatched is pre-allocated to the delivery capacity, and the size of the target parameter is used to distinguish the pros and cons of pre-allocating the order to be dispatched to each delivery capacity; according to the The target parameter corresponding to the delivery capacity and each of the orders to be dispatched determines the degree of matching between each of the orders to be dispatched and the delivery capacity.
根据本公开的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面任一所述方法的步骤。According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any of the methods described in the first aspect are implemented.
根据本公开的第四方面,提供一种电子设备,包括:存储器,其上存储有计算机程序;处理器,被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:根据一时间单元内各个待调度订单的订单信息,对各个所述待调度订单进行聚类,获得多个订单组;分别确定与各个所述订单组对应的配送运力;针对各个所述订单组,根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的各个配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度;根据各个所述匹配度,对各个所述待调度订单进行订单调度。According to a fourth aspect of the present disclosure, there is provided an electronic device including: a memory on which a computer program is stored; and a processor configured to execute the computer program in the memory to implement the following steps: For the order information of each pending order within a time unit, cluster each pending order to obtain multiple order groups; respectively determine the delivery capacity corresponding to each of the order groups; for each of the order groups, according to The order information of each order to be dispatched in the order group and the distribution information of each delivery capacity corresponding to the order group determine each of the orders to be dispatched in the order group and each corresponding to the order group The degree of matching between the distribution capacity; according to each degree of matching, order scheduling is performed on each of the orders to be dispatched.
在上述技术方案中,由于在本公开中将各个待调度订单进行聚类,则在计算待调度订单与配送运力之间的匹配度时,只需要计算与其订单组对应的配送 运力之间的匹配度,从而能够有效降低计算匹配度所需的计算量,并且在进行订单调度时,也能够针对每个订单组进行局部调度,一方面有效降低了订单调度的复杂度,另一方面,降低了订单调度时的计算量,从而提高订单调度的效率和准确性,实时性好,速度快,能够适用于大规模的订单调度任务,满足即时配送业务的使用需求,另外还能够对该时间单元内的待调度订单进行并行处理,进一步提高订单调度的效率。并且,由于本公开所提供的方法能够大幅度降低数据的存取量和算法的计算量,降低实施该方法时对内存和计算资源的要求,从而也能够有效拓宽本公开所提供的订单调度方法的适用范围。In the above technical solution, since each pending order is clustered in the present disclosure, when calculating the matching degree between the pending order and the delivery capacity, only the matching between the delivery capacity corresponding to its order group needs to be calculated Therefore, it can effectively reduce the amount of calculation required to calculate the matching degree, and during order scheduling, it can also perform partial scheduling for each order group. On the one hand, it effectively reduces the complexity of order scheduling, and on the other hand, it reduces the complexity of order scheduling. The amount of calculation during order scheduling improves the efficiency and accuracy of order scheduling. It has good real-time performance and fast speed. It can be applied to large-scale order scheduling tasks and meet the needs of instant delivery services. In addition, it can also be used within the time unit. The pending orders are processed in parallel to further improve the efficiency of order scheduling. Moreover, because the method provided by the present disclosure can greatly reduce the amount of data access and the calculation of the algorithm, and reduce the requirements for memory and computing resources when implementing the method, it can also effectively broaden the order scheduling method provided by the present disclosure. The scope of application.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the following specific embodiments.
附图说明Description of the drawings
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the attached picture:
图1是根据本公开的一种实施方式提供的订单调度方法的流程图;Fig. 1 is a flowchart of an order scheduling method according to an embodiment of the present disclosure;
图2是根据匹配度,对待调度订单进行订单调度的一种示例性实施例的流程图;FIG. 2 is a flowchart of an exemplary embodiment of order scheduling for orders to be scheduled according to the matching degree;
图3是根据本公开的一种实施方式提供的订单调度装置的框图;Fig. 3 is a block diagram of an order scheduling device according to an embodiment of the present disclosure;
图4是根据一示例性实施例示出的一种电子设备的框图;Fig. 4 is a block diagram showing an electronic device according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种电子设备的框图;Fig. 5 is a block diagram showing an electronic device according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种实施环境的示意图。Fig. 6 is a schematic diagram showing an implementation environment according to an exemplary embodiment.
具体实施方式Detailed ways
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure.
相关技术中,以外卖场景为例,通常采用以地域为维度进行订单的调度。例如,每分钟所有的新订单和该区域的配送员通过调度算法进行实时匹配。然而考虑到系统稳定性要求,匹配的运算过程要求通常需要在较短时间内完成。由于多个订单和多个配送员的匹配是全局寻优,每个匹配关系之间都可能存在耦合。因此,通过上述方式,订单调度时所需的计算量过大,且耗时较多。In related technologies, take the takeaway scenario as an example, and order scheduling is usually carried out in a geographical dimension. For example, every minute all new orders are matched with dispatchers in the area in real time through a scheduling algorithm. However, considering the system stability requirements, the matching calculation process requirements usually need to be completed in a relatively short time. Since the matching of multiple orders and multiple distributors is a global optimization, there may be coupling between each matching relationship. Therefore, through the above method, the amount of calculation required for order scheduling is too large and time-consuming.
图1所示,为根据本公开的一种实施方式提供的订单调度方法的流程图。如图1所示,所述方法可以包括:Fig. 1 shows a flowchart of an order scheduling method according to an embodiment of the present disclosure. As shown in Figure 1, the method may include:
在S11中,根据一时间单元内各个待调度订单的订单信息对各个待调度订单进行聚类,获得多个订单组。In S11, cluster each pending order according to the order information of each pending order within a time unit to obtain multiple order groups.
其中,该订单信息包括该待调度订单对应的起始位置信息和目的位置信息等。可选地,起始位置信息为该待调度订单对应的初始位置,以外卖场景为例,该起始位置信息是制作该订单中物品的商家的位置,目的位置信息是该期望该订单送达的位置。在预约车场景下,该起始位置信息是订单对应的用户的上车位置,目的位置信息则是该订单对应的用户下车位置。可选地,该起始位置信息和目的位置信息分别指示的位置为一个或多个,如外卖场景下,一个订单对应于多个店家,即用户在一个订单中可能购买了多家商店的物品,此时需要分别到达每个商店获取对应的物品,从而将备齐的物品送至目的位置,这种情况 下,起始位置信息指示的位置则为多个,即分别对应于每个商店的位置。Wherein, the order information includes starting position information and destination position information corresponding to the order to be dispatched. Optionally, the starting location information is the initial location corresponding to the order to be dispatched. Take a takeaway scenario as an example. The starting location information is the location of the merchant who made the items in the order, and the destination location information is the expected delivery of the order. s position. In the car reservation scenario, the starting location information is the user's pick-up location corresponding to the order, and the destination location information is the user's drop-off location corresponding to the order. Optionally, the starting location information and the destination location information respectively indicate one or more locations. For example, in a takeaway scenario, one order corresponds to multiple stores, that is, the user may purchase items from multiple stores in one order At this time, you need to go to each store to obtain the corresponding items, so as to deliver the prepared items to the destination location. In this case, there are multiple locations indicated by the starting location information, that is, corresponding to each store’s Location.
其中,时间单元的时长能够根据实际使用场景进行设置,示例地,针对实时性要求较高的场景,该时长设置较短,对于实时性要求较低的场景,时长设置较长。另一示例中,根据不同的时段设置不同的时长,以外卖场景为例,晚高峰期间设置的时长较短,其他时段设置的时长略长。以上仅为示例性说明,本公开对此不进行限定。Among them, the duration of the time unit can be set according to actual usage scenarios. For example, for scenarios with higher real-time requirements, the duration is set to be shorter, and for scenarios with lower real-time requirements, the duration is set to be longer. In another example, different time lengths are set according to different time periods. Take a takeaway scenario as an example, the time length set during the evening peak period is shorter, and the time length set for other time periods is slightly longer. The above are only exemplary descriptions, and the present disclosure does not limit this.
在S12中,分别确定与各个订单组对应的配送运力。可选地,配送运力包括配送人员、配送机器人、无人车中的一者或多者。确定出的订单组对应的配送运力即为用于配送该订单组内的待调度订单的配送运力。In S12, the delivery capacity corresponding to each order group is determined respectively. Optionally, the delivery capacity includes one or more of delivery personnel, delivery robots, and unmanned vehicles. The distribution capacity corresponding to the determined order group is the distribution capacity used to distribute the pending orders in the order group.
其中,配送运力是指能够进行配送的人力或物力。Among them, the distribution capacity refers to the manpower or material resources that can carry out the distribution.
在S13中,针对各个订单组,根据该订单组内的各个待调度订单的订单信息和该订单组对应的各个配送运力的配送信息,确定该订单组内的各个待调度订单与该订单组对应的各个配送运力之间的匹配度。示例地,配送运力的配送信息是该配送运力的当前位置、该配送运力当前待配送的订单的信息等。其中,待配送订单和配送运力的匹配度用于表征该配送运力配送该待调度订单的优劣性。其中,该匹配度越大,则该配送运力配送该待调度订单越优。In S13, for each order group, according to the order information of each pending order in the order group and the distribution information of each delivery capacity corresponding to the order group, it is determined that each pending order in the order group corresponds to the order group The matching degree between the various distribution capacity of. For example, the distribution information of the distribution capacity is the current location of the distribution capacity, the information of the orders currently to be distributed by the distribution capacity, and so on. Among them, the matching degree between the order to be delivered and the delivery capacity is used to characterize the pros and cons of the order to be dispatched by the delivery capacity. Wherein, the greater the matching degree, the better the delivery capacity to deliver the pending order.
可选地,配送运力配送该待调度订单的优劣性是指:配送运力及时将订单配送完成的可能性,其中,配送运力配送该待调度订单越优,该配送运力及时将订单配送完成的可能性越高,配送运力配送该待调度订单越劣,该配送运力及时将订单配送完成的可能性越低。Optionally, the pros and cons of the delivery capacity of the pending order refers to the possibility that the delivery capacity will deliver the order in a timely manner, where the better the delivery capacity is to deliver the pending order, the delivery capacity will deliver the order in time The higher the probability, the worse the delivery capacity to deliver the pending order, and the lower the probability that the delivery capacity will complete the order in time.
其中,在对各个待调度订单进行聚类后,能够针对每个订单组中的待调度订单和该订单组对应的配送运力单独进行调度,从而在计算待调度订单与配送运力的匹配度时,只需要针对每个订单组分别计算即可,无需将当前待调度订单与其他订单组对应的配送运力进行匹配,从而能够有效降低订单调度所需的计算量。Among them, after clustering each order to be dispatched, the orders to be dispatched in each order group and the corresponding delivery capacity of the order group can be separately dispatched, so that when calculating the matching degree between the order to be dispatched and the delivery capacity, It only needs to be calculated separately for each order group, and there is no need to match the current pending orders with the corresponding delivery capacity of other order groups, which can effectively reduce the amount of calculation required for order scheduling.
需要说明的是,上述步骤S13并行对各个订单组进行并行处理,或者按照顺序依次对各个订单组进行处理,又或者每次并行对目标数量的订单组进行处理,之后继续并行对剩余目标数量的订单组进行处理,以此类推,本公开实施例对此各个订单组的处理方式不做限定。It should be noted that in the above step S13, each order group is processed in parallel, or each order group is processed in sequence, or each time the target quantity of order groups is processed in parallel, and then the remaining target quantity is processed in parallel. The order group is processed, and so on, the embodiment of the present disclosure does not limit the processing manner of each order group.
在S14中,根据各个匹配度,对各个待调度订单进行订单调度。In S14, order scheduling is performed on each pending order according to each matching degree.
其中,由上文所述可知,各个待调度订单对应的匹配度只包括其与该待调度订单所属订单组对应的配送运力之间的匹配度,因此进行订单调度时,能够针对每个订单组进行分别调度。Among them, it can be seen from the above that the matching degree corresponding to each order to be dispatched only includes the matching degree between it and the delivery capacity corresponding to the order group to which the order to be dispatched belongs. Therefore, when order scheduling is performed, it can be targeted for each order group. Dispatch separately.
由于在本公开中将各个待调度订单进行聚类,则在计算待调度订单与配送运力之间的匹配度时,只需要计算与其订单组对应的配送运力之间的匹配度,从而能够有效降低计算匹配度所需的计算量,并且在进行订单调度时,也能够针对每个订单组进行局部调度,一方面有效降低了订单调度的复杂度,另一方面,也降低了订单调度时的计算量,从而提高订单调度的效率和准确性,实时性好,速度快,能够适用于大规模的订单调度任务,能够满足即时配送业务的使用需求,另外也能够对该时间单元内的待调度订单进行并行处理,进一步提高订单调度的效率。并且,由于本公开所提供的方法能够大幅度降低数据的存取量和算法的计算量,降低实施该方法时对内存和计算资源的要求,从而也能 够有效拓宽本公开所提供的订单调度方法的适用范围。Since each pending order is clustered in the present disclosure, when calculating the matching degree between the pending order and the delivery capacity, only the matching degree between the delivery capacity corresponding to its order group needs to be calculated, which can effectively reduce The amount of calculation required to calculate the matching degree, and when performing order scheduling, it can also perform partial scheduling for each order group. On the one hand, it effectively reduces the complexity of order scheduling, on the other hand, it also reduces the calculation during order scheduling. In order to improve the efficiency and accuracy of order scheduling, the real-time performance is good, the speed is fast, and it can be applied to large-scale order scheduling tasks, and can meet the needs of instant delivery services. In addition, it can also be used for pending orders in the time unit. Parallel processing can further improve the efficiency of order scheduling. Moreover, because the method provided by the present disclosure can greatly reduce the amount of data access and the calculation of the algorithm, and reduce the requirements for memory and computing resources when implementing the method, it can also effectively broaden the order scheduling method provided by the present disclosure. The scope of application.
为了使本领域技术人员更加理解本公开实施例提供的技术方案,下面对上述步骤进一步进行说明。In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present disclosure, the above steps are further described below.
可选地,所述订单信息包括不同类型的任务点信息。例如,包括起始类型的任务点信息,如上文所述示例中的同一订单中的多个商家的位置,可选地,还包括目的类型的任务点信息,如上文所述示例的订单对应的用户的下车位置等。示例地,以外卖订单为例,每个订单信息包括起始类型的任务点信息,如该外卖订单对应的制作外卖的商家所在位置(即取货位置);还包括目的类型的任务点信息,如下单该外卖的用户期望该外卖的送达位置(即送货位置)。Optionally, the order information includes different types of task point information. For example, it includes the task point information of the starting type, such as the locations of multiple merchants in the same order in the example described above, and optionally, it also includes the task point information of the destination type, such as the order corresponding to the example described above The user’s drop-off location, etc. For example, take a takeaway order as an example, each order information includes the initial type of task point information, such as the location of the merchant making the takeaway corresponding to the takeaway order (ie the pickup location); it also includes the purpose type of task point information, The user who ordered the takeout expects the delivery location (that is, the delivery location) of the takeout.
所述根据一时间单元内各个待调度订单的订单信息对所述待调度订单进行聚类的示例性实施例如下,包括:The exemplary embodiment of clustering the to-be-dispatched orders according to the order information of the to-be-dispatched orders in a time unit is as follows, including:
根据该时间单元内各个待调度订单的同类型的任务点信息对所述待调度订单进行聚类。Clustering the to-be-scheduled orders according to the task point information of the same type of the to-be-scheduled orders in the time unit.
以外卖场景为例,在一种实施例中,根据各个待调度订单的起始位置进行聚类,因此,获得的同一聚类中的待调度订单的起始位置相近,从而能够尽量将属于同一商圈内的商家对应的待调度订单进行聚类。在另一实施例中,能够根据各个待调度订单的目的位置进行聚类,从而使得获得的同一聚类中的待调度订单的目的位置相近,从而将属于相近小区或社区的用户对应的待调度订单进行聚类。Take the takeaway scenario as an example. In one embodiment, clustering is performed according to the starting position of each order to be scheduled. Therefore, the starting positions of the orders to be scheduled in the same cluster obtained are similar, so as to be able to group as much as possible. The pending orders corresponding to the merchants in the business district are clustered. In another embodiment, clustering can be performed according to the destination positions of the orders to be scheduled, so that the destination positions of the orders to be scheduled in the same cluster obtained are similar, so that users belonging to similar cells or communities can be assigned to the corresponding to-be-scheduled orders Orders are clustered.
因此,通过上述技术方案,根据一时间单元内各个待调度订单的同类型的任务点信息对所述待调度订单进行聚类,从而能够将起始位置相近或者目的位置相近的待调度订单聚类到同一订单组中。因此,通过对待调度订单进行聚类,能够将距离相近的待调度订单分到同一订单组,而不同的订单组中的待调度订单相距较远,从而在进行订单调度时无需考虑不同订单组的待调度订单之间的影响,实现了对各个订单组进行独立地订单调度,并且能够有效降低订单调度过程中的数据计算量。Therefore, through the above technical solution, the to-be-scheduled orders are clustered according to the task point information of the same type of each to-be-scheduled order in a time unit, so that the to-be-scheduled orders with similar starting positions or similar destination positions can be clustered To the same order group. Therefore, by clustering orders to be dispatched, orders to be dispatched that are close to each other can be grouped into the same order group, while orders to be dispatched in different order groups are far apart, so there is no need to consider different order groups when scheduling orders. The influence between the orders to be dispatched realizes the independent order dispatching of each order group, and can effectively reduce the amount of data calculation in the order dispatching process.
可选地,在另一种实施例中,在聚类操作后,针对其中待调度订单的数量超过预设阈值的订单组,将该订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于所述预设阈值。可选地,该预设阈值通过实际使用场景进行设置,本公开对此不进行限定。Optionally, in another embodiment, after the clustering operation, for an order group in which the number of orders to be scheduled exceeds a preset threshold, the order group is split into multiple order groups, where the splitting The number of orders to be dispatched in each order group obtained is less than the preset threshold. Optionally, the preset threshold is set according to actual usage scenarios, which is not limited in the present disclosure.
示例地,在聚类操作后,会获得N个簇。之后,确定每个簇中的待调度订单的数量。若其中一个簇(记为簇C)中的待调度订单的数量超过该预设阈值,此时将该簇C进行拆分。可选地,进一步地调整距离阈值,从而根据簇C中的待调度订单的订单信息进行重新聚类。如,初始聚类时,将起始位置的距离小于M1的任两个待调度订单进行聚类,而在对簇C进行拆分时,设置簇C中起始位置的距离小于M2的任两个待调度订单进行聚类,其中,M2小于M1。For example, after the clustering operation, N clusters will be obtained. After that, determine the number of pending orders in each cluster. If the number of pending orders in one of the clusters (denoted as cluster C) exceeds the preset threshold, cluster C is split at this time. Optionally, the distance threshold is further adjusted to perform re-clustering according to the order information of the pending orders in cluster C. For example, during the initial clustering, cluster any two orders to be scheduled whose starting position is less than M1, and when splitting cluster C, set the starting position of cluster C to any two orders whose starting position is less than M2. Clustering of orders to be dispatched, where M2 is less than M1.
示例地,在拆分时采用K-Means(K均值聚类)算法进行重新聚类,其中K为大于等于1的任一整数,例如,K值根据簇C中的待调度订单的数量和该预设阈值进行确定,例如,簇C中的待调度订单的数量为Q,预设阈值为P,则K的取值大于Q与P的比值,从而尽可能地避免拆分之后的子簇中的待调度订单的数量大于预设阈值的问题。For example, the K-Means (K-means clustering) algorithm is used for re-clustering during splitting, where K is any integer greater than or equal to 1, for example, the value of K is based on the number of orders to be scheduled in cluster C and the The preset threshold is determined. For example, if the number of orders to be scheduled in cluster C is Q, and the preset threshold is P, then the value of K is greater than the ratio of Q to P, so as to avoid sub-clusters after splitting as much as possible The number of pending orders is greater than the preset threshold.
也就是说,对于待调度订单数量超过预设阈值的订单组,根据该订单组中 待调度订单的数量,与预设阈值的数量,来确定簇中心的数量(K),根据该K个簇中心对订单组重新进行聚类,得到K个簇,也即是将订单组重新分为K个订单组。That is to say, for an order group whose number of orders to be dispatched exceeds a preset threshold, the number of cluster centers (K) is determined according to the number of orders to be dispatched in the order group and the number of the preset threshold. According to the K clusters The center re-clusters the order group to obtain K clusters, that is, re-divides the order group into K order groups.
可选地,上述K-Means算法不仅能够应用于对订单组重新进行划分的过程中,还能够应用于将一时间单元内各个待调度订单划分为多个订单组的过程。在一实施例中,根据一时间单元内各个待调度订单的订单信息对待调度订单进行聚类,获得多个订单组,包括:根据各个待调度订单的数量和预设阈值,确定簇中心的数量;根据簇中心的数量,以及各个待调度订单的订单信息对待调度订单进行聚类,获得多个订单组。Optionally, the above-mentioned K-Means algorithm can not only be applied to the process of re-dividing order groups, but also can be applied to the process of dividing each pending order within a time unit into multiple order groups. In an embodiment, clustering the scheduled orders according to the order information of each pending order in a time unit to obtain multiple order groups includes: determining the number of cluster centers according to the number of each pending order and a preset threshold ;According to the number of cluster centers and the order information of each pending order, the scheduled orders are clustered to obtain multiple order groups.
在另一实施例中,若拆分之后的子簇中存在待调度订单的数量超过预设阈值的子簇,则对该子簇进行进一步的拆分,直至簇C拆分得到的子簇中的待调度订单的数据小于预设阈值,即拆分而得的每一订单组中的待调度订单的数量小于所述预设阈值。其中,对子簇进行拆分的方式与上文所述类似,在此不再赘述。In another embodiment, if there is a sub-cluster whose number of orders to be scheduled exceeds a preset threshold in the sub-cluster after splitting, the sub-cluster is further split until the sub-cluster obtained by splitting cluster C The data of the orders to be dispatched is less than the preset threshold, that is, the number of orders to be dispatched in each order group obtained by splitting is less than the preset threshold. Among them, the method of splitting the sub-clusters is similar to the above, and will not be repeated here.
通过上述技术方案,能够保证在每个订单组中包含数量较少的待调度订单,从而进一步降低后续进行待调度订单和配送运力的匹配度计算所消耗的计算资源。并且也能够在一定程度上保证每个订单组中的待分配订单的数量相对分别均匀,保证在订单调度高并发的同时也能够保证处理效率的一致性,从而保证订单调度的准确性。Through the above technical solution, it can be ensured that each order group contains a small number of pending orders, thereby further reducing the computing resources consumed in subsequent calculations of the matching degree between pending orders and delivery capacity. And to a certain extent, it can also ensure that the number of orders to be allocated in each order group is relatively uniform, ensuring high concurrency in order scheduling while also ensuring the consistency of processing efficiency, thereby ensuring the accuracy of order scheduling.
可选地,在S12中,分别确定与各个订单组对应的配送运力的一种示例性实施例如下,该步骤可以包括:Optionally, in S12, an exemplary embodiment of separately determining the delivery capacity corresponding to each order group is as follows, this step may include:
针对各个所述订单组,将当前位置与该订单组内的各个待调度订单的起始位置的距离小于预设距离的配送运力确定为与该订单组对应的配送运力。For each of the order groups, the delivery capacity whose current position is less than the preset distance from the starting position of each pending order in the order group is determined as the delivery capacity corresponding to the order group.
示例地,在为待调度订单分配配送运力时,为了降低配送运力的无效移动,即避免配送运力从其当前位置移动到待调度订单的起始位置之间的行程过长,在该实施例中,在确定订单组对应的配送运力时会优先选择距离该待调度订单的初始位置较近的配送运力。For example, when allocating delivery capacity for orders to be dispatched, in order to reduce the ineffective movement of delivery capacity, that is, to avoid excessively long travel between the movement of the delivery capacity from its current position to the starting position of the order to be dispatched, in this embodiment , When determining the delivery capacity corresponding to the order group, the delivery capacity that is closer to the initial position of the order to be dispatched will be preferentially selected.
作为示例,针对各个订单组,确定该订单组中的各个待调度订单的起始位置,可选地,起始位置根据待调度订单的订单信息进行确定。若该待调度订单对应的起始位置信息指示的位置为多个,则以该起始位置信息指示的多个位置中、待调度订单对应的路径上的第一个位置作为起始位置。若该待调度订单对应的起始位置信息指示的位置为一个,则直接将该位置作为起始位置。As an example, for each order group, the starting position of each order to be dispatched in the order group is determined. Optionally, the starting position is determined according to the order information of the order to be dispatched. If there are multiple positions indicated by the starting position information corresponding to the order to be dispatched, the first position on the path corresponding to the order to be dispatched among the positions indicated by the starting position information is used as the starting position. If the position indicated by the starting position information corresponding to the to-be-dispatched order is one, the position is directly used as the starting position.
例如,如果待调度订单对应的起始位置信息指示的位置为多个,则将该起始位置信息指示的多个位置按照路径最短规则进行连接,得到行驶路线,将该行驶路线中的第一个位置或者最后一个位置作为起始位置。For example, if there are multiple locations indicated by the starting location information corresponding to the order to be dispatched, the multiple locations indicated by the starting location information are connected according to the shortest path rule to obtain the driving route, and the first The first position or the last position is used as the starting position.
在一种实施例中,针对各个待调度订单,根据该待调度订单的初始位置和各个配送运力的当前位置,确定该待调度订单与各个配送运力之间的距离,将该距离小于预设距离的配送运力作为待分配的配送运力。可选地,计算两位置点之间的距离是在地图中,确定两个位置,获取两个位置之间的至少一条行驶路径,确定该至少一条行驶路径中最短的行驶路径,将该最短的行驶路径的长度确定为两位置点之间的距离。In an embodiment, for each order to be dispatched, the distance between the order to be dispatched and each delivery capacity is determined according to the initial position of the order to be dispatched and the current position of each delivery capacity, and the distance is less than the preset distance The distribution capacity of is used as the distribution capacity to be allocated. Optionally, calculating the distance between two location points is to determine two locations in the map, obtain at least one driving path between the two locations, determine the shortest driving path in the at least one driving path, and set the shortest The length of the driving path is determined as the distance between two location points.
在另一种实施例中,针对各个待调度订单,确定以该待调度订单为中心在 预设距离范围内的位置范围,将当前位置属于该位置范围的配送运力确定为待分配的配送运力。其中,确定以该待调度订单为中心在预设距离范围内的位置范围是指:确定以该待调度订单为中心,且与该中心距离不超过预设距离的位置范围。可选地,根据中心点位置和距离确定位置范围是以待调度订单为圆心,以预设距离范围为半径,确定一圆形区域。后续将当前位置属于该圆形区域的配送运力确定为待分配的配送运力。In another embodiment, for each order to be dispatched, a position range within a preset distance range centered on the order to be dispatched is determined, and the delivery capacity whose current position belongs to the position range is determined as the delivery capacity to be allocated. Wherein, determining a position range centered on the order to be dispatched within a preset distance range refers to determining a position range centered on the order to be dispatched and the distance from the center does not exceed the preset distance. Optionally, determining the position range according to the position and distance of the center point is to determine a circular area with the order to be dispatched as the center and the preset distance range as the radius. Subsequently, the delivery capacity whose current location belongs to the circular area is determined as the delivery capacity to be allocated.
因此,将根据该订单组内的各个待调度订单确定出的待分配的配送运力作为该订单组对应的配送运力。Therefore, the distribution capacity to be allocated determined according to each pending order in the order group is taken as the distribution capacity corresponding to the order group.
通过上述技术方案,在确定订单组对应的配送运力时,通过将当前位置与该订单组内的各个待调度订单的起始位置的距离小于预设距离的配送运力确定为与该订单组对应的配送运力,一方面能够保证配送运力及时地到达该待调度订单的初始位置,从而提高订单配送时的效率。另一方面,能够避免配送运力进行过多的无效移动,从而节省配送运力到达该待调度订单的初始位置所消耗的资源,提高订单调度方法的合理性和全面性。Through the above technical solution, when determining the distribution capacity corresponding to the order group, the distribution capacity whose current position is less than the preset distance from the starting position of each pending order in the order group is determined as the distribution capacity corresponding to the order group Distribution capacity, on the one hand, can ensure that the distribution capacity reaches the initial position of the pending order in a timely manner, thereby improving the efficiency of order distribution. On the other hand, it can avoid excessive invalid movement of the distribution capacity, thereby saving the resources consumed by the distribution capacity to reach the initial position of the pending order, and improving the rationality and comprehensiveness of the order scheduling method.
可选地,在S13中,根据该订单组内的各个待调度订单的订单信息和该订单组对应的各个配送运力的配送信息,确定该订单组内的各个待调度订单与该订单组对应的各个配送运力之间的匹配度的一种示例性实施例如下,该步骤包括:Optionally, in S13, according to the order information of each pending order in the order group and the distribution information of each delivery capacity corresponding to the order group, it is determined that each pending order in the order group corresponds to the order group. An exemplary embodiment of the degree of matching between various distribution capacities is as follows, and this step includes:
针对各个所述配送运力,根据该配送运力的配送信息,分别确定将该订单组内的各个待调度订单预分配给该配送运力后,所述配送运力对应的目标参数,所述目标参数的大小用于区分将该待调度订单预分配给各个配送运力的优劣;For each of the distribution capacity, according to the distribution information of the distribution capacity, respectively determine the target parameter corresponding to the distribution capacity after each pending order in the order group is pre-allocated to the distribution capacity, and the size of the target parameter Used to distinguish the pros and cons of pre-allocating the pending order to each distribution capacity;
根据该配送运力与各个待调度订单对应的目标参数确定各个所述待调度订单与该配送运力之间的匹配度。The degree of matching between each order to be dispatched and the delivery capacity is determined according to the target parameter corresponding to the delivery capacity and each order to be dispatched.
示例地,该目标参数是通过待调度订单预分配给该配送运力后,所述配送运力对应的配送行程增长量确定,例如通过配送行程增长量以确定待调度订单与配送运力之间的匹配度。例如,在为配送运力分配订单X后,其配送行程增长量较大,则表示该配送运力在增加配送该订单X后,其需要增加较多的行程才能够完成配送,如该配送运力需要绕路配送该订单X,即该待调度订单与该配送运力的匹配度较低。在为配送运力分配订单X后,其配送行程增长量较小,则表示该配送运力在增加配送该订单X后,其只需要增加较少的行程就能够完成配送,如该配送运力能够顺路配送该订单X,即该待调度订单与该配送运力的匹配度较高。For example, the target parameter is determined by the increase in the distribution itinerary corresponding to the distribution capacity after the order to be dispatched is pre-allocated to the distribution capacity. For example, the increase in the distribution itinerary is used to determine the degree of matching between the order to be dispatched and the distribution capacity. . For example, after allocating order X to the distribution capacity, its distribution itinerary increases by a large amount, which means that after the distribution capacity is increased to deliver the order X, it needs to increase more itineraries to complete the distribution. For example, the distribution capacity needs to be bypassed. The order X is delivered by route, that is, the matching degree between the pending order and the delivery capacity is low. After allocating order X to the distribution capacity, the increase in the distribution itinerary is small, which means that after the distribution capacity is increased to distribute the order X, it only needs to add a small amount of itinerary to complete the distribution, if the distribution capacity can be delivered along the way The order X, that is, the order to be dispatched has a higher degree of matching with the delivery capacity.
示例地,以下对根据该配送运力的配送信息,分别确定将该订单组内的各个待调度订单预分配给该配送运力后,所述配送运力对应的配送行程增长量的示例性实施例进行说明。For example, the following describes an exemplary embodiment of the increase in the distribution journey corresponding to the distribution capacity after each pending order in the order group is pre-allocated to the distribution capacity according to the distribution information of the distribution capacity. .
若为配送运力增加配送订单X,则根据该配送运力的已分配的订单和该订单X规划订单配送路径,从而对其分配配送的各个订单进行配送。在一种实施例中,在确定订单配送路径时,根据该配送运力分配的各个订单的订单信息(如,起始位置信息和目的位置信息)进行搜索的方式,即根据该各个订单的订单信息,遍历全部的订单连接顺序并获得每一种可选方案中的总路径,将总路径最短的路径作为该订单配送路径。将该订单配送路径与未分配订单X之前的订单配送路径之差确定为该配送行程增长量,即在为该配送运力预分配订单X之后,其订单配送路径的变化量。If the distribution order X is added to the distribution capacity, the order distribution path is planned according to the assigned order of the distribution capacity and the order X, so as to distribute each order assigned and distributed. In one embodiment, when determining the order delivery route, the search is performed according to the order information (for example, the starting location information and the destination location information) of each order allocated by the delivery capacity, that is, according to the order information of each order , Traverse all the order connection sequence and obtain the total path in each alternative scheme, and use the shortest path as the order delivery path. The difference between the order delivery path and the order delivery path before the unallocated order X is determined as the delivery itinerary increase, that is, the order delivery path change after the order X is pre-allocated for the delivery capacity.
在另一种实施例中,在为配送运力预分配订单X之后,针对该配送运力,根据贪婪算法和设定的约束条件,以最大化订单配送效率为目标,向该订单的配送路径中插入各个订单的任务点信息,得到该配送运力对应的试规划路径,其中,该约束条件和该各个任务点集合相关。之后,根据各个任务点信息对应的计划到达时间,以及基于该试规划路径确定的各个任务点信息对应的预估到达时间,对该试规划路径进行调整,得到该配送运力对应的订单配送路径。同样的,在确定出订单配送路径之后,将该订单配送路径与未分配订单X之前的订单配送路径之差确定为该配送行程增长量。In another embodiment, after the order X is pre-allocated for the delivery capacity, for the delivery capacity, according to the greedy algorithm and the set constraints, with the goal of maximizing the order delivery efficiency, insert into the delivery path of the order For the task point information of each order, the trial planning path corresponding to the distribution capacity is obtained, wherein the constraint condition is related to the set of each task point. Then, according to the planned arrival time corresponding to each task point information and the estimated arrival time corresponding to each task point information determined based on the trial planning route, the trial planning route is adjusted to obtain the order delivery route corresponding to the delivery capacity. Similarly, after the order delivery path is determined, the difference between the order delivery path and the order delivery path before the unallocated order X is determined as the delivery itinerary increase.
可选地,在确定出该配送行程增长量后,将该配送行程增长量取倒数后进行归一化处理,从而获得该待调度订单与该配送运力之间的匹配度,其中,该配送行程增长量越小,对应的目标参数则表示将该待调度订单预分配给该配送运力越优,即该待调度订单与该配送运力之间的匹配度越大。其中,上述确定匹配度的方式仅为示例性说明,仅用于表示配送行程增长量与匹配度为负相关的关系,即配送行程增长量越大,对应的待调度订单与该配送运力之间的匹配度越小,并不用于对本公开进行限定。Optionally, after determining the delivery itinerary growth amount, take the reciprocal of the delivery itinerary growth amount and perform normalization processing, so as to obtain the degree of matching between the pending order and the delivery capacity, where the delivery itinerary The smaller the increase, the corresponding target parameter indicates that the pre-allocation of the pending order to the distribution capacity is the better, that is, the greater the matching degree between the pending order and the distribution capacity. Among them, the above method of determining the matching degree is only an exemplary description, and is only used to indicate the negative correlation between the growth of the delivery itinerary and the matching degree, that is, the greater the growth of the delivery itinerary, the greater the relationship between the corresponding pending order and the delivery capacity The smaller the matching degree of is not used to limit the present disclosure.
作为另一示例,该目标参数是通过待调度订单预分配给该配送运力后,所述配送运力的待配送订单对应的超时时间确定。如上述示例,在确定出将订单X分配给该配送运力对应的订单配送路径之后,确定出该订单配送路径中每个订单对应的送达时间。之后,将各个订单的送达时间晚于对应的订单的计划达到时间的时段之和确定为配送运力的待配送订单对应的超时时间。其中,该超时时间越短,对应的目标参数则表示将该待调度订单预分配给该配送运力越优,即该待调度订单与该配送运力之间的匹配度越大。可选地,根据超时时间确定匹配度的方式采用与上文所述确定匹配度同样的方式,如将超时时间取倒数之后进行归一化获得匹配度,超时时间与匹配度为负相关的关系,即超时时间越长,对应的待调度订单与该配送运力之间的匹配度越小。As another example, the target parameter is determined by the timeout period corresponding to the order to be delivered for the delivery capacity after the order to be dispatched is pre-allocated to the delivery capacity. As in the above example, after it is determined that the order X is allocated to the order delivery route corresponding to the delivery capacity, the delivery time corresponding to each order in the order delivery route is determined. After that, the sum of the time periods in which the delivery time of each order is later than the planned arrival time of the corresponding order is determined as the timeout time corresponding to the pending order of the delivery capacity. Wherein, the shorter the timeout period, the corresponding target parameter indicates that the pre-allocation of the pending order to the distribution capacity is the better, that is, the greater the degree of matching between the pending order and the distribution capacity. Optionally, the method for determining the matching degree according to the timeout period is the same as the above-mentioned method for determining the matching degree. For example, taking the inverse of the timeout period and performing normalization to obtain the matching degree, the relationship between the timeout period and the matching degree is negatively correlated , That is, the longer the timeout period, the smaller the matching degree between the corresponding pending order and the delivery capacity.
作为另一示例,该目标参数通过待调度订单预分配给该配送运力后、所述配送运力对应的配送行程增长量和待调度订单预分配给该配送运力后、所述配送运力的待配送订单对应的超时时间确定。例如,预先设置超时时间和配送行程增长量分别对应的权重,从而在确定出超时时间和配送行程增长量,根据分别对应的权重确定加权和作为目标参数,从而根据目标参数确定该匹配度。可选地,同样采用对加权和取倒数并进行归一化的方式确定该匹配度。在该实施例中,目标参数越小则表示将该待调度订单预分配给该配送运力越优,即该待调度订单与该配送运力之间的匹配度越大。As another example, after the target parameter is pre-allocated to the delivery capacity through the order to be dispatched, the delivery itinerary increase corresponding to the delivery capacity and the order to be dispatched to the delivery capacity after the order to be dispatched is pre-allocated to the delivery capacity. The corresponding timeout period is determined. For example, the weights corresponding to the timeout time and the delivery itinerary increase are set in advance, so that when the time-out time and the delivery itinerary increase are determined, the weighted sum is determined according to the respective weights as the target parameter, and the matching degree is determined according to the target parameter. Optionally, the matching degree is also determined by taking the reciprocal of the weighted sum and performing normalization. In this embodiment, the smaller the target parameter, the better the pre-allocation of the pending order to the distribution capacity, that is, the greater the degree of matching between the pending order and the distribution capacity.
需要进行说明的是,上述各示例中根据目标参数确定匹配度的方式仅为示例性说明,仅用于表示确定出的目标参数与匹配度为负相关的关系,即目标参数越大,对应的待调度订单与该配送运力之间的匹配度越小,并不用于对本公开进行限定。It should be noted that the method of determining the matching degree according to the target parameters in the above examples is only exemplary, and it is only used to indicate that the determined target parameter and the matching degree are negatively correlated, that is, the larger the target parameter, the corresponding The smaller the matching degree between the order to be dispatched and the delivery capacity is, it is not used to limit the present disclosure.
在上述技术方案中,通过针对各个所述配送运力,根据该配送运力的配送信息,分别确定将该订单组内的各个待调度订单预分配给该配送运力后、所述配送运力对应的目标参数;根据该配送运力与各个待调度订单对应的目标参数确定各个所述待调度订单与该配送运力之间的匹配度。因此,在上述技术方案中,能够通过为配送运力预分配订单的方式,根据该配送运力在分配订单后的 参数变化,确定该待调度订单和配送运力的匹配度,从而能够通过该参数变化对该配送运力配送该订单的优劣进行量化表示,为后续基于该匹配度进行订单调度提供准确地数据支持,并且能够保证订单调度的合理性,符合订单调度业务的使用需求。In the above technical solution, the target parameters corresponding to the distribution capacity after each pending order in the order group is pre-allocated to the distribution capacity are determined according to the distribution information of the distribution capacity for each of the distribution capacity. ; Determine the degree of matching between each order to be dispatched and the delivery capacity according to the target parameter corresponding to the delivery capacity and each order to be dispatched. Therefore, in the above technical solution, it is possible to pre-allocate orders for the distribution capacity, and determine the matching degree between the pending order and the distribution capacity according to the parameter change of the distribution capacity after the order is allocated, so that the parameter change can be used to determine the matching degree between the order to be dispatched and the distribution capacity. The delivery capacity of the delivery of the order is quantitatively expressed, which provides accurate data support for subsequent order scheduling based on the matching degree, and can ensure the rationality of order scheduling and meet the use requirements of order scheduling services.
可选地,在S14中,根据匹配度,对待调度订单进行订单调度的一种示例性实施例如下,如图2所示,该步骤可以包括:Optionally, in S14, according to the matching degree, an exemplary embodiment of order scheduling for the order to be scheduled is as follows, as shown in FIG. 2, this step may include:
在S21中,针对各个待调度订单,将与该待调度订单对应的匹配度最高的配送运力确定为与该待调度订单对应的目标配送运力。In S21, for each order to be dispatched, the delivery capacity with the highest matching degree corresponding to the order to be dispatched is determined as the target delivery capacity corresponding to the order to be dispatched.
其中,确定匹配度的方式已在上文进行详述,在此不再赘述。在该步骤中,将与该待调度订单对应的匹配度最高的配送运力确定为与该待调度订单对应的目标配送运力,即是首先将该调度订单的最优配送运力用于配送该待调度订单。Among them, the method of determining the matching degree has been described in detail above, and will not be repeated here. In this step, the delivery capacity with the highest matching degree corresponding to the pending order is determined as the target delivery capacity corresponding to the pending order, that is, the optimal delivery capacity of the scheduled order is first used to deliver the pending order Order.
针对各个目标配送运力,在该目标配送运力对应的待调度订单为两个以上的情况下,执行S22,在该目标配送运力对应的待调度订单为一个的情况下,执行S23;For each target delivery capacity, if there are more than two orders to be dispatched corresponding to the target delivery capacity, execute S22, and if there is one order to be dispatched corresponding to the target delivery capacity, execute S23;
在S22中,将与该目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;In S22, the pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity;
在S23中,将该待调度订单确定为该目标配送运力对应的目标订单。In S23, the pending order is determined as the target order corresponding to the target delivery capacity.
示例地,针对一订单组,其对应的配送运力为A1、A2、A3,待调度订单为C1、C2、C3、C4、C5,在S21中,确定出的C1对应的目标配送运力为A2,确定出的C2对应的目标配送运力为A1,确定出的C3对应的目标配送运力为A1,确定出的C4对应的目标配送运力为A1,确定出的C5对应的目标配送运力为A3。For example, for an order group, the corresponding delivery capacity is A1, A2, A3, and the pending orders are C1, C2, C3, C4, C5. In S21, the target delivery capacity corresponding to C1 is determined to be A2, The determined target distribution capacity corresponding to C2 is A1, the determined target distribution capacity corresponding to C3 is A1, the determined target distribution capacity corresponding to C4 is A1, and the determined target distribution capacity corresponding to C5 is A3.
因此,针对于目标配送运力A1,其对应的待调度订单为C2、C3、C4,在该情况下,从该多个待调度订单中选择一者作为目标配送运力A1在本次调度过程中的目标订单,即A1进行配送的订单。示例地,将与该目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单。若C3与A1的匹配度高于C2与A1的匹配度,且C3与A1的匹配度高于C4与A1的匹配度,则将C3作为A1的目标订单。此时,C2和C3在本次订单调度中没有进行调度分配。Therefore, for the target delivery capacity A1, the corresponding pending orders are C2, C3, C4. In this case, one of the multiple pending orders is selected as the target delivery capacity A1 in this scheduling process. The target order is the order for A1 to deliver. For example, the order to be dispatched with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity. If the matching degree between C3 and A1 is higher than the matching degree between C2 and A1, and the matching degree between C3 and A1 is higher than the matching degree between C4 and A1, then C3 is taken as the target order of A1. At this time, C2 and C3 did not perform scheduling allocation in this order scheduling.
针对于目标配送运力A2,其对应的待调度订单为C1,此时,则直接将C1作为A2的目标订单。同样地,将C5作为A3的目标订单。For the target delivery capacity A2, the corresponding pending order is C1. At this time, C1 is directly used as the target order of A2. Similarly, take C5 as the target order for A3.
其他订单组中确定目标订单的方式采用上文所述同样的方式,在此不再赘述。由此,可针对各个订单组分别进行确定,也能够保证该订单配送方法计算时的高并发,有效提高订单调度的效率。The method of determining the target order in other order groups adopts the same method as described above, and will not be repeated here. As a result, each order group can be determined separately, and high concurrency in the calculation of the order delivery method can also be ensured, and the efficiency of order scheduling can be effectively improved.
可选地,如果与目标配送运力对应的多个待调度订单的匹配度相同,均为最高值,则确定该多个待调度订单的任务点信息是否相同,如果该多个待调度订单的任务点信息相同,则将该多个待调度订单作为目标配送运力的目标订单;如果该多个待调度订单的任务点信息不同,则从该多个待调度订单中随机选取一个待调度订单作为目标配送运力的目标订单。Optionally, if the matching degrees of the multiple pending orders corresponding to the target delivery capacity are the same and all have the highest value, it is determined whether the task point information of the multiple pending orders is the same, if the tasks of the multiple pending orders If the point information is the same, then the multiple pending orders will be regarded as the target order of the target delivery capacity; if the multiple pending orders have different task point information, then a pending order will be randomly selected from the multiple pending orders as the target Target order for delivery capacity.
例如,针对于目标配送运力A1,其对应的待调度订单为C2、C3、C4,其中,C2与A1的匹配度和C3与A1的匹配度均高于C4与A1的匹配度,且C2与A1的匹配度和C3与A1的匹配度相同,则将C2和C3作为A1的目标订单。可选地,C2和C3可以是同一写字楼中的两个用户在同一商家购买物品所生成的订单,这样,C2和C3的起始位置和目的位置均相同,对应的匹配度也相同。For example, for the target distribution capacity A1, the corresponding pending orders are C2, C3, and C4, where the matching degree between C2 and A1 and the matching degree between C3 and A1 are higher than the matching degree between C4 and A1, and the matching degree between C2 and A1 is higher than that between C4 and A1. The matching degree of A1 is the same as the matching degree of C3 and A1, then C2 and C3 are taken as the target orders of A1. Optionally, C2 and C3 may be orders generated by two users in the same office building to purchase items at the same merchant. In this way, the starting positions and destination positions of C2 and C3 are the same, and the corresponding matching degrees are also the same.
在S24中,将各个目标订单分配给各自对应的目标配送运力。In S24, each target order is assigned to its corresponding target delivery capacity.
如上述示例,确定出待调度订单中的各个目标订单,从而能够将各个目标订单分配给各自对应的目标配送运力。如,将目标订单C3分配给目标配送运力A1,将目标订单C1分配给目标配送运力A2,将目标订单C5分配给目标配送运力A3,完成本次的订单调度。As in the above example, each target order in the to-be-dispatched order is determined, so that each target order can be assigned to its corresponding target delivery capacity. For example, assign target order C3 to target delivery capacity A1, target order C1 to target delivery capacity A2, and target order C5 to target delivery capacity A3 to complete this order scheduling.
示例地,将各个目标订单分配给各自对应的目标配送运力是将目标订单的订单信息添加至该目标配送运力的配送信息中,即将该目标订单作为该目标配送运力的待配送的订单。For example, assigning each target order to its corresponding target delivery capacity is to add the order information of the target order to the delivery information of the target delivery capacity, that is, the target order is regarded as the order to be delivered for the target delivery capacity.
在上述技术方案中,通过确定与待调度订单最匹配的配送运力,在该配送运力有重合时,为该配送运力分配最匹配的待调度订单,从而能够保证在本次调度中,针对已进行调度的订单,其分配到的配送运力为与其最匹配的,并且针对各个已分配订单的配送运力,其分配到的订单也是与其最匹配的,从而能够保证点单调度的准确性,从而为后续订单的快速配送提供基础,并且能够简化全局订单调度的复杂度,提高订单调度的效率。In the above technical solution, by determining the distribution capacity that best matches the order to be dispatched, when the distribution capacity overlaps, the distribution capacity is assigned the most suitable order to be dispatched, so as to ensure that in this scheduling, the For the dispatched order, the distribution capacity assigned to it is the most suitable, and for the distribution capacity of each assigned order, the assigned order is also the most suitable, so as to ensure the accuracy of the order scheduling, which is the follow-up The fast delivery of orders provides the basis, and can simplify the complexity of global order scheduling and improve the efficiency of order scheduling.
如上文所述示例,在一次订单调度中,在多个待调度订单对应于同一目标配送运力的情况下,该目标配送运力只能够选择其中之一作为目标订单进行配送。因此,待调度订单通过一次订单调度可能并不能够全部都进行调度。例如上述示例中待调度订单C2和C3,即在本次订单调度中没有进行调度分配。因此,本公开还提供以下实施例,以保证各个待调度订单都能够进行调度,从而保证用户使用体验。As in the above example, in one order scheduling, when multiple orders to be scheduled correspond to the same target delivery capacity, only one of the target delivery capacity can be selected as the target order for delivery. Therefore, the orders to be dispatched may not be able to be dispatched all through one order dispatch. For example, the pending orders C2 and C3 in the above example, that is, no scheduling allocation is performed in this order scheduling. Therefore, the present disclosure also provides the following embodiments to ensure that each pending order can be scheduled, thereby ensuring user experience.
可选地,所述方法还包括:将待调度订单中除所述目标订单之外的订单作为下一时间单元内待调度的待调度订单。Optionally, the method further includes: taking orders other than the target order among the to-be-dispatched orders as the to-be-dispatched orders in the next time unit.
其中,目标订单即为本时间单元的订单调度过程中进行调度的订单,因此,针对本时间单元的订单调度过程中未被调度的订单(即待调度订单中除所述目标订单之外的订单),将该部分订单作为下一时间单元内待调度的待调度订单,从而能够在之后的调度过程中对该部分订单进行调度。Among them, the target order is the order scheduled during the order scheduling process of this time unit. Therefore, for the orders that are not scheduled during the order scheduling process of this time unit (that is, orders other than the target order among the pending orders) ), the partial order is regarded as the to-be-dispatched order to be scheduled in the next time unit, so that the partial order can be scheduled in the subsequent scheduling process.
需要进行说明的是,在下一时间单元内待调度的待调度订单中除了上述部分的订单之外,还包括在本时间单元进行调度的过程中新创建的待调度订单,如在本时间单元的订单调度过程中,用户新建的订单。It should be noted that, in addition to the above-mentioned orders, the pending orders to be scheduled in the next time unit also include the newly created orders to be scheduled during the scheduling process of the current time unit, such as those in the current time unit. During the order scheduling process, a new order created by the user.
示例地,在进行下一时间单元的订单调度时,即根据下一时间单元内待调度的待调度订单,重新执行S11-S14的步骤,从而实现待调度订单的实时调度,提高调度效率。S11-S14的步骤的实现方式已在上文进行详述,在此不再赘述。For example, when performing order scheduling in the next time unit, that is, according to the pending orders to be scheduled in the next time unit, the steps S11-S14 are re-executed, thereby realizing real-time scheduling of pending orders and improving scheduling efficiency. The implementation of the steps S11-S14 has been described in detail above, and will not be repeated here.
因此,通过上述技术方案,对本时间单元的调度过程中未被调度的订单进行调度,从而保证各个待调度订单都能够被调度,提高订单调度的准确率和效率,满足了即时订单调度业务的使用需求,提升用户使用体验。Therefore, through the above technical solution, orders that are not scheduled during the scheduling process of the current time unit are scheduled, so as to ensure that all pending orders can be scheduled, improve the accuracy and efficiency of order scheduling, and meet the use of immediate order scheduling services. Needs to improve user experience.
本公开还提供一种订单调度装置,如图3所示,所述装置300包括:聚类模块301,被配置成用于根据一时间单元内各个待调度订单的订单信息,对各个所述待调度订单进行聚类,获得多个订单组;第一确定模块302,被配置成用于分别确定与各个所述订单组对应的配送运力;第二确定模块303,被配置成用于针对各个所述订单组,根据该订单组内的各个待调度订单的订单信息和该订单组对应的各个配送运力的配送信息,确定该订单组内的各个待调度订单与该订单组对应的各个配送运力之间的匹配度;调度模块304,被配置成用于根据各个所 述匹配度,对各个所述待调度订单进行订单调度。The present disclosure also provides an order scheduling device. As shown in FIG. 3, the device 300 includes: a clustering module 301 configured to perform an order for each pending order within a time unit. Orders are dispatched for clustering to obtain multiple order groups; the first determining module 302 is configured to determine the delivery capacity corresponding to each of the order groups; the second determining module 303 is configured to target each order group. According to the order group, according to the order information of each order to be dispatched in the order group and the distribution information of each delivery capacity corresponding to the order group, determine each order to be dispatched in the order group and each delivery capacity corresponding to the order group The degree of matching between each; the scheduling module 304 is configured to perform order scheduling on each of the pending orders according to each of the degrees of matching.
可选地,所述聚类模块包括:拆分子模块,被配置成用于针对其中待调度订单的数量超过预设阈值的订单组,将该订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于所述预设阈值。Optionally, the clustering module includes: a splitting sub-module configured to split the order group into multiple order groups for an order group in which the number of orders to be scheduled exceeds a preset threshold, wherein the splitting The number of orders to be dispatched in each of the divided order groups is less than the preset threshold.
可选地,所述聚类模块,被配置成用于根据各个所述待调度订单的数量和所述预设阈值,确定簇中心的数量;根据所述簇中心的数量,以及各个所述待调度订单的订单信息对所述待调度订单进行聚类,获得所述多个订单组。Optionally, the clustering module is configured to determine the number of cluster centers according to the number of each of the pending orders and the preset threshold; according to the number of the cluster centers, and each of the pending orders The order information of the dispatch order clusters the pending orders to obtain the multiple order groups.
可选地,所述调度模块包括:第一确定子模块,被配置成用于针对各个所述待调度订单,将与该待调度订单对应的匹配度最高的配送运力确定为与该待调度订单对应的目标配送运力;分配子模块,被配置成用于将各个所述待调度订单分配给对应的目标配送运力。Optionally, the scheduling module includes: a first determining sub-module configured to determine, for each of the pending orders, the delivery capacity with the highest matching degree corresponding to the pending orders as the first determining sub-module that corresponds to the pending orders Corresponding target delivery capacity; an allocation sub-module configured to allocate each of the pending orders to the corresponding target delivery capacity.
可选地,所述调度模块包括:第二确定子模块,被配置成用于针对各个目标配送运力,在该目标配送运力对应的待调度订单为两个以上的情况下,将与该目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在该目标配送运力对应的待调度订单为一个的情况下,将该待调度订单确定为该目标配送运力对应的目标订单;分配子模块,被配置成用于将各个所述目标订单分配给各自对应的目标配送运力。Optionally, the scheduling module includes: a second determining sub-module configured to deliver capacity for each target. In the case that there are more than two orders to be dispatched corresponding to the target distribution capacity, it will be delivered to the target. The order to be dispatched with the highest matching degree corresponding to the capacity is determined as the target order corresponding to the target delivery capacity; if there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target order corresponding to the target delivery capacity Target orders; an allocation sub-module configured to allocate each of the target orders to their corresponding target delivery capacity.
可选地,所述装置还被配置成用于针对各个目标配送运力,在所述目标配送运力对应的匹配度最高的待调度订单为两个或两个以上的情况下,若匹配度最高的各个所述待调度订单的任务点信息相同,则将各个所述待调度订单作为所述目标配送运力的目标订单;若匹配度最高的各个所述待调度订单的任务点信息不同,则从各个所述待调度订单选取一个待调度订单作为所述目标配送运力的目标订单。Optionally, the device is further configured to target delivery capacity for each target, and if there are two or more orders to be dispatched with the highest matching degree corresponding to the target delivery capacity, if the highest matching degree is If the task point information of each order to be dispatched is the same, then each order to be dispatched is regarded as the target order of the target delivery capacity; if the task point information of each order to be dispatched with the highest matching degree is different, then the order is different from each other. The to-be-dispatched order selects a to-be-dispatched order as the target order of the target delivery capacity.
可选地,所述装置还包括:第三确定模块,被配置成用于将所述待调度订单中除所述目标订单之外的订单作为下一时间单元内待调度的待调度订单。Optionally, the device further includes: a third determining module configured to take orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
可选地,所述订单信息包括不同类型的任务点信息;所述聚类模块包括:Optionally, the order information includes different types of task point information; the clustering module includes:
聚类子模块,被配置成用于根据所述时间单元内各个待调度订单的同类型的任务点信息,对所述待调度订单进行聚类。The clustering sub-module is configured to cluster the to-be-scheduled orders according to the task point information of the same type of the to-be-scheduled orders in the time unit.
可选地,所述第一确定模块用于:针对各个所述订单组,将当前位置与该订单组内的各个待调度订单的起始位置的距离小于预设距离的配送运力确定为与该订单组对应的配送运力。Optionally, the first determining module is configured to: for each of the order groups, determine the delivery capacity whose current position is less than a preset distance from the starting position of each order to be dispatched in the order group as the The delivery capacity corresponding to the order group.
可选地,所述第二确定模块包括:第三确定子模块,被配置成用于针对各个所述配送运力,根据该配送运力的配送信息,分别确定将该订单组内的各个待调度订单预分配给该配送运力后、所述配送运力对应的目标参数,所述目标参数的大小用于区分将该待调度订单预分配给各个配送运力的优劣;第四确定子模块,被配置成用于根据该配送运力与各个待调度订单对应的目标参数,确定各个所述待调度订单与该配送运力之间的匹配度。Optionally, the second determining module includes: a third determining sub-module configured to determine, for each of the distribution capacity, according to the distribution information of the distribution capacity, each pending order in the order group After being pre-allocated to the distribution capacity, the target parameter corresponding to the distribution capacity, the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending order to each distribution capacity; the fourth determining sub-module is configured to It is used to determine the matching degree between each order to be dispatched and the distribution capacity according to the target parameter corresponding to the distribution capacity and each order to be dispatched.
关于上述实施例中的装置,其中各个模块执行操作的方式已经在有关该方法的实施例中进行了描述,此处将不做阐述说明。Regarding the device in the foregoing embodiment, the manner in which each module performs operation has been described in the embodiment of the method, and will not be elaborated here.
图4是根据一示例性实施例示出的一种电子设备400的框图。如图4所示,该电子设备400包括:处理器401,存储器402。可选地,该电子设备400还包括多媒体组件403,输入/输出(I/O)接口404,以及通信组件405中的一者或多者。Fig. 4 is a block diagram showing an electronic device 400 according to an exemplary embodiment. As shown in FIG. 4, the electronic device 400 includes a processor 401 and a memory 402. Optionally, the electronic device 400 further includes one or more of a multimedia component 403, an input/output (I/O) interface 404, and a communication component 405.
其中,处理器401用于控制该电子设备400的整体操作,以完成上述的订单调度方法中的全部或部分步骤。存储器402用于存储各种类型的数据以支持在该电子设备400的操作,这些数据例如包括用于在该电子设备400上操作的任何应用程序或方法的指令,以及应用程序相关的数据,例如联系人数据、收发的消息、图片、音频、视频等等。可选地,该存储器402由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。多媒体组件403可以包括屏幕和音频组件。其中屏幕例如是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件包括一个麦克风,麦克风用于接收外部音频信号。可选地,所接收的音频信号被进一步存储在存储器402或通过通信组件405发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口404为处理器401和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。可选地,这些按钮是虚拟按钮或者实体按钮。通信组件405用于该电子设备400与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G、4G、NB-IOT、eMTC、或其他5G等等,或它们中的一种或几种的组合,在此不做限定。因此相应的该通信组件405包括:Wi-Fi模块,蓝牙模块,NFC模块等等。The processor 401 is used to control the overall operation of the electronic device 400 to complete all or part of the steps in the above-mentioned order scheduling method. The memory 402 is used to store various types of data to support the operation of the electronic device 400. The data includes, for example, instructions for any application or method to operate on the electronic device 400, and application-related data, such as Contact data, messages sent and received, pictures, audio, video, etc. Optionally, the memory 402 is implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable and programmable memory devices. Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM) , Read-Only Memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 403 may include a screen and an audio component. The screen is, for example, a touch screen, and the audio component is used to output and/or input audio signals. For example, the audio component includes a microphone, which is used to receive external audio signals. Optionally, the received audio signal is further stored in the memory 402 or sent through the communication component 405. The audio component also includes at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules. The above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. Optionally, these buttons are virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 405 includes: a Wi-Fi module, a Bluetooth module, an NFC module, and so on.
在一示例性实施例中,电子设备400被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的订单调度方法。In an exemplary embodiment, the electronic device 400 is controlled by one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processor (Digital Signal Processor, DSP for short), and digital signal processing equipment (Digital Signal Processing Device). Processing Device, referred to as DSPD), programmable logic device (Programmable Logic Device, referred to as PLD), field programmable gate array (Field Programmable Gate Array, referred to as FPGA), controller, microcontroller, microprocessor or other electronic components , Used to execute the above order scheduling method.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的订单调度方法的步骤。例如,该计算机可读存储介质为上述包括程序指令的存储器402,上述程序指令可由电子设备400的处理器401执行以完成上述的订单调度方法。In another exemplary embodiment, there is also provided a computer-readable storage medium including program instructions that, when executed by a processor, implement the steps of the above-mentioned order scheduling method. For example, the computer-readable storage medium is the aforementioned memory 402 including program instructions, and the aforementioned program instructions can be executed by the processor 401 of the electronic device 400 to complete the aforementioned order scheduling method.
图5是根据一示例性实施例示出的一种电子设备500的框图。例如,电子设备500被提供为一服务器。参照图5,电子设备500包括处理器522,其数量可以为一个或多个,以及存储器532,用于存储可由处理器522执行的计算机程序。可选地,存储器532中存储的计算机程序包括一个或一个以上的每一个对应于一组指令的模块。此外,处理器522被配置为执行该计算机程序,以执行上述的订单调度方法。Fig. 5 is a block diagram showing an electronic device 500 according to an exemplary embodiment. For example, the electronic device 500 is provided as a server. 5, the electronic device 500 includes a processor 522, the number of which may be one or more, and a memory 532 for storing a computer program executable by the processor 522. Optionally, the computer program stored in the memory 532 includes one or more modules each corresponding to a set of instructions. In addition, the processor 522 is configured to execute the computer program to execute the aforementioned order scheduling method.
可选地,电子设备500还包括电源组件526和通信组件550,该电源组件526被配置为执行电子设备500的电源管理,该通信组件550被配置为实现电子设备500的通信,例如,有线或无线通信。可选地,该电子设备500还包括输入/输出(I/O)接口558。可选地,电子设备500操作基于存储在存储器532的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM等等。Optionally, the electronic device 500 further includes a power supply component 526 and a communication component 550, the power supply component 526 is configured to perform power management of the electronic device 500, and the communication component 550 is configured to implement the communication of the electronic device 500, for example, wired or Wireless communication. Optionally, the electronic device 500 further includes an input/output (I/O) interface 558. Optionally, the operation of the electronic device 500 is based on an operating system stored in the memory 532, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, and so on.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的订单调度方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器532,上述程序指令可由电子设备500的处理器522执行以完成上述的订单调度方法。In another exemplary embodiment, there is also provided a computer-readable storage medium including program instructions that, when executed by a processor, implement the steps of the above-mentioned order scheduling method. For example, the computer-readable storage medium may be the aforementioned memory 532 including program instructions, and the aforementioned program instructions may be executed by the processor 522 of the electronic device 500 to complete the aforementioned order scheduling method.
在一示例性实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如下步骤:根据一时间单元内各个待调度订单的订单信息,对各个待调度订单进行聚类,获得多个订单组;分别确定与各个订单组对应的配送运力;针对各个订单组,根据订单组内的各个待调度订单的订单信息和订单组对应的各个配送运力的配送信息,确定订单组内的各个待调度订单与订单组对应的各个配送运力之间的匹配度;根据各个匹配度,对各个待调度订单进行订单调度。In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the following steps are implemented: According to the order information of each pending order in a time unit, Each pending order is clustered to obtain multiple order groups; the distribution capacity corresponding to each order group is determined respectively; for each order group, according to the order information of each pending order in the order group and the distribution capacity corresponding to the order group To determine the matching degree between each pending order in the order group and each distribution capacity corresponding to the order group; according to each matching degree, order scheduling is performed on each pending order.
在一示例性实施例中,该程序被处理器执行时还实现如下步骤:针对其中待调度订单的数量超过预设阈值的订单组,将订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于预设阈值。In an exemplary embodiment, when the program is executed by the processor, the following steps are further implemented: for an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into multiple order groups, where the split The number of orders to be dispatched in each order group is less than the preset threshold.
在一示例性实施例中,该程序被处理器执行时实现如下步骤:根据各个待调度订单的数量和预设阈值,确定簇中心的数量;根据簇中心的数量,以及各个待调度订单的订单信息对待调度订单进行聚类,获得多个订单组。In an exemplary embodiment, when the program is executed by the processor, the following steps are implemented: determine the number of cluster centers according to the number of orders to be dispatched and a preset threshold; according to the number of cluster centers, and the orders of each order to be dispatched The information is clustered on the orders to be dispatched, and multiple order groups are obtained.
在一示例性实施例中,该程序被处理器执行时实现如下步骤:针对各个待调度订单,将与待调度订单对应的匹配度最高的配送运力确定为与待调度订单对应的目标配送运力;将各个待调度订单分配给对应的目标配送运力。In an exemplary embodiment, when the program is executed by the processor, the following steps are implemented: for each order to be dispatched, the delivery capacity with the highest matching degree corresponding to the order to be dispatched is determined as the target delivery capacity corresponding to the order to be dispatched; Assign each pending order to the corresponding target delivery capacity.
在一示例性实施例中,该程序被处理器执行时还实现如下步骤:针对各个目标配送运力,在目标配送运力对应的待调度订单为两个以上的情况下,将与目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在目标配送运力对应的待调度订单为一个的情况下,将待调度订单确定为目标配送运力对应的目标订单;将各个待调度订单分配给对应的目标配送运力,包括:将各个目标订单分配给各自对应的目标配送运力。In an exemplary embodiment, when the program is executed by the processor, the following steps are also implemented: for each target delivery capacity, if there are more than two orders to be dispatched corresponding to the target delivery capacity, the order corresponding to the target delivery capacity will be The pending order with the highest matching degree is determined as the target order corresponding to the target delivery capacity; when there is one pending order corresponding to the target delivery capacity, the pending order is determined as the target order corresponding to the target delivery capacity; Dispatching orders to the corresponding target distribution capacity includes: assigning each target order to its corresponding target distribution capacity.
在一示例性实施例中,该程序被处理器执行时还实现如下步骤:将待调度订单中除目标订单之外的订单作为下一时间单元内待调度的待调度订单。In an exemplary embodiment, when the program is executed by the processor, the following steps are further implemented: taking orders other than the target order among the pending orders as the pending orders to be dispatched in the next time unit.
在一示例性实施例中,订单信息包括不同类型的任务点信息;该程序被处理器执行时实现如下步骤:根据时间单元内各个待调度订单的同类型的任务点信息,对待调度订单进行聚类。In an exemplary embodiment, the order information includes different types of task point information; when the program is executed by the processor, the following steps are implemented: according to the same type of task point information of each pending order in a time unit, the pending orders are gathered kind.
在一示例性实施例中,该程序被处理器执行时实现如下步骤:针对各个订单组,将当前位置与订单组内的各个待调度订单的起始位置的距离小于预设距离的配送运力确定为订单组对应的配送运力。In an exemplary embodiment, when the program is executed by the processor, the following steps are implemented: For each order group, determine the delivery capacity whose current position and the starting position of each pending order in the order group are less than the preset distance The distribution capacity corresponding to the order group.
在一示例性实施例中,该程序被处理器执行时实现如下步骤:针对各个配送运力,根据配送运力的配送信息,分别确定将订单组内的各个待调度订单预分配给配送运力后、配送运力对应的目标参数,目标参数的大小用于区分将待调度订单预分配给各个配送运力的优劣;根据配送运力与各个待调度订单对应的目标参数确定各个待调度订单与配送运力之间的匹配度。In an exemplary embodiment, when the program is executed by the processor, the following steps are implemented: for each distribution capacity, according to the distribution information of the distribution capacity, it is determined to pre-allocate each pending order in the order group to the distribution capacity, and the distribution The target parameter corresponding to the capacity. The size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each distribution capacity; according to the distribution capacity and the target parameters corresponding to each pending order, determine the difference between each pending order and the distribution capacity suitability.
在一示例性实施例中,提供了一种电子设备,该电子设备包括:存储器,其上存储有计算机程序;处理器,被配置成用于执行存储器中的计算机程序,以实现如下步骤:根据一时间单元内各个待调度订单的订单信息,对各个待调 度订单进行聚类,获得多个订单组;分别确定与各个订单组对应的配送运力;针对各个订单组,根据订单组内的各个待调度订单的订单信息和订单组对应的各个配送运力的配送信息,确定订单组内的各个待调度订单与订单组对应的各个配送运力之间的匹配度;根据各个匹配度,对各个待调度订单进行订单调度。In an exemplary embodiment, an electronic device is provided. The electronic device includes: a memory on which a computer program is stored; and a processor configured to execute the computer program in the memory to implement the following steps: The order information of each pending order in a time unit is clustered to obtain multiple order groups; the delivery capacity corresponding to each order group is determined respectively; for each order group, according to each pending order in the order group The order information of the dispatch order and the distribution information of each distribution capacity corresponding to the order group, determine the matching degree between each pending order in the order group and each distribution capacity corresponding to the order group; according to each matching degree, each pending order is determined Carry out order scheduling.
在一示例性实施例中,处理器,还被配置成用于执行存储器中的计算机程序,以实现如下步骤:针对其中待调度订单的数量超过预设阈值的订单组,将订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于预设阈值。In an exemplary embodiment, the processor is further configured to execute a computer program in the memory to implement the following steps: for an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into Multiple order groups, where the number of orders to be dispatched in each of the split order groups is less than a preset threshold.
在一示例性实施例中,处理器,被配置成用于执行存储器中的计算机程序,以实现如下步骤:根据各个待调度订单的数量和预设阈值,确定簇中心的数量;根据簇中心的数量,以及各个待调度订单的订单信息对待调度订单进行聚类,获得多个订单组。In an exemplary embodiment, the processor is configured to execute a computer program in the memory to implement the following steps: determine the number of cluster centers according to the number of orders to be dispatched and a preset threshold; The quantity and the order information of each pending order are clustered to obtain multiple order groups.
在一示例性实施例中,处理器,还被配置成用于执行存储器中的计算机程序,以实现如下步骤:针对各个待调度订单,将与待调度订单对应的匹配度最高的配送运力确定为与待调度订单对应的目标配送运力;将各个待调度订单分配给对应的目标配送运力。In an exemplary embodiment, the processor is further configured to execute a computer program in the memory to implement the following steps: for each pending order, the delivery capacity with the highest matching degree corresponding to the pending order is determined as The target delivery capacity corresponding to the order to be dispatched; each order to be dispatched is assigned to the corresponding target delivery capacity.
在一示例性实施例中,处理器,还被配置成用于执行存储器中的计算机程序,以实现如下步骤:针对各个目标配送运力,在目标配送运力对应的待调度订单为两个以上的情况下,将与目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在目标配送运力对应的待调度订单为一个的情况下,将待调度订单确定为目标配送运力对应的目标订单;处理器,被配置成用于执行存储器中的计算机程序,以实现如下步骤:将各个目标订单分配给各自对应的目标配送运力。In an exemplary embodiment, the processor is further configured to execute a computer program in the memory to implement the following steps: for each target distribution capacity, in the case where there are more than two orders to be dispatched corresponding to the target distribution capacity Next, the order to be dispatched with the highest matching degree corresponding to the target delivery capacity is determined as the target order corresponding to the target delivery capacity; when there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target delivery The target order corresponding to the capacity; the processor is configured to execute a computer program in the memory to implement the following steps: each target order is assigned to the corresponding target distribution capacity.
在一示例性实施例中,处理器,还被配置成用于执行存储器中的计算机程序,以实现如下步骤:将待调度订单中除目标订单之外的订单作为下一时间单元内待调度的待调度订单。In an exemplary embodiment, the processor is further configured to execute a computer program in the memory to implement the following steps: take orders other than the target order among the orders to be scheduled as the orders to be scheduled in the next time unit Pending orders.
在一示例性实施例中,订单信息包括不同类型的任务点信息;处理器,被配置成用于执行存储器中的计算机程序,以实现如下步骤:根据时间单元内各个待调度订单的同类型的任务点信息,对待调度订单进行聚类。In an exemplary embodiment, the order information includes different types of task point information; the processor is configured to execute a computer program in the memory to implement the following steps: according to the same type of orders for each pending order in a time unit Task point information, clustering orders to be scheduled.
在一示例性实施例中,处理器,被配置成用于执行存储器中的计算机程序,以实现如下步骤:针对各个订单组,将当前位置与订单组内的各个待调度订单的起始位置的距离小于预设距离的配送运力确定为订单组对应的配送运力。In an exemplary embodiment, the processor is configured to execute a computer program in the memory to implement the following steps: For each order group, compare the current position with the starting position of each pending order in the order group. The delivery capacity whose distance is less than the preset distance is determined as the delivery capacity corresponding to the order group.
在一示例性实施例中,处理器,被配置成用于执行存储器中的计算机程序,以实现如下步骤:针对各个配送运力,根据配送运力的配送信息,分别确定将订单组内的各个待调度订单预分配给配送运力后、配送运力对应的目标参数,目标参数的大小用于区分将待调度订单预分配给各个配送运力的优劣;根据配送运力与各个待调度订单对应的目标参数确定各个待调度订单与配送运力之间的匹配度。In an exemplary embodiment, the processor is configured to execute a computer program in the memory to implement the following steps: for each distribution capacity, according to the distribution information of the distribution capacity, respectively determine the order group to be dispatched After the order is pre-allocated to the distribution capacity, the target parameter corresponding to the distribution capacity. The size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each distribution capacity; each is determined according to the distribution capacity and the target parameters corresponding to each pending order The degree of matching between pending orders and delivery capacity.
在另一示例性实施例中,还提供一种计算机程序产品,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行上述的订单调度方法的代码部分。In another exemplary embodiment, a computer program product is further provided, the computer program product includes a computer program that can be executed by a programmable device, and the computer program has a function for executing the foregoing when executed by the programmable device. The code part of the order scheduling method.
在一示例性实施例中,提供了一种计算机程序产品,该计算机程序产品包 含能够由可编程的装置执行的计算机程序,该计算机程度被电子设备执行时实现如下步骤:根据一时间单元内各个待调度订单的订单信息,对各个待调度订单进行聚类,获得多个订单组;分别确定与各个订单组对应的配送运力;针对各个订单组,根据订单组内的各个待调度订单的订单信息和订单组对应的各个配送运力的配送信息,确定订单组内的各个待调度订单与订单组对应的各个配送运力之间的匹配度;根据各个匹配度,对各个待调度订单进行订单调度。In an exemplary embodiment, a computer program product is provided. The computer program product includes a computer program that can be executed by a programmable device. When the computer program is executed by an electronic device, the following steps are implemented: Order information of orders to be dispatched, cluster each order to be dispatched to obtain multiple order groups; respectively determine the delivery capacity corresponding to each order group; for each order group, according to the order information of each order to be dispatched in the order group The distribution information of each distribution capacity corresponding to the order group determines the matching degree between each pending order in the order group and each distribution capacity corresponding to the order group; order scheduling is performed on each pending order according to each matching degree.
在一示例性实施例中,该计算机程度被电子设备执行时还实现如下步骤:针对其中待调度订单的数量超过预设阈值的订单组,将订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于预设阈值。In an exemplary embodiment, when the computer level is executed by the electronic device, the following steps are further implemented: for an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into multiple order groups, where The number of orders to be dispatched in each of the divided order groups is less than the preset threshold.
在一示例性实施例中,该计算机程度被电子设备执行时实现如下步骤:根据各个待调度订单的数量和预设阈值,确定簇中心的数量;根据簇中心的数量,以及各个待调度订单的订单信息对待调度订单进行聚类,获得多个订单组。In an exemplary embodiment, when the computer level is executed by an electronic device, the following steps are implemented: determine the number of cluster centers according to the number of orders to be dispatched and a preset threshold; according to the number of cluster centers, and the number of orders to be dispatched The order information clusters the orders to be scheduled to obtain multiple order groups.
在一示例性实施例中,该计算机程度被电子设备执行时实现如下步骤:针对各个待调度订单,将与待调度订单对应的匹配度最高的配送运力确定为与待调度订单对应的目标配送运力;将各个待调度订单分配给对应的目标配送运力。In an exemplary embodiment, when the computer level is executed by an electronic device, the following steps are implemented: for each pending order, the delivery capacity with the highest matching degree corresponding to the pending order is determined as the target delivery capacity corresponding to the pending order ; Assign each pending order to the corresponding target distribution capacity.
在一示例性实施例中,该计算机程度被电子设备执行时还实现如下步骤:针对各个目标配送运力,在目标配送运力对应的待调度订单为两个以上的情况下,将与目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在目标配送运力对应的待调度订单为一个的情况下,将待调度订单确定为目标配送运力对应的目标订单;将各个待调度订单分配给对应的目标配送运力,包括:将各个目标订单分配给各自对应的目标配送运力。In an exemplary embodiment, when the computer level is executed by the electronic device, the following steps are also implemented: For each target delivery capacity, if there are more than two orders to be dispatched corresponding to the target delivery capacity, it will correspond to the target delivery capacity. The pending order with the highest matching degree is determined as the target order corresponding to the target delivery capacity; in the case of one pending order corresponding to the target delivery capacity, the pending order is determined as the target order corresponding to the target delivery capacity; The allocation of pending orders to the corresponding target delivery capacity includes: allocating each target order to its corresponding target delivery capacity.
在一示例性实施例中,该计算机程度被电子设备执行时还实现如下步骤:将待调度订单中除目标订单之外的订单作为下一时间单元内待调度的待调度订单。In an exemplary embodiment, when the computer level is executed by the electronic device, the following step is further implemented: taking orders other than the target order among the orders to be dispatched as orders to be dispatched in the next time unit.
在一示例性实施例中,订单信息包括不同类型的任务点信息;该计算机程度被电子设备执行时实现如下步骤:根据时间单元内各个待调度订单的同类型的任务点信息,对待调度订单进行聚类。In an exemplary embodiment, the order information includes different types of task point information; when the computer level is executed by the electronic device, the following steps are implemented: according to the same type of task point information of each pending order in a time unit, the pending order is processed Clustering.
在一示例性实施例中,该计算机程度被电子设备执行时实现如下步骤:针对各个订单组,将当前位置与订单组内的各个待调度订单的起始位置的距离小于预设距离的配送运力确定为订单组对应的配送运力。In an exemplary embodiment, when the computer level is executed by the electronic device, the following steps are implemented: For each order group, the distance between the current position and the starting position of each pending order in the order group is smaller than the delivery capacity of the preset distance Determine the delivery capacity corresponding to the order group.
在一示例性实施例中,该计算机程度被电子设备执行时实现如下步骤:针对各个配送运力,根据配送运力的配送信息,分别确定将订单组内的各个待调度订单预分配给配送运力后、配送运力对应的目标参数,目标参数的大小用于区分将待调度订单预分配给各个配送运力的优劣;根据配送运力与各个待调度订单对应的目标参数确定各个待调度订单与配送运力之间的匹配度。In an exemplary embodiment, when the computer level is executed by the electronic device, the following steps are implemented: for each distribution capacity, according to the distribution information of the distribution capacity, respectively determine to pre-allocate each pending order in the order group to the distribution capacity, The target parameter corresponding to the distribution capacity, the size of the target parameter is used to distinguish the pros and cons of pre-allocating the pending orders to each distribution capacity; according to the distribution capacity and the target parameters corresponding to each pending order, determine the difference between each pending order and the distribution capacity The degree of match.
图6是根据一示例性实施例示出的一种实施环境的示意图,如图6所示,该实施环境包括多个第一终端601、多个第二终端602和服务器603,该多个第一终端601分别通过有线或者无线的方式与该服务器603直接或间接连接,该多个第二终端602分别通过有线或者无线的方式与服务器603直接或间接连接。Fig. 6 is a schematic diagram showing an implementation environment according to an exemplary embodiment. As shown in Fig. 6, the implementation environment includes a plurality of first terminals 601, a plurality of second terminals 602, and a server 603. The terminal 601 is directly or indirectly connected to the server 603 in a wired or wireless manner, and the multiple second terminals 602 are directly or indirectly connected to the server 603 in a wired or wireless manner, respectively.
可选地,多个第一终端601安装有第一目标应用客户端,多个第二终端602安装有第二目标应用客户端,服务器603是为第一目标应用客户端和第二目标应用客户端提供服务的服务器。其中,第一目标应用客户端为具有购买服务功能 的客户端,例如,第一目标应用客户端为购物客户端、即时通讯客户端等。第二目标应用客户端为具有分配任务功能的客户端,例如,配送客户端等。Optionally, multiple first terminals 601 are installed with a first target application client, multiple second terminals 602 are installed with a second target application client, and the server 603 is for the first target application client and the second target application client. The server that provides services at the end. Among them, the first target application client is a client with a purchasing service function, for example, the first target application client is a shopping client, an instant messaging client, and so on. The second target application client is a client with a task distribution function, for example, a delivery client.
可选地,多个第一终端601将多个用户的订单上传到服务器602中,服务器602对该多个订单进行订单调度,将该多个订单的配送任务分配至多个第二终端602,由使用第二终端602的用户对该多个订单进行配送。Optionally, multiple first terminals 601 upload multiple user orders to the server 602, and the server 602 performs order scheduling on the multiple orders, and distributes the delivery tasks of the multiple orders to multiple second terminals 602. The user using the second terminal 602 delivers the multiple orders.
以上结合附图详细描述了本公开的可选实施方式,但是,本公开并不限于上述实施方式,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The optional embodiments of the present disclosure are described in detail above with reference to the accompanying drawings. However, the present disclosure is not limited to the above-mentioned embodiments. Within the scope of the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure. These simple modifications All belong to the protection scope of the present disclosure.
另外需要说明的是,在上述实施方式中所描述的各个技术特征,在不矛盾的情况下,能够通过任何合适的方式进行组合。为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。In addition, it should be noted that the various technical features described in the foregoing embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, various possible combinations are not described separately in the present disclosure.
此外,本公开的各种不同的实施方式之间也能够进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, various different embodiments of the present disclosure can also be combined arbitrarily, as long as they do not violate the idea of the present disclosure, they should also be regarded as the content disclosed in the present disclosure.

Claims (20)

  1. 一种订单调度方法,所述方法包括:An order scheduling method, the method includes:
    根据一时间单元内各个待调度订单的订单信息,对各个所述待调度订单进行聚类,获得多个订单组;Clustering each of the pending orders according to the order information of each pending order within a time unit to obtain multiple order groups;
    分别确定与各个所述订单组对应的配送运力;Respectively determine the delivery capacity corresponding to each of the order groups;
    针对各个所述订单组,根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的各个配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度;For each of the order groups, determine each of the pending orders in the order group according to the order information of each of the pending orders in the order group and the distribution information of each delivery capacity corresponding to the order group The degree of matching between the respective delivery capacities corresponding to the order group;
    根据各个所述匹配度,对各个所述待调度订单进行订单调度。According to each of the matching degrees, order scheduling is performed on each of the pending orders.
  2. 根据权利要求1所述的方法,所述根据一时间单元内各个待调度订单的订单信息对所述待调度订单进行聚类,获得多个订单组之后,所述方法还包括:The method according to claim 1, wherein the clustering the to-be-dispatched orders according to the order information of the to-be-dispatched orders in a time unit, and after obtaining a plurality of order groups, the method further comprises:
    针对其中待调度订单的数量超过预设阈值的订单组,将所述订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于所述预设阈值。For an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into multiple order groups, where the number of orders to be dispatched in each of the split order groups is less than the preset Threshold.
  3. 根据权利要求1所述的方法,所述根据一时间单元内各个待调度订单的订单信息对所述待调度订单进行聚类,获得多个订单组,包括:The method according to claim 1, wherein the clustering the to-be-dispatched orders according to the order information of each to-be-dispatched order in a time unit to obtain multiple order groups includes:
    根据各个所述待调度订单的数量和预设阈值,确定簇中心的数量;Determine the number of cluster centers according to the number of orders to be dispatched and the preset threshold;
    根据所述簇中心的数量,以及各个所述待调度订单的订单信息对所述待调度订单进行聚类,获得多个订单组,以使各个所述订单组中的待调度订单的数量小于所述预设阈值。Cluster the pending orders according to the number of cluster centers and the order information of each pending order to obtain multiple order groups, so that the number of pending orders in each of the order groups is smaller than all the pending orders. The preset threshold.
  4. 根据权利要求1所述的方法,所述根据各个所述匹配度,对各个所述待调度订单进行订单调度,包括:The method according to claim 1, wherein the performing order scheduling on each of the pending orders according to each of the matching degrees includes:
    针对各个所述待调度订单,将与所述待调度订单对应的匹配度最高的配送运力确定为与所述待调度订单对应的目标配送运力;For each order to be dispatched, determining the delivery capacity with the highest matching degree corresponding to the order to be dispatched as the target delivery capacity corresponding to the order to be dispatched;
    将各个所述待调度订单分配给对应的目标配送运力。Allocating each of the pending orders to the corresponding target delivery capacity.
  5. 根据权利要求4所述的方法,所述针对各个所述待调度订单,将与所述待调度订单对应的匹配度最高的配送运力确定为与所述待调度订单对应的目标配送运力之后,所述方法还包括:The method according to claim 4, after determining, for each of the pending orders, the delivery capacity with the highest matching degree corresponding to the pending orders as the target delivery capacity corresponding to the pending orders, The method also includes:
    针对各个目标配送运力,在所述目标配送运力对应的待调度订单为两个以上的情况下,将与所述目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在所述目标配送运力对应的待调度订单为一个的情况下,将所述待调度订单确定为所述目标配送运力对应的目标订单;For each target delivery capacity, if there are more than two pending orders corresponding to the target delivery capacity, the pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target corresponding to the target delivery capacity Order; in the case that there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target order corresponding to the target delivery capacity;
    所述将各个所述待调度订单分配给对应的目标配送运力,包括:The allocating each of the pending orders to the corresponding target distribution capacity includes:
    将各个所述目标订单分配给各自对应的目标配送运力。Allocating each of the target orders to their corresponding target distribution capacity.
  6. 根据权利要求5所述的方法,所述方法还包括:The method according to claim 5, further comprising:
    将所述待调度订单中除所述目标订单之外的订单作为下一时间单元内待调度的待调度订单。Taking orders other than the target order among the to-be-dispatched orders as the to-be-dispatched orders in the next time unit.
  7. 根据权利要求1所述的方法,所述订单信息包括不同类型的任务点信息;The method according to claim 1, wherein the order information includes different types of task point information;
    所述根据一时间单元内各个待调度订单的订单信息,对各个所述待调度订单进行聚类,包括:The clustering of each pending order according to the order information of each pending order within a time unit includes:
    根据所述时间单元内各个所述待调度订单的同类型的任务点信息,对所述待调度订单进行聚类。Clustering the to-be-scheduled orders according to the task point information of the same type of each of the to-be-scheduled orders in the time unit.
  8. 根据权利要求1所述的方法,所述分别确定与各个所述订单组对应的配送运力,包括:The method according to claim 1, wherein the respectively determining the delivery capacity corresponding to each of the order groups comprises:
    针对各个所述订单组,将当前位置与所述订单组内的各个所述待调度订单的起始位置的距离小于预设距离的配送运力确定为所述订单组对应的配送运力。For each of the order groups, a delivery capacity whose current position is less than a preset distance from the starting position of each of the to-be-dispatched orders in the order group is determined as the delivery capacity corresponding to the order group.
  9. 根据权利要求1所述的方法,所述根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度,包括:The method according to claim 1, wherein the order information of each of the pending orders in the order group and the distribution information of the delivery capacity corresponding to the order group are used to determine each of the order groups. The matching degree between the order to be dispatched and each of the distribution capacity corresponding to the order group includes:
    针对各个所述配送运力,根据所述配送运力的配送信息,分别确定将所述订单组内的各个所述待调度订单预分配给所述配送运力后、所述配送运力对应的目标参数,所述目标参数的大小用于区分将所述待调度订单预分配给各个配送运力的优劣;For each of the distribution capacity, according to the distribution information of the distribution capacity, respectively determine the target parameters corresponding to the distribution capacity after each of the pending orders in the order group is pre-allocated to the distribution capacity, so The size of the target parameter is used to distinguish the pros and cons of pre-allocating the to-be-dispatched orders to each delivery capacity;
    根据所述配送运力与各个所述待调度订单对应的目标参数确定各个所述待调度订单与所述配送运力之间的匹配度。The degree of matching between each order to be dispatched and the delivery capacity is determined according to the target parameter corresponding to the delivery capacity and each of the orders to be dispatched.
  10. 一种订单调度装置,所述装置包括:An order scheduling device, the device comprising:
    聚类模块,被配置成用于根据一时间单元内各个待调度订单的订单信息,对所述待调度订单进行聚类,获得多个订单组;The clustering module is configured to cluster the to-be-dispatched orders according to the order information of the to-be-dispatched orders in a time unit to obtain multiple order groups;
    第一确定模块,被配置成用于分别确定与各个所述订单组对应的配送运力;The first determining module is configured to separately determine the delivery capacity corresponding to each of the order groups;
    第二确定模块,被配置成用于针对各个所述订单组,根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的各个配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度;The second determining module is configured to determine, for each of the order groups, according to the order information of each of the pending orders in the order group and the distribution information of each delivery capacity corresponding to the order group The degree of matching between each of the pending orders in the order group and each of the distribution capacity corresponding to the order group;
    调度模块,被配置成用于根据各个所述匹配度,对各个所述待调度订单进行订单调度。The scheduling module is configured to perform order scheduling on each of the pending orders according to each of the matching degrees.
  11. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1-9中任一项所述方法的步骤。A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, realizes the steps of the method described in any one of claims 1-9.
  12. 一种电子设备,包括:An electronic device including:
    存储器,其上存储有计算机程序;A memory on which a computer program is stored;
    处理器,被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The processor is configured to execute the computer program in the memory to implement the following steps:
    根据一时间单元内各个待调度订单的订单信息,对各个所述待调度订单进行聚类,获得多个订单组;Clustering each of the pending orders according to the order information of each pending order within a time unit to obtain multiple order groups;
    分别确定与各个所述订单组对应的配送运力;Respectively determine the delivery capacity corresponding to each of the order groups;
    针对各个所述订单组,根据所述订单组内的各个所述待调度订单的订单信息和所述订单组对应的各个配送运力的配送信息,确定所述订单组内的各个所述待调度订单与所述订单组对应的各个所述配送运力之间的匹配度;For each of the order groups, determine each of the pending orders in the order group according to the order information of each of the pending orders in the order group and the distribution information of each delivery capacity corresponding to the order group The degree of matching between the respective delivery capacities corresponding to the order group;
    根据各个所述匹配度,对各个所述待调度订单进行订单调度。According to each of the matching degrees, order scheduling is performed on each of the pending orders.
  13. 根据权利要求12所述的电子设备,所述处理器,还被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The electronic device according to claim 12, the processor is further configured to execute the computer program in the memory to implement the following steps:
    针对其中待调度订单的数量超过预设阈值的订单组,将所述订单组拆分成多个订单组,其中,拆分而得的各个订单组中的待调度订单的数量小于所述预设阈值。For an order group in which the number of orders to be dispatched exceeds a preset threshold, the order group is split into multiple order groups, where the number of orders to be scheduled in each of the split order groups is less than the preset Threshold.
  14. 根据权利要求12所述的电子设备,所述处理器,被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The electronic device according to claim 12, the processor is configured to execute the computer program in the memory to implement the following steps:
    根据各个所述待调度订单的数量和所述预设阈值,确定簇中心的数量;Determine the number of cluster centers according to the number of each of the pending orders and the preset threshold;
    根据所述簇中心的数量,以及各个所述待调度订单的订单信息对所述待调度订单进行聚类,获得所述多个订单组。Clustering the pending orders according to the number of the cluster centers and the order information of each of the pending orders to obtain the multiple order groups.
  15. 根据权利要求12所述的电子设备,所述处理器,还被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The electronic device according to claim 12, the processor is further configured to execute the computer program in the memory to implement the following steps:
    针对各个所述待调度订单,将与所述待调度订单对应的匹配度最高的配送运力确定为与所述待调度订单对应的目标配送运力;For each order to be dispatched, determining the delivery capacity with the highest matching degree corresponding to the order to be dispatched as the target delivery capacity corresponding to the order to be dispatched;
    将各个所述待调度订单分配给对应的目标配送运力。Allocating each of the pending orders to the corresponding target delivery capacity.
  16. 根据权利要求15所述的电子设备,所述处理器,还被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The electronic device according to claim 15, wherein the processor is further configured to execute the computer program in the memory to implement the following steps:
    针对各个目标配送运力,在所述目标配送运力对应的待调度订单为两个以上的情况下,将与所述目标配送运力对应的匹配度最高的待调度订单确定为该目标配送运力对应的目标订单;在所述目标配送运力对应的待调度订单为一个的情况下,将所述待调度订单确定为所述目标配送运力对应的目标订单;For each target delivery capacity, if there are more than two pending orders corresponding to the target delivery capacity, the pending order with the highest matching degree corresponding to the target delivery capacity is determined as the target corresponding to the target delivery capacity Order; in the case that there is one order to be dispatched corresponding to the target delivery capacity, the order to be dispatched is determined as the target order corresponding to the target delivery capacity;
    所述处理器,被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:将各个所述目标订单分配给各自对应的目标配送运力。The processor is configured to execute the computer program in the memory to implement the following step: allocating each of the target orders to their corresponding target distribution capacity.
  17. 根据权利要求16所述的电子设备,所述处理器,还被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The electronic device according to claim 16, wherein the processor is further configured to execute the computer program in the memory to implement the following steps:
    将所述待调度订单中除所述目标订单之外的订单作为下一时间单元内待调 度的待调度订单。Take orders other than the target order among the pending orders as pending orders to be scheduled in the next time unit.
  18. 根据权利要求12所述的电子设备,所述订单信息包括不同类型的任务点信息;The electronic device according to claim 12, wherein the order information includes different types of task point information;
    所述处理器,被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The processor is configured to execute the computer program in the memory to implement the following steps:
    根据所述时间单元内各个所述待调度订单的同类型的任务点信息对所述待调度订单进行聚类。Clustering the to-be-scheduled orders according to the task point information of the same type of each of the to-be-scheduled orders in the time unit.
  19. 根据权利要求12所述的电子设备,所述处理器,被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The electronic device according to claim 12, the processor is configured to execute the computer program in the memory to implement the following steps:
    针对各个所述订单组,将当前位置与所述订单组内的各个所述待调度订单的起始位置的距离小于预设距离的配送运力确定为所述订单组对应的配送运力。For each of the order groups, a delivery capacity whose current position is less than a preset distance from the starting position of each of the to-be-dispatched orders in the order group is determined as the delivery capacity corresponding to the order group.
  20. 根据权利要求12所述的电子设备,所述处理器,被配置成用于执行所述存储器中的所述计算机程序,以实现如下步骤:The electronic device according to claim 12, the processor is configured to execute the computer program in the memory to implement the following steps:
    针对各个所述配送运力,根据所述配送运力的配送信息,分别确定将所述订单组内的各个所述待调度订单预分配给所述配送运力后、所述配送运力对应的目标参数,所述目标参数的大小用于区分将所述待调度订单预分配给各个配送运力的优劣;For each of the distribution capacity, according to the distribution information of the distribution capacity, respectively determine the target parameters corresponding to the distribution capacity after each of the pending orders in the order group is pre-allocated to the distribution capacity, so The size of the target parameter is used to distinguish the pros and cons of pre-allocating the to-be-dispatched orders to each delivery capacity;
    根据所述配送运力与各个所述待调度订单对应的目标参数确定各个所述待调度订单与所述配送运力之间的匹配度。The degree of matching between each order to be dispatched and the delivery capacity is determined according to the target parameter corresponding to the delivery capacity and each of the orders to be dispatched.
PCT/CN2020/115991 2020-01-21 2020-09-17 Order dispatch WO2021147353A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010071676.5A CN113222305B (en) 2020-01-21 2020-01-21 Order scheduling method, order scheduling device, storage medium and electronic equipment
CN202010071676.5 2020-01-21

Publications (1)

Publication Number Publication Date
WO2021147353A1 true WO2021147353A1 (en) 2021-07-29

Family

ID=76991630

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/115991 WO2021147353A1 (en) 2020-01-21 2020-09-17 Order dispatch

Country Status (2)

Country Link
CN (1) CN113222305B (en)
WO (1) WO2021147353A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113673934A (en) * 2021-08-26 2021-11-19 深圳市易流科技股份有限公司 Method, device, equipment and storage medium for matching order and line
CN113723676A (en) * 2021-08-23 2021-11-30 郑州时空隧道信息技术有限公司 One-path and multiple-path line planning method and device
CN113793195A (en) * 2021-08-25 2021-12-14 深圳依时货拉拉科技有限公司 Network appointment order processing method and device, computer equipment and readable storage medium
CN116843166A (en) * 2023-08-31 2023-10-03 湘江实验室 Taxi taking method, device, equipment and medium
CN116957290A (en) * 2023-08-09 2023-10-27 北京丰赞科技有限公司 Distribution capacity scheduling method and device for group meal order
CN117094536A (en) * 2023-10-19 2023-11-21 青岛冠成软件有限公司 Order data analysis method and system
CN113673934B (en) * 2021-08-26 2024-04-26 深圳市易流科技股份有限公司 Order and line matching method and device, equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723673A (en) * 2021-08-18 2021-11-30 郑州时空隧道信息技术有限公司 Order assignment method and system
CN114372754B (en) * 2022-01-11 2023-04-28 拉扎斯网络科技(上海)有限公司 Order matching method and device and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187686A1 (en) * 2002-03-29 2003-10-02 Fujitsu Limited Shipped product allocating system, method and program therefor
CN105468698A (en) * 2015-11-18 2016-04-06 上海电机学院 Real-time processing method of mass orders
CN109583799A (en) * 2017-09-28 2019-04-05 北京三快在线科技有限公司 The method and device of region division, electronic equipment
CN109800997A (en) * 2019-01-30 2019-05-24 拉扎斯网络科技(上海)有限公司 A kind of order allocation method, device, storage medium and electronic equipment
CN109934537A (en) * 2019-03-12 2019-06-25 北京同城必应科技有限公司 Order allocation method, device, server and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392512B (en) * 2016-11-25 2018-06-01 北京小度信息科技有限公司 Grouped task method and apparatus
CN107392405B (en) * 2017-01-26 2018-06-01 北京小度信息科技有限公司 Data processing method, device and equipment
CN107292701A (en) * 2017-05-25 2017-10-24 北京小度信息科技有限公司 Order group technology and device
CN107392412B (en) * 2017-06-05 2021-10-12 北京星选科技有限公司 Order scheduling method and device
CN107844879A (en) * 2017-06-27 2018-03-27 北京小度信息科技有限公司 Order allocation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187686A1 (en) * 2002-03-29 2003-10-02 Fujitsu Limited Shipped product allocating system, method and program therefor
CN105468698A (en) * 2015-11-18 2016-04-06 上海电机学院 Real-time processing method of mass orders
CN109583799A (en) * 2017-09-28 2019-04-05 北京三快在线科技有限公司 The method and device of region division, electronic equipment
CN109800997A (en) * 2019-01-30 2019-05-24 拉扎斯网络科技(上海)有限公司 A kind of order allocation method, device, storage medium and electronic equipment
CN109934537A (en) * 2019-03-12 2019-06-25 北京同城必应科技有限公司 Order allocation method, device, server and storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723676A (en) * 2021-08-23 2021-11-30 郑州时空隧道信息技术有限公司 One-path and multiple-path line planning method and device
CN113793195A (en) * 2021-08-25 2021-12-14 深圳依时货拉拉科技有限公司 Network appointment order processing method and device, computer equipment and readable storage medium
CN113793195B (en) * 2021-08-25 2024-03-15 深圳依时货拉拉科技有限公司 Network about vehicle order processing method and device, computer equipment and readable storage medium
CN113673934A (en) * 2021-08-26 2021-11-19 深圳市易流科技股份有限公司 Method, device, equipment and storage medium for matching order and line
CN113673934B (en) * 2021-08-26 2024-04-26 深圳市易流科技股份有限公司 Order and line matching method and device, equipment and storage medium
CN116957290A (en) * 2023-08-09 2023-10-27 北京丰赞科技有限公司 Distribution capacity scheduling method and device for group meal order
CN116957290B (en) * 2023-08-09 2024-02-27 上海丰赞科技有限公司 Distribution capacity scheduling method and device for group meal order
CN116843166A (en) * 2023-08-31 2023-10-03 湘江实验室 Taxi taking method, device, equipment and medium
CN116843166B (en) * 2023-08-31 2023-11-21 湘江实验室 Taxi taking method, device, equipment and medium
CN117094536A (en) * 2023-10-19 2023-11-21 青岛冠成软件有限公司 Order data analysis method and system
CN117094536B (en) * 2023-10-19 2024-01-12 青岛冠成软件有限公司 Order data analysis method and system
CN117557077B (en) * 2024-01-12 2024-04-26 宁波安得智联科技有限公司 Method for distributing capacity, capacity distribution device, and storage medium

Also Published As

Publication number Publication date
CN113222305A (en) 2021-08-06
CN113222305B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
WO2021147353A1 (en) Order dispatch
US11265369B2 (en) Methods and systems for intelligent distribution of workloads to multi-access edge compute nodes on a communication network
Li et al. An online incentive mechanism for collaborative task offloading in mobile edge computing
CN107094165B (en) Distribution capacity determining method, distribution task obtaining method, distribution resource scheduling method and equipment
CN110645983B (en) Path planning method, device and system for unmanned vehicle
Liu et al. A reinforcement learning-based resource allocation scheme for cloud robotics
RU2688270C2 (en) Calculating long-term schedules for transmitting data over a global computer network
WO2019037367A1 (en) Delivery task processing method and apparatus, and electronic device
US20160048804A1 (en) Systems and methods for transportation services for package delivery
CN103927229A (en) Scheduling Mapreduce Jobs In A Cluster Of Dynamically Available Servers
WO2019205784A1 (en) Delivery task allocation method and apparatus, electronic device and computer storage medium
US10886743B2 (en) Providing energy elasticity services via distributed virtual batteries
CN109710406B (en) Data distribution and model training method and device thereof, and computing cluster
CN105446817B (en) A kind of federated resource configuration of reservations algorithm based on robust optimization in mobile cloud computing
US20220121467A1 (en) A method and a system for managing the computing resources of a cloud computing platform
CN110069341A (en) What binding function configured on demand has the dispatching method of dependence task in edge calculations
CN110991808A (en) Task allocation method and device
CN108415760B (en) Crowd sourcing calculation online task allocation method based on mobile opportunity network
Chunlin et al. Efficient load-balancing aware cloud resource scheduling for mobile user
de Souza Toniolli et al. Resource allocation for multiple workflows in cloud-fog computing systems
CN113747450B (en) Service deployment method and device in mobile network and electronic equipment
CN111776896A (en) Elevator dispatching method and device
US20210125133A1 (en) Dispatch system for scheduling workers
CN113778675A (en) Calculation task distribution system and method based on block chain network
US10452126B2 (en) Method for fair off-loading of computational tasks for efficient energy management in mobile devices like smart phones

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20916134

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20916134

Country of ref document: EP

Kind code of ref document: A1