SlideShare une entreprise Scribd logo
1  sur  18
SUPRIYA A. SHILWANT EXAM
SEAT NO:12863
ME –CADME
“Firefly Algorithm”
Under the Guidance of
Dr. KAKANDIKAR G.M.
Content
 What is Optimization
 Introduction
 Firefly Algorithm
 Working Principle
 Flowchart of FA
 Advantages of FA
 References
What is Optimization?
•Optimization is an important tool in making
decisions and in analyzing physical systems.
•Optimization problem is the problem of finding
the best solution from among the set of
all feasible solutions.
•Mathematicians and engineers developed many
mathematical methods for solving the optimization
problems.
•based on behavior of insects or animals, who work
together in order to be capable of solving the complex
problems.
Formulation of an Optimization
Problem
Fireflies
Introduction
◦ One of the family of insects.
◦ Live in tropical environment.
◦ Produce-cold light-chemically
◦ Yellow, green, pale-red light
◦ Based on the flashing patterns and behavior of
fireflies.
Behavior of Fireflies
 Two fundamental functions of such flashes are:
◦ to attract mating partners (communication)
◦ to attract potential prey
◦ protective warning mechanism
 They have unique flashing pattern.
 Females respond to a male’s unique pattern of flashing
in the same species.
 As the distance increases, light becomes weaker and
weaker because absorption by air.
 In some species, females can mimic to hunt other species
by mating pattern.
Firefly Algorithm
•Like Particle Swarm Intelligent.
•developed by Xin-She Yang at Cambridge University in
2007.
•Inspired by behavior of fireflies.
Rules for Firefly Algorithm
◦ All fireflies are unisex so that one firefly will be
attracted to other fireflies regardless of their sex.
◦ Attractiveness is proportional to the brightness,
and they both decrease as their distance increases.
◦ The brightness of a firefly determined by the
objective function.
Pseudo Code
Objective function f(x), x = (x1, ..., xd)
Generate initial population of fireflies xi (i = 1, 2, ..., n)
Light intensity Ii at xi is determined by f(xi)
Define light absorption coefficient
while (t <MaxGeneration)
for i = 1 : n all n fireflies
for j = 1 : i all n fireflies
if (Ij > Ii), Move firefly i towards j in d-dimension; end if
Attractiveness varies with distance r via exp[−r]
Evaluate new solutions and update light intensity
end for j
end for i
Rank the fireflies and find the current best
end while
Postprocess results and visualization.
Working Principle
1. Initialize Objective Function f(xi) :-
In the simplest form, the light intensity I(r) varies
according to the inverse square law.
Where, I(r) is the intensity at the source
r is the observers distance from source
If we take absorption coefficient γ into account, the
light intensity I varies with the square of distance r.
2. Generate Initial Population of Fireflies :-
 Initialize the Fireflies population (say n) by considering
the following equation:-
 Where the second term is due to the attraction and third
term is randomization with α being the randomization
parameter.
3. Determine the Light Intensity Ii at xi
via f(xi) :-
Now determine the light intensities of each of the fireflies
to find out the brightness of every firefly.
4. Calculate the attractiveness of Fireflies :-
Evaluate the attractiveness of Fireflies :
5. Movement of Less Brighter Fireflies
towards brighter one
The movement of the firefly i is attracted to another more
attractive (brighter) firefly j is determined by :-
6. Update the Light Intensities, rank the fireflies
and find the current best :-
Update the Light intensities of the Fireflies and rank the
fireflies. After ranking of the fireflies, find the current best
solution.
Flowchart of FA
Advantages of FA:
• FA can deal with highly non- linear, multi-modal
optimization problems naturally and efficiently.
• FA does not use velocities, and there is no problem as
that associated with velocity in PSO.
• The speed of convergence of FA is very high in probability
of finding the global optimized answer.
• It has the flexibility of integration with other
optimization techniques to form hybrid tools.
• It does not require a good initial solution to start its
iteration process.
Application Areas
• For solving Travelling Salesman Problem
• Digital image compression and image processing
• Feature Selection and fault detection
• Antenna design
• Structural design
• Scheduling
• Chemical phase equilibrium
• Dynamic problems
References
• Iztok Fister, Iztok Fister Jr., Xin-She Yang , Janez Brest , “A
comprehensive review of firefly algorithms”, Journal of Swarm and
Evolutionary Computation, 2013, Vol.13, Issue.1, pp.34-46.
• Xin-She Yang, Firefly “Algorithms for Multimodal Optimization”,
Stochastic Algorithms: Foundations and Applications, SAGA 2010,
Vol.5792, pp.169-178.
• Iztok Fister Jr, Matjaz Perc, Salahuddin M. Kamal, Iztok Fister “A
review of chaos-based firefly algorithms: Perspectives and research
challenges”, University of Maribor, Smetanova 17, SI-2000 Maribor,
Slovenia, 2014.12.006.
• A.H. Gandomi, X.-S. Yang, S. Talatahari, A.H. Alavi, “Firefly Algorithm
with chaos”, International Journal of Common Nonlinear Science
Numerical Simulation, Vol. No.18, No.1, 2013, pp.89-98.
• Amarita Ritthipakdee1, Arit Thammano2, Nol Premasathian3, and
Bunyarit Uyyanonvara “An Improved Firefly Algorithm for
Optimization Problems”.
• Xin-She Yang School of Science and Technology, Middlesex
University, The Burroughs, London NW4 4BT, UK “Firefly Algorithm:
Recent Advances and Applications , “ Firefly Algorithm: Recent
Advances and Applications” arXiv:1308.3898v1 [math.OC] 18
Aug2013.
• Xin-She Yang, “Swarm Intelligence based algorithms : A Critical
Analysis”, Journal of Evolutionary Intelligence, Vol.7,No.1,
April.2014, pp.18-28.
• S. Arora and S. Singh, “A conceptual comparison of firefly algorithm,
bat algorithm and cuckoo search,” International Conference on
Control Computing Communication & Materials (ICCCCM), 2013, pp.
1–4.
• Aphirak Khadwilard1, Sirikarn Chansombat2, Thatchai
Thepphakorn, Peeraya Thapatsuwan2, Warattapop Chainate and
Pupong Pongcharoen “Application of Firefly Algorithm and Its
Parameter Setting for Job Shop Scheduling”, The Journal of
Industrial Technology, Vol. 8, No. 1 January – April 2012.
Firefly algorithm

Contenu connexe

Tendances

Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
Uday Wankar
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)
quadmemo
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
NepalAdz
 

Tendances (20)

Cuckoo Search Algorithm - Beyazıt Kölemen
Cuckoo Search Algorithm - Beyazıt KölemenCuckoo Search Algorithm - Beyazıt Kölemen
Cuckoo Search Algorithm - Beyazıt Kölemen
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithm
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization ppt
 
Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
 
ABC Algorithm.
ABC Algorithm.ABC Algorithm.
ABC Algorithm.
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical Analysis
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
 
Bat algorithm and applications
Bat algorithm and applicationsBat algorithm and applications
Bat algorithm and applications
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
5. FIREFLY ALGORITHM OPTIMIZATION.pptx
5. FIREFLY ALGORITHM OPTIMIZATION.pptx5. FIREFLY ALGORITHM OPTIMIZATION.pptx
5. FIREFLY ALGORITHM OPTIMIZATION.pptx
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
 
Spider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmSpider Monkey Optimization Algorithm
Spider Monkey Optimization Algorithm
 

Similaire à Firefly algorithm

Similaire à Firefly algorithm (20)

Natural-Inspired_Amany_Final.pptx
Natural-Inspired_Amany_Final.pptxNatural-Inspired_Amany_Final.pptx
Natural-Inspired_Amany_Final.pptx
 
Firefly Algorithms for Multimodal Optimization
Firefly Algorithms for Multimodal OptimizationFirefly Algorithms for Multimodal Optimization
Firefly Algorithms for Multimodal Optimization
 
Improved Firefly Algorithm for Unconstrained Optimization Problems
Improved Firefly Algorithm for Unconstrained Optimization ProblemsImproved Firefly Algorithm for Unconstrained Optimization Problems
Improved Firefly Algorithm for Unconstrained Optimization Problems
 
A Firefly Algorithm for Optimizing Spur Gear Parameters Under Non-Lubricated ...
A Firefly Algorithm for Optimizing Spur Gear Parameters Under Non-Lubricated ...A Firefly Algorithm for Optimizing Spur Gear Parameters Under Non-Lubricated ...
A Firefly Algorithm for Optimizing Spur Gear Parameters Under Non-Lubricated ...
 
Firefly Algorithm, Stochastic Test Functions and Design Optimisation
 Firefly Algorithm, Stochastic Test Functions and Design Optimisation Firefly Algorithm, Stochastic Test Functions and Design Optimisation
Firefly Algorithm, Stochastic Test Functions and Design Optimisation
 
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
 
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
 
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...
 
Firefly Algorithm for Unconstrained Optimization
Firefly Algorithm for Unconstrained OptimizationFirefly Algorithm for Unconstrained Optimization
Firefly Algorithm for Unconstrained Optimization
 
M01117578
M01117578M01117578
M01117578
 
MPPT for Photovoltaic System Using Multi-objective Improved Particle Swarm Op...
MPPT for Photovoltaic System Using Multi-objective Improved Particle Swarm Op...MPPT for Photovoltaic System Using Multi-objective Improved Particle Swarm Op...
MPPT for Photovoltaic System Using Multi-objective Improved Particle Swarm Op...
 
Pso kota baru parahyangan 2017
Pso kota baru parahyangan 2017Pso kota baru parahyangan 2017
Pso kota baru parahyangan 2017
 
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
 
Particle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeParticle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi Mukherjee
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
 
Bat Algorithm: A Novel Approach for Global Engineering Optimization
Bat Algorithm: A Novel Approach for Global Engineering OptimizationBat Algorithm: A Novel Approach for Global Engineering Optimization
Bat Algorithm: A Novel Approach for Global Engineering Optimization
 
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
 
A comprehensive review of the firefly algorithms
A comprehensive review of the firefly algorithmsA comprehensive review of the firefly algorithms
A comprehensive review of the firefly algorithms
 
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATIONSWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
 
A survey on ant colony clustering papers
A survey on ant colony clustering papersA survey on ant colony clustering papers
A survey on ant colony clustering papers
 

Dernier

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 

Dernier (20)

Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 

Firefly algorithm

  • 1. SUPRIYA A. SHILWANT EXAM SEAT NO:12863 ME –CADME “Firefly Algorithm” Under the Guidance of Dr. KAKANDIKAR G.M.
  • 2. Content  What is Optimization  Introduction  Firefly Algorithm  Working Principle  Flowchart of FA  Advantages of FA  References
  • 3. What is Optimization? •Optimization is an important tool in making decisions and in analyzing physical systems. •Optimization problem is the problem of finding the best solution from among the set of all feasible solutions. •Mathematicians and engineers developed many mathematical methods for solving the optimization problems. •based on behavior of insects or animals, who work together in order to be capable of solving the complex problems.
  • 4. Formulation of an Optimization Problem
  • 5. Fireflies Introduction ◦ One of the family of insects. ◦ Live in tropical environment. ◦ Produce-cold light-chemically ◦ Yellow, green, pale-red light ◦ Based on the flashing patterns and behavior of fireflies.
  • 6. Behavior of Fireflies  Two fundamental functions of such flashes are: ◦ to attract mating partners (communication) ◦ to attract potential prey ◦ protective warning mechanism  They have unique flashing pattern.  Females respond to a male’s unique pattern of flashing in the same species.  As the distance increases, light becomes weaker and weaker because absorption by air.  In some species, females can mimic to hunt other species by mating pattern.
  • 7. Firefly Algorithm •Like Particle Swarm Intelligent. •developed by Xin-She Yang at Cambridge University in 2007. •Inspired by behavior of fireflies.
  • 8. Rules for Firefly Algorithm ◦ All fireflies are unisex so that one firefly will be attracted to other fireflies regardless of their sex. ◦ Attractiveness is proportional to the brightness, and they both decrease as their distance increases. ◦ The brightness of a firefly determined by the objective function.
  • 9. Pseudo Code Objective function f(x), x = (x1, ..., xd) Generate initial population of fireflies xi (i = 1, 2, ..., n) Light intensity Ii at xi is determined by f(xi) Define light absorption coefficient while (t <MaxGeneration) for i = 1 : n all n fireflies for j = 1 : i all n fireflies if (Ij > Ii), Move firefly i towards j in d-dimension; end if Attractiveness varies with distance r via exp[−r] Evaluate new solutions and update light intensity end for j end for i Rank the fireflies and find the current best end while Postprocess results and visualization.
  • 10. Working Principle 1. Initialize Objective Function f(xi) :- In the simplest form, the light intensity I(r) varies according to the inverse square law. Where, I(r) is the intensity at the source r is the observers distance from source If we take absorption coefficient γ into account, the light intensity I varies with the square of distance r.
  • 11. 2. Generate Initial Population of Fireflies :-  Initialize the Fireflies population (say n) by considering the following equation:-  Where the second term is due to the attraction and third term is randomization with α being the randomization parameter. 3. Determine the Light Intensity Ii at xi via f(xi) :- Now determine the light intensities of each of the fireflies to find out the brightness of every firefly.
  • 12. 4. Calculate the attractiveness of Fireflies :- Evaluate the attractiveness of Fireflies : 5. Movement of Less Brighter Fireflies towards brighter one The movement of the firefly i is attracted to another more attractive (brighter) firefly j is determined by :- 6. Update the Light Intensities, rank the fireflies and find the current best :- Update the Light intensities of the Fireflies and rank the fireflies. After ranking of the fireflies, find the current best solution.
  • 14. Advantages of FA: • FA can deal with highly non- linear, multi-modal optimization problems naturally and efficiently. • FA does not use velocities, and there is no problem as that associated with velocity in PSO. • The speed of convergence of FA is very high in probability of finding the global optimized answer. • It has the flexibility of integration with other optimization techniques to form hybrid tools. • It does not require a good initial solution to start its iteration process.
  • 15. Application Areas • For solving Travelling Salesman Problem • Digital image compression and image processing • Feature Selection and fault detection • Antenna design • Structural design • Scheduling • Chemical phase equilibrium • Dynamic problems
  • 16. References • Iztok Fister, Iztok Fister Jr., Xin-She Yang , Janez Brest , “A comprehensive review of firefly algorithms”, Journal of Swarm and Evolutionary Computation, 2013, Vol.13, Issue.1, pp.34-46. • Xin-She Yang, Firefly “Algorithms for Multimodal Optimization”, Stochastic Algorithms: Foundations and Applications, SAGA 2010, Vol.5792, pp.169-178. • Iztok Fister Jr, Matjaz Perc, Salahuddin M. Kamal, Iztok Fister “A review of chaos-based firefly algorithms: Perspectives and research challenges”, University of Maribor, Smetanova 17, SI-2000 Maribor, Slovenia, 2014.12.006. • A.H. Gandomi, X.-S. Yang, S. Talatahari, A.H. Alavi, “Firefly Algorithm with chaos”, International Journal of Common Nonlinear Science Numerical Simulation, Vol. No.18, No.1, 2013, pp.89-98. • Amarita Ritthipakdee1, Arit Thammano2, Nol Premasathian3, and Bunyarit Uyyanonvara “An Improved Firefly Algorithm for Optimization Problems”.
  • 17. • Xin-She Yang School of Science and Technology, Middlesex University, The Burroughs, London NW4 4BT, UK “Firefly Algorithm: Recent Advances and Applications , “ Firefly Algorithm: Recent Advances and Applications” arXiv:1308.3898v1 [math.OC] 18 Aug2013. • Xin-She Yang, “Swarm Intelligence based algorithms : A Critical Analysis”, Journal of Evolutionary Intelligence, Vol.7,No.1, April.2014, pp.18-28. • S. Arora and S. Singh, “A conceptual comparison of firefly algorithm, bat algorithm and cuckoo search,” International Conference on Control Computing Communication & Materials (ICCCCM), 2013, pp. 1–4. • Aphirak Khadwilard1, Sirikarn Chansombat2, Thatchai Thepphakorn, Peeraya Thapatsuwan2, Warattapop Chainate and Pupong Pongcharoen “Application of Firefly Algorithm and Its Parameter Setting for Job Shop Scheduling”, The Journal of Industrial Technology, Vol. 8, No. 1 January – April 2012.