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

Through the integer programming model and evolutionary algorithm, a reasonable sorting plan is generated, which solves the problem of manual sorting being difficult to ensure the rationality of the sorting plan, improves the sorting efficiency and quality, and adapts to different loading and network point changes.

WO2024222816A1PCT designated stage expired Publication Date: 2024-10-31SF TECH CO LTD

Patent Information

Application Number
PCT/CN2024/089887
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2024-04-25
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

In the existing technology, manual sorting is difficult to ensure the rationality of the sorting plan, affecting sorting efficiency and quality. Moreover, as highway loading or network points change, it is difficult to generate the sorting plan quickly and with high quality.

Method used

Through the integer programming model, the data of the compartments and bags in the transfer field are obtained, the optimal number of compartments is determined, and the evolutionary algorithm is used to iteratively calculate to generate a sorting plan that satisfies the preset constraints to ensure the optimal distribution of bags and compartments. .

Benefits of technology

It has improved the rationality and efficiency of the sorting plan, ensured sorting efficiency and quality, and adapted to the needs of different loading and network changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089887_31102024_PF_FP_ABST
    Figure CN2024089887_31102024_PF_FP_ABST
Patent Text Reader

Abstract

A sorting plan generation method, comprising: acquiring grid port data and packet label data of a transit depot; by means of an integer programming model, determining the optimal number of grid ports corresponding to each packet label in the transit depot; according to the optimal number of grid ports, randomly allocating packet labels for the grid ports, so as to obtain initial packet labels corresponding to each grid port; generating initial packet label sequences; and performing iterative calculation according to the initial packet label sequences by using an evolutionary algorithm, and determining a target packet label sequence that meets a preset packet label allocation constraint condition, so as to generate a sorting plan. The optimal allocation of the number of grid ports is realized, and packet labels for the grid ports are allocated on the basis of the optimal number of grid ports for the packet labels and a preset packet label allocation constraint condition and by using an evolutionary algorithm, such that the packet labels are accurately allocated, the optimal allocation of the packet labels and the grid ports are ensured, the rationality of a sorting plan is ensured, and the sorting efficiency of a transit depot is thus improved.
Need to check novelty before this filing date? Find Prior Art

Description

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

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 25, 2023, with application number 2023104760258 and invention name “Sorting plan generation method, device, computer equipment and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

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

[0004] During the small-parcel sorting process at a transfer station, the strategy that guides the small-parcel sorting machine to which slot to transfer parcels in a certain flow direction (one flow direction corresponds to at least one package tag) is called a sorting plan. The quality of the sorting plan directly affects indicators such as sorting efficiency and quality, making it a crucial step in the daily operations of a transfer station. Furthermore, as road loading or distribution points change, the corresponding sorting plan must also change to adapt to new sorting requirements. This places higher demands on the site in terms of how to quickly and efficiently generate sorting plans.

[0005] Currently, the method of generating sorting plans is mainly done by site sorting plan specialists, who generate them based on previous manual experience and the actual situation on site. This makes it difficult to ensure the rationality of the sorting plans and affects the efficiency of sorting plan generation.

[0006] Summary of the Invention

[0007] According to various embodiments of the present application, a sorting plan generation method, apparatus, computer device, and storage medium are provided to solve the technical problem that manual sorting is difficult to ensure the rationality of the sorting plan and affects the efficiency of sorting plan generation.

[0008] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:

[0009] In a first aspect, an embodiment of the present application provides a method for generating a sorting plan, the method comprising:

[0010] Obtain the transit yard’s grid data and package data;

[0011] Based on the slot data and the package data, determining the optimal number of slots corresponding to each package in the transfer yard through an integer programming model;

[0012] Randomly assigning the packs of cards to each slot according to the optimal number of slots to obtain an initial pack of cards corresponding to each slot;

[0013] Based on the initial packing cards corresponding to the respective slots, an initial packing card sequence is generated;

[0014] According to the initial package card sequence, an evolutionary algorithm is used to perform iterative calculations to determine a target package card sequence that meets preset package card distribution constraints to generate a sorting plan.

[0015] In a second aspect, an embodiment of the present application provides a sorting plan generating device, the device comprising:

[0016] The acquisition module is used to obtain the grid data and package data of the transfer yard;

[0017] A determination module, configured to determine the optimal number of slots corresponding to each package of cards in the transfer yard based on the slot data and the package data through an integer programming model;

[0018] A first allocation module is configured to randomly allocate the packs of cards to each slot according to the optimal number of slots to obtain an initial pack of cards corresponding to each slot;

[0019] A generating module, configured to generate an initial packing sequence based on the initial packings corresponding to the respective slots;

[0020] The second allocation module is used to perform iterative calculations using an evolutionary algorithm based on the initial package sequence to determine a target package sequence that meets preset package allocation constraints to generate a sorting plan.

[0021] In a third aspect, an embodiment of the present application provides a computer device, comprising a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the operations of the above-mentioned method are implemented.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the operations of the above-mentioned method when executed by a processor.

[0023] The above-mentioned sorting plan generation method, device, computer equipment and storage medium obtain the grid slot data and package card data of the transfer yard; based on the grid slot data and the package card data, determine the optimal number of grid slots corresponding to each package card in the transfer yard through an integer programming model; according to the optimal number of grid slots, randomly distribute the package cards of each grid slot to obtain the initial package cards corresponding to each grid slot; based on the initial package cards corresponding to each grid slot, generate an initial package card sequence; based on the initial package card sequence, use an evolutionary algorithm to perform iterative calculation to determine a target package card sequence that meets preset package card distribution constraints to generate a sorting plan, determine the optimal number of grid slots for each package card through the integer programming model, achieve optimal distribution of the number of grid slots, and based on the optimal number of grid slots for the package card and the preset package card distribution constraints, use an evolutionary algorithm to distribute the package cards of each grid slot, achieve accurate distribution of the package cards, ensure the optimal distribution of the package cards and grid slots, ensure the rationality of the sorting plan, and improve the sorting efficiency of the transfer yard. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0025] FIG1 is a schematic diagram of a scenario of a sorting plan generating device provided according to an embodiment of the present application.

[0026] FIG2 is a flow chart of an embodiment of a method for generating a sorting plan according to an embodiment of the present application.

[0027] FIG3 is a schematic diagram of a transfer site provided according to an embodiment of the present application.

[0028] FIG4 is a schematic structural diagram of an embodiment of a sorting plan generating device provided according to an embodiment of the present application.

[0029] FIG5 shows a schematic structural diagram of a computer device suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0031] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the described features. In the description of this application, "plurality" means two or more, unless otherwise specifically defined.

[0032] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that one of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0033] It should be noted that since the method of the embodiment of the present application is executed in a computer device, the processing objects of each computer device exist in the form of data or information. For example, the time described in this article is actually time information, which is used to represent time information. It can be understood that if the size, quantity, position, etc. are mentioned in the subsequent embodiments, they all exist in the corresponding data form for processing by the computer device. The details will not be repeated here.

[0034] The embodiments of the present application provide a sorting plan generation method, device, and storage medium, which are described in detail below.

[0035] Please refer to Figure 1, which is a scenario diagram of a sorting plan generation device provided in an embodiment of the present application. The sorting plan generation device may include a computer device 100, and the computer device 100 is integrated with the sorting plan generation device, such as the computer device in Figure 1.

[0036] In the embodiment of the present application, the computer device 100 is mainly used to obtain the grid slot data and package data of the transfer yard; based on the grid slot data and the package data, the optimal grid slot number corresponding to each package of cards in the transfer yard is determined through an integer programming model; according to the optimal grid slot number, the packages of cards in each grid slot are randomly distributed to obtain the initial packages of cards corresponding to each grid slot; based on the initial packages of cards corresponding to each grid slot, an initial package sequence is generated; according to the initial package sequence, an evolutionary algorithm is used for iterative calculation to determine the target package sequence that meets the preset package distribution constraint conditions to generate a sorting plan, and the optimal grid slot number of each package of cards is determined through the integer programming model, thereby achieving the optimal distribution of the grid slot number, and based on the optimal grid slot number of the package of cards and the preset package distribution constraint conditions, the evolutionary algorithm is used to distribute the packages of cards in each grid slot, thereby achieving accurate distribution of the packages, ensuring the optimal distribution of the packages and grid slots, ensuring the rationality of the sorting plan, and improving the sorting efficiency of the transfer yard.

[0037] In the embodiments of the present application, the computer device 100 may be an independent server, or a server network or server cluster composed of servers. For example, the computer device 100 described in the embodiments of the present application includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud server composed of multiple servers. A cloud server is composed of a large number of computers or network servers based on cloud computing.

[0038] It is understood that the terminal used in the embodiments of the present application can be a device that includes both receiving and transmitting hardware, that is, a device that has receiving and transmitting hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device with a single-line display, a multi-line display, or a cellular or other communication device without a multi-line display. The specific terminal can be a desktop terminal or a mobile terminal, and the terminal can also be a mobile phone, a tablet computer, a laptop computer, etc.

[0039] Those skilled in the art will appreciate that the application environment shown in FIG1 is merely one application scenario of the present application solution and does not limit the application scenario of the present application solution. Other application environments may also include more or fewer computer devices than those shown in FIG1 . For example, FIG1 shows only one computer device. It is understandable that the sorting plan generating device may also include one or more other services, which are not specifically limited here.

[0040] In addition, as shown in FIG1 , the sorting plan generating device may further include a storage module 200 for storing data, which may include package brand-related data, grid-related data, historical sorting flow, small piece timeliness, site information, etc.

[0041] It should be noted that the scenario diagram of the sorting plan generating device shown in FIG1 is merely an example. The sorting plan generating device and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application and do not constitute a limitation on the technical solution provided by the embodiment of the present application. Persons skilled in the art will appreciate that with the evolution of the sorting plan generating device and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is equally applicable to similar technical problems.

[0042] First, in an embodiment of the present application, a sorting plan generation method is provided. The execution subject of the sorting plan generation method is a sorting plan generation device, and the sorting plan generation device is applied to a computer device. The sorting plan generation method includes: obtaining the grid data and the package data of the transfer yard; based on the grid data and the package data, determining the optimal number of grids corresponding to each package in the transfer yard through an integer programming model; according to the optimal number of grids, randomly allocating the packages of cards to each grid to obtain the initial packages corresponding to each grid; based on the initial packages corresponding to each grid , generate an initial package card sequence; according to the initial package card sequence, adopt evolutionary algorithm to perform iterative calculation to determine the target package card sequence that meets the preset package card distribution constraint conditions, so as to generate a sorting plan, determine the optimal number of slots for each package card through integer programming model, realize the optimal distribution of the number of slots, and based on the optimal number of slots for the package card and the preset package card distribution constraint conditions, adopt evolutionary algorithm to distribute the package cards to each slot, realize the accurate distribution of the package cards, ensure the optimal distribution of the package cards and slots, ensure the rationality of the sorting plan, and improve the sorting efficiency of the transfer yard.

[0043] FIG2 is a flow chart of an embodiment of a method for generating a sorting plan in an embodiment of the present application. The method for generating a sorting plan may include the following operations 301 to 303, specifically as follows:

[0044] Operation 301: Obtain the slot data and package data of the transfer yard.

[0045] A slot refers to a basic sorting unit used to store small items in a sorting machine used for sorting small items in a transfer yard. Each slot can be distinguished by a different slot number. Slot data refers to data related to slot factors, such as the number of slots, slot specifications, and slot location. The slot location can include the distance between the slot and the loading port, the distance between the slot and the nearest printer, and whether the slot is at a turning position (indicated by a digital identifier). Each slot can be distinguished by a different slot number.

[0046] A package tag is an information mark used to identify a packaged bag (a packaged bag includes at least one slot for small items). For example, it can be a printer-printed information that identifies the company, transportation method, and shipping route of the packaged bag. Each package tag can be distinguished by a unique package tag number. Package tag data refers to data related to package tag factors, such as the number of packages, historical package tag flow, and package tag validity period. One package tag corresponds to at least one flow direction, that is, one package tag corresponds to at least one slot.

[0047] Specifically, the grid data of the site sorting machine can be obtained from the small piece management system of the transfer yard according to the database of the management system, and the package data can be obtained according to the flow direction, flow rate and shipping information of the small pieces.

[0048] Operation 302: Based on the slot data and the card package data, determine the optimal number of slots corresponding to each card package in the transfer yard through an integer programming model.

[0049] The optimal number of slots refers to the number of slots that need to be allocated to a package, which is used to ensure the optimal allocation of the number of slots for each package, so as to improve the sorting efficiency and sorting revenue of the small-parts sorting machine in the transfer yard.

[0050] Among them, the integer programming model is a mathematical model used to find the optimal integer when the variables (partial or complete) in the planning are restricted to integers. In this embodiment, the grid data and the package data are used as the input of the integer model, and the result output by the integer programming model is used as the optimal grid number of each package.

[0051] Generally speaking, during the sorting process of a certain shift, the number of parcel flows (number of package tags) M will be less than the number of slots N in the site, but the number of parcels in each flow direction varies greatly. Therefore, it is necessary to allocate more slots to parcels with large flow rates to ensure that the return volume will not surge during the sorting process due to too few slots. At the same time, when allocating the number, factors such as the symmetry of the slot allocation, the particularity of the slot location, and the location of personnel should be considered as much as possible. Therefore, in this embodiment, the slot data and package tag data are analyzed, and an integer programming model is used to determine the optimal number of slots for each package tag, so as to generate an optimal slot number allocation strategy, improve the rationality of subsequent sorting, and ensure the maximization of sorting benefits.

[0052] Specifically, the slot allocation constraints can be set according to the small-piece sorting scenario in the transfer yard, such as allocating at least one slot to each package, allocating at most u slots to each package, etc., and the objective function of the transfer yard can be generated based on the slot data and package data. For example, the benefits are maximized after all packages are allocated to corresponding slots. The optimal number of slots for each package is obtained by solving the objective function that satisfies the set slot allocation constraints. An integer programming model can also be established based on the slot data and package data, and the set constraints and objective function are input into the integer programming model. The integer programming model is a mathematical model for obtaining the optimal integer by restricting the variables (partial or all) in planning to integers. The result output by the integer programming model is used as the optimal number of slots for each package to improve the efficiency of calculating the optimal number of slots.

[0053] In one specific embodiment, the integer programming model includes preset slot allocation constraints. Operation 302, based on the slot data and the package data, determining the optimal number of slots corresponding to each package in the transfer yard using the integer programming model, may include the following operations 302A to 302C, specifically as follows:

[0054] Operation 302A: constructing a sorting cost matrix for the transfer yard based on the slot data and the package data;

[0055] Among them, the sorting cost matrix refers to a matrix formed by the cost of mapping each package of cards to each grid as a matrix element, which is used to characterize the profit matrix generated by sorting according to the sorting strategy of mapping each package of cards to each grid. It can be obtained by analyzing the grid data and package data. For example, it can be analyzed according to the size of the profit. For example, the profit can be the profit generated by sorting according to the sorting strategy of mapping one package of cards to one grid. Then, the profit is used as an element of the sorting cost matrix to form a matrix. For example, M packages of cards and N grids constitute an M*N sorting cost matrix.

[0056] It can be understood that in this embodiment, a sorting cost matrix is ​​constructed using the slot data and the package data, so that the optimal allocation of the number of slots can be achieved based on the sorting cost matrix, thereby ensuring maximum profit.

[0057] Operation 302B: constructing an objective function of the transfer station according to the sorting cost matrix;

[0058] The objective function refers to an objective function used for integer programming. In this embodiment, it is an objective function used to maximize the benefits under the premise of ensuring that the slot allocation constraints in the transfer yard are met.

[0059] Specifically, the objective function of the transfer station can be constructed according to the sorting cost matrix and the cost weights set for each element in the sorting cost matrix.

[0060] Operation 302C: Analyze the preset slot allocation constraints using the objective function to obtain the optimal number of slots for each package.

[0061] Among them, the preset slot allocation constraint refers to the pre-set restriction condition used to determine the optimal number of slots for the allocation of a package of cards. In a specific embodiment, the preset slot allocation constraint condition may include 3 constraints, namely, at least one slot is allocated to each package of cards, at most u slots are allocated to each package of cards, and the total number of allocated slots is equal to the number of slots available in the transfer station.

[0062] In a specific implementation, there are three slot allocation constraints, which are expressed as follows:

[0063] subject to:

[0064] in, It means that at least one slot is allocated for each package; Indicates that each package is allocated at most u slots; Expressed as the total number of allocated slots equal to the number of available slots in the transfer yard, based on the aforementioned slot allocation constraint expression, the slot allocation constraint is analyzed using the transfer yard's objective function, resulting in the optimal number of slots for each package. It can be understood that in this embodiment, the transfer yard's sorting cost matrix is ​​constructed based on the slot data and package data, fully considering the impact of package and individual slot data on the sorting plan's profitability. This ensures that the optimal number of slots is allocated to each package, which is beneficial for improving the sorting efficiency and profitability of subsequent sorting plans.

[0065] In a specific embodiment, constructing the sorting cost matrix of the transfer yard based on the slot data and the package data in operation 302A may include the following operations 302A1 to 302A3, specifically as follows:

[0066] Operation 302A1: Calculate the cost of mapping each packaged card to each slot based on the slot data and the packaged card data;

[0067] Operation 302A2: Map the cost of each package to each slot as an element in the sorting cost matrix;

[0068] Operation 302A3: After completing the mapping of the packaged cards in the packaged card data, construct a sorting cost matrix.

[0069] Among them, the cost of mapping each package card to each grid refers to the quantitative value of the revenue generated by a grid corresponding to a package card mapping during sorting. It can be calculated based on the package card data and grid data using a preset cost calculation formula.

[0070] Cost refers to the revenue generated by sorting according to the sorting strategy of mapping one package to one slot. For M packages and N slots, there are M*N costs, forming an M*N-dimensional sorting cost matrix.

[0071] More specifically, the construction process may be as follows:

[0072] Operation S1: Calculate the cost of mapping the i-th package to the j-th slot based on the slot data and the package data, where i∈[1, M], j∈[1, N], M is the total number of packages in the transfer yard, and N is the total number of slots in the transfer yard; wherein the slot data includes the position data of each slot, and the package data includes the historical process and package time limit of each package.

[0073] In a specific embodiment, the preset cost calculation formula is as follows:

[0074] Among them, r i-f It is represented as the cost of mapping the i-th package card to the j-th slot, S is represented as the historical flow of the i-th package card, that is, the total amount of small items in the current shift, k, p, and w are the position data of the grid in the transfer yard. It is expressed as the average number of pieces processed by a single grid, that is, N is the number of slots, k is the distance between the slot and the loading port, p is the distance between the slot and the nearest printer, w is the data identifier of whether the slot is at a turning position, w=1 (turning position), w=0 (not a turning position), S is the historical flow of license plate packaging, t is the data representation of the validity period of the license plate packaging, t=1 (high validity period), t=0 (general validity period).

[0075] It can be understood that in this embodiment, by calculating the cost of mapping each package of cards to each slot in the transfer field based on the slot data and the package data, the benefit of mapping each package of cards to each slot is quantified.

[0076] Operation S2: taking the cost of the j-th slot as an element in a sorting cost matrix, and after completing the mapping of the packaged cards in the packaged card data, constructing an M*N sorting cost matrix.

[0077] Specifically, the jth grid is taken as an element in the sorting cost matrix. After completing the mapping of the packaged cards in the packaged card data, the M*N costs r_(ij) are all taken as elements of the i-th row and j-th column, thereby constructing an M*N sorting cost matrix.

[0078] It can be understood that constructing the sorting cost matrix based on the cost ensures the rationality and accuracy of the sorting cost matrix construction, so that the optimal allocation of the number of slots can be achieved based on the sorting cost matrix in the future, thereby ensuring maximum benefits.

[0079] In a specific embodiment, constructing the objective function of the transfer station according to the sorting cost matrix in operation 302B may include the following operations 302B1 to 302B2, specifically as follows:

[0080] Operation 302B1: Obtain the weight of each package mapped to each slot, where each weight corresponds to a cost in the sorting cost matrix;

[0081] Operation 302B2: Perform a weighted summation on each cost and the corresponding weight in the sorting cost matrix to obtain an objective function of the transfer station.

[0082] In a specific embodiment, the objective function is expressed as follows:

[0083] in, i∈[1,M],j∈[1,N],x ij It is represented as the weight of the cost of mapping the i-th package card to the j-th grid, with the weight being 0 or 1. maxZ is represented as the expression of the objective function.

[0084] Operation 303: Randomly distribute the packs of cards for each slot according to the optimal number of slots to obtain an initial pack of cards corresponding to each slot.

[0085] Among them, the initial pack of cards refers to the pack of cards randomly assigned to each grid.

[0086] Operation 304: Generate an initial package sequence based on the initial packaged cards corresponding to each of the slots.

[0087] Among them, the initial packing sequence refers to the packing sequence formed by the combination of the positions of the initial packing cards of all the slots. In a specific embodiment, there are 180 slots and 150 packing cards in the transfer field, as shown in Table 1, which is a table of the initial packing sequence. The initial packing sequence in Table 1 is 1-2-3-1-7-9-...121-131-150-129-10.

[0088] Table 1: Table of initial pack sequence

[0089] Operation 305 : Based on the initial package sequence, an evolutionary algorithm is used to perform iterative calculations to determine a target package sequence that satisfies the preset package allocation constraint conditions, so as to generate the sorting plan.

[0090] Among them, the preset package distribution constraint conditions refer to the pre-set restriction conditions for determining the optimal package distribution for the slots. In a specific embodiment, the preset package distribution constraint conditions can be that when distributing multiple slots, the number of slots on both sides should be relatively equal; high-efficiency packages should be placed together as much as possible; slots in adjacent provinces should be placed together as much as possible, etc. As shown in Figure 3, it is a schematic diagram of a transfer yard, in which area A and area B are two symmetrical sides, and the number of slots should be relatively equal.

[0091] Specifically, to satisfy the preset pack allocation constraints, an evolutionary algorithm (GA) can be used to swap the pack positions corresponding to the initial packs, achieving the pack allocation of the packs to each slot, obtaining the packs for each slot, and thus generating a sorting plan. The specific process is as follows: The initial pack sequence is encoded using an integer permutation method. For example, for N slots, the chromosome is divided into N segments, each of which is the number of the corresponding pack. The chromosome is then parsed, and a penalty is added to each slot that does not satisfy the preset pack allocation constraints. After parsing the Nth slot, the degree to which the chromosome satisfies the pack allocation constraints is obtained. If the sum of the penalties is 0, it indicates that the chromosome satisfies all pack allocation constraints. Next, two random integers r and q are generated in the interval [1, N] to determine the two pack positions. The intermediate data of the two pack positions are cross-linked, and two randomly selected points are swapped. Finally, an evolutionary reversal operation is performed. To improve the local search capability of the genetic algorithm, multiple evolutionary reversal operations are introduced after selection, crossover, and mutation. The evolution here refers to the unidirectional nature of the reversal operator, meaning that only chromosomes whose fitness increases to meet the preset fitness threshold after reversal are retained; otherwise, the reversal is invalid. Through multiple iterative searches, the fitness (penalty) decreases and eventually reaches 0, and at least one solution that satisfies the package allocation constraint is obtained. This solution that satisfies the package allocation constraint is the target package sequence. It can be understood that this embodiment allocates the packaged cards to each slot based on the preset package allocation constraint according to the optimal number of slots for the packaged cards, generating an optimal package position matching strategy, thereby ensuring the rationality of the sorting plan and greatly improving the sorting efficiency of the transfer station compared to traditional manual sorting.

[0092] It is worth noting that the number of solutions that satisfy the package-card allocation constraint can be one or more. If there are multiple solutions, each solution that satisfies the package-card allocation constraint is a target package-card sequence, that is, multiple sorting plans are generated. One sorting plan can be selected from the multiple sorting plans, and small pieces can be sorted in the transfer yard according to the selected sorting plan.

[0093] In this embodiment, the optimal number of slots for each package of cards is determined through an integer programming model, achieving the optimal distribution of the number of slots, and an evolutionary algorithm is used to distribute the packages of cards to each slot, achieving accurate distribution of the packages of cards and ensuring the optimal distribution of the packages and slots, thereby ensuring the rationality of the sorting plan and improving the sorting efficiency of the transfer yard.

[0094] In a specific embodiment, the operation 305 of iteratively calculating the target package sequence based on the initial package sequence using an evolutionary algorithm to determine the target package sequence that satisfies the preset package distribution constraint to generate the sorting plan may include the following operations 305A to 305C, specifically as follows:

[0095] Operation 305A: treating each of the initial packaged cards as a single packaged card chromosome, performing crossover mutation on the packaged card chromosome to generate multiple offspring packaged card individuals;

[0096] Operation 305B: selecting the child packaged individuals according to the packaged allocation constraint to obtain excellent packaged individuals;

[0097] Operation 305C: Iterate based on the excellent individual packages, and when a super-strong offspring package that meets preset conditions is generated, stop the iteration and use the initial package sequence corresponding to the super-strong offspring package as the target package sequence.

[0098] Specifically, by randomly exchanging the positions of the wrapped cards, whether it is exchanging the position of a single wrapped card chromosome (wrapped card) or cross-transforming multiple wrapped card chromosomes, offspring wrapped card individuals with different codes can be generated, or two individuals can exchange a segment or some chromosomes to produce new offspring individuals, and the offspring individuals are selected. Since the wrapped card chromosomes are in the process of evolution, that is, the excellent wrapped card individuals are iteratively calculated, for example, the excellent wrapped card individuals are hybridized in pairs, in the process of iteration, the population individuals are continuously updated, the fitness becomes stronger and stronger (the points deducted become less and less), and excellent offspring can be produced. When the excellent offspring meets the preset conditions, where the preset conditions can be a fitness of 100 points, it is determined to be a super-strong wrapped card offspring, and the iteration is stopped at this time, indicating that the solution is a sorting plan wrapped card distribution that meets the wrapped card distribution constraint conditions, that is, the initial wrapped card sequence corresponding to the super-strong offspring wrapped card is the target wrapped card sequence.

[0099] In a specific embodiment, the operation 305B of selecting the child packaged individuals according to the packaged allocation constraint to obtain the excellent packaged individuals may include the following operations 305B1 to 305B2, specifically as follows:

[0100] Operation 305B1: scoring the fitness of the offspring individual packers according to the pack allocation constraint to obtain a fitness score for each offspring individual packer.

[0101] Operation 305B2: Determine the offspring packaged individual whose fitness score is greater than a preset score threshold as the excellent packaged individual.

[0102] Specifically, the bag positions of the offspring bag individuals are analyzed, and the bags that do not meet any of the bag allocation constraints will be deducted points (for example, -1), and finally the fitness score of the offspring bag individual to the environment is obtained. The higher the fitness score, the more adapted the offspring bag individual is to the environment, and the more able it is to meet the bag allocation constraints. The offspring bag individuals with fitness scores greater than the preset score threshold are regarded as excellent bag individuals, thereby realizing the selection of offspring bag individuals.

[0103] In one specific embodiment, in operation 305C, iteration is performed based on the excellent individual packages. When a super-strong offspring package that meets preset conditions is generated, the iteration is stopped, and the initial package sequence corresponding to the super-strong offspring package is used as the target package sequence. Then, the following operations 306 to 307 may be further included, as follows:

[0104] Operation 306: If the number of the target packaged card sequences is greater than 1, then calculating the revenue corresponding to each target packaged card sequence based on the sorting cost matrix and the target packaged card sequence;

[0105] Operation 307: Determine the target package sequence with the highest profit as the optimal package sequence.

[0106] Specifically, if there are multiple target package sequences, the payoff corresponding to each target package sequence is calculated according to the target package sequence and the corresponding matrix using the following formula:

[0107] Among them, Y represents the income, r i-j The cost of mapping the i-th package to the j-th grid in the target package sequence, x ijThe weight corresponding to the cost of mapping the i-th package to the j-th slot in operations 302B1-302B2 is expressed in the same way as in operations 302B1-302B2 and will not be repeated here. Based on the target package sequence, the cost of mapping the i-th package to the j-th slot, as well as the weight of each cost, can be determined. The revenue of each target package sequence is then calculated. The target package sequence with the highest revenue is selected as the optimal package sequence, and a sorting plan is formed based on the optimal package sequence to guide sorting operations at the transfer station. Because this optimal package sequence has the highest revenue, the revenue of the sorting plan is maximized, improving the accuracy and efficiency of the sorting plan.

[0108] In order to better implement the sorting plan generation method in the embodiment of the present application, based on the sorting plan generation method, the embodiment of the present application further provides a sorting plan generation device. As shown in FIG4 , the sorting plan generation device 400 includes:

[0109] The acquisition module 401 is used to obtain the slot data and package data of the transfer yard;

[0110] A determination module 402 is configured to determine the optimal number of slots corresponding to each package of cards in the transfer yard based on the slot data and the package data using an integer programming model;

[0111] A first allocation module 403 is configured to randomly allocate the packs of cards to each slot according to the optimal number of slots to obtain an initial pack of cards corresponding to each slot;

[0112] A generating module 404 is configured to generate an initial packing sequence based on the initial packings corresponding to the respective slots;

[0113] The second allocation module 405 is used to perform iterative calculations using an evolutionary algorithm based on the initial package sequence to determine a target package sequence that meets preset package allocation constraints to generate a sorting plan.

[0114] In the embodiment of the present application, the determination module 402 is specifically configured to:

[0115] Constructing a sorting cost matrix for the transfer yard based on the slot data and package data;

[0116] Constructing an objective function of the transfer station according to the sorting cost matrix;

[0117] The objective function is used to analyze the preset slot allocation constraints to obtain the optimal number of slots for each package.

[0118] In the embodiment of the present application, the determining module 402 is further configured to:

[0119] Calculate the cost of mapping each package of cards to each slot based on the slot data and the package data;

[0120] The cost of mapping each package card to each slot is used as an element in the sorting cost matrix;

[0121] After completing the mapping of the package cards in the package card data, a sorting cost matrix is ​​constructed.

[0122] In the embodiment of the present application, the determining module 402 is further configured to:

[0123] Obtain the weight of each package mapped to each slot, where each weight corresponds to a cost in the sorting cost matrix;

[0124] Perform weighted summation on each cost in the sorting cost matrix and the corresponding weight to obtain the objective function of the transfer station.

[0125] In the embodiment of the present application, the second allocation module 405 is further configured to:

[0126] Taking each of the initial brand packs as a single brand pack chromosome, performing crossover mutation on the brand pack chromosome to generate a plurality of offspring brand pack individuals;

[0127] Selecting the offspring packaged individuals according to the packaged allocation constraint conditions to obtain excellent packaged individuals;

[0128] Iteration is performed based on the excellent individual packages, and when a super-strong offspring package that meets preset conditions is generated, the iteration is stopped, and the initial package sequence corresponding to the super-strong offspring package is used as the target package sequence.

[0129] In the embodiment of the present application, the second allocation module 405 is further configured to:

[0130] Performing fitness scoring on the offspring bagging individuals according to the bagging allocation constraint condition to obtain a fitness score for each offspring bagging individual;

[0131] The offspring packaged individual whose fitness score is greater than a preset score threshold is determined to be the excellent packaged individual.

[0132] In the embodiment of the present application, the sorting plan generating device further includes:

[0133] a calculation module, configured to calculate the revenue corresponding to each target package sequence based on the sorting cost matrix and the target package sequence if the number of the target package sequence is greater than 1;

[0134] The selection module is used to determine the target package sequence with the highest profit as the optimal package sequence. The embodiment of the present application also provides a computer device that integrates any of the sorting plan generation devices provided in the embodiment of the present application, and the computer device includes:

[0135] one or more processors;

[0136] Memory; and

[0137] One or more applications, wherein the one or more applications are stored in the memory and are configured to cause the processor to execute the operations of the sorting plan generating method described in any of the above-mentioned sorting plan generating method embodiments.

[0138] The present application also provides a computer device that integrates any of the sorting plan generation devices provided in the present application. As shown in FIG5 , it shows a schematic diagram of the structure of the computer device involved in the present application embodiment. Specifically:

[0139] The computer device may include one or more processing cores of a processor 701, one or more computer-readable storage media of a memory 702, a power supply 703, an input unit 704, and other components. Those skilled in the art will appreciate that the computer device structure shown in FIG5 does not limit the computer device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0140] Processor 701 is the control center of the computer device. It connects the various components of the entire computer device using various interfaces and lines. By running or executing software programs and / or modules stored in memory 702 and accessing data stored in memory 702, it performs various functions of the computer device and processes data, thereby providing overall monitoring of the computer device. Optionally, processor 701 may include one or more processing cores; preferably, processor 701 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 701.

[0141] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.

[0142] The computer device also includes a power supply 703 for supplying power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 703 can also include any combination of one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

[0143] The computer device may further include an input unit 704, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0144] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 701 in the computer device will load the executable files corresponding to one or more application processes into the memory 702 according to the following instructions, and the processor 701 will run the application stored in the memory 702 to implement various functions as follows:

[0145] Obtain the transit yard’s grid data and package data;

[0146] Based on the slot data and the package data, determining the optimal number of slots corresponding to each package in the transfer yard through an integer programming model;

[0147] Randomly assigning the packs of cards to each slot according to the optimal number of slots to obtain an initial pack of cards corresponding to each slot;

[0148] Based on the initial packing cards corresponding to the respective slots, an initial packing card sequence is generated;

[0149] According to the initial package card sequence, an evolutionary algorithm is used to perform iterative calculations to determine a target package card sequence that meets preset package card distribution constraints to generate a sorting plan.

[0150] Those skilled in the art will appreciate that all or part of the operations in the various methods of the above embodiments may be accomplished through instructions, or through instruction-controlled related hardware. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0151] To this end, embodiments of the present application provide a computer-readable storage medium, which may include a read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk. A computer program is stored thereon, and the computer program is loaded by a processor to perform the operations of any of the sorting plan generation methods provided in embodiments of the present application. For example, the computer program loaded by the processor may perform the following operations:

[0152] Obtain the transit yard’s grid data and package data;

[0153] Based on the slot data and the package data, determining the optimal number of slots corresponding to each package in the transfer yard through an integer programming model;

[0154] Randomly assigning the packs of cards to each slot according to the optimal number of slots to obtain an initial pack of cards corresponding to each slot;

[0155] Based on the initial packing cards corresponding to the respective slots, an initial packing card sequence is generated;

[0156] According to the initial package card sequence, an evolutionary algorithm is used to perform iterative calculations to determine a target package card sequence that meets preset package card distribution constraints to generate a sorting plan.

[0157] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above and will not be repeated here.

[0158] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to implement as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments and will not be repeated here.

[0159] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0160] The above describes in detail a sorting plan generation method, device, and storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core concept of the present application. At the same time, those skilled in the art may vary in the specific implementation methods and application scope based on the concept of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

Claims

1. A method for generating a sorting plan, the method comprising: Obtain the grid data and package data of the transfer yard; Based on the slot data and the package data, determining the optimal slot number corresponding to each package in the transfer yard through an integer programming model; According to the optimal number of slots, the packs of cards in each slot are randomly allocated to obtain the initial packs of cards corresponding to each slot; Based on the initial packages corresponding to the respective slots, an initial package sequence is generated.

2. The sorting plan generation method according to claim 1, wherein the integer programming model includes a preset slot allocation constraint condition; and the method of determining the optimal number of slots corresponding to each package in the transfer yard through the integer programming model based on the slot data and the package data comprises: Based on the slot data and package data, construct a sorting cost matrix of the transfer yard; Constructing the objective function of the transfer station according to the sorting cost matrix; The preset slot allocation constraint condition is analyzed using the objective function to obtain the optimal number of slots for each package.

3. The method for generating a sorting plan according to claim 2, wherein the step of constructing a sorting cost matrix of the transfer yard based on the slot data and the package data comprises: According to the slot data and the package data, respectively calculate the cost of mapping each package to each slot; The cost of mapping each package to each slot is used as an element in the sorting cost matrix; After completing the mapping of the package cards in the package card data, a sorting cost matrix is ​​constructed.

4. The method for generating a sorting plan according to claim 3, wherein the objective function of the transfer station is constructed according to the sorting cost matrix, comprising: Obtain the weight of each package mapped to each slot, each weight corresponding to a cost in the sorting cost matrix; The objective function of the transfer station is obtained by performing a weighted summation on each cost in the sorting cost matrix and the corresponding weight.

5. The method for generating a sorting plan according to claim 1, wherein the step of performing iterative calculations using an evolutionary algorithm based on the initial package sequence to determine a target package sequence that satisfies the preset package allocation constraint condition to generate the sorting plan comprises: Taking each of the initial brand packages as a single brand package chromosome, performing crossover mutation on the brand package chromosome to generate a plurality of offspring brand package individuals; Selecting the offspring packaged individuals according to the packaged allocation constraint conditions to obtain excellent packaged individuals; Iteration is performed based on the excellent individual packages, and when a super-strong offspring package that meets preset conditions is generated, iteration is stopped, and the initial package sequence corresponding to the super-strong offspring package is used as the target package sequence.

6. The method for generating a sorting plan according to claim 5, wherein the step of selecting the child package individuals according to the package allocation constraint conditions to obtain excellent package individuals comprises: According to the bag distribution constraint condition, the fitness scores of the offspring bag individuals are scored to obtain the fitness scores of the offspring bag individuals; Determine the offspring packaged individuals whose fitness scores are greater than a preset score threshold as the excellent packaged individuals.

7. The method for generating a sorting plan according to claim 3, after performing iteration based on the excellent individual packages, when a super-strong offspring package that meets preset conditions is generated, the iteration is stopped, and the initial package sequence corresponding to the super-strong offspring package is used as the target package sequence, the method further comprises: If the number of the target package card sequences is greater than 1, then based on the sorting cost matrix and the target package card sequences, the revenue corresponding to each target package card sequence is calculated; The target package sequence with the highest profit is determined as the optimal package sequence.

8. According to the method of claim 1, the operation of obtaining the grid data of the transfer site comprises: The number of slots, slot specifications and slot positions of the transfer yard are obtained as the slot data of the transfer yard.

9. According to the method of claim 1, the operation of obtaining the package data of the transfer yard comprises: The number of license plates packed in the transfer yard, the historical flow of license plates packed and the validity period of license plates packed are obtained as the license plate packing data of the transfer yard.

10. A sorting plan generating device, the sorting plan generating device comprising: The acquisition module is used to obtain the grid data and package data of the transfer yard; A determination module, used to determine the optimal number of slots corresponding to each package of cards in the transfer yard through an integer programming model based on the slot data and the package data; A first allocation module is used to randomly allocate the packs of cards in each slot according to the optimal number of slots to obtain an initial pack of cards corresponding to each slot; A generation module, used for generating an initial package sequence based on the initial package corresponding to each slot; The second allocation module is used to perform iterative calculations using an evolutionary algorithm based on the initial package sequence to determine a target package sequence that meets preset package allocation constraints to generate a sorting plan.

11. The device according to claim 10, wherein the determining module is specifically configured to: Based on the slot data and package data, construct a sorting cost matrix of the transfer yard; Constructing the objective function of the transfer station according to the sorting cost matrix; The objective function is used to analyze the preset slot allocation constraints to obtain the optimal number of slots for each package. quantity.

12. The apparatus according to claim 11, wherein the determining module is further configured to: According to the slot data and the package data, respectively calculate the cost of mapping each package to each slot; The cost of mapping each package to each slot is used as an element in the sorting cost matrix; After completing the mapping of the package cards in the package card data, a sorting cost matrix is ​​constructed.

13. The device according to claim 12, wherein the determining module is specifically configured to: Obtain the weight of each package mapped to each slot, each weight corresponding to a cost in the sorting cost matrix; The objective function of the transfer station is obtained by performing a weighted summation on each cost in the sorting cost matrix and the corresponding weight.

14. The device according to claim 10, wherein the second allocation module is specifically configured to: Taking each of the initial brand packages as a single brand package chromosome, performing crossover mutation on the brand package chromosome to generate a plurality of offspring brand package individuals; Selecting the offspring packaged individuals according to the packaged allocation constraint conditions to obtain excellent packaged individuals; Iteration is performed based on the excellent individual packages, and when a super-strong offspring package that meets preset conditions is generated, iteration is stopped, and the initial package sequence corresponding to the super-strong offspring package is used as the target package sequence.

15. The device according to claim 14, wherein the second allocation module is specifically configured to: According to the bag distribution constraint condition, the fitness scores of the offspring bag individuals are scored to obtain the fitness scores of the offspring bag individuals; Determine the offspring packaged individuals whose fitness scores are greater than a preset score threshold as the excellent packaged individuals.

16. The apparatus according to claim 12, further comprising: Compute module for: If the number of the target package card sequences is greater than 1, then based on the sorting cost matrix and the target package card sequences, the revenue corresponding to each target package card sequence is calculated; The target package sequence with the highest profit is determined as the optimal package sequence.

17. The device according to claim 10, wherein the acquisition module is configured to: The number of slots, slot specifications and slot positions of the transfer yard are obtained as the slot data of the transfer yard.

18. The device according to claim 10, wherein the acquisition module is configured to: The number of license plates packed in the transfer yard, the historical flow of license plates packed and the validity period of license plates packed are obtained as the license plate packing data of the transfer yard.

19. A computer device comprising: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the operations of the method according to any one of claims 1 to 9.

20. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to implement the operation of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

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

    CN112801323A

  • Transfer yard planning method and device, server and storage medium

    CN113112107A

  • Sorting method and sorting device

    CN113770037A

  • Sorting scheme generation method and device, computer equipment and storage medium

    CN113926714A

  • Dynamically generating a sort zone assignment plan

    US11093891B1

Cited By

  • Material supply method and system

    CN119623748A

  • Method and system for automatically sorting wear-resistant grades of arrow belt finished products

    CN120920388A