Modification of the Firefly Algorithm for Improving Solution Speed

Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 1196)


The demand for fast and intelligent optimization methods is constantly growing. Owing to this, new methods based on the behaviour of living organisms are being developed. This article proposes a modification of the classic firefly algorithm based on the acceptance of each movement of a firefly, that provide more accurate values of an objective function. In addition, the algorithm also involves a reduced value of a coefficient, α, in each of its iterations. The effectiveness of the modification is examined using typical test functions. The modification allows for finding the correct solution faster and more accurately. This improvement is achieved at the expense of the algorithm’s sensitivity to a selection parameter, αdamp, which affects the speed at which the value of α decreases.


Firefly algorithm Variability of random component Natural inspired optimization algorithm 


  1. 1.
    Yang, X.-S.: Nature-Inspired Metaheuristic Algorithms, 2nd edn. Luniver Press, Bristol (2008)Google Scholar
  2. 2.
    Yang, X.-S.: Firefly algorithm, stochastic test functions and design optimization. Int. J. Bio-Inspired Comput. 2(2), 78–84 (2010)CrossRefGoogle Scholar
  3. 3.
    Gandomi, A.H., Yang, X.-S., Alavi, A.H.: Mixed variable structural optimization using firefly algorithm. Comput. Struct. 89(23–24), 2325–2336 (2011)CrossRefGoogle Scholar
  4. 4.
    Lukasik, S., Zak, S.: Firefly algorithm for continuous constrained optimization tasks. Lect. Notes Comput. Sci. 5796, 97–106 (2009)CrossRefGoogle Scholar
  5. 5.
    Kwiecień, J., Filipowicz, B.: Comparison of firefly and cockroach algorithms in selected discrete and combinatorial problems. Bull. Pol. Acad. Sci. Tech. Sci. 62, 797–804 (2014)Google Scholar
  6. 6.
    Gomes, H.M.: A firefly metaheuristic structural size and shape optimization with natural frequency constraints. Int. J. Metaheuristics 2(1), 38–55 (2012)CrossRefGoogle Scholar
  7. 7.
    Amjady, N., Naderi, M.: Multi-objective environmental/economic dispatch using firefly technique. In: 11th Environment and Electrical Engineering (EEEIC) Conference, Venice, pp. 461–466 (2012)Google Scholar
  8. 8.
    Tilahun, S.L., Ong, H.C.: Modified firefly algorithm. J. Appl. Math. 2012, Article ID 467631 (2012)Google Scholar
  9. 9.
    Tuba, M., Bacanin, N.: Upgraded firefly algorithm for portfolio optimization problem. In: 16th International Conference on Computer Modelling and Simulation (UKSim), pp. 112–117. IEEE (2014)Google Scholar
  10. 10.
    Strumberger, I., Bacanin, N., Tuba, M.: Enhanced firefly algorithm for constrained numerical optimization. In: IEEE Congress on Evolutionary Computation (CEC), San Sebastian, pp. 2120–2127 (2017)Google Scholar
  11. 11.
    Zhu, X., Qi, S., Zhang, H.: A hybrid firefly algorithm. In: 2nd Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chongqing, pp. 287–291 (2017)Google Scholar
  12. 12.
    Tjahjono, A., Anggriawan, D.O., Faizin, A.K., et al.: Adaptive modified firefly algorithm for optimal coordination of overcurrent relays. IET Gener. Transm. Distrib. 11(10), 2575–2585 (2017)CrossRefGoogle Scholar
  13. 13.
    Trivedi, R., Padhy, P.K.: Design of fractional PIλDμ controller via modified firefly algorithm. In: 11th International Conference on Industrial and Information Systems (ICIIS), Roorkee, pp. 172–177 (2016)Google Scholar
  14. 14.
    Kaur, K., Salgotra, R., Singh, U.: An improved firefly algorithm for numerical optimization. In: International Conference on Innovations in Information, Embedded and Communication Systems (ICIIECS), Coimbatore, pp. 1–5 (2017)Google Scholar
  15. 15.
    Sarangi, S.K., Panda, R., Sarangi, A.: Crazy firefly algorithm for function optimization. In: 2nd International Conference on Man and Machine Interfacing (MAMI), Bhubaneswar, pp. 1–5 (2017)Google Scholar
  16. 16.
    Fister, I., Fister Jr., I., Yang, X.-S., Brest, J.: A comprehensive review of firefly algorithms. Swarm Evol. Comput. 13, 34–46 (2013)CrossRefGoogle Scholar
  17. 17.
    Klempka, R., Waradzyn, Z., Skala, A.: Application of the firefly algorithm for optimizing a single-switch class E ZVS voltage-source inverter’s operating point. Adv. Electric. Comput. Eng. 18(2), 93–100 (2018)CrossRefGoogle Scholar
  18. 18.
    Klempka, R., Filipowicz, B.: Optimization of a DC motor drive using a firefly algorithm. In: International Symposium on Electrical Machines (SME), Andrychów, pp. 1–6 (2018)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2020

Authors and Affiliations

  1. 1.Faculty of Electrical Engineering, Automatics, Computer Science and Biomedical EngineeringAGH-University of Science and TechnologyKrakowPoland

Personalised recommendations