10
Introduction to Particle Swarm Optimization Rajib Kumar Bhattacharjya Department of Civil Engineering Indian Institute of Technology Guwahati

Particle Swarm Algorithms - iitg.ac.in Swarm Algorithms.pdf · Introduction to Particle Swarm Optimization Rajib Kumar Bhattacharjya Department of Civil Engineering Indian Institute

  • Upload
    dangthu

  • View
    220

  • Download
    0

Embed Size (px)

Citation preview

Introduction to Particle

Swarm Optimization

Rajib Kumar Bhattacharjya

Department of Civil Engineering

Indian Institute of Technology Guwahati

Particle Swarm Algorithm

Inspired by social behavior of bird flocking and fish schooling

So what is the best strategy to locate the food?

Suppose a group of birds is searching food in an area

Only one piece of food is available

Birds do not have any knowledge

about the location of the food

But they know how far the food

is from their present location

The best strategy is to follow the bird nearest to the food

United we stand

Particle Swarm Algorithm

A flying bird has a position and a velocity

at any time �

In search of food, the bird changes his

position by adjusting the velocity

The velocity changes based on his past

experience and also the feedbacks received

from his neighbor

Current position

Next position

This searching process can be artificially

simulated for solving non-linear

optimization problem

So this is a population based stochastic

optimization technique inspired by social

behaviour of bird flocking or fish

schooling

Each solution is considered as bird, called particle

All the particles have a fitness value. The fitness values can

be calculated using objective function

All the particles preserve their individual best performance

They also know the best performance of their group

They adjust their velocity considering their best performance and also

considering the best performance of the best particle

Particle Swarm Algorithm

Particle Swarm Algorithm

Initialize particles

Evaluate fitness of each particles

Modify velocities based on previous best and

global best positions

Terminate criteriaNext iteration

STOP

���� = ��� + � ∗ �� �() ∗ ��� − �� + � ∗ �� �() ∗ ��� − ��

���� = �� + ����

Velocity is updated

Position is updated

Inertia effect

Local search, personal

influence

Global search, Social

influence

� and � are the learning factor

� is the inertia weight

Particle Swarm Algorithm

��

���

���

��

����

Personal best

performance

Best performance

of the group

Example problem

x

y

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5

0 50 100 150 200 250 300 350 400 450 5000

10

20

30

40

50

60

70

80

Generation

Fitn

ess

Minimize � �, � = (�� + � − 11) �

+(� + �� − 7) �

Optimum Solution is �∗= 3, �∗ = 2

x

y

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5

x

y

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5x

y

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5

x

y

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5

Larger value of

the

parameters

Smaller value

of the

parameters

x

y

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5

Examples