Sorting plan generation method, device, computer equipment and storage medium

By obtaining the flow direction information of the express parcels to be sorted, determining the sorting type and performing integer planning optimization, the problem of low sorting efficiency in traditional technology is solved, and a more efficient sorting plan generation is achieved.

CN113926714BActive Publication Date: 2024-11-01SF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010601293.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-11-01
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

In traditional sorting planning technology, the total number of express delivery parts and the total number of grids in the sorting machine are large, resulting in low sorting efficiency and long solution time for the sorting process.

Method used

By obtaining the flow direction information of the express parcel to be sorted, determining its sorting type is straight or mixed, and the express parcel type is grid-distributed, combining the grid information of the sorting equipment to match, and using integer planning to optimize grids The number of ports and sorting types form a sorting plan.

Benefits of technology

It significantly improves sorting efficiency, shortens the allocation and solution time between express delivery parts and sorting machine grids, and improves the efficiency of the sorting process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113926714B_ABST
    Figure CN113926714B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for generating a sorting scheme. The method comprises: obtaining the flow direction information of the express items to be sorted; determining the sorting type of the express items to be sorted according to the flow direction information of the express items to be sorted; performing mixed sorting grid allocation on the express items to be sorted whose sorting type is mixed sorting, and obtaining the corresponding information of the express items to be sorted-mixed sorting grid; obtaining the sorting grid information of the sorting equipment, and matching the sorting grids of the express items to be sorted according to the sorting grid information and the corresponding information, and obtaining the sorting scheme. The use of this method can significantly improve the sorting efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a sorting scheme generation method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, sorting planning technology has emerged. Sorting planning technology refers to the planning of the sorting of express items in the transit link of the logistics scenario. Reasonable sorting planning is of great significance to the normal operation of the logistics industry.

[0003] In traditional technology, the process of sorting planning is as follows: the server obtains the flow direction information of the express items and the total number of slots of the sorting machine, determines the total number of flow directions of the express items based on the flow direction information, directly allocates the express items in each flow direction based on the total number of flow directions and the total number of slots of the sorting machine, and determines the allocation method of the express items in each flow direction, which includes direct sorting and mixed sorting.

[0004] Although the traditional sorting scheme based on traditional sorting planning can realize the sorting of express items, due to the large number of total flow directions of express items and the total number of grids of the sorting machine, the direct allocation solution process is long and there is a problem of low sorting efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide a sorting scheme generation method, device, computer equipment and storage medium that can significantly improve the sorting efficiency in response to the above technical problems.

[0006] A method for generating a sorting scheme, the method comprising:

[0007] Obtain the flow information of the express items to be sorted;

[0008] Determine the sorting type of the express items to be sorted according to the flow information of the express items to be sorted;

[0009] Allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, and obtain the corresponding information of express parcels to be sorted and mixed sorting slots;

[0010] The sorting grid information of the sorting equipment is obtained, and the sorting grids are matched with the express items to be sorted according to the sorting grid information and corresponding information to obtain the sorting plan.

[0011] In one embodiment, determining the sorting type of the express mail to be sorted according to the flow direction information of the express mail to be sorted includes:

[0012] Determine the number of slots required for each flow direction based on the flow direction information of the express items to be sorted;

[0013] Determine the optimization target of the number of slots according to the number of slots required for each flow direction, and obtain the sorting type identification and the slot number allocation constraint conditions;

[0014] The sorting type identification, the number of flow direction slots, the number of mixed slots in each flow direction, and the average deviation of the number of slots are used as the decision variables for the allocation of the number of slots;

[0015] According to the decision variables for the number of slots allocated and the optimization target for the number of slots, the objective function for the number of slots allocated is obtained;

[0016] Integer programming is performed according to the decision variables, objective function and constraints of slot number allocation to determine the number of straight slots, the number of mixed slots and the sorting type of express parcels to be sorted.

[0017] In one embodiment, according to the flow direction information of the express items to be sorted, determining the number of slots required for each flow direction includes:

[0018] Count the total number of express parcels to be sorted, and count the number of express parcels in each flow direction based on the flow information of the express parcels to be sorted;

[0019] Obtain the total number of sorting slots of the sorting equipment, and obtain the average number of pieces per sorting slot based on the total number of express parcels to be sorted and the total number of sorting slots;

[0020] According to the average number of pieces in the sorting grid and the number of express parcels in each flow direction, the number of grids required for each flow direction is obtained.

[0021] In one embodiment, mixed sorting slots are allocated to express parcels to be sorted whose sorting type is mixed sorting, and the corresponding information of express parcels to be sorted and mixed sorting slots is obtained, including:

[0022] Obtain the parcel information of the parcels to be sorted whose sorting type is mixed sorting, obtain the mixed sorting slot allocation decision variables according to the parcel information, and obtain the mixed sorting slot allocation constraint conditions and the mixed sorting slot allocation optimization target;

[0023] According to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objectives, the mixed-grid allocation objective function is obtained;

[0024] According to the decision variables, constraints and objective function of mixed-grid allocation, integer programming is performed to obtain the corresponding information of express parcels to be sorted and mixed-grid allocation.

[0025] In one embodiment, the sorting slot information of the sorting device is obtained, and the sorting slots are matched with the express items to be sorted according to the sorting slot information and the corresponding information, and the sorting scheme is obtained, including:

[0026] Obtain the sorting slot information of the sorting equipment, and obtain the corresponding relationship between the sorting type and the sorting slot according to the sorting slot information and the corresponding information;

[0027] When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow information of the express items to be sorted, and sorting grids are matched according to the corresponding relationship and the cluster optimization results to obtain the sorting plan;

[0028] When the dispatch mode of the express to be sorted is not the bulk mode, the sorting grids are matched according to the corresponding relationship to obtain a sorting plan.

[0029] In one embodiment, the sorting slot information of the sorting device is obtained, and the corresponding relationship between the sorting type and the sorting slot is obtained according to the sorting slot information and the corresponding information, including:

[0030] Obtain the sorting slot information of the sorting equipment, and obtain the slot type matching decision variable according to the sorting slot information and corresponding information;

[0031] Obtaining the grid type matching optimization target, and obtaining the grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target;

[0032] Integer programming is performed according to the grid type matching decision variables and the grid type matching objective function to obtain the corresponding relationship between sorting type and sorting grid.

[0033] In one embodiment, when the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow information of the express items to be sorted, and sorting grid matching is performed according to the corresponding relationship and the cluster optimization result, and the sorting scheme includes:

[0034] When the dispatch mode of the express items to be sorted is the bulk mode, the clustering relationship between the express items to be sorted whose sorting type is direct sorting is determined according to the flow direction information of the express items to be sorted;

[0035] Determine the order of sorting slots for express parcels to be sorted with direct sorting according to the clustering relationship, and obtain the matching relationship between the delivery personnel and the sorting slots;

[0036] According to the corresponding relationship, the order of slot matching, and the matching relationship between the delivery personnel and the sorting slots, the slot matching decision variables are determined, and the slot matching optimization target is obtained;

[0037] According to the grid matching decision variables and the grid matching optimization objectives, the grid matching objective function is determined;

[0038] Integer programming is performed based on the grid matching decision variables and the grid matching objective function to obtain the sorting solution.

[0039] A sorting scheme generating device, the device comprising:

[0040] The acquisition module is used to obtain the flow information of the express items to be sorted;

[0041] A sorting type processing module is used to determine the sorting type of the express items to be sorted according to the flow direction information of the express items to be sorted;

[0042] A mixed sorting slot allocation module is used to allocate mixed sorting slots to express parcels to be sorted whose sorting type is mixed sorting, and obtain the corresponding information of express parcels to be sorted and mixed sorting slots;

[0043] The sorting grid matching module is used to obtain the sorting grid information of the sorting equipment, and match the sorting grids to be sorted express items according to the sorting grid information and corresponding information to obtain a sorting plan.

[0044] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0045] Obtain the flow information of the express items to be sorted;

[0046] Determine the sorting type of the express items to be sorted according to the flow information of the express items to be sorted;

[0047] Allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, and obtain the corresponding information of express parcels to be sorted and mixed sorting slots;

[0048] The sorting grid information of the sorting equipment is obtained, and the sorting grids are matched with the express items to be sorted according to the sorting grid information and corresponding information to obtain the sorting plan.

[0049] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0050] Obtain the flow information of the express items to be sorted;

[0051] Determine the sorting type of the express items to be sorted according to the flow information of the express items to be sorted;

[0052] Allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, and obtain the corresponding information of express parcels to be sorted and mixed sorting slots;

[0053] The sorting grid information of the sorting equipment is obtained, and the sorting grids are matched with the express items to be sorted according to the sorting grid information and corresponding information to obtain the sorting plan.

[0054] The above-mentioned sorting scheme generation method, device, computer equipment and storage medium do not blindly and directly allocate. First, the sorting type of the express parcels to be sorted is determined according to the flow information of the express parcels to be sorted. The sorting types include direct sorting and mixed sorting. Then, the express parcels to be sorted with the sorting type of mixed sorting are allocated to the mixed sorting grids to obtain the corresponding information of the express parcels to be sorted-mixed sorting grids, and finally, the sorting grid information of the sorting equipment is obtained. According to the sorting grid information and the corresponding information, the express parcels to be sorted are matched with the sorting grids to obtain the sorting scheme. In the whole process, the express parcels to be sorted are first classified, the mixed express parcels to be sorted are determined, and then the mixed sorting grids are allocated to the express parcels to be sorted with the sorting type of mixed sorting. Finally, the sorting grids are matched for all the express parcels to be sorted according to the sorting grid information. This step-by-step decomposition and allocation method shortens the allocation and solution time of express parcels and sorting machine grids, which can significantly improve the sorting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 An application environment diagram of a sorting scheme generating method in one embodiment;

[0056] Figure 2 It is a flowchart of a method for generating a sorting scheme in one embodiment;

[0057] Figure 3 is a schematic diagram of a method for generating a sorting scheme in one embodiment;

[0058] Figure 4 It is a flowchart of a method for generating a sorting scheme in another embodiment;

[0059] Figure 5 is a schematic diagram of a method for generating a sorting scheme in one embodiment;

[0060] Figure 6 It is a structural block diagram of a sorting scheme generating device in one embodiment;

[0061] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0063] The sorting scheme generation method provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The server 104 obtains the flow direction information of the express to be sorted, and determines the sorting type of the express to be sorted according to the flow direction information of the express to be sorted. The sorting type includes direct sorting and mixed sorting. The express to be sorted with the sorting type of mixed sorting is allocated to the mixed sorting grid, and the corresponding information of the express to be sorted-mixed sorting grid is obtained. The sorting grid information of the sorting equipment is obtained, and the sorting grid is matched for the express to be sorted according to the sorting grid information and the corresponding information, and the sorting grid is matched to obtain the sorting plan, and the sorting plan is pushed to the terminal 102. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0064] In one embodiment, Figure 2 As shown, a sorting scheme generation method is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0065] Step 202, obtaining flow information of the express items to be sorted.

[0066] Among them, express parcels to be sorted refer to express parcels waiting to be sorted. Flow information refers to the flow direction information of express parcels, that is, the destination to be delivered to.

[0067] Specifically, the server will first obtain the parcel information of the parcel to be sorted, and then extract the flow information from the parcel information of the parcel to be sorted. For example, the parcel information of the parcel to be sorted can be specifically entered by the user into a preset database of the server. Furthermore, the entry method can be scanning the shipping code of the parcel to be sorted.

[0068] Step 204, determining the sorting type of the express items to be sorted according to the flow direction information of the express items to be sorted.

[0069] Among them, the sorting types include direct sorting and mixed sorting. Direct sorting means directly allocating the parcels to be sorted to the grid, and mixed sorting means first mixing some of the parcels to be sorted together, and then allocating the mixed parcels to the grid. The sorting types of parcels to be sorted with the same flow direction are the same, that is, the sorting types of parcels to be sorted with the same flow direction are all direct sorting or all mixed sorting.

[0070] Specifically, the server can determine the number of slots required for each flow direction based on the flow direction information of the express items to be sorted, and then optimize the allocation of the number of slots based on the number of slots required for each flow direction to determine the sorting type of the express items to be sorted. Among them, the method of optimizing the allocation of the number of slots based on the number of slots required for each flow direction can be: optimizing the allocation of the number of slots by integer programming based on the number of slots required for each flow direction. For example, optimizing the allocation of the number of slots based on the number of slots required for each flow direction includes: determining the optimization target of the number of slots based on the number of slots required for each flow direction, and setting the decision variables for the allocation of the number of slots and the constraints for the allocation of the number of slots, obtaining the objective function for the allocation of the number of slots based on the optimization target of the number of slots and the decision variables for the allocation of the number of slots, performing integer programming based on the decision variables for the allocation of the number of slots, the objective function for the allocation of the number of slots and the constraints for the allocation of the number of slots, and determining the sorting type of the express items to be sorted.

[0071] Step 206, allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, and obtain corresponding information of express parcels to be sorted and mixed sorting slots.

[0072] Among them, allocating mixed-sorting grids refers to allocating mixed-sorting grids to express parcels to be sorted with mixed sorting types, that is, determining which express parcels to be sorted with mixed sorting types need to be allocated in one mixed-sorting grid. The correspondence information between express parcels to be sorted and mixed-sorting grids refers to the correspondence between express parcels to be sorted with mixed sorting types and mixed-sorting grids. For example, one mixed-sorting grid may correspond to two express parcels to be sorted with mixed sorting types. For another example, one mixed-sorting grid may correspond to three express parcels to be sorted with mixed sorting types.

[0073] Specifically, the server will first obtain the express information of the express parcels to be sorted with the sorting type of mixed sorting, which includes flow direction information, timeliness information and departure time information, and obtain the mixed-sorting grid allocation decision variables according to the express information, and then obtain the mixed-sorting grid allocation constraints and the mixed-sorting grid allocation optimization objectives. According to the mixed-sorting grid allocation decision variables and the mixed-sorting grid allocation optimization objectives, the mixed-sorting grid allocation objective function is obtained. Finally, integer programming is performed according to the mixed-sorting grid allocation decision variables, the mixed-sorting grid allocation constraints and the mixed-sorting grid allocation objective function to obtain the corresponding information of the express parcels to be sorted-mixed grids.

[0074] Step 208, obtaining the sorting slot information of the sorting equipment, matching the sorting slots for the express items to be sorted according to the sorting slot information and the corresponding information, and obtaining a sorting plan.

[0075] Among them, the sorting equipment refers to the equipment used to sort express items, and the sorting equipment corresponds to multiple sorting grids. The sorting grid refers to the grid used to sort express items. The sorting grid information is used to characterize the properties of the sorting grid, including the sorting type and the grid number, etc., wherein the sorting type refers to the recommended sorting type determined according to the distance from the grid of the sorting equipment to the sorting cabinet, including direct sorting and mixed sorting. For example, because the distance from the sorting grid of the sorting equipment to the further subdivision equipment (i.e., the sorting cabinet) is different, some grids that are closer to the sorting are usually recommended to be allocated to mixed sorting first. Sorting grid skin refers to matching the express items to be sorted to the sorting grids on the sorting equipment to form a sorting plan.

[0076] Specifically, the server will obtain the sorting grid information of the sorting equipment, and determine the correspondence between the sorting type and the sorting grid according to the sorting grid information and the corresponding relationship, that is, what is the sorting type corresponding to each sorting grid, and then determine the dispatch mode of the express to be sorted. If the dispatch mode is the bulk mode, it is necessary to further distribute the express with close flow to form a sorting plan. If the dispatch mode is not the bulk mode, the sorting grids can be matched directly according to the correspondence between the sorting type and the sorting grid. Among them, the bulk mode refers to the mode of spreading out the goods, that is, the mode of dispatching the goods, and the express with close flow refers to the express with a close distance to the dispatch destination. For example, the express with close flow can specifically refer to the express with a dispatch destination within a preset distance threshold, and the preset distance threshold can be set as needed.

[0077] The above-mentioned sorting scheme generation method does not blindly and directly allocate. First, the sorting type of the express parcels to be sorted is determined according to the flow information of the express parcels to be sorted. The sorting types include direct sorting and mixed sorting. Then, the express parcels to be sorted with the sorting type of mixed sorting are allocated to the mixed sorting grids to obtain the corresponding information of the express parcels to be sorted and the mixed sorting grids. Finally, the sorting grid information of the sorting equipment is obtained. According to the sorting grid information and the corresponding information, the express parcels to be sorted are matched with the sorting grids to obtain the sorting scheme. In the whole process, the express parcels to be sorted are first classified, the mixed express parcels to be sorted are determined, and then the mixed sorting grids are allocated to the express parcels to be sorted with the sorting type of mixed sorting. Finally, the sorting grids are matched for all the express parcels to be sorted according to the sorting grid information. This step-by-step decomposition and allocation method shortens the allocation and solution time of express parcels and sorting machine grids, which can significantly improve the sorting efficiency.

[0078] In one embodiment, determining the sorting type of the express mail to be sorted according to the flow direction information of the express mail to be sorted includes:

[0079] Determine the number of slots required for each flow direction based on the flow direction information of the express items to be sorted;

[0080] Determine the optimization target of the number of slots according to the number of slots required for each flow direction, and obtain the sorting type identification and the slot number allocation constraint conditions;

[0081] The sorting type identification, the number of flow direction slots, the number of mixed slots in each flow direction, and the average deviation of the number of slots are used as the decision variables for the allocation of the number of slots;

[0082] According to the decision variables for the number of slots allocated and the optimization target for the number of slots, the objective function for the number of slots allocated is obtained;

[0083] Integer programming is performed according to the decision variables, objective function and constraints of slot number allocation to determine the number of straight slots, the number of mixed slots and the sorting type of express parcels to be sorted.

[0084] Among them, the optimization goal of the number of slots is to make the number of slots allocated to each flow direction meet its estimated required number as much as possible. If there is a situation of dissatisfaction, the distribution of the unsatisfied flow direction is as balanced as possible, and the number of pieces corresponding to the unsatisfied flow direction is as small as possible. The sorting type identifier is used to distinguish between direct sorting and mixed sorting. For example, the sorting type identifier can be a 0-1 variable. If the flow direction is direct sorting, it is 1, and if it is mixed sorting, it is 0. The slot number allocation constraint is used to constrain the slot number allocation. For example, the constraint condition can be specifically: 1) The number of slots in the mixed sorting flow direction is 1, and the number of slots in the direct sorting flow direction does not exceed the estimated required number; 2) The total number of direct sorting slots and mixed sorting slots does not exceed the total number of slots in the sorting equipment; 3) The number of mixed sorting slots for various flow directions does not exceed the number of sorting cabinets of the corresponding type; 4) The maximum flow direction covered by the direct sorting slots and mixed sorting slots is not less than the total number of express delivery directions; 5) The average deviation of the difference between the actual number of allocated slots and the required number of each flow direction is less than the preset average deviation threshold.

[0085] Among them, the number of flow direction slots is used to characterize the number of slots assigned to the flow direction, which is an integer variable. The number of slots for express parcels to be sorted with mixed flow is 1, and the number of slots for express parcels to be sorted with straight flow is an integer greater than or equal to 1. The number of mixed slots for each flow direction is an integer variable, corresponding to each type of sorting cabinet. The sorting cabinet is a further subdivision device corresponding to the sorting slots of the sorting equipment. The average deviation of the number of slots refers to the average deviation of the difference between the actual number of allocated slots and the required number for each flow direction. The optimization target of the number of slots is used to evaluate the optimization of the number of slots. For example, the optimization target of the number of slots can be: 1) Make the timeliness of the flow in each slot as uniform as possible; 2) Make the departure time of the flow in each slot as uniform as possible; 3) Make the total number of pieces of the flow in each slot as balanced as possible.

[0086] Specifically, the server will first count the number of grids required for each flow direction according to the flow direction information of the express parcels to be sorted, and then determine the optimization target of the number of grids according to the number of grids required for each flow direction, and obtain the sorting type identification and the grid number allocation constraints. Then, the sorting type identification, the number of flow grids, the number of mixed grids for each flow direction and the average deviation of the number of grids are used as the grid number allocation decision variables. According to the grid number allocation decision variables and the grid number optimization target, the grid number allocation objective function is obtained. Finally, integer programming is performed according to the grid number allocation decision variables, the grid number allocation objective function and the grid number allocation constraints to determine the number of straight grids, the number of mixed grids and the sorting type of the express parcels to be sorted.

[0087] In this embodiment, integer programming is used to allocate the number of slots according to the flow information of the express mails to be sorted, so that the sorting type of the express mails to be sorted can be determined.

[0088] In one embodiment, according to the flow direction information of the express items to be sorted, determining the number of slots required for each flow direction includes:

[0089] Count the total number of express parcels to be sorted, and count the number of express parcels in each flow direction based on the flow information of the express parcels to be sorted;

[0090] Obtain the total number of sorting slots of the sorting equipment, and obtain the average number of pieces per sorting slot based on the total number of express parcels to be sorted and the total number of sorting slots;

[0091] According to the average number of pieces in the sorting grid and the number of express parcels in each flow direction, the number of grids required for each flow direction is obtained.

[0092] Specifically, the server will first count the total number of express parcels to be sorted, and based on the flow information of the express parcels to be sorted, count the number of parcels in each direction, and then obtain the total number of sorting grids of the sorting equipment, and calculate the average number of parcels in the sorting grids based on the total number of express parcels to be sorted and the total number of sorting grids. Finally, based on the average number of parcels in the sorting grids and the number of parcels in each direction, the number of grids required for each direction is obtained.

[0093] In this embodiment, the flow direction information of the express items to be sorted can be used to determine the number of slots required for each flow direction.

[0094] In one embodiment, mixed sorting slots are allocated to express parcels to be sorted whose sorting type is mixed sorting, and the corresponding information of express parcels to be sorted and mixed sorting slots is obtained, including:

[0095] Obtain the parcel information of the parcels to be sorted whose sorting type is mixed sorting, obtain the mixed sorting slot allocation decision variables according to the parcel information, and obtain the mixed sorting slot allocation constraint conditions and the mixed sorting slot allocation optimization target;

[0096] According to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objectives, the mixed-grid allocation objective function is obtained;

[0097] According to the decision variables, constraints and objective function of mixed-grid allocation, integer programming is performed to obtain the corresponding information of express parcels to be sorted and mixed-grid allocation.

[0098] Among them, express information includes timeliness information and departure time information. The mixed-grid allocation decision variables can be obtained based on the timeliness information and departure time information in the express information. For example, the mixed-grid decision variables can be specifically: 1) Allocation flag, 0-1 variable, representing whether a certain grid is assigned to a certain flow direction; 2) Grid timeliness flag: 0-1 variable, representing whether the flow direction in a certain grid contains a certain timeliness; 3) Grid departure time flag: 0-1 variable, representing whether the flow direction in a certain grid contains a certain departure time; 4) Auxiliary variable: continuous variable, representing the average deviation of the quantity of pieces between grids.

[0099] Among them, the mixed-grid allocation constraint is used to constrain the mixed-grid allocation. The mixed-grid allocation must meet the constraint. For example, the mixed-grid allocation constraint can be: 1) Each flow direction is exactly assigned to 1 grid; 2) The upper limit of the number of flows in each grid of the sorting cabinet is met; 3) The timeliness of each flow direction in the grid meets the preset timeliness constraint; 4) The departure time of each flow direction in the grid meets the preset departure time constraint; 5) The average deviation of the number of pieces between each grid is less than the preset average deviation threshold. The mixed-grid allocation optimization target is used to evaluate the mixed-grid allocation optimization. For example, the mixed-grid allocation optimization target can be: 1) Make the timeliness of the flow directions in each grid as uniform as possible; 2) Make the departure time of the flow directions in each grid as uniform as possible; 3) Make the total number of pieces in each grid as balanced as possible.

[0100] Specifically, the server will first obtain the express information of the express parcels to be sorted with the sorting type of mixed, including the timeliness information and the departure time information, obtain the mixed-grid allocation decision variables according to the express information, and obtain the mixed-grid allocation constraints and the mixed-grid allocation optimization objectives, and then obtain the mixed-grid allocation objective function according to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objectives, and finally perform integer programming according to the mixed-grid allocation decision variables, the mixed-grid allocation constraints and the mixed-grid allocation objective function to obtain the corresponding information of the express parcels to be sorted-mixed grids.

[0101] In this embodiment, integer programming is used to allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, so that the corresponding information of the express parcels to be sorted and the mixed sorting slots can be obtained.

[0102] In one embodiment, the sorting slot information of the sorting device is obtained, and the sorting slots are matched with the express items to be sorted according to the sorting slot information and the corresponding information, and the sorting scheme is obtained, including:

[0103] Obtain the sorting slot information of the sorting equipment, and obtain the corresponding relationship between the sorting type and the sorting slot according to the sorting slot information and the corresponding information;

[0104] When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow information of the express items to be sorted, and sorting grids are matched according to the corresponding relationship and the cluster optimization results to obtain the sorting plan;

[0105] When the dispatch mode of the express to be sorted is not the bulk mode, the sorting grids are matched according to the corresponding relationship to obtain a sorting plan.

[0106] Among them, the correspondence between sorting type and sorting grid is used to determine the sorting type of the sorting grid on the sorting equipment, and the sorting types include direct sorting and mixed sorting. The bulk cargo mode refers to the mode of spreading the goods, that is, the mode of dispatching the goods. Clustering optimization refers to clustering express parcels with similar flows. Express parcels with similar flows refer to express parcels with similar distances to the dispatch destinations. For example, express parcels with similar flows can specifically refer to express parcels with dispatch destinations within a preset distance threshold range. The preset distance threshold can be set as needed.

[0107] Specifically, the server will first obtain the sorting grid information of the sorting equipment, perform integer programming based on the sorting grid information and the corresponding information, obtain the corresponding relationship between sorting type and sorting grid, and then determine the dispatch mode of the express items to be sorted, and perform different processing according to different dispatch modes. When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed based on the flow information of the express items to be sorted, and express items with similar flows are clustered for adjacent distribution. The sorting grids are matched according to the corresponding relationship and the clustering optimization results to obtain the sorting plan. When the dispatch mode is not the bulk mode, the server will directly match the sorting grids according to the corresponding relationship to obtain the sorting plan. Furthermore, when the sorting grids are matched directly according to the corresponding relationship to obtain the sorting plan, the server will obtain the matching relationship between the delivery personnel and the sorting grids, determine the grid matching decision variables according to the corresponding relationship and the matching relationship between the delivery personnel and the sorting grids, and obtain the grid matching optimization target, determine the grid matching objective function according to the grid matching decision variables and the grid matching optimization target, perform integer programming according to the grid matching decision variables and the grid matching objective function, and obtain the sorting plan.

[0108] In this embodiment, by acquiring the sorting slot information of the sorting equipment, and matching the sorting slots of the express items to be sorted using integer programming according to the sorting slot information and corresponding information, a sorting plan can be obtained.

[0109] In one embodiment, the sorting slot information of the sorting device is obtained, and the corresponding relationship between the sorting type and the sorting slot is obtained according to the sorting slot information and the corresponding information, including:

[0110] Obtain the sorting slot information of the sorting equipment, and obtain the slot type matching decision variable according to the sorting slot information and corresponding information;

[0111] Obtaining the grid type matching optimization target, and obtaining the grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target;

[0112] Integer programming is performed according to the grid type matching decision variables and the grid type matching objective function to obtain the corresponding relationship between sorting type and sorting grid.

[0113] Among them, the slot type matching decision variable is used to characterize the sorting type of the sorting slot, which is a 0-1 variable. The slot type matching optimization target is used to optimize the slot type matching. For example, the slot type matching optimization target can be to make the sorting type of the express to be sorted correspond to the sorting type of the sorting slot, that is, the number of mixed sorting and the number of straight sorting of the express to be sorted correspond to the number of sorting slots used for mixed sorting and the number of sorting slots used for straight sorting, respectively.

[0114] Specifically, the server will first obtain the sorting grid information of the sorting equipment, obtain the grid type matching decision variables according to the sorting grid information and the corresponding information, and then obtain the grid type matching optimization target, and obtain the grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target. Finally, integer programming is performed according to the grid type matching decision variables and the grid type matching objective function to obtain the correspondence between the sorting type and the sorting grid.

[0115] In this embodiment, by acquiring the sorting slot information of the sorting device and performing integer programming according to the sorting slot information and corresponding information, the corresponding relationship between the sorting type and the sorting slot can be obtained.

[0116] In one embodiment, when the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow information of the express items to be sorted, and sorting grid matching is performed according to the corresponding relationship and the cluster optimization result, and the sorting scheme includes:

[0117] When the dispatch mode of the express items to be sorted is the bulk mode, the clustering relationship between the express items to be sorted whose sorting type is direct sorting is determined according to the flow direction information of the express items to be sorted;

[0118] Determine the order of sorting slots for express parcels to be sorted with direct sorting according to the clustering relationship, and obtain the matching relationship between the delivery personnel and the sorting slots;

[0119] According to the corresponding relationship, the order of slot matching, and the matching relationship between the delivery personnel and the sorting slots, the slot matching decision variables are determined, and the slot matching optimization target is obtained;

[0120] According to the grid matching decision variables and the grid matching optimization objectives, the grid matching objective function is determined;

[0121] Integer programming is performed based on the grid matching decision variables and the grid matching objective function to obtain the sorting solution.

[0122] Among them, the clustering relationship between express parcels to be sorted with the sorting type of direct sorting refers to clustering express parcels with similar distances to the dispatch destinations into one category. For example, express parcels with close flow directions can specifically refer to express parcels with dispatch destinations within a preset distance threshold, and the preset distance threshold can be set as needed. For example, similarity calculation can be performed on the dispatch destinations of express parcels to be sorted with the sorting type of direct sorting to achieve clustering. The grid matching order refers to the order in which the express parcels to be sorted with the sorting type of direct sorting are matched with the sorting grids of the sorting equipment. Specifically, express parcels to be sorted with the same clustering relationship will be allocated to adjacent grids. Furthermore, if the sorting grids of the sorting equipment are interspersed with direct sorting grids and mixed sorting grids, the server will skip the mixed sorting grids when matching the grids of the express parcels to be sorted with the sorting type of direct sorting with the same clustering relationship.

[0123] Among them, the matching relationship between the delivery personnel and the sorting grid refers to the corresponding relationship between the delivery personnel and the sorting grid, and each sorting grid has a corresponding delivery personnel. The grid matching decision variable is used to characterize the grid matching. For example, the grid matching decision variable can be the average dispatch quantity of the delivery personnel, which can be obtained by matching the express items to be sorted with the sorting grid. The grid matching optimization target is used to optimize the grid matching. For example, the grid matching optimization target can be that the total quantity of items dispatched by each delivery personnel is as balanced as possible, that is, regional balance. At this time, the grid matching objective function can be the deviation value between the actual quantity of items dispatched by each delivery personnel and the average quantity of items. Among them, the average quantity can be obtained by the total quantity of express items to be sorted and the total number of delivery personnel.

[0124] Specifically, when the dispatch mode of the express parcels to be sorted is the bulk mode, the server will first determine the clustering relationship between the express parcels to be sorted with the sorting type of direct sorting according to the flow information of the express parcels to be sorted, and cluster the express parcels with similar distances to the dispatch destinations into one category through the similarity algorithm, and then determine the grid matching order of the express parcels to be sorted with the sorting type of direct sorting according to the clustering relationship, and assign the express parcels to be sorted with the sorting type of direct sorting with the same clustering relationship adjacent to each other, and obtain the matching relationship between the delivery personnel and the sorting grids, and then determine the grid matching decision variables according to the corresponding relationship, the grid matching order, and the matching relationship between the delivery personnel and the sorting grids, and obtain the grid matching optimization target, and finally determine the grid matching objective function according to the grid matching decision variables and the grid matching optimization target, and perform integer programming according to the grid matching decision variables and the grid matching objective function to obtain the sorting plan.

[0125] For example, Figure 3 As shown, the server will first obtain the sorting grid information of the sorting equipment, and in the case of optimizing the sorting grid that gives priority to supporting mixed sorting, obtain the corresponding relationship between the sorting type and the sorting grid according to the sorting grid information and the corresponding information, and then determine whether the dispatching mode of the express to be sorted is the bulk mode. When the dispatching mode of the express to be sorted is the bulk mode, cluster optimization is performed according to the flow information of the express to be sorted, and the sorting grids are matched according to the corresponding relationship and the clustering optimization results (that is, the regional balance of manpower dispatch is optimized) to obtain the sorting plan. When the dispatching mode of the express to be sorted is not the bulk mode, the sorting grids are matched according to the corresponding relationship (that is, the regional balance of manpower dispatch is optimized) to obtain the sorting plan.

[0126] In this embodiment, when the dispatch mode of the express items to be sorted is the bulk mode, clustering optimization is performed according to the flow information of the express items to be sorted, and sorting grid matching is performed using integer programming according to the corresponding relationship and the clustering optimization results, so that a sorting plan can be obtained.

[0127] like Figure 4 As shown, an embodiment is provided to illustrate the sorting scheme generating method of the present application, and the sorting scheme generating method comprises the following steps:

[0128] Step 402, obtaining flow information of the express items to be sorted;

[0129] Step 404, counting the total number of express parcels to be sorted, and counting the number of express parcels in each flow direction according to the flow direction information of the express parcels to be sorted;

[0130] Step 406, obtaining the total number of sorting slots of the sorting equipment, and obtaining the average number of pieces per sorting slot according to the total number of express pieces to be sorted and the total number of sorting slots;

[0131] Step 408, according to the average number of pieces in the sorting slots and the number of express parcels in each flow direction, the number of slots required for each flow direction is obtained;

[0132] Step 410, determining the optimization target of the number of slots according to the number of slots required for each flow direction, and obtaining the sorting type identifier and the slot number allocation constraint conditions;

[0133] Step 412, taking the sorting type identifier, the number of flow direction slots, the number of mixed slots in each flow direction, and the average deviation of the number of slots as slot number allocation decision variables;

[0134] Step 414, obtaining a slot number allocation objective function according to the slot number allocation decision variables and the slot number optimization target;

[0135] Step 416, performing integer programming according to the slot number allocation decision variables, the slot number allocation objective function and the slot number allocation constraint conditions, to determine the number of straight slots, the number of mixed slots and the sorting type of the express items to be sorted;

[0136] Step 418, obtaining the parcel information of the parcels to be sorted whose sorting type is mixed sorting, obtaining the mixed sorting slot allocation decision variables according to the parcel information, and obtaining the mixed sorting slot allocation constraint conditions and the mixed sorting slot allocation optimization target;

[0137] Step 420, obtaining a mixed-grid allocation objective function according to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objective;

[0138] Step 422, performing integer programming according to the mixed-grid allocation decision variables, the mixed-grid allocation constraint conditions and the mixed-grid allocation objective function, to obtain the corresponding information of the express items to be sorted and the mixed-grid allocation;

[0139] Step 424, obtaining the sorting slot information of the sorting device, and obtaining the slot type matching decision variable according to the sorting slot information and the corresponding information;

[0140] Step 426, obtaining the grid type matching optimization target, and obtaining the grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target;

[0141] Step 428, perform integer programming according to the slot type matching decision variable and the slot type matching objective function to obtain the corresponding relationship between the sorting type and the sorting slot, and determine whether the dispatch mode of the express items to be sorted is the bulk mode. If the determination result is yes, jump to step 430, and if the determination result is no, jump to step 440;

[0142] Step 430, when the dispatch mode of the express mails to be sorted is the bulk mode, the clustering relationship between the express mails to be sorted whose sorting type is direct sorting is determined according to the flow direction information of the express mails to be sorted;

[0143] Step 432, determining the order of the slots to be sorted for the express parcels whose sorting type is direct sorting according to the clustering relationship, and obtaining the matching relationship between the delivery personnel and the sorting slots;

[0144] Step 434, determining the slot matching decision variables and obtaining the slot matching optimization target according to the corresponding relationship, the slot matching order, and the matching relationship between the delivery personnel and the sorting slots;

[0145] Step 436, determining a grid matching objective function according to the grid matching decision variables and the grid matching optimization goal;

[0146] Step 438, performing integer programming according to the grid matching decision variables and the grid matching objective function to obtain a sorting solution;

[0147] Step 440: When the dispatch mode of the express to be sorted is not the bulk mode, sorting grids are matched according to the corresponding relationship to obtain a sorting plan.

[0148] In one embodiment, Figure 5 As shown, an application scenario of the sorting scheme generation method of the present application is provided, and the application of the sorting scheme generation method of the present application in the application scenario is as follows:

[0149] The server obtains the flow information of the express items to be sorted, and first performs data analysis based on the flow information of the express items to be sorted, estimates the number of grids required for each flow direction, allocates the number of straight sorting / mixed sorting grids based on the number of grids required for each flow direction, and determines the sorting type of the express items to be sorted. The sorting types include straight sorting and mixed sorting. When there are express items to be sorted with mixed sorting as the sorting type, the mixed sorting grids are allocated to the express items to be sorted with the sorting type of mixed sorting, and the corresponding information of the express items to be sorted-mixed sorting grids is obtained, and the sorting grid information of the sorting equipment is obtained. According to the sorting grid information and the corresponding information, the sorting grids are matched for the express items to be sorted (that is, the actual grid code matches) to obtain the sorting plan.

[0150] It should be understood that although Figure 2 and Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 and Figure 4 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0151] In one embodiment, Figure 6 As shown, a sorting scheme generating device is provided, comprising: an acquisition module 602, a sorting type processing module 604, a mixed sorting slot allocation module 606 and a sorting slot matching module 608, wherein:

[0152] The acquisition module 602 is used to acquire the flow direction information of the express items to be sorted;

[0153] A sorting type processing module 604 is used to determine the sorting type of the express mail to be sorted according to the flow direction information of the express mail to be sorted;

[0154] The mixed sorting slot allocation module 606 is used to allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, and obtain the corresponding information of the express parcels to be sorted and the mixed sorting slots;

[0155] The sorting slot matching module 608 is used to obtain the sorting slot information of the sorting equipment, and match the sorting slots for the express items to be sorted according to the sorting slot information and the corresponding information to obtain a sorting plan.

[0156] The above-mentioned sorting scheme generating device does not directly allocate blindly. First, the sorting type of the express parcels to be sorted is determined according to the flow information of the express parcels to be sorted. The sorting types include direct sorting and mixed sorting. Then, the express parcels to be sorted with the sorting type of mixed sorting are allocated to the mixed sorting grids to obtain the corresponding information of the express parcels to be sorted-mixed sorting grids. Finally, the sorting grid information of the sorting equipment is obtained. According to the sorting grid information and the corresponding information, the express parcels to be sorted are matched with the sorting grids to obtain the sorting scheme. In the whole process, the express parcels to be sorted are first classified, the mixed express parcels to be sorted are determined, and then the mixed sorting grids are allocated to the express parcels to be sorted with the sorting type of mixed sorting. Finally, the sorting grids are matched for all the express parcels to be sorted according to the sorting grid information. This step-by-step decomposition and allocation method shortens the allocation and solution time of express parcels and sorting machine grids, which can significantly improve the sorting efficiency.

[0157] In one embodiment, the sorting type processing module is also used to determine the number of grids required for each flow direction according to the flow direction information of the express parcels to be sorted, determine the grid number optimization target according to the number of grids required for each flow direction, and obtain the sorting type identification and grid number allocation constraints, and use the sorting type identification, the number of flow grids, the number of mixed grids for each flow direction, and the average deviation of the number of grids as grid number allocation decision variables, and obtain the grid number allocation objective function according to the grid number allocation decision variables and the grid number optimization target, and perform integer programming according to the grid number allocation decision variables, the grid number allocation objective function, and the grid number allocation constraints to determine the number of straight grids, the number of mixed grids, and the sorting type of the express parcels to be sorted.

[0158] In one embodiment, the sorting type processing module is also used to count the total number of express parcels to be sorted, and based on the flow direction information of the express parcels to be sorted, count the number of express parcels in each flow direction, obtain the total number of sorting grids of the sorting equipment, and obtain the average number of pieces in the sorting grids based on the total number of express parcels to be sorted and the total number of sorting grids. Based on the average number of pieces in the sorting grids and the number of express parcels in each flow direction, the number of grids required for each flow direction is obtained.

[0159] In one embodiment, the mixed-grid allocation module is also used to obtain express information of express parcels to be sorted whose sorting type is mixed, obtain mixed-grid allocation decision variables based on the express information, and obtain mixed-grid allocation constraints and mixed-grid allocation optimization targets, obtain mixed-grid allocation objective function based on the mixed-grid allocation decision variables and the mixed-grid allocation optimization targets, perform integer programming based on the mixed-grid allocation decision variables, mixed-grid allocation constraints and mixed-grid allocation objective function, and obtain corresponding information of express parcels to be sorted-mixed grids.

[0160] In one embodiment, the sorting grid matching module is also used to obtain the sorting grid information of the sorting equipment, and obtain the correspondence between the sorting type and the sorting grid according to the sorting grid information and the corresponding information. When the dispatch mode of the express to be sorted is the bulk mode, clustering optimization is performed according to the flow direction information of the express to be sorted, and the sorting grids are matched according to the corresponding relationship and the clustering optimization results to obtain a sorting plan. When the dispatch mode of the express to be sorted is not the bulk mode, the sorting grids are matched according to the corresponding relationship to obtain a sorting plan.

[0161] In one embodiment, the sorting grid matching module is also used to obtain the sorting grid information of the sorting equipment, obtain the grid type matching decision variables according to the sorting grid information and the corresponding information, obtain the grid type matching optimization target, obtain the grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target, perform integer programming according to the grid type matching decision variables and the grid type matching objective function, and obtain the correspondence between the sorting type and the sorting grid.

[0162] In one embodiment, the sorting grid matching module is also used to determine the clustering relationship between the express parcels to be sorted whose sorting type is direct sorting according to the flow direction information of the express parcels to be sorted, when the dispatch mode of the express parcels to be sorted is the bulk mode, determine the grid matching order of the express parcels to be sorted whose sorting type is direct sorting according to the clustering relationship, and obtain the matching relationship between the delivery personnel and the sorting grids, determine the grid matching decision variables according to the corresponding relationship, the grid matching order and the matching relationship between the delivery personnel and the sorting grids, and obtain the grid matching optimization target, determine the grid matching objective function according to the grid matching decision variables and the grid matching optimization target, perform integer programming according to the grid matching decision variables and the grid matching objective function, and obtain the sorting plan.

[0163] The specific definition of the sorting scheme generating device can be found in the definition of the sorting scheme generating method above, which will not be repeated here. Each module in the above-mentioned sorting scheme generating device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0164] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store flow information data of express items to be sorted. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a sorting scheme is implemented.

[0165] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0166] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0167] Obtain the flow information of the express items to be sorted;

[0168] Determine the sorting type of the express items to be sorted according to the flow information of the express items to be sorted;

[0169] Allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, and obtain the corresponding information of express parcels to be sorted and mixed sorting slots;

[0170] The sorting grid information of the sorting equipment is obtained, and the sorting grids are matched with the express items to be sorted according to the sorting grid information and corresponding information to obtain the sorting plan.

[0171] The computer device generating the above sorting scheme does not blindly and directly allocate. First, the sorting type of the express parcel to be sorted is determined according to the flow information of the express parcel to be sorted. The sorting types include direct sorting and mixed sorting. Then, the express parcel to be sorted with the sorting type of mixed sorting is allocated to the mixed sorting grid, and the corresponding information of the express parcel to be sorted-mixed sorting grid is obtained. Finally, the sorting grid information of the sorting device is obtained. According to the sorting grid information and the corresponding information, the express parcel to be sorted is matched with the sorting grid to obtain the sorting scheme. In the whole process, the express parcel to be sorted is first classified, the mixed express parcel to be sorted is determined, and then the mixed sorting grid is allocated to the express parcel to be sorted with the sorting type of mixed sorting. Finally, the sorting grid is matched for all the express parcels to be sorted according to the sorting grid information. This step-by-step decomposition and allocation method shortens the allocation and solution time of express parcels and sorting machine grids, which can significantly improve the sorting efficiency.

[0172] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0173] Determine the number of slots required for each flow direction based on the flow direction information of the express items to be sorted;

[0174] Determine the optimization target of the number of slots according to the number of slots required for each flow direction, and obtain the sorting type identification and the slot number allocation constraint conditions;

[0175] The sorting type identification, the number of flow direction slots, the number of mixed slots in each flow direction, and the average deviation of the number of slots are used as the decision variables for the allocation of the number of slots;

[0176] According to the decision variables for the number of slots allocated and the optimization target for the number of slots, the objective function for the number of slots allocated is obtained;

[0177] Integer programming is performed according to the decision variables, objective function and constraints of slot number allocation to determine the number of straight slots, the number of mixed slots and the sorting type of express parcels to be sorted.

[0178] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0179] Count the total number of express parcels to be sorted, and count the number of express parcels in each flow direction based on the flow information of the express parcels to be sorted;

[0180] Obtain the total number of sorting slots of the sorting equipment, and obtain the average number of pieces per sorting slot based on the total number of express parcels to be sorted and the total number of sorting slots;

[0181] According to the average number of pieces in the sorting grid and the number of express parcels in each flow direction, the number of grids required for each flow direction is obtained.

[0182] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0183] Obtain the parcel information of the parcels to be sorted whose sorting type is mixed sorting, obtain the mixed sorting slot allocation decision variables according to the parcel information, and obtain the mixed sorting slot allocation constraint conditions and the mixed sorting slot allocation optimization target;

[0184] According to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objectives, the mixed-grid allocation objective function is obtained;

[0185] According to the decision variables, constraints and objective function of mixed-grid allocation, integer programming is performed to obtain the corresponding information of express parcels to be sorted and mixed-grid allocation.

[0186] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0187] Obtain the sorting slot information of the sorting equipment, and obtain the corresponding relationship between the sorting type and the sorting slot according to the sorting slot information and the corresponding information;

[0188] When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow information of the express items to be sorted, and sorting grids are matched according to the corresponding relationship and the cluster optimization results to obtain the sorting plan;

[0189] When the dispatch mode of the express to be sorted is not the bulk mode, the sorting grids are matched according to the corresponding relationship to obtain a sorting plan.

[0190] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0191] Obtain the sorting slot information of the sorting equipment, and obtain the slot type matching decision variable according to the sorting slot information and corresponding information;

[0192] Obtaining the grid type matching optimization target, and obtaining the grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target;

[0193] Integer programming is performed according to the grid type matching decision variables and the grid type matching objective function to obtain the corresponding relationship between sorting type and sorting grid.

[0194] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0195] When the dispatch mode of the express items to be sorted is the bulk mode, the clustering relationship between the express items to be sorted whose sorting type is direct sorting is determined according to the flow direction information of the express items to be sorted;

[0196] Determine the order of sorting slots for express parcels to be sorted with direct sorting according to the clustering relationship, and obtain the matching relationship between the delivery personnel and the sorting slots;

[0197] According to the corresponding relationship, the order of slot matching, and the matching relationship between the delivery personnel and the sorting slots, the slot matching decision variables are determined, and the slot matching optimization target is obtained;

[0198] According to the grid matching decision variables and the grid matching optimization objectives, the grid matching objective function is determined;

[0199] Integer programming is performed based on the grid matching decision variables and the grid matching objective function to obtain the sorting solution.

[0200] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0201] Obtain the flow information of the express items to be sorted;

[0202] Determine the sorting type of the express items to be sorted according to the flow information of the express items to be sorted;

[0203] Allocate mixed sorting slots to the express parcels to be sorted whose sorting type is mixed sorting, and obtain the corresponding information of express parcels to be sorted and mixed sorting slots;

[0204] The sorting grid information of the sorting equipment is obtained, and the sorting grids are matched with the express items to be sorted according to the sorting grid information and corresponding information to obtain the sorting plan.

[0205] The above-mentioned sorting scheme generates a storage medium, and does not blindly and directly allocate. First, the sorting type of the express parcel to be sorted is determined according to the flow information of the express parcel to be sorted. The sorting types include direct sorting and mixed sorting. Then, the express parcel to be sorted with the sorting type of mixed sorting is allocated to the mixed sorting grid, and the corresponding information of the express parcel to be sorted-mixed sorting grid is obtained. Finally, the sorting grid information of the sorting equipment is obtained, and the express parcel to be sorted is matched with the sorting grid according to the sorting grid information and the corresponding information to obtain the sorting scheme. In the whole process, the express parcel to be sorted is first classified, and the mixed express parcel to be sorted is determined. Then, the mixed sorting grid is allocated to the express parcel to be sorted with the sorting type of mixed sorting. Finally, the sorting grid is matched for all the express parcels to be sorted according to the sorting grid information. This step-by-step decomposition and allocation method shortens the allocation and solution time of express parcels and sorting machine grids, which can significantly improve the sorting efficiency.

[0206] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0207] Determine the number of slots required for each flow direction based on the flow direction information of the express items to be sorted;

[0208] Determine the optimization target of the number of slots according to the number of slots required for each flow direction, and obtain the sorting type identification and the slot number allocation constraint conditions;

[0209] The sorting type identification, the number of flow direction slots, the number of mixed slots in each flow direction, and the average deviation of the number of slots are used as the decision variables for the allocation of the number of slots;

[0210] According to the decision variables for the number of slots allocated and the optimization target for the number of slots, the objective function for the number of slots allocated is obtained;

[0211] Integer programming is performed according to the decision variables, objective function and constraints of slot number allocation to determine the number of straight slots, the number of mixed slots and the sorting type of express parcels to be sorted.

[0212] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0213] Count the total number of express parcels to be sorted, and count the number of express parcels in each flow direction based on the flow information of the express parcels to be sorted;

[0214] Obtain the total number of sorting slots of the sorting equipment, and obtain the average number of pieces per sorting slot based on the total number of express parcels to be sorted and the total number of sorting slots;

[0215] According to the average number of pieces in the sorting grid and the number of express parcels in each flow direction, the number of grids required for each flow direction is obtained.

[0216] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0217] Obtain the parcel information of the parcels to be sorted whose sorting type is mixed sorting, obtain the mixed sorting slot allocation decision variables according to the parcel information, and obtain the mixed sorting slot allocation constraint conditions and the mixed sorting slot allocation optimization target;

[0218] According to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objectives, the mixed-grid allocation objective function is obtained;

[0219] According to the decision variables, constraints and objective function of mixed-grid allocation, integer programming is performed to obtain the corresponding information of express parcels to be sorted and mixed-grid allocation.

[0220] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0221] Obtain the sorting slot information of the sorting equipment, and obtain the corresponding relationship between the sorting type and the sorting slot according to the sorting slot information and the corresponding information;

[0222] When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow information of the express items to be sorted, and sorting grids are matched according to the corresponding relationship and the cluster optimization results to obtain the sorting plan;

[0223] When the dispatch mode of the express to be sorted is not the bulk mode, the sorting grids are matched according to the corresponding relationship to obtain a sorting plan.

[0224] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0225] Obtain the sorting slot information of the sorting equipment, and obtain the slot type matching decision variable according to the sorting slot information and corresponding information;

[0226] Obtaining the grid type matching optimization target, and obtaining the grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target;

[0227] Integer programming is performed according to the grid type matching decision variables and the grid type matching objective function to obtain the corresponding relationship between sorting type and sorting grid.

[0228] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0229] When the dispatch mode of the express items to be sorted is the bulk mode, the clustering relationship between the express items to be sorted whose sorting type is direct sorting is determined according to the flow direction information of the express items to be sorted;

[0230] Determine the order of sorting slots for express parcels to be sorted with direct sorting according to the clustering relationship, and obtain the matching relationship between the delivery personnel and the sorting slots;

[0231] According to the corresponding relationship, the order of slot matching, and the matching relationship between the delivery personnel and the sorting slots, the slot matching decision variables are determined, and the slot matching optimization target is obtained;

[0232] According to the grid matching decision variables and the grid matching optimization objectives, the grid matching objective function is determined;

[0233] Integer programming is performed based on the grid matching decision variables and the grid matching objective function to obtain the sorting solution.

[0234] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0235] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0236] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a sorting scheme, characterized in that: The method comprises: Obtain the flow information of the express items to be sorted; Counting the total quantity of express parcels to be sorted, and counting the quantity of express parcels in each flow direction according to the flow direction information of the express parcels to be sorted; The total number of sorting slots of the sorting equipment is obtained, and the average number of pieces per sorting slot is obtained according to the total number of express pieces to be sorted and the total number of sorting slots; According to the average number of pieces in the sorting slots and the number of express parcels in each flow direction, the number of slots required for each flow direction is obtained; Determine the optimization target of the number of slots according to the number of slots required for each flow direction, and obtain the sorting type identifier and the slot number allocation constraint; the sorting type identifier is used to distinguish between straight sorting and mixed sorting; The sorting type identifier, the number of flow direction slots, the number of mixed slots for each flow direction, and the average deviation of the number of slots are used as slot number allocation decision variables; the number of flow direction slots is used to characterize the number of slots assigned to the flow direction; the number of mixed slots for each flow direction is an integer variable corresponding to each type of sorting cabinet; the average deviation of the number of slots refers to the average deviation of the difference between the actual number of allocated slots for each flow direction and the number of slots required for each flow direction; Obtaining a grid number allocation objective function according to the grid number allocation decision variables and the grid number optimization target; Integer programming is performed according to the slot number allocation decision variables, the slot number allocation objective function and the slot number allocation constraint conditions to determine the number of straight slots, the number of mixed slots and the sorting type of express items to be sorted; Obtaining the express information of the express to be sorted whose sorting type is mixed sorting, obtaining the mixed sorting grid allocation decision variables according to the express information, and obtaining the mixed sorting grid allocation constraint conditions and the mixed sorting grid allocation optimization target; Obtaining a mixed-grid allocation objective function according to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objective; Integer programming is performed according to the mixed-grid allocation decision variables, the mixed-grid allocation constraint conditions and the mixed-grid allocation objective function to obtain corresponding information between express items to be sorted and mixed-grid allocations; The sorting slot information of the sorting equipment is obtained, and the sorting slots are matched for the express items to be sorted according to the sorting slot information and the corresponding information to obtain a sorting plan.

2. The method according to claim 1, characterized in that The obtaining of sorting slot information of the sorting device, matching the sorting slots of the express items to be sorted according to the sorting slot information and the corresponding information, and obtaining a sorting scheme includes: Acquire sorting slot information of a sorting device, and obtain a correspondence between a sorting type and a sorting slot according to the sorting slot information and the corresponding information; When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow direction information of the express items to be sorted, and sorting grid matching is performed according to the corresponding relationship and the cluster optimization result to obtain a sorting plan; When the dispatching mode of the express to be sorted is not the bulk mode, sorting grid matching is performed according to the corresponding relationship to obtain a sorting plan.

3. The method according to claim 2, characterized in that The acquiring of the sorting slot information of the sorting device and obtaining the correspondence relationship between the sorting type and the sorting slot according to the sorting slot information and the corresponding information include: Acquire sorting slot information of a sorting device, and obtain slot type matching decision variables according to the sorting slot information and the corresponding information; Obtaining a grid type matching optimization target, and obtaining a grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target; Integer programming is performed according to the grid type matching decision variables and the grid type matching objective function to obtain a corresponding relationship between sorting type and sorting grid.

4. The method according to claim 2, characterized in that: When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow direction information of the express items to be sorted, and sorting grid matching is performed according to the corresponding relationship and the cluster optimization result, and the sorting scheme includes: When the dispatch mode of the express items to be sorted is the bulk mode, determining the clustering relationship between the express items to be sorted whose sorting type is direct sorting according to the flow direction information of the express items to be sorted; Determine the grid matching order of the express parcels to be sorted whose sorting type is direct sorting according to the clustering relationship, and obtain the matching relationship between the delivery personnel and the sorting grid; According to the corresponding relationship, the slot matching order, and the matching relationship between the delivery personnel and the sorting slots, the slot matching decision variables are determined, and the slot matching optimization target is obtained; Determining a grid matching objective function according to the grid matching decision variables and the grid matching optimization goal; Integer programming is performed according to the grid matching decision variables and the grid matching objective function to obtain a sorting solution.

5. A sorting scheme generating device, characterized in that: The device comprises: The acquisition module is used to obtain the flow information of the express items to be sorted; A sorting type processing module is used to count the total number of express parcels to be sorted, and count the number of express parcels in each flow direction according to the flow direction information of the express parcels to be sorted; The total number of sorting slots of the sorting equipment is obtained, and the average number of pieces per sorting slot is obtained according to the total number of express pieces to be sorted and the total number of sorting slots; According to the average number of pieces in the sorting slots and the number of express parcels in each flow direction, the number of slots required for each flow direction is obtained; Determine the optimization target of the number of slots according to the number of slots required for each flow direction, and obtain the sorting type identifier and the slot number allocation constraint; the sorting type identifier is used to distinguish between straight sorting and mixed sorting; The sorting type identifier, the number of flow direction slots, the number of mixed slots for each flow direction, and the average deviation of the number of slots are used as slot number allocation decision variables; the number of flow direction slots is used to characterize the number of slots assigned to the flow direction; the number of mixed slots for each flow direction is an integer variable corresponding to each type of sorting cabinet; the average deviation of the number of slots refers to the average deviation of the difference between the actual number of allocated slots for each flow direction and the number of slots required for each flow direction; Obtaining a grid number allocation objective function according to the grid number allocation decision variables and the grid number optimization target; Integer programming is performed according to the slot number allocation decision variables, the slot number allocation objective function and the slot number allocation constraint conditions to determine the number of straight slots, the number of mixed slots and the sorting type of express items to be sorted; A mixed-sorting slot allocation module is used to obtain the express information of the express parcels to be sorted whose sorting type is mixed sorting, obtain the mixed-sorting slot allocation decision variables according to the express information, and obtain the mixed-sorting slot allocation constraint conditions and the mixed-sorting slot allocation optimization target; Obtaining a mixed-grid allocation objective function according to the mixed-grid allocation decision variables and the mixed-grid allocation optimization objective; Integer programming is performed according to the mixed-grid allocation decision variables, the mixed-grid allocation constraint conditions and the mixed-grid allocation objective function to obtain corresponding information between express items to be sorted and mixed-grid allocations; The sorting slot matching module is used to obtain the sorting slot information of the sorting equipment, and to match the sorting slots of the express items to be sorted according to the sorting slot information and the corresponding information to obtain a sorting plan.

6. The device according to claim 5, characterized in that The sorting grid matching module is also used for: Acquire sorting slot information of a sorting device, and obtain a correspondence between a sorting type and a sorting slot according to the sorting slot information and the corresponding information; When the dispatch mode of the express items to be sorted is the bulk mode, cluster optimization is performed according to the flow direction information of the express items to be sorted, and sorting grid matching is performed according to the corresponding relationship and the cluster optimization result to obtain a sorting plan; When the dispatching mode of the express to be sorted is not the bulk mode, sorting grid matching is performed according to the corresponding relationship to obtain a sorting plan.

7. The device according to claim 6, characterized in that The sorting grid matching module is also used for: Acquire sorting slot information of a sorting device, and obtain slot type matching decision variables according to the sorting slot information and the corresponding information; Obtaining a grid type matching optimization target, and obtaining a grid type matching objective function according to the grid type matching decision variables and the grid type matching optimization target; Integer programming is performed according to the grid type matching decision variables and the grid type matching objective function to obtain a corresponding relationship between sorting type and sorting grid.

8. The device according to claim 6, characterized in that The sorting grid matching module is also used for: When the dispatch mode of the express items to be sorted is the bulk mode, determining the clustering relationship between the express items to be sorted whose sorting type is direct sorting according to the flow direction information of the express items to be sorted; Determine the grid matching order of the express parcels to be sorted whose sorting type is direct sorting according to the clustering relationship, and obtain the matching relationship between the delivery personnel and the sorting grid; According to the corresponding relationship, the slot matching order, and the matching relationship between the delivery personnel and the sorting slots, the slot matching decision variables are determined, and the slot matching optimization target is obtained; Determining a grid matching objective function according to the grid matching decision variables and the grid matching optimization goal; Integer programming is performed according to the grid matching decision variables and the grid matching objective function to obtain a sorting solution.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.