SlideShare a Scribd company logo
1 of 16
Download to read offline
Cuckoo Search: An Introduction
Xin-She Yang
Middlesex University London
For details, please read my book:
Nature-Inspired Optimization Algorithms, Elsevier, (2014).
Matlab codes are downloadable from
https://uk.mathworks.com/matlabcentral/profile/authors/3659939-xs-yang
Xin-She Yang Book/Slides 1 / 16
Cuckoo Search Almost Everything is Optimization
Almost Everything is Optimization
Almost everything is optimization ... or needs optimization ...
Maximize efficiency, accuracy, profit, performance, sustainability, ...
Minimize costs, wastage, energy consumption, travel distance/time,
CO2 emission, impact on environment, ...
Mathematical Optimization
Objectives: maximize or minimize f(x) = [f1(x), f2(x), ..., fm(x)],
x = (x1, x2, ..., xD) ∈ RD
,
subject to multiple equality and/or inequality design constraints:
hi(x) = 0, (i = 1, 2, ..., M),
gj(x) ≤ 0, (j = 1, 2, ..., N).
In case of m = 1, it becomes a single-objective optimization problem.
Xin-She Yang Book/Slides 2 / 16
Cuckoo Search
Optimization problems can usually be very difficult to solve, especially large-scale,
nonlinear, multimodal problems.
In general, we can solve only 3 types of optimization problems:
Linear programming
Convex optimization
Problems that can be converted into the above two
Everything else seems difficult, especially for large-scale problems.
For example, combinatorial problems tend to be really hard – NP-hard!
Deep Learning
The objective in deep nets may be convex, but the domain is not convex and it’s a
high-dimensional problem.
Minimize E(w) =
1
n
n
i=1
ui(xi, w) − ¯yi
2
,
subject to various constraints.
Xin-She Yang Book/Slides 3 / 16
Cuckoo Search Key Components for Optimization
Key Components for Optimization
Optimization
Algorithm
Select
Solutions
Evaluate
Objectives
Handle
Constraints
Xin-She Yang Book/Slides 4 / 16
Optimization Techniques Optimization Techniques
Optimization Techniques
There are a wide spectrum of optimization techniques and tools.
Traditional techniques
Linear programming (LP) and mixed integer programming.
Convex optimization and quadratic programming.
Nonlinear programming: Newton’s method, trust-region method, interior
point method, ..., barrier Method, ... etc.
But most real-world problems are not linear or convex, thus traditional techniques
often struggle to cope, or simply do not work...
New Trends – Nature-Inspired Metaheuristic Approaches
Evolutionary algorithms (evolutionary strategy, genetic algorithms)
Swarm intelligence (e.g., ant colony optimization, particle swarm
optimization, firefly algorithm, cuckoo search, ...)
Stochastic, population-based, nature-inspired optimization algorithms
Xin-She Yang Book/Slides 5 / 16
The Essence of an Algorithm The Essence of an Algorithm
The Essence of an Algorithm
Essence of an Optimization Algorithm
To generate a better solution point x(t+1)
(a solution vector) from an existing
solution x(t)
. That is, x(t+1)
= A(x(t)
, α) where α is a set of parameters.
x(0)
x(1)
x(t)
?
x(t+1)
Population-based algorithms use multiple, interacting paths.
Different algorithms
Different ways for generating new solutions!
Xin-She Yang Book/Slides 6 / 16
The Essence of an Algorithm Main Problems with Traditional Algorithms
Main Problems with Traditional Algorithms
What’s Wrong with Traditional Algorithms?
Traditional algorithms are mostly local search, thus they cannot guarantee
global optimality (except for linear and convex optimization).
Results often depend on the initial starting points (except linear and convex
problems). Methods tend to be problem-specific (e.g., k-opt, branch and
bound).
Struggle to cope problems with discontinuity.
Nature-Inspired Optimization Algorithms
Heuristic or metaheuristic algorithms (e.g., ant colony optimization, particle
swarm optimization, firefly algorithm, bat algorithm, cuckoo search, differential
evolution, flower pollination algorithm, etc) tend to be a global optimizer so as to
Increase the probability of finding the global optimality (as a global optimizer)
Solve a wider class of problems (treating them as a black-box)
Draw inspiration from nature (e.g., swarm intelligence)
But they can be potentially more computationally expensive.
Xin-She Yang Book/Slides 7 / 16
The Essence of an Algorithm Cuckoo Search
Cuckoo Search
Cuckoo search (CS) was developed by Xin-She Yang and Suash Deb in 2009.
Cuckoo brood parasitism
59 cuckoo species (among 141 cuckoo species) engage the so-called obligate
reproduction parasitism strategy.
Cuckoos lay eggs in the nests of host birds (such as warblers) and let host birds
raise their chicks.
Eggs may be discovered/abandoned with a probability (pa ≈ 0.25).
Co-evolutionary arms race between cuckoo species and host species.
Cuckoo Behaviour (BBC Video)
Xin-She Yang Book/Slides 8 / 16
The Essence of an Algorithm
Cuckoos’ Behaviour and Idealization (Yang and Deb, 2009)
Each cuckoo lays one egg at a time and dumps it in a randomly chosen nest.
The best nests with high-quality eggs will be carried over to the next generations.
The number of available host nests is fixed, and the egg laid by a cuckoo is
discovered by the host bird with a probability pa ∈ (0, 1). In this case, the host bird
can either get rid of the egg or simply abandon the nest and build a completely new
nest elsewhere.
Nest (New location)
Nest (Host)
Search Domain
L´evy flight
Each egg/solution is replaced with a probability of pa
xt+1
i = xt
i + α L(s, λ).
Here, xi is the solution vector (or position of nest i) in the search space at iteration t,
and α is a scaling factor. L(s, λ) is the step size to be drawn from the L´evy distribution
with an exponent λ.
Xin-She Yang Book/Slides 9 / 16
The Essence of an Algorithm Cuckoo Search (CS) (Yang and Deb, 2009)
Cuckoo Search (CS) (Yang and Deb, 2009)
Two search mechanisms in CS: local random walks and global L´evy flights.
Local random walks:
xt+1
i = xt
i + s ⊗ H(pa − ) ⊗ (xt
j − xt
k).
[xi, xj, xk are 3 different solutions, H(u) is a Heaviside function, is a random
number drawn from a uniform distribution, and s is the step size.
Global random walks via L´evy flights:
xt+1
i = xt
i + αL(s, λ), L(s, λ) ∼
λΓ(λ) sin(πλ/2)
π
1
s1+λ
, (s s0).
Generation of new moves by L´evy flights, random walks and elitism.
The switch between these two search mechanisms is governed by the discovery
probability pa = 0.25.
Xin-She Yang Book/Slides 10 / 16
The Essence of an Algorithm Mathematical Foundation for Cuckoo Search
Mathematical Foundation for Cuckoo Search
Isotropic andom walks (diffusion) L´evy flights (superdiffusion)
Gaussian distribution L´evy distribution
p(s) =
1
σ
√
2π
exp −
(s − µ)2
2σ2
, L(s, λ) ∼
1
π
∞
0
cos(ts)e−αtλ
dt.
Typical paths of t = 50 consecutive steps of random walks
Diffusion distance: d(t) ∼
√
t d(t) ∼ t(3−λ)/2
(for 1 ≤ λ ≤ 2)
Xin-She Yang Book/Slides 11 / 16
The Essence of an Algorithm
Typical Parameter Values
Population size: n = 10 to 40 (up to 100 if necessary).
L´evy exponent: λ = 1.5.
α = O(L/100) to O(L/10) where L is the typical scale of the problem. Typically,
we can use α = 0.01 to 0.1 for function optimization.
Number of iterations tmax = 500 to 1000.
Pseudo-random step size (s) for L´evy flights
Quite tricky to generate, though Mantegna’s algorithm works well.
s =
U
|V |1/λ
, U ∼ N(0, σ2
), V ∼ N(0, 1),
where ‘∼’ means ‘to draw’ random numbers from the probability distribution on the
right-hand side. The variance σ2
is calculated by
σ2
=
Γ(1 + λ)
Γ((1 + λ)/2)
·
sin(πλ/2)
λ2(λ−1)/2
1/λ
,
where Γ(ν) is the standard Gamma function. For example, if λ = 1, we have σ2
= 1
since Γ(1 + λ) = 1, Γ((1 + λ)/2) = 1 and sin(π/2) = 1.
Xin-She Yang Book/Slides 12 / 16
The Essence of an Algorithm Cuckoo Search Pseudocode
Cuckoo Search Pseudocode
Algorithm 1: Cuckoo Search
Data: Objective functions f(x)
Result: Best or optimal solution
1 Initialization of parameters (n, pa, λ and α);
2 Generate initial population of n host nests xi;
3 while (t <MaxGeneration) or (stop criterion) do
4 Get a cuckoo randomly;
5 Generate a solution by L´evy flights;
6 Evaluate its solution quality or objective value fi;
7 Choose a nest among n (say, j) randomly;
8 if (fi < fj) then
9 Replace j by the new solution i;
10 end
11 A fraction (pa) of worse nests are abandoned;
12 New nests/solutions are built/generated;
13 Keep best solutions (or nests with quality solutions);
14 Rank the solutions and find the current best solution;
15 Update t ← t + 1;
16 end
Xin-She Yang Book/Slides 13 / 16
The Essence of an Algorithm CS is very efficient
CS is very efficient
Cuckoo Search Demo: Highly Efficient!
Rosenbrock (banana) function
f(x, y) = (1 − x)2
+ 100(y − x2
)2
, (x, y) ∈ R2
.
ln[1+f(x,y)]
=⇒
Cuckoo Search (Demo video at Youtube) [Please click to start]
Xin-She Yang Book/Slides 14 / 16
The Essence of an Algorithm Multi-objective Cuckoo Search (MOCS)
Multi-objective Cuckoo Search (MOCS)
For example, the so-called ZDT function with D = 30 dimensions
minimize f1(x) = x1, and f2(x) = g(x)h(x), x ∈ [0, 1]30
,
where
g(x) = 1 +
9
29
D=30
j=2
xj, h(x) = 1 −
f1
g
−
f1
g
sin(10πf1),
has a nonconvex Pareto front in the domain 0 ≤ xi ≤ 1 where i = 1, 2, ..., 30.
Cuckoo Search (Demo video at Youtube) [Please click to start]
Xin-She Yang Book/Slides 15 / 16
The Essence of an Algorithm Cuckoo Search (Demo Codes) and References
Cuckoo Search (Demo Codes) and References
CS Demo Codes
The standard CS demo in Matlab can be found at the Mathswork File Exchange
https://uk.mathworks.com/matlabcentral/fileexchange/74767-the-standard-cuckoo-search-cs
The multi-objective cuckoo search (MOCS) code is also available at
https://uk.mathworks.com/matlabcentral/fileexchange/74752-multiobjective-cuckoo-search-mocs
Some References
Xin-She Yang and Suash Deb, Cuckoo search via L´evy flights, In: Proceedings of the World Congress on
Nature & Biologically Inspired Computing (NaBIC 2009), IEEE Publications, pp.210-214 (2009).
Xin-She Yang and Suash Deb, Engineering optimisation by cuckoo search, Int. J. Mathematical
Modelling and Numerical Optimisation, vol. 1, no. 4, 330–343 (2010).
Xin-She Yang and Suash Deb, Multiobjective cuckoo search for design optimization, Computers &
Operations Research, vol. 40, no. 6, 1616–1624 (2013).
Xin-She Yang and Suash Deb, Cuckoo search: recent advances and applications, Neural Computing and
Applications, vol. 24, no. 1, 169–174 (2014).
Xin-She Yang, Cuckoo Search and Firefly Algorithm: Theory and Applications, Springer, (2013).
Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier Insights, (2014).
Xin-She Yang Book/Slides 16 / 16

More Related Content

What's hot

Simulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueSimulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueAUSTIN MOSES
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AIvikas dhakane
 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimizationmidhulavijayan
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationvk1dadhich
 
CNN Machine learning DeepLearning
CNN Machine learning DeepLearningCNN Machine learning DeepLearning
CNN Machine learning DeepLearningAbhishek Sharma
 
Recursive Neural Networks
Recursive Neural NetworksRecursive Neural Networks
Recursive Neural NetworksSangwoo Mo
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural NetworksDatabricks
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo searchNepalAdz
 
Soft Computing
Soft ComputingSoft Computing
Soft ComputingMANISH T I
 
Neural networks and fuzzy logic
Neural networks and fuzzy logicNeural networks and fuzzy logic
Neural networks and fuzzy logicSaurav Prasad
 
Bayesian networks in AI
Bayesian networks in AIBayesian networks in AI
Bayesian networks in AIByoung-Hee Kim
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms Syed Ahmed
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimizationAhmed Fouad Ali
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithmsMinakshi Atre
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmgarima931
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentationPartha Das
 

What's hot (20)

Tabu search
Tabu searchTabu search
Tabu search
 
ant colony optimization
ant colony optimizationant colony optimization
ant colony optimization
 
Simulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueSimulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation Technique
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
CNN Machine learning DeepLearning
CNN Machine learning DeepLearningCNN Machine learning DeepLearning
CNN Machine learning DeepLearning
 
Recursive Neural Networks
Recursive Neural NetworksRecursive Neural Networks
Recursive Neural Networks
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural Networks
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Soft Computing
Soft ComputingSoft Computing
Soft Computing
 
Neural networks and fuzzy logic
Neural networks and fuzzy logicNeural networks and fuzzy logic
Neural networks and fuzzy logic
 
Bayesian networks in AI
Bayesian networks in AIBayesian networks in AI
Bayesian networks in AI
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithms
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentation
 

Similar to Cuckoo Search Algorithm: An Introduction

Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisXin-She Yang
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsMustafa Salam
 
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
 
block-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfblock-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfJunghyun Lee
 
Deep Learning for Cyber Security
Deep Learning for Cyber SecurityDeep Learning for Cyber Security
Deep Learning for Cyber SecurityAltoros
 
Can we estimate a constant?
Can we estimate a constant?Can we estimate a constant?
Can we estimate a constant?Christian Robert
 
IVR - Chapter 1 - Introduction
IVR - Chapter 1 - IntroductionIVR - Chapter 1 - Introduction
IVR - Chapter 1 - IntroductionCharles Deledalle
 
Test Problems in Optimization
Test Problems in OptimizationTest Problems in Optimization
Test Problems in OptimizationXin-She Yang
 
05 history of cv a machine learning (theory) perspective on computer vision
05  history of cv a machine learning (theory) perspective on computer vision05  history of cv a machine learning (theory) perspective on computer vision
05 history of cv a machine learning (theory) perspective on computer visionzukun
 
Introduction
IntroductionIntroduction
Introductionbutest
 
Introduction to search and optimisation for the design theorist
Introduction to search and optimisation for the design theoristIntroduction to search and optimisation for the design theorist
Introduction to search and optimisation for the design theoristAkin Osman Kazakci
 
Probability distribution for Dummies
Probability distribution for DummiesProbability distribution for Dummies
Probability distribution for DummiesBalaji P
 
Statement of stochastic programming problems
Statement of stochastic programming problemsStatement of stochastic programming problems
Statement of stochastic programming problemsSSA KPI
 
20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrison20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrisonComputer Science Club
 
Analysis of Nature-Inspried Optimization Algorithms
Analysis of Nature-Inspried Optimization AlgorithmsAnalysis of Nature-Inspried Optimization Algorithms
Analysis of Nature-Inspried Optimization AlgorithmsXin-She Yang
 
Recursion - Computer Algorithms
Recursion - Computer AlgorithmsRecursion - Computer Algorithms
Recursion - Computer AlgorithmsAlaa Al-Makhzoomy
 
從 VAE 走向深度學習新理論
從 VAE 走向深度學習新理論從 VAE 走向深度學習新理論
從 VAE 走向深度學習新理論岳華 杜
 

Similar to Cuckoo Search Algorithm: An Introduction (20)

Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical Analysis
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
 
Teknik Simulasi
Teknik SimulasiTeknik Simulasi
Teknik Simulasi
 
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...
 
block-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfblock-mdp-masters-defense.pdf
block-mdp-masters-defense.pdf
 
Deep Learning for Cyber Security
Deep Learning for Cyber SecurityDeep Learning for Cyber Security
Deep Learning for Cyber Security
 
Can we estimate a constant?
Can we estimate a constant?Can we estimate a constant?
Can we estimate a constant?
 
IVR - Chapter 1 - Introduction
IVR - Chapter 1 - IntroductionIVR - Chapter 1 - Introduction
IVR - Chapter 1 - Introduction
 
Test Problems in Optimization
Test Problems in OptimizationTest Problems in Optimization
Test Problems in Optimization
 
05 history of cv a machine learning (theory) perspective on computer vision
05  history of cv a machine learning (theory) perspective on computer vision05  history of cv a machine learning (theory) perspective on computer vision
05 history of cv a machine learning (theory) perspective on computer vision
 
Introduction
IntroductionIntroduction
Introduction
 
Introduction to search and optimisation for the design theorist
Introduction to search and optimisation for the design theoristIntroduction to search and optimisation for the design theorist
Introduction to search and optimisation for the design theorist
 
Probability distribution for Dummies
Probability distribution for DummiesProbability distribution for Dummies
Probability distribution for Dummies
 
Fol
FolFol
Fol
 
Statement of stochastic programming problems
Statement of stochastic programming problemsStatement of stochastic programming problems
Statement of stochastic programming problems
 
20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrison20130928 automated theorem_proving_harrison
20130928 automated theorem_proving_harrison
 
Analysis of Nature-Inspried Optimization Algorithms
Analysis of Nature-Inspried Optimization AlgorithmsAnalysis of Nature-Inspried Optimization Algorithms
Analysis of Nature-Inspried Optimization Algorithms
 
Recursion - Computer Algorithms
Recursion - Computer AlgorithmsRecursion - Computer Algorithms
Recursion - Computer Algorithms
 
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
 
從 VAE 走向深度學習新理論
從 VAE 走向深度學習新理論從 VAE 走向深度學習新理論
從 VAE 走向深度學習新理論
 

More from Xin-She Yang

A Biologically Inspired Network Design Model
A Biologically Inspired Network Design ModelA Biologically Inspired Network Design Model
A Biologically Inspired Network Design ModelXin-She Yang
 
Multiobjective Bat Algorithm (demo only)
Multiobjective Bat Algorithm (demo only)Multiobjective Bat Algorithm (demo only)
Multiobjective Bat Algorithm (demo only)Xin-She Yang
 
Bat algorithm (demo)
Bat algorithm (demo)Bat algorithm (demo)
Bat algorithm (demo)Xin-She Yang
 
Flower Pollination Algorithm (matlab code)
Flower Pollination Algorithm (matlab code)Flower Pollination Algorithm (matlab code)
Flower Pollination Algorithm (matlab code)Xin-She Yang
 
Nature-Inspired Metaheuristic Algorithms
Nature-Inspired Metaheuristic AlgorithmsNature-Inspired Metaheuristic Algorithms
Nature-Inspired Metaheuristic AlgorithmsXin-She Yang
 
Metaheuristics and Optimiztion in Civil Engineering
Metaheuristics and Optimiztion in Civil EngineeringMetaheuristics and Optimiztion in Civil Engineering
Metaheuristics and Optimiztion in Civil EngineeringXin-She Yang
 
A Biologically Inspired Network Design Model
A Biologically Inspired Network Design ModelA Biologically Inspired Network Design Model
A Biologically Inspired Network Design ModelXin-She Yang
 
Introduction to Computational Mathematics (2nd Edition, 2015)
Introduction to Computational Mathematics (2nd Edition, 2015)Introduction to Computational Mathematics (2nd Edition, 2015)
Introduction to Computational Mathematics (2nd Edition, 2015)Xin-She Yang
 
Memetic Firefly algorithm for combinatorial optimization
Memetic Firefly algorithm for combinatorial optimizationMemetic Firefly algorithm for combinatorial optimization
Memetic Firefly algorithm for combinatorial optimizationXin-She Yang
 
Two-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential EvolutionTwo-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential EvolutionXin-She Yang
 
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...Xin-She Yang
 
Bat Algorithm for Multi-objective Optimisation
Bat Algorithm for Multi-objective OptimisationBat Algorithm for Multi-objective Optimisation
Bat Algorithm for Multi-objective OptimisationXin-She Yang
 
Are motorways rational from slime mould's point of view?
Are motorways rational from slime mould's point of view?Are motorways rational from slime mould's point of view?
Are motorways rational from slime mould's point of view?Xin-She Yang
 
Review of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk AlgorithmReview of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk AlgorithmXin-She Yang
 
Engineering Optimisation by Cuckoo Search
Engineering Optimisation by Cuckoo SearchEngineering Optimisation by Cuckoo Search
Engineering Optimisation by Cuckoo SearchXin-She Yang
 
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmXin-She Yang
 
Fractals in Small-World Networks With Time Delay
Fractals in Small-World Networks With Time DelayFractals in Small-World Networks With Time Delay
Fractals in Small-World Networks With Time DelayXin-She Yang
 
Chaos in Small-World Networks
Chaos in Small-World NetworksChaos in Small-World Networks
Chaos in Small-World NetworksXin-She Yang
 
Cellular Automata, PDEs and Pattern Formation
Cellular Automata, PDEs and Pattern FormationCellular Automata, PDEs and Pattern Formation
Cellular Automata, PDEs and Pattern FormationXin-She Yang
 

More from Xin-She Yang (20)

A Biologically Inspired Network Design Model
A Biologically Inspired Network Design ModelA Biologically Inspired Network Design Model
A Biologically Inspired Network Design Model
 
Multiobjective Bat Algorithm (demo only)
Multiobjective Bat Algorithm (demo only)Multiobjective Bat Algorithm (demo only)
Multiobjective Bat Algorithm (demo only)
 
Bat algorithm (demo)
Bat algorithm (demo)Bat algorithm (demo)
Bat algorithm (demo)
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Flower Pollination Algorithm (matlab code)
Flower Pollination Algorithm (matlab code)Flower Pollination Algorithm (matlab code)
Flower Pollination Algorithm (matlab code)
 
Nature-Inspired Metaheuristic Algorithms
Nature-Inspired Metaheuristic AlgorithmsNature-Inspired Metaheuristic Algorithms
Nature-Inspired Metaheuristic Algorithms
 
Metaheuristics and Optimiztion in Civil Engineering
Metaheuristics and Optimiztion in Civil EngineeringMetaheuristics and Optimiztion in Civil Engineering
Metaheuristics and Optimiztion in Civil Engineering
 
A Biologically Inspired Network Design Model
A Biologically Inspired Network Design ModelA Biologically Inspired Network Design Model
A Biologically Inspired Network Design Model
 
Introduction to Computational Mathematics (2nd Edition, 2015)
Introduction to Computational Mathematics (2nd Edition, 2015)Introduction to Computational Mathematics (2nd Edition, 2015)
Introduction to Computational Mathematics (2nd Edition, 2015)
 
Memetic Firefly algorithm for combinatorial optimization
Memetic Firefly algorithm for combinatorial optimizationMemetic Firefly algorithm for combinatorial optimization
Memetic Firefly algorithm for combinatorial optimization
 
Two-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential EvolutionTwo-Stage Eagle Strategy with Differential Evolution
Two-Stage Eagle Strategy with Differential Evolution
 
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
 
Bat Algorithm for Multi-objective Optimisation
Bat Algorithm for Multi-objective OptimisationBat Algorithm for Multi-objective Optimisation
Bat Algorithm for Multi-objective Optimisation
 
Are motorways rational from slime mould's point of view?
Are motorways rational from slime mould's point of view?Are motorways rational from slime mould's point of view?
Are motorways rational from slime mould's point of view?
 
Review of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk AlgorithmReview of Metaheuristics and Generalized Evolutionary Walk Algorithm
Review of Metaheuristics and Generalized Evolutionary Walk Algorithm
 
Engineering Optimisation by Cuckoo Search
Engineering Optimisation by Cuckoo SearchEngineering Optimisation by Cuckoo Search
Engineering Optimisation by Cuckoo Search
 
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired Algorithm
 
Fractals in Small-World Networks With Time Delay
Fractals in Small-World Networks With Time DelayFractals in Small-World Networks With Time Delay
Fractals in Small-World Networks With Time Delay
 
Chaos in Small-World Networks
Chaos in Small-World NetworksChaos in Small-World Networks
Chaos in Small-World Networks
 
Cellular Automata, PDEs and Pattern Formation
Cellular Automata, PDEs and Pattern FormationCellular Automata, PDEs and Pattern Formation
Cellular Automata, PDEs and Pattern Formation
 

Recently uploaded

Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
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
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 

Recently uploaded (20)

Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
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...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 

Cuckoo Search Algorithm: An Introduction

  • 1. Cuckoo Search: An Introduction Xin-She Yang Middlesex University London For details, please read my book: Nature-Inspired Optimization Algorithms, Elsevier, (2014). Matlab codes are downloadable from https://uk.mathworks.com/matlabcentral/profile/authors/3659939-xs-yang Xin-She Yang Book/Slides 1 / 16
  • 2. Cuckoo Search Almost Everything is Optimization Almost Everything is Optimization Almost everything is optimization ... or needs optimization ... Maximize efficiency, accuracy, profit, performance, sustainability, ... Minimize costs, wastage, energy consumption, travel distance/time, CO2 emission, impact on environment, ... Mathematical Optimization Objectives: maximize or minimize f(x) = [f1(x), f2(x), ..., fm(x)], x = (x1, x2, ..., xD) ∈ RD , subject to multiple equality and/or inequality design constraints: hi(x) = 0, (i = 1, 2, ..., M), gj(x) ≤ 0, (j = 1, 2, ..., N). In case of m = 1, it becomes a single-objective optimization problem. Xin-She Yang Book/Slides 2 / 16
  • 3. Cuckoo Search Optimization problems can usually be very difficult to solve, especially large-scale, nonlinear, multimodal problems. In general, we can solve only 3 types of optimization problems: Linear programming Convex optimization Problems that can be converted into the above two Everything else seems difficult, especially for large-scale problems. For example, combinatorial problems tend to be really hard – NP-hard! Deep Learning The objective in deep nets may be convex, but the domain is not convex and it’s a high-dimensional problem. Minimize E(w) = 1 n n i=1 ui(xi, w) − ¯yi 2 , subject to various constraints. Xin-She Yang Book/Slides 3 / 16
  • 4. Cuckoo Search Key Components for Optimization Key Components for Optimization Optimization Algorithm Select Solutions Evaluate Objectives Handle Constraints Xin-She Yang Book/Slides 4 / 16
  • 5. Optimization Techniques Optimization Techniques Optimization Techniques There are a wide spectrum of optimization techniques and tools. Traditional techniques Linear programming (LP) and mixed integer programming. Convex optimization and quadratic programming. Nonlinear programming: Newton’s method, trust-region method, interior point method, ..., barrier Method, ... etc. But most real-world problems are not linear or convex, thus traditional techniques often struggle to cope, or simply do not work... New Trends – Nature-Inspired Metaheuristic Approaches Evolutionary algorithms (evolutionary strategy, genetic algorithms) Swarm intelligence (e.g., ant colony optimization, particle swarm optimization, firefly algorithm, cuckoo search, ...) Stochastic, population-based, nature-inspired optimization algorithms Xin-She Yang Book/Slides 5 / 16
  • 6. The Essence of an Algorithm The Essence of an Algorithm The Essence of an Algorithm Essence of an Optimization Algorithm To generate a better solution point x(t+1) (a solution vector) from an existing solution x(t) . That is, x(t+1) = A(x(t) , α) where α is a set of parameters. x(0) x(1) x(t) ? x(t+1) Population-based algorithms use multiple, interacting paths. Different algorithms Different ways for generating new solutions! Xin-She Yang Book/Slides 6 / 16
  • 7. The Essence of an Algorithm Main Problems with Traditional Algorithms Main Problems with Traditional Algorithms What’s Wrong with Traditional Algorithms? Traditional algorithms are mostly local search, thus they cannot guarantee global optimality (except for linear and convex optimization). Results often depend on the initial starting points (except linear and convex problems). Methods tend to be problem-specific (e.g., k-opt, branch and bound). Struggle to cope problems with discontinuity. Nature-Inspired Optimization Algorithms Heuristic or metaheuristic algorithms (e.g., ant colony optimization, particle swarm optimization, firefly algorithm, bat algorithm, cuckoo search, differential evolution, flower pollination algorithm, etc) tend to be a global optimizer so as to Increase the probability of finding the global optimality (as a global optimizer) Solve a wider class of problems (treating them as a black-box) Draw inspiration from nature (e.g., swarm intelligence) But they can be potentially more computationally expensive. Xin-She Yang Book/Slides 7 / 16
  • 8. The Essence of an Algorithm Cuckoo Search Cuckoo Search Cuckoo search (CS) was developed by Xin-She Yang and Suash Deb in 2009. Cuckoo brood parasitism 59 cuckoo species (among 141 cuckoo species) engage the so-called obligate reproduction parasitism strategy. Cuckoos lay eggs in the nests of host birds (such as warblers) and let host birds raise their chicks. Eggs may be discovered/abandoned with a probability (pa ≈ 0.25). Co-evolutionary arms race between cuckoo species and host species. Cuckoo Behaviour (BBC Video) Xin-She Yang Book/Slides 8 / 16
  • 9. The Essence of an Algorithm Cuckoos’ Behaviour and Idealization (Yang and Deb, 2009) Each cuckoo lays one egg at a time and dumps it in a randomly chosen nest. The best nests with high-quality eggs will be carried over to the next generations. The number of available host nests is fixed, and the egg laid by a cuckoo is discovered by the host bird with a probability pa ∈ (0, 1). In this case, the host bird can either get rid of the egg or simply abandon the nest and build a completely new nest elsewhere. Nest (New location) Nest (Host) Search Domain L´evy flight Each egg/solution is replaced with a probability of pa xt+1 i = xt i + α L(s, λ). Here, xi is the solution vector (or position of nest i) in the search space at iteration t, and α is a scaling factor. L(s, λ) is the step size to be drawn from the L´evy distribution with an exponent λ. Xin-She Yang Book/Slides 9 / 16
  • 10. The Essence of an Algorithm Cuckoo Search (CS) (Yang and Deb, 2009) Cuckoo Search (CS) (Yang and Deb, 2009) Two search mechanisms in CS: local random walks and global L´evy flights. Local random walks: xt+1 i = xt i + s ⊗ H(pa − ) ⊗ (xt j − xt k). [xi, xj, xk are 3 different solutions, H(u) is a Heaviside function, is a random number drawn from a uniform distribution, and s is the step size. Global random walks via L´evy flights: xt+1 i = xt i + αL(s, λ), L(s, λ) ∼ λΓ(λ) sin(πλ/2) π 1 s1+λ , (s s0). Generation of new moves by L´evy flights, random walks and elitism. The switch between these two search mechanisms is governed by the discovery probability pa = 0.25. Xin-She Yang Book/Slides 10 / 16
  • 11. The Essence of an Algorithm Mathematical Foundation for Cuckoo Search Mathematical Foundation for Cuckoo Search Isotropic andom walks (diffusion) L´evy flights (superdiffusion) Gaussian distribution L´evy distribution p(s) = 1 σ √ 2π exp − (s − µ)2 2σ2 , L(s, λ) ∼ 1 π ∞ 0 cos(ts)e−αtλ dt. Typical paths of t = 50 consecutive steps of random walks Diffusion distance: d(t) ∼ √ t d(t) ∼ t(3−λ)/2 (for 1 ≤ λ ≤ 2) Xin-She Yang Book/Slides 11 / 16
  • 12. The Essence of an Algorithm Typical Parameter Values Population size: n = 10 to 40 (up to 100 if necessary). L´evy exponent: λ = 1.5. α = O(L/100) to O(L/10) where L is the typical scale of the problem. Typically, we can use α = 0.01 to 0.1 for function optimization. Number of iterations tmax = 500 to 1000. Pseudo-random step size (s) for L´evy flights Quite tricky to generate, though Mantegna’s algorithm works well. s = U |V |1/λ , U ∼ N(0, σ2 ), V ∼ N(0, 1), where ‘∼’ means ‘to draw’ random numbers from the probability distribution on the right-hand side. The variance σ2 is calculated by σ2 = Γ(1 + λ) Γ((1 + λ)/2) · sin(πλ/2) λ2(λ−1)/2 1/λ , where Γ(ν) is the standard Gamma function. For example, if λ = 1, we have σ2 = 1 since Γ(1 + λ) = 1, Γ((1 + λ)/2) = 1 and sin(π/2) = 1. Xin-She Yang Book/Slides 12 / 16
  • 13. The Essence of an Algorithm Cuckoo Search Pseudocode Cuckoo Search Pseudocode Algorithm 1: Cuckoo Search Data: Objective functions f(x) Result: Best or optimal solution 1 Initialization of parameters (n, pa, λ and α); 2 Generate initial population of n host nests xi; 3 while (t <MaxGeneration) or (stop criterion) do 4 Get a cuckoo randomly; 5 Generate a solution by L´evy flights; 6 Evaluate its solution quality or objective value fi; 7 Choose a nest among n (say, j) randomly; 8 if (fi < fj) then 9 Replace j by the new solution i; 10 end 11 A fraction (pa) of worse nests are abandoned; 12 New nests/solutions are built/generated; 13 Keep best solutions (or nests with quality solutions); 14 Rank the solutions and find the current best solution; 15 Update t ← t + 1; 16 end Xin-She Yang Book/Slides 13 / 16
  • 14. The Essence of an Algorithm CS is very efficient CS is very efficient Cuckoo Search Demo: Highly Efficient! Rosenbrock (banana) function f(x, y) = (1 − x)2 + 100(y − x2 )2 , (x, y) ∈ R2 . ln[1+f(x,y)] =⇒ Cuckoo Search (Demo video at Youtube) [Please click to start] Xin-She Yang Book/Slides 14 / 16
  • 15. The Essence of an Algorithm Multi-objective Cuckoo Search (MOCS) Multi-objective Cuckoo Search (MOCS) For example, the so-called ZDT function with D = 30 dimensions minimize f1(x) = x1, and f2(x) = g(x)h(x), x ∈ [0, 1]30 , where g(x) = 1 + 9 29 D=30 j=2 xj, h(x) = 1 − f1 g − f1 g sin(10πf1), has a nonconvex Pareto front in the domain 0 ≤ xi ≤ 1 where i = 1, 2, ..., 30. Cuckoo Search (Demo video at Youtube) [Please click to start] Xin-She Yang Book/Slides 15 / 16
  • 16. The Essence of an Algorithm Cuckoo Search (Demo Codes) and References Cuckoo Search (Demo Codes) and References CS Demo Codes The standard CS demo in Matlab can be found at the Mathswork File Exchange https://uk.mathworks.com/matlabcentral/fileexchange/74767-the-standard-cuckoo-search-cs The multi-objective cuckoo search (MOCS) code is also available at https://uk.mathworks.com/matlabcentral/fileexchange/74752-multiobjective-cuckoo-search-mocs Some References Xin-She Yang and Suash Deb, Cuckoo search via L´evy flights, In: Proceedings of the World Congress on Nature & Biologically Inspired Computing (NaBIC 2009), IEEE Publications, pp.210-214 (2009). Xin-She Yang and Suash Deb, Engineering optimisation by cuckoo search, Int. J. Mathematical Modelling and Numerical Optimisation, vol. 1, no. 4, 330–343 (2010). Xin-She Yang and Suash Deb, Multiobjective cuckoo search for design optimization, Computers & Operations Research, vol. 40, no. 6, 1616–1624 (2013). Xin-She Yang and Suash Deb, Cuckoo search: recent advances and applications, Neural Computing and Applications, vol. 24, no. 1, 169–174 (2014). Xin-She Yang, Cuckoo Search and Firefly Algorithm: Theory and Applications, Springer, (2013). Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier Insights, (2014). Xin-She Yang Book/Slides 16 / 16