Research Article

Hybrid Electromagnetism-Like Algorithm for Dynamic Supply Chain Network Design under Traffic Congestion and Uncertainty

Algorithm 2

General procedure of the EMA-SA hybrid.
(1)Initialize the parameters , , , and the initial population
(2)
(3)WHILE    DO
(4)   
(5)   WHILE    DO
(6)        
(1)        WHILE    DO
(2)         FOR each particle in the population DO
(3)           Generate a solution in the neighborhood
(4)           
(5)           IF    THEN
(6)              
(7)           ELSE
(8)              Generate a random number .
(9)              IF    THEN
(10)                 
(11)                 END IF
(12)            END IF
(13)        END FOR
(14)        
(15)      END WHILE
(16)      
(17)     END WHILE
(18)     Calculate forces.
(19)     Move particles.
(20)     Reduce .
(21) END WHILE