Waybill matching method and apparatus, and computer device, program product and storage medium

Through the cluster search algorithm, the matching degree and running efficiency evaluation in the waybill matching is gradually optimized, and the matching of the waybill and distribution capacity is solved, and the problem of local optimal solutions in the existing technology is improved, and the distribution efficiency and matching quality are improved.

WO2024260430A1PCT designated stage expired Publication Date: 2024-12-26SHANGHAI FENGNIAO JIPEI INFORMATION TECH CO LTD

Patent Information

Application Number
PCT/CN2024/100482
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-20
Filing Date
2024-06-20
Publication Date
2024-12-26

AI Technical Summary

Technical Problem

The existing waybill matching algorithms are prone to falling into local optimal solutions, resulting in low delivery efficiency and difficulty in real-time matching and optimizing delivery capacity in real-time in real-time delivery scenarios.

Method used

The cluster search algorithm is used to represent the matching degree of the waybill and distribution capacity by establishing an initial matrix, and through multiple rounds of branching and pruning processes, combining the evaluation strategies of matching degree and running efficiency, the matching results are gradually optimized until each The waybills are matched with the appropriate delivery capacity.

Benefits of technology

The quality and distribution efficiency of waybill matching are improved, unreasonable order distribution is reduced, and better matching results are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024100482_26122024_PF_FP_ABST
    Figure CN2024100482_26122024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present disclosure are a waybill matching method and apparatus, and a computer program product, a computer device and a storage medium. The waybill matching method comprises: acquiring a plurality of waybills to be matched and a plurality of delivery transport capacities, and establishing an initial matrix representing a matching degree of each matching pair, wherein the matching pair refers to a waybill and a matched delivery transport capacity thereof; selecting, from the initial matrix, a plurality of target matching pairs having the highest matching degree, and cyclically executing multiple rounds of branching and pruning until each waybill is matched with a delivery transport capacity, wherein each round of branching refers to selecting, from a matrix of the previous round, target matching pairs having the highest matching degree, so as to obtain branch matrices, and each round of pruning refers to reserving, for each sub-branch matrix, a matrix having the highest delivery transport capacity traveling efficiency; and determining a waybill matching result according to the last round of branching.
Need to check novelty before this filing date? Find Prior Art

Description

Waybill matching method, device, computer equipment, program product and storage medium Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a waybill matching method, apparatus, computer program product, computer equipment, and storage medium. Background Art

[0002] In the instant delivery business scenario, new orders are generated constantly. Simultaneously, the location of delivery capacity (for example, riders) and the status of orders in progress are constantly changing. The dispatch system obtains real-time information on the current order and delivery capacity status (in this case, information reflecting the basic situation in the instant business scenario) and continuously matches pending orders with appropriate delivery capacity. Therefore, a waybill matching solution with better matching results is needed.

[0003] Summary of the Invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a waybill matching method, apparatus, computer program product, computer equipment and storage medium.

[0005] According to a first aspect of an embodiment of this specification, a waybill matching method is provided, applicable to a server, including:

[0006] Establishing an initial matrix based on the obtained multiple waybills to be matched and the multiple delivery capabilities, wherein each element of the initial matrix corresponds to a matching pair of a waybill and a delivery capability, and represents a matching degree of the matching pair;

[0007] After selecting multiple target matching pairs with the highest matching degree from the initial matrix, a current branch matrix corresponding to each target matching pair in the multiple target matching pairs is obtained from the initial matrix to obtain multiple current branch matrices; based on the multiple current branch matrices, multiple rounds of branching and pruning are cyclically performed until suitable delivery capacity is matched for each waybill; wherein, the branching of each round includes: for each current branch matrix from the multiple current branch matrices obtained from the previous round, after selecting multiple current target matching pairs with the highest matching degree, a sub-branch matrix corresponding to each current target matching pair in the multiple current target matching pairs is obtained from the current branch matrix to obtain multiple sub-branch matrices corresponding to the current branch matrix; each round of pruning includes: for the multiple sub-branch matrices corresponding to the multiple current branch matrices, the matrix with the highest delivery capacity running efficiency is retained as the current branch matrix for the next round;

[0008] The waybill matching result is determined based on the branch of the last round.

[0009] In some examples, the step of cyclically performing multiple rounds of branching and pruning based on the multiple current branch matrices until each waybill is matched with a suitable delivery capacity includes:

[0010] For each current branch matrix among the multiple current branch matrices, obtain multiple target matching pairs with the highest matching degree from the current branch matrix, obtain a sub-branch matrix of each current branch matrix, and update the matching degree in the corresponding sub-branch matrix based on the target matching pair;

[0011] For each sub-branch matrix, based on the obtained target matching pairs, determine the distribution capacity running efficiency of each sub-branch matrix, and retain the sub-branch matrices with the highest running efficiency from all sub-branch matrices;

[0012] The retained sub-branch matrices are used as the current branch matrix and returned.

[0013] In some examples, the rows in the initial matrix represent waybills;

[0014] The step of obtaining a current branch matrix corresponding to each target matching pair in the plurality of target matching pairs from the initial matrix to obtain a plurality of current branch matrices includes:

[0015] For each target matching pair, delete the row where the target waybill in the target matching pair is located from the initial matrix to obtain a current branch matrix of the target matching pair;

[0016] and / or,

[0017] The step of obtaining a plurality of current target matching pairs with the highest matching degree from the current branch matrix and obtaining a sub-branch matrix of each branch matrix includes:

[0018] For each target matching pair, the row where the target waybill in the target matching pair is located is deleted from the branch matrix to obtain a sub-branch matrix of the branch matrix.

[0019] In some examples, the number of target matching pairs with the highest matching degree obtained in each round of branches is the same or different; and / or,

[0020] In each round of pruning, the number of target matching pairs with the highest matching degree obtained is the same or different; and / or,

[0021] In each round of pruning, the number of matrices with the highest delivery capacity efficiency retained is the same or different; and / or,

[0022] The number of target matching pairs with the highest matching scores obtained in any round of branching is the same as or different from the number of target matching pairs with the highest matching scores obtained in any round of pruning; and / or,

[0023] The number of target matching pairs with the highest matching degree obtained in any round of branches is the same as or different from the number of matrices with the highest delivery capacity running efficiency retained in any round of pruning.

[0024] In some examples, the degree of match is determined as follows:

[0025] Get the path planning results between each waybill and each delivery capacity in the current matrix;

[0026] Based on the route planning result, obtaining delivery information after the waybill is assigned to the delivery capacity;

[0027] The matching degree between the waybill and the delivery capacity is determined based on the delivery information.

[0028] In some examples, the delivery information includes any of the following:

[0029] Delivery capacity efficiency information, delivery time, delivery capacity order-carrying capacity information, weather information, information about the delivery team to which the delivery capacity belongs, order popularity information, future forecast information, meal pickup status information, order delivery difficulty information, delivery capacity empty load information, business scenario information, or delivery capacity preference information.

[0030] In some examples, the running efficiency is obtained as follows:

[0031] After allocating each target matching target waybill to the target delivery capacity, obtain the running distance of each target delivery capacity to deliver each target waybill; or,

[0032] After allocating the target waybills in each target matching pair to the target delivery capacity, the estimated delivery time for each target delivery capacity to deliver each target waybill is obtained.

[0033] According to a second aspect of the embodiments of this specification, a waybill matching device is provided, including:

[0034] an acquisition module configured to establish an initial matrix based on the acquired multiple waybills and multiple delivery capabilities to be matched, wherein each element of the initial matrix corresponds to a matching pair of a waybill and a delivery capability, and represents a matching degree of the matching pair;

[0035] The matching module is configured to select multiple target matching pairs with the highest matching degree from the initial matrix, and then obtain a current branch matrix corresponding to each target matching pair in the multiple target matching pairs from the initial matrix to obtain multiple current branch matrices; based on the multiple current branch matrices, cyclically perform multiple rounds of branching and pruning until a suitable delivery capacity is matched for each of the waybills; wherein, the branching of each round includes: for each current branch matrix obtained from the multiple current branch matrices obtained from the previous round, after selecting multiple current target matching pairs with the highest matching degree, obtaining a sub-branch matrix corresponding to each current target matching pair in the multiple current target matching pairs from the current branch matrix to obtain multiple sub-branch matrices corresponding to the current branch matrix; and the pruning of each round includes: for the multiple sub-branch matrices corresponding to the multiple current branch matrices, retaining the matrix with the highest delivery capacity running efficiency as the current branch matrix for the next round;

[0036] Select the module and set it to determine the waybill matching result based on the branch of the last round.

[0037] According to a third aspect of the embodiments of this specification, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method embodiment described in the first aspect are implemented.

[0038] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method embodiment described in the first aspect are implemented.

[0039] The technical solutions provided by the embodiments of this specification may include the following beneficial effects: In the embodiments of this specification, for multiple waybills and multiple delivery capacity to be matched, an initial matrix representing the matching degree of each matching pair is established. Matching refers to assigning delivery capacity to a waybill, and a matching pair refers to the combination of a waybill and its matching delivery capacity. After selecting multiple target matching pairs with the highest matching degree from the initial matrix, multiple rounds of branching and pruning are performed cyclically until each waybill is matched with a delivery capacity. In each round of branching, the target matching pairs with the highest matching degree are selected from the matrix of the previous round to obtain a branch matrix. In each round of pruning, the sub-branch matrix of each branch matrix is ​​obtained by obtaining multiple target matching pairs with the highest matching degree from each branch matrix of the current round, and the matrix with the highest delivery capacity running efficiency is retained for each sub-branch matrix. The waybill matching result is determined based on the branch of the last round. In this embodiment, the branching and pruning of each round adopt different evaluation strategies. The evaluation strategy for branching is matching degree, while the evaluation strategy for pruning is running efficiency. This allows the local optimal solution to be avoided and a matching result with higher running efficiency to be obtained.

[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the disclosure.

[0042] FIG1A is a schematic diagram of a delivery scenario according to an exemplary embodiment of the present disclosure.

[0043] FIG1B is a flowchart showing a waybill matching process according to an exemplary embodiment of the present disclosure.

[0044] FIG1C is a schematic diagram showing a matching degree selection in waybill matching according to an exemplary embodiment of the present disclosure.

[0045] FIG1D is a schematic diagram of a meal pickup distance for waybill matching according to an exemplary embodiment of the present disclosure.

[0046] FIG2A is a flowchart showing a waybill matching method according to an exemplary embodiment of the present disclosure.

[0047] FIG2B is a schematic diagram showing a matching degree ranking according to an exemplary embodiment of the present disclosure.

[0048] FIG2C is a flowchart showing another waybill matching method according to an exemplary embodiment of the present disclosure.

[0049] FIG2D is a schematic diagram showing branching and pruning of waybill matching according to an exemplary embodiment of the present disclosure.

[0050] FIG3 is a hardware structure diagram of a computer device where a waybill matching apparatus is located according to an exemplary embodiment of the present disclosure.

[0051] FIG4 is a block diagram of a waybill matching device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with this specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of this specification, as detailed in the appended claims.

[0053] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. As used in this specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0054] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information without departing from the scope of this specification. Depending on the context, the term "if" as used herein may be interpreted as "when," "when," or "in response to determining."

[0055] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0056] Delivery services are widely used in scenarios such as online shopping, food delivery, and errand shopping. As shown in Figure 1A, it is a schematic diagram of a delivery scenario according to an exemplary embodiment of the present disclosure, including a business party, delivery capacity, a store and a user, and the parties can communicate through the network. Among them, the business party has built a service end 101, and the user is equipped with a user client 102. The user can use the services provided by the business party through the user client; the store is equipped with a store client 103, and the store can use the services provided by the business party through the store client. Among them, each user (only one user is shown in the figure for convenience) can trade with the store through their respective user clients and can initiate transaction orders; after the user successfully places an order, the business party can convert the transaction order into a delivery waybill on the logistics side (which can be simply referred to as a waybill) and allocate delivery capacity for the immediate delivery waybill. The delivery capacity of this embodiment refers to a party with delivery capabilities, including but not limited to delivery personnel, such as the so-called riders. The delivery capacity can communicate with the server 101 through the delivery capacity client 104 used for the delivery capacity; in other examples, the delivery capacity can also include unmanned delivery equipment, such as drones, unmanned vehicles, etc. The clients used by users and the clients used for delivery capacity include but are not limited to mobile phones, computers, head-mounted devices, portable devices and other electronic devices.

[0057] For example, a user first initiates a transaction order, which includes at least information about the items to be delivered and the user-specified location. After the user places the order, the server (e.g., an e-commerce platform or other delivery platform that cooperates with the e-commerce platform) needs to generate a corresponding delivery waybill (referred to as the waybill) for the items to be delivered and allocate the delivery waybill to the delivery vehicle. After accepting the delivery waybill, the delivery vehicle will go to the pickup location (a location where the items to be delivered are stored, such as a warehouse) to pick up the items to be delivered and deliver them to the user-specified location after successful pickup.

[0058] In some solutions, the server uses a greedy algorithm to solve the waybill matching problem. The greedy algorithm is a step-by-step solution algorithm. In the solution process, it always makes the best choice at the moment, and the solution to the problem finally obtained is usually a local optimal solution. Specifically, for the above-mentioned matching problem of delivery capacity (taking riders as an example) and delivery waybills, the matching degree between the waybill and the rider is usually evaluated first (taking into account the risk of timeout, running distance, delivery capacity and order-carrying ability, etc., where carrying an order refers to the behavior of the rider carrying a certain number of waybills, and order-carrying ability refers to the maximum number of waybills that the rider can carry), and a matching degree matrix between the waybill and the rider is obtained. Each value in the matrix represents a matching pair of a certain order and a rider. In each round of iteration, the waybill with the highest matching degree in the matrix is ​​paired with the delivery capacity, so as to realize the allocation of all waybills step by step. This waybill allocation strategy can quickly generate a better allocation result. Figure 1B shows the process of this method, including the following steps 1101 to 1104.

[0059] Step 1101: Generate a matching matrix of m delivery capabilities and n waybills.

[0060] Step 1102: Select the matching pair of waybill and delivery capacity with the highest matching degree in the matrix.

[0061] Step 1103: For the delivery capacity of the matching pair selected in step 1102, the matching degree between the delivery capacity and the remaining waybills is updated.

[0062] Step 1104: Determine whether there is a waybill to be assigned. If so, return to step 1102; otherwise, output all matching results and the solution ends.

[0063] The following example illustrates the greedy waybill matching process: As shown in Figure 1C, assume that there are three waybills to be assigned on the current disk, namely o1, o2 and o3, and three riders, namely c1, c2 and c3. In each round of solving, the waybill-rider corresponding to the element with the largest matching degree (val) in the matrix (marked by the black dotted box) is selected as the matching result of the current round, the row of elements with the highest matching degree is deleted, and the elements in the column of the currently matched rider (marked by the gray dotted box) are updated. Finally, after several rounds of selection and update, the waybill is finally assigned to the appropriate rider.

[0064] Since the order book changes after being assigned to a rider, the rider's order book selection depends on the previous pair selection. If the matching pair is always selected based on the principle of maximum matching, the final assignment result is usually a local optimum.

[0065] Next, the above defects will be explained through Figure 1D. For the disk in Figure 1D, c1 and c2 are riders whose current number of waybills is 0 (called empty), and the maximum number of waybills each rider can carry (hereinafter referred to as the number of orders carried) is 1, that is, they can only accept one waybill at most; o1 and o2 are waybills to be assigned, and Figure 1D indicates the pickup distance from the rider to the pickup destination corresponding to the waybill to be assigned; assuming that the smaller the pickup distance, the greater the matching degree, then according to the principle of the greedy algorithm, since the pickup distance from c2 to o1 is the smallest, o1 will be assigned to c2 first; when assigning o2, since rider c2 already has an order, o2 can only be assigned to c1, and the total pickup distance is 2800m. Obviously, there is a better match on the current disk, that is, o1 is assigned to c1, and o2 is assigned to c2. The total pickup distance under this allocation result is only 2200m.

[0066] From the above analysis, we can see that there are significant differences in the matching results under different waybill allocation orders. For the greedy algorithm, no matter how the matching degree is designed, it will inevitably fall into the local optimal solution.

[0067] This embodiment aims to improve the existing greedy solution strategy, escape from the local optimal solution, further improve the quality of person-order matching, reduce unreasonable order dispatching, and make the overall matching results more reasonable.

[0068] As we've seen from the previous introduction to the greedy solution strategy, the assignment of waybills is not independent of each other. Different ordering of waybills can affect the overall matching quality. This example aims to find the optimal order for assigning waybills. Therefore, it transforms the aforementioned problem into a sequence selection problem, allowing for the application of beam search to solve the person-to-waybill matching problem. Beam search is an improvement on the greedy algorithm. At each step, it retains the best possible choices and continues to explore and split based on these choices, ultimately determining the optimal choice in the final step.

[0069] Conventional beam search strategies generally use the same evaluation strategy during exploration and pruning. Considering that the constraints and optimization objectives of the person-order matching problem are many and complex, this embodiment splits the evaluation strategies for exploration and pruning, that is, using scoring (comprehensive indicators) to determine the direction to explore, and using efficiency indicators to evaluate the branches. Each time a person-order matching pair is selected, several possible allocation pairs will be retained, that is, multiple search branches will be split out; and each search branch will be evaluated and pruned using efficiency indicators, and finally, through continuous search and pruning, a better matching result will be selected than the greedy solution strategy. The above strategy can better adapt the beam search strategy to the matching problem of distribution capacity and distribution orders, and finally optimize and improve the distribution efficiency while ensuring the experience. The following is a detailed description of the embodiments of this specification.

[0070] As shown in FIG2A , FIG2A is a flowchart of a waybill matching method according to an exemplary embodiment of this specification, including steps 202 to 204 .

[0071] In step 202, a plurality of waybills and a plurality of delivery capacities to be matched are obtained, and an initial matrix representing the matching degree of each matching pair is established. The matching pair refers to the waybills and the allocated delivery capacities.

[0072] In step 204, after selecting multiple target matching pairs with the highest matching degree from the initial matrix, multiple rounds of branching and pruning are performed cyclically until each waybill is matched with a suitable delivery capacity.

[0073] Among them, the branching in each round refers to the branch matrix obtained by selecting the target matching pairs with the highest matching degree from the matrix of the previous round. The pruning in each round is to retain the matrix with the highest distribution capacity running efficiency for each sub-branch matrix.

[0074] In step 204, based on the branch of the last round, the matrix with the highest matching degree is determined to obtain the waybill matching result.

[0075] This embodiment optimizes the greedy algorithm's solution process. Each time a matching pair is selected, multiple matching pair results are retained, each representing a possible search branch. Each branch is evaluated and pruned based on the optimization objective, retaining the best branches. Branching and pruning is then continued based on these branches. Ultimately, the person-order matching result corresponding to the branch closest to the optimization objective is selected, thereby escaping the local optimal solution caused by the greedy algorithm.

[0076] In the initial matrix of this embodiment, the rows represent waybills and the columns represent delivery capacity; or the rows represent delivery capacity and the columns represent waybills, which is not limited in this embodiment.

[0077] During matrix initialization, m delivery capacity and n waybills to be allocated are obtained. Furthermore, the matching degree between these m delivery capacity and n waybills is determined. The matching degree can be configured based on business needs. For example, the matching degree can be determined based on delivery capacity information, waybill information, and various other factors.

[0078] In some examples, the matching degree is determined by: obtaining the path planning results between each waybill and each delivery capacity in the current matrix; based on the path planning results, obtaining the delivery information after the waybill is assigned to the delivery capacity; and determining the matching degree between the waybill and the delivery capacity based on the delivery information.

[0079] In some examples, the delivery information includes at least one of the following: delivery capacity running efficiency information, delivery time, delivery capacity order carrying capacity information, weather information, information about the team to which the delivery capacity belongs, order popularity information, future forecast information, meal pickup status information, order delivery difficulty information, delivery capacity empty load information, business scenario information, and delivery capacity preference information.

[0080] Among them, the running efficiency information can be the running distance, which can be obtained by the server side calculating the distance between the starting point and the end point of the waybill. The order-carrying capacity information can refer to information such as the number of orders carried by the delivery capacity. Weather information may include information describing the current weather temperature, humidity, whether it is raining, rain level, whether it is snowing, whether it is thundering, etc., which can be obtained by the server side by obtaining local weather conditions based on the geographical location of the waybill route. There can be a variety of information about the team to which the delivery capacity belongs, including the size of the service scope of the team to which the delivery capacity belongs, the total number of waybills allocated, the number of unallocated waybills in the current team, etc., which can be managed or retrieved by the server side. Future forecast information may include the estimated number of future waybills, etc., which can be obtained by the server side based on analysis and inference of past waybill data. For example, through the above embodiments, the matching degree between the waybill and the delivery capacity can be determined by one or more indicators.

[0081] As an example, as shown in Figure 2B, assuming that there are currently 3 waybills and 3 riders, a 3×3 initial matrix is ​​established, and each element in the matrix represents the matching degree between the waybill and the rider in its row and column; in the figure, o represents the waybill, and c represents the rider; based on the matching degree of each row in the initial matrix, the optimal rider is selected for each row of waybills; this embodiment does not limit the number of waybills that each rider can be assigned, and can be configured as needed in actual applications. After matching, 3 matching pairs are obtained: "o1 to c2", "o2 to c1", and "o3 to c3"; the matching degrees of these 3 matching pairs are sorted in order: "o3 to c3", "o2 to c1", and "o1 to c2".

[0082] During these multiple rounds of matching, the matrix is ​​updated: For each branch, upon accepting a target matching pair, the order from the target matching pair is updated to the delivery capacity within the matching pair. Obviously, due to the change in the delivery capacity's status, the routing results for the remaining orders to be assigned to that delivery capacity will also change. At this point, the matching degree of the remaining orders to be assigned to the updated delivery capacity can be updated.

[0083] In this embodiment, the evaluation strategies used for branching and pruning are different. When branching, the evaluation strategy used is matching degree. After selecting multiple target matching pairs with the highest matching degree, multiple matrices are split. When pruning the multiple split matrices, the evaluation strategy used is the running efficiency of the delivery capacity. Based on the selected target matching pairs, the target waybill is assigned to the target delivery capacity. The running efficiency of each target delivery capacity is calculated, and the matrix with the highest running efficiency is retained. Running efficiency is represented by running distance or estimated delivery time. The shorter the running distance, the higher the running efficiency; the shorter the estimated delivery time, the higher the running efficiency.

[0084] In some examples, running efficiency can be obtained by assigning the target waybills from each target matching pair to the target delivery capacity, and then calculating the running distance traveled by each target delivery capacity to deliver each target waybill. Based on this, running efficiency can be quickly calculated by calculating the running distance. For delivery capacity, the shorter the running distance, the shorter the time it takes to complete a waybill. Therefore, reducing running distance can improve the delivery capacity's waybill completion efficiency, providing a better delivery experience.

[0085] In other examples, running efficiency can also be determined by assigning each target waybill to a target delivery capacity, then obtaining the estimated delivery time for each target delivery capacity to deliver each target waybill. Based on this, running efficiency can be quickly calculated by calculating the estimated delivery time. For delivery capacity, reducing the estimated delivery time can improve the delivery capacity's order completion efficiency, providing a better delivery experience.

[0086] In some examples, after selecting multiple target matching pairs with the highest matching scores from the initial matrix, multiple rounds of branching and pruning are cyclically performed until each waybill is matched with a delivery capacity, including:

[0087] Obtain multiple target matching pairs with the highest matching scores from the initial matrix. After obtaining the current branch matrix for each target matching pair, loop through the following steps until each waybill is matched with the appropriate delivery capacity:

[0088] For each current branch matrix, obtaining multiple target matching pairs with the highest matching degree from the branch matrix, obtaining a sub-branch matrix of each branch matrix, and updating the matching degree in the corresponding sub-branch matrix based on the target matching pair;

[0089] From all sub-branch matrices, based on the obtained target matching pairs, determine the delivery capacity running efficiency of each sub-branch matrix, and retain the sub-branch matrices with the highest running efficiency;

[0090] The retained sub-branch matrices are used as the current branch matrix and returned.

[0091] In this embodiment, by executing the above loop, the matching result can be quickly obtained.

[0092] In some examples, the rows in the initial matrix represent waybills;

[0093] The step of obtaining multiple target matching pairs with the highest matching degree from the initial matrix and obtaining the current branch matrix of each target matching pair includes:

[0094] For each target matching pair, delete the row where the target waybill in the target matching pair is located from the initial matrix to obtain a current branch matrix of the target matching pair;

[0095] and / or,

[0096] The step of obtaining a plurality of target matching pairs with the highest matching degree from the branch matrix and obtaining a sub-branch matrix of each branch matrix includes:

[0097] For each target matching pair, the row where the target waybill in the target matching pair is located is deleted from the branch matrix to obtain a sub-branch matrix of the branch matrix.

[0098] In practical applications, multiple matching pairs with the highest matching scores need to be selected from the branches of each round, and multiple sub-branch matrices with the best running efficiency need to be retained during each round of pruning. In practical applications, the number of matching pairs selected from the branches of each round and the number of sub-branch matrices retained during each round of pruning can be configured according to actual needs, and this embodiment does not limit this. For example, the number of matching pairs selected from the branches of each round and the number of sub-branch matrices retained during each round of pruning can be equal, thereby reducing computational overhead and increasing the speed of matching calculations in multiple rounds. Alternatively, the number of matching pairs selected from the branches of the earlier rounds can be greater than the number of matching pairs selected from the branches of the later rounds, and the number of sub-branch matrices retained during the earlier rounds of pruning can be greater than the number of sub-branch matrices retained during the later rounds of pruning, and so on.

[0099] For example, in each round of branches, the number of target matching pairs with the highest matching degree obtained is the same or different; and / or,

[0100] In each round of pruning, the number of target matching pairs with the highest matching degree obtained is the same or different; and / or,

[0101] In each round of pruning, the number of matrices with the highest delivery capacity efficiency retained is the same or different; and / or,

[0102] The number of target matching pairs with the highest matching scores obtained in any round of branching is the same as or different from the number of target matching pairs with the highest matching scores obtained in any round of pruning; and / or,

[0103] The number of target matching pairs with the highest matching scores obtained in any round of branches is the same as or different from the number of matrices with the highest delivery capacity efficiency retained in any round of pruning; and / or

[0104] The number of target matching pairs with the highest matching degree obtained in any round of pruning is the same as or different from the number of matrices with the highest delivery capacity running efficiency retained in any round of pruning.

[0105] Based on this, the number of target matching pairs with the highest matching degree can be configured as needed to achieve a more flexible pruning solution.

[0106] As shown in FIG2C , it is a flowchart of another waybill matching method according to an exemplary embodiment of this specification, including the following steps 301 to 306 .

[0107] Step 301: Initialize and generate a waybill-delivery capacity matching matrix, and initialize the beam search beam size to the search parameter k. The value of k is less than or equal to the number of waybills and can be configured as needed in actual applications.

[0108] For example, if the number of waybills is m and the number of delivery capacity is n, an initial m×n matrix is ​​generated. Each element in the initial matrix represents the matching degree between the waybills and delivery capacity in its row and column. For example, rows represent waybills and columns represent delivery capacity.

[0109] Step 302, first branch: sort all matching pairs, for example, by matching degree from high to low, and output the top k target matching pairs with the highest matching degree.

[0110] Step 303: Based on each target matching pair, the waybill-delivery capacity matching matrix is ​​updated. That is, a matching matrix is ​​updated and maintained for each branch where a matching pair is located.

[0111] That is, for each target matching pair, delete the row containing the target waybill in the target matching pair from the initial matrix to obtain the branch matrix. If the matrix has columns representing waybills, delete the column containing the waybill.

[0112] Step 304: Branching: For any branch matrix, select the top k target matching pairs again.

[0113] For example, for each target matching pair selected again, the row where the target waybill in the target matching pair is located is deleted from the branch matrix to obtain a sub-branch matrix.

[0114] Step 305 : Perform pruning operation: evaluate all sub-branch matrices based on running efficiency, retain the top k allocation results with the highest running efficiency, and update the corresponding matching degree matrix.

[0115] The running efficiency here can be specifically characterized by the running distance of the delivery capacity. For each sub-branch matrix, the running efficiency is determined by obtaining all the target matching pairs of the sub-branch matrix. For example, assuming that for the target sub-branch matrix, the target matching pairs obtained when obtaining the matrix are: "o4 to c6", "o3 to c8", "o7 to c9" and "o1 to c5" in sequence. According to the above four allocation results, after determining that these four waybills are respectively allocated to these four delivery capacities, the sum of the running distances of these four delivery capacities represents the running efficiency of the delivery capacity of the target branch matrix relative to the initial matrix. Similarly, the running efficiency is calculated for other sub-branch matrices in the same way, and the top k sub-branch matrices with the smallest running distances are retained, and the other sub-branch matrices are pruned (removed and no longer processed). The calculations for other rounds are similar.

[0116] Step 306: Determine whether all waybills have been allocated. If not, continue branching (step 304) and pruning (step 305). If allocation is complete, select the allocation result of the branch corresponding to the highest running efficiency as the final result.

[0117] In this embodiment, for any matrix, the matching pairs may be sorted and the top k matching pairs with the highest matching degrees may be selected.

[0118] In this embodiment, the order of matching pairs is determined through two steps.

[0119] Step 1: From the perspective of waybills, select the delivery capacity with the highest matching degree for each waybill. The number of matching pairs retained in this step is the same as the number of waybills.

[0120] Step 2: Sort the selected matching pairs according to the degree of matching.

[0121] The sorted matching pairs are used in subsequent branches. Since each matching pair represents a waybill assignment and its optimal delivery capacity, the matching pair sorting strategy ensures that the delivery capacity quality of the waybill assignment is high in each selected branch, effectively reducing the occurrence of bad cases.

[0122] As shown in Figure 2D, assuming there are three waybills and three delivery capabilities, and if the beam search beam size is 2, the overall solution process is as follows (Note: For convenience, only the specific matching pair selection at the first branch is marked in the figure).

[0123] (1) Establish a 3×3 matrix, where each element represents the matching degree between the waybill and the delivery capacity in its row and column; in the figure, o represents the waybill and c represents the delivery capacity.

[0124] (2) During the first branch, the two matching pairs with the highest matching degree are: o2 is assigned to c3, and o1 is assigned to c2:

[0125] Under the branch where o2 is assigned to c3, we get branch 1.1 in the figure; the row o2 is deleted in this branch;

[0126] Under the branch where o1 is assigned to c2, we get branch 1.2 in the figure; the row o1 is deleted in this branch.

[0127] (3) Re-branch the 1.1 branch and the 1.2 branch respectively;

[0128] Under branch 1.1, we get branches 2.1 and 2.2; under branch 1.2, we get branches 2.3 to 2.4.

[0129] (4) Evaluate branches 2.1 to 2.4 respectively, and obtain the top two branches with the highest running efficiency: branch 2.2 and branch 2.3.

[0130] (5) Branch 2.2 and branch 2.3 again;

[0131] Under branch 2.2, we get branches 3.1 and 3.2; under branch 2.3, we get branches 3.3 to 3.4.

[0132] (6) Select the optimal allocation result of 3.4 branches as the final matching result.

[0133] Corresponding to the embodiment of the aforementioned waybill matching method, this specification also provides an embodiment of a waybill matching apparatus and a computer device used therein.

[0134] The embodiments of the waybill matching device of this specification can be applied on computer equipment, such as servers or terminal devices. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, as shown in Figure 3, it is a hardware structure diagram of the computer device 300 where the waybill matching device of this specification is located. In addition to the processor 310, memory 330, network interface 320, and non-volatile memory 340 shown in Figure 3, the computer device where the waybill matching device 331 in the embodiment is located can also include other hardware according to the actual function of the computer device, which will not be described in detail.

[0135] As shown in FIG4 , FIG4 is a block diagram of a waybill matching device 40 according to an exemplary embodiment of this specification, the device comprising:

[0136] An acquisition module 41 is configured to establish an initial matrix based on the acquired multiple waybills and multiple delivery capabilities to be matched, wherein each element of the initial matrix corresponds to a matching pair of a waybill and a delivery capability, and represents a matching degree of the matching pair;

[0137] The matching module 42 is configured to select multiple target matching pairs with the highest matching degree from the initial matrix, obtain a current branch matrix corresponding to each of the multiple target matching pairs from the initial matrix, and obtain multiple current branch matrices; and cyclically perform multiple rounds of branching and pruning based on the multiple current branch matrices until a suitable delivery capacity is matched for each waybill.

[0138] The branching in each round includes: for each current branch matrix obtained from the previous round, after selecting the multiple current target matching pairs with the highest matching degree, obtaining the sub-branch matrix corresponding to each current target matching pair in the multiple current target matching pairs from the current branch matrix to obtain multiple sub-branch matrices corresponding to the current branch matrix. The pruning in each round includes: for the multiple sub-branch matrices corresponding to the multiple current branch matrices, retaining the matrix with the highest distribution capacity running efficiency as the current branch matrix for the next round;

[0139] The selection module 43 is configured to determine the waybill matching result according to the branch of the last round.

[0140] In some examples, the matching module 42 is further configured to:

[0141] For each current branch matrix among the multiple current branch matrices, obtain multiple target matching pairs with the highest matching degree from the current branch matrix, obtain a sub-branch matrix of each current branch matrix, and update the matching degree in the corresponding sub-branch matrix based on the target matching pair;

[0142] For each sub-branch matrix, based on the obtained target matching pairs, determine the distribution capacity running efficiency of each sub-branch matrix, and retain the sub-branch matrices with the highest running efficiency from all sub-branch matrices;

[0143] The retained sub-branch matrices are used as the current branch matrix and returned.

[0144] In some examples, the rows in the initial matrix represent waybills;

[0145] The matching module 42 is further configured to:

[0146] For each target matching pair, delete the row where the target waybill in the target matching pair is located from the initial matrix to obtain a current branch matrix of the target matching pair;

[0147] and / or,

[0148] The step of obtaining a plurality of target matching pairs with the highest matching degree from the branch matrix and obtaining a sub-branch matrix of each branch matrix includes:

[0149] For each target matching pair, the row where the target waybill in the target matching pair is located is deleted from the branch matrix to obtain a sub-branch matrix of the branch matrix.

[0150] In some examples, the number of target matching pairs with the highest matching degree obtained in each round of branches is the same or different; and / or,

[0151] In each round of pruning, the number of target matching pairs with the highest matching degree obtained is the same or different; and / or,

[0152] In each round of pruning, the number of matrices with the highest delivery capacity efficiency retained is the same or different; and / or,

[0153] The number of target matching pairs with the highest matching scores obtained in any round of branching is the same as or different from the number of target matching pairs with the highest matching scores obtained in any round of pruning; and / or,

[0154] The number of target matching pairs with the highest matching degree obtained in any round of branches is the same as or different from the number of matrices with the highest delivery capacity running efficiency retained in any round of pruning.

[0155] In some examples, the degree of match is determined as follows:

[0156] Get the path planning results between each waybill and each delivery capacity in the current matrix;

[0157] Based on the route planning result, obtaining delivery information after the waybill is assigned to the delivery capacity;

[0158] The matching degree between the waybill and the delivery capacity is determined based on the delivery information.

[0159] In some examples, the delivery information includes any of the following:

[0160] Delivery capacity running efficiency information, delivery time, delivery capacity order-carrying capacity information, weather information, information about the delivery team to which the delivery capacity belongs, order popularity information, future forecast information, meal pickup status information, order delivery difficulty information, delivery capacity empty load information, business scenario information, and delivery capacity preference information.

[0161] In some examples, the running efficiency is obtained as follows:

[0162] After allocating the target waybills to the target delivery capacity, obtain the running distance of each target delivery capacity to deliver each target waybill; or

[0163] After allocating the target waybills in each target matching pair to the target delivery capacity, the estimated delivery time for each target delivery capacity to deliver each target waybill is obtained.

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

[0165] Accordingly, an embodiment of this specification also provides a computer program product, including a computer program, which implements the steps of the aforementioned waybill matching method embodiment when executed by a processor.

[0166] Accordingly, an embodiment of this specification also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the embodiment of the waybill matching method when executing the program.

[0167] Accordingly, an embodiment of this specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the embodiment of the waybill matching method are implemented.

[0168] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0169] The above embodiments can be applied to one or more computer devices, where the computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The hardware of the computer device includes but is not limited to a microprocessor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.

[0170] The computer device may be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0171] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.

[0172] The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0173] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0174] The steps of the various methods above are divided only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the scope of protection of this application.

[0175] The phrases "specific examples" or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0176] Other embodiments of the present invention will readily occur to those skilled in the art upon consideration of the present invention and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present invention being indicated by the following claims.

[0177] It should be understood that the present description is not limited to the exact structure that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0178] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A waybill matching method, applicable to a server, comprising: Establishing an initial matrix based on the acquired multiple waybills to be matched and the multiple delivery transport capabilities, wherein each element of the initial matrix corresponds to a matching pair of a waybill and a delivery transport capability, and represents a matching degree of the matching pair; After selecting a plurality of target matching pairs with the highest matching degree from the initial matrix, obtaining a current branch matrix corresponding to each of the plurality of target matching pairs from the initial matrix to obtain a plurality of current branch matrices; Based on the multiple current branch matrices, cyclically executing multiple rounds of branching and pruning until a suitable delivery capacity is matched for each waybill; Among them, the branches of each round include: For each current branch matrix among the multiple current branch matrices obtained from the previous round, after selecting multiple current target matching pairs with the highest matching degree, a sub-branch matrix corresponding to each current target matching pair among the multiple current target matching pairs is obtained from the current branch matrix to obtain multiple sub-branch matrices corresponding to the current branch matrix, Each round of pruning includes: For the multiple sub-branch matrices corresponding to the multiple current branch matrices, the matrix with the highest distribution capacity running efficiency is retained as the current branch matrix for the next round; The waybill matching result is determined based on the branch of the last round.

2. The method according to claim 1, wherein the step of cyclically executing multiple rounds of branching and pruning based on the multiple current branch matrices until a suitable delivery capacity is matched for each waybill comprises: For each current branch matrix among the multiple current branch matrices, obtain multiple target matching pairs with the highest matching degree from the current branch matrix, obtain a sub-branch matrix of each current branch matrix, and update the matching degree in the corresponding sub-branch matrix based on the target matching pair; For each sub-branch matrix, based on the obtained target matching pairs, determine the distribution capacity running efficiency of each sub-branch matrix, and retain multiple sub-branch matrices with the highest running efficiency from all sub-branch matrices; The retained sub-branch matrices are used as the current branch matrix and returned.

3. The method according to claim 2, wherein the rows in the initial matrix represent the waybills; The step of obtaining a current branch matrix corresponding to each target matching pair in the plurality of target matching pairs from the initial matrix to obtain a plurality of current branch matrices includes: For each of the target matching pairs, the row where the target waybill in the target matching pair is located is deleted from the initial matrix to obtain a current branch matrix of the target matching pair; and / or, The method obtains multiple current target matching pairs with the highest matching degree from the current branch matrix, and obtains each branch The sub-branch matrix of the matrix includes: For each of the target matching pairs, the row where the target waybill in the target matching pair is located is deleted from the branch matrix to obtain a sub-branch matrix of the branch matrix.

4. The method according to any one of claims 1 to 3, wherein in each round of branches, the number of target matching pairs with the highest matching degree obtained is the same or different; and / or, In each round of pruning, the number of target matching pairs with the highest matching degree obtained is the same or different; and / or, In each round of pruning, the number of matrices with the highest delivery capacity running efficiency retained is the same or different; and / or, The number of target matching pairs with the highest matching degree obtained in any round of branching is the same as or different from the number of target matching pairs with the highest matching degree obtained in any round of pruning; and / or, The number of target matching pairs with the highest matching degree obtained in any round of branches is the same as or different from the number of matrices with the highest distribution capacity running efficiency retained in any round of pruning.

5. According to the method according to any one of claims 1 to 4, the matching degree is determined by: Obtaining the path planning result between each of the waybills and each of the delivery transport capabilities in the current matrix; Based on the path planning result, obtaining the delivery information after the waybill is assigned to the delivery capacity; The matching degree between the waybill and the delivery capacity is determined according to the delivery information.

6. The method according to claim 5, wherein the delivery information comprises at least one of the following: The running efficiency information of the delivery capacity, delivery time, delivery capacity's order-carrying capacity information, weather information, information about the team to which the delivery capacity belongs, order popularity information, future forecast information, meal pickup status information, order delivery difficulty information, delivery capacity's empty load information, business scenario information, or delivery capacity's preference information.

7. The method according to claim 1, wherein the running efficiency is obtained by: After allocating the target waybills in each target matching pair to the target delivery transport capacity, obtain the running distance of each target delivery transport capacity to deliver each target waybill; or, After allocating the target waybills in each target matching pair to the target delivery capacity, the estimated delivery time for each target delivery capacity to deliver each target waybill is obtained.

8. The method according to claim 3, wherein: The columns in the initial matrix represent the delivery capacity. After deleting the row where the target waybill in the target matching pair is located from the initial matrix, updating the matching degree of each element in the column where the target delivery capacity in the target matching pair is located, to obtain a current branch matrix of the target matching pair; and / or After deleting the row where the target waybill in the target matching pair is located from the branch matrix, the matching degree of each element in the column where the target delivery capacity in the target matching pair is located is updated to obtain a sub-branch matrix of the branch matrix.

9. The method according to claim 2, wherein: In the branches of the same round, the number of multiple target matching pairs with the highest matching degree retrieved for each branch matrix is ​​the same.

10. The method according to any one of claims 1 to 9, wherein: The number of target matching pairs obtained in each round of branches does not exceed the number of rows of the matrix corresponding to the branch.

11. A waybill matching device, comprising: An acquisition module is configured to establish an initial matrix based on the acquired multiple waybills and multiple delivery transport capacities to be matched, wherein each element of the initial matrix corresponds to a matching pair of a waybill and a delivery transport capacity, and represents a matching degree of the matching pair; A matching module is configured to select multiple target matching pairs with the highest matching degree from the initial matrix, and then obtain a current branch matrix corresponding to each of the multiple target matching pairs from the initial matrix to obtain multiple current branch matrices; based on the multiple current branch matrices, cyclically execute multiple rounds of branching and pruning until a suitable distribution capacity is matched for each of the waybills; wherein, each round of branching includes: for each current branch matrix obtained from the previous round, after selecting multiple current target matching pairs with the highest matching degree, obtain a sub-branch matrix corresponding to each of the multiple current target matching pairs from the current branch matrix to obtain multiple sub-branch matrices corresponding to the current branch matrix, and each round of pruning includes: for the multiple sub-branch matrices corresponding to the current multiple branch matrices, respectively, retain the matrix with the highest distribution capacity running efficiency as the current branch matrix for the next round; Select the module and set it to determine the waybill matching result based on the branch of the last round.

12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Delivery scheduling method and device, electronic equipment and storage medium

    CN114077947A

  • Waybill distribution method, waybill distribution device and electronic equipment

    CN115115295A

  • Waybill matching method and device, computer equipment and storage medium

    CN116757421A

  • Task processing method, equipment, storage medium and device

    US20210132989A1

Cited By

  • Online car-hailing driver and passenger matching optimization method based on order receiving spatial-temporal characteristics of driver

    CN120218571A