Professional Documents
Culture Documents
6, November 2012
ABSTRACT
Bin Packing Problem (BPP) is a Combinatorial Optimization problem, which is used to find the optimal object from a finite set of objects. The purpose of BPP is to pack the items with different weight into finite number of bins without exceeding its capacity. The main objective of this problem is to minimize the number of bins used and pack the items efficiently. This paper reviews a general idea of BPP and various algorithms which are used to solve the BPP. In this work, two heuristic algorithms First-Fit algorithm and Best-Fit algorithm are implemented and tested with well- known benchmark instances. This paper also discusses the algorithms which are inspired by Biology, such as Ant Colony Optimization algorithm (ACO), Cuckoo search and Genetic algorithm and their applications to Combinatorial Optimization problems.
KEYWORDS
Combinatorial Optimization, Bin packing, Nature inspired algorithms, First-Fit algorithm, Best-Fit algorithm.
1. INTRODUCTION
Combinatorial Optimization problem is used to find the best possible object from a finite set of objects to satisfy the desired objectives. Metaheuristic is a high level approach, which guides other heuristics to search for solutions in a possibly wide set of problem domains, with relatively few modifications and increase their performance [5]. Bio-inspired methods are becoming gradually more significant to face the complexity of today's demanding applications such as computer networks, security, robotics, bio medical engineering, control systems, parallel processing, data mining, power systems, electronics and mechanical engineering, chemical engineering and molecular biology and production engineering [3]. Bio-inspired computation methods have been applied to various Combinatorial Optimization Problems such as Assignment problem, Knapsack problem and Scheduling problems. Bio-inspired computing is a subset of Nature-inspired computing which is inspired from behavior of nature. Bin Packing Problem (BPP) is one of the NP-Hard Optimization problems. In the BPP it has two types of packing, fixed sized Bin packing problem and variable sized Bin packing problem. In the fixed sized, the bin capacity is fixed and it may also have different capacity. The purpose of fixed sized BPP is to
DOI:10.5121/ijfcst.2012.2603 37
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
pack the number of items with different weight into a finite number of bins without omitting any items and to pack the items efficiently [15]. The objective of this problem is a) To minimize the number of bins without exceeding its capacity b) To minimize the wastage c) To minimize the execution time In the variable sized packing problem the capacity of the bins is not in fixed size. In the variable sized BPP problem objective is used to pack the items with above constraints and minimizing the cost associated with the chosen bins [11]. Some of the variants of BPP such as: one-dimensional Bin packing problem (1-BPP), two- dimensional Bin packing problem (2-BPP), threedimensional Bin packing problem (3-BPP) [15], and High Multiplicity Bin Packing Problems [28]. The formation of the paper is as follows: In section 2 BPP problem formulations was mentioned. In section 3 algorithms applied to BPP were explained and the real time applications are mentioned in section 4 and in section 5benchmark instances for Bin Packing problem solutions were discussed and in section 6 conclusions are presented.
=1
With: yi= 1 if the bin iis used; else 0 xij= 1 if the item j is stocked in bin i. In the eq.1 the objective function is to minimize the total number of bins and pack all the items with identical capacity. The first constraint guarantees that the weights of items (Wi) filled in the bin j do not exceed the bin capacity. The second constraint ensures that each item is placed only in one bin [1].
38
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
randomly from their nest to food source, during that period ant leaves a chemical substance called pheromone. This pheromone path helps other ants to reach the food source and this repeating process produces a positive feedback and makes a pheromone trail [2, 16, 17, 30]. Due to this process all the ants will choose the shortest path, which contains higher pheromone strength than the longer one. In the longer path the pheromone strength gets reduced and start evaporates because of no ants following the longer path. The indirect communication between the ants with the help of pheromone trials is known as stigmergy. The ACO algorithm is basically interaction of three actions: [23, 26] a) ConstructAntsSolutions b) UpdatePheromones c) DeamonActions In ACO, a number of artificial ants construct solutions to an optimization problem and exchange the information on their quality by a communication scheme. The core inspiration extracted from biological studies about ants was searching the optimal solution of Combinatorial Optimization problems. Many algorithmic methods have been motivated by behaviors of real ants. Ant colony optimization is one of the most successful metaheuristic [17]. ACO algorithm has been used to solve Bin Packing problem and proposed various approaches. ACO algorithm has been applied to several applications; few are listed out in section 4.
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
Cuckoo search algorithm has been applied to solve Bin Packing problem. Cuckoo search was applied to various optimization problems, few applications are listed out in section 4.
41
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
42
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
Table 2: Comparative results for BPP hard instances Execution Time (msec) First-Fit Best-Fit 210 150 330 150 340 150 170 150 210 140 310 143 220 140 350 150 400 150 210 150
Instance name HARD1 HARD2 HARD3 HARD4 HARD5 HARD6 HARD7 HARD8 HARD9 HARD0
N 200 200 200 200 200 200 200 200 200 200
C 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
Optimal 57 56 55 57 56 57 55 57 56 56
68 66 64 62 60 58 56 54 52 50 48
INSTANCE NAME
43
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
450 400
EXECUTION TIME (msec)
INSTANCE NAME
Figure2. Execution Time for Hard class instances Table: 3 Comparative results for BPP medium instances Execution Time
Instance name N1W1B1R0 N1W4B1R8 N1W1B2R8 N1W1B3R0 N1W1B3R7 N1W3B2R0 N1W3B3R4 N2W4B2R1 N3W4B3R0 N4W4B3R4 N4W4B3R9
No. of Bins used N C Optimal First-Fit 50 50 50 50 50 50 50 100 200 500 500 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 18 6 16 17 18 8 8 11 24 55 56 21 6 19 22 26 8 8 12 26 60 60 Best-Fit 20 6 17 17 19 8 8 11 24 56 56
(msec)
First-Fit 80 40 80 80 80 50 30 59 120 230 380 Best-Fit 10 10 10 10 10 10 10 20 40 160 150
44
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
70 60
NUMBER OF BINS USED
INSTANCE NAME
Figure3. Number of bins used for Medium class instances 400 350
EXECUTION TIME (msec)
INSTANCE NAME
45
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
Instance name N1C1W1_A N1C1W1_B N1C1W1_C N1C1W1_N N1C2W1_H N1C3W1_F N2C1W1_A N2C1W1_C N2C2W1_J N2C3W1_A N3C1W4_S N3W1C1_A N3C1W1_B N4C1W1_L N4C1W1_M
Optimal N 50 50 50 50 50 50 100 100 100 100 200 200 200 500 500 C 100 100 100 100 120 150 100 100 120 150 100 100 100 100 100 25 31 20 25 23 20 48 46 42 35 145 105 104 258 246
No. of Bins used FirstFit 30 35 26 30 30 29 61 59 58 50 169 131 139 329 310 Best-Fit 25 31 21 26 23 20 48 46 42 35 145 106 104 258 246
Execution Time (msec) First-Fit 109 124 63 94 140 78 203 141 109 93 577 188 499 967 951 Best-Fit 15 31 15 15 15 15 31 31 31 31 125 62 109 265 265
350
NUMBER OF BINS USED
INSTANCE NAME
46
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
1200
EXECUTION TIME (msec)
INSTANCE NAME
6. CONCLUSION
This paper gives a general idea about Bin Packing problem and basic heuristics First-Fit, Next-Fit and Best-Fit. Bio-inspired algorithms such as Ant Colony Optimization algorithm (ACO), Cuckoo search and Genetic algorithm which are used to solve the BPP and real time applications for BPP are also discussed. The purpose of BPP is to pack the items with different weight into finite number of bins without exceeding its capacity. The objective of this problem is to minimize the number of bins and minimize the time and pack the items efficiently. The main purpose of this paper is to compare the performance of First-Fit and Best-Fit algorithm in solving BPP and the results have shown that Best-Fit algorithm performs better than First-Fit algorithm. Three types of BPP problem classes have been used to test the efficiency of the algorithms. The Best-Fit algorithm results gave efficient result in terms of number of bins used, bin space wastage and execution time when compared to First-Fit algorithm. To further improve the results in terms of the objective functions, Bio-Inspired algorithmic techniques can be suitably used. With the ability to solve real time as well as challenging problems in an effective manner, Bio-inspired methods has come up as a new approach in computing. As a future research work, it is planned to apply some of the best performing bio-inspired metaheuristics for BPP and to analyze their problem solving effectiveness.
REFERENCES
[1] Abdesslem Layeb & Seriel Rayene Boussalia, (2012) A Novel Quantum Inspired Cuckoo Search Algorithm for Bin Packing Problem, I.J. Information Technology and Computer Science, 5, 58-67.
47
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
[2]
[14] [15]
[16] [17]
[18]
Bijaya Kumar Nanda & Gyanesh Das, (2011) Ant Colony Optimization. A Computational Intelligence Technique, International Journal of Computer & Communication Technology (IJCCT), Volume-2, Issue-VI. Binitha S & S Siva Sathya, (2012) A Survey of Bio inspired Optimization Algorithms, International Journal of Soft Computing and Engineering (IJSCE), ISSN: 2231-2307, Volume-2, Issue-2. Carlos Manuel Mira da Fonseca, (1995) Multi objective Genetic Algorithms with Application to Control Engineering Problems, September. Christian Blum & Andrea Roli, (2003) Metaheuristics in Combinatorial Optimization: Overview and Conceptual Comparison, ACM Computing Surveys, Vol. 35, No. 3. E.Falkenauer, & A. Delchambre, (1992) A Genetic Algorithm for Bin Packing and Line Balancing, Proceedings of the IEEE International Conference on Robotics and Automation. Ehsan Valian, Shahram Mohanna & Saeed Tavakoli,( 2011) Improved Cuckoo Search Algorithm For Feed forward Neural Network Training , International Journal of Artificial Intelligence & Applications (IJAIA), Vol.2, No.3. F. Rothlauf, (2011) Design of Modern Heuristics, Natural Computing Series, DOI 10.1007/978-3540-72962-4 2, Springer-Verlag Berlin Heidelberg. Franois Clautiaux, Mauro DellAmico, Manuel Iori & Ali Khanafer, (2012) Lower and upper bounds for the Bin Packing Problem with Fragile Objects, Discrete Applied Mathematics. Gherboudj, A. Layeb, S. Chikhi, (2012) Solving 0-1 knapsack problems by a discrete binary version of cuckoo search algorithm, International Journal of Bio-Inspired Computation, ISSN 1758-0366, Inder science publisher, Isabel Correia, Lus Gouveia & Francisco Saldanha da Gama, (2006) Solving the Variable Size Bin Packing Problem with Discretized Formulations, CIO Working Paper 5 John Levine & Frederick Ducatelle, (2004) Ant Colony Optimisation and Local Search for Bin Packing and Cutting Stock Problems, Journal of the Operational Research Society. Levine, J. and Ducatelle, F. (2004) Ant Colony Optimisation and Local Search for Bin Packing and Cutting Stock Problems Journal of the Operational Research Society, Volume 55, Number 7, 705716. Kok-Hua Loha, Bruce Goldena, EdwardWasil, (2008) Solving the one-dimensional bin packing problem with a weight annealing heuristic, Computers & Operations Research 35 , 2283 2291 Kumar Satyendra, Rao V. Venkata & Tirupati Devanath, (2003) A heuristic procedure for one dimensional bin packing problem with additional constraints, IIMA Working Papers from Indian Institute of Management Ahmedabad, Research and Publication Department, No WP2003-11-02. Leonora Bianchi, Marco Dorigo, Luca Maria Gambardella & Walter J.Gutjahr, (2008) A survey on metaheuristics for stochastic Combinatorial optimization, Springer Science + Business Media B.V. Marco Dorigo, Mauro Birattari, & Thomas Stutzle, (2006) Ant Colony Optimization Artificial Ants as a Computational Intelligence Technique, IRIDIA Technical Report Series Technical Report No. R/IRIDIA/2006-023. Milan TUBA, Milos SUBOTIC & Nadezda STANAREVIC, (2011) Modified cuckoo search Algorithm for unconstrained optimization problems, Proceedings of the European Computing Conference, ISBN: 978-960-474-297-4. Mitchell Melanie, (1999) An Introduction to Genetic Algorithms, A Bradford Book the MIT Press, Fifth printing. N. Mohamadi, Application of Genetic Algorithm for the Bin Packing Problem with a New Representation Scheme, Mathematical Sciences, Vol. 4, No. 3, 253-266, 2010 Nebojsa Bacanin, (2011) An object-oriented software implementation of a novel cuckoo search algorithm, Proceedings of the European Computing Conference, ISBN: 978-960-474-297-4. Nebojsa Bacanin, (2012) Implementation and performance of an object-oriented software system, International Journal of Mathematics and Computers in Simulation, Issue 1, Volume 6. Omolbani Mohamad Rezapour, Amir ahmaddehghani & Lee Teang Shui, (2010) Review of Ant Colony Optimization Model for Suspended Sediment Estimation, Australian Journal of Basic and Applied Sciences, 4(7): 2099-2108. 48
International Journal in Foundations of Computer Science & Technology (IJFCST), Vol. 2, No.6, November 2012
[24] Pedro G. Espejo, SebastianVentura, & Francisco Herrera, (2010) A Survey on the Application of Genetic Programming to Classification, IEEE Transactions on Systems, Man, and CyberneticsPart C: Applications and Reviews, Vol. 40, No. 2. [25] Pragya Gupta & Rajesh Tiwari, (2012) Solving Three Dimensional Bin Packing Problem Using Elitism Based Genetic Algorithm, ISSN: 2278 1323 International Journal of Advanced Research in Computer Engineering & Technology, Volume 1, Issue 4. [26] Prasanna BALAPRAKASH, (2005) IRIDIA Technical Report series Technical Report No. TR/IRIDIA/2005-028. [27] Shim-Miin Hwang, Cheng-Yan Kao & Jomg - Tzong Homg, (1994) On Solving Rectangle Bin Packing Problems Using Genetic Algorithms, IEEE 0-7803-2129-4/94. [28] Stille, Wolfgang Michael, (2008) Solution Techniques for specific Bin Packing Problems with Applications to Assembly Line Optimization. [29] Ugur ELIIYI & Deniz Tursel ELIIYI, (2009) APPLICATIONS OF BIN PACKING Models Through The Supply Chain, International Journal Of Business And Management, Vol 1, No 1, ISSN: 1309-8047. [30] Vittorio Maniezzo & Matteo Roffilli, (2008) Very Strongly Constrained Problems: An Ant Colony Optimization Approach, Cybernetics and Systems 39(4): 395-424 [31] William H. Hsu, (2008) Genetic Algorithms, Department of Computing and Information Sciences Kansas State University. [32] Xin-She Yang, (2011)Review of Metaheuristics and Generalized Evolutionary Walk Algorithm Int. J. Bio-Inspired Computation, Vol. 3, No. 2, pp. 77-84. [33] http://brainz.org/15-real-world applications-genetic-algorithms/ [34] http://mathworld.wolfram.com/BinPackingProblem.html [35] http://www.astarmathsandphysics.com/a_level_maths_notes/D1/a_level_maths_notes_d1_bin_packin g_algorithms_first_fit_algorithm.html [36] http://www.junglewalk.com/popup.as?type=s&AnimalWebsiteID=9577 [37] http://www.wiwi.unijena.de/Entscheidung/binpp/ [38] http://www2.informatik.hu-berlin.de/alkox/lehre/lvws1011/coalg/bin_packing.pdf [39] www.ams.jhu.edu/~castello/362/Handouts/BinPacking.doc [40] www.or.deis.unibo.it/kp/Chapter8.pdf
AUTHORS
Ms. R.Yesodha received her BCA Degree in Computer Applications from PSG College of Arts and Science in 2008, MCA Degree in Computer Applications from Karunya University in 2011 and she is currently pursuing her M.Phil at Bharathiar University in the area of Bio-Inspired Computing. Her area of interest includes Bio-inspired computing and Optimization problems. Mrs. T.Amudha received her B.Sc Degree in Physics, Masters Degree (MCA) in Computer Applications and M.Phil in Computer Science in 1995, 1999, and 2003 respectively, from Bharathidasan University, India. She has qualified UGC-NET for Lectureship in 2003 and she is currently pursuing her doctoral research at Bharathiar University. She is currently working as Asst. Professor in the Department of Computer Applications, Bharathiar University, Coimbatore. She has 13 years of academic experience. She has more than 25 research publications for her credit in International/ National Journals & Conferences. Her area of interest includes Software Agents, Bio-inspired computing and Grid computing. She is a member of IEEE, CSI, IAENG professional societies.
49