Research Article

Machine Learning-Based Data Analytics for IoT-Enabled Industry Automation

Algorithm 2

Proposed ideal path selection algorithm.
Input: Clustered Nodes;
Output: Ideal Path Selection;
Begin
1: Produce initial population
2: Calculate the fitness function of the population by eqn (5.1)
3: Fix counter=1
4: Do
//Employed bees phase
5: Search for the food source;
6: Calculate the fitness function by eqn.(5.1);
7: Employ greedy selection process;
8: Compute the probability for the food source by eqn.(5.3);
// Onlooker bees phase
9: Select food source based on the probability values;
10: Generate new food source;
11: Calculate the fitness function;
12: Apply greedy selection process;
//Scout bees phase
13: If food source drops out then swap it with new food source;
14: Save the best food source;
15: Counter + =1;
16: While counter=MC;