Internet of Things in Business Transformation. Группа авторов
Чтение книги онлайн.

Читать онлайн книгу Internet of Things in Business Transformation - Группа авторов страница 16

Название: Internet of Things in Business Transformation

Автор: Группа авторов

Издательство: John Wiley & Sons Limited

Жанр: Программы

Серия:

isbn: 9781119711131

isbn:

СКАЧАТЬ Dimensions 2 Transmission range (m) 2, 4, 6, 8, 10 Nodes 50, 100, 150, 200, 250, 300 Mobility model Freely mobility model W1 0.5 W2 0.5

      3.4.1 Dragonfly Algorithm

1) Initialization of WBAN’s randomly in the network 2) Random direction of WBAN’s is defined 3) Speed and velocity of each WBAN is initialized 4) Mesh topology creation among nodes 5) For all Dragonflies same radius is initialized 6) Calculation of distance among all WBANs, normalizing and associating the distance values with corresponding nodes 7) For (iteration = 1) 1 to 10 8) Available nodes for cluster formation = All Node a) WHILE (Nodes Available for clustering! = empty) b) End while 9) FOR Drag-fly(i) = form 1 to Total population a) Source (Food/enemy) = empty, Food Source Cost = infinity, and Enemy Source cost = -infinity b) Objective Values calculation, of Dragonflies c) Update the radius d) Update sources (food and enemy) e) Update weights 10) END FOR 11) FOR Drag-fly(i) = From 1 to Total population a) FOR Drag-fly(i) = 1 to Total population i) Update neighboring radius b) ENDFOR c) Calculate Separation, Alignment, Cohesion, Enemy and Food weights 12) IF neighbor! =0 a) Velocity Update b) Position Update 13) Else a) Levy flight 14) END IF 15) END FOR 16) Best cost == Food fitness 17) END FOR 18) IF not clustered nodes>20% a) Goto line #1 19) Else a) Output 20) End IF

      [3.2]image

      Attrition for food calculated as [18]:

      [3.3]image

      Here X+ is position of food source. And X is current position of an individual.

      Distraction away from an enemy [18]:

      [3.4]image

      X—is position of an enemy.

Graph depicts the second part of the transmission range versus Cluster Heads for Nodes 50–200.

      As transmission range increases to 8 and 10 MPSO is also trying to meet DA. But if we analyze overall results DA stands alone as the best participant. That formed a smaller number of clusters in almost all number of nodes and transmission ranges.

      Wireless Body СКАЧАТЬ