SlideShare a Scribd company logo
3
Most read
7
Most read
8
Most read
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.
Grasshopper optimization algorithm
• 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

PPTX
Salp swarm algorithm
PDF
Particle Swarm Optimization
PPTX
Optimization technique genetic algorithm
PDF
Particle Swarm Optimization: The Algorithm and Its Applications
PPTX
Crow search algorithm
PPTX
Genetic algorithm raktim
PPTX
Whale optimizatio algorithm
Salp swarm algorithm
Particle Swarm Optimization
Optimization technique genetic algorithm
Particle Swarm Optimization: The Algorithm and Its Applications
Crow search algorithm
Genetic algorithm raktim
Whale optimizatio algorithm

What's hot (20)

PPTX
Bat algorithm
PPT
Ant colony optimization
PPTX
Sunflower optimization algorithm
PPT
Ant Colony Optimization - ACO
PPTX
ABC Algorithm.
PPTX
Intelligent traffic information and control system
PDF
Markov decision process
PDF
Reinforcement Learning / E-Book / Part 1
PPTX
Practical Swarm Optimization (PSO)
PPSX
Particle Swarm optimization
PPTX
Image Classification And Support Vector Machine
PPTX
Ant colony optimization
PPTX
Deep Reinforcement Learning
PDF
Differential evolution
PPTX
Shortest path algorithm
PPT
Ant Colony Optimization presentation
PPT
Introduction to Optimization.ppt
PPTX
Final project
PPTX
AI in Autonomous Vehicles
PPTX
Ant Colony Optimization (ACO)
Bat algorithm
Ant colony optimization
Sunflower optimization algorithm
Ant Colony Optimization - ACO
ABC Algorithm.
Intelligent traffic information and control system
Markov decision process
Reinforcement Learning / E-Book / Part 1
Practical Swarm Optimization (PSO)
Particle Swarm optimization
Image Classification And Support Vector Machine
Ant colony optimization
Deep Reinforcement Learning
Differential evolution
Shortest path algorithm
Ant Colony Optimization presentation
Introduction to Optimization.ppt
Final project
AI in Autonomous Vehicles
Ant Colony Optimization (ACO)
Ad

Similar to Grasshopper optimization algorithm (20)

PDF
Glowworm Swarm Optimisation
PDF
Glowworm Swarm Optimisation PPT
PDF
swarm pso and gray wolf Optimization.pdf
PPTX
Particle Swarm Optimization
PDF
Swarm intelligence and particle swarm optimization
PDF
Swarm intelligence and particle swarm optimization
PPTX
Particle swarm optimization
PDF
Improved Firefly Algorithm for Unconstrained Optimization Problems
PPT
Cs621 lect7-si-13aug07
PPT
cs621-lect7-SI-13aug07.ppt
PPTX
Bio-Inspired Techniques(Cat Swarm Optimization).pptx
PPTX
Firefly algorithm
PDF
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
PDF
Hybrid Data Clustering Approach Using K-Means and Flower Pollination Algorithm
PDF
HYBRID DATA CLUSTERING APPROACH USING K-MEANS AND FLOWER POLLINATION ALGORITHM
PDF
HYBRID DATA CLUSTERING APPROACH USING K-MEANS AND FLOWER POLLINATION ALGORITHM
PDF
M01117578
PDF
Firefly Algorithm for Unconstrained Optimization
PPT
Swarm intelligence algorithms
PPTX
Bio-inspired computing Algorithms.pptx
Glowworm Swarm Optimisation
Glowworm Swarm Optimisation PPT
swarm pso and gray wolf Optimization.pdf
Particle Swarm Optimization
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
Particle swarm optimization
Improved Firefly Algorithm for Unconstrained Optimization Problems
Cs621 lect7-si-13aug07
cs621-lect7-SI-13aug07.ppt
Bio-Inspired Techniques(Cat Swarm Optimization).pptx
Firefly algorithm
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
Hybrid Data Clustering Approach Using K-Means and Flower Pollination Algorithm
HYBRID DATA CLUSTERING APPROACH USING K-MEANS AND FLOWER POLLINATION ALGORITHM
HYBRID DATA CLUSTERING APPROACH USING K-MEANS AND FLOWER POLLINATION ALGORITHM
M01117578
Firefly Algorithm for Unconstrained Optimization
Swarm intelligence algorithms
Bio-inspired computing Algorithms.pptx
Ad

More from Ahmed Fouad Ali (20)

PPTX
Zebra Optimization Algorithm (ZOA)).pptx
PPTX
Variable neighborhood search (Meta-heuristics).pptx
PPTX
Tabu search algorithm (Meta-heuristics).pptx
PPTX
Simulated Annealing (Meta-heuristics).pptx
PPTX
Social Spider optimization (SSO ).pptx
PPTX
Partical swarm optimization (PSO).pptx
PPTX
Introduction to Latex symbols and commands
PPTX
Group Search Optimizer (GSO) (Population base algorithm)
PPTX
Grey Wolf Optimizer (GWO) (Swarm Intelligence)
PPTX
Gravitational Search Algorithm(GSA).pptx
PPTX
Flower pollination algorithm (Population based algorithm)
PPTX
Cuckoo Search Algorithm (CSA) (Swarm Intelligence)
PPTX
Backtracking Search Optimization Algorithm (BSA)
PPTX
Artificial Fish Swarm Algorithm (Swarm Intelligence)
PPTX
Artificial Bee Colony (ABC) (Swarm Intelligence)
PPTX
Ant Colony Optimization(ACO) (Swarm intelligence)pptx
PPTX
Reptile search algorithm (RSA) (Swarm intelligence)
PPTX
Manta Ray Optimization.pptx
PPTX
Harris hawks optimization
PPTX
Butterfly optimization algorithm
Zebra Optimization Algorithm (ZOA)).pptx
Variable neighborhood search (Meta-heuristics).pptx
Tabu search algorithm (Meta-heuristics).pptx
Simulated Annealing (Meta-heuristics).pptx
Social Spider optimization (SSO ).pptx
Partical swarm optimization (PSO).pptx
Introduction to Latex symbols and commands
Group Search Optimizer (GSO) (Population base algorithm)
Grey Wolf Optimizer (GWO) (Swarm Intelligence)
Gravitational Search Algorithm(GSA).pptx
Flower pollination algorithm (Population based algorithm)
Cuckoo Search Algorithm (CSA) (Swarm Intelligence)
Backtracking Search Optimization Algorithm (BSA)
Artificial Fish Swarm Algorithm (Swarm Intelligence)
Artificial Bee Colony (ABC) (Swarm Intelligence)
Ant Colony Optimization(ACO) (Swarm intelligence)pptx
Reptile search algorithm (RSA) (Swarm intelligence)
Manta Ray Optimization.pptx
Harris hawks optimization
Butterfly optimization algorithm

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PPT
Teaching material agriculture food technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Encapsulation theory and applications.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
Teaching material agriculture food technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Encapsulation theory and applications.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A Presentation on Artificial Intelligence
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Monthly Chronicles - July 2025

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.
  • 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