Research Article

IoT Workflow Scheduling Using Intelligent Arithmetic Optimization Algorithm in Fog Computing

Algorithm 2

Steps of MPA.
(1) Determine the value of parameters such as number of solutions , dimension of each solution (i.e., number tasks), and number of computing nodes .
(2)while Stop conditions are not met do
(3) Calculate fitness for each solution and construct the Elite matrix (as in equation (14)).
(4)ifthen
(5) Using equation (15) to update .
(6)else ifthen
(7)fordo
(8) Using equation (17) to update .
(9)end for
(10)fordo
(11) Using equation (19) to update .
(12)end for
(13)else ifthen
(14) Using equation (22) to update .
(15)end if
(16) Update the memory and Elite.
(17) Using equation (24) to update based on the value of FADs.
(18).
(19) Return .
(20)end while