Week 5-7 PPT

advertisement
Swarm Intelligence
Content


Overview
Swarm Particle Optimization (PSO)
–

Example
Ant Colony Optimization (ACO)
Swarm Intelligence
Overview
Swarm Intelligence



Collective system capable of accomplishing
difficult tasks in dynamic and varied environments
without any external guidance or control and with
no central coordination
Achieving a collective performance which could
not normally be achieved by an individual acting
alone
Constituting a natural model particularly suited to
distributed problem solving
Swarm Intelligence
http://www.scs.carleton.ca/~arpwhite/courses/95590Y/notes/SI%20Lecture%203.pdf
Swarm Intelligence
Swarm Intelligence
Swarm Intelligence
Swarm Intelligence
Swarm Intelligence
Particle Swarm Optimization (PSO)
Basic Concept
The Inventors
Russell Eberhart
James Kennedy
electrical engineer
social-psychologist
Developed in 1995 by James Kennedy and
Russell Eberhart.
Particle Swarm Optimization (PSO)

PSO is a robust stochastic
optimization technique based
on the movement and
intelligence of swarms.

PSO applies the concept of
social interaction to problem
solving.
PSO Search Scheme


It uses a number of agents, i.e.,
particles, that constitute a swarm
moving around in the search space
looking for the best solution.
Each particle is treated as a point in
a N-dimensional space which adjusts
its “flying” according to its own flying
experience as well as the flying
experience of other particles.
Particle Flying Model

pbest  the best solution achieved so far by that particle.

gbest  the best value obtained so far by any particle in the
neighborhood of that particle.

The basic concept of PSO lies in
accelerating each particle
toward its pbest and the gbest
locations, with a random
weighted acceleration at each
time.
Particle Flying Model
v  w1d
k
pbest k
v
v
k
v
sk
 w2 d
k
gbest k
sk 1
d
k 1
d
pbest k
w1  c1  rand ()
w2  c2  rand ()
gbest k
gbest k
pbest k
Particle Flying Model

Each particle tries to modify
its position using the
v k  w1d pbest  w2 d gbest
following information:
k
–
the current positions,
–
the current velocities,
–
the distance between the
current position and pbest,
–
vk
vk
the distance between the
current position and the gbest.
v
sk
k
sk 1
d
k
11
d pbest
k
w1  c1  rand ()
w2  c2  rand ()
gbest k
gbest k
pbest k
*
vik 1  vik  vik
vik  c1  rand ()  ( pbestik  sik )  c2  rand ()  ( gbest k  sik )
PSO Algorithm
**
sik 1  sik  vik
For each particle
Initialize particle
END
Do
For each particle
Calculate fitness value
If the fitness value is better than the best fitness value (pbest) in history
set current value as the new pbest
End
Choose the particle with the best fitness value of all the particles as the gbest
For each particle
Calculate particle velocity according equation (*)
Update particle position according equation (**)
End
While maximum iterations or minimum error criteria is not attained
Swarm Intelligence
Particle Swarm Optimization (PSO)
Examples
Simulation  Initialization
Simulation  After 5 Generations
Simulation  After 10 Generations
Simulation  After 15 Generations
Simulation  After 20 Generations
Simulation  After 25 Generations
Simulation  After 100 Generations
Simulation  After 500 Generations
Summary
Iterations
gBest
0
416.245599
5
515.748796
850
"sample.dat"
800
750
700
10
759.404006
15
793.732019
650
600
550
20
834.813763
100
837.911535
500
450
400
500
837.965771
Optimun
837.9658
1
4
16
64
256
1024
4096
Download