Abstract
Symmetry is an important principle and characteristic that is prevalent in nature and artificial environments. In the three-dimensional packing problem, leveraging the inherent symmetry of goods and the symmetry of the packing space can enhance packing efficiency and utilization.The three-dimensional packing problem is an NP-hard combinatorial optimization problem in the field of modern logistics, with high computational complexity. This paper proposes an improved genetic algorithm by incorporating a fusion tabu search strategy to address this problem. The algorithm employs a three-dimensional loading mathematical model and utilizes a wall-building method under residual space constraints for stacking goods. Furthermore, adaptation of fitness variation strategy, chromosome adjustment, and tabu search algorithm are introduced to balance the algorithm’s global and local search capabilities, as well as to enhance population diversity and convergence speed. Through testing on benchmark cases such as Bischoff and Ratcliff, the improved algorithm demonstrates an average increase of over 3% in packing space utilization compared to traditional genetic algorithms and other heuristic algorithms, validating its feasibility and effectiveness. The proposed improved genetic algorithm provides new insights for solving three-dimensional packing problems and optimizing logistics loading schedules, offering promising prospects for various applications.
    1. Introduction
The Three-Dimensional Bin Packing Problem (3D-BPP) is a class of NP-hard combinatorial optimization problems. Given a set of three-dimensional boxes to be packed and one or more fixed-size three-dimensional containers, the objective of 3D-BPP is to select the optimal subset of boxes and determine their best spatial arrangement within the container to minimize the number of required containers or to maximize space utilization. Solving 3D-BPP faces the following major challenges:
- Combinatorial Explosion: As the number and variety of boxes increase, the possible combinations grow exponentially, leading to an extremely large search space;
- Complex Constraints: Boxes come in various shapes and sizes, and containers have diverse requirements such as load-bearing capacity and stacking stability, posing difficulties in problem modeling and solving;
- Geometric Computations: Operations like rotation, translation, and nesting of boxes in three-dimensional space involve a significant number of geometric computations, imposing higher demands on algorithm design and implementation.
To address the challenges posed by the rapid expansion of solution space and escalating search complexity in the Three-Dimensional Bin Packing Problem (3D-BPP), the academic community has proposed various intelligent optimization algorithms. These algorithms can be broadly categorized into three types: exact algorithms, approximate algorithms, and heuristic algorithms.
Exact algorithms, employing methods such as mathematical programming, dynamic programming, and branch and bound, theoretically guarantee the optimal solution to the problem. However, due to the NP-hard nature of the problem, their computational complexity grows exponentially with problem size, making them impractical for real-world applications. For instance, Martello et al. [] proposed an exact algorithm based on the branch and bound framework, achieving optimal solutions only for small-scale instances. Approximate algorithms, on the other hand, offer theoretical guarantees on the deviation of their solutions from the optimal solution. Despite these guarantees, their practical performance often falls short of expectations. For example, Miyazawa et al. [] designed an approximate algorithm with an approximation ratio of 2, but, in instance testing, its performance showed significant deviations from the optimal solution. Heuristic algorithms, inspired by human intelligence and natural phenomena, efficiently explore and optimize solution spaces to obtain satisfactory solutions within reasonable timeframes. They have gained widespread popularity in practical applications. Among them, Genetic Algorithms (GA) have garnered significant attention from scholars in the 3D-BPP field due to their superior global search capabilities and flexible problem-modeling characteristics.
Gehring et al. [] were among the pioneers to introduce Genetic Algorithms (GAs) into the 3D-BPP. They achieved favorable loading results at the time by designing targeted chromosome encoding, crossover, and mutation operations. Subsequently, many scholars have made improvements and innovations based on this foundation. Bortfeldt et al. [] proposed a hybrid genetic algorithm, incorporating layer-based heuristic strategies and tree search optimization. They also designed special diploid individual representation schemes, heuristic packing methods, and several specific genetic algorithm operations, achieving excellent performance in benchmark tests such as Bischoff and Ratcliff. Gonçalves et al. [] introduced a biased random-key genetic algorithm, which optimizes the packing sequence and parameters of boxes by combining a new placement procedure with a random-key-based genetic algorithm, effectively addressing both 2D and 3D packing problems. Kang et al. [] combined knowledge guidance and heuristic reasoning to propose an improved grouped genetic algorithm for solving the three-dimensional packing problem. They enhanced algorithm performance by controlling gene transmission while maintaining a balance between selection pressure and population diversity.
In heterogeneous bin packing optimization, scholars have devised targeted genetic algorithm enhancements. Rajab et al. [] employed an adaptive genetic algorithm for heterogeneous 3D bin packing, optimizing vacant volume inside containers while satisfying practical constraints. Yousaf et al. [] proposed a genetic algorithm framework for heterogeneous 3D bin packing, considering practical constraints to optimize box packing. Kh et al. [] introduced multi-objective hybrid genetic algorithms, utilizing metaheuristic and local search techniques to minimize box count in 2D bin packing while maintaining load balance.
Additionally, integration of genetic algorithms with other intelligent optimization methods has been explored. Rajapakshe et al. [] combined Depth Bottom Left Fill heuristic with genetic algorithms to tackle complex 3D-BPP and knapsack problem combinations, enhancing efficiency and value of packing layouts. Soukaina et al. [] devised a genetic algorithm based on Crow Search, merging bio-inspired heuristics to solve 2D-BPP and achieve synergistic effects. Wang et al. [] proposed a method that united genetic algorithms with reinforcement learning for automatic design of genetic algorithms to solve the 2D-BPP, aiming to enhance efficiency by reducing computational resources.
In recent years, there have been some new research advancements in addressing online and large-scale packing problems. Zhang et al. [] proposed an online three-dimensional packing method based on constrained deep reinforcement learning. By introducing a buffer zone to allow for multiple item action selections, they improved packing performance. Sun et al. [] utilized reinforcement learning algorithms to optimize neural network models for the multi-bin three-dimensional packing problem. By integrating Transformer models with conditional query mechanisms and attention mechanisms, they achieved excellent packing results. Jiang et al. [] introduced a data-driven tree search algorithm. They utilized a convolutional neural network trained on historical data to guide tree pruning, thereby accelerating the solution of large-scale 3D-BPP problems.
Genetic algorithms have also been actively researched and applied in 3D-BPP: Jia Kang [], based on genetic algorithms, utilized a three-dimensional space-partitioning encoding approach to stack similar items together, thereby improving space utilization. Zhang Jun et al. [] proposed a hybrid algorithm that incorporated genetic algorithms and simulated annealing, which included multiple constraints. They introduced new crossover and mutation operators to determine the optimal placement sequence. Chen Yuanwen [] introduced a priority preservation strategy based on genetic algorithms, which enhanced loading space utilization.
In addition, some scholars have utilized other types of heuristic algorithms to solve 3D-BPPs. Zhang Defu et al. [] proposed a combined heuristic algorithm, employing simulated annealing and human-inspired strategies. They controlled the loading of goods using point-finding methods and reference line rules. Liu Sheng et al. [] introduced a multi-layer tree search algorithm, generating loading schemes with the order of box–slice–strip–layer–entity. Ying et al. [] merged a differential evolution algorithm with a ternary search tree model, proposing an algorithm suitable for solving weak heterogeneous packing problems. Liu Jiaming et al. [] presented a hybrid tabu search algorithm, combining heuristic strategies and residual space handling to generate optimal layouts for goods. Gao Peng et al. [] combined a three-dimensional greedy stacking method with ant colony optimization, proposing a solution for solving strongly heterogeneous packing problems.
Despite advancements in 3D-BPP solving algorithms, challenges persist in terms of algorithm robustness, practicality, and adaptability to varying constraints. While many algorithms perform well in specific scenarios, they often struggle with changes in problem types and scales, necessitating improved adaptability [,,]. Moreover, existing algorithms often rely on idealized assumptions, limiting their applicability to real-world packing operations. Future research should prioritize considerations such as physical attributes of goods, loading stability, and ease of loading and unloading [].
Symmetry is widely present in nature and human-made environments as a fundamental geometric and physical principle. Properly utilizing the symmetric properties of objects themselves and the symmetry of the external environment can simplify problems and improve efficiency. In the three-dimensional packing problem, taking advantage of the symmetry of goods and packing spaces can reduce the search space and increase packing density.
Therefore, this paper proposes an enhanced genetic algorithm fused with a tabu search strategy. Building upon prior research, this approach aims to improve loading efficiency while ensuring solution robustness. By integrating tabu search with genetic algorithms, this method offers a novel solution for practical applications in three-dimensional packing optimization.
2. Materials and Methods
2.1. 3D-BPP
The Three-Dimensional Bin Packing Problem (3D-BPP) involves finding the optimal solution to maximize the utilization of container space given a set of different-sized and -shaped three-dimensional objects and a container with a specific volume. The foundation of this study assumes that both the container and three-dimensional objects are regular shapes with specific length, width, and height.
Consider a container of regular dimensions and n types of items to be loaded, where the dimensions of the container and the i-th type of item are expressed as in Equations (1) and (2), respectively. Establish a Cartesian coordinate system with the point at the left rear corner of the container denoted as the origin. Item placement begins from the origin, where the left rear point of the item (c) coincides with the origin, as illustrated in Figure 1. Both the container and items have regular dimensions.
        
      
        
      
      
      
      
    
      
        
      
      
      
      
    
 
      
    
    Figure 1.
      The schematic diagram of container and item placement.
  
Given the specified container and items, the loading objective is defined as follows: to find an optimal item placement strategy based on the given dimensions, maximizing the utilization of the container space. The item placement process must adhere to the following constraints:
- Items must not overlap during the loading process;
- During the loading process, items must not exceed the maximum dimensions of the container;
- When loading vertically, items must not be suspended; they must have one side in close contact with the bottom of the container or the top surface of another item.
Based on this, the objective function is defined as follows:
      
        
      
      
      
      
    
In this equation, m represents the number of loaded items.
2.2. Loading Strategy
Different loading strategies result in different packing effects and affect space utilization. To minimize the generation of gaps while satisfying the above constraints, this paper adopts a loading strategy of constructing item walls.
The item wall (refer to Figure 2) is formed by stacking items of the same type in a specific orientation simultaneously, denoted as B. Its dimensions can be expressed as in Equation (4):
      
        
      
      
      
      
    
 
      
    
    Figure 2.
      The schematic diagram of the item wall.
  
The dimensions of the item wall depend on the size of the remaining space. The remaining space (refer to Figure 3) is defined as the vacant rectangular area formed by the items before loading, and its dimensions can be expressed as in Equation (5):
      
        
      
      
      
      
    
 
      
    
    Figure 3.
      The schematic diagram of the remaining space.
  
The generation and loading of the item wall are carried out within the remaining space in the container according to specific rules. Depending on the orientation of the item wall, it can be divided into XZ wall, YZ wall, and XY wall, denoted as the set , as shown in Equation (6):
      
        
      
      
      
      
    
The item wall is placed adjacent to one side of the remaining space. After each placement of the item wall, the remaining space is redefined based on the boundaries of the item wall and the container, and its size changes according to Equation (7):  
      
        
      
      
      
      
    
In the equation, x, y and z represent the quantities of YZ walls, XZ walls and XY walls inside the container, respectively.
The dimensions of the item wall are constrained by the remaining space and must satisfy the following size constraints:
      
        
      
      
      
      
    
Under the constraints, the dimensions of the item wall can be determined according to the selected type of item using the following equations:
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
The item wall is sequentially generated and loaded into the specified position of the remaining space in the order of XZ wall, YZ wall, and XY wall. The schematic diagram is shown in Figure 4.
 
      
    
    Figure 4.
      The schematic diagram of the sequence of item wall placement.Roman numerals I to X denote the sequence of filling the item wall.
  
Selecting k types of items and generating item walls according to the aforementioned method to load them into the container, let  denote the set of item walls. Therefore, based on Equation (3), the objective function is modified to the following equation:
      
        
      
      
      
      
    
2.3. Genetic Algorithm
The genetic algorithm is an optimization algorithm that simulates the process of biological evolution. It possesses strong global search capabilities and gradually improves candidate solutions by simulating operations such as natural selection, genetic crossover, and mutation, aiming to find the optimal or suboptimal solution to a problem.
2.3.1. Encoding and Decoding
In genetic algorithms, each chromosome represents a feasible solution, describing how items are arranged and placed into containers. This paper adopts sorting encoding as the encoding method for chromosomes. According to the aforementioned wall construction method, each gene on the chromosome represents a wall of items. During the decoding process, genes are expressed in the order of their sequence on the chromosome, and the walls of items are placed into containers in an orderly manner.
Each gene should contain the following information: the type of item used to construct the item wall and its orientation. Assume that there are n types of items, represented by the set E = {1, 2, 3, …, n}. As shown in Figure 5, each type of item has six orientations, represented by the set F = {a, b, c, d, e, f}. Therefore, each time a type of items and its orientation are randomly selected from sets E and F and encoded as a gene according to Equation (13). Through multiple extractions, chromosomes are formed in the order of gene generation according to Equation (14), completing the chromosome-encoding process.
 
      
    
    Figure 5.
      The schematic diagram of the orientations of item placement. (a–f) diagrams represent the six orientations of the cargo in three-dimensional space.
  
During the decoding process, the inverse procedure of encoding is followed. Gene codes on the chromosome are extracted one by one and decoded into corresponding item walls in the order of YZ walls, XZ walls, and XY walls, which are then filled into the container. As item walls are filled, the remaining space continuously decreases. If the size of the remaining space is insufficient to generate the item wall represented by a gene code, that gene code is skipped, and decoding operations proceed to the next gene code until the entire chromosome is decoded.
          
      
        
      
      
      
      
    
      
        
      
      
      
      
    
2.3.2. Selection
In this paper’s algorithm, roulette wheel selection is used as the selection operator. The fitness of each individual is transformed into a probability value according to the following equation, allowing individuals with higher fitness to have a greater chance of participating in crossover to produce the next generation, while individuals with lower fitness also have a certain probability of being selected. To preserve superior genes, implement an elitist retention strategy, where the top five individuals with the highest fitness proceed directly to the next generation without participating in crossover.
          
      
        
      
      
      
      
    
2.3.3. Crossover
Crossover is a crucial step in genetic algorithms, where genetic information is exchanged between parents to produce offspring. Single-point crossover is chosen as the crossover operator. Parents undergo crossover with a certain probability. If no crossover occurs, the parents are considered as offspring and directly added to the new population, as shown in the following equation:
      
        
      
      
      
      
    
In the equation,  and  represent the new individuals,  and  represent the parent individuals, and  represents the crossover probability.
As illustrated in Figure 6, during single-point crossover, a random position is selected on two chromosomes as the crossover point. Subsequently, the genes to the right of the crossover point on each chromosome are exchanged, resulting in the generation of two new offspring, thereby completing the crossover process.
 
      
    
    Figure 6.
      The schematic diagram of the process of crossover.
  
The offspring obtained after crossover inherit partial genetic information from the parents, resulting in alterations in the arrangement of gene codes. The validity of the offspring is not influenced by the arrangement of their own gene codes. All generated offspring are considered legitimate, as they can be mapped to a three-dimensional space according to their gene code sequence using the aforementioned decoding method.
2.3.4. Mutation
Mutation introduces randomness and diversity to help the algorithm escape local optima. Exchange mutation is selected as the mutation operator. All individuals in the population undergo mutation with a certain probability.
          
      
        
      
      
      
      
    
In the equation, i represents an individual in the population and  represents the mutation probability.
As illustrated in Figure 7, during exchange mutation, two genes are randomly selected on the chromosome, and their positions are swapped. This process completes the mutation.
 
      
    
    Figure 7.
      The schematic diagram of the process of mutation.
  
3. Improved Genetic Algorithm
Although genetic algorithms possess strong search capabilities, their inherent global search characteristic may cause the algorithm to occasionally become trapped in local optimum regions during the evolutionary process, thereby hindering further enhancement of solution quality. Moreover, with the increase in the number of item types, the solution space of the Three-Dimensional Bin Packing Problem grows exponentially, making it more challenging for the algorithm to find the global optimal solution within a limited number of iterations.
To address the aforementioned challenges, this paper integrates various optimization strategies into the traditional genetic algorithm, proposing an enhanced algorithm:
- Building upon Equation (12), the fitness function of the genetic algorithm is improved to simplify the computation process of the algorithm;
- Adjustments are made to the structure of chromosomes to facilitate effective exchange of information between populations, thereby accelerating convergence speed;
- During the initial population creation and evolution process, a tabu search strategy is incorporated, introducing flexible tabu criteria and unblocking mechanisms to assist the algorithm in escaping local optima.
The algorithm flowchart is shown in Figure 8.
 
      
    
    Figure 8.
      The schematic diagram of the flowchart of the algorithm.
  
Based on the above ideas, this paper presents the pseudocode of the improved genetic algorithm. The pseudocode of Algorithm 1 is shown below.
	  
| Algorithm 1 Improving Hybrid Heuristic Algorithm | |
| Input: Cargo to be loaded , carriage space , and iteration count . | |
| Output: the optimal cargo loading strategy | |
| 1: | # Randomly initialize the population | 
| 2: | # Heuristic initialization of the population | 
| 3: | # Merge populations | 
| 4: | # Initialize elite individuals | 
| 5: | for each do | 
| 6: | # Multi-objective fitness evaluation | 
| 7: | # Update elite individuals | 
| 8: | # Crossover | 
| 9: | # Mutation | 
| 10: | if then | 
| 11: | # Perform tabu search every certain number of generations | 
| 12: | # Select a portion of individuals | 
| 13: | # Tabu search | 
| 14: | # Replace individuals | 
| 15: | end if | 
| 16: | # Preserve elites | 
| 17: | if then | 
| 18: | # Check if termination condition is met | 
| 19: | break | 
| 20: | end if | 
| 21: | end for | 
| 22: | return # Return the best solution | 
3.1. Fitness Transformation
To accelerate computation speed, the three-dimensional space inside the container is transformed into a two-dimensional depth table. As shown in Figure 9, each point on the two-dimensional depth table represents the height available for placement at that position within the container, decreasing as item walls are filled in.
 
      
    
    Figure 9.
      The schematic diagram of the depth table.
  
The width of the container is used as the number of rows, the length as the number of columns, and the height as the filling element to establish the depth matrix:   
      
        
      
      
      
      
    
At position (0,0), which corresponds to the left rear point of the three-dimensional container, serve as the initial placement point for item walls. Each element in the matrix represents the remaining available space height at that position.
Let  denote the left rear point of the item wall as the reference point for placement. The placement of the item wall must satisfy the size constraint defined in Equation (8), expressed as in Equation (19):
      
        
      
      
      
      
    
After each placement of an item wall, update the depth value corresponding to each point in the depth matrix according to the following equation:
      
        
      
      
      
      
    
In this equation, a represents an element of the depth matrix and , .
Based on this, the optimization objective function of the problem can be abstracted as follows:
      
        
      
      
      
      
    
Due to the enhanced weak heterogeneity of solutions by the wall construction method, the fitness function is modified to enrich the combination of goods in the optimal solution as much as possible. Let the number of types of goods be n and the number of used types of goods in an individual be . Then, the fitness function is defined as follows:
      
        
      
      
      
      
    
3.2. Chromosome Adjustment
As the internal space of the container increases or the number of item types grows, the length of the sorting code also increases. However, excessively long chromosomes may introduce redundant information. Some segments of genes cannot be effectively expressed during the decoding process, which interferes with the effective exchange of genes among individuals to some extent, resulting in a decrease in convergence speed and a reduction in the performance of the genetic algorithm. To reduce this interference, this paper introduces a chromosome adjustment strategy.
As shown in Figure 10, the chromosome, composed of sorted encoding, consists of effective and ineffective genes. When a gene code on the chromosome representing the size of an item wall exceeds the size of the remaining space, failing to meet the size constraint defined in Equation (8), resulting in the inability to accommodate the item wall in the container, this gene is defined as an ineffective gene that cannot be expressed. Conversely, genes that can be expressed normally during the decoding process are referred to as effective genes. To reduce the interference of ineffective genes and strengthen the exchange of effective information during crossover, successfully expressed genes are extracted during the first decoding process and formed into a new sorted sequence, serving as the new chromosome for that individual.
 
      
    
    Figure 10.
      The schematic diagram of the process of crossover.
  
During the decoding process, all chromosomes are traversed and updated. The updated chromosomes are then used in other stages of the algorithm.
3.3. Local Search Algorithm
Compared to genetic algorithms, the tabu search algorithm demonstrates stronger local search capabilities, enabling exploration within the neighborhood of local optima and preventing entrapment in them by introducing a tabu list. Therefore, integrating tabu search as a local search algorithm to complement genetic algorithms as global search algorithms can enhance search diversity and facilitate rapid convergence.
The auxiliary optimization process using tabu search is as follows:
- Incorporate the population to be optimized. Embed the tabu search algorithm into two key stages of the genetic algorithm as auxiliary search algorithms to improve the performance and search effectiveness of the algorithm: (1) After creating the initial population, the entire population is introduced into the tabu search algorithm; (2) Randomly select half of the individuals from the new population generated after crossover as the population to be optimized, and then introduce them into the tabu search algorithm.
- Initialize a tabu list with the same size as the population, where each individual is independent of others.
- Calculate and save the fitness of the population before optimization, considering the current population and fitness as the best population and best fitness.
- Perturb all individuals within the neighborhood, randomly altering segments of genes on the chromosome.
- Check if this perturbation exists in the tabu list. If it does, perturb again; otherwise, add this perturbation to the corresponding tabu list of the individual. The tabu tenure is calculated as follows, and the action is automatically released after reaching the tabu tenure. In the equation, t represents the length of the chromosome.
- The fitness of the new population is computed, and the presence of individuals with enhanced fitness is examined. If such individuals are found, then substitute the corresponding individuals in the best population with higher fitness while updating the best fitness.
- Repeat Steps 4 to 6 until the maximum number of iterations is reached.
- Export the updated optimal population and replace the old individuals participating in tabu search in the original population with them.
4. Results
The algorithm proposed in this paper is compiled using the Python programming language and runs on a computer with a 13th Gen Intel(R) Core(TM) i5-13500H 2.60 GHz CPU. To enhance the computational speed, multiprocessing is employed for computing the fitness function. The benchmark dataset provided by Bischoff and Ratcliff [] is utilized as the test data. Results are compared with genetic algorithms (GA [], GA_GB []), simulated annealing (SA []), tabu search (HTS_L []), and the algorithm of Bischoff and Ratcliff to validate the feasibility of the proposed algorithm (Improving Hybrid Heuristic Algorithm, abbreviated as IHHA).
4.1. Parameter Settings
Before implementing the algorithm, specific parameters for the genetic algorithm and tabu search were determined, as shown in Table 1.
 
       
    
    Table 1.
    Parameters involved in the algorithm.
  
4.2. Example Validation
The selected test data consist of five categories, BR1 to BR5, from Bischoff and Ratcliff’s instances. The types of boxes are 3, 5, 8, 10, and 12, with the dimensions of the container determined to be 587 cm × 233 cm × 220 cm, in accordance with international standards. Eight instances were randomly selected from the five categories, and each instance was tested five times. The maximum space utilization rate of the selected instances was chosen as the test result.
To enhance the visual intuitiveness of the program, different colors are used in the packing effect diagram to distinguish between different items. The obtained solutions are represented in the form of sorted codes, which include information such as the labels of the item walls and the placement order, as shown in Figure 11.
 
      
    
    Figure 11.
      Explanation diagram of the solution.
  
The final test results are shown in Table 2, Table 3, Table 4, Table 5 and Table 6, and the packing effect diagrams are shown in Figure 12, Figure 13, Figure 14, Figure 15 and Figure 16.
 
       
    
    Table 2.
    Table of BR1 test results.
  
 
       
    
    Table 3.
    Table of BR2 test results.
  
 
       
    
    Table 4.
    Table of BR3 test results.
  
 
       
    
    Table 5.
    Table of BR4 test results.
  
 
       
    
    Table 6.
    Table of BR5 test results.
  
 
      
    
    Figure 12.
      The packing effect diagram for instance BR1.
  
 
      
    
    Figure 13.
      The packing effect diagram for instance BR2.
  
 
      
    
    Figure 14.
      The packing effect diagram for instance BR3.
  
 
      
    
    Figure 15.
      The packing effect diagram for instance BR4.
  
 
      
    
    Figure 16.
      The packing effect diagram for instance BR5.
  
From the depicted graphs and presented tables, it is evident that the algorithm proposed herein effectively selects the optimal arrangement of goods from a range of goods with varying dimensions, thus maximizing cargo space utilization. The maximum space utilization rate for all instances of each test case can exceed 85%. These findings indicate that the IHHA algorithm proposed in this study performs admirably in addressing three-dimensional packing problems with fewer types of goods. However, for scenarios featuring a wider variety of goods, the algorithm tends to prioritize space utilization over goods diversity.
4.3. Algorithm Comparison
To validate the effectiveness of the IHHA algorithm proposed in this paper, the average space utilization rate across instances was calculated as the experimental result and compared with GA, GA_GB, SA, HTS_L and the algorithm of Bischoff. The experimental comparison results are presented in Table 7.
 
       
    
    Table 7.
    Table of algorithm results comparison.
  
Based on the table data, our algorithm outperforms GA, GA_GB, SA, HTS_L and the algorithm of Bischoff. Compared to other heuristic algorithms (SA, HTS_L) in the table, our algorithm demonstrates superior packing efficiency. Furthermore, compared to genetic algorithms (GA, GA_GB), our algorithm achieves further improvement in space utilization.
These findings highlight the algorithm’s strong adaptability to scenarios with fewer types of goods, allowing for the generation of optimal packing strategies and maximizing space utilization. The experimental results confirm the feasibility and effectiveness of the algorithm for such packing problems.
5. Conclusions
This paper proposes an enhanced genetic algorithm integrated with tabu search strategies to tackle the three-dimensional packing problem. It establishes a mathematical model for loading goods, ensuring stability and maximizing space utilization. The algorithm incorporates adaptive chromosome encoding, heuristic-guided operations, elite retention, and tabu search to improve search efficiency and solution quality.
Experimental validation using the Bischoff and Ratcliff test set shows significant advantages over traditional genetic algorithms and other heuristics, particularly in scenarios with fewer item types and more individual items. The algorithm achieves optimal or near-optimal solutions with increased loading utilization and reduced solving time. It demonstrates adaptability in complex scenarios but suggests further optimization in areas like item encoding and space partitioning.
Given the NP-hard nature of the problem, challenges remain, such as handling irregular items and multi-objective optimization. Future research will focus on refining mathematical modeling, exploring collaborative optimization frameworks, developing online optimization algorithms, and enhancing system integration for real-world applications.
Author Contributions
Conceptualization, P.C. and Z.K.; methodology, Z.K.; software, Z.K. and J.W.; validation, Z.K., Y.G. and J.W.; formal analysis, P.C.; investigation, Y.G.; resources, P.C.; data curation, Y.G.; writing—original draft preparation, Z.K., Y.G., J.W. and P.C.; writing—review and editing, Z.K. and P.C.; visualization, Z.K.; supervision, P.C. and Y.G.; project administration, P.C.; funding acquisition, P.C. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
This study utilized publicly available datasets. These datasets can be found here: http://people.brunel.ac.uk/~mastjjb/jeb/info.html (accessed on 25 February 2024).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Martello, S.; Pisinger, D.; Vigo, D. The three-dimensional bin packing problem. Oper. Res. 2000, 48, 256–267. [Google Scholar] [CrossRef]
- Miyazawa, F.K.; Wakabayashi, Y. Three-dimensional packings with rotations. Comput. Oper. Res. 2009, 36, 2801–2815. [Google Scholar] [CrossRef]
- Gehring, H.; Bortfeldt, A. A genetic algorithm for solving the container loading problem. Int. Trans. Oper. Res. 1997, 4, 401–418. [Google Scholar] [CrossRef]
- Bortfeldt, A.; Gehring, H. A hybrid genetic algorithm for the container loading problem. Eur. J. Oper. Res. 2001, 131, 143–161. [Google Scholar] [CrossRef]
- Gonçalves, J.F.; Resende, M.G. A biased random key genetic algorithm for 2D and 3D bin packing problems. Int. J. Prod. Econ. 2013, 145, 500–510. [Google Scholar] [CrossRef]
- Kang, K.; Moon, I.; Wang, H. A hybrid genetic algorithm with a new packing strategy for the three-dimensional bin packing problem. Appl. Math. Comput. 2012, 219, 1287–1299. [Google Scholar] [CrossRef]
- Rajab, B.; Vishnu, K.M.; Sujith, R.; Kumar, B.S.; Sriram, V.P. Optimization of heterogeneous Bin packing using adaptive genetic algorithm. Mater. Today Proc. 2020, 24, 1125–1133. [Google Scholar]
- Yousaf, S.; Mahmood, A.; Akram, U.; Qamar, A.M.; Zhang, G.; Faraz, M.; Zahra, A. 3D heterogeneous bin packing framework for multi-constrained problems using hybrid genetic approach. Expert Syst. Appl. 2022, 193, 116390. [Google Scholar]
- Kh, T.A.A.; Ahmed, Z.H.; Bhatti, M.N. Hybrid heuristic algorithms for the multiobjective load balancing of 2D bin packing problems. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 598–610. [Google Scholar]
- Rajapakshe, T.; Zhang, F.; Rothlauf, F.; Abeygunawardana, P.K.W. Solving a Profited 3D Bin Packing Problem Using a Hybrid Genetic Algorithm. Appl. Sci. 2022, 12, 8190. [Google Scholar]
- Laabadi, S.; Naimi, M.; El Amri, H.; Achchab, B. A Crow Search-Based Genetic Algorithm for Solving Two-Dimensional Bin Packing Problem. In Proceedings of the KI 2019: Advances in Artificial Intelligence: 42nd German Conference on AI, Kassel, Germany, 23–26 September 2019; Springer: Berlin/Heidelberg, Germany, 2019; pp. 203–215. [Google Scholar] [CrossRef]
- Wang, Y.; Deng, S.; Sun, W.; Mei, Y. Hybridizing a genetic algorithm with reinforcement learning for automated design of genetic algorithms. Appl. Soft Comput. 2022, 117, 108426. [Google Scholar]
- Zhang, R.; Zeng, X.J.; Xu, C. Online 3D boxing method based on constrained deep reinforcement learning. Packag. Food Mach. 2023, 41, 96–101. [Google Scholar]
- Sun, R. Research and Implementation of Threedimensional Multiple Bin-size Bin Packing Problem Based on Reinforcement Learning. Ph.D. Thesis, Xidian Unversity, Xi’an, China, 2022. (In Chinese). [Google Scholar] [CrossRef]
- Jiang, Y.; Cao, Z.; Zhang, J. Learning to Solve 3-D Bin Packing Problem via Deep Reinforcement Learning and Constraint Programming. IEEE Trans. Cybern. 2023, 53, 2864–2875. [Google Scholar] [CrossRef]
- Jia, K. Optimization Research of 3D Bin Packing Problem Based on Genetic Algorithm. Metrol. Meas. Tech. 2023, 50, 75–78. (In Chinese) [Google Scholar] [CrossRef]
- Zhang, J.; He, K. Study on hybrid genetic and simulated annealing algorithm for three-dimensional packing problems. Comput. Eng. Appl. 2019, 55, 32–39. (In Chinese) [Google Scholar]
- Chen, Y. Three-Dimensional Container Loading Problem Based on Genetic Algorithm with Priority Retention Strategy. Packag. Eng. 2021, 42, 211–218. (In Chinese) [Google Scholar]
- Zhang, D.F.; Wei, L.J.; Chen, Q.S.; Chen, H.W. A combinational heuristic algorithm for the threedimensional packing problem. J. Softw. 2007, 18, 2083–2089. [Google Scholar] [CrossRef][Green Version]
- Liu, S.; Shen, D.; Shang, X.; Zhao, H.X.; Dong, X.S.; Wang, F.Y. A multi-level tree search algorithm for three dimensional container loading problem. Acta Autom. Sin. 2020, 46, 1178–1187. (In Chinese) [Google Scholar]
- Huang, Y.; Lai, L.; Li, W.; Wang, H. A differential evolution algorithm with ternary search tree for solving the three-dimensional packing problem. Inf. Sci. 2022, 606, 440–452. [Google Scholar] [CrossRef]
- Liu, J.M.; Yue, Y. A novel hybrid tabu search approach to container loading. Comput. Oper. Res. 2011, 38, 797–807. [Google Scholar] [CrossRef]
- Gao, P.; Zhang, D.; Zhang, X. Dynamic Hybrid Strategy Optimization Algorithms for Container Loading Problem. J. Comput. Eng. Appl. 2023, 59, 255. [Google Scholar]
- Wahid, F.; Alsaedi, A.; Ahmad, I.; Irfan, M. Constrained-optimization in a 3D bin packing realistic problem. J. King Saud-Univ.-Comput. Inf. Sci. 2021, 33, 33–42. [Google Scholar]
- Baatar, E.; Seo, J.W.; Lim, H.K.; Kim, Y.G. Improvement grouping genetic algorithm for solving the bin packing problem. Int. J. Eng. Technol. 2018, 7, 61–64. [Google Scholar]
- Trivedi, I.N.; Pradeep, J.; Narottam, J.; Arvind, K.; Dilip, L. Genetic algorithm with random crossover and dynamic mutation on bin packing problem. In Proceedings of the 2016 International Conference on Advances in Computing, Communications and Informatics (ICACCI), Jaipur, India, 21–24 September 2016; pp. 2438–2442. [Google Scholar]
- Mao, J.; Zhu, X.; He, T.T.; Duan, H.; Zhang, L. Building cross-platform application for optimized 3D bin packing algorithm. Sustain. Comput. Inform. Syst. 2022, 36, 100750. [Google Scholar]
- Bischoff, E.E.; Ratcliff, M.S.W. Issues in the Development of Approaches to Container Loading. Omega 1995, 23, 377–390. [Google Scholar] [CrossRef]
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. | 
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
