Method and device for generating tally tasks

By dividing the specification information of the boxes to be processed into multiple stages, and using pre-screening, pre-elimination and pre-addition models to optimize the selection of source boxes and destination boxes, the problem of low efficiency of tallying in the existing technology is solved and the material is realized. Empty as many bins as possible and take into account business requirements.

CN112016862BActive Publication Date: 2024-09-20BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910457796.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-29
Publication Date
2024-09-20
Estimated Expiration
2039-05-29

AI Technical Summary

Technical Problem

In the existing technology, manual experience is relied on to select the source box and the destination box when tallying. As a result, the material boxes cannot be emptied as much as possible, the tally efficiency is low, and the business requirements cannot be taken into account.

Method used

By generating tally tasks, the specification information of the bins to be handled is divided into multiple stages, and the pre-screening model is used to screen out the maximum number of source bins and destination bins, and tally simulation operations are performed until the bins are emptied; When it cannot be emptied, use the pre-removal model to determine the source boxes that need to be removed, adjust the filtering conditions, and re-screen; when there are too many remaining slots in the destination box, use the pre-replenishment model to determine the source boxes that need to be replenished and perform replenishment operations.

Benefits of technology

It realizes emptying as many bins as possible during each tally task, improves tally efficiency, and can better take into account business requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112016862B
    Figure CN112016862B
Patent Text Reader

Abstract

The present invention discloses a method and device for generating tally tasks, and relates to the technical field of warehousing and logistics. The method comprises: after receiving a tally request, dividing the process of generating the tally task into at least one stage according to the specification information of the material box to be sorted; screening out the source box and the destination box of the stage according to the pre-screening model; performing a tally simulation operation on the source box and the destination box of the stage; and generating the tally task of the stage according to the source box and the destination box of the stage when the result of the tally simulation operation shows that the source box can be emptied. Through the above steps, the optimal tally task can be automatically generated, so that as many material boxes as possible can be emptied each time the tally task is executed, thereby improving the tally efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of warehousing logistics, and in particular to a method and device for generating tallying tasks. Background Art

[0002] Stereoscopic warehouses (such as shuttle-type stereoscopic warehouses) usually use bins to store goods. In order to improve the efficiency of outbound delivery and ensure the dispersion of goods, the bin can be divided into multiple compartments to store different goods. For example, the entire bin can be used as one compartment, or the bin can be divided into two compartments, four compartments, and so on. Furthermore, bins of various specifications can be obtained, such as a 1-box 1-product bin, a 1-box 2-product bin, and a 1-box 4-product bin.

[0003] After a period of outbound processing, the goods in the material box will become very scattered. In order to improve the utilization rate of the material box and the efficiency of goods outbound, it is necessary to sort the goods in the material box. The sorting work is usually completed at the sorting workstation. The sorting workstation is equipped with a storage position for the source box and a storage position for the destination box. When sorting, it is first necessary to determine the number of source boxes and destination boxes for this tally, and then merge the goods in the source box into the destination box. At present, when sorting, the source box and the destination box are mainly selected based on manual experience.

[0004] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: when selecting source boxes and destination boxes based on manual experience during tallying, not only can it not be guaranteed that as many boxes as possible are emptied at one time, but the source boxes often cannot be emptied, resulting in low tallying efficiency. In addition, the boxes selected based on manual experience often cannot take into account business requirements. Summary of the invention

[0005] In view of this, the present invention provides a method and device for generating tallying tasks, which can automatically generate the optimal tallying tasks, so that as many material boxes as possible can be emptied each time the tallying tasks are executed, thereby improving the tallying efficiency.

[0006] To achieve the above objective, according to one aspect of the present invention, a method for generating tally tasks is provided.

[0007] The method for generating tallying tasks of the present invention comprises: after receiving a tallying request, dividing the process of generating the tallying task into at least one stage according to the specification information of the material boxes to be sorted; in each stage, taking all the material boxes to be sorted corresponding to the current stage as candidate source boxes, and taking the material boxes of the same specification among all the material boxes to be sorted corresponding to the current stage as candidate destination boxes; screening the source boxes of this stage from the candidate source boxes and screening the destination boxes of this stage from the candidate destination boxes according to a pre-screening model; wherein the objective function of the pre-screening model is: maximizing the number of source boxes screened for this stage while satisfying the screening constraint conditions; performing tallying simulation operations on the source boxes and destination boxes screened for this stage; and, when the result of the tallying simulation operation shows that the source boxes screened for this stage can be emptied, generating the tallying task for this stage according to the source boxes and destination boxes screened for this stage.

[0008] Optionally, the method further includes: when the result of the tallying simulation operation indicates that the source boxes of this stage screened out cannot be emptied, determining the source boxes that need to be eliminated according to the pre-elimination model; wherein the objective function of the pre-elimination model is: while satisfying the elimination constraints, minimizing the number of source boxes that need to be eliminated; then, adding constraints based on the source boxes that need to be eliminated to the pre-screening model, and then re-screening the source boxes and destination boxes of this stage according to the pre-screening model, and performing a tallying simulation operation on the re-screened source boxes and destination boxes of this stage until the tallying tasks of this stage are generated.

[0009] Optionally, the method further includes: before executing the step of generating the tallying task of this stage according to the screened source boxes and destination boxes of this stage, confirming through a tallying simulation operation that the number of remaining cargo spaces of the screened destination boxes of this stage after tallying is less than a preset threshold.

[0010] Optionally, the method further includes: when it is confirmed through a tallying simulation operation that the number of remaining cargo spaces of the destination boxes of this stage screened out after tallying is greater than or equal to a preset threshold, determining the set of source boxes that need to be supplemented at this stage according to a pre-supplementation model; wherein the objective function of the pre-supplementation model is: maximizing the number of source boxes that need to be supplemented while satisfying supplementation constraints; then, supplementing the source boxes of this stage according to the set of source boxes that need to be supplemented, and then performing a tallying simulation operation on all the supplemented source boxes and destination boxes until the tallying task of this stage is generated.

[0011] To achieve the above objective, according to another aspect of the present invention, a device for generating tally tasks is provided.

[0012] The device for generating tally tasks of the present invention comprises: a division module, which is used to divide the process of generating tally tasks into at least one stage according to the specification information of the material boxes to be sorted after receiving the tally request; in each stage, all the material boxes to be sorted corresponding to the current stage are used as candidate source boxes, and the material boxes belonging to the same specification among all the material boxes to be sorted corresponding to the current stage are used as candidate destination boxes; a screening module, which is used to screen out the source boxes of this stage from the candidate source boxes and screen out the destination boxes of this stage from the candidate destination boxes according to a pre-screening model; wherein the objective function of the pre-screening model is: to maximize the number of source boxes screened out for this stage under the condition of satisfying the screening constraint condition; a tally simulation module, which is used to perform tally simulation operation on the source boxes and destination boxes screened out for this stage; and a generation module, which is used to generate the tally task of this stage according to the source boxes and destination boxes screened out for this stage when the result of the tally simulation operation shows that the source boxes screened out for this stage can be emptied.

[0013] Optionally, the device also includes: a first determination module, which is used to determine the source boxes that need to be eliminated according to the pre-elimination model when the result of the tallying simulation operation shows that the source boxes of this stage screened out cannot be emptied; wherein the objective function of the pre-elimination model is: to minimize the number of source boxes that need to be eliminated while satisfying the elimination constraints; an iterative calling module, which is used to add constraints set based on the source boxes that need to be eliminated in the pre-screening model, and then call the screening module to re-screen the source boxes and destination boxes of this stage according to the pre-screening model, and then call the tallying simulation module to perform tallying simulation operations on the re-screened source boxes and destination boxes of this stage until the tallying tasks of this stage are generated.

[0014] Optionally, the tallying simulation module is also used to confirm through a tallying simulation operation that the number of remaining cargo spaces of the screened destination boxes for this stage after tallying is less than a preset threshold before the generation module executes the operation of generating the tallying task for this stage based on the screened source boxes and destination boxes for this stage.

[0015] Optionally, the device also includes: a second determination module, which is used to determine the set of source boxes that need to be supplemented in this stage according to the pre-supplementation model when it is confirmed through the tallying simulation operation that the number of remaining cargo spaces of the destination boxes of this stage after tallying is greater than or equal to a preset threshold; wherein the objective function of the pre-supplementation model is: to maximize the number of source boxes that need to be supplemented while satisfying the supplementation constraint conditions; the iterative calling module is also used to supplement the source boxes of this stage according to the set of source boxes that need to be supplemented, and then call the tallying simulation module to perform tallying simulation operations on all the supplemented source boxes and destination boxes until the tallying task of this stage is generated.

[0016] To achieve the above objective, according to another aspect of the present invention, an electronic device is provided.

[0017] The electronic device of the present invention comprises: one or more processors; and a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method of generating tally tasks of the present invention.

[0018] To achieve the above objective, according to yet another aspect of the present invention, a computer readable medium is provided.

[0019] The computer-readable medium of the present invention stores a computer program, which, when executed by a processor, implements the method for generating tally tasks of the present invention.

[0020] An embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, the process of generating a tallying task is divided into at least one stage according to the specification information of the material boxes to be sorted, the source boxes and the destination boxes of this stage are screened out according to the pre-screening model, a tallying simulation operation is performed on the source boxes and the destination boxes of this stage, and the tallying task of this stage is generated when the result of the tallying simulation operation shows that the source boxes can be emptied. These steps can automatically generate the optimal tallying task, so that as many material boxes as possible can be emptied each time the tallying task is executed, thereby improving the tallying efficiency.

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

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

[0023] Figure 1 is a schematic diagram of the main flow of a method for generating a tally task according to an embodiment of the present invention;

[0024] Figure 2 is a schematic diagram of the main flow of a method for generating a tally task according to another embodiment of the present invention;

[0025] Figure 3 is a schematic diagram of the main flow of a method for generating a tally task according to yet another embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of main modules of a device for generating tally tasks according to an embodiment of the present invention;

[0027] Figure 5 is a schematic diagram of main modules of a device for generating tally tasks according to another embodiment of the present invention;

[0028] Figure 6 is a schematic diagram of main modules of an apparatus for generating tally tasks according to yet another embodiment of the present invention;

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

[0030] Figure 8 It is a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present invention. DETAILED DESCRIPTION

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

[0032] It should be pointed out that the embodiments of the present invention and the features in the embodiments may be combined with each other if there is no conflict.

[0033] Figure 1 FIG. 1 is a schematic diagram of the main flow of a method for generating a tally task according to an embodiment of the present invention. Figure 1 As shown, the method for generating a tally task in an embodiment of the present invention includes:

[0034] Step S101: after receiving a tallying request, the process of generating a tallying task is divided into at least one stage according to the specification information of the material boxes to be sorted.

[0035] Among them, in each of the stages, all the boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes of the same specification among all the boxes to be sorted corresponding to the current stage are taken as candidate destination boxes. In an optional embodiment, in the process of generating the tallying task, the boxes to be sorted with a large number of cargo compartments and belonging to the same specification can be preferentially processed as candidate destination boxes. For example, assuming that there are three specifications of boxes to be sorted, namely, 1 box of 1 product box, 1 box of 2 products box and 1 box of 4 products box, the process of generating the tallying task can be divided into three stages. In the first stage, all the boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box and 4 items in all the boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the second stage, all the boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box and 2 items in all the boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the third stage, all the boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box and 1 item in all the boxes to be sorted corresponding to the current stage are taken as candidate destination boxes. In specific implementation, after dividing the process of generating tallying tasks into these three stages, one, two or three stages can be selected for execution according to actual needs.

[0036] Step S102: Filter out the source box of this stage from the candidate source boxes and filter out the destination box of this stage from the candidate destination boxes according to the pre-filtering model.

[0037] The objective function of the pre-screening model is to maximize the number of source boxes screened out at this stage while satisfying the screening constraints.

[0038] Step S103: Perform tallying simulation operation on the selected source boxes and destination boxes at this stage.

[0039] The tally simulation operation can be understood as a simulation operation of moving the goods in the source box to the destination box. In this step, the goods information stored in the source box and the available cargo compartment information in the destination box can be obtained first, and then the tally simulation operations such as "closing boxes" and / or "combining boxes" can be performed based on this information. "Closing boxes" means moving a type of goods in the source box to a cargo compartment in the destination box where the goods are already stored, and "combining boxes" means moving a type of goods in the source box to an empty cargo compartment in the destination box.

[0040] Step S104: when the tallying simulation operation result indicates that the source boxes of this stage selected can be emptied, a tallying task of this stage is generated according to the source boxes and destination boxes of this stage selected.

[0041] In an embodiment of the present invention, by dividing the process of generating a tallying task into multiple stages, and in each stage only taking the boxes of the same specification among all the boxes to be sorted in the current stage as candidate destination boxes, it helps to reduce the difficulty of subsequent modeling and solving and improve processing efficiency; by screening out the source boxes and destination boxes of each stage through a pre-screening model, and judging whether the screened source boxes can be emptied through a tallying simulation operation, etc., the optimal tallying task can be automatically generated, so that as many boxes as possible can be emptied each time a tallying task is executed, thereby improving the tallying efficiency.

[0042] Figure 2 FIG. 2 is a schematic diagram of the main flow of a method for generating tally tasks according to another embodiment of the present invention. Figure 2 As shown, the method for generating a tally task in an embodiment of the present invention includes:

[0043] Step S201: After receiving a tallying request, the process of generating a tallying task is divided into at least one stage according to the specification information of the material boxes to be sorted.

[0044] Among them, in each stage, all the boxes to be sorted corresponding to the current stage are used as candidate source boxes, and the boxes of the same specification among all the boxes to be sorted corresponding to the current stage are used as candidate destination boxes. In an optional implementation, in the process of generating tallying tasks, boxes to be sorted with a large number of cargo compartments and belonging to the same specification can be preferentially processed as candidate destination boxes.

[0045] For example, assuming that there are three specifications of boxes to be sorted, namely, 1 box for 1 item, 1 box for 2 items, and 1 box for 4 items, the process of generating tallying tasks can be divided into three stages. In the first stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box for 4 items among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the second stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box for 2 items among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the third stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box for 1 item among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes. In specific implementation, after dividing the process of generating tallying tasks into these three stages, one, two, or three stages can be selected for execution according to actual needs.

[0046] In an embodiment of the present invention, by dividing the process of generating a tallying task into multiple stages, and in each stage only taking the boxes of the same specification among all the boxes to be sorted corresponding to the current stage as candidate destination boxes, it helps to reduce the difficulty of subsequent modeling and solving and improve processing efficiency.

[0047] Step S202: Filter out the source box of this stage from the candidate source boxes and filter out the destination box of this stage from the candidate destination boxes according to the pre-filtering model.

[0048] The objective function of the pre-screening model is to maximize the number of source boxes screened out at this stage while satisfying the screening constraints.

[0049] In an optional example, the objective function of the pre-screening model can be expressed as:

[0050]

[0051] And, the screening constraints that the objective function needs to satisfy can be expressed as:

[0052] x j +y j ≤1(1)

[0053]

[0054]

[0055]

[0056]

[0057] Among them, x i =1 means that the material box i is selected as the source box from the candidate source box set P, x i = 0 means that bin i is not selected as the source bin, y j =1 means that the container j is selected as the destination container from the candidate destination container set Q, y j = 0 means that bin j is not selected as the destination bin, N s Indicates the upper limit of the number of source boxes selected at this stage, N d Indicates the upper limit of the number of destination boxes selected at this stage, g i represents the number of compartments required for the goods stored in bin i, b i represents the number of cargo spaces provided by bin j in set Q; screening constraint (1) indicates that any bin cannot be both a source bin and a destination bin; screening constraint (2) indicates that the number of source bins screened at this stage cannot exceed N s ; The screening constraint (3) indicates that the number of destination boxes screened in this stage cannot exceed N d ; The screening constraint (4) indicates that the number of cargo compartments required for all the goods in the source box and the destination box screened at this stage cannot exceed the total number of cargo compartments provided by the destination box screened at this stage.

[0058] Step S203: Perform tallying simulation operations on the selected source boxes and destination boxes at this stage.

[0059] The tally simulation operation can be understood as a simulation operation of moving the goods in the source box to the destination box. In this step, the goods information stored in the source box and the available cargo compartment information in the destination box can be obtained first, and then the tally simulation operations such as "closing boxes" and / or "combining boxes" can be performed based on this information. "Closing boxes" means moving a type of goods in the source box to a cargo compartment in the destination box where the goods are already stored, and "combining boxes" means moving a type of goods in the source box to an empty cargo compartment in the destination box.

[0060] Step S204: determine whether the tally simulation result indicates that the source box can be emptied. If not, execute step S205; if so, execute step S207.

[0061] Exemplarily, the tally simulation result may include: a list C of goods information that cannot be added to the destination box generated by the tally simulation operation. If the list C is empty, it means that the source box can be emptied; if the list C is not empty, it means that the source box cannot be emptied.

[0062] Step S205: Determine the source box to be rejected according to the pre-rejection model. After step S205, step S206 may be executed.

[0063] The objective function of the pre-rejection model is: to minimize the number of source boxes that need to be rejected while satisfying the rejection constraint conditions. In an optional example, the objective function of the pre-rejection model can be expressed as:

[0064]

[0065] And the elimination constraints that the objective function needs to satisfy can be expressed as:

[0066]

[0067]

[0068] Among them, x k = 1 means removing source box k from source box set S, x k = 0 means that source box k is not removed, q km represents the storage quantity of the mth item in list C in source box k, C m represents the excess quantity of the mth type of goods recorded in list C. Eliminating constraint condition (1) means that for any goods in list C, its storage quantity in the removed source boxes can cover the excess quantity in list C, that is, after removing these source boxes, the goods in the remaining source boxes can all be placed in the destination box.

[0069] Furthermore, by solving the above pre-elimination model, we can obtain the source box set R that needs to be eliminated. S .

[0070] Step S206: Adding constraint conditions based on the source boxes to be eliminated to the pre-screening model. After step S206, step S202 and step S203 are executed again until the tally task of this stage is generated.

[0071] Exemplarily, the constraint conditions set based on the source bins to be removed may include:

[0072]

[0073]

[0074]

[0075] Among them, S' represents the elimination of R S The source bin set after the element in |R S | indicates the source box set R that needs to be removed S The number of bins in the .

[0076] In an embodiment of the present invention, a tallying simulation operation is performed to determine whether the screened source boxes can be emptied. After determining that the screened source boxes cannot be emptied, the source boxes that need to be eliminated are determined through a pre-elimination model, and constraint conditions based on the source boxes that need to be eliminated are added to the pre-screening model. Then, the source boxes and destination boxes are screened again, so that the source boxes that are finally screened out in this stage are maximized and can be emptied, thereby facilitating the subsequent generation of the optimal tallying task.

[0077] Step S207: Generate a tally task for this stage according to the screened source boxes and destination boxes for this stage.

[0078] In the embodiment of the present invention, for each stage divided in step S201, the tally task of the stage can be generated through steps such as step S202 and step S203.

[0079] In the embodiment of the present invention, the optimal tallying task can be automatically generated through the above steps, so that as many material boxes as possible can be emptied each time the tallying task is executed, thereby improving the tallying efficiency.

[0080] Figure 3 FIG. 2 is a schematic diagram of the main flow of a method for generating a tally task according to another embodiment of the present invention. Figure 3 As shown, the method for generating a tally task in an embodiment of the present invention includes:

[0081] Step S301: After receiving a tallying request, the process of generating a tallying task is divided into at least one stage according to the specification information of the material boxes to be sorted.

[0082] Among them, in each stage, all the to-be-sorted material boxes corresponding to the current stage are taken as candidate source boxes, and the material boxes belonging to the same specification among all the to-be-sorted material boxes corresponding to the current stage are taken as candidate destination boxes.

[0083] For example, assuming that there are three specifications of boxes to be sorted, namely, 1 box for 1 item, 1 box for 2 items, and 1 box for 4 items, the process of generating tallying tasks can be divided into three stages. In the first stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box for 4 items among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the second stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box for 2 items among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the third stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box for 1 item among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes. In specific implementation, after dividing the process of generating tallying tasks into these three stages, one, two, or three stages can be selected for execution according to actual needs.

[0084] Step S302: Filter out the source box of this stage from the candidate source boxes according to the pre-filtering model, and filter out the destination box of this stage from the candidate destination boxes.

[0085] The objective function of the pre-screening model is to maximize the number of source boxes screened out at this stage while satisfying the screening constraints.

[0086] In an optional example, the objective function of the pre-screening model can be expressed as:

[0087]

[0088] And, the screening constraints that the objective function needs to satisfy can be expressed as:

[0089] x j +y j ≤1 (1)

[0090]

[0091]

[0092]

[0093]

[0094] Among them, x i =1 means that the material box i is selected as the source box from the candidate source box set P, x i = 0 means that bin i is not selected as the source bin, y j =1 means that the container j is selected as the destination container from the candidate destination container set Q, y j = 0 means that bin j is not selected as the destination bin, N s Indicates the upper limit of the number of source boxes selected at this stage, N d Indicates the upper limit of the number of destination boxes selected at this stage, g i represents the number of compartments required for the goods stored in bin i, b i represents the number of cargo spaces provided by bin j in set Q; screening constraint (1) indicates that any bin cannot be both a source bin and a destination bin; screening constraint (2) indicates that the number of source bins screened at this stage cannot exceed N s ; The screening constraint (3) indicates that the number of destination boxes screened in this stage cannot exceed N d ; The screening constraint (4) indicates that the number of cargo compartments required for all the goods in the source box and the destination box screened at this stage cannot exceed the total number of cargo compartments provided by the destination box screened at this stage.

[0095] Step S303: Perform tallying simulation operations on the selected source boxes and destination boxes at this stage.

[0096] The tally simulation operation can be understood as a simulation operation of moving the goods in the source box to the destination box. In this step, the goods information stored in the source box and the available cargo compartment information in the destination box can be obtained first, and then the tally simulation operations such as "closing boxes" and / or "combining boxes" can be performed based on this information. "Closing boxes" means moving a type of goods in the source box to a cargo compartment in the destination box where the goods are already stored, and "combining boxes" means moving a type of goods in the source box to an empty cargo compartment in the destination box.

[0097] In specific implementation, the goods that need to be "packed" or "combined" can be determined based on the minimum dispersed number of goods in the screened source boxes and destination boxes. For example, for each type of goods, the remaining number of copies in the warehouse (i.e., the storage volume of this type of goods in the warehouse excluding the source boxes and destination boxes) can be examined. If the remaining number of copies is greater than or equal to the minimum dispersed number of copies, this type of goods can be directly "packed". If the remaining number of copies is less than the minimum dispersed number of copies, this type of goods can be directly combined; if the remaining number of copies plus the number of copies of this type of goods in the destination box after the "packing" process is greater than or equal to the minimum dispersed number of copies, this type of goods can also be "packed".

[0098] In an optional example, when only the "box merging" tallying simulation operation is set to be performed, step S303 may include: a. Initializing the list C of goods information that cannot be added to the destination box, that is, setting C to be empty; b. Generating a list M based on the information of all goods stored in the source box, and generating a list N based on the cargo compartment information in the destination box; wherein the record of each type of goods in the list M includes the following information: goods identification (such as SKU code), goods batch number, goods storage quantity and cargo compartment position; c. For each type of goods in the source box, a suitable empty cargo compartment in the destination box can be directly found according to the volume of the goods. If the goods of this type can be fully moved to the destination box, the record of the goods can be deleted from the list M, and the cargo compartment storage information involved in this move can be updated in the list N; if the goods of this type can be intelligently partially moved to the destination box, the record of the goods can be deleted from the list M, and the cargo compartment storage information involved in this move can be updated in the list N, and the record of the goods can be added to the list C; wherein each record of the goods in the list C can include: goods identification (such as SKU code), goods batch number, and the remaining quantity of the goods.

[0099] In another optional example, when it is set to perform a "box consolidation" simulation operation and a "box combining" simulation operation for goods with quantity requirements, step S303 may specifically include: steps 1 to 4.

[0100] Step 1: Initialize the list C of goods information that cannot be added to the destination box, that is, set C to be empty.

[0101] Step 2: Generate list M based on the information of all goods stored in the source box, and generate list N based on the cargo compartment information in the destination box; wherein the record of each kind of goods in list M includes the following information: goods identification (such as SKU code), goods batch number, goods storage quantity and cargo compartment location.

[0102] Step 3: First, process the goods contained in both the source box and the destination box, specifically including: (1) For goods in the source box that can be directly packed, if the goods can be completely put into the cargo compartment of the destination box that already stores the same goods, the record of the goods can be deleted from list M, and the storage information of the cargo compartment involved in this move can be updated in list N; if the goods can only be partially put into the cargo compartment of the destination box that already stores the same goods, the record of the goods in list M can be updated, and the storage information of the cargo compartment involved in this move can be updated in list N; (2) For goods that require a dispersed number of copies, if the destination box already stores the same goods, the record of the goods in list M can be updated, and the storage information of the cargo compartment involved in this move can be updated in list N; If the number of compartments in the destination box that have stored the goods meets the minimum dispersion requirement, you can select the "merge boxes" operation, and delete or update the records of the goods in list M according to the specific situation of whether the goods can all be placed in the destination box, and update the storage information of the compartments involved in this move in list N; if the number of compartments in the destination box that have stored the goods does not meet the minimum dispersion requirement, you can select the "merge boxes" operation, and delete or update the records of the goods in list M according to the specific situation of whether the goods can all be placed in the destination box, and update the storage information of the compartments involved in this move in list N.

[0103] Step 4: For the remaining goods in list M, perform tallying simulation in order of volume from large to small, and select to delete or update the records of the goods in list M according to whether all the goods can be placed in the destination box, update the storage information of the cargo compartments involved in this move in list N, and add the records of the goods that cannot be placed in the destination box during this tallying simulation process in list C.

[0104] Step S304: determine whether the tally simulation result indicates that the source box can be emptied. If not, execute step S305; if so, execute step S307.

[0105] Exemplarily, the tally simulation result may include: a list C of goods information that cannot be added to the destination box generated by the tally simulation operation. If the list C is empty, it means that the source box can be emptied; if the list C is not empty, it means that the source box cannot be emptied.

[0106] Step S305: Determine the source box to be rejected according to the pre-rejection model. After step S305, step S306 may be executed.

[0107] The objective function of the pre-elimination model is to minimize the number of source bins to be eliminated while satisfying the elimination constraints. By solving the pre-elimination model, the source bin set R to be eliminated can be obtained. S .

[0108] Step S306: Adding constraint conditions based on the source boxes to be eliminated to the pre-screening model. After step S306, step S302 and step S303 are executed again until the tally task of this stage is generated.

[0109] In an embodiment of the present invention, a tallying simulation operation is performed to determine whether the screened source boxes can be emptied. After determining that the screened source boxes cannot be emptied, the source boxes that need to be eliminated are determined through a pre-elimination model, and constraint conditions based on the source boxes that need to be eliminated are added to the pre-screening model. Then, the source boxes and destination boxes are screened again, so that the source boxes that are finally screened out in this stage are maximized and can be emptied, thereby facilitating the subsequent generation of the optimal tallying task.

[0110] Step S307: determine whether the tally simulation result indicates that the number of remaining cargo spaces of the destination box after tallying is less than a preset threshold. If not, step S308 may be executed; if so, step S310 may be executed.

[0111] The preset threshold value may be set according to actual needs. For example, it may be set to 1.

[0112] Step S308: Determine the source box set that needs to be supplemented in this stage according to the pre-supplementation model. After step S308, step S309 may be executed.

[0113] The objective function of the pre-supplementation model is: to maximize the number of source boxes that need to be supplemented while satisfying the supplementation constraint. In an optional example, the objective function of the pre-supplementation model can be expressed as:

[0114]

[0115] And the additional constraints that the objective function needs to satisfy can be expressed as:

[0116]

[0117]

[0118]

[0119] Where P\S represents the set obtained by deleting elements in the source box set S from the candidate source box set P; the supplementary constraint (1) represents that the number of supplementary source boxes is less than or equal to the maximum number of source boxes that can be added N P , N P =N S -|S|; The additional constraint condition (2) indicates that the number of compartments required for all goods in the additional source box is less than or equal to the number of remaining compartments in the destination box after tallying.

[0120] Step S309: Supplement the source boxes of this stage according to the source box set that needs to be supplemented. After step S309, step S303 is executed again until the tally task of this stage is generated.

[0121] In an embodiment of the present invention, a tallying simulation operation is performed to determine whether the number of remaining compartments of a destination box after tallying is less than a preset threshold value, and after determining that the number of remaining compartments of a destination box after tallying is greater than or equal to the preset threshold value, a pre-supplementation model is used to determine source boxes that need to be supplemented, and then the supplemented source boxes and destination boxes are re-simulated for tallying, so that the source boxes ultimately screened out at this stage can be maximized and emptied, and the utilization rate of the destination boxes ultimately screened out at this stage can be improved, thereby facilitating the subsequent generation of optimal tallying tasks.

[0122] In addition, in the specific implementation, if the number of iterations reaches the upper limit and the source boxes and destination boxes that meet the requirements still cannot be screened out, the process of generating the tally task can be directly stopped, and a prompt message indicating the failure of generating the tally task can be output to the user; the screened source boxes and destination boxes can also be temporarily removed from the sets P and Q, and the pre-screening process can be executed again.

[0123] Step S310: Generate a tally task for this stage according to the screened source boxes and destination boxes for this stage.

[0124] In the embodiment of the present invention, for each stage divided in step S301, a tally task of the stage can be generated through steps S302 and S303. Exemplarily, the tally task may include: the collection information of the source boxes selected in the stage, and the collection information of the destination boxes selected in the stage.

[0125] In the embodiment of the present invention, the optimal tallying task can be automatically generated through the above steps, so that as many material boxes as possible can be emptied each time the tallying task is executed, thereby improving the tallying efficiency.

[0126] Figure 4 FIG. 1 is a schematic diagram of the main modules of a device for generating tally tasks according to an embodiment of the present invention. Figure 4 As shown, the device 400 for generating tally tasks according to the embodiment of the present invention includes: a division module 401 , a screening module 402 , a tally simulation module 403 , and a generation module 404 .

[0127] The division module 401 is used to divide the process of generating the tally task into at least one stage according to the specification information of the boxes to be sorted after receiving the tally request. In each stage, all the boxes to be sorted corresponding to the current stage are used as candidate source boxes, and the boxes of the same specification among all the boxes to be sorted corresponding to the current stage are used as candidate destination boxes. In an optional embodiment, in the process of generating the tally task, the boxes to be sorted with a large number of cargo compartments and belonging to the same specification can be preferentially used as candidate destination boxes.

[0128] For example, assuming that there are three specifications of boxes to be sorted, namely, 1 box 1 product box, 1 box 2 product box, and 1 box 4 product box, the process of generating tallying tasks can be divided into three stages. In the first stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box 4 products among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the second stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box 2 products among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the third stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box 1 product among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes. In specific implementation, after dividing the process of generating tallying tasks into these three stages, you can choose to execute one, two, or three stages according to actual needs.

[0129] The screening module 402 is used to screen the source boxes of this stage from the candidate source boxes and the destination boxes of this stage from the candidate destination boxes according to the pre-screening model. The objective function of the pre-screening model is to maximize the number of source boxes of this stage screened while satisfying the screening constraints.

[0130] The tally simulation module 403 is used to perform tally simulation operations on the selected source boxes and destination boxes at this stage.

[0131] The tally simulation operation can be understood as a simulation operation of moving the goods in the source box to the destination box. Specifically, the tally simulation module 403 can first obtain the goods information stored in the source box and the available cargo compartment information in the destination box, and then perform tally simulation operations such as "closing boxes" and / or "combining boxes" based on this information. "Combining boxes" means moving a type of goods in the source box to a cargo compartment in the destination box where the goods are already stored, and "combining boxes" means moving a type of goods in the source box to an empty cargo compartment in the destination box.

[0132] The generating module 404 is used to generate a tallying task for this stage according to the selected source boxes and destination boxes for this stage when the tallying simulation operation result indicates that the selected source boxes for this stage can be emptied.

[0133] Exemplarily, the tallying task at this stage may include: the collection information of the source boxes selected at this stage, and the collection information of the destination boxes selected at this stage.

[0134] In the device of the embodiment of the present invention, the process of generating a tallying task is divided into multiple stages through a division module, and in each stage only material boxes belonging to the same specification are used as candidate destination boxes, which helps to reduce the difficulty of subsequent modeling and solving and improve processing efficiency; the source boxes and destination boxes of each stage are screened out according to the pre-screening model through a screening module, and whether the screened source boxes can be emptied is determined through a tallying simulation module, and a tallying task is generated when the screened source boxes can be emptied. The optimal tallying task can be automatically generated, so that as many material boxes as possible can be emptied each time a tallying task is executed, thereby improving the tallying efficiency.

[0135] Figure 5 FIG. 1 is a schematic diagram of the main modules of an apparatus for generating tally tasks according to another embodiment of the present invention. Figure 5 As shown, the device 500 for generating tally tasks according to the embodiment of the present invention includes: a division module 501 , a screening module 502 , a tally simulation module 503 , a first determination module 504 , an iterative calling module 505 , and a generation module 506 .

[0136] The division module 501 is used to divide the process of generating the tallying task into at least one stage according to the specification information of the boxes to be sorted after receiving the tallying request. In each stage, all the boxes to be sorted corresponding to the current stage are used as candidate source boxes, and the boxes of the same specification among all the boxes to be sorted corresponding to the current stage are used as candidate destination boxes.

[0137] In the device of the embodiment of the present invention, the process of generating tallying tasks is divided into multiple stages through a division module, and in each stage only material boxes belonging to the same specification are used as candidate destination boxes, which helps to reduce the difficulty of subsequent modeling and solving.

[0138] The screening module 502 is used to screen the source boxes of this stage from the candidate source boxes and the destination boxes of this stage from the candidate destination boxes according to the pre-screening model. The objective function of the pre-screening model is to maximize the number of source boxes of this stage screened while satisfying the screening constraints.

[0139] The tally simulation module 503 is used to perform tally simulation operations on the selected source boxes and destination boxes at this stage.

[0140] The generation module 506 is further configured to generate a tally task for this stage according to the selected source boxes and destination boxes for this stage when the tally simulation operation result indicates that the selected source boxes for this stage can be emptied. For example, the tally task for this stage may include: the collection information of the selected source boxes for this stage and the collection information of the selected destination boxes for this stage.

[0141] The first determination module 504 is used to determine the source boxes that need to be eliminated according to the pre-elimination model when the result of the tally simulation operation indicates that the source boxes pre-screened at this stage cannot be emptied. The objective function of the pre-elimination model is to minimize the number of source boxes that need to be eliminated while satisfying the elimination constraint condition.

[0142] The iterative calling module 505 is used to add constraint conditions based on the source boxes that need to be eliminated in the pre-screening model, and then call the screening module 503 to re-screen the source boxes and destination boxes of this stage according to the pre-screening model, and then call the tallying simulation module 503 to perform tallying simulation operations on the re-screened source boxes and destination boxes of this stage until a tallying task is generated.

[0143] In the embodiment of the present invention, the tallying simulation module 503 is used to determine whether the screened source boxes can be emptied, and after determining that the screened source boxes cannot be emptied, the first determination module 504 determines the source boxes that need to be eliminated, and the iterative calling module 505 adds constraints based on the source boxes that need to be eliminated in the pre-screening model, and then the screening module 502 is re-called to screen the source boxes and the destination boxes, so that the source boxes finally screened out in this stage can be maximized and can be emptied, which is helpful for the subsequent generation of the optimal tallying task.

[0144] The device of the embodiment of the present invention can automatically generate the optimal tallying task, so that each time the tallying task is executed, as many material boxes as possible can be emptied, thereby improving the tallying efficiency.

[0145] Figure 6 FIG. 2 is a schematic diagram of the main modules of an apparatus for generating tally tasks according to another embodiment of the present invention. Figure 6 As shown, the device 600 for generating tally tasks according to the embodiment of the present invention includes: a division module 601, a screening module 602, a tally simulation module 603, a first determination module 604, an iterative calling module 605, a second determination module 606, and a generation module 607.

[0146] The division module 601 is used to divide the process of generating the tallying task into at least one stage according to the specification information of the boxes to be sorted after receiving the tallying request. In each stage, all the boxes to be sorted corresponding to the current stage are used as candidate source boxes, and the boxes of the same specification among all the boxes to be sorted corresponding to the current stage are used as candidate destination boxes.

[0147] For example, assuming that there are three specifications of boxes to be sorted, namely, 1 box 1 product box, 1 box 2 product box, and 1 box 4 product box, the process of generating tallying tasks can be divided into three stages. In the first stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box 4 products among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the second stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box 2 products among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes; in the third stage, all boxes to be sorted corresponding to the current stage are taken as candidate source boxes, and the boxes belonging to 1 box 1 product among all boxes to be sorted corresponding to the current stage are taken as candidate destination boxes.

[0148] In the device of the embodiment of the present invention, the process of generating tally tasks is divided into multiple stages through the division module, and in each stage, only material boxes belonging to the same specification are used as candidate destination boxes, which helps to reduce the difficulty of subsequent modeling and solving.

[0149] The screening module 602 is used to screen the source boxes of this stage from the candidate source boxes and to screen the destination boxes of this stage from the candidate destination boxes according to the pre-screening model.

[0150] The objective function of the pre-screening model is: to maximize the number of source boxes screened at this stage while satisfying the screening constraints. In an optional example, the objective function of the pre-screening model can be expressed as:

[0151]

[0152] And, the screening constraints that the objective function needs to satisfy can be expressed as:

[0153] x j +y j ≤1 (1)

[0154]

[0155]

[0156]

[0157]

[0158] Among them, x i =1 means that the material box i is selected as the source box from the candidate source box set P, x i = 0 means that bin i is not selected as the source bin, y j =1 means that the container j is selected as the destination container from the candidate destination container set Q, y j = 0 means that bin j is not selected as the destination bin, N s Indicates the upper limit of the number of source boxes selected at this stage, N d Indicates the upper limit of the number of destination boxes selected at this stage, g i represents the number of compartments required for the goods stored in bin i, b i represents the number of cargo spaces provided by bin j in set Q; screening constraint (1) indicates that any bin cannot be both a source bin and a destination bin; screening constraint (2) indicates that the number of source bins screened at this stage cannot exceed N s ; The screening constraint (3) indicates that the number of destination boxes screened in this stage cannot exceed N d ; The screening constraint (4) indicates that the number of cargo compartments required for all the goods in the source box and the destination box screened at this stage cannot exceed the total number of cargo compartments provided by the destination box screened at this stage.

[0159] The tally simulation module 603 is used to perform tally simulation operations on the selected source boxes and destination boxes at this stage.

[0160] Among them, the tallying simulation operation can be understood as: a simulation operation of moving the goods in the source box to the destination box. In this step, the information of the goods stored in the source box and the information of the available cargo compartments in the destination box can be obtained first, and then the tallying simulation operations such as "closing boxes" and / or "combining boxes" can be performed based on this information. Among them, "closing boxes" refers to moving a type of goods in the source box to the cargo compartment of the destination box where the goods are already stored, and "combining boxes" refers to moving a type of goods in the source box to the empty cargo compartment in the destination box. Furthermore, the results obtained through the tallying simulation operation can determine whether the source box at this stage can be emptied, and whether the number of remaining cargo compartments in the destination box after tallying is less than the preset threshold.

[0161] The generation module 607 is used to generate the tallying task of this stage according to the selected source boxes and destination boxes of this stage when the tallying simulation operation result shows that the selected source boxes of this stage can be emptied and it is confirmed that the number of remaining cargo spaces of the destination box after tallying is less than a preset threshold.

[0162] The first determination module 604 is used to determine the source boxes that need to be eliminated according to the pre-elimination model when the result of the tally simulation operation indicates that the source boxes of the selected stage cannot be emptied. The objective function of the pre-elimination model is to minimize the number of source boxes that need to be eliminated while satisfying the elimination constraint condition.

[0163] In an optional example, the objective function of the pre-elimination model can be expressed as:

[0164]

[0165] And the elimination constraints that the objective function needs to satisfy can be expressed as:

[0166]

[0167]

[0168] Among them, x k = 1 means removing source box k, q from source box set S km represents the storage quantity of the mth item in list C in source box k, C m represents the excess quantity of the mth type of goods recorded in list C. The elimination constraint (1) means that for any goods in list C, the storage quantity in the removed source boxes can cover the excess quantity in list C, that is, after removing these source boxes, the goods in the remaining source boxes can all be placed in the destination box. Then, by solving the above pre-elimination model, we can get the source box set R that needs to be eliminated. S .

[0169] The iterative calling module 605 is used to add constraint conditions based on the source boxes that need to be eliminated in the pre-screening model, and then call the screening module 602 to re-screen the source boxes and destination boxes of this stage according to the pre-screening model, and then call the tallying simulation module 603 to perform tallying simulation operations on the re-screened source boxes and destination boxes of this stage until the tallying tasks of this stage are generated.

[0170] Exemplarily, the constraint conditions set based on the source bins to be removed may include:

[0171]

[0172]

[0173]

[0174] Among them, S' represents the elimination of R S The source box set after the element in |R S| indicates the source box set R that needs to be removed S The number of bins in the .

[0175] The second determination module 606 is used to determine the source box set that needs to be supplemented in this stage according to the pre-supplementation model when the result of the tally simulation operation shows that the source boxes selected in this stage can be emptied and the number of remaining cargo spaces of the destination box after tallying is greater than or equal to the preset threshold. The objective function of the pre-supplementation model is: to maximize the number of source boxes that need to be supplemented while satisfying the supplementation constraint condition.

[0176] In an optional example, the objective function of the pre-supplementation model can be expressed as:

[0177]

[0178] And the additional constraints that the objective function needs to satisfy can be expressed as:

[0179]

[0180]

[0181]

[0182] Where P\S represents the set obtained by deleting elements in the source box set S from the candidate source box set P; the supplementary constraint (1) represents that the number of supplementary source boxes is less than or equal to the maximum number of source boxes that can be added N P , N P =N S -|S|; The additional constraint condition (2) indicates that the number of compartments required for all goods in the additional source box is less than or equal to the number of remaining compartments in the destination box after tallying.

[0183] The iterative calling module 605 is further used to supplement the source boxes of this stage according to the source box set that needs to be supplemented, and then call the tally simulation module 603 to perform tally simulation operations on all the supplemented source boxes and destination boxes until a tally task is generated.

[0184] The device of the embodiment of the present invention can automatically generate the optimal tallying task, so that each time the tallying task is executed, as many material boxes as possible can be emptied, thereby improving the tallying efficiency.

[0185] Figure 7 An exemplary system architecture 700 is shown to which the method for generating a tally task or the apparatus for generating a tally task according to the embodiments of the present invention can be applied.

[0186] like Figure 7As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0187] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages (such as tally requests), etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0188] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0189] The server 705 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 701, 702, and 703. The backend management server may analyze and process the received tally request and other data, and feed back the processing results (such as the generated tally task) to the terminal device.

[0190] It should be noted that the method for generating a tally task provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the device for generating a tally task is generally disposed in the server 705 .

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

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

[0193] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

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

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

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

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

[0198] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a partitioning module, a screening module, a tally simulation module and a generation module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the partitioning module may also be described as "a module for dividing the process of generating a tally task into at least one stage".

[0199] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by a device, the device executes the following process: after receiving a tallying request, the process of generating a tallying task is divided into at least one stage according to the specification information of the material boxes to be sorted; in each stage, all the material boxes to be sorted corresponding to the current stage are used as candidate source boxes, and the material boxes belonging to the same specification among all the material boxes to be sorted corresponding to the current stage are used as candidate destination boxes; the source boxes of this stage are screened out from the candidate source boxes, and the destination boxes of this stage are screened out from the candidate destination boxes according to the pre-screening model; wherein the objective function of the pre-screening model is: maximizing the number of source boxes screened out for this stage while satisfying the screening constraint conditions; performing a tallying simulation operation on the source boxes and destination boxes screened out for this stage; and generating a tallying task for this stage according to the source boxes and destination boxes screened out for this stage when the result of the tallying simulation operation shows that the source boxes screened out for this stage can be emptied.

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

Claims

1. A method for generating a tally task, characterized in that: The method comprises: After receiving the tallying request, the process of generating the tallying task is divided into at least one stage according to the specification information of the boxes to be tallied; in each stage, all the boxes to be tallied corresponding to the current stage are taken as candidate source boxes, and the boxes of the same specification among all the boxes to be tallied corresponding to the current stage are taken as candidate destination boxes; According to the pre-screening model, the source boxes of this stage are screened out from the candidate source boxes, and the destination boxes of this stage are screened out from the candidate destination boxes; wherein the objective function of the pre-screening model is: to maximize the number of source boxes of this stage under the condition of satisfying the screening constraints; the screening constraints include: any material box cannot be used as both a source box and a destination box; the number of source boxes screened out at this stage does not exceed the upper limit of the number of source boxes selected at this stage, and the number of destination boxes screened out does not exceed the upper limit of the number of destination boxes selected at this stage; the number of cargo compartments required for all goods in the source boxes and destination boxes screened out at this stage cannot exceed the total number of cargo compartments provided by the destination boxes screened out at this stage; Carry out tally simulation operation on the source boxes and destination boxes selected at this stage; When the tally simulation operation result indicates that the source box of the selected stage can be emptied, generating the tally task of the stage according to the selected source box and destination box of the selected stage; When the result of the tallying simulation operation indicates that the source boxes of this stage screened out cannot be emptied, the source boxes that need to be eliminated are determined according to the pre-elimination model; wherein the objective function of the pre-elimination model is: to minimize the number of source boxes that need to be eliminated while satisfying the elimination constraints; then, constraints based on the source boxes that need to be eliminated are added to the pre-screening model, and then the source boxes and destination boxes of this stage are re-screened according to the pre-screening model, and the tallying simulation operation is performed on the re-screened source boxes and destination boxes of this stage until the tallying task of this stage is generated; wherein the elimination constraints include: for any goods in the goods information list that cannot be added to the destination box, the storage quantity in the removed source box can cover the excess quantity in the goods information list, and the goods in the remaining source boxes are placed in the destination box.

2. The method according to claim 1, characterized in that The method further comprises: Before executing the step of generating the tallying task of this stage according to the selected source boxes and destination boxes of this stage, it is confirmed through a tallying simulation operation that the number of remaining cargo spaces of the selected destination boxes of this stage after tallying is less than a preset threshold.

3. The method according to claim 2, characterized in that The method further comprises: When it is confirmed through the tallying simulation operation that the number of remaining cargo spaces of the destination boxes of this stage selected after tallying is greater than or equal to the preset threshold, the set of source boxes that need to be supplemented in this stage is determined according to the pre-supplementation model; wherein the objective function of the pre-supplementation model is: to maximize the number of source boxes that need to be supplemented while satisfying the supplementation constraint conditions; then, the source boxes of this stage are supplemented according to the set of source boxes that need to be supplemented, and then the tallying simulation operation is performed on all the supplemented source boxes and destination boxes until the tallying task of this stage is generated.

4. A device for generating tally tasks, characterized in that: The device comprises: A division module is used to divide the process of generating a tally task into at least one stage according to the specification information of the boxes to be sorted after receiving the tally request; in each stage, all the boxes to be sorted corresponding to the current stage are used as candidate source boxes, and the boxes of the same specification among all the boxes to be sorted corresponding to the current stage are used as candidate destination boxes; A screening module is used to screen out source boxes for this stage from the candidate source boxes and to screen out destination boxes for this stage from the candidate destination boxes according to a pre-screening model; wherein the objective function of the pre-screening model is: to maximize the number of source boxes screened out for this stage while satisfying screening constraints; the screening constraints include: any material box cannot be used as both a source box and a destination box; the number of source boxes screened out for this stage does not exceed the upper limit of the number of source boxes selected for this stage, and the number of destination boxes screened out does not exceed the upper limit of the number of destination boxes selected for this stage; the number of cargo compartments required for all goods in the source boxes and destination boxes screened out for this stage cannot exceed the total number of cargo compartments provided by the destination boxes screened out for this stage; The tally simulation module is used to perform tally simulation operations on the source boxes and destination boxes selected at this stage; A generation module is used to generate a tallying task for this stage according to the screened source boxes and destination boxes for this stage when the result of the tallying simulation operation indicates that the screened source boxes for this stage can be emptied; wherein the elimination constraint condition includes: for any goods in the goods information list that cannot be added to the destination box, the storage quantity in the removed source boxes can cover the excess quantity in the goods information list, and the goods in the remaining source boxes are placed in the destination box.

5. The device according to claim 4, characterized in that The tallying simulation module is also used to confirm through a tallying simulation operation that the number of remaining cargo spaces of the screened destination boxes of this stage after tallying is less than a preset threshold before the generation module executes the operation of generating the tallying task of this stage according to the screened source boxes and destination boxes of this stage.

6. The device according to claim 5, characterized in that The device also includes: The second determination module is used to determine the source box set that needs to be supplemented in this stage according to the pre-supplementation model when the number of remaining cargo spaces of the destination boxes selected in this stage after tallying is greater than or equal to a preset threshold through the tallying simulation operation; wherein the objective function of the pre-supplementation model is: to maximize the number of source boxes that need to be supplemented while satisfying the supplementation constraint condition; The iterative calling module is further used to supplement the source boxes of this stage according to the source box set that needs to be supplemented, and then call the tally simulation module to perform tally simulation operations on all the supplemented source boxes and destination boxes until the tally task of this stage is generated.

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

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