SlideShare a Scribd company logo
Grasshopper Optimization Algorithm
DR. AHMED FOUAD ALI
FACULTY OF COMPUTERS AND INFORMATICS
SUEZ CANAL UNIVERSITY
Outline
 Grasshopper optimization algorithm (GOA) (History and main idea)
 Nature behavior of grasshopper.
 The main characteristic of the grasshopper swarm.
 Grasshopper optimization algorithm
 References
Grasshopper Optimization Algorithm (GOA)
(History and main idea)
 Grasshopper optimization algorithm is a
recent swarm intelligence algorithm
developed by Mirjalili at. el
 GOA is a population based method
 GOA mimicking the behavior of
grasshopper swarms and their social
interaction.
Nature behavior of grasshopper
 Grasshoppers are destructive insects according to
their damage to agriculture.
 They life has two phases, nymph and adulthood.
 The nymph grasshoppers have no wings so they
move slowly and eat all vegetation on their path.
 After period of time they grow up and become
adult with wings to form a swarm in the air and
move fast to large scale region.
Nature behavior of grasshopper (Cont.)
 Although grasshoppers are usually seen
individually in nature, they join in one of the
largest swarm of all creatures.
 The size of the swarm may be of continental scale
and a nightmare for farmers.
 The unique aspect of the grasshopper swarm is
that the swarming behavior is found in both
nymph and adulthood.
The main characteristic of the grasshopper
swarm.
 The main characteristic of the swarm in the larval
phase is slow movement and small steps of the
grasshoppers.
 Long-range and abrupt movement is the
essential feature of the swarm in adulthood.
 Food source seeking is another important
characteristic of the swarming of grasshoppers by
dividing the search process into two tendencies:
exploration and exploitation.
Grasshopper optimization algorithm
 Grasshopper optimization algorithm is a recent
population based algorithm, each grasshopper
represents a solution in the population.
 The position of each grasshopper in the swarm is
based on three forces.
 The social interaction between it and the other
grasshoppers Si, the gravity force on it Gi and the
wind advection Ai.
Grasshopper optimization algorithm (cont.)
 The final form of the three affected forces on each grasshopper can defined as
follow.
 The social interaction force between each grasshopper and the other
grasshopper can be defined as follow.
Where dij is the distance between the grasshopper i and grasshopper j
Grasshopper optimization algorithm (cont.)
 s is a function represents the strength of two social force, attraction and
repulsion between grasshoppers, it can be defined as follow.
 Where f, l are the intensity of the attraction and the attractive length scale.
 The social behavior is affected by the changing of the parameters f, l.
Grasshopper optimization algorithm (cont.)
 The repulsion force happen when the distance between two grasshoppers is
in the interval [0, 2.079], and if the distance between two grasshoppers is
2.079, there is neither attraction nor repulsion which form a comfortable zone.
 If the distance greater than 2.079 the attraction force increases then it
decreases gradually when it reach to 4.
 When the distance between two grasshopper greater than 10, the function s
fails to apply forces between grasshoppers.
 In order to solve this problem, the distance of grasshoppers is mapped in the
interval [1,4].
Grasshopper optimization algorithm (cont.)
 The second affected force on the position of the grasshopper is the gravity
force which calculated as follow.
Where g is the gravitational constant and is a center of earth unity victor.
Grasshopper optimization algorithm (cont.)
 The nymph grasshoppers movements correlated with wind direction because
they have no wings. The wind direction can be calculated as follow.
Where u is a constant drift and is a wind direction unity vector.
Grasshopper optimization algorithm (cont.)
 The position of the grasshopper can be calculated as follow.
 In order to solve optimization problems and prevent the grasshoppers to
reach the comfort zone quickly and the swarm does not converge to the target
(global optimum), the previous equation can be proposed as follow.
Grasshopper optimization algorithm (cont.)
Where ubd, lbd are the upper and lower bound in the dth dimension. is the
target value in the dth dimension.
The parameter c is called a decreasing coefficient and it is responsible for
reducing the comfort zone, repulsion zone and the attraction zone.
The coefficient c is decreased proportional to the iterations number to balance
exploration and exploitation in the grasshopper algorithm and it can be
calculated as follow.
Grasshopper optimization algorithm (cont.)
where cmax, cmin are the maximum and minimum values, l is the current
iteration and L is the maximum number of iterations.
The flowchart of the grasshopper optimization algorithm are shown in the
following slide.
• Initialization. The algorithm starts by setting the initial values of the maximum
and minimum values of the decreasing coefficient parameter, cmax, cmin
respectively, the parameters l, f and the maximum number of iterations maxitr.
•Initial population and evaluation. The initial population is generated randomly
and each solution in the population is evaluated by calculating its value by using
the objective function.
•Assigning the overall best solution. After evaluating all the solutions in the
initial population, the overall (global) best solution is assigned according to its
value.
•Updating the decreasing coefficient parameter. At each iteration, the coefficient
parameter c is updating in order to shrink the comfort, repulsion and attraction
zones as shown in Equation 13.
Steps of the grasshopper optimization algorithm (cont.)
Mapping the distance of grasshoppers. The function s as shown in Equation 8 is
responsible for dividing the search space into comfort, repulsion and attraction
zones, however its ability decreases to zero when the distance between two
grasshoppers is greater than 10.
In order to solve this problem the distance between the grasshopper mapped to
the interval [1,4].
Updating solution. Each solution in the population is updated based on the
distance between it and the other solutions, the decreasing coefficient parameter
c and the global best solution in the population as shown in Equation 12.
Steps of the grasshopper optimization algorithm (cont.)
• Solution boundaries violation. After updating the solution, if it violates its
upper and lower boundaries, it rests to its domain.
•Visiting all the solutions in population. The previous three steps are repeated
for all the solutions in the populations.
•Solutions evaluations. The solutions in the population are updated and
evaluated and the best global solution is assigned.
•Termination criteria. The overall operations are repeated until reaching to the
maximum number of iterations maxitr which is the termination criterion in our
work.
•Returning the best solution. The best globe solution T is returned when the
algorithm reaches to its maximum number of iteration.
Steps of the grasshopper optimization algorithm (cont.)
References
S. Saremi, S. Mirjalili, and A. Lewis. “Grasshopper
optimisation algorithm: Theory and application”.
Advances in Engineering Software, 105, 30-47, 2017

More Related Content

What's hot

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
adil raja
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
Ahmed Fouad Ali
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
Ahmed Fouad Ali
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
supriya shilwant
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
Eslam Hamed
 
Bat algorithm and applications
Bat algorithm and applicationsBat algorithm and applications
Bat algorithm and applications
Md.Al-imran Roton
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
Velmurugan Sivaraman
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
Ahmed Fouad Ali
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
Mohamed Essam
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Suman Chatterjee
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationHanya Mohammed
 
Bat algorithm
Bat algorithmBat algorithm
Bat algorithm
Priya Kaushal
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
Ahmed Fouad Ali
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
Mustafa Salam
 
PSO
PSOPSO
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
ossein jain
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
Ahmed Fouad Ali
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
Pratik Poddar
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization ppt
Anuja Joshi
 
Spider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmSpider Monkey Optimization Algorithm
Spider Monkey Optimization Algorithm
Ahmed Fouad Ali
 

What's hot (20)

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
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
Bat algorithm and applications
Bat algorithm and applicationsBat algorithm and applications
Bat algorithm and applications
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Bat algorithm
Bat algorithmBat algorithm
Bat algorithm
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
 
PSO
PSOPSO
PSO
 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization ppt
 
Spider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmSpider Monkey Optimization Algorithm
Spider Monkey Optimization Algorithm
 

Similar to Grasshopper optimization algorithm

The optimization of running queries in relational databases using ant colony ...
The optimization of running queries in relational databases using ant colony ...The optimization of running queries in relational databases using ant colony ...
The optimization of running queries in relational databases using ant colony ...
ijdms
 
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
cscpconf
 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat Algorithm
Xin-She Yang
 
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
csandit
 
A beamforming comparative study of least mean square, genetic algorithm and g...
A beamforming comparative study of least mean square, genetic algorithm and g...A beamforming comparative study of least mean square, genetic algorithm and g...
A beamforming comparative study of least mean square, genetic algorithm and g...
TELKOMNIKA JOURNAL
 
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
IJCI JOURNAL
 
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 ...
irjes
 
AI In the Game Development
AI In the Game DevelopmentAI In the Game Development
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired Algorithm
Xin-She Yang
 
Glowworm Swarm Optimisation
Glowworm Swarm OptimisationGlowworm Swarm Optimisation
Glowworm Swarm Optimisation
Arijeet Satapathy
 
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired Algorithm
Xin-She Yang
 
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
TELKOMNIKA JOURNAL
 
Robotic arm
Robotic armRobotic arm
Robotic arm
kartikeya Agarwal
 
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
 
Gy3312241229
Gy3312241229Gy3312241229
Gy3312241229
IJERA Editor
 
Firefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsFirefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and Applications
Xin-She Yang
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentationPartha Das
 
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
Xin-She Yang
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
pawansher2002
 
1308.3898 1
1308.3898 11308.3898 1
1308.3898 1
vin_bha1984
 

Similar to Grasshopper optimization algorithm (20)

The optimization of running queries in relational databases using ant colony ...
The optimization of running queries in relational databases using ant colony ...The optimization of running queries in relational databases using ant colony ...
The optimization of running queries in relational databases using ant colony ...
 
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat Algorithm
 
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
 
A beamforming comparative study of least mean square, genetic algorithm and g...
A beamforming comparative study of least mean square, genetic algorithm and g...A beamforming comparative study of least mean square, genetic algorithm and g...
A beamforming comparative study of least mean square, genetic algorithm and g...
 
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
 
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 ...
 
AI In the Game Development
AI In the Game DevelopmentAI In the Game Development
AI In the Game Development
 
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired Algorithm
 
Glowworm Swarm Optimisation
Glowworm Swarm OptimisationGlowworm Swarm Optimisation
Glowworm Swarm Optimisation
 
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired Algorithm
 
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
 
Robotic arm
Robotic armRobotic arm
Robotic arm
 
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...
 
Gy3312241229
Gy3312241229Gy3312241229
Gy3312241229
 
Firefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsFirefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and Applications
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentation
 
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
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
 
1308.3898 1
1308.3898 11308.3898 1
1308.3898 1
 

More from Ahmed Fouad Ali

Manta Ray Optimization.pptx
Manta Ray Optimization.pptxManta Ray Optimization.pptx
Manta Ray Optimization.pptx
Ahmed Fouad Ali
 
Harris hawks optimization
Harris hawks optimizationHarris hawks optimization
Harris hawks optimization
Ahmed Fouad Ali
 
Salp swarm algorithm
Salp swarm algorithmSalp swarm algorithm
Salp swarm algorithm
Ahmed Fouad Ali
 
Backtraking optimziation algorithm
Backtraking optimziation algorithmBacktraking optimziation algorithm
Backtraking optimziation algorithm
Ahmed Fouad Ali
 
Social spider optimization
Social spider optimizationSocial spider optimization
Social spider optimization
Ahmed Fouad Ali
 
Grey wolf optimizer
Grey wolf optimizerGrey wolf optimizer
Grey wolf optimizer
Ahmed Fouad Ali
 
Gravitational search algorithm
Gravitational search algorithmGravitational search algorithm
Gravitational search algorithm
Ahmed Fouad Ali
 
Flower pollination
Flower pollinationFlower pollination
Flower pollination
Ahmed Fouad Ali
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithm
Ahmed Fouad Ali
 
Latex symbols and commands
Latex symbols  and commandsLatex symbols  and commands
Latex symbols and commands
Ahmed Fouad Ali
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithm
Ahmed Fouad Ali
 
Tabu search
Tabu searchTabu search
Tabu search
Ahmed Fouad Ali
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
Ahmed Fouad Ali
 
Variable neighborhood search
Variable neighborhood searchVariable neighborhood search
Variable neighborhood search
Ahmed Fouad Ali
 
Group search optimizer
Group search optimizerGroup search optimizer
Group search optimizer
Ahmed Fouad Ali
 
Ant colony algorithm
Ant colony algorithm Ant colony algorithm
Ant colony algorithm
Ahmed Fouad Ali
 
Particle swarm optimization
Particle swarm optimization Particle swarm optimization
Particle swarm optimization
Ahmed Fouad Ali
 

More from Ahmed Fouad Ali (18)

Manta Ray Optimization.pptx
Manta Ray Optimization.pptxManta Ray Optimization.pptx
Manta Ray Optimization.pptx
 
Harris hawks optimization
Harris hawks optimizationHarris hawks optimization
Harris hawks optimization
 
Salp swarm algorithm
Salp swarm algorithmSalp swarm algorithm
Salp swarm algorithm
 
Backtraking optimziation algorithm
Backtraking optimziation algorithmBacktraking optimziation algorithm
Backtraking optimziation algorithm
 
Social spider optimization
Social spider optimizationSocial spider optimization
Social spider optimization
 
Grey wolf optimizer
Grey wolf optimizerGrey wolf optimizer
Grey wolf optimizer
 
Gravitational search algorithm
Gravitational search algorithmGravitational search algorithm
Gravitational search algorithm
 
Flower pollination
Flower pollinationFlower pollination
Flower pollination
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithm
 
Latex symbols and commands
Latex symbols  and commandsLatex symbols  and commands
Latex symbols and commands
 
bat algorithm
bat algorithmbat algorithm
bat algorithm
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithm
 
Tabu search
Tabu searchTabu search
Tabu search
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Variable neighborhood search
Variable neighborhood searchVariable neighborhood search
Variable neighborhood search
 
Group search optimizer
Group search optimizerGroup search optimizer
Group search optimizer
 
Ant colony algorithm
Ant colony algorithm Ant colony algorithm
Ant colony algorithm
 
Particle swarm optimization
Particle swarm optimization Particle swarm optimization
Particle swarm optimization
 

Recently uploaded

Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 

Recently uploaded (20)

Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 

Grasshopper optimization algorithm

  • 1. Grasshopper Optimization Algorithm DR. AHMED FOUAD ALI FACULTY OF COMPUTERS AND INFORMATICS SUEZ CANAL UNIVERSITY
  • 2. Outline  Grasshopper optimization algorithm (GOA) (History and main idea)  Nature behavior of grasshopper.  The main characteristic of the grasshopper swarm.  Grasshopper optimization algorithm  References
  • 3. Grasshopper Optimization Algorithm (GOA) (History and main idea)  Grasshopper optimization algorithm is a recent swarm intelligence algorithm developed by Mirjalili at. el  GOA is a population based method  GOA mimicking the behavior of grasshopper swarms and their social interaction.
  • 4. Nature behavior of grasshopper  Grasshoppers are destructive insects according to their damage to agriculture.  They life has two phases, nymph and adulthood.  The nymph grasshoppers have no wings so they move slowly and eat all vegetation on their path.  After period of time they grow up and become adult with wings to form a swarm in the air and move fast to large scale region.
  • 5. Nature behavior of grasshopper (Cont.)  Although grasshoppers are usually seen individually in nature, they join in one of the largest swarm of all creatures.  The size of the swarm may be of continental scale and a nightmare for farmers.  The unique aspect of the grasshopper swarm is that the swarming behavior is found in both nymph and adulthood.
  • 6. The main characteristic of the grasshopper swarm.  The main characteristic of the swarm in the larval phase is slow movement and small steps of the grasshoppers.  Long-range and abrupt movement is the essential feature of the swarm in adulthood.  Food source seeking is another important characteristic of the swarming of grasshoppers by dividing the search process into two tendencies: exploration and exploitation.
  • 7. Grasshopper optimization algorithm  Grasshopper optimization algorithm is a recent population based algorithm, each grasshopper represents a solution in the population.  The position of each grasshopper in the swarm is based on three forces.  The social interaction between it and the other grasshoppers Si, the gravity force on it Gi and the wind advection Ai.
  • 8. Grasshopper optimization algorithm (cont.)  The final form of the three affected forces on each grasshopper can defined as follow.  The social interaction force between each grasshopper and the other grasshopper can be defined as follow. Where dij is the distance between the grasshopper i and grasshopper j
  • 9. Grasshopper optimization algorithm (cont.)  s is a function represents the strength of two social force, attraction and repulsion between grasshoppers, it can be defined as follow.  Where f, l are the intensity of the attraction and the attractive length scale.  The social behavior is affected by the changing of the parameters f, l.
  • 10. Grasshopper optimization algorithm (cont.)  The repulsion force happen when the distance between two grasshoppers is in the interval [0, 2.079], and if the distance between two grasshoppers is 2.079, there is neither attraction nor repulsion which form a comfortable zone.  If the distance greater than 2.079 the attraction force increases then it decreases gradually when it reach to 4.  When the distance between two grasshopper greater than 10, the function s fails to apply forces between grasshoppers.  In order to solve this problem, the distance of grasshoppers is mapped in the interval [1,4].
  • 11. Grasshopper optimization algorithm (cont.)  The second affected force on the position of the grasshopper is the gravity force which calculated as follow. Where g is the gravitational constant and is a center of earth unity victor.
  • 12. Grasshopper optimization algorithm (cont.)  The nymph grasshoppers movements correlated with wind direction because they have no wings. The wind direction can be calculated as follow. Where u is a constant drift and is a wind direction unity vector.
  • 13. Grasshopper optimization algorithm (cont.)  The position of the grasshopper can be calculated as follow.  In order to solve optimization problems and prevent the grasshoppers to reach the comfort zone quickly and the swarm does not converge to the target (global optimum), the previous equation can be proposed as follow.
  • 14. Grasshopper optimization algorithm (cont.) Where ubd, lbd are the upper and lower bound in the dth dimension. is the target value in the dth dimension. The parameter c is called a decreasing coefficient and it is responsible for reducing the comfort zone, repulsion zone and the attraction zone. The coefficient c is decreased proportional to the iterations number to balance exploration and exploitation in the grasshopper algorithm and it can be calculated as follow.
  • 15. Grasshopper optimization algorithm (cont.) where cmax, cmin are the maximum and minimum values, l is the current iteration and L is the maximum number of iterations. The flowchart of the grasshopper optimization algorithm are shown in the following slide.
  • 16.
  • 17. • Initialization. The algorithm starts by setting the initial values of the maximum and minimum values of the decreasing coefficient parameter, cmax, cmin respectively, the parameters l, f and the maximum number of iterations maxitr. •Initial population and evaluation. The initial population is generated randomly and each solution in the population is evaluated by calculating its value by using the objective function. •Assigning the overall best solution. After evaluating all the solutions in the initial population, the overall (global) best solution is assigned according to its value. •Updating the decreasing coefficient parameter. At each iteration, the coefficient parameter c is updating in order to shrink the comfort, repulsion and attraction zones as shown in Equation 13. Steps of the grasshopper optimization algorithm (cont.)
  • 18. Mapping the distance of grasshoppers. The function s as shown in Equation 8 is responsible for dividing the search space into comfort, repulsion and attraction zones, however its ability decreases to zero when the distance between two grasshoppers is greater than 10. In order to solve this problem the distance between the grasshopper mapped to the interval [1,4]. Updating solution. Each solution in the population is updated based on the distance between it and the other solutions, the decreasing coefficient parameter c and the global best solution in the population as shown in Equation 12. Steps of the grasshopper optimization algorithm (cont.)
  • 19. • Solution boundaries violation. After updating the solution, if it violates its upper and lower boundaries, it rests to its domain. •Visiting all the solutions in population. The previous three steps are repeated for all the solutions in the populations. •Solutions evaluations. The solutions in the population are updated and evaluated and the best global solution is assigned. •Termination criteria. The overall operations are repeated until reaching to the maximum number of iterations maxitr which is the termination criterion in our work. •Returning the best solution. The best globe solution T is returned when the algorithm reaches to its maximum number of iteration. Steps of the grasshopper optimization algorithm (cont.)
  • 20. References S. Saremi, S. Mirjalili, and A. Lewis. “Grasshopper optimisation algorithm: Theory and application”. Advances in Engineering Software, 105, 30-47, 2017