Abstract
Automatic programming (AP) is an important area of Machine Learning (ML) where computer programs are generated automatically. Swarm Programming (SP), a newly emerging research area in AP, automatically generates the computer programs using Swarm Intelligence (SI) algorithms. This paper presents two grammar-based SP methods named as Grammatical Moth-Flame Optimizer (GMFO) and Grammatical Whale Optimizer (GWO). The Moth-Flame Optimizer and Whale Optimization algorithm are used as search engines or learning algorithms in GMFO and GWO respectively. The proposed methods are tested on Santa Fe Ant Trail, quartic symbolic regression, and 3-input multiplexer problems. The results are compared with Grammatical Bee Colony (GBC) and Grammatical Fireworks algorithm (GFWA). The experimental results demonstrate that the proposed SP methods can be used in automatic computer program generation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Rich C, Waters RC (1998) Automatic programming: myths and prospects. IEEE Comput 21(8):40–51
Olmo JL, Romero JR, Ventura S (2014) Swarm-based metaheuristics in automatic programming: a survey. WIREs Data Mining Knowl Discov. https://doi.org/10.1002/widm.1138
Koza JR (1992) Genetic programming: on the programming of computers by means of natural selection. MIT Press
Ryan C, Collins J.J, O’Neill M (1998) Grammatical evolution: evolving programs for an arbitrary language. In: Banzhaf W, Poli R, Schoenauer M, Fogarty TC (eds) EuroGP 1998. LNCS, vol 1391, Springer, Heidelberg, pp 83–95
O’Neill M, Ryan C (2001) Grammatical evolution. IEEE Trans Evol Comput 5(4):349–358
Mckay RI, Hoai NX, Whigham PA, Shan Y, O’Neill M (2010) Grammar-based genetic programming: a survey. Genet Program Evolvable Mach 11:365–396
Roux O, Fonlupt C (2000) Ant programming: or how to use ants for automatic programming. In: International conference on swarm intelligence (ANTS), pp 121–129
Dorigo M, Maniezzo V, Colorni A (1996) Ant system: optimization by a colony of cooperating agents. IEEE Trans Syst Man Cybern B Cybern 26:29–41. https://doi.org/10.1109/3477.484436
Karaboga D, Ozturk C, Karaboga N, Gorkemli B (2012) Artificial bee colony programming for symbolic regression. Inform Sci 209:1–15. https://doi.org/10.1016/j.ins.2012.05.002
Karaboga D (2005) An idea based on honey bee swarm for numerical optimization. In: Technical Report-TR06, Erciyes University, Engineering Faculty, Computer Engineering Department
Mahanipour A, Nezamabadi-pour H (2019) GSP: an automatic programming technique with gravitational search algorithm. Appl Intell 49:1502–1516. https://doi.org/10.1007/s10489-018-1327-7
Rashedi E, Nezamabadi-Pour H, Saryazdi S (2009) GSA: a gravitational search algorithm. Inf Sci 179:2232–2248
O’Neill M, Brabazon A (2004) Grammatical swarm. In: Genetic and evolutionary computation conference (GECCO), pp 163–174
O’Neill M, Brabazon A (2006) Grammatical swarm: the generation of programs by social programming. Nat Comput 5(4):443–462
O’Neill M, Leahy F, Brabazon A (2006) Grammatical swarm: a variable-length particle swarm algorithm. In: Swarm intelligent systems, studies in computational intelligence. Springer, pp 59–74
Si T, De A, Bhattacharjee AK (2013) Grammatical bee colony. In: Panigrahi BK et al. (eds) SEMCCO 2013, Part I, LNCS vol 8297, pp 436–445
Si T (2016) Grammatical evolution using fireworks algorithm. In: Pant M et al (eds) Proceedings of fifth international conference on soft computing for problem solving, advances in intelligent systems and computing, vol 436. https://doi.org/10.1007/978-981-10-0448-34
Kennedy J, Eberhart R (1995) Particle swarm optimization. In: IEEE international conference on neural networks, Perth, Australia
Tan Y, Zhu Y (2010) Firework Algorithm for Optimization. In: Tan Y et al (eds) ICSI 2010, Part I, LNCS 6145. Springer, Berlin Heidelberg, pp 355–364
Mirjalili S (2015) Moth-flame optimization algorithm: a novel nature-inspired heuristic paradigm. Knowl-Based Syst (2015). https://doi.org/10.1016/j.knosys.2015.07.006
Mirjalili S, Lewis A (2016) The whale optimization algorithm. Adv Eng Softw 95:51–67
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Si, T. (2021). Swarm Programming Using Moth-Flame Optimization and Whale Optimization Algorithms. In: Gao, XZ., Kumar, R., Srivastava, S., Soni, B.P. (eds) Applications of Artificial Intelligence in Engineering. Algorithms for Intelligent Systems. Springer, Singapore. https://doi.org/10.1007/978-981-33-4604-8_3
Download citation
DOI: https://doi.org/10.1007/978-981-33-4604-8_3
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-33-4603-1
Online ISBN: 978-981-33-4604-8
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)