SlideShare a Scribd company logo
1 of 4
Download to read offline
IOSR Journal of Computer Engineering (IOSR-JCE)
e-ISSN: 2278-0661, p- ISSN: 2278-8727Volume 11, Issue 1 (May. - Jun. 2013), PP 75-78
www.iosrjournals.org
www.iosrjournals.org 75 | Page
Firefly Algorithm for Unconstrained Optimization
Adil Hashmi1
, Nishant Goel2
, Shruti Goel2
, Divya Gupta2
1
(Assistant Professor, Maharaja Surajmal Institute of Technology, New Delhi, India)
2
(Maharaja Surajmal Institute of Technology, New Delhi, India)
Abstract : Meta-heuristic algorithms prove to be competent in outperforming deterministic algorithms for
real-world optimization problems. Firefly algorithm is one such recently developed algorithm inspired by the
flashing behavior of fireflies. In this work, a detailed formulation and explanation of the Firefly algorithm
implementation is given. Later Firefly algorithm is verified using six unimodal engineering optimization
problems reported in the specialized literature.
Keywords - Benchmark functions, Firefly Algorithm, Swarm Intelligence, Unconstrained Optimization.
I. INTRODUCTION
Swarm Intelligence [1] is a newly discovered research area that studies the behavior of social insects
and uses their models to solve real-world problems. Swarm based systems are made up of a population of simple
agents that interact with each other and their surroundings whose constituents follow simple and fixed rules.
Though the individual particles are ignorant of their nature, the collective behavior leads to an intelligent global
behavior.
Optimization problems [2] based on swarm intelligence have features like self-organization,
decentralized control, derivative free and easier implementation which lead to an emergent behavior overcoming
the limitations of conventional methods. Real world optimization problems belong to a class of hard problems
[3] whose main objective is to find the minimum or the maximum of the D dimensional objective function [4]
where D represents the number of variables to be optimized.
In this paper we intend to explain the implementation of Firefly algorithm [5] in detail and later find
optimal solutions to six standard unconstrained test functions [6] along with the convergence speed of the
algorithm. The rest of the paper is organized as follows: Section 2 gives a detailed description of firefly
algorithm. Section 3 describes the test functions used in our paper briefly. The experimental results are
discussed in Section 4 and Section 5 concludes the paper.
II. FIREFLY ALGORITHM
The Firefly algorithm was introduced by Dr. Xin She yang at Cambridge University in 2007 which was
inspired by the mating or flashing behavior of fireflies. Although the algorithm has many similarities with other
swarm based algorithms such as Particle Swarm Optimization [7], Artificial Bee Colony Optimization [8] and
Ant Colony Optimization [9], the Firefly algorithm has proved to be much simpler both in concept and
implementation.
1.1 Flashing Behavior of fireflies
Fireflies or lightning bugs belong to a family of insects that are capable to produce natural light to
attract a mate or prey. There are about two thousand firefly species which produce short and rhythmic flashes.
These flashes often appear to be in a unique pattern and produce an amazing sight in the tropical areas during
summer.
The intensity (I) of flashes decreases as the distance (r) increases and thus most fireflies can
communicate only up to several hundred meters. In the implementation of the algorithm, the flashing light is
formulated in such a way that it gets associated with the objective function to be optimized.
1.2 Concept
In firefly algorithm, there are three idealized rules:
๏‚ท A firefly will be attracted by other fireflies regardless of their sex
๏‚ท Attractiveness is proportional to their brightness and decreases as the distance among them increases
๏‚ท The landscape of the objective function determines the brightness of a firefly [10].
Firefly Algorithm for Unconstrained Optimization
www.iosrjournals.org 76 | Page
Based on these three rules the pseudo code of the Firefly algorithm can be prepared.
Pseudo code for FA:
1. Objective function of f(x), where x=(x1,........,xd)
2. Generate initial population of fireflies;
3. Formulate light intensity I;
4. Define absorption coefficient ฮณ;
5. While (t<MaxGeneration)
6. For i = 1 to n (all n fireflies);
7. For j=1 to n (all n fireflies)
8. If (Ij > Ii), move firefly i towards j;
9. end if
10. Evaluate new solutions and update light intensity;
11. End for j;
12. End for i;
13. Rank the fireflies and find the current best;
14. End while;
15. Post process results and visualization;
16. End procedure;
1.3 Attractiveness and Light Intensity
In the Firefly algorithm, there are two important issues: the variation of the light intensity and the
formulation of the attractiveness. We know, the light intensity varies according to the inverse square law i.e.:
๐ผ ๐‘Ÿ =
๐ผ๐‘ 
๐‘Ÿ2 (1)
Where I(r) is the light intensity at a distance r and Is is the intensity at the source.
When the medium is given the light intensity can be determined as follows:
๐ผ ๐‘Ÿ = ๐ผ0 ๐‘’โˆ’๐›พ๐‘Ÿ
(2)
To avoid the singularity at r=0 in (1), the equations can be approximated in the following Gaussian form:
๐ผ ๐‘Ÿ = ๐ผ0 ๐‘’โˆ’๐›พ๐‘Ÿ2
(3)
As we know, that a fireflyโ€™s attractiveness is proportional to the light intensity seen by adjacent fireflies and thus
the attractiveness ฮฒ of a firefly is determined by equation (4) where ฮฒ0 is the attractiveness at r=0.
๐›ฝ = ๐›ฝ0 ๐‘’โˆ’๐›พ๐‘Ÿ ๐‘š
(mโ‰ฅ1) (4)
1.4 Distance
The distance between any two fireflies i and j at xi and xj respectively, the Cartesian distance is
determined by equation (5) where xi,k is the kth component of the spatial coordinate xi of the ith firefly and d is
the number of dimensions.
๐‘Ÿ๐‘–๐‘— = (๐‘ฅ๐‘–,๐‘˜ โˆ’ ๐‘ฅ๐‘— ,๐‘˜ )2๐‘‘
๐‘˜=1 (5)
1.5 Movement
The movement of a firefly i is attracted to another more attractive (brighter) firefly j is determined by
๐‘ฅ๐‘– = ๐‘ฅ๐‘– + ๐›ฝ0 ๐‘’โˆ’๐›พ๐‘Ÿ๐‘–๐‘—
2
๐‘ฅ๐‘— โˆ’ ๐‘ฅ๐‘– + ๐›ผ๐œ– (6)
Where the second term is due to the attraction while the third term is randomization with ฮฑ being the
randomization parameter and ฯต being the vector of random numbers drawn from a Gaussian distribution.
It is worth pointing out that (6) is a random walk partial towards the brighter fireflies and becomes a
simple random walk if ฮฒ0= 0. The parameter set used in this work is described later.
Firefly Algorithm for Unconstrained Optimization
www.iosrjournals.org 77 | Page
1.6 Convergence
For any large number of fireflies (n), if n>>m, where m is the number of local optima of an
optimization problem, the convergence of the algorithm can be achieved. Here, the initial location of n fireflies
is distributed uniformly in the entire search space, and as the iterations of the algorithm continue fireflies
converge into all the local optimum. By comparing the best solutions among all these optima, the global optima
are achieved.
By adjusting parameters ฮณ and ฮฑ, the Firefly algorithm can outperform both the algorithms Harmony S
Search algorithm and PSO. It can also find the global optima as well as the local optima simultaneously and
effectively.
III. UNCONSTRAINED TEST FUNCTIONS
Six well known test functions are used to test the performance of the firefly algorithm. Convergence
speed and precision of the algorithm are evaluated through these functions. The functions used in this work are
unimodal and are free of constraints. Table 1 briefly describes all the test functions used in the experiment.
TABLE1. Test functions (D-dimension)
S. No Range D Function Formulation F(x)
1 [-10,10] 10 Step 0
2 [-2,2] 10 Sphere 0
3 [-10,10] 10 Sum square 0
4
[-
100,100]
10 Trid10 -210
5 [-0.5,10] 10 Zakharov 0
6 [-5,10] 10 Rosenbrock 0
IV. EXPERIMENTAL ANALYSIS
The firefly algorithm is tested using six standard test functions reported in the literature. The
experimental environment is implemented in MATLAB programs and executed on a DELL Studio15 Computer
with the configuration of Intel Core I3 CPU M370 at 2.40 GHz and 4GB RAM. In each experimental run, the
test functions are processed 10 times for each population size to measure the CPU time taken and to find the
best objective function values.
The parameter settings for firefly algorithm are shown in Table 2 whereas the experimental results for
objective function values and processing time are shown in Table 3. It must be noted that, since unconstrained
test functions were used, only the objective function values were reported and not the solution vectors. The
dimension of the algorithm for all the test functions was kept constant equal to 10.
TABLE2. Parameters set for Firefly algorithms
FIREFLY ALGORITHM
ฮฑ (randomness): 0.2
ฮณ (absorption): 1.0
ฮฒ : 0
ฮฒ0 : 0
Population Size : 10,20,40
Firefly Algorithm for Unconstrained Optimization
www.iosrjournals.org 78 | Page
Table 3 gives the best, mean and worst values of the optima obtained by the algorithm along with the
elapsed time. As we can see, the firefly algorithm has obtained optimum value for almost all the test functions
except the Rosenbrock function. The possible reason for this could be its nature for performing local search and
unable to completely get rid of them. It was also observed that as we increased the population size, the firefly
algorithm reached a more optimal solution but converged slowly. This is because the computational complexity
of firefly algorithm is O(n2
), where n is the population size.
TABLE3. Objective function and elapsed time values for firefly algorithm (N-population size)
V. CONCLUSION
In this paper, implementation of recently introduced firefly algorithm was explained in detail. Later its
performance was evaluated using six standard test functions on the basis of precision and convergence speed. It
was observed that the firefly algorithm gave more accurate results when population size was increased. At the
same time, it was also observed that convergence speed of the algorithm towards the optimal solution decreased
with increase in population size. Although, the firefly algorithm had advantages of being precise, robust, easy
and parallel implementation, it also had disadvantages like slow convergence speed, getting trapped into local
optima and no memorizing capability.
REFERENCES
[1] E. Bonabeau, M. Dorigo, G. Theraulaz, Swarm Intelligence: From Natural to Arti๏ฌcial Systems (Santa Fe Institute Studies in the
Sciences of Complexity, NY: Oxford University Press, 1999).
[2] Ausiello, Giorgio; et al. (2003), Complexity and Approximation (Corrected ed.), Springer, ISBN 978-3-540-65431-5.
[3] Xin-She Yang and Amir H. Gandomi, Bat Algorithm: A Novel Approach for Global Engineering Optimization, Engineering
Computations, Vol. 29, Issue 5, pp. 464--483 (2012).
[4] MA Sasa, Xue Jia, Fang Xingqiao, Liu Dongqing, โ€œResearch on Continuous Function Optimization Algorithm Based on Swarm
Intelligenceโ€, 5th
International Conference on Computation, 2009, pg no. 61-65.
[5] X. S. Yang, Fire๏ฌ‚y Algorithm: Stochastic Test Functions and Design Optimisation, Int. J. Bio- Inspired Computation, 2010, Vol. 2,
No. 2, pp.78โ€“84.
[6] Oldenhuis, Rody, Many test functions for global optimizers, Mathworks, 1 November 2012.
[7] R. Poli, J. Kennedy, T. Blackwell, Particle swarm optimization: An overview (Springer Science and Business Media, LLC 2007).
[8] Pei-Wei TSai, Jeng-Shyang Pan, Bin-Yih Liao, Shu-Chuan Chu, Enhanced Artificial Bee Colony Optimization , International
Journal of Innovative Computing, Information and Control, Volume 5, Number 12, December 2009.
[9] Yang, X. S. (2008), Nature-Inspired Metaheuristic Algorithms ( Luniver Press).
[10] X. S. Yang, Fire๏ฌ‚y algorithms for multimodal optimization, Stochastic Algorithms: Foundations and Applications (SAGA 2009,
Lecture Notes in Computer Sciences, Vol. 5792, 2009)169-178.
Test
functions
N
Firefly Algorithm
Objective Function values Elapsed Time (in seconds)
Best Worst Mean Best Worst Mean
Sphere
function
10 1.233e-6
0.0625 0.0020 0.226 0.456 0.355
20 6.139e-7
1.160e-6
8.0460 0.606 1.495 1.784
40 5.455e-7
1.177e-6
5.2461 1.186 5.587 6.253
Sum Square
Function
10 3.74e-6
1.54e-5
8.23e-7
0.498 0.359 0.487
20 5.51e-6
1.98e-5
1.24e-5
0.919 0.971 1.140
40 3.83e-6
1.16e-5
0.57e-5
1.827 3.071 4.187
Step
Function
10 4.56e-7
1.22e-6
9.06e-7
0.421 0.749 0.529
20 4.67e-7
1.35e-6
9.65e-7
1.490 1.817 1.482
40 4.22e-7
1.75e-6
9.37e-7
5.663 6.606 6.058
Trid10
Function
10 -209.9 -209.9 -209.9 0.452 0.648 0.525
20 -209.9 -209.9 -209.9 1.560 2.122 1.73
40 -209.9 -209.9 -209.9 5.819 5.990 6.489
Zakharov
Function
10 -0.09 -0.09 -0.09 0.562 0.765 0.649
20 -0.09 -0.09 -0.09 1.763 1.997 1.910
40 -0.09 -0.09 -0.09 4.946 6.817 6.370
Rosenbrock
Function
10 -9.94e+3
-9.95e+3
-9.94e+3
0.478 0.646 0.555
20 -9.96e+3
-9.98e+3
-9.97e+3
1.411 1.723 1.627
40 -9.99e+3
-9.99e+3
-9.99e+3
4.940 5.898 5.218

More Related Content

What's hot

nature inspired algorithms
nature inspired algorithmsnature inspired algorithms
nature inspired algorithmsGaurav Goel
ย 
Firefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsFirefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsXin-She Yang
ย 
1308.3898
1308.38981308.3898
1308.3898vin_bha1984
ย 
COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...
COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...
COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...csandit
ย 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsMustafa Salam
ย 
Firefly Algorithm, Levy Flights and Global Optimization
Firefly Algorithm, Levy Flights and Global OptimizationFirefly Algorithm, Levy Flights and Global Optimization
Firefly Algorithm, Levy Flights and Global OptimizationXin-She Yang
ย 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithmsupriya shilwant
ย 
Bat Algorithm: Literature Review and Applications
Bat Algorithm: Literature Review and ApplicationsBat Algorithm: Literature Review and Applications
Bat Algorithm: Literature Review and ApplicationsXin-She Yang
ย 
ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...
ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...
ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...ijfcstjournal
ย 
IRJET- Soft Hyperfilters in Hyperlattices
IRJET- Soft Hyperfilters in HyperlatticesIRJET- Soft Hyperfilters in Hyperlattices
IRJET- Soft Hyperfilters in HyperlatticesIRJET Journal
ย 
Bat algorithm and applications
Bat algorithm and applicationsBat algorithm and applications
Bat algorithm and applicationsMd.Al-imran Roton
ย 
Ant Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its ApplicationsAnt Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its Applicationsadil raja
ย 
A Framework for Self-Tuning Optimization Algorithm
A Framework for Self-Tuning Optimization AlgorithmA Framework for Self-Tuning Optimization Algorithm
A Framework for Self-Tuning Optimization AlgorithmXin-She Yang
ย 
Chaotic based Pteropus algorithm for solving optimal reactive power problem
Chaotic based Pteropus algorithm for solving optimal reactive power problemChaotic based Pteropus algorithm for solving optimal reactive power problem
Chaotic based Pteropus algorithm for solving optimal reactive power problemIJAAS Team
ย 
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMTHE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMIJCSEA Journal
ย 
Bat Algorithm is Better Than Intermittent Search Strategy
Bat Algorithm is Better Than Intermittent Search StrategyBat Algorithm is Better Than Intermittent Search Strategy
Bat Algorithm is Better Than Intermittent Search StrategyXin-She Yang
ย 
Gy3312241229
Gy3312241229Gy3312241229
Gy3312241229IJERA Editor
ย 
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...ijcsit
ย 

What's hot (18)

nature inspired algorithms
nature inspired algorithmsnature inspired algorithms
nature inspired algorithms
ย 
Firefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsFirefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and Applications
ย 
1308.3898
1308.38981308.3898
1308.3898
ย 
COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...
COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...
COMPARING THE CUCKOO ALGORITHM WITH OTHER ALGORITHMS FOR ESTIMATING TWO GLSD ...
ย 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
ย 
Firefly Algorithm, Levy Flights and Global Optimization
Firefly Algorithm, Levy Flights and Global OptimizationFirefly Algorithm, Levy Flights and Global Optimization
Firefly Algorithm, Levy Flights and Global Optimization
ย 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
ย 
Bat Algorithm: Literature Review and Applications
Bat Algorithm: Literature Review and ApplicationsBat Algorithm: Literature Review and Applications
Bat Algorithm: Literature Review and Applications
ย 
ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...
ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...
ฮฑ Nearness ant colony system with adaptive strategies for the traveling sales...
ย 
IRJET- Soft Hyperfilters in Hyperlattices
IRJET- Soft Hyperfilters in HyperlatticesIRJET- Soft Hyperfilters in Hyperlattices
IRJET- Soft Hyperfilters in Hyperlattices
ย 
Bat algorithm and applications
Bat algorithm and applicationsBat algorithm and applications
Bat algorithm and applications
ย 
Ant Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its ApplicationsAnt Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its Applications
ย 
A Framework for Self-Tuning Optimization Algorithm
A Framework for Self-Tuning Optimization AlgorithmA Framework for Self-Tuning Optimization Algorithm
A Framework for Self-Tuning Optimization Algorithm
ย 
Chaotic based Pteropus algorithm for solving optimal reactive power problem
Chaotic based Pteropus algorithm for solving optimal reactive power problemChaotic based Pteropus algorithm for solving optimal reactive power problem
Chaotic based Pteropus algorithm for solving optimal reactive power problem
ย 
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMTHE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
ย 
Bat Algorithm is Better Than Intermittent Search Strategy
Bat Algorithm is Better Than Intermittent Search StrategyBat Algorithm is Better Than Intermittent Search Strategy
Bat Algorithm is Better Than Intermittent Search Strategy
ย 
Gy3312241229
Gy3312241229Gy3312241229
Gy3312241229
ย 
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
ย 

Similar to Firefly Algorithm for Unconstrained Optimization

Firefly Algorithms for Multimodal Optimization
Firefly Algorithms for Multimodal OptimizationFirefly Algorithms for Multimodal Optimization
Firefly Algorithms for Multimodal OptimizationXin-She Yang
ย 
1308.3898 1
1308.3898 11308.3898 1
1308.3898 1vin_bha1984
ย 
Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...
Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...
Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...Xin-She Yang
ย 
Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...
Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...
Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...TELKOMNIKA JOURNAL
ย 
A Study of Firefly Algorithm and its Application in Non-Linear Dynamic Systems
A Study of Firefly Algorithm and its Application in Non-Linear Dynamic SystemsA Study of Firefly Algorithm and its Application in Non-Linear Dynamic Systems
A Study of Firefly Algorithm and its Application in Non-Linear Dynamic Systemsijtsrd
ย 
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...AIRCC Publishing Corporation
ย 
Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...
Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...
Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...AIRCC Publishing Corporation
ย 
Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...
Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...
Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...ijcsta
ย 
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its ApplicationsParticle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its Applicationsadil raja
ย 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat AlgorithmXin-She Yang
ย 
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...ijaia
ย 
An improved ant colony algorithm based on
An improved ant colony algorithm based onAn improved ant colony algorithm based on
An improved ant colony algorithm based onIJCI JOURNAL
ย 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithmAhmed Fouad Ali
ย 
Microstrip coupler design using bat
Microstrip coupler design using batMicrostrip coupler design using bat
Microstrip coupler design using batijaia
ย 
Cib vol3no1 article4
Cib vol3no1 article4Cib vol3no1 article4
Cib vol3no1 article4Gissely Souza
ย 
A Heuristic Approach for optimization of Non Linear process using Firefly Alg...
A Heuristic Approach for optimization of Non Linear process using Firefly Alg...A Heuristic Approach for optimization of Non Linear process using Firefly Alg...
A Heuristic Approach for optimization of Non Linear process using Firefly Alg...IJERA Editor
ย 
An automatic test data generation for data flow
An automatic test data generation for data flowAn automatic test data generation for data flow
An automatic test data generation for data flowWafaQKhan
ย 
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTIONA COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTIONijsc
ย 
Artificial bee colony with fcm for data clustering
Artificial bee colony with fcm for data clusteringArtificial bee colony with fcm for data clustering
Artificial bee colony with fcm for data clusteringAlie Banyuripan
ย 
A Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential EvolutionA Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential Evolutionijsc
ย 

Similar to Firefly Algorithm for Unconstrained Optimization (20)

Firefly Algorithms for Multimodal Optimization
Firefly Algorithms for Multimodal OptimizationFirefly Algorithms for Multimodal Optimization
Firefly Algorithms for Multimodal Optimization
ย 
1308.3898 1
1308.3898 11308.3898 1
1308.3898 1
ย 
Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...
Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...
Eagle Strategy Using Levy Walk and Firefly Algorithms For Stochastic Optimiza...
ย 
Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...
Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...
Modified Discrete Firefly Algorithm Combining Genetic Algorithm for Traveling...
ย 
A Study of Firefly Algorithm and its Application in Non-Linear Dynamic Systems
A Study of Firefly Algorithm and its Application in Non-Linear Dynamic SystemsA Study of Firefly Algorithm and its Application in Non-Linear Dynamic Systems
A Study of Firefly Algorithm and its Application in Non-Linear Dynamic Systems
ย 
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
ย 
Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...
Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...
Using Cuckoo Algorithm for Estimating Two GLSD Parameters and Comparing it wi...
ย 
Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...
Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...
Fire-LEACH: A Novel Clustering Protocol for Wireless Sensor Networks based on...
ย 
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its ApplicationsParticle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its Applications
ย 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat Algorithm
ย 
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...
ย 
An improved ant colony algorithm based on
An improved ant colony algorithm based onAn improved ant colony algorithm based on
An improved ant colony algorithm based on
ย 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
ย 
Microstrip coupler design using bat
Microstrip coupler design using batMicrostrip coupler design using bat
Microstrip coupler design using bat
ย 
Cib vol3no1 article4
Cib vol3no1 article4Cib vol3no1 article4
Cib vol3no1 article4
ย 
A Heuristic Approach for optimization of Non Linear process using Firefly Alg...
A Heuristic Approach for optimization of Non Linear process using Firefly Alg...A Heuristic Approach for optimization of Non Linear process using Firefly Alg...
A Heuristic Approach for optimization of Non Linear process using Firefly Alg...
ย 
An automatic test data generation for data flow
An automatic test data generation for data flowAn automatic test data generation for data flow
An automatic test data generation for data flow
ย 
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTIONA COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
ย 
Artificial bee colony with fcm for data clustering
Artificial bee colony with fcm for data clusteringArtificial bee colony with fcm for data clustering
Artificial bee colony with fcm for data clustering
ย 
A Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential EvolutionA Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential Evolution
ย 

More from IOSR Journals

More from IOSR Journals (20)

A011140104
A011140104A011140104
A011140104
ย 
M0111397100
M0111397100M0111397100
M0111397100
ย 
L011138596
L011138596L011138596
L011138596
ย 
K011138084
K011138084K011138084
K011138084
ย 
J011137479
J011137479J011137479
J011137479
ย 
I011136673
I011136673I011136673
I011136673
ย 
G011134454
G011134454G011134454
G011134454
ย 
H011135565
H011135565H011135565
H011135565
ย 
F011134043
F011134043F011134043
F011134043
ย 
E011133639
E011133639E011133639
E011133639
ย 
D011132635
D011132635D011132635
D011132635
ย 
C011131925
C011131925C011131925
C011131925
ย 
B011130918
B011130918B011130918
B011130918
ย 
A011130108
A011130108A011130108
A011130108
ย 
I011125160
I011125160I011125160
I011125160
ย 
H011124050
H011124050H011124050
H011124050
ย 
G011123539
G011123539G011123539
G011123539
ย 
F011123134
F011123134F011123134
F011123134
ย 
E011122530
E011122530E011122530
E011122530
ย 
D011121524
D011121524D011121524
D011121524
ย 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
ย 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
ย 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
ย 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
ย 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
ย 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
ย 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
ย 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
ย 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
ย 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
ย 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
ย 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
ย 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
ย 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
ย 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEslot gacor bisa pakai pulsa
ย 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
ย 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
ย 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
ย 

Recently uploaded (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
ย 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
ย 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
ย 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ย 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
ย 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
ย 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
ย 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
ย 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
ย 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
ย 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
ย 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
ย 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
ย 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
ย 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
ย 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
ย 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
ย 

Firefly Algorithm for Unconstrained Optimization

  • 1. IOSR Journal of Computer Engineering (IOSR-JCE) e-ISSN: 2278-0661, p- ISSN: 2278-8727Volume 11, Issue 1 (May. - Jun. 2013), PP 75-78 www.iosrjournals.org www.iosrjournals.org 75 | Page Firefly Algorithm for Unconstrained Optimization Adil Hashmi1 , Nishant Goel2 , Shruti Goel2 , Divya Gupta2 1 (Assistant Professor, Maharaja Surajmal Institute of Technology, New Delhi, India) 2 (Maharaja Surajmal Institute of Technology, New Delhi, India) Abstract : Meta-heuristic algorithms prove to be competent in outperforming deterministic algorithms for real-world optimization problems. Firefly algorithm is one such recently developed algorithm inspired by the flashing behavior of fireflies. In this work, a detailed formulation and explanation of the Firefly algorithm implementation is given. Later Firefly algorithm is verified using six unimodal engineering optimization problems reported in the specialized literature. Keywords - Benchmark functions, Firefly Algorithm, Swarm Intelligence, Unconstrained Optimization. I. INTRODUCTION Swarm Intelligence [1] is a newly discovered research area that studies the behavior of social insects and uses their models to solve real-world problems. Swarm based systems are made up of a population of simple agents that interact with each other and their surroundings whose constituents follow simple and fixed rules. Though the individual particles are ignorant of their nature, the collective behavior leads to an intelligent global behavior. Optimization problems [2] based on swarm intelligence have features like self-organization, decentralized control, derivative free and easier implementation which lead to an emergent behavior overcoming the limitations of conventional methods. Real world optimization problems belong to a class of hard problems [3] whose main objective is to find the minimum or the maximum of the D dimensional objective function [4] where D represents the number of variables to be optimized. In this paper we intend to explain the implementation of Firefly algorithm [5] in detail and later find optimal solutions to six standard unconstrained test functions [6] along with the convergence speed of the algorithm. The rest of the paper is organized as follows: Section 2 gives a detailed description of firefly algorithm. Section 3 describes the test functions used in our paper briefly. The experimental results are discussed in Section 4 and Section 5 concludes the paper. II. FIREFLY ALGORITHM The Firefly algorithm was introduced by Dr. Xin She yang at Cambridge University in 2007 which was inspired by the mating or flashing behavior of fireflies. Although the algorithm has many similarities with other swarm based algorithms such as Particle Swarm Optimization [7], Artificial Bee Colony Optimization [8] and Ant Colony Optimization [9], the Firefly algorithm has proved to be much simpler both in concept and implementation. 1.1 Flashing Behavior of fireflies Fireflies or lightning bugs belong to a family of insects that are capable to produce natural light to attract a mate or prey. There are about two thousand firefly species which produce short and rhythmic flashes. These flashes often appear to be in a unique pattern and produce an amazing sight in the tropical areas during summer. The intensity (I) of flashes decreases as the distance (r) increases and thus most fireflies can communicate only up to several hundred meters. In the implementation of the algorithm, the flashing light is formulated in such a way that it gets associated with the objective function to be optimized. 1.2 Concept In firefly algorithm, there are three idealized rules: ๏‚ท A firefly will be attracted by other fireflies regardless of their sex ๏‚ท Attractiveness is proportional to their brightness and decreases as the distance among them increases ๏‚ท The landscape of the objective function determines the brightness of a firefly [10].
  • 2. Firefly Algorithm for Unconstrained Optimization www.iosrjournals.org 76 | Page Based on these three rules the pseudo code of the Firefly algorithm can be prepared. Pseudo code for FA: 1. Objective function of f(x), where x=(x1,........,xd) 2. Generate initial population of fireflies; 3. Formulate light intensity I; 4. Define absorption coefficient ฮณ; 5. While (t<MaxGeneration) 6. For i = 1 to n (all n fireflies); 7. For j=1 to n (all n fireflies) 8. If (Ij > Ii), move firefly i towards j; 9. end if 10. Evaluate new solutions and update light intensity; 11. End for j; 12. End for i; 13. Rank the fireflies and find the current best; 14. End while; 15. Post process results and visualization; 16. End procedure; 1.3 Attractiveness and Light Intensity In the Firefly algorithm, there are two important issues: the variation of the light intensity and the formulation of the attractiveness. We know, the light intensity varies according to the inverse square law i.e.: ๐ผ ๐‘Ÿ = ๐ผ๐‘  ๐‘Ÿ2 (1) Where I(r) is the light intensity at a distance r and Is is the intensity at the source. When the medium is given the light intensity can be determined as follows: ๐ผ ๐‘Ÿ = ๐ผ0 ๐‘’โˆ’๐›พ๐‘Ÿ (2) To avoid the singularity at r=0 in (1), the equations can be approximated in the following Gaussian form: ๐ผ ๐‘Ÿ = ๐ผ0 ๐‘’โˆ’๐›พ๐‘Ÿ2 (3) As we know, that a fireflyโ€™s attractiveness is proportional to the light intensity seen by adjacent fireflies and thus the attractiveness ฮฒ of a firefly is determined by equation (4) where ฮฒ0 is the attractiveness at r=0. ๐›ฝ = ๐›ฝ0 ๐‘’โˆ’๐›พ๐‘Ÿ ๐‘š (mโ‰ฅ1) (4) 1.4 Distance The distance between any two fireflies i and j at xi and xj respectively, the Cartesian distance is determined by equation (5) where xi,k is the kth component of the spatial coordinate xi of the ith firefly and d is the number of dimensions. ๐‘Ÿ๐‘–๐‘— = (๐‘ฅ๐‘–,๐‘˜ โˆ’ ๐‘ฅ๐‘— ,๐‘˜ )2๐‘‘ ๐‘˜=1 (5) 1.5 Movement The movement of a firefly i is attracted to another more attractive (brighter) firefly j is determined by ๐‘ฅ๐‘– = ๐‘ฅ๐‘– + ๐›ฝ0 ๐‘’โˆ’๐›พ๐‘Ÿ๐‘–๐‘— 2 ๐‘ฅ๐‘— โˆ’ ๐‘ฅ๐‘– + ๐›ผ๐œ– (6) Where the second term is due to the attraction while the third term is randomization with ฮฑ being the randomization parameter and ฯต being the vector of random numbers drawn from a Gaussian distribution. It is worth pointing out that (6) is a random walk partial towards the brighter fireflies and becomes a simple random walk if ฮฒ0= 0. The parameter set used in this work is described later.
  • 3. Firefly Algorithm for Unconstrained Optimization www.iosrjournals.org 77 | Page 1.6 Convergence For any large number of fireflies (n), if n>>m, where m is the number of local optima of an optimization problem, the convergence of the algorithm can be achieved. Here, the initial location of n fireflies is distributed uniformly in the entire search space, and as the iterations of the algorithm continue fireflies converge into all the local optimum. By comparing the best solutions among all these optima, the global optima are achieved. By adjusting parameters ฮณ and ฮฑ, the Firefly algorithm can outperform both the algorithms Harmony S Search algorithm and PSO. It can also find the global optima as well as the local optima simultaneously and effectively. III. UNCONSTRAINED TEST FUNCTIONS Six well known test functions are used to test the performance of the firefly algorithm. Convergence speed and precision of the algorithm are evaluated through these functions. The functions used in this work are unimodal and are free of constraints. Table 1 briefly describes all the test functions used in the experiment. TABLE1. Test functions (D-dimension) S. No Range D Function Formulation F(x) 1 [-10,10] 10 Step 0 2 [-2,2] 10 Sphere 0 3 [-10,10] 10 Sum square 0 4 [- 100,100] 10 Trid10 -210 5 [-0.5,10] 10 Zakharov 0 6 [-5,10] 10 Rosenbrock 0 IV. EXPERIMENTAL ANALYSIS The firefly algorithm is tested using six standard test functions reported in the literature. The experimental environment is implemented in MATLAB programs and executed on a DELL Studio15 Computer with the configuration of Intel Core I3 CPU M370 at 2.40 GHz and 4GB RAM. In each experimental run, the test functions are processed 10 times for each population size to measure the CPU time taken and to find the best objective function values. The parameter settings for firefly algorithm are shown in Table 2 whereas the experimental results for objective function values and processing time are shown in Table 3. It must be noted that, since unconstrained test functions were used, only the objective function values were reported and not the solution vectors. The dimension of the algorithm for all the test functions was kept constant equal to 10. TABLE2. Parameters set for Firefly algorithms FIREFLY ALGORITHM ฮฑ (randomness): 0.2 ฮณ (absorption): 1.0 ฮฒ : 0 ฮฒ0 : 0 Population Size : 10,20,40
  • 4. Firefly Algorithm for Unconstrained Optimization www.iosrjournals.org 78 | Page Table 3 gives the best, mean and worst values of the optima obtained by the algorithm along with the elapsed time. As we can see, the firefly algorithm has obtained optimum value for almost all the test functions except the Rosenbrock function. The possible reason for this could be its nature for performing local search and unable to completely get rid of them. It was also observed that as we increased the population size, the firefly algorithm reached a more optimal solution but converged slowly. This is because the computational complexity of firefly algorithm is O(n2 ), where n is the population size. TABLE3. Objective function and elapsed time values for firefly algorithm (N-population size) V. CONCLUSION In this paper, implementation of recently introduced firefly algorithm was explained in detail. Later its performance was evaluated using six standard test functions on the basis of precision and convergence speed. It was observed that the firefly algorithm gave more accurate results when population size was increased. At the same time, it was also observed that convergence speed of the algorithm towards the optimal solution decreased with increase in population size. Although, the firefly algorithm had advantages of being precise, robust, easy and parallel implementation, it also had disadvantages like slow convergence speed, getting trapped into local optima and no memorizing capability. REFERENCES [1] E. Bonabeau, M. Dorigo, G. Theraulaz, Swarm Intelligence: From Natural to Arti๏ฌcial Systems (Santa Fe Institute Studies in the Sciences of Complexity, NY: Oxford University Press, 1999). [2] Ausiello, Giorgio; et al. (2003), Complexity and Approximation (Corrected ed.), Springer, ISBN 978-3-540-65431-5. [3] Xin-She Yang and Amir H. Gandomi, Bat Algorithm: A Novel Approach for Global Engineering Optimization, Engineering Computations, Vol. 29, Issue 5, pp. 464--483 (2012). [4] MA Sasa, Xue Jia, Fang Xingqiao, Liu Dongqing, โ€œResearch on Continuous Function Optimization Algorithm Based on Swarm Intelligenceโ€, 5th International Conference on Computation, 2009, pg no. 61-65. [5] X. S. Yang, Fire๏ฌ‚y Algorithm: Stochastic Test Functions and Design Optimisation, Int. J. Bio- Inspired Computation, 2010, Vol. 2, No. 2, pp.78โ€“84. [6] Oldenhuis, Rody, Many test functions for global optimizers, Mathworks, 1 November 2012. [7] R. Poli, J. Kennedy, T. Blackwell, Particle swarm optimization: An overview (Springer Science and Business Media, LLC 2007). [8] Pei-Wei TSai, Jeng-Shyang Pan, Bin-Yih Liao, Shu-Chuan Chu, Enhanced Artificial Bee Colony Optimization , International Journal of Innovative Computing, Information and Control, Volume 5, Number 12, December 2009. [9] Yang, X. S. (2008), Nature-Inspired Metaheuristic Algorithms ( Luniver Press). [10] X. S. Yang, Fire๏ฌ‚y algorithms for multimodal optimization, Stochastic Algorithms: Foundations and Applications (SAGA 2009, Lecture Notes in Computer Sciences, Vol. 5792, 2009)169-178. Test functions N Firefly Algorithm Objective Function values Elapsed Time (in seconds) Best Worst Mean Best Worst Mean Sphere function 10 1.233e-6 0.0625 0.0020 0.226 0.456 0.355 20 6.139e-7 1.160e-6 8.0460 0.606 1.495 1.784 40 5.455e-7 1.177e-6 5.2461 1.186 5.587 6.253 Sum Square Function 10 3.74e-6 1.54e-5 8.23e-7 0.498 0.359 0.487 20 5.51e-6 1.98e-5 1.24e-5 0.919 0.971 1.140 40 3.83e-6 1.16e-5 0.57e-5 1.827 3.071 4.187 Step Function 10 4.56e-7 1.22e-6 9.06e-7 0.421 0.749 0.529 20 4.67e-7 1.35e-6 9.65e-7 1.490 1.817 1.482 40 4.22e-7 1.75e-6 9.37e-7 5.663 6.606 6.058 Trid10 Function 10 -209.9 -209.9 -209.9 0.452 0.648 0.525 20 -209.9 -209.9 -209.9 1.560 2.122 1.73 40 -209.9 -209.9 -209.9 5.819 5.990 6.489 Zakharov Function 10 -0.09 -0.09 -0.09 0.562 0.765 0.649 20 -0.09 -0.09 -0.09 1.763 1.997 1.910 40 -0.09 -0.09 -0.09 4.946 6.817 6.370 Rosenbrock Function 10 -9.94e+3 -9.95e+3 -9.94e+3 0.478 0.646 0.555 20 -9.96e+3 -9.98e+3 -9.97e+3 1.411 1.723 1.627 40 -9.99e+3 -9.99e+3 -9.99e+3 4.940 5.898 5.218