Loading scheme generation method and device, electronic equipment and storage medium

Through the integration of tree search algorithm and multiple search strategies, the problem of difficulty in meeting the high space loading rate of three-dimensional packing in the existing technology is solved, and efficient packing solution search and stability improvement are achieved.

CN118568796APending Publication Date: 2024-08-30THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310228426.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The three-dimensional packing method in the existing technology is difficult to meet the demand for high space loading rate in actual packing scenarios.

Method used

Using a tree search algorithm and integrating multiple search strategies, the box blocks are efficiently searched in parallel by building a search tree, and the solution with the highest space loading rate is obtained from multiple loading solutions to guide the actual packing process.

Benefits of technology

It effectively improves the space loading rate of containers in actual packing scenarios, shortens the search time for loading solutions, and ensures the stability and efficiency of packing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568796A
    Figure CN118568796A
Patent Text Reader

Abstract

The invention relates to a loading scheme generation method and device, electronic equipment and a storage medium. The loading scheme generation method comprises the steps of obtaining a plurality of virtual box blocks; based on the multiple virtual box blocks and preset constraint conditions, multiple search strategies are adopted to construct a search tree in parallel, and tree nodes of the search tree are used for indicating the loading state of the virtual loading container for loading the virtual box blocks; obtaining a loading scheme corresponding to each search strategy based on the constructed search tree; and determining the loading scheme with the highest space loading rate in the obtained various loading schemes as the loading scheme for guiding the actual boxing process. A tree search algorithm is adopted, multiple search strategies are integrated, the optimal loading scheme is obtained from multiple loading schemes corresponding to the multiple search strategies to be used for guiding the actual boxing process, and the space loading rate of containers in the actual boxing scene can be effectively increased. In addition, the time for searching the loading scheme is effectively shortened by considering the box blocks instead of a single box, and the searching efficiency of the loading scheme is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a method, device, electronic device and storage medium for generating a loading plan. Background Art

[0002] "Three-dimensional packing" means loading a given series of regular rectangular boxes into a regular rectangular container, for example, into a container, and the total volume of the boxes in the loading container needs to be as large as possible, that is, the space loading rate needs to be increased as much as possible.

[0003] At a time when e-commerce business is developing rapidly, "3D packing" has a wide range of application scenarios. For example, in the scenario of packing in logistics trucks, or in the scenario of packing goods in the same order, the "3D packing" solution can guide the actual packing process and enable the items to be quickly and efficiently loaded into the container. In the related technology, the relatively inefficient knapsack problem dynamic programming algorithm, genetic algorithm and other algorithms are mainly used to solve the 3D packing problem. However, the 3D packing method in the related technology is difficult to meet the demand for high space loading rate in the actual packing scenario. Summary of the invention

[0004] The present disclosure provides a loading plan generation method, device, electronic device and storage medium to at least solve the problem in the above-mentioned related technologies that the three-dimensional packing method is difficult to meet the demand for high space loading rate in actual packing scenarios.

[0005] According to a first aspect of an embodiment of the present disclosure, a loading scheme generating method is provided, comprising: obtaining a plurality of virtual box blocks based on preset constraints corresponding to each virtual box in a plurality of virtual boxes, wherein each of the virtual box blocks includes at least one virtual box; constructing a search tree in parallel using a plurality of search strategies based on the plurality of virtual box blocks and the preset constraints, wherein a tree node of the search tree is used to indicate a loading state of a virtual loading container loading the virtual box blocks; obtaining a loading scheme corresponding to each search strategy based on the constructed search tree; and determining a loading scheme with the highest space loading rate among the plurality of loading schemes obtained as a loading scheme for guiding an actual packing process.

[0006] Optionally, the search strategy includes a priority queue search strategy, which is based on the multiple virtual box blocks and the preset constraints and uses multiple search strategies to construct a search tree in parallel, including: based on the multiple virtual box blocks and the preset constraints, constructing a queue search tree corresponding to the priority queue search strategy in an iterative manner; wherein, for each iteration process, the following operations are performed until the iteration terminates: determining at least one tree node contained in the current bottom layer of the queue search tree at the beginning of this iteration; obtaining the temporary space loading rate corresponding to each tree node in the at least one tree node through a greedy algorithm, wherein the temporary space loading rate is the space loading rate of the temporary loading scheme obtained by expanding the greedy child nodes of each tree node using the greedy algorithm; using multiple formal child nodes of the next layer of the first tree node corresponding to the maximum temporary space loading rate in the at least one tree node as at least one tree node contained in the current bottom layer of the queue search tree at the beginning of the next iteration.

[0007] Optionally, it also includes: determining at least one split space corresponding to the first tree node, wherein the at least one split space is a split space obtained by splitting other spaces in the virtual loading container, and the other spaces are spaces in the virtual loading container other than the space occupied by the virtual box blocks contained in the first tree node; sorting the virtual box blocks that are not loaded into the virtual loading container in the plurality of virtual box blocks in descending order of the corresponding effective use space volumes to obtain sorted virtual box blocks, wherein the effective use space volume is the difference between the total volume of the virtual box blocks that can be put into the virtual loading container and the volume of the wasted space; for each split space in the at least one split space, selecting a preset first number of virtual box blocks whose corresponding volumes are smaller than the volume of each split space and whose corresponding effective use space volumes are ranked in the front from the sorted virtual box blocks; simulating loading each virtual box block in the preset first number of virtual box blocks into each split space to obtain a plurality of formal child nodes of the next layer of the first tree node.

[0008] Optionally, the method of obtaining the temporary space loading rate corresponding to each tree node in the at least one tree node by a greedy algorithm includes: for each tree node in the at least one tree node, obtaining a plurality of greedy child nodes corresponding to each tree node in an iterative manner and having a superior-subordinate relationship; taking the space loading rate of the temporary loading scheme corresponding to the greedy child node in the lowest layer of the plurality of greedy child nodes as the temporary space loading rate; wherein, for each iteration process, the following operations are performed until the iteration terminates: determining the current tree node at the beginning of this iteration; determining the largest split space with the largest volume among at least one split space corresponding to the current tree node; determining the target virtual box block with the largest corresponding effective use space volume among the plurality of virtual box blocks, whose corresponding volume is smaller than the volume of the largest split space, and which has not been loaded into the virtual loading container; placing the target virtual box block into the largest split space to obtain the greedy child node of the current tree node, and taking the greedy child node as the current tree node at the beginning of the next iteration.

[0009] Optionally, the iterative termination condition for obtaining the multiple greedy child nodes corresponding to each tree node in an iterative manner is: any split space in at least one split space corresponding to the current tree node cannot accommodate any virtual box block in the multiple virtual box blocks.

[0010] Optionally, the search strategy includes a depth-first search strategy, and based on the multiple virtual box blocks and the preset constraints, a plurality of search strategies are used to construct a search tree in parallel, including: based on the multiple virtual box blocks and the preset constraints, a depth search tree corresponding to the depth-first search strategy is constructed in an iterative manner; wherein, for each iteration process, the following operations are performed until the iteration is terminated: determining at least one tree node contained in the current bottom layer of the depth search tree at the beginning of this iteration; for each tree node in the at least one tree node, obtaining multiple temporary space loading rates corresponding to multiple formal child nodes in the next layer of each tree node, and taking the maximum temporary space loading rate among the multiple temporary space loading rates as the temporary space loading rate of each tree node; determining multiple formal child nodes in the next layer of the second tree node corresponding to the maximum temporary space loading rate in the at least one tree node as at least one tree node contained in the current bottom layer of the depth search tree at the beginning of the next iteration.

[0011] Optionally, the search strategy includes a fixed search strategy, and based on the multiple virtual box blocks and the preset constraints, a plurality of search strategies are used to construct a search tree in parallel, including: based on the multiple virtual box blocks and the preset constraints, a fixed search tree corresponding to the fixed search strategy is constructed in an iterative manner; wherein, for each iteration process, the following operations are performed until the iteration is terminated: determining at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of this iteration; for each tree node in the at least one tree node, obtaining a plurality of temporary space loading rates corresponding to a plurality of test sub-nodes of the lower n layers of each tree node, and taking the maximum temporary space loading rate among the plurality of temporary space loading rates as the temporary space loading rate of each tree node, wherein n>1; determining a plurality of formal sub-nodes of the next layer of the third tree node corresponding to the maximum temporary space loading rate in the at least one tree node as at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of the next iteration.

[0012] Optionally, the search strategy includes a random sampling search strategy, and based on the multiple virtual box blocks and the preset constraints, a plurality of search strategies are used to construct a search tree in parallel, including: based on the multiple virtual box blocks and the preset constraints, a preset second number of iteration operations are performed to obtain the preset second number of random search trees corresponding to the random sampling search strategy; wherein, for each iteration process, the following operations are performed until the iteration terminates: determining at least one tree node contained in the current bottom layer of the random search tree at the beginning of this iteration; obtaining the temporary space loading rate corresponding to each tree node in the at least one tree node; determining the preset third number of tree nodes whose corresponding temporary space loading rates in the at least one tree node are ranked in the front preset third number positions; randomly selecting a fourth tree node from the preset third number of tree nodes, and using multiple formal child nodes of the next layer of the fourth tree node as the at least one tree node contained in the current bottom layer of the random search tree at the beginning of the next iteration.

[0013] Optionally, the search strategy includes a two-stage search strategy, which is based on the multiple virtual box blocks and the preset constraints and uses multiple search strategies to construct a search tree in parallel, including: based on the multiple virtual box blocks and the preset constraints, constructing a random search tree corresponding to the random sampling search strategy through a first-stage random sampling search strategy, wherein the tree nodes contained in the random search tree correspond to multiple used virtual box blocks; based on the multiple used virtual box blocks, constructing a target tree corresponding to the target search strategy through a second-stage target search strategy, wherein the target search strategy is any one of a priority queue search strategy, a depth-first search strategy, a fixed search strategy, and a random sampling search strategy.

[0014] Optionally, an iterative termination condition for constructing a search tree using the search strategy is that the number of formal child nodes contained in the search tree reaches a preset first threshold, or the number of layers contained in the search tree reaches a preset second threshold.

[0015] Optionally, obtaining a plurality of virtual box blocks based on preset constraints corresponding to each virtual box in the plurality of virtual boxes includes: expanding and stacking a plurality of virtual boxes of the same type in a preset direction based on the preset constraints corresponding to each virtual box in the plurality of virtual boxes to obtain the plurality of virtual box blocks.

[0016] Optionally, based on the preset constraint conditions corresponding to each virtual box in the multiple virtual boxes, the multiple virtual boxes of the same type are expanded and stacked in a preset direction to obtain the multiple virtual box blocks, including: based on the preset constraint conditions corresponding to each virtual box in the multiple virtual boxes, the multiple virtual boxes of the same type are expanded and stacked in the preset direction to obtain a single virtual box block; and the multiple single virtual box blocks are expanded and stacked in the preset direction to obtain multiple composite virtual box blocks.

[0017] Optionally, the preset constraints are: whether the virtual box is allowed to be rotated and placed in three dimensions of length, width and height, and / or whether other virtual boxes are allowed to be stacked on top of the virtual box, and / or the maximum number of other virtual boxes allowed to be stacked on top of the virtual box.

[0018] Optionally, based on the multiple virtual box blocks and the preset constraints, a plurality of search strategies are used to construct a search tree in parallel, including: based on the multiple virtual box blocks and the preset constraints, a single search tree of each search strategy is constructed respectively using each of the multiple search strategies.

[0019] Optionally, based on the multiple virtual box blocks and the preset constraints, a plurality of search strategies are used to construct a search tree in parallel, including: based on the multiple virtual box blocks and the preset constraints, each of a plurality of hybrid search strategies is used to respectively construct a hybrid search tree of each hybrid search strategy, wherein the hybrid search strategy includes at least two of the multiple search strategies.

[0020] According to a second aspect of an embodiment of the present disclosure, there is provided a loading scheme generating device, comprising: a virtual box block acquiring module, configured to acquire a plurality of virtual box blocks based on preset constraints corresponding to each virtual box in a plurality of virtual boxes, wherein each of the virtual box blocks contains at least one virtual box; a search tree building module, configured to construct a search tree in parallel using a plurality of search strategies based on the plurality of virtual box blocks and the preset constraints, wherein the tree nodes of the search tree are used to indicate the loading status of a virtual loading container loading the virtual box blocks; a loading scheme acquiring module, configured to acquire the loading scheme corresponding to each search strategy based on the constructed search tree; and a loading scheme determining module, configured to determine the loading scheme with the highest space loading rate among the acquired plurality of loading schemes as the loading scheme for guiding the actual packing process.

[0021] Optionally, the search strategy includes a priority queue search strategy, and the search tree construction module is configured to: based on the multiple virtual box blocks and the preset constraints, construct a queue search tree corresponding to the priority queue search strategy in an iterative manner; wherein, for each iteration process, perform the following operations until the iteration terminates: determine at least one tree node contained in the current bottom layer of the queue search tree at the beginning of this iteration; obtain the temporary space loading rate corresponding to each tree node in the at least one tree node through a greedy algorithm, wherein the temporary space loading rate is the space loading rate of the temporary loading scheme obtained by expanding the greedy child nodes of each tree node using the greedy algorithm; use multiple formal child nodes of the next layer of the first tree node corresponding to the maximum temporary space loading rate in the at least one tree node as at least one tree node contained in the current bottom layer of the queue search tree at the beginning of the next iteration.

[0022] Optionally, the loading scheme generating device further comprises: a segmentation space determining module, configured to determine at least one segmentation space corresponding to the first tree node, wherein the at least one segmentation space is a segmentation space obtained by segmenting other spaces in the virtual loading container, and the other spaces are spaces in the virtual loading container other than the spaces occupied by the virtual box blocks contained in the first tree node; and a sorting module, configured to sort the virtual box blocks that are not loaded into the virtual loading container among the multiple virtual box blocks in descending order of the corresponding effective use space volumes, to obtain sorted virtual box blocks , wherein the effective use space volume is the difference between the total volume of the virtual box blocks that can be placed in the virtual loading container and the volume of the wasted space; the selection module is configured to select, for each of the at least one split space, a preset first number of virtual box blocks whose corresponding volume is smaller than the volume of each split space and whose corresponding effective use space volume is ranked in the front from the sorted virtual box blocks; the loading module is configured to simulate loading each virtual box block in the preset first number of virtual box blocks into each split space to obtain multiple formal child nodes of the next layer of the first tree node.

[0023] Optionally, the search tree construction module is configured to: for each tree node in the at least one tree node, obtain a plurality of greedy child nodes corresponding to each tree node in an iterative manner and having a superior-subordinate relationship; use the space loading rate of the temporary loading scheme corresponding to the greedy child node in the lowest layer of the plurality of greedy child nodes as the temporary space loading rate; wherein, for each iteration process, perform the following operations until the iteration terminates: determine the current tree node at the beginning of this iteration; determine the maximum split space with the largest volume among the at least one split space corresponding to the current tree node; determine the target virtual box block among the plurality of virtual box blocks that has the largest corresponding effective use space volume, has a corresponding volume smaller than the volume of the maximum split space, and has not been loaded into the virtual loading container; place the target virtual box block into the maximum split space to obtain the greedy child node of the current tree node, and use the greedy child node as the current tree node at the beginning of the next iteration.

[0024] Optionally, the iterative termination condition for obtaining the multiple greedy child nodes corresponding to each tree node in an iterative manner is: any split space in at least one split space corresponding to the current tree node cannot accommodate any virtual box block in the multiple virtual box blocks.

[0025] Optionally, the search strategy includes a depth-first search strategy, and the search tree construction module is configured to: based on the multiple virtual box blocks and the preset constraints, construct a depth search tree corresponding to the depth-first search strategy in an iterative manner; wherein, for each iteration process, the following operations are performed until the iteration is terminated: determine at least one tree node contained in the current bottom layer of the depth search tree at the beginning of this iteration; for each tree node in the at least one tree node, obtain multiple temporary space loading rates corresponding to multiple formal child nodes in the next layer of each tree node, and use the maximum temporary space loading rate among the multiple temporary space loading rates as the temporary space loading rate of each tree node; determine the multiple formal child nodes in the next layer of the second tree node corresponding to the maximum temporary space loading rate in the at least one tree node as the at least one tree node contained in the current bottom layer of the depth search tree at the beginning of the next iteration.

[0026] Optionally, the search strategy includes a fixed search strategy, and the search tree construction module is configured to: based on the multiple virtual box blocks and the preset constraints, construct a fixed search tree corresponding to the fixed search strategy in an iterative manner; wherein, for each iteration process, perform the following operations until the iteration is terminated: determine at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of this iteration; for each tree node in the at least one tree node, obtain multiple temporary space loading rates corresponding to multiple test sub-nodes of the lower n layers of each tree node, and use the maximum temporary space loading rate among the multiple temporary space loading rates as the temporary space loading rate of each tree node, wherein n>1; determine the multiple formal sub-nodes of the next layer of the third tree node corresponding to the maximum temporary space loading rate in the at least one tree node as the at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of the next iteration.

[0027] Optionally, the search strategy includes a random sampling search strategy, and the search tree construction module is configured to: based on the multiple virtual box blocks and the preset constraints, perform a preset second number of iteration operations to obtain the preset second number of random search trees corresponding to the random sampling search strategy; wherein, for each iteration process, perform the following operations until the iteration terminates: determine at least one tree node contained in the current bottom layer of the random search tree at the beginning of this iteration; obtain the temporary space loading rate corresponding to each tree node in the at least one tree node; determine the preset third number of tree nodes whose corresponding temporary space loading rates in the at least one tree node are ranked in the front preset third number positions; randomly select a fourth tree node from the preset third number of tree nodes, and use multiple formal child nodes of the next layer of the fourth tree node as at least one tree node contained in the current bottom layer of the random search tree at the beginning of the next iteration.

[0028] Optionally, the search strategy includes a two-stage search strategy, and the search tree construction module is configured to: based on the multiple virtual box blocks and the preset constraints, construct a random search tree corresponding to the random sampling search strategy through a first-stage random sampling search strategy, wherein the tree nodes contained in the random search tree correspond to multiple used virtual box blocks; based on the multiple used virtual box blocks, construct a target tree corresponding to the target search strategy through a second-stage target search strategy, wherein the target search strategy is any one of a priority queue search strategy, a depth-first search strategy, a fixed search strategy, and a random sampling search strategy.

[0029] Optionally, an iterative termination condition for constructing a search tree using the search strategy is that the number of formal child nodes contained in the search tree reaches a preset first threshold, or the number of layers contained in the search tree reaches a preset second threshold.

[0030] Optionally, the virtual box block acquisition module is configured to: based on a preset constraint condition corresponding to each virtual box in the multiple virtual boxes, expand and stack multiple virtual boxes of the same type in a preset direction to obtain the multiple virtual box blocks.

[0031] Optionally, the virtual box block acquisition module is configured to: based on the preset constraint conditions corresponding to each virtual box in the multiple virtual boxes, expand and stack the multiple virtual boxes of the same type in the preset direction to obtain a single virtual box block; expand and stack multiple single virtual box blocks in the preset direction to obtain multiple composite virtual box blocks.

[0032] Optionally, the preset constraints are: whether the virtual box is allowed to be rotated and placed in three dimensions of length, width and height, and / or whether other virtual boxes are allowed to be stacked on top of the virtual box, and / or the maximum number of other virtual boxes allowed to be stacked on top of the virtual box.

[0033] Optionally, the search tree construction module is configured to: based on the multiple virtual box blocks and the preset constraints, use each of the multiple search strategies to respectively construct a single search tree for each search strategy.

[0034] Optionally, the search tree construction module is configured to: based on the multiple virtual box blocks and the preset constraints, use each of the multiple hybrid search strategies to respectively construct a hybrid search tree for each hybrid search strategy, wherein the hybrid search strategy includes at least two of the multiple search strategies.

[0035] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement a loading scheme generating method according to the present disclosure.

[0036] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the loading scheme generating method according to the present disclosure.

[0037] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0038] The present disclosure adopts a tree search algorithm and integrates multiple search strategies to efficiently search for loading solutions of box blocks in parallel, and obtains the optimal loading solution (i.e., the loading solution with the highest space loading rate) from multiple loading solutions corresponding to multiple search strategies to guide the actual packing process, which can effectively improve the space loading rate of containers in actual packing scenarios. In addition, when searching for loading solutions, the boxes are pre-assembled into box blocks, and the time for searching loading solutions is effectively shortened by considering box blocks rather than single boxes, which greatly improves the search efficiency of loading solutions and also provides a guarantee for the stability of packing.

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

[0040] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0041] Figure 1 is a flow chart showing a method for generating a loading plan according to an exemplary embodiment of the present disclosure;

[0042] Figure 2 is a schematic diagram showing a queue search tree according to an exemplary embodiment of the present disclosure;

[0043] Figure 3 is a schematic diagram showing three segmentation spaces corresponding to a first tree node S1 according to an exemplary embodiment of the present disclosure;

[0044] Figure 4 is a schematic diagram showing a deep search tree according to an exemplary embodiment of the present disclosure;

[0045] Figure 5 is a schematic diagram showing a fixed search tree according to an exemplary embodiment of the present disclosure;

[0046] Figure 6 is a schematic diagram showing a random search tree according to an exemplary embodiment of the present disclosure;

[0047] Figure 7 is a specific implementation flow chart showing a method for generating a loading plan according to an exemplary embodiment of the present disclosure;

[0048] Figure 8 is a schematic diagram showing an actual packing scenario according to an exemplary embodiment of the present disclosure;

[0049] Fig. 9 is a block diagram showing a loading plan generating device according to an exemplary embodiment of the present disclosure;

[0050] Fig.10 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0051] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0053] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0054] In the related art, relatively inefficient knapsack problem dynamic programming algorithms, genetic algorithms, and other algorithms are mainly used to solve the three-dimensional packing problem. However, the three-dimensional packing methods in the related art are difficult to meet the requirements for high space loading rate in actual packing scenarios.

[0055] In order to solve the above problems in the related art, the present disclosure provides a loading scheme generation method, device, electronic device and storage medium, which adopts a tree search algorithm and integrates multiple search strategies to efficiently search for loading schemes of box blocks in parallel, and obtains the optimal loading scheme (i.e., the loading scheme with the highest space loading rate) from multiple loading schemes corresponding to multiple search strategies to guide the actual packing process, which can effectively improve the space loading rate of containers in actual packing scenarios. In addition, when searching for loading schemes, the boxes are pre-assembled into box blocks, and the time for searching loading schemes is effectively shortened by considering box blocks rather than single boxes, which greatly improves the search efficiency of loading schemes and also provides a guarantee for the stability of packing.

[0056] Figure 1 is a flowchart illustrating a method for generating a loading plan according to an exemplary embodiment of the present disclosure.

[0057] Reference Figure 1In step 101, a plurality of virtual box blocks may be obtained based on preset constraints corresponding to each virtual box in the plurality of virtual boxes. Each virtual box block may include at least one virtual box, the volume of each virtual box block needs to be less than or equal to the volume of the virtual loading container, and the number of virtual boxes of various types included in each virtual box block needs to be less than or equal to the number of real boxes of the same type in the real loading scene.

[0058] Moreover, the virtual box in the present disclosure is constructed based on the size of the real box in the real loading scene, that is, the virtual box in the present disclosure corresponds to the real box in the real loading scene; the virtual loading container in the present disclosure is constructed based on the size of the actual loading container in the real loading scene, that is, the virtual loading container in the present disclosure corresponds to the actual loading container in the real loading scene.

[0059] According to an exemplary embodiment of the present disclosure, multiple virtual boxes of the same type can be expanded and stacked in a preset direction based on the preset constraint conditions corresponding to each virtual box in the multiple virtual boxes to obtain multiple virtual box blocks. For example, multiple virtual boxes of the same type can be expanded and stacked in three dimensions of length, width, and height to obtain multiple virtual box blocks. Each virtual box block may be a cuboid. In this way, since the sizes of virtual boxes of the same type in the three dimensions of length, width, and height are the same, the shape of the virtual box blocks expanded and stacked using virtual boxes of the same type is relatively regular, for example, it may be a regular cuboid, which is convenient for loading into a virtual loading container, that is, the loading space in the virtual loading container can be fully utilized as much as possible, and a high space loading rate can be guaranteed.

[0060] According to an exemplary embodiment of the present disclosure, based on the preset constraint conditions corresponding to each virtual box in the multiple virtual boxes, multiple virtual boxes of the same type can be expanded and stacked in a preset direction to obtain a single virtual box block. Then, multiple single virtual box blocks can be expanded and stacked in a preset direction to obtain multiple composite virtual box blocks. In this way, by expanding and stacking different types of single virtual box blocks, a composite virtual box block with a more regular shape and a larger volume can be obtained, so as to more fully utilize the loading space in the virtual loading container, thereby ensuring a higher space loading rate.

[0061] In step 102, a search tree may be constructed in parallel using multiple search strategies based on multiple virtual box blocks and preset constraints, wherein the tree nodes of the search tree may be used to indicate the loading status of the virtual loading container loading the virtual box block.

[0062] For example, the root node of the search tree can be used to indicate the loading status of a virtual loading container in which no virtual box blocks are loaded, that is, the root node of the search tree can be used to indicate an empty virtual loading container; each of the multiple formal child nodes of the next level of the root node of the search tree can be used to indicate the loading status of a virtual box block loaded in the virtual loading container; each of the multiple formal child nodes of the next level of each of these formal child nodes can be used to indicate the loading status of two virtual box blocks loaded in the virtual loading container, and so on.

[0063] According to an exemplary embodiment of the present disclosure, the above-mentioned “preset constraints” may be: whether the virtual box is allowed to be rotated and placed in three dimensions of length, width and height, and / or whether other virtual boxes are allowed to be stacked on top of the virtual box, and / or the maximum number of other virtual boxes allowed to be stacked on top of the virtual box.

[0064] It should be noted that in actual packing scenarios, some real boxes have requirements for placement direction, for example, only upright placement is allowed, sideways placement or inverted placement is not allowed, etc.; and each real box has a corresponding maximum weight that it can carry. For example, the goods contained in some real boxes are easy to deform, so other real boxes are generally not allowed to be stacked on top of the real box, or the number of other real boxes allowed to be stacked on top of the real box cannot exceed the maximum number that the real box can carry. Therefore, when constructing the search tree, it is necessary to consider the preset constraints of each virtual box, so as to ensure that the real box loaded into the real loading container in the actual packing scenario will not be squeezed and deformed, thereby ensuring the stability and reliability of the packing.

[0065] According to an exemplary embodiment of the present disclosure, the above search strategy may include a priority queue search strategy. Based on multiple virtual box blocks and preset constraints, a queue search tree corresponding to the priority queue search strategy may be constructed in an iterative manner. For each iteration process, the following operations may be performed until the iteration is terminated:

[0066] At least one tree node contained in the current bottom layer of the queue search tree at the beginning of this iteration may be determined. Figure 2 is a schematic diagram showing a queue search tree according to an exemplary embodiment of the present disclosure. Figure 2(a), the root node of the queue search tree is S. As mentioned above, the root node S can be used to indicate the loading state of no virtual box block in the virtual loading container, that is, the root node S can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node S, namely S1~S20, each of which can be used to indicate the loading state of a virtual box block in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the queue search tree at the beginning of this iteration is S1~S20.

[0067] Next, the temporary space loading rate corresponding to each tree node in at least one tree node can be obtained by a greedy algorithm, that is, the temporary space loading rate corresponding to each formal child node in S1 to S20 can be obtained by a greedy algorithm, so that a total of 20 temporary space loading rates can be obtained. Among them, the temporary space loading rate can be the space loading rate of the temporary loading solution obtained by expanding the greedy child nodes of each tree node using the greedy algorithm.

[0068] Then, the multiple formal child nodes of the next layer of the first tree node corresponding to the maximum temporary space loading rate in at least one tree node can be used as at least one tree node included in the current bottom layer of the queue search tree at the beginning of the next iteration. Assuming that the first tree node corresponding to the maximum temporary space loading rate in S1~S20 is the formal child node S1, the multiple formal child nodes of the next layer of the formal child node S1 can be used as at least one tree node included in the current bottom layer of the queue search tree at the beginning of the next iteration. Figure 2 (b) There may be a total of 60 formal child nodes S1.1 to S1.60 at the next level of the first tree node S1. These 60 formal child nodes S1.1 to S1.60 may be used as at least one tree node contained in the current bottom layer of the queue search tree at the beginning of the next iteration.

[0069] In this way, the priority queue search strategy can give priority to expanding those tree nodes with the largest temporary space loading rate, that is, it can give priority to expanding those nodes that appear to have the best final loading plan, that is, it can give priority to expanding those tree nodes with the greatest potential, while ignoring tree nodes with relatively poor potential, thereby ensuring that the loading plan corresponding to the search tree obtained after the expansion is a loading plan with a relatively high space loading rate, thereby ensuring the space loading rate in the actual packing scenario.

[0070] According to an exemplary embodiment of the present disclosure, at least one split space corresponding to the first tree node may also be determined, wherein the at least one split space may be a split space obtained by splitting other spaces in the virtual loading container, and the other spaces may be spaces in the virtual loading container other than the spaces occupied by the virtual box blocks contained in the first tree node.

[0071] As mentioned above, the first tree node may be a formal child node S1, and the formal child node S1 is used to indicate the loading state of a virtual box block in the virtual loading container. At this time, the first tree node S1 may correspond to three split spaces. Among them, the three split spaces may be split spaces obtained by splitting other spaces in the virtual loading container, and the other spaces may be spaces in the virtual loading container other than the space occupied by the virtual box block contained in the first tree node S1.

[0072] Figure 3 is a schematic diagram showing three segmentation spaces corresponding to a first tree node S1 according to an exemplary embodiment of the present disclosure. Figure 3 , showing a total of 6 types of segmentation spaces Figure 3 (a)~ Figure 3 (f). Among them, Figure 3 (a) Figure 3 (b) Figure 3 (c) Figure 3 (e) These four space segmentation methods cannot be used because there are "suspended" segments in the three segments included in each of these four segmentation methods. These "suspended" segments cannot be packed into real boxes in actual packing scenarios. Figure 3 (a) Figure 3 (b) Figure 3 (c) Figure 3 (e) The split spaces indicated by the arrows in these four figures are the split spaces in the "suspended state". Figure 3 (d) Figure 3 (f) These two spatial segmentation methods can be used. Figure 3 (d) This spatial segmentation method is used as an example for subsequent explanation.

[0073] Next, the virtual box blocks that have not been loaded into the virtual loading container among the multiple virtual box blocks can be sorted in descending order of the corresponding effective usable space volumes to obtain sorted virtual box blocks. That is, the virtual box blocks among the multiple virtual box blocks except the virtual box blocks included in the first tree node S1 that have been loaded into the virtual loading container can be sorted in descending order of the corresponding effective usable space volumes to obtain sorted virtual box blocks.

[0074] The "effective use space volume" can be the difference between the total volume of virtual box blocks that can be placed in the virtual loading container and the volume of wasted space. For example, assuming that the capacity of the virtual loading container is 10, there is a virtual box block with a volume of 5 and multiple virtual box blocks with a volume of 2. For a virtual box block with a volume of 5, if the virtual box block with a volume of 5 is placed in the virtual loading container, the virtual loading container can at most load two more virtual box blocks with a volume of 2. At this time, the "total volume of virtual box blocks that can be placed in the virtual loading container" is: 5+2+2=9, and there will be 10-9=1 space wasted. In this way, the "effective use space volume" corresponding to the virtual box block with a volume of 5 is:

[0075] “Total volume of virtual box blocks that can be placed in the virtual loading container” - “volume of wasted space” = 9 - 1 = 8.

[0076] For a virtual box block with a volume of 2, if the virtual box block with a volume of 2 is placed in a virtual loading container, the virtual loading container can hold up to 4 more virtual box blocks with a volume of 2. At this time, the "total volume of virtual box blocks that can be placed in the virtual loading container" is 2+2+2+2+2=10, and 10-10=0 space will be wasted. In this way, the "effective use space volume" corresponding to the virtual box block with a volume of 2 is:

[0077] "Total volume of virtual box blocks that can be put into the virtual loading container" - "volume of wasted space" = 10 - 0 = 10. At this time, since the "effective use space volume" 10 corresponding to the virtual box block with a volume of 2 is greater than the "effective use space volume" 8 corresponding to the virtual box block with a volume of 5, the virtual box block with a volume of 2 is ranked in front of the virtual box block with a volume of 5.

[0078] Then, for each of the at least one split space, a preset first number of virtual box blocks whose corresponding volume is smaller than the volume of each split space and whose corresponding effective use space volume ranks in the front can be selected from the sorted virtual box blocks. The preset first number can be set according to actual needs, and can be set to 20 for example. At this time, for each of the three split spaces corresponding to the first tree node S1, 20 virtual box blocks whose corresponding volume is smaller than the volume of the split space and whose corresponding effective use space volume ranks in the front can be selected from the sorted virtual box blocks.

[0079] Next, each virtual box block in the preset first number of virtual box blocks can be simulated into each split space to obtain multiple formal child nodes of the next layer of the first tree node. As mentioned above, since the first tree node S1 corresponds to 3 split spaces, and each split space can correspond to 20 virtual box blocks, for each of the 3 split spaces, after each virtual box block in the 20 virtual box blocks is simulated into the split space, 3×20=60 formal child nodes of the next layer of the first tree node S1 can be obtained.

[0080] In this way, when expanding the formal child nodes of the tree node, for each of the multiple split spaces corresponding to the tree node, the virtual box blocks with the largest effective space volume are selected to be loaded into the split space, that is, the virtual box blocks with smaller wasted space volume are selected to be loaded into the split space. This can make the volume of wasted space in each split space as small as possible, that is, make the space loading rate of each split space as large as possible, and thus ensure that the loading plan corresponding to the search tree that is finally expanded has a relatively high space loading rate.

[0081] According to an exemplary embodiment of the present disclosure, for each tree node in at least one tree node, multiple greedy child nodes corresponding to each tree node and having a superior-subordinate relationship can be obtained in an iterative manner. Then, the space loading rate of the temporary loading solution corresponding to the greedy child node at the bottom of the multiple greedy child nodes can be used as the temporary space loading rate of the tree node. Return to reference Figure 2 (a), below, with Figure 2 The implementation process of expanding the greedy child node is explained by taking S1 among the formal child nodes S1 to S20 shown in (a) as an example.

[0082] For each iteration process, the following operations can be performed until the iteration is terminated:

[0083] The current tree node at the beginning of this iteration can be determined. At this time, it can be determined that the current tree node at the beginning of this iteration is the formal child node S1. Next, the largest segmentation space with the largest volume in at least one segmentation space corresponding to the current tree node can be determined, that is, the largest segmentation space with the largest volume in the three segmentation spaces corresponding to the current tree node S1 can be determined. Return to reference Figure 3 (d) The maximum segmentation space corresponding to the current tree node S1 is S1 max .

[0084] Then, the target virtual box block with the largest effective usable space volume, smaller than the volume of the largest split space, and not loaded into the virtual loading container can be determined among the multiple virtual box blocks. max , and the target virtual box chunks other than the virtual box chunks contained in the current tree node S1 that have been loaded into the virtual loading container.

[0085] Next, the target virtual box block can be placed in the maximum segmentation space to obtain the greedy child node of the current tree node, and the greedy child node can be used as the current tree node at the beginning of the next iteration. That is, the target virtual box block can be placed in the maximum segmentation space S1 max Get the greedy child node of the current tree node S1, and use the greedy child node as the current tree node at the beginning of the next iteration.

[0086] It should be noted that the target virtual box block is placed in the maximum segmentation space S1 max Afterwards, due to the addition of this target virtual box block, the split space in the virtual loading container may change from 3 split spaces corresponding to the current tree node S1 to 5 split spaces corresponding to the greedy child nodes of the tree node S1. Next, the greedy child node of the tree node S1 can be used as the current tree node at the beginning of the next iteration, and the next level greedy child node of the current tree node can continue to be expanded. At this time, the newly expanded greedy child node will divide a new split space. For example, the newly expanded greedy child node may divide the virtual loading container into 7 split spaces. By analogy, new greedy child nodes can be continuously expanded downward until the iteration terminates. In this way, the space loading rate of the temporary loading scheme formed by the formal child node S1 and the expanded multiple greedy child nodes with a superior-subordinate relationship at the end of the iteration can be used as the temporary space loading rate corresponding to the formal child node S1.

[0087] In this way, in the process of expanding the greedy child node, since the maximum split space is selected each time, and the virtual box block with the largest effective space volume will be loaded into the maximum split space, that is, the virtual box block with the smallest wasted space volume will be loaded into the maximum split space, the volume of the wasted space in the maximum split space can be made as small as possible, that is, the space loading rate of the maximum split space can be made as large as possible, which can ensure that the space loading rate of the temporary loading solution obtained when the iteration terminates is as large as possible, and then the space loading rate in the actual packing scenario can be guaranteed.

[0088] According to an exemplary embodiment of the present disclosure, the iterative termination condition for obtaining multiple greedy child nodes corresponding to each tree node in an iterative manner may be: any of the at least one split space corresponding to the current tree node cannot accommodate any virtual box block in the multiple virtual box blocks. As mentioned above, each time a new greedy child node is expanded, the number of split spaces into which the virtual loading container is split will increase, and the volume of each corresponding split space will become smaller and smaller. After expanding to a certain depth, there will be a situation where any of the current split spaces cannot accommodate any virtual box blocks. At this time, it can be determined that the iterative expansion process of the greedy child node is terminated.

[0089] According to an exemplary embodiment of the present disclosure, the search strategy may also include a depth-first search strategy. A depth search tree corresponding to the depth-first search strategy may be constructed in an iterative manner based on multiple virtual box blocks and preset constraints. For each iteration process, the following operations may be performed until the iteration is terminated:

[0090] At least one tree node included in the current bottom layer in the depth search tree at the beginning of this iteration may be determined. Figure 4 is a schematic diagram showing a deep search tree according to an exemplary embodiment of the present disclosure. Figure 4 (a), the root node of the deep search tree is P, and the root node P can be used to indicate the loading state of no virtual box block in the virtual loading container, that is, the root node P can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node P, namely P1~P20, and each of these formal child nodes can be used to indicate the loading state of a virtual box block in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the deep search tree at the beginning of this iteration is P1~P20.

[0091] Next, for each tree node in at least one tree node, multiple temporary space loading rates corresponding to multiple formal child nodes in the next layer of each tree node can be obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates can be used as the temporary space loading rate of each tree node.

[0092] For example, for the tree node P1 among the 20 tree nodes P1 to P20, the number of segmentation spaces corresponding to the tree node P1 is 3. For each of the three segmentation spaces, 20 virtual box blocks whose corresponding volumes are smaller than the volume of the segmentation space and whose corresponding effective use space volumes are ranked in the front can be selected from multiple virtual box blocks that have not been loaded into the virtual loading container. After each of the 20 virtual box blocks is simulated and loaded into the segmentation space, 20 formal child nodes can be obtained. In this way, a total of 60 virtual box blocks can be selected from the three segmentation spaces, that is, 60 formal child nodes can be correspondingly expanded from the three segmentation spaces, that is, the number of multiple formal child nodes in the next layer of the tree node P1 can be 60, namely P1.1 to P1.60. The 60 temporary space loading rates corresponding to the 60 formal child nodes P1.1 to P1.60 can be obtained, and the maximum temporary space loading rate among the 60 temporary space loading rates can be used as the temporary space loading rate of the tree node P1.

[0093] Similarly, for the tree node P2 among the 20 tree nodes P1 to P20, the number of multiple formal child nodes in the next layer of the tree node P2 can also be 60, namely P2.1 to P2.60. The 60 temporary space loading rates corresponding to the 60 formal child nodes P2.1 to P2.60 can be obtained, and the maximum temporary space loading rate among the 60 temporary space loading rates can be used as the temporary space loading rate of the tree node P2; for the tree node P20 among the 20 tree nodes P1 to P20, the number of multiple formal child nodes in the next layer of the tree node P20 can also be 60, namely P20.1 to P20.60. The 60 temporary space loading rates corresponding to the 60 formal child nodes P20.1 to P20.60 can be obtained, and the maximum temporary space loading rate among the 60 temporary space loading rates can be used as the temporary space loading rate of the tree node P20.

[0094] Reference Figure 4 (b) shows multiple formal child nodes of the next layer of tree nodes P1, P2, and P20. It should be noted that for other tree nodes in tree nodes P1 to P20, the process of obtaining the temporary space loading rate of these other tree nodes is similar to the process of obtaining the temporary space loading rate of tree node P1, which will not be repeated here.

[0095] In this way, a temporary space loading rate can be obtained for each of the 20 tree nodes P1 to P20, and the second tree node corresponding to the maximum temporary space loading rate can be found from the 20 tree nodes P1 to P20. It is assumed that the second tree node corresponding to the maximum temporary space loading rate is P1.

[0096] Next, the multiple formal child nodes of the next layer of the second tree node corresponding to the maximum temporary space loading rate in at least one tree node can be determined as at least one tree node included in the current lowest layer in the deep search tree at the beginning of the next iteration. That is, the multiple formal child nodes P1.1 to P1.60 of the next layer of the second tree node P1 can be determined as at least one tree node included in the current lowest layer in the deep search tree at the beginning of the next iteration.

[0097] At this point, the next iteration process can be entered. That is, for each tree node in at least one tree node P1.1 to P1.60, multiple temporary space loading rates corresponding to multiple formal child nodes in the next layer of each tree node can be obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates can be used as the temporary space loading rate of the tree node. For example, for tree node P1.1, the number of segmentation spaces corresponding to the tree node P1.1 is 5. For each of the 5 segmentation spaces, 20 virtual box blocks whose corresponding volumes are smaller than the volume of the segmentation space and whose corresponding effective use space volumes are ranked in the front can be selected from multiple virtual box blocks that have not been loaded into the virtual loading container. After each of the 20 virtual box blocks is simulated and loaded into the segmentation space, 20 formal child nodes can be obtained. In this way, the five split spaces can select a total of 5×20=100 virtual box blocks, that is, the five split spaces can expand correspondingly 100 formal child nodes, that is, the number of multiple formal child nodes in the next layer of the tree node P1.1 can be 100, namely P1.1.1~P1.1.100. The 100 temporary space loading rates corresponding to the 100 formal child nodes P1.1.1~P1.1.100 can be obtained, and the maximum temporary space loading rate among the 100 temporary space loading rates can be used as the temporary space loading rate of the tree node P1.1. Figure 4 (c) shows the 100 formal child nodes P1.1.1 to P1.1.100 in the next layer of the tree node P1.1.

[0098] Then, the multiple formal child nodes of the next layer of the tree node corresponding to the maximum temporary space loading rate in at least one tree node P1.1~P1.60 can be determined as at least one tree node included in the current bottom layer of the deep search tree at the beginning of the next iteration. Assuming that the tree node corresponding to the maximum temporary space loading rate in at least one tree node P1.1~P1.60 is P1.1, the 100 formal child nodes P1.1.1~P1.1.100 of the next layer of the tree node P1.1 can be determined as at least one tree node included in the current bottom layer of the deep search tree at the beginning of the next iteration. Similarly, when the iterative process terminates, the final deep search tree corresponding to the depth-first search strategy can be obtained.

[0099] It should be noted that the priority queue search strategy gives priority to expanding those tree nodes with the greatest potential, while ignoring those with poor potential, which may lead to a local optimal solution. Although the tree node with the greatest potential is selected, the child nodes of other tree nodes with poor potential may have greater potential, but the priority queue search strategy will directly ignore the tree nodes with poor potential, resulting in the loss of child nodes with greater potential, that is, the possible loss of loading solutions with better space loading rate.

[0100] Therefore, the present disclosure also provides a depth-first search strategy, which determines the temporary space loading rate of the current tree node through the temporary space loading rates of multiple formal child nodes in the next layer of the current tree node, that is, it can explore child nodes with greater potential as much as possible, and can effectively avoid the defect of directly ignoring child nodes with greater potential in the priority queue search strategy, and can ensure that the loading plan corresponding to the search tree obtained after the expansion is a loading plan with a higher space loading rate, thereby ensuring the space loading rate in the actual packing scenario.

[0101] According to an exemplary embodiment of the present disclosure, the above-mentioned search strategy may also include a fixed search strategy.

[0102] Based on multiple virtual box blocks and preset constraints, a fixed search tree corresponding to the fixed search strategy can be constructed in an iterative manner. For each iteration process, the following operations can be performed until the iteration is terminated:

[0103] At least one tree node included in the current bottom layer in the fixed search tree at the beginning of this iteration may be determined. Figure 5 is a schematic diagram showing a fixed search tree according to an exemplary embodiment of the present disclosure. Figure 5 (a), the root node of the fixed search tree is B, and the root node B can be used to indicate the loading state of no virtual box block in the virtual loading container, that is, the root node B can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node B, namely B1 to B20, and each of these formal child nodes can be used to indicate the loading state of a virtual box block in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of this iteration is B1 to B20.

[0104] Next, for each tree node in at least one tree node, multiple temporary space loading rates corresponding to multiple test subnodes in the lower n layers of each tree node can be obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates can be used as the temporary space loading rate of each tree node. Wherein, n>1, illustratively, n can be 2. That is, at this time, for each tree node in at least one tree node B1~B20, multiple temporary space loading rates corresponding to multiple test subnodes in the lower 2 layers of each tree node can be obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates can be used as the temporary space loading rate of each tree node.

[0105] For example, for at least one tree node B1 in tree nodes B1 to B20, multiple first-layer test subnodes of the next layer of the tree node B1 can be expanded first. The number of split spaces corresponding to the tree node B1 is 3. For each of the three split spaces, three virtual box blocks whose corresponding volumes are smaller than the volume of the split space and whose corresponding effective use space volumes are ranked in the front can be selected from multiple virtual box blocks that have not been loaded into the virtual loading container. After each of the three virtual box blocks is simulated and loaded into the split space, three first-layer test subnodes can be obtained. In this way, a total of 3×3=9 virtual box blocks can be selected from the three split spaces, that is, 9 first-layer test subnodes can be correspondingly expanded from the three split spaces, that is, the number of multiple first-layer test subnodes of the next layer of the tree node B1 can be 9, namely B1.1 to B1.9.

[0106] Then, multiple second-layer test subnodes of the next two layers of the tree node B1 can be expanded. For example, for multiple first-layer test subnodes B1.1 to B1.9 of the next layer of the tree node B1, each of these first-layer test subnodes can be used to indicate the loading status of two virtual box blocks loaded in the virtual loading container, and each first-layer test subnode can correspond to five split spaces. For a first-layer test subnode B1.1 among multiple first-layer test subnodes B1.1 to B1.9, the number of split spaces corresponding to the first-layer test subnode B1.1 is 5. For each of the five split spaces, two virtual box blocks whose corresponding volumes are smaller than the volumes of the split spaces and whose corresponding effective use space volumes are ranked in front can be selected from multiple virtual box blocks that have not been loaded into the virtual loading container. After each of the two virtual box blocks is simulated and loaded into the split space, two second-layer test subnodes can be obtained. In this way, the five split spaces can select a total of 5×2=10 virtual box blocks, that is, the five split spaces can correspondingly expand 10 second-layer test sub-nodes B1.1.1~B1.1.10.

[0107] Similarly, each of the first-layer test sub-nodes B1.2 to B1.9 can expand to 10 second-layer test sub-nodes. In this way, the number of all test sub-nodes in the lower two layers of the tree node B1 is 9×10=90. The 90 temporary space loading rates corresponding to the 90 test sub-nodes in the lower two layers of the tree node B1 can be obtained, and the maximum temporary space loading rate among the 90 temporary space loading rates can be used as the temporary space loading rate of the tree node B1. Figure 5 (b) shows the nine first-layer test sub-nodes B1.1 to B1.9 of the next layer of the tree node B1, and the ten second-layer test sub-nodes B1.1.1 to B1.1.10 of the next two layers.

[0108] Next, multiple formal child nodes of the next layer of the third tree node corresponding to the maximum temporary space loading rate in at least one tree node can be determined as at least one tree node included in the current bottom layer in the fixed search tree at the beginning of the next iteration. Assuming that the third tree node corresponding to the maximum temporary space loading rate among the 20 formal child nodes B1~B20 is tree node B1, multiple formal child nodes of the next layer of the tree node B1 can be determined as at least one tree node included in the current bottom layer in the fixed search tree at the beginning of the next iteration. Among them, the process of expanding the formal child nodes of the tree node has been explained in detail in the previous text and will not be repeated here.

[0109] In this way, the fixed search strategy provided by the present disclosure can determine the temporary space loading rate of the current tree node through the temporary space loading rate of multiple test sub-nodes in the n layers under the current tree node. Compared with the depth-first search strategy, the excavation depth is deeper, and sub-nodes with greater potential can be further excavated, thereby ensuring that the loading scheme corresponding to the search tree obtained after the expansion is a loading scheme with a higher space loading rate. In addition, when expanding the test sub-nodes, as the expansion depth increases, the number of expandable test sub-nodes corresponding to each split space can be reduced layer by layer, which can avoid the situation where the expansion of too many test sub-nodes leads to the consumption of more computing resources, and can shorten the time consumption of expanding the test sub-nodes while improving the space loading rate of the loading scheme, thereby improving the expansion efficiency of the test sub-nodes.

[0110] According to an exemplary embodiment of the present disclosure, the above search strategy may include a random sampling search strategy. Based on multiple virtual box blocks and preset constraints, a preset second number of iterations may be performed to obtain a preset second number of random search trees corresponding to the random sampling search strategy. The preset second number may be set according to actual needs, and may be set to 5, for example.

[0111] For each iteration, you can perform the following operations until the iteration ends:

[0112] At least one tree node included in the current bottom layer in the random search tree at the beginning of this iteration can be determined. Figure 6 is a schematic diagram showing a random search tree according to an exemplary embodiment of the present disclosure. Figure 6 (a), the root node of the random search tree is A, and the root node A can be used to indicate the loading state of the virtual loading container without any virtual box block, that is, the root node A can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node A, namely A1~A20, and each of these formal child nodes can be used to indicate the loading state of a virtual box block loaded in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the random search tree at the beginning of this iteration is A1~A20.

[0113] Next, the temporary space loading rate corresponding to each tree node in at least one tree node can be obtained, that is, the temporary space loading rate corresponding to each tree node in at least one tree node A1~A20 can be obtained. Then, a preset third number of tree nodes whose corresponding temporary space loading rates in at least one tree node are ranked in the front preset third number positions can be determined. Among them, the preset third number can be set according to actual needs, and illustratively, it can be set to 5. At this time, 5 tree nodes whose corresponding temporary space loading rates in at least one tree node A1~A20 are ranked in the top 5 can be determined. Assume that these 5 tree nodes are A1, A2, A7, A10, and A13 respectively.

[0114] Then, a fourth tree node can be randomly selected from a preset third number of tree nodes, and multiple formal child nodes of the next layer of the fourth tree node can be used as at least one tree node included in the current bottom layer of the random search tree at the beginning of the next iteration. That is, a fourth tree node can be randomly selected from the aforementioned five tree nodes A1, A2, A7, A10, and A13. Assuming that the randomly selected fourth tree node is tree node A2, multiple formal child nodes of the next layer of the fourth tree node A2 can be used as at least one tree node included in the current bottom layer of the random search tree at the beginning of the next iteration. Among them, the process of expanding the formal child nodes of the tree node has been explained in detail in the previous text and will not be repeated here. Refer to Figure 6 (b) shows a plurality of formal child nodes A2.1 to A2.60 at a level below the fourth tree node A2.

[0115] Next, the next iteration process can be entered. For example, it can be determined that at least one tree node contained in the current bottom layer of the random search tree at the beginning of this iteration is A2.1~A2.60. Then, the temporary space loading rate corresponding to each tree node in at least one tree node A2.1~A2.60 can be obtained, and then the top five tree nodes with the corresponding temporary space loading rate in at least one tree node A2.1~A2.60 can be determined. Assume that these five tree nodes are A2.1, A2.4, A2.8, A2.12, and A2.60. Next, a fourth tree node can be randomly selected from the aforementioned five tree nodes A2.1, A2.4, A2.8, A2.12, and A2.60. Assuming that the randomly selected fourth tree node is tree node A2.60, the multiple formal child nodes of the next layer of the fourth tree node A2.60 can be used as at least one tree node contained in the current bottom layer of the random search tree at the beginning of the next iteration. Refer to Figure 6 (c) shows multiple formal child nodes A2.60.1 to A2.60.100 of the next layer of the fourth tree node A2.60. Similarly, when the iterative process terminates, the final random search tree corresponding to the random sampling search strategy can be obtained.

[0116] It should be noted that since the random sampling search strategy can correspond to obtaining a preset second number of random search trees, each random search tree can correspond to a loading plan. Therefore, the loading plan with the highest spatial loading rate can be found from the preset second number of loading plans corresponding to the preset second number of random search trees as the final loading plan corresponding to the random sampling search strategy.

[0117] In this way, with the random sampling search strategy provided by the present invention, the spatial loading rate of a loading scheme corresponding to a random search tree may be relatively high, or may not be that high. However, the spatial loading rate of the loading scheme with the highest spatial loading rate selected from multiple loading schemes corresponding to multiple random search trees will at least not be too bad, which can ensure a higher spatial loading rate in actual packing scenarios.

[0118] According to an exemplary embodiment of the present disclosure, the above-mentioned search strategy may also include a two-stage search strategy. Based on multiple virtual box blocks and preset constraints, a random search tree corresponding to the random sampling search strategy can be constructed through the random sampling search strategy of the first stage. Among them, the tree nodes contained in the random search tree correspond to multiple used virtual box blocks. Further, each of the multiple layers contained in the random search tree contains a preset third number of tree nodes whose corresponding temporary space loading rate is ranked in the front preset third number position, and each tree node in the preset third number of tree nodes corresponds to a used virtual box block.

[0119] For example, return reference Figure 6 (c) Figure 6 (c) The random search tree shown includes 4 layers in total, wherein the second layer includes 20 tree nodes A1-A20 in total, wherein the tree nodes corresponding to the temporary space loading rates in the 20 tree nodes A1-A20 are A1, A2, A7, A10, and A13 in the first preset third number of positions, respectively, and each of the 5 tree nodes can be used to indicate the loading status of a virtual box block loaded in the virtual loading container, that is, each of the 5 tree nodes corresponds to a used virtual box. Block; the third layer contains a total of 60 tree nodes A2.1~A2.60, and the tree nodes corresponding to the temporary space loading rates in the 60 tree nodes A2.1~A2.60 are ranked in the front preset third number positions respectively. A2.1, A2.4, A2.8, A2.12, and A2.60, and each of these 5 tree nodes can be used to indicate the loading status of two virtual box blocks loaded in the virtual loading container, that is, each of these 5 tree nodes corresponds to two used virtual box blocks.

[0120] Next, based on the above-mentioned multiple used virtual box blocks, a target tree corresponding to the target search strategy can be constructed through the target search strategy of the second stage. Among them, the target search strategy can be any one of the search strategies of priority queue search strategy, depth first search strategy, fixed search strategy, and random sampling search strategy. Then, the loading plan corresponding to the target search strategy can be obtained based on the constructed target tree.

[0121] In this way, the two-stage search strategy provided by the present disclosure can first use the random sampling search strategy in the first stage to find virtual box blocks with greater potential from a large number of virtual box blocks, that is, a large number of virtual box blocks with poor potential can be eliminated. Then, the search strategy in the second stage can be used to search again from the virtual box blocks with greater potential searched in the first stage. Since the number of virtual box blocks searched in the second stage has been greatly reduced compared to the first stage, the speed and accuracy of the search in the second stage will be greatly improved, which can ensure a higher space loading rate in the actual packing scene.

[0122] According to an exemplary embodiment of the present disclosure, the iterative termination condition for constructing a search tree through a search strategy may be: the number of formal child nodes contained in the search tree reaches a preset first threshold, or the number of layers contained in the search tree reaches a preset second threshold. The preset first threshold and the preset second threshold may be set according to actual needs. Exemplarily, the preset first threshold may be 100, and the preset second threshold may be 6 to 8.

[0123] According to an exemplary embodiment of the present disclosure, based on multiple virtual box blocks and preset constraints, a single search tree for each search strategy can be constructed using each of the multiple search strategies, that is, a single search tree is a search tree constructed using only the same search strategy.

[0124] According to an exemplary embodiment of the present disclosure, based on multiple virtual box blocks and preset constraints, a hybrid search tree of each hybrid search strategy can be constructed using each of the multiple hybrid search strategies. The hybrid search strategy can include at least two of the multiple search strategies, that is, the hybrid search tree is a search tree constructed using more than two search strategies. In this way, by constructing a hybrid search tree using a hybrid search strategy formed by combining more than two search strategies, it is equivalent to integrating the advantages of multiple search strategies, which can further improve the spatial loading rate of the final loading solution.

[0125] In step 103, the loading plan corresponding to each search strategy can be obtained based on the constructed search tree, that is, the tree nodes selected in each layer of the multiple layers contained in the constructed search tree, and the multiple greedy child nodes obtained by expanding the tree nodes selected in the lowest layer of the multiple layers using a greedy algorithm can be used as the loading plan corresponding to each search strategy.

[0126] In step 104, the loading scheme with the highest space loading rate among the obtained multiple loading schemes can be determined as the loading scheme for guiding the actual packing process. As mentioned above, the five search strategies of priority queue search strategy, depth-first search strategy, fixed search strategy, random sampling search strategy, and two-stage search strategy can obtain five loading schemes accordingly, and the loading scheme with the highest space loading rate can be selected from these five loading schemes as the loading scheme for guiding the actual packing process.

[0127] Figure 7 is a specific implementation flowchart showing a method for generating a loading plan according to an exemplary embodiment of the present disclosure.

[0128] Reference Figure 7 In step 701, the size of the virtual loading container, the size of each virtual box in the plurality of virtual boxes, and the preset constraint condition corresponding to each virtual box are obtained.

[0129] Among them, the preset constraints corresponding to each virtual box may include: whether the virtual box is allowed to be rotated and placed in three dimensions of length, width and height, and / or whether other virtual boxes are allowed to be stacked on top of the virtual box, and / or the maximum number of other virtual boxes allowed to be stacked on top of the virtual box.

[0130] In step 702, a plurality of virtual box blocks are obtained based on the size of the virtual loading container, the size of each virtual box in the plurality of virtual boxes, and preset constraints.

[0131] Among them, each virtual box block can contain at least one virtual box, the volume of each virtual box block needs to be less than or equal to the volume of the virtual loading container, and the number of virtual boxes of various types contained in each virtual box block needs to be less than or equal to the number of real boxes of this type in the real loading scene.

[0132] In step 703, based on multiple virtual box blocks and preset constraints, multiple search strategies are used to construct a search tree in parallel.

[0133] As described in the previous embodiment, five search strategies, namely, priority queue search strategy, depth-first search strategy, fixed search strategy, random sampling search strategy, and two-stage search strategy, can be used to construct the search tree corresponding to each search strategy in parallel, and a total of five search trees can be obtained.

[0134] In step 704, a loading solution corresponding to each search strategy is obtained based on the constructed search tree. That is, for each of the five search trees, a loading solution corresponding to each search strategy can be obtained based on the search tree, and a total of five loading solutions can be obtained.

[0135] In step 705, the loading scheme with the highest space loading rate among the multiple loading schemes obtained is determined as the loading scheme used to guide the actual packing process, that is, the loading scheme with the highest space loading rate can be selected from the above five loading schemes as the loading scheme used to guide the actual packing process. Figure 8 is a schematic diagram showing an actual box packing scenario according to an exemplary embodiment of the present disclosure.

[0136] Fig. 9 is a block diagram illustrating a loading plan generating apparatus according to an exemplary embodiment of the present disclosure.

[0137] Reference Fig. 9 The device 900 may include a virtual box block acquisition module 901, a search tree construction module 902, a loading plan acquisition module 903 and a loading plan determination module 904.

[0138] The virtual box block acquisition module 901 may acquire multiple virtual box blocks based on preset constraints corresponding to each virtual box in the multiple virtual boxes, wherein each virtual box block may include at least one virtual box, the volume of each virtual box block needs to be less than or equal to the volume of the virtual loading container, and the number of virtual boxes of various types included in each virtual box block needs to be less than or equal to the number of real boxes of the same type in the real loading scene.

[0139] Moreover, the virtual box in the present disclosure is constructed based on the size of the real box in the real loading scene, that is, the virtual box in the present disclosure corresponds to the real box in the real loading scene; the virtual loading container in the present disclosure is constructed based on the size of the actual loading container in the real loading scene, that is, the virtual loading container in the present disclosure corresponds to the actual loading container in the real loading scene.

[0140] According to an exemplary embodiment of the present disclosure, the virtual box block acquisition module 901 can expand and stack multiple virtual boxes of the same type in a preset direction based on the preset constraint conditions corresponding to each virtual box in the multiple virtual boxes to obtain multiple virtual box blocks. For example, multiple virtual boxes of the same type can be expanded and stacked in three dimensions of length, width, and height to obtain multiple virtual box blocks. Among them, each virtual box block can be a cuboid. In this way, since the sizes of virtual boxes of the same type in the three dimensions of length, width, and height are the same, the shape of the virtual box blocks expanded and stacked using virtual boxes of the same type is relatively regular, for example, it may be just a regular cuboid, which is easy to load into the virtual loading container, that is, the loading space in the virtual loading container can be fully utilized as much as possible, and a high space loading rate can be guaranteed.

[0141] According to an exemplary embodiment of the present disclosure, the virtual box block acquisition module 901 can expand and stack multiple virtual boxes of the same type in a preset direction based on the preset constraint conditions corresponding to each virtual box in the multiple virtual boxes to obtain a single virtual box block. Then, the multiple single virtual box blocks can be expanded and stacked in the preset direction to obtain multiple composite virtual box blocks. In this way, by expanding and stacking different types of single virtual box blocks, a composite virtual box block with a more regular shape and a larger volume can be obtained, so as to make more full use of the loading space in the virtual loading container, thereby ensuring a higher space loading rate.

[0142] The search tree construction module 902 can construct a search tree in parallel using multiple search strategies based on multiple virtual box blocks and preset constraints, wherein the tree nodes of the search tree can be used to indicate the loading status of the virtual loading container loading the virtual box block.

[0143] For example, the root node of the search tree can be used to indicate the loading status of a virtual loading container in which no virtual box blocks are loaded, that is, the root node of the search tree can be used to indicate an empty virtual loading container; each of the multiple formal child nodes of the next level of the root node of the search tree can be used to indicate the loading status of a virtual box block loaded in the virtual loading container; each of the multiple formal child nodes of the next level of each of these formal child nodes can be used to indicate the loading status of two virtual box blocks loaded in the virtual loading container, and so on.

[0144] According to an exemplary embodiment of the present disclosure, the above-mentioned “preset constraints” may be: whether the virtual box is allowed to be rotated and placed in three dimensions of length, width and height, and / or whether other virtual boxes are allowed to be stacked on top of the virtual box, and / or the maximum number of other virtual boxes allowed to be stacked on top of the virtual box.

[0145] It should be noted that in actual packing scenarios, some real boxes have requirements for placement direction, for example, only upright placement is allowed, sideways placement or inverted placement is not allowed, etc.; and each real box has a corresponding maximum weight that it can carry. For example, the goods contained in some real boxes are easy to deform, so other real boxes are generally not allowed to be stacked on top of the real box, or the number of other real boxes allowed to be stacked on top of the real box cannot exceed the maximum number that the real box can carry. Therefore, when constructing the search tree, it is necessary to consider the preset constraints of each virtual box, so as to ensure that the real box loaded into the real loading container in the actual packing scenario will not be squeezed and deformed, thereby ensuring the stability and reliability of the packing.

[0146] According to an exemplary embodiment of the present disclosure, the above search strategy may include a priority queue search strategy. Based on multiple virtual box blocks and preset constraints, a queue search tree corresponding to the priority queue search strategy may be constructed in an iterative manner. For each iteration process, the following operations may be performed until the iteration is terminated:

[0147] The search tree construction module 902 can determine at least one tree node contained in the current bottom layer of the queue search tree at the beginning of this iteration. Figure 2(a), the root node of the queue search tree is S. As mentioned above, the root node S can be used to indicate the loading state of no virtual box block in the virtual loading container, that is, the root node S can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node S, namely S1~S20, each of which can be used to indicate the loading state of a virtual box block in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the queue search tree at the beginning of this iteration is S1~S20.

[0148] Next, the search tree construction module 902 can obtain the temporary space loading rate corresponding to each tree node in at least one tree node through a greedy algorithm, that is, the temporary space loading rate corresponding to each formal child node in S1 to S20 can be obtained through a greedy algorithm, so that a total of 20 temporary space loading rates can be obtained. Among them, the temporary space loading rate can be the space loading rate of the temporary loading solution obtained by expanding the greedy child nodes of each tree node using a greedy algorithm.

[0149] Then, the search tree construction module 902 can use the multiple formal child nodes of the next layer of the first tree node corresponding to the maximum temporary space loading rate in at least one tree node as at least one tree node included in the current bottom layer of the queue search tree at the beginning of the next iteration. Assuming that the first tree node corresponding to the maximum temporary space loading rate in S1-S20 is the formal child node S1, the multiple formal child nodes of the next layer of the formal child node S1 can be used as at least one tree node included in the current bottom layer of the queue search tree at the beginning of the next iteration. Figure 2 (b) There may be a total of 60 formal child nodes S1.1 to S1.60 at the next level of the first tree node S1. These 60 formal child nodes S1.1 to S1.60 may be used as at least one tree node contained in the current bottom layer of the queue search tree at the beginning of the next iteration.

[0150] In this way, the priority queue search strategy can give priority to expanding those tree nodes with the largest temporary space loading rate, that is, it can give priority to expanding those nodes that appear to have the best final loading plan, that is, it can give priority to expanding those tree nodes with the greatest potential, while ignoring tree nodes with relatively poor potential, thereby ensuring that the loading plan corresponding to the search tree obtained after the expansion is a loading plan with a relatively high space loading rate, thereby ensuring the space loading rate in the actual packing scenario.

[0151] According to an exemplary embodiment of the present disclosure, the loading plan generating device 900 may further include a segmentation space determining module, a sorting module, a selection module and a loading module.

[0152] The segmentation space determination module may also determine at least one segmentation space corresponding to the first tree node, wherein the at least one segmentation space may be a segmentation space obtained by segmenting other spaces in the virtual loading container, and the other spaces may be spaces in the virtual loading container other than the spaces occupied by the virtual box blocks included in the first tree node.

[0153] As mentioned above, the first tree node may be a formal child node S1, and the formal child node S1 is used to indicate the loading state of a virtual box block in the virtual loading container. At this time, the first tree node S1 may correspond to three split spaces. Among them, the three split spaces may be split spaces obtained by splitting other spaces in the virtual loading container, and the other spaces may be spaces in the virtual loading container other than the space occupied by the virtual box block contained in the first tree node S1.

[0154] Below, Figure 3 (d) This spatial segmentation method is used as an example for subsequent explanation.

[0155] Next, the sorting module can sort the virtual box blocks that have not been loaded into the virtual loading container in the plurality of virtual box blocks in the order of the corresponding effective use space volume from large to small, and obtain the sorted virtual box blocks. That is, the virtual box blocks except the virtual box blocks included in the first tree node S1 that have been loaded into the virtual loading container in the plurality of virtual box blocks can be sorted in the order of the corresponding effective use space volume from large to small, and the sorted virtual box blocks can be obtained.

[0156] Then, for each of the at least one split space, the selection module can select a preset first number of virtual box blocks whose corresponding volume is smaller than the volume of each split space and whose corresponding effective use space volume ranks in the front from the sorted virtual box blocks. The preset first number can be set according to actual needs, and can be set to 20 for example. At this time, for each of the three split spaces corresponding to the first tree node S1, 20 virtual box blocks whose corresponding volume is smaller than the volume of the split space and whose corresponding effective use space volume ranks in the front can be selected from the sorted virtual box blocks.

[0157] Next, the loading module can simulate loading each virtual box block in the preset first number of virtual box blocks into each split space to obtain multiple formal child nodes of the next layer of the first tree node. As mentioned above, since the first tree node S1 corresponds to 3 split spaces, and each split space can correspond to 20 virtual box blocks, for each of the 3 split spaces, after simulating loading each virtual box block in the 20 virtual box blocks into the split space, 3×20=60 formal child nodes of the next layer of the first tree node S1 can be obtained.

[0158] In this way, when expanding the formal child nodes of the tree node, for each of the multiple split spaces corresponding to the tree node, the virtual box blocks with the largest effective space volume are selected to be loaded into the split space, that is, the virtual box blocks with smaller wasted space volume are selected to be loaded into the split space. This can make the volume of wasted space in each split space as small as possible, that is, make the space loading rate of each split space as large as possible, and thus ensure that the loading plan corresponding to the search tree that is finally expanded has a relatively high space loading rate.

[0159] According to an exemplary embodiment of the present disclosure, for each tree node in at least one tree node, the search tree construction module 902 can iteratively obtain multiple greedy child nodes corresponding to each tree node that have a superior-subordinate relationship. Then, the search tree construction module 902 can use the space loading rate of the temporary loading solution corresponding to the greedy child node at the bottom of the multiple greedy child nodes as the temporary space loading rate of the tree node. Return to reference Figure 2 (a), below, with Figure 2 The implementation process of expanding the greedy child node is explained by taking S1 among the formal child nodes S1 to S20 shown in (a) as an example.

[0160] For each iteration process, the search tree construction module 902 may perform the following operations until the iteration is terminated:

[0161] The current tree node at the beginning of this iteration can be determined. At this time, it can be determined that the current tree node at the beginning of this iteration is the formal child node S1. Next, the largest segmentation space with the largest volume in at least one segmentation space corresponding to the current tree node can be determined, that is, the largest segmentation space with the largest volume in the three segmentation spaces corresponding to the current tree node S1 can be determined. Return to reference Figure 3 (d) The maximum segmentation space corresponding to the current tree node S1 is S1 max .

[0162] Then, the target virtual box block with the largest effective usable space volume, smaller than the volume of the largest split space, and not loaded into the virtual loading container can be determined among the multiple virtual box blocks. max , and the target virtual box chunks other than the virtual box chunks contained in the current tree node S1 that have been loaded into the virtual loading container.

[0163] Next, the target virtual box block can be placed in the maximum segmentation space to obtain the greedy child node of the current tree node, and the greedy child node can be used as the current tree node at the beginning of the next iteration. That is, the target virtual box block can be placed in the maximum segmentation space S1 max Get the greedy child node of the current tree node S1, and use the greedy child node as the current tree node at the beginning of the next iteration.

[0164] It should be noted that the target virtual box block is placed in the maximum segmentation space S1 max Afterwards, due to the addition of this target virtual box block, the split space in the virtual loading container may change from 3 split spaces corresponding to the current tree node S1 to 5 split spaces corresponding to the greedy child nodes of the tree node S1. Next, the greedy child node of the tree node S1 can be used as the current tree node at the beginning of the next iteration, and the next level greedy child node of the current tree node can continue to be expanded. At this time, the newly expanded greedy child node will divide a new split space. For example, the newly expanded greedy child node may divide the virtual loading container into 7 split spaces. By analogy, new greedy child nodes can be continuously expanded downward until the iteration terminates. In this way, the space loading rate of the temporary loading scheme formed by the formal child node S1 and the expanded multiple greedy child nodes with a superior-subordinate relationship at the end of the iteration can be used as the temporary space loading rate corresponding to the formal child node S1.

[0165] In this way, in the process of expanding the greedy child node, since the maximum split space is selected each time, and the virtual box block with the largest effective space volume will be loaded into the maximum split space, that is, the virtual box block with the smallest wasted space volume will be loaded into the maximum split space, the volume of the wasted space in the maximum split space can be made as small as possible, that is, the space loading rate of the maximum split space can be made as large as possible, which can ensure that the space loading rate of the temporary loading solution obtained when the iteration terminates is as large as possible, and then the space loading rate in the actual packing scenario can be guaranteed.

[0166] According to an exemplary embodiment of the present disclosure, the iterative termination condition for obtaining multiple greedy child nodes corresponding to each tree node in an iterative manner may be: any of the at least one split space corresponding to the current tree node cannot accommodate any virtual box block in the multiple virtual box blocks. As mentioned above, each time a new greedy child node is expanded, the number of split spaces into which the virtual loading container is split will increase, and the volume of each corresponding split space will become smaller and smaller. After expanding to a certain depth, there will be a situation where any of the current split spaces cannot accommodate any virtual box blocks. At this time, it can be determined that the iterative expansion process of the greedy child node is terminated.

[0167] According to an exemplary embodiment of the present disclosure, the search strategy may also include a depth-first search strategy. The search tree construction module 902 may construct a depth search tree corresponding to the depth-first search strategy in an iterative manner based on multiple virtual box blocks and preset constraints. For each iteration process, the search tree construction module 902 may perform the following operations until the iteration terminates:

[0168] It is possible to determine at least one tree node contained in the current bottom layer of the deep search tree at the beginning of this iteration. Return to reference Figure 4 (a), the root node of the deep search tree is P, and the root node P can be used to indicate the loading state of no virtual box block in the virtual loading container, that is, the root node P can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node P, namely P1~P20, and each of these formal child nodes can be used to indicate the loading state of a virtual box block in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the deep search tree at the beginning of this iteration is P1~P20.

[0169] Next, for each tree node in at least one tree node, multiple temporary space loading rates corresponding to multiple formal child nodes in the next layer of each tree node can be obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates can be used as the temporary space loading rate of each tree node.

[0170] For example, for the tree node P1 among the 20 tree nodes P1 to P20, the number of segmentation spaces corresponding to the tree node P1 is 3. For each of the three segmentation spaces, 20 virtual box blocks whose corresponding volumes are smaller than the volume of the segmentation space and whose corresponding effective use space volumes are ranked in the front can be selected from multiple virtual box blocks that have not been loaded into the virtual loading container. After each of the 20 virtual box blocks is simulated and loaded into the segmentation space, 20 formal child nodes can be obtained. In this way, a total of 60 virtual box blocks can be selected from the three segmentation spaces, that is, 60 formal child nodes can be correspondingly expanded from the three segmentation spaces, that is, the number of multiple formal child nodes in the next layer of the tree node P1 can be 60, namely P1.1 to P1.60. The 60 temporary space loading rates corresponding to the 60 formal child nodes P1.1 to P1.60 can be obtained, and the maximum temporary space loading rate among the 60 temporary space loading rates can be used as the temporary space loading rate of the tree node P1.

[0171] Similarly, for the tree node P2 among the 20 tree nodes P1 to P20, the number of multiple formal child nodes in the next layer of the tree node P2 can also be 60, namely P2.1 to P2.60. The 60 temporary space loading rates corresponding to the 60 formal child nodes P2.1 to P2.60 can be obtained, and the maximum temporary space loading rate among the 60 temporary space loading rates can be used as the temporary space loading rate of the tree node P2; for the tree node P20 among the 20 tree nodes P1 to P20, the number of multiple formal child nodes in the next layer of the tree node P20 can also be 60, namely P20.1 to P20.60. The 60 temporary space loading rates corresponding to the 60 formal child nodes P20.1 to P20.60 can be obtained, and the maximum temporary space loading rate among the 60 temporary space loading rates can be used as the temporary space loading rate of the tree node P20.

[0172] Reference Figure 4 (b) shows multiple formal child nodes of the next layer of tree nodes P1, P2, and P20. It should be noted that for other tree nodes in tree nodes P1 to P20, the process of obtaining the temporary space loading rate of these other tree nodes is similar to the process of obtaining the temporary space loading rate of tree node P1, which will not be repeated here.

[0173] In this way, a temporary space loading rate can be obtained for each of the 20 tree nodes P1 to P20, and the second tree node corresponding to the maximum temporary space loading rate can be found from the 20 tree nodes P1 to P20. It is assumed that the second tree node corresponding to the maximum temporary space loading rate is P1.

[0174] Next, the multiple formal child nodes of the next layer of the second tree node corresponding to the maximum temporary space loading rate in at least one tree node can be determined as at least one tree node included in the current lowest layer in the deep search tree at the beginning of the next iteration. That is, the multiple formal child nodes P1.1 to P1.60 of the next layer of the second tree node P1 can be determined as at least one tree node included in the current lowest layer in the deep search tree at the beginning of the next iteration.

[0175] It should be noted that the priority queue search strategy gives priority to expanding those tree nodes with the greatest potential, while ignoring those with poor potential, which may lead to a local optimal solution. Although the tree node with the greatest potential is selected, the child nodes of other tree nodes with poor potential may have greater potential, but the priority queue search strategy will directly ignore the tree nodes with poor potential, resulting in the loss of child nodes with greater potential, that is, the possible loss of loading solutions with better space loading rate.

[0176] Therefore, the present disclosure also provides a depth-first search strategy, which determines the temporary space loading rate of the current tree node through the temporary space loading rates of multiple formal child nodes in the next layer of the current tree node, that is, it can explore child nodes with greater potential as much as possible, and can effectively avoid the defect of directly ignoring child nodes with greater potential in the priority queue search strategy, and can ensure that the loading plan corresponding to the search tree obtained after the expansion is a loading plan with a higher space loading rate, thereby ensuring the space loading rate in the actual packing scenario.

[0177] According to an exemplary embodiment of the present disclosure, the above search strategy may also include a fixed search strategy. The search tree construction module 902 may construct a fixed search tree corresponding to the fixed search strategy in an iterative manner based on multiple virtual box blocks and preset constraints. For each iteration process, the search tree construction module 902 may perform the following operations until the iteration is terminated:

[0178] It is possible to determine at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of this iteration. Return to reference Figure 5 (a), the root node of the fixed search tree is B, and the root node B can be used to indicate the loading state of no virtual box block in the virtual loading container, that is, the root node B can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node B, namely B1 to B20, and each of these formal child nodes can be used to indicate the loading state of a virtual box block in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of this iteration is B1 to B20.

[0179] Next, for each tree node in at least one tree node, multiple temporary space loading rates corresponding to multiple test subnodes in the lower n layers of each tree node can be obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates can be used as the temporary space loading rate of each tree node. Wherein, n>1, illustratively, n can be 2. That is, at this time, for each tree node in at least one tree node B1~B20, multiple temporary space loading rates corresponding to multiple test subnodes in the lower 2 layers of each tree node can be obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates can be used as the temporary space loading rate of each tree node.

[0180] For example, for at least one tree node B1 in tree nodes B1 to B20, multiple first-layer test subnodes of the next layer of the tree node B1 can be expanded first. The number of split spaces corresponding to the tree node B1 is 3. For each of the three split spaces, three virtual box blocks whose corresponding volumes are smaller than the volume of the split space and whose corresponding effective use space volumes are ranked in the front can be selected from multiple virtual box blocks that have not been loaded into the virtual loading container. After each of the three virtual box blocks is simulated and loaded into the split space, three first-layer test subnodes can be obtained. In this way, a total of 3×3=9 virtual box blocks can be selected from the three split spaces, that is, 9 first-layer test subnodes can be correspondingly expanded from the three split spaces, that is, the number of multiple first-layer test subnodes of the next layer of the tree node B1 can be 9, namely B1.1 to B1.9.

[0181] Then, multiple second-layer test subnodes of the next two layers of the tree node B1 can be expanded. For example, for multiple first-layer test subnodes B1.1 to B1.9 of the next layer of the tree node B1, each of these first-layer test subnodes can be used to indicate the loading status of two virtual box blocks loaded in the virtual loading container, and each first-layer test subnode can correspond to five split spaces. For a first-layer test subnode B1.1 among multiple first-layer test subnodes B1.1 to B1.9, the number of split spaces corresponding to the first-layer test subnode B1.1 is 5. For each of the five split spaces, two virtual box blocks whose corresponding volumes are smaller than the volumes of the split spaces and whose corresponding effective use space volumes are ranked in front can be selected from multiple virtual box blocks that have not been loaded into the virtual loading container. After each of the two virtual box blocks is simulated and loaded into the split space, two second-layer test subnodes can be obtained. In this way, the five split spaces can select a total of 5×2=10 virtual box blocks, that is, the five split spaces can correspondingly expand 10 second-layer test sub-nodes B1.1.1~B1.1.10.

[0182] Similarly, each of the first-layer test sub-nodes B1.2 to B1.9 can expand to 10 second-layer test sub-nodes. In this way, the number of all test sub-nodes in the lower two layers of the tree node B1 is 9×10=90. The 90 temporary space loading rates corresponding to the 90 test sub-nodes in the lower two layers of the tree node B1 can be obtained, and the maximum temporary space loading rate among the 90 temporary space loading rates can be used as the temporary space loading rate of the tree node B1. Figure 5 (b) shows the nine first-layer test sub-nodes B1.1 to B1.9 of the next layer of the tree node B1, and the ten second-layer test sub-nodes B1.1.1 to B1.1.10 of the next two layers.

[0183] Next, multiple formal child nodes of the next layer of the third tree node corresponding to the maximum temporary space loading rate in at least one tree node can be determined as at least one tree node included in the current bottom layer in the fixed search tree at the beginning of the next iteration. Assuming that the third tree node corresponding to the maximum temporary space loading rate among the 20 formal child nodes B1~B20 is tree node B1, multiple formal child nodes of the next layer of the tree node B1 can be determined as at least one tree node included in the current bottom layer in the fixed search tree at the beginning of the next iteration. Among them, the process of expanding the formal child nodes of the tree node has been explained in detail in the previous text and will not be repeated here.

[0184] In this way, the fixed search strategy provided by the present disclosure can determine the temporary space loading rate of the current tree node through the temporary space loading rate of multiple test sub-nodes in the n layers under the current tree node. Compared with the depth-first search strategy, the excavation depth is deeper, and sub-nodes with greater potential can be further excavated, thereby ensuring that the loading scheme corresponding to the search tree obtained after the expansion is a loading scheme with a higher space loading rate. In addition, when expanding the test sub-nodes, as the expansion depth increases, the number of expandable test sub-nodes corresponding to each split space can be reduced layer by layer, which can avoid the situation where the expansion of too many test sub-nodes leads to the consumption of more computing resources, and can shorten the time consumption of expanding the test sub-nodes while improving the space loading rate of the loading scheme, thereby improving the expansion efficiency of the test sub-nodes.

[0185] According to an exemplary embodiment of the present disclosure, the above search strategy may include a random sampling search strategy. The search tree construction module 902 may perform a preset second number of iterations based on multiple virtual box blocks and preset constraints to obtain a preset second number of random search trees corresponding to the random sampling search strategy. The preset second number may be set according to actual needs, and may be set to 5, for example.

[0186] For each iteration process, the search tree construction module 902 may perform the following operations until the iteration is terminated:

[0187] It is possible to determine at least one tree node contained in the current bottom layer of the random search tree at the beginning of this iteration. Return to reference Figure 6 (a), the root node of the random search tree is A, and the root node A can be used to indicate the loading state of the virtual loading container without any virtual box block, that is, the root node A can be used to indicate an empty virtual loading container. There are 20 formal child nodes in the next level of the root node A, namely A1~A20, and each of these formal child nodes can be used to indicate the loading state of a virtual box block loaded in the virtual loading container. It can be determined that at least one tree node contained in the current bottom layer of the random search tree at the beginning of this iteration is A1~A20.

[0188] Next, the temporary space loading rate corresponding to each tree node in at least one tree node can be obtained, that is, the temporary space loading rate corresponding to each tree node in at least one tree node A1~A20 can be obtained. Then, a preset third number of tree nodes whose corresponding temporary space loading rates in at least one tree node are ranked in the front preset third number positions can be determined. Among them, the preset third number can be set according to actual needs, and illustratively, it can be set to 5. At this time, 5 tree nodes whose corresponding temporary space loading rates in at least one tree node A1~A20 are ranked in the top 5 can be determined. Assume that these 5 tree nodes are A1, A2, A7, A10, and A13 respectively.

[0189] Then, a fourth tree node can be randomly selected from a preset third number of tree nodes, and multiple formal child nodes of the next layer of the fourth tree node can be used as at least one tree node included in the current bottom layer of the random search tree at the beginning of the next iteration. That is, a fourth tree node can be randomly selected from the aforementioned five tree nodes A1, A2, A7, A10, and A13. Assuming that the randomly selected fourth tree node is tree node A2, multiple formal child nodes of the next layer of the fourth tree node A2 can be used as at least one tree node included in the current bottom layer of the random search tree at the beginning of the next iteration. Among them, the process of expanding the formal child nodes of the tree node has been explained in detail in the previous text and will not be repeated here. Refer to Figure 6 (b) shows a plurality of formal child nodes A2.1 to A2.60 at a level below the fourth tree node A2.

[0190] Next, the next iteration process can be entered. For example, it can be determined that at least one tree node contained in the current bottom layer of the random search tree at the beginning of this iteration is A2.1~A2.60. Then, the temporary space loading rate corresponding to each tree node in at least one tree node A2.1~A2.60 can be obtained, and then the top five tree nodes with the corresponding temporary space loading rate in at least one tree node A2.1~A2.60 can be determined. Assume that these five tree nodes are A2.1, A2.4, A2.8, A2.12, and A2.60. Next, a fourth tree node can be randomly selected from the aforementioned five tree nodes A2.1, A2.4, A2.8, A2.12, and A2.60. Assuming that the randomly selected fourth tree node is tree node A2.60, the multiple formal child nodes of the next layer of the fourth tree node A2.60 can be used as at least one tree node contained in the current bottom layer of the random search tree at the beginning of the next iteration. Refer to Figure 6(c) shows multiple formal child nodes A2.60.1 to A2.60.100 of the next layer of the fourth tree node A2.60. Similarly, when the iterative process terminates, the final random search tree corresponding to the random sampling search strategy can be obtained.

[0191] It should be noted that since the random sampling search strategy can correspond to obtaining a preset second number of random search trees, each random search tree can correspond to a loading plan. Therefore, the loading plan with the highest spatial loading rate can be found from the preset second number of loading plans corresponding to the preset second number of random search trees as the final loading plan corresponding to the random sampling search strategy.

[0192] In this way, with the random sampling search strategy provided by the present invention, the spatial loading rate of a loading scheme corresponding to a random search tree may be relatively high, or may not be that high. However, the spatial loading rate of the loading scheme with the highest spatial loading rate selected from multiple loading schemes corresponding to multiple random search trees will at least not be too bad, which can ensure a higher spatial loading rate in actual packing scenarios.

[0193] According to an exemplary embodiment of the present disclosure, the above-mentioned search strategy may also include a two-stage search strategy. The search tree construction module 902 may construct a random search tree corresponding to the random sampling search strategy through the random sampling search strategy of the first stage based on multiple virtual box blocks and preset constraints. Among them, the tree nodes contained in the random search tree correspond to multiple used virtual box blocks. Further, each of the multiple layers contained in the random search tree contains a preset third number of tree nodes whose corresponding temporary space loading rate is ranked in the front preset third number position, and each tree node in the preset third number of tree nodes corresponds to a used virtual box block.

[0194] For example, return reference Figure 6 (c) Figure 6(c) The random search tree shown includes 4 layers in total, wherein the second layer includes 20 tree nodes A1-A20 in total, wherein the tree nodes corresponding to the temporary space loading rates in the 20 tree nodes A1-A20 are A1, A2, A7, A10, and A13 in the first preset third number of positions, respectively, and each of the 5 tree nodes can be used to indicate the loading status of a virtual box block loaded in the virtual loading container, that is, each of the 5 tree nodes corresponds to a used virtual box. Block; the third layer contains a total of 60 tree nodes A2.1~A2.60, and the tree nodes corresponding to the temporary space loading rates in the 60 tree nodes A2.1~A2.60 are ranked in the front preset third number positions respectively. A2.1, A2.4, A2.8, A2.12, and A2.60, and each of these 5 tree nodes can be used to indicate the loading status of two virtual box blocks loaded in the virtual loading container, that is, each of these 5 tree nodes corresponds to two used virtual box blocks.

[0195] Next, the search tree construction module 902 can construct a target tree corresponding to the target search strategy through the target search strategy of the second stage based on the above-mentioned multiple used virtual box blocks. Among them, the target search strategy can be any one of the search strategies of priority queue search strategy, depth first search strategy, fixed search strategy, and random sampling search strategy. Then, the loading plan corresponding to the target search strategy can be obtained based on the constructed target tree.

[0196] In this way, the two-stage search strategy provided by the present disclosure can first use the random sampling search strategy in the first stage to find virtual box blocks with greater potential from a large number of virtual box blocks, that is, a large number of virtual box blocks with poor potential can be eliminated. Then, the search strategy in the second stage can be used to search again from the virtual box blocks with greater potential searched in the first stage. Since the number of virtual box blocks searched in the second stage has been greatly reduced compared to the first stage, the speed and accuracy of the search in the second stage will be greatly improved, which can ensure a higher space loading rate in the actual packing scene.

[0197] According to an exemplary embodiment of the present disclosure, the iterative termination condition for constructing a search tree through a search strategy may be: the number of formal child nodes contained in the search tree reaches a preset first threshold, or the number of layers contained in the search tree reaches a preset second threshold. The preset first threshold and the preset second threshold may be set according to actual needs. Exemplarily, the preset first threshold may be 100, and the preset second threshold may be 6 to 8.

[0198] According to an exemplary embodiment of the present disclosure, the search tree construction module 902 can use each of the multiple search strategies to construct a single search tree for each search strategy based on multiple virtual box blocks and preset constraints, that is, a single search tree is a search tree constructed using only the same search strategy.

[0199] According to an exemplary embodiment of the present disclosure, the search tree construction module 902 can use each of the multiple hybrid search strategies to construct a hybrid search tree of each hybrid search strategy based on multiple virtual box blocks and preset constraints. Among them, the hybrid search strategy can include at least two search strategies among the multiple search strategies, that is, the hybrid search tree is a search tree constructed using more than two search strategies. In this way, by constructing a hybrid search tree by combining the hybrid search strategy formed by combining more than two search strategies, it is equivalent to integrating the advantages of multiple search strategies, which can further improve the spatial loading rate of the loading solution finally obtained.

[0200] The loading plan acquisition module 903 can obtain the loading plan corresponding to each search strategy based on the constructed search tree, that is, the tree nodes selected in each layer of the multiple layers contained in the constructed search tree, and the multiple greedy child nodes obtained by expanding the tree nodes selected in the lowest layer of the multiple layers using a greedy algorithm, can be used as the loading plan corresponding to each search strategy.

[0201] The loading scheme determination module 904 can determine the loading scheme with the highest space loading rate among the multiple loading schemes obtained as the loading scheme for guiding the actual packing process. As mentioned above, the five search strategies of priority queue search strategy, depth-first search strategy, fixed search strategy, random sampling search strategy, and two-stage search strategy can obtain five loading schemes accordingly, and the loading scheme with the highest space loading rate can be selected from the five loading schemes as the loading scheme for guiding the actual packing process.

[0202] Fig.10 is a block diagram illustrating an electronic device 1000 according to an exemplary embodiment of the present disclosure.

[0203] Reference Fig.10 The electronic device 1000 includes at least one memory 1001 and at least one processor 1002. The at least one memory 1001 stores instructions. When the instructions are executed by the at least one processor 1002, the loading scheme generating method according to the exemplary embodiment of the present disclosure is executed.

[0204] As an example, the electronic device 1000 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instructions. Here, the electronic device 1000 is not necessarily a single electronic device, but may also be any device or circuit capable of executing the above instructions (or instruction sets) individually or in combination. The electronic device 1000 may also be part of an integrated control system or a system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.

[0205] In the electronic device 1000, the processor 1002 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0206] The processor 1002 may execute instructions or codes stored in the memory 1001, wherein the memory 1001 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.

[0207] The memory 1001 may be integrated with the processor 1002, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 1001 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 1001 and the processor 1002 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 1002 can read files stored in the memory.

[0208] In addition, the electronic device 1000 may further include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 1000 may be connected to each other via a bus and / or a network.

[0209] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium may also be provided, and when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned loading scheme generation method. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0210] According to the loading scheme generation method, device, electronic device and storage medium disclosed in the present invention, a tree search algorithm is adopted and multiple search strategies are integrated to efficiently search for loading schemes of box blocks in parallel, and the optimal loading scheme (i.e., the loading scheme with the highest space loading rate) is obtained from multiple loading schemes corresponding to multiple search strategies to guide the actual packing process, which can effectively improve the space loading rate of containers in actual packing scenarios. In addition, when searching for loading schemes, the boxes are pre-assembled into box blocks, and the time for searching for loading schemes is effectively shortened by considering box blocks rather than single boxes, which greatly improves the search efficiency of loading schemes and also provides a guarantee for the stability of packing.

[0211] Furthermore, since the sizes of the same type of virtual boxes in terms of length, width and height are the same, the shape of the virtual box blocks expanded and stacked using the same type of virtual boxes is relatively regular. For example, it may be a regular rectangular block, which is easy to load into the virtual loading container. That is, the loading space in the virtual loading container can be utilized as fully as possible, and a high space loading rate can be guaranteed.

[0212] Furthermore, by expanding and stacking different types of single virtual box blocks, a composite virtual box block with a more regular shape and a larger volume can be obtained, so as to more fully utilize the loading space in the virtual loading container, thereby ensuring a higher space loading rate.

[0213] Furthermore, when constructing the search tree, it is necessary to consider the preset constraints of each virtual box, so as to ensure that the real box loaded into the real loading container in the actual packing scenario will not be squeezed and deformed, thereby ensuring the stability and reliability of the packing.

[0214] Furthermore, the priority queue search strategy can give priority to expanding those tree nodes with the largest temporary space loading rate, that is, it can give priority to expanding those nodes that appear to have the best final loading plan, that is, it can give priority to expanding those tree nodes with the greatest potential, while ignoring tree nodes with relatively poor potential, thereby ensuring that the loading plan corresponding to the search tree obtained after the expansion is a loading plan with a relatively high space loading rate, thereby ensuring the space loading rate in the actual packing scenario.

[0215] Furthermore, when expanding the formal child nodes of the tree node, for each of the multiple split spaces corresponding to the tree node, the virtual box blocks with the largest effective space volume are selected to be loaded into the split space, that is, the virtual box blocks with smaller wasted space volume are selected to be loaded into the split space. This can make the volume of wasted space in each split space as small as possible, that is, make the space loading rate of each split space as large as possible, and thus ensure that the loading plan corresponding to the search tree that is finally expanded has a relatively high space loading rate.

[0216] Furthermore, in the process of expanding the greedy child nodes, since the maximum split space is selected each time, and the virtual box block with the largest volume of effectively used space will be loaded into the maximum split space, that is, the virtual box block with the smallest volume of wasted space will be loaded into the maximum split space, the volume of wasted space in the maximum split space can be made as small as possible, that is, the space loading rate of the maximum split space can be made as large as possible, which can ensure that the space loading rate of the temporary loading solution obtained when the iteration terminates is as large as possible, and thus the space loading rate in the actual packing scenario can be guaranteed.

[0217] Furthermore, the present disclosure also provides a depth-first search strategy, which determines the temporary space loading rate of the current tree node through the temporary space loading rates of multiple formal child nodes in the next layer of the current tree node, that is, it can explore child nodes with greater potential as much as possible, and can effectively avoid the defect of directly ignoring child nodes with greater potential in the priority queue search strategy, and can ensure that the loading plan corresponding to the search tree obtained after the expansion is a loading plan with a higher space loading rate, thereby ensuring the space loading rate in the actual packing scenario.

[0218] Furthermore, the fixed search strategy provided by the present disclosure can determine the temporary space loading rate of the current tree node through the temporary space loading rate of multiple test sub-nodes in the n layers under the current tree node. Compared with the depth-first search strategy, the excavation depth is deeper, and sub-nodes with greater potential can be further excavated, thereby ensuring that the loading scheme corresponding to the search tree obtained after the expansion is a loading scheme with a higher space loading rate. Moreover, when expanding the test sub-nodes, as the expansion depth increases, the number of expandable test sub-nodes corresponding to each split space can be reduced layer by layer, which can avoid the situation where the expansion of too many test sub-nodes leads to the consumption of more computing resources, and can shorten the time consumption of expanding the test sub-nodes while improving the space loading rate of the loading scheme, thereby improving the expansion efficiency of the test sub-nodes.

[0219] Furthermore, with the random sampling search strategy provided by the present invention, the spatial loading rate of a loading scheme corresponding to a random search tree may be relatively high, or may not be that high. However, the spatial loading rate of the loading scheme with the highest spatial loading rate selected from multiple loading schemes corresponding to multiple random search trees will at least not be too bad, thereby ensuring a higher spatial loading rate in actual packing scenarios.

[0220] Furthermore, the two-stage search strategy provided by the present disclosure can first use the random sampling search strategy of the first stage to find virtual box blocks with greater potential from a large number of virtual box blocks, that is, a large number of virtual box blocks with poor potential can be eliminated. Then, the search strategy of the second stage can be used to search again from the virtual box blocks with greater potential searched in the first stage. Since the number of virtual box blocks searched in the second stage has been greatly reduced compared to the first stage, the speed and accuracy of the search in the second stage will be greatly improved, which can ensure a higher space loading rate in the actual packing scene.

[0221] Furthermore, by combining two or more search strategies to form a hybrid search strategy to construct a hybrid search tree, it is equivalent to integrating the advantages of multiple search strategies, which can further improve the spatial loading rate of the final loading solution.

[0222] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

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

Claims

1. A method for generating a loading plan, characterized in that: include: Based on the preset constraint condition corresponding to each virtual box in the plurality of virtual boxes, a plurality of virtual box blocks are obtained, wherein each of the virtual box blocks includes at least one of the virtual boxes; Based on the multiple virtual box blocks and the preset constraint conditions, a search tree is constructed in parallel using multiple search strategies, wherein a tree node of the search tree is used to indicate a loading state of a virtual loading container loading the virtual box block; Obtain the loading plan corresponding to each search strategy based on the constructed search tree; The loading scheme with the highest space loading rate among the multiple loading schemes obtained is determined as the loading scheme used to guide the actual packing process.

2. The method for generating a loading plan according to claim 1, characterized in that: The search strategy includes a priority queue search strategy, and based on the multiple virtual box blocks and the preset constraints, a plurality of search strategies are used to construct a search tree in parallel, including: Based on the multiple virtual box blocks and the preset constraints, constructing a queue search tree corresponding to the priority queue search strategy in an iterative manner; For each iteration process, the following operations are performed until the iteration is terminated: Determine at least one tree node contained in the current bottom layer of the queue search tree at the beginning of this iteration; Obtaining a temporary space loading rate corresponding to each tree node in the at least one tree node by using a greedy algorithm, wherein the temporary space loading rate is a space loading rate of a temporary loading solution obtained by expanding a greedy child node of each tree node by using the greedy algorithm; The multiple formal child nodes of the next layer of the first tree node corresponding to the maximum temporary space loading rate in the at least one tree node are used as at least one tree node included in the current lowest layer in the queue search tree when the next iteration starts.

3. The method for generating a loading plan according to claim 2, characterized in that: Also includes: Determine at least one split space corresponding to the first tree node, wherein the at least one split space is a split space obtained by splitting other spaces in the virtual loading container, and the other spaces are spaces in the virtual loading container except the space occupied by the virtual box blocks included in the first tree node; Sorting the virtual box blocks that are not put into the virtual loading container among the plurality of virtual box blocks in descending order of the corresponding effective use space volumes to obtain sorted virtual box blocks, wherein the effective use space volume is the difference between the total volume of the virtual box blocks that can be put into the virtual loading container and the volume of the wasted space; For each of the at least one split space, a preset first number of virtual box blocks whose corresponding volumes are smaller than the volumes of each of the split spaces and whose corresponding effective use space volumes are ranked in front are selected from the sorted virtual box blocks; Each virtual box block in the preset first number of virtual box blocks is simulated to be loaded into each of the segmented spaces to obtain a plurality of formal child nodes of the next layer of the first tree node.

4. The method for generating a loading plan according to claim 2, characterized in that: The step of obtaining the temporary space loading rate corresponding to each tree node in the at least one tree node by using a greedy algorithm includes: For each tree node in the at least one tree node, a plurality of greedy child nodes corresponding to each tree node and having a superior-subordinate relationship are obtained in an iterative manner; The space loading rate of the temporary loading solution corresponding to the greedy sub-node at the bottom layer among the multiple greedy sub-nodes is used as the temporary space loading rate; For each iteration process, the following operations are performed until the iteration is terminated: Determine the current tree node at the beginning of this iteration; Determine a maximum segmentation space having the largest volume among at least one segmentation space corresponding to the current tree node; Determine a target virtual box block among the plurality of virtual box blocks, which has the largest corresponding effective use space volume, has a corresponding volume smaller than the volume of the maximum segmented space, and has not been loaded into the virtual loading container; The target virtual box block is placed into the maximum segmentation space to obtain a greedy child node of the current tree node, and the greedy child node is used as the current tree node at the beginning of the next iteration.

5. The method for generating a loading plan according to claim 4, characterized in that: The iterative termination condition for obtaining multiple greedy child nodes corresponding to each tree node in an iterative manner is: Any of the at least one split space corresponding to the current tree node cannot accommodate any virtual box block among the multiple virtual box blocks.

6. The method for generating a loading plan according to claim 1, characterized in that: The search strategy includes a depth-first search strategy, and based on the multiple virtual box blocks and the preset constraints, a plurality of search strategies are used to construct a search tree in parallel, including: Based on the multiple virtual box blocks and the preset constraints, constructing a depth search tree corresponding to the depth-first search strategy in an iterative manner; For each iteration process, the following operations are performed until the iteration is terminated: Determine at least one tree node contained in the current bottom layer of the deep search tree at the beginning of this iteration; For each tree node in the at least one tree node, multiple temporary space loading rates corresponding to multiple formal child nodes in a layer below each tree node are obtained, and the maximum temporary space loading rate among the multiple temporary space loading rates is used as the temporary space loading rate of each tree node; The multiple formal child nodes of the next layer of the second tree node corresponding to the maximum temporary space loading rate in the at least one tree node are determined as at least one tree node included in the current bottom layer in the deep search tree when the next iteration starts.

7. The method for generating a loading plan according to claim 1, characterized in that: The search strategy includes a fixed search strategy, and based on the multiple virtual box blocks and the preset constraint conditions, a plurality of search strategies are used to construct a search tree in parallel, including: Based on the multiple virtual box blocks and the preset constraints, constructing a fixed search tree corresponding to the fixed search strategy in an iterative manner; For each iteration process, the following operations are performed until the iteration is terminated: Determine at least one tree node contained in the current bottom layer of the fixed search tree at the beginning of this iteration; For each tree node in the at least one tree node, obtain multiple temporary space loading rates corresponding to multiple test subnodes in the lower n layers of each tree node, and use the maximum temporary space loading rate among the multiple temporary space loading rates as the temporary space loading rate of each tree node, where n>1; The multiple formal child nodes of the next layer of the third tree node corresponding to the maximum temporary space loading rate in the at least one tree node are determined as at least one tree node included in the current lowest layer in the fixed search tree when the next iteration starts.

8. A loading plan generating device, characterized in that: include: A virtual box block acquisition module is configured to acquire a plurality of virtual box blocks based on a preset constraint condition corresponding to each virtual box in the plurality of virtual boxes, wherein each of the virtual box blocks includes at least one of the virtual boxes; A search tree construction module is configured to construct a search tree in parallel using multiple search strategies based on the multiple virtual box blocks and the preset constraints, wherein the tree nodes of the search tree are used to indicate the loading status of the virtual loading container loading the virtual box block; A loading scheme acquisition module is configured to acquire a loading scheme corresponding to each search strategy based on the constructed search tree; The loading scheme determination module is configured to determine the loading scheme with the highest space loading rate among the multiple loading schemes obtained as the loading scheme for guiding the actual packing process.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the loading plan generating method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the loading plan generating method according to any one of claims 1 to 7.