0% found this document useful (0 votes)
42 views13 pages

SCS5107 Computational Intelligence Unit III Particle Swarm Optimization (PSO)

PSO is an optimization technique inspired by swarm intelligence where potential solutions, called particles, move through the problem space based on their own experience and the experience of neighboring particles. Each particle keeps track of its best position and the best position of its neighbors, updating its velocity and position based on these values to move closer to potentially better solutions over time. The algorithm was developed in 1995 and uses concepts like personal best and global best to guide the movement of particles toward optimization of a problem.

Uploaded by

Ritesh Chaubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views13 pages

SCS5107 Computational Intelligence Unit III Particle Swarm Optimization (PSO)

PSO is an optimization technique inspired by swarm intelligence where potential solutions, called particles, move through the problem space based on their own experience and the experience of neighboring particles. Each particle keeps track of its best position and the best position of its neighbors, updating its velocity and position based on these values to move closer to potentially better solutions over time. The algorithm was developed in 1995 and uses concepts like personal best and global best to guide the movement of particles toward optimization of a problem.

Uploaded by

Ritesh Chaubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

SCS5107 Computational Intelligence Unit III

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.

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

sk+1
vk
vk+1 vgbest
vpbest
sk

Fig.1 Concept of modification of a searching point by PSO


sk : current searching point.

sk+1: modified searching point.

vk: current velocity.

vk+1: modified velocity.

vpbest : velocity based on pbest.

vgbest : velocity based on gbest

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

Vik+1 = wVik +c1 rand1(…) x (pbesti-sik) + c2 rand2(…) x (gbest-sik) ….. (1)

where, vik :velocity of agent i at iteration k,


w: weighting function,
cj : weighting factor,
rand : uniformly distributed random number between 0 and 1,
sik : current position of agent i at iteration k,
pbesti : pbest of agent i,
gbest: gbest of the group.

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 iter
iteration number,

iter = current iteration number.

sik+1 = sik + Vik+1 (3)

Comments on the Inertial weight factor:

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.

Flow chart depicting the General PSO Algorithm:


PSO Algorithm

[x*] = PSO()

P = Particle_Initialization();

For i=1 to it_max

For each particle p in P do

fp = f(p);

If fp is better than f(pBest)

pBest = p;

end

end
gBest = best p in P;

For each particle p in P do

v = v + c1*rand*(pBest – p) + c2*rand*(gBest – p);

p = p + v;
end
end
5. Update Particles Velocity

6.Move particles to the new position

7. Go to step 2 until stopping criteria is satisfied

Ant Algorithms

• Ants are practically blind but they still manage to find their way to and from food. How
do they do it? These observations inspired a new type of algorithm called ant algorithms
(or ant systems). These algorithms are very new (Dorigo, 1996) and is still very much a
research area. Ant systems are a population based approach. In this rrespect
espect it is similar to
genetic algorithms
There is a population of ants, with each ant finding a solution and then communicating
with the other ants.

We are interested in exploring the search space, rather than simply plotting a route

We need to allow the ants to explore paths and follow the best paths with some
probability in proportion to the intensity of the pheromone trail

We do not want them simply to follow the route with the highest amount of pheromone
on it, else our search will quickly settle on a sub-optimal (and probably very sub-optimal)
solution.

Stigmergy is:

indirect communication via interaction with the environment [Gassé, 59]

• A problem gets solved bit by bit ..

• Individuals communicate with each other in the above way, affecting what
each other does on the task.

E.g. sorting things into piles, as we did in the Introductory Swarm Intelligence lecture

• Individuals leave markers or messages – these don’t solve the problem in


themselves, but they affect other individuals in a way that helps them
solve the problem …

• E.g. as we will see, this is how ants find shortest paths.

Pheromone Trails

Individual ants lay pheromone trails while travelling from the nest, to the nest or
possibly in both directions.

The pheromone trail gradually evaporates over time.

But pheromone trail strength accumulate with multiple ants using path.
Ant Colony Optimisation Algorithms: Basic Ideas
Ants are agents that:

Move along between nodes in a graph.They choose where to go based on pheromone strength
(and maybe other things).An An ant’s path represents a specific candidate solution.When an ant has
finished a solution, pheromone is laid on its path, according to quality of solution.This
pheromone trail affects
cts behaviour of other ants by `stigmergy’ …

The transition rule


 [τ ij (t )]α [ηij ]β
 if j ∈ allowed k
pijk (t ) =  ∑ [τ ik (t )] [ηik ]
α β

k∈allowed k

0 otherwise

ACS (Pheromone update)

τ ij (t + 1) = (1 − ρ )τ ij (t ) + ρ∆τ ijbest (t )
Artificial Bee Colony
Bonabeau has defined swarm intelligence as

“any attempt to design algorithms or distributed problem-solving devices inspired by the


collective behaviour of social insect colonies and other animal societies” [1]

• Term swarm in general refer to any restrained collection of interacting agents or


individuals

• Two fundamental concepts self-organization and division of labour, are necessary and
sufficient properties to obtain swarm intelligent behaviour

• Self-organization : can be defined as a set of dynamical mechanisms that establish basic


rules for interactions between the components of the system. The rules ensure that the
interactions are executed on the basis of purely local information without any relation to
the global pattern.

• Bonabeau et al. has characterized four basic properties on which self organization relies:

– Positive feedback

– Negative feedback,

– Fluctuations and

– Multiple interactions

• Division of Labor: In swarm behavior different tasks are performed simultaneously by


specialized individuals which is referred to as division of labor. It enables swarm to
respond to changed conditions in the search space.

Behavior of Honey Bee Swarm


Three essential components of forage selection:

• Food Sources: The value of a food source depends on many factors such as its proximity
to the nest, its richness or concentration of its energy, and the ease of extracting this
energy.

• Employed Foragers: They are associated with a particular food source which they are
currently exploiting or are “employed” at. They carry with them information about this
particular source, its distance and direction from the nest, the profitability of the source
and share this information with a certain probability.

• Unemployed Foragers: They are continually at look out for a food source to exploit.
There are two types of unemployed foragers: scouts, searching the environment
surrounding the nest for new food sources and onlookers waiting in the nest and
establishing a food source through the information shared by employed foragers.

• The model defines two leading modes of the behavior:

– recruitment to a nectar source

– the abandonment of a source.

Exchange of Information among bees:

• The exchange of information among bees is the most important occurrence in the
formation of collective knowledge.

• The most important part of the hive with respect to exchanging information is the dancing
area

• Communication among bees related to the quality of food sources takes place in the
dancing area.

• This dance is called a Waggle dance.

• Employed foragers share their information with a probability proportional to the


profitability of the food source, and the sharing of this information through waggle
dancing is longer in duration.

• An onlooker on the dance floor, probably she can watch numerous dances and decides to
employ herself at the most profitable source.

• There is a greater probability of onlookers choosing more profitable sources since more
information is circulated about the more profitable sources.
Basic Self Organization Properties

• Positive feedback: As the nectar amount of food sources increases, the number of
onlookers visiting them increases, too.

• Negative feedback: The exploitation process of poor food sources is stopped by bees.

• Fluctuations: The scouts carry out a random search process for discovering new food
sources.

• Multiple interactions: Bees share their information about food sources with their nest
mates on the dance area.
ABC Algorithm

• Each cycle of search consists of three steps: moving the employed and onlooker bees
onto the food sources and calculating their nectar amounts; and determining the scout
bees and directing them onto possible food sources.

• A food source position represents a possible solution to the problem to be optimized.

• The amount of nectar of a food source corresponds to the quality of the solution

• Onlookers are placed on the food sources by using a probability based selection process.

• As the nectar amount of a food source increases, the probability value with which the
food source is preferred by onlookers increases, too.

• The scouts are characterized by low search costs and a low average in food source
quality. One bee is selected as the scout bee.

• The selection is controlled by a control parameter called "limit".

• If a solution representing a food source is not improved by a predetermined number of


trials, then that food source is abandoned and the employed bee is converted to a scout.

Control Parameters of ABC Algorithm

• swarmsize
• Limit

• number of onlookers: 50% of the swarm

• number of employed bees: 50% of the swarm

• number of scouts: 1

ABC algorithm in fact employs four different selection processes:

• A global selection process used by the artificial onlooker bees for discovering promising
regions as

• A local selection process carried out in a region by the artificial employed bees and the
onlookers depending on local information

• A local selection process called greedy selection process carried out by all bees in that if
the nectar amount of the candidate source is better than that of the present one, thebee
forgets the present one and memorizes the candidate source. Otherwise the bee keeps the
present one in the memory.

A random selection process carried out by scouts.

You might also like