Presentation is loading. Please wait.

Presentation is loading. Please wait.

Particle Swarm Optimization (PSO) Algorithm. Swarming – The Definition aggregation of similar animals, generally cruising in the same directionaggregation.

Similar presentations


Presentation on theme: "Particle Swarm Optimization (PSO) Algorithm. Swarming – The Definition aggregation of similar animals, generally cruising in the same directionaggregation."— Presentation transcript:

1 Particle Swarm Optimization (PSO) Algorithm

2 Swarming – The Definition aggregation of similar animals, generally cruising in the same directionaggregation of similar animals, generally cruising in the same direction Termites swarm to build coloniesTermites swarm to build colonies Birds swarm to find foodBirds swarm to find food Bees swarm to reproduceBees swarm to reproduce

3 Why do animals swarm? To forage betterTo forage better To migrateTo migrate As a defense against predatorsAs a defense against predators Social Insects have survived for millions of years.Social Insects have survived for millions of years.

4 Swarming is Powerful Swarms can achieve things that an individual cannotSwarms can achieve things that an individual cannot

5 Swarming – Example Bird FlockingBird Flocking “Boids” model was proposed by Reynolds“Boids” model was proposed by Reynolds –Boids = Bird-oids (bird like) Only three simple rulesOnly three simple rules

6

7 Collision Avoidance Rule 1: Avoid Collision with neighboring birdsRule 1: Avoid Collision with neighboring birds

8 Velocity Matching Rule 2: Match the velocity of neighboring birdsRule 2: Match the velocity of neighboring birds

9 Flock Centering Rule 3: Stay near neighboring birdsRule 3: Stay near neighboring birds

10 Swarming - Characteristics Simple rules for each individualSimple rules for each individual No central controlNo central control –Decentralized and hence robust EmergentEmergent –Performs complex functions

11 Learn from insects Computer Systems are getting complicatedComputer Systems are getting complicated Hard to have a master controlHard to have a master control Swarm intelligence systems are:Swarm intelligence systems are: –Robust –Relatively simple

12 Swarm Intelligence - Definition “any attempt to design algorithms or distributed problem-solving devices inspired by the collective behavior of social insect colonies and other animal societies” [Bonabeau, Dorigo, Theraulaz: Swarm Intelligence]“any attempt to design algorithms or distributed problem-solving devices inspired by the collective behavior of social insect colonies and other animal societies” [Bonabeau, Dorigo, Theraulaz: Swarm Intelligence] Solves optimization problemsSolves optimization problems

13 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. It was developed in 1995 by James Kennedy (social- psychologist) and Russell Eberhart (electrical engineer). It uses a number of agents (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.

14 Each particle keeps track of its coordinates in the solution space which are associated with the best solution (fitness) that has achieved so far by that particle. This value is called personal best, pbest. Another best value that is tracked by the PSO is the best value obtained so far by any particle in the neighborhood of that particle. This value is called gbest. The basic concept of PSO lies in accelerating each particle toward its pbest and the gbest locations, with a random weighted accelaration at each time step as shown in Fig.1 Particle Swarm Optimization (PSO)

15 Fig.1 Concept of modification of a searching point by PSO s k : current searching point. s k+1 : modified searching point. v k : current velocity. v k+1 : modified velocity. v pbest : velocity based on pbest. v gbest : velocity based on gbest Particle Swarm Optimization (PSO) x y

16 Each particle tries to modify its position using the following information:  the current positions,  the current velocities,  the distance between the current position and pbest,  the distance between the current position and the gbest. The modification of the particle’s position can be mathematically modeled according the following equation : V i k+1 = wV i k +c 1 rand 1 (…) x (pbest i -s i k ) + c 2 rand 2 (…) x (gbest-s i k ) ….. (1) where, v i k : velocity of agent i at iteration k, w: weighting function, c j : weighting factor, rand : uniformly distributed random number between 0 and 1, s i k : current position of agent i at iteration k, pbest i : pbest of agent i, gbest: gbest of the group.

17 The following weighting function is usually utilized in (1) w = wMax-[(wMax-wMin) x iter]/maxIter (2) where wMax= initial weight, wMin = final weight, maxIter = maximum iteration number, iter = current iteration number. s i k+1 = s i k + V i k+1 (3) Particle Swarm Optimization (PSO)

18 Comments on the Inertial weight factor: A large inertia weight (w) facilitates a global search while a small inertia weight facilitates a local search. A large inertia weight (w) facilitates a global search while a small inertia weight facilitates a local search. By linearly decreasing the inertia weight from a relatively large value to a small value through the course of the PSO run gives the best PSO performance compared with fixed inertia weight settings. Larger w ----------- greater global search ability Smaller w ------------ greater local search ability. Particle Swarm Optimization (PSO)

19 Flow chart depicting the General PSO Algorithm: Start Initialize particles with random position and velocity vectors. For each particle’s position (p) evaluate fitness If fitness(p) better than fitness(pbest) then pbest= p Loop until all particles exhaust Set best of pBests as gBest Update particles velocity (eq. 1) and position (eq. 3) Loop until max iter Stop: giving gBest, optimal solution.


Download ppt "Particle Swarm Optimization (PSO) Algorithm. Swarming – The Definition aggregation of similar animals, generally cruising in the same directionaggregation."

Similar presentations


Ads by Google