Professional Documents
Culture Documents
A Taboo-Search Algorithm For 3D-Binpacking
A Taboo-Search Algorithm For 3D-Binpacking
A Taboo-Search Algorithm For 3D-Binpacking
Problem in Containers
1 Introduction
A key aspect to become successful in the current trading market is properly managing
product’s logistics and storage. Last years’ trend follows the path of companies whose
advantage lies in the capacity of conducting international shipments with a great
number of products. Hence, the efficiency in the capacity of transportation is a
mandatory requirement for sales companies to maintain or increase their share in the
market [1]. Created in 1956, containers are used as a transportation and packaging
cargo unit for commercialization of different products. They have evolved to such an
extent that even ships have been built with the specific purpose to carry containers [2].
Companies around the world considered containers the ideal method of delivering the
© Springer Nature Switzerland AG 2019
Á. Rocha et al. (Eds.): WorldCIST'19 2019, AISC 930, pp. 229–240, 2019.
https://doi.org/10.1007/978-3-030-16181-1_22
230 P. Leon et al.
goods to clients because of reduced time in cargo transit, more safety (in the sense of
integrity and protection of the products that are sent in the containers) and above all
lower costs.
Despite the benefits from the use of containers, sales companies have got into
troubles in optimizing the space used within these transport units mainly due to the fact
that the order and distribution of packages placed into containers is inadequate since
weight, shape, volume of these items are not taken into account. The problem gets
worse when personnel involved lacks the knowledge or training required to conduct
the tasks at hand [3]. Therefore, proposing an order of placement of packages within
the container with the aim of optimizing the space used in them, becomes the main
hurdle for this research, since the solution will allow transporting more packages—in a
safe way—in less numbers of containers and minimizing faults or fractures in fragile
products during transport [12, 14]. Eventually, this will result in reduced transportation
costs per container incurred by the company, as costs are related to the number of
containers to be used. In the bibliography this problem is known as the 3D Bin Packing
Problem. This is a combinatorial optimization problem focused on maximizing the
space used by objects within a restricted space, e.g., a container. Objects are placed
following certain boundaries to achieve the proposed objective. This problem increases
its computational complexity in a non-determinist polynomial time while variables
such as the number of objects or their sizes differ, that is why it is called NP-hard (a
term to describe the set of problems that is at least as hard as the hardest problem that
can be solved in a polynomial time [4]).
Because of this complexity, exact algorithms cannot solve 3D packaging scenarios,
nor may consider many restrictions. It is necessary to use approximate algorithms to
solve these situations. In this field, it is that metaheuristic algorithms such as bio-
inspired ones, can yield sufficiently good and computationally economical solutions to
implement in software [13].
For this research the design and construction of a metaheuristic algorithm delivering
a solution to the above said problem are proposed. Likewise, the taboo-search algorithm
has shown to be capable of providing very good results in combinatorial optimization
problems [5]. On this premise, an algorithm previously used in the literature will be built
to compare its results with those obtained by the algorithm proposed on this project,
using mainly data from Peruvian companies producing ceramic for bathrooms and
kitchens, which must export their products transnationally both by sea and land.
In this paper it is to find the following structure: a brief introduction to the taboo-
search in Sect. 2; algorithms proposed in Sect. 3; numerical experimentation in Sect. 4;
to end with the conclusions in Sect. 5.
The authors have developed previous works related to the variants of the bin packing
problem, developing several metaheuristics (GRASP, Genetic algorithm, memetic,
algorithm, among others) being the genetic algorithms those that have obtained the best
results for 3D scenarios [9–11]. The main motivation of this investigation is to verify if
Taboo-search algorithm can surpass the previously calculated results. This is a kind of
A Taboo-Search Algorithm for 3D-Binpacking Problem in Containers 231
metaheuristic algorithm that tries to solve optimization problems. Its main character-
istic is that it relies on a specific heuristics to prevent areas of the search space recently
visited from being visited again. This characteristic is called short-term memory and is
represented by a taboo list of specific size, with this structure storing the most recent
moves and marking them as moves forbidden for the following n iterations. Through
this heuristic, the taboo search avoids being stuck in a cyclic state, i.e., it escapes local
optima while approaching global optima [6, 7].
It can be considered a better alternative to other types of heuristic and bio-inspired
algorithms due to the ease of implementation and the low computational cost. In
Table 1, appears the pseudo code of the TSA:
3 Contribution
3.1 Brief Discussion About State of Art of the Problem
Three different approaches have been found in the literature for solutions to the
problem [15, 16]:
• Optimization of container filling for multimodal transport
• Hybrid approach between linear programming with heuristics
• Minimization of wasted warehouse space
232 P. Leon et al.
This allows perceiving that the resolution of the problem in 3D scenarios has been
based on hybrid solutions -between the use of exact and approximate methods- that
minimize the loss of spatial volume inside containers. When reviewing the most
commonly used approximate methods, there are some tools that provide an alternative
solution to the problem of waste of container space, but these tools only consider the
space used and no other important factors such as the distribution of weight and
fragility of objects.
Where:
N: Number of containers used.
M: Number of boxes in total.
Vj: Volume of box j.
Kji: Indicates if box j is placed in container i (it can only have the value 0 or 1).
Ci: Capacity of container i.
To test the validity of the objective function, the following test case is presented in
an extreme situation. There are two solutions, the first one has 3 containers with a box
inside each one; the second one has a container with 3 boxes inside. If we consider that
the boxes have a volume of 20 “cubic” units and the containers, a capacity of 100
“cubic” units, it can be raised:
20 100
1
þ 20 100
1
þ 20 100
1
First solution ¼ ¼ 0:2
3
1
ð20 þ 20 þ 20Þ 100
Second solution ¼ ¼ 0:6
1
within containers. Usually, a box can be placed in more than one manner as can be seen
in the following figure [8] (Fig. 1):
Second restriction is limit of the walls of the container: this one indicates that none
of the boxes placed can exceed the limits of the container, that is, all the boxes must be
inside it. Last restriction is weight limit: this one is directly related to the intrinsic
fragility factor of the boxes. It specifies that each box can only have a specific weight
limit above.
4 Numeric Experimentation
To obtain the results sought, both algorithms were run 55 times with different samples.
It should be mentioned that as standards size containers are used, the tests were con-
ducted with same size containers.
These hypotheses will be advanced for both algorithms in such a way that there will
be sufficient evidence to conclude that one of the two hypotheses is true.
4.2.4 Z Test
Since this test will be used to compare the means of both algorithms results, this is ideal
to be able to determine which of the two delivers the best solutions and then reach a
final conclusion.
In order to compare both means, it is first necessary to prove these are considerably
different. After verifying this, the test may be run to determine which of the two means
is the lowest and hence finally conclude which algorithm showed a better performance.
For the first test (two tails) the following hypothesis are proposed (Table 5):
• H0: the means of algorithms results are considerably homogeneous.
• H1: the means of algorithms results are considerably different.
For the second test (one tail) the following hypotheses are proposed:
• H0: the mean of taboo search algorithms results is lower than the mean of genetic
algorithms results.
• H1: the mean of taboo search algorithms results is higher than the mean of genetic
algorithms results.
A Taboo-Search Algorithm for 3D-Binpacking Problem in Containers 239
5 Conclusions
First, we can conclude that the objective function proposed was easily accommodated
to the development of algorithms, since the solutions provided by these contain all the
components that are part of the function. Likewise, it was noted that the objective
function met its purpose, which is determining if a solution is better than the other.
Second, both algorithms were correctly adapted to the optimization problem of the
space used in containers. Both the genetic algorithm and the taboo search algorithm
provided the expected solutions.
Third, through the numeric experimentation, it can be inferred that the taboo search
algorithm delivers better results than the genetic algorithm. This is due to the fact that
the working mode of the search taboo algorithm lays emphasis on the continuous
search for the global optimum avoiding repetition in local optima. On the other hand,
240 P. Leon et al.
the genetic algorithm is only based on inheriting the best solutions and trying to
improve them iteration after iteration, which can result in a local optimum. However, as
can be seen in results shown in Table 4, the taboo search algorithm results are not very
different from those of the genetic algorithm. This is because boxes’ measures intro-
duced in containers do not vary considerably in size and so the solutions found will
hardly be any different.
Finally, it should be mentioned that although this research is focused on finding a
solution to the problem of containers, the algorithms proposed may be applied to other
type of deposits such as warehouses, shelving, railway wagons, and so on.
References
1. Liang, S., Lee, C., Huang, S.: A hybrid meta-heuristic for the container loading problem.
Commun. Int. Inf. Manag. Assoc. 7(4), 73–84 (2007)
2. Tiba Group. http://www.tibagroup.com/mx/mclean-y-la-caja-que-cambio-la-historia-del-
comercio. Accessed 05 Sept 2017
3. Jiménez, J., Jiménez, J.: Cubicaje: distribución a bajo costo. http://www.logisticamx.enfasis.
com/articulos/72752-cubicaje-distribucion-costo. Accessed 12 Sept 2017
4. Garey, M., Johnson, D.: Computers and Intractability. A Guide to the Theory of NP-
Completeness. W. H. Freeman and Company, New York (1979)
5. Werra, D., Hertz, A.: Taboo search techniques. Oper.-Res.-Spektrum 11(3), 131–141 (1989)
6. Glover, F.: Taboo search—part I. ORSA J. Comput. 1(3), 190–2016 (1989)
7. Brownlee, J.: Clever Algorithms: Nature-Inspired Programming Recipes. Lulu, Australia
(2011)
8. Xuehao, F., Ilkyeong, M., Jeongho, S.: Hybrid genetic algorithms for the three-dimensional
multiple container packing problem. Flex. Serv. Manuf. J. 27(2), 451–477 (2013)
9. Tupia, M., Cueva, R., Guanira, J.: A bat algorithm for job scheduling problem in ceramics
production lines. In: International Conference on Infocom Technologies and Unmanned
Systems (ICTUS 2017), pp. 47–53. Amity University Dubai and IEEE India, Dubai (2017)
10. Pizarro, A., Cueva, R., Tupia, M.: Implementation of a genetic algorithm to optimize the
distribution of water in irrigation of peruvian farmland affected by “El Niño”. In: 31st
International Conference on Computers and their Applications (CATA 2016), pp. 31–38.
International Society for Computers and Their Applications (ISCA), Las Vegas (2016)
11. Meneses, S., Cueva, R., Tupia, M., Guanira, J.: A genetic algorithm to solve 3D traveling
salesman problem with initial population based on a GRASP algorithm. J. Comput. Methods
Sci. Eng. 17(1), 1–11 (2017)
12. Viegas, J., Vieira, S., Henriques, E., Sousa, J.: A tabu search algorithm for the 3D bin
packing problem in the steel industry. Lecture Notes in Electrical Engineering, vol. 321,
pp. 355–364 (2015)
13. Ren, R.: Combinatorial algorithms for scheduling jobs to minimize server usage time.
Doctoral thesis, Nanyang Technological University, Singapore (2018)
14. Hawa, A., Lewis, R., Thompson, J.: Heuristics for the score-constrained strip-packing
problem. Comb. Optim. Appl. 11346, 449–462 (2018)
15. Crainic, T., Perboli, G., Tadei, R.: Extreme point-based heuristics for three-dimensional bin
packing. INFORMS J. Comput. 20, 368–384 (2008)
16. Hifi, M., Kacem, I., Negre, S., Wu, L.: Heuristics algorithms based on a linear programming
for the three-dimensional bin-packing problem. IFAC Proc. Volumes 43, 72–76 (2010)