How to place five sinks at best position in WSN using PSO?

1 view (last 30 days)
I've created a 600X600m WSN with 200 nodes. Each node having 60m transmission range. Now I've placed 5 Sinks randomly in same WSN. Now I want to use PSO for Sink placement for increasing lifetime of WSN by optimizing its Energy and Cost with the help of PSO. It is assumed that sensors have already been deployed and their positions are known and positions of sinks are required to be determined. How to use PSO for this problem? Also how to provide location of Sink and nodes to the PSO? To reach the global best solution, it uses its personal and global best to update the velocity Vi,d and position X i,d using the following equations-
Vi,d(t+1) = w*Vi,d(t) +c1*r1(Pi,d(t)-Xi,d(t)) + c2*r2(G(t)-Xi,d))
Xi,d (t+1) = Xi,d(t)+ Vi,d(t+1)
where 0 < ω < 1 is the inertia weight, c1, c2, 0 ≤ c1, c2 ≤ 2 are the acceleration coefficients and, r1,r2, 0 < r1,r2 < 1 are the randomly generated values. This updation of velocity and position is updated in all iterations till maximum iterations reaches. After getting new updated position, the particle evaluates the fitness function and updates Pbesti as well as Gbest.
Fitness Function can be calculated as follows-
1. Euclidian distance: Sensor consumes some energy to send data to the sinks. To maximize the lifetime of the network, we need to reduce the distance between sensors and sinks.
2. Hop Count: During the communication between sensor and sink, sensor use multihop routes to send the data. To decrease the delay we need to minimize the number of hop count.
Minimize fitness = α * F1 + β * F2

Answers (1)

Walter Roberson
Walter Roberson on 21 Nov 2017
"Also how to provide location of Sink and nodes to the PSO?
"To reach the global best solution, it uses its personal and global best to update the velocity Vi,d and position X i,d using the following equations-"
Are you required to write your own PSO code, or can you use particleswarm from the Global Optimization Toolbox?
  2 Comments
SHUAB KHAN
SHUAB KHAN on 21 Nov 2017
Edited: SHUAB KHAN on 21 Nov 2017
I've write some code with the help of PSO which i got from file Exchange. Now i want to implement PSO with the help of above fitness functions. How can I do that? Or if there any PSO code that will help me?
Walter Roberson
Walter Roberson on 21 Nov 2017
I would recommend getting it working with particleswarm first before you bother to write your own PSO code.

Sign in to comment.

Categories

Find more on Electrical Block Libraries in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!