Generating Bin Packing Heuristic Through Grammatical Evolution Based on Bee Swarm Optimization

  • Marco Aurelio Sotelo-FigueroaEmail author
  • Héctor José Puga Soberanes
  • Juan Martín Carpio
  • Héctor J. Fraire Huacuja
  • Laura Cruz Reyes
  • Jorge Alberto Soria Alcaraz
  • Andrés Espinal
Part of the Studies in Computational Intelligence book series (SCI, volume 667)


In the recent years, Grammatical Evolution (GE) has been used as a representation of Genetic Programming (GP). GE can use a diversity of search strategies including Swarm Intelligence (SI). Bee Swarm Optimization (BSO) is part of SI and it tries to solve the main problems of the Particle Swarm Optimization (PSO): the premature convergence and the poor diversity. In this paper we propose using BSO as part of GE as strategies to generate heuristics that solve the Bin Packing Problem (BPP). A comparison between BSO, PSO, and BPP heuristics is performed through the nonparametric Friedman test. The main contribution of this paper is to propose a way to implement different algorithms as search strategy in GE. In this paper, it is proposed that the BSO obtains better results than the ones obtained by PSO, also there is a grammar proposed to generate online and offline heuristics to improve the heuristics generated by other grammars and humans.


Genetic Programming Grammatical Evolution Bee Swarm Optimization Bin Packing Problem Heuristic Metaheuristic 


  1. 1.
    M.R. Garey, D.S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness (W. H. Freeman & Co., New York, NY, USA, 1979).Google Scholar
  2. 2.
    E.A. Feigenbaum, J. Feldman, Computers and Thought (AAAI Press, 1963).Google Scholar
  3. 3.
    M.H.J. Romanycia, F.J. Pelletier, Computational Intelligence 1(1), 47 (1985).Google Scholar
  4. 4.
    F.W. Glover, Comput. Oper. Res. 13, 533 (1986).Google Scholar
  5. 5.
    J.R. Koza, in IJCAI (1989), pp. 768–774.Google Scholar
  6. 6.
    E.K. Burke, M. Hyde, G. Kendall, in Parallel Problem Solving from Nature - PPSN IX, Lecture Notes in Computer Science, vol. 4193, ed. by T. Runarsson, H.G. Beyer, E. Burke, J. Merelo-Guervós, L. Whitley, X. Yao (Springer Berlin / Heidelberg, 2006), pp. 860–869.Google Scholar
  7. 7.
    C. Ryan, J. Collins, J. Collins, M. O’Neill, in Lecture Notes in Computer Science 1391, Proceedings of the First European Workshop on Genetic Programming (Springer-Verlag, 1998), pp. 83–95.Google Scholar
  8. 8.
    O. M., B. A, in International Conference on Artificial Intelligence (ICAI’06) (CSEA Press, Las Vegas, Nevada, 2006).Google Scholar
  9. 9.
    M. O’Neill, A. Brabazon, Natural Computing 5(4), 443 (2006).Google Scholar
  10. 10.
    J. Togelius, R.D. Nardi, A. Moraglio, IEEE Congress on Evolutionary Computation pp. 3594–3600 (2008).Google Scholar
  11. 11.
    A. Moraglio, S. Silva, in Genetic Programming, Lecture Notes in Computer Science, vol. 6021, ed. by A. Esparcia-Alcázar, A. Ekárt, S. Silva, S. Dignum, A. Uyar (Springer Berlin / Heidelberg, 2010), pp. 171–183.Google Scholar
  12. 12.
    M.A. Sotelo-Figueroa, M. del Rosario Baltazar-Flores, J.M. Carpio, in International Seminar on Computational Intelligence 2010 (Springer-Verlag, 2010).Google Scholar
  13. 13.
    B. Xing, W.J. Gao, in Innovative Computational Intelligence: A Rough Guide to 134 Clever Algorithms, Intelligent Systems Reference Library, vol. 62 (Springer International Publishing, 2014), pp. 45–80.  10.1007/978-3-319-03404-1\s\do5(4). URL\s\do5(4).
  14. 14.
    J. Kennedy, R.C. Eberhart, IEEE Int. Conf. Neural Netw 4, 1942 (1995).Google Scholar
  15. 15.
    D. Pham, A. Ghanbarzadeh, E. Koç, S. Otri, S. Rahim, M. Zaidi, in Intelligent Production Machines and Systems (Elsevier, 2006), pp. pp. 454–460.Google Scholar
  16. 16.
    M. Sotelo-Figueroa, R. Baltazar, M. Carpio, Journal of Automation, Mobile Robotics and Intelligent Systems (JAMRIS) 5 (2011).Google Scholar
  17. 17.
    W. Romero, V.M.Z. Rodríguez, R.B. Flores, M.A.S. Figueroa, J.A.S. Alcaraz, in Artificial Intelligence (MICAI), 2011 10th Mexican International Conference on, vol. 1 (Puebla, 2011), vol. 1.Google Scholar
  18. 18.
    L.A. Romero, V. Zamudio, R. Baltazar, E. Mezura, M. Sotelo, V. Callaghan, Sensors 12(8), 10990 (2012).  10.3390/s120810990. URL
  19. 19.
    A. Lodi, S. Martello, D. Vigo, Discrete Applied Mathematics 123(1–3), 379 (2002).
  20. 20.
    H.V.D. Vel, S. Shijie, The Journal of the Operational Research Society 42(2), 169 (1991).Google Scholar
  21. 21.
    B. Han, G. Diehr, J. Cook, Annals of Operations Research 50(1), 239 (1994).  10.1007/BF02085642.
  22. 22.
    D.S. Johnson, A. Demers, J.D. Ullman, M.R. Garey, R.L. Graham, SIAM Journal on Computing 3(4), 299 (1974).Google Scholar
  23. 23.
    A.C.C. Yao, J. ACM 27, 207 (1980).Google Scholar
  24. 24.
    W.T. Rhee, M. Talagrand, Mathematics of Operations Research 18(2), 438 (1993).Google Scholar
  25. 25.
    E. Coffman, Jr., G. Galambos, S. Martello, D. Vigo, Bin Packing Approximation Algorithms: Combinatorial Analysis (Kluwer Academic Publishers, 1998).Google Scholar
  26. 26.
    T. Kämpke, Annals of Operations Research 16, 327 (1988).Google Scholar
  27. 27.
    E. Falkenauer, Journal of Heuristics 2, 5 (1996).Google Scholar
  28. 28.
    A. Ponce-Pérez, A. Pérez-Garcia, V. Ayala-Ramirez, in Proceedings of the 15th International Conference on Electronics, Communications and Computers (CONIELECOMP 2005) (IEEE Computer Society, Los Alamitos, CA, USA, 2005), pp. 311–314.Google Scholar
  29. 29.
    J. Derrac, S. García, S. Molina, F. Herrera, Swarm and Evolutionary Computation pp. 3–18 (2011).Google Scholar
  30. 30.
    J.R. Koza, R. Poli, in Search Methodologies: Introductory Tutorials in Optimization and Decision Support Techniques, ed. by E.K. Burke, G. Kendall (Kluwer, Boston, 2005), pp. 127–164.Google Scholar
  31. 31.
    I. Dempsey, M. O’Neill, A. Brabazon, in Foundations in Grammatical Evolution for Dynamic Environments, vol. 194 (Springer-Verlag, New York, NY, USA, 2009).Google Scholar
  32. 32.
    H. lan Fang, H. lan Fang, P. Ross, P. Ross, D. Corne, D. Corne, in Proceedings of the Fifth International Conference on Genetic Algorithms (Morgan Kaufmann, 1993), pp. 375–382.Google Scholar
  33. 33.
    J. Holland, University of Michigan Press (1975).Google Scholar
  34. 34.
    M.A. Sotelo-Figueroa, H.J. Puga Soberanes, J.M. Carpio, H.J. Fraire Huacuja, L. Cruz Reyes, J.A. Soria-Alcaraz, Mathematical Problems in Engineering 2014 (2014).Google Scholar
  35. 35.
    C. Maurice, Particle Swarm Optimization (Wiley-ISTE, Estados Unidos, 2006).Google Scholar
  36. 36.
    R. Poli, J. Kennedy, T. Blackwell, Swarm Intelligence 1(1), 33 (2007).Google Scholar
  37. 37.
    M.F. Tasgetiren, P.N. Suganthan, Q.Q. Pan, in GECCO ’07: Proceedings of the 9th annual conference on Genetic and evolutionary computation (ACM, New York, NY, USA, 2007), pp. 158–167.Google Scholar
  38. 38.
    T. Gong, A.L. Tuson, in GECCO ’07: Proceedings of the 9th annual conference on Genetic and evolutionary computation (ACM, New York, NY, USA, 2007), pp. 172–172.Google Scholar
  39. 39.
    S. Martello, P. Toth, Knapsack Problems, Algorithms and and Computer Implementations (John Wiley & Sons Ltd., New York, NY, USA, 1990).Google Scholar
  40. 40.
    E.G. Coffman, Jr., C. Courcoubetis, M.R. Garey, D.S. Johnson, P. Shor, R.R. Weber, M. Yannakakis, SIAM J. Disc. Math. 13, 384 (2000).Google Scholar
  41. 41.
    T.G. Crainic, G. Perboli, M. Pezzuto, R. Tadei, Computers & Operations Research 34(11), 3439 (2007).
  42. 42.
    J. Edward G. Coffman, G. Galambos, S. Martello, D. Vigo, Bin packing approximation algorithms: Combinatorial analysis (Kluwer Academic Pub., 1999), pp. 151–207.Google Scholar
  43. 43.
    S.P. Fekete, J. Schepers, Mathematical Programming 91(1), 11 (2001).  10.1007/s101070100243.
  44. 44.
    S.S. Seiden, R. van Stee, L. Epstein, SIAM Journal on Computing 32, 2003 (2003).Google Scholar
  45. 45.
    E.G. Coffman Jr., J. Csirik, Acta Cybernetica 18, 47 (2007).Google Scholar
  46. 46.
    E. Falkenauer, A. Delchambre, in Robotics and Automation, 1992. Proceedings., 1992 IEEE International Conference on (1992), pp. 1186 –1192 vol.2.Google Scholar
  47. 47.
    A. Lodi, S. Martello, D. Vigo, INFORMS Journal on Computing 11(4), 345 (1999).  10.1287/ijoc.11.4.345.
  48. 48.
    E. Hopper, B. Turton, Artificial Intelligence Review 16(4), 257 (2001).  10.1023/A:1012590107280.
  49. 49.
    J. Beasley, Journal of the Operational Research Society 41(11), 1069 (1990).Google Scholar
  50. 50.
    A. Scholl, R. Klein, C. Jürgens, Computers & Operations Research 24(7), 627 (1997).Google Scholar
  51. 51.
    A. Alvim, C. Ribeiro, F. Glover, D. Aloise, Journal of Heuristics 10(2), 205 (2004).Google Scholar
  52. 52.
    M. Hyde, A genetic programming hyper-heuristic approach to automated packing. Ph.D. thesis, University of Nottingham (2010).Google Scholar
  53. 53.
    M.A. Sotelo-Figueroa, H.J. Puga Soberanes, J. Martín Carpio, H.J. Fraire Huacuja, C.L. Reyes, J.A. Soria-Alcaraz, in Recent Advances on Hybrid Intelligent Systems, Studies in Computational Intelligence, vol. 451, ed. by O. Castillo, P. Melin, J. Kacprzyk (Springer Berlin Heidelberg, 2013), pp. 349–359.Google Scholar
  54. 54.
    M. Sotelo-Figueroa, H. Puga Soberanes, J. Martin Carpio, H. Fraire Huacuja, L. Cruz Reyes, J. Soria-Alcaraz, in Nature and Biologically Inspired Computing (NaBIC), 2013 World Congress on (2013), pp. 92–98.Google Scholar
  55. 55.
    A. Rodriguez-Cristerna, J. Torres-Jiménez, I. Rivera-Islas, C. Hernandez-Morales, H. Romero-Monsivais, A. Jose-Garcia, in Advances in Soft Computing, Lecture Notes in Computer Science, vol. 7095, ed. by I. Batyrshin, G. Sidorov (Springer Berlin Heidelberg, 2011), pp. 107–118.Google Scholar
  56. 56.
    R.N. Kacker, D.R. Kuhn, Y. Lei, J.F. Lawrence, Measurement 46(9), 3745 (2013).Google Scholar
  57. 57.
    D.J. Sheskin, Handbook of Parametric and Nonparametric Statistical Procedures, 2nd edn. (CRC, 2000).Google Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  • Marco Aurelio Sotelo-Figueroa
    • 1
    Email author
  • Héctor José Puga Soberanes
    • 1
  • Juan Martín Carpio
    • 1
  • Héctor J. Fraire Huacuja
    • 2
  • Laura Cruz Reyes
    • 2
  • Jorge Alberto Soria Alcaraz
    • 1
  • Andrés Espinal
    • 1
  1. 1.División de Estudios de Posgrado e InvestigaciónInstituto Tecnológico de LeónLeónMexico
  2. 2.División de Estudios de Posgrado e InvestigaciónInstituto Tecnológico de Ciudad MaderoTamaulipasMexico

Personalised recommendations