Firefly algorithm explained

In mathematical optimization, the firefly algorithm is a metaheuristic proposed by Xin-She Yang and inspired by the flashing behavior of fireflies.[1]

Algorithm

In pseudocode the algorithm can be stated as:

Begin 1) Objective function: 2) Generate an initial population of fireflies 3) Formulate light intensity so that it is associated with (for example, for maximization problems, 4) Define absorption coefficient while (t < MaxGeneration) for i = 1 : n (all n fireflies) for j = 1 : i (n fireflies) Vary attractiveness with distance r via move firefly i towards j; Evaluate new solutions and update light intensity; end if end for j end for i Rank fireflies and find the current best; end while end

Note that the number of objective function evaluations per loop is one evaluation per firefly, even though the above pseudocode suggests it is n×n. (Based on Yang's MATLAB code.) Thus the total number of objective function evaluations is (number of generations) × (number of fireflies).

The main update formula for any pair of two fireflies

xi

and

xj

is
t+1
x
i
t
=x
i

+\beta\exp[-\gamma

2]
r
ij
t
(x
j

-

t)
x
i

+\alphat\boldsymbol{\epsilon}t

where

\alphat

is a parameter controlling the step size, while

\boldsymbol{\epsilon}t

is a vector drawn from a Gaussian or otherdistribution.zae

It can be shown that the limiting case

\gamma0

corresponds to the standard Particle Swarm Optimization (PSO). In fact, if the inner loop (for j) is removed and the brightness

Ij

is replaced by the current global best

g*

, then FA essentially becomes the standard PSO.

Criticism

Nature-inspired metaheuristics in general have attracted criticism in the research community for hiding their lack of novelty behind metaphors. The firefly algorithm has been criticized as differing from the well-established particle swarm optimization only in a negligible way.[2] [3] [4]

See also

External links

Notes and References

  1. Book: Yang, X. S. . Nature-Inspired Metaheuristic Algorithms . . 2008 . 978-1-905986-10-1 .
  2. Omid N.. Almasi. Modjtaba. Rouhani. 2016. A new fuzzy membership assignment and model selection approach based on dynamic class centers for fuzzy SVM family using the firefly algorithm. Turkish Journal of Electrical Engineering & Computer Sciences. 4. 1–19. 10.3906/elk-1310-253. Practical application of FA on UCI datasets.. free.
  3. Book: Lones, Michael A.. Proceedings of the Companion Publication of the 2014 Annual Conference on Genetic and Evolutionary Computation . Metaheuristics in nature-inspired algorithms . 2014. 1419–1422. http://www.macs.hw.ac.uk/~ml355/common/papers/lones-gecco2014-metaheuristics.pdf. 10.1145/2598394.2609841. FA, on the other hand, has little to distinguish it from PSO, with the inverse-square law having a similar effect to crowding and fitness sharing in EAs, and the use of multi-swarms in PSO.. 9781450328814. 10.1.1.699.1825. 14997975 .
  4. Dennis. Weyland. 2015. A critical analysis of the harmony search algorithm—How not to solve sudoku. Operations Research Perspectives. 2. 97–105. 10.1016/j.orp.2015.04.001. For example, the differences between the particle swarm optimization metaheuristic and "novel" metaheuristics like the firefly algorithm, the fruit fly optimization algorithm, the fish swarm optimization algorithm or the cat swarm optimization algorithm seem negligible.. free. 10419/178253. free.