Research Article

Mayfly Taylor Optimisation-Based Scheduling Algorithm with Deep Reinforcement Learning for Dynamic Scheduling in Fog-Cloud Computing

Table 3

Pseudocode of devised MTOA.

Sl. NoPseudocode of developed MTOA

1Input: Total population and velocities
2Output: Best solution,
3Begin
4Initialise the population of male and female mayflies and their velocities
5Compute the fitness function using equation (16)
6Determine the global best
7While
8Update the velocities and solutions of females and males
9Compute the solutions
10Ranking of mayflies
11Mate the mayflies
12Estimate the off-springs based on equations (46) and (47)
13Divide the off-spring into male and female arbitrarily
14Replace worst solutions with the new solution
15Update and
16End while
17Return the best solution