Research Article

Efficient Constraint Handling in Electromagnetism-Like Algorithm for Traveling Salesman Problem with Time Windows

Algorithm 3

Boundary control mechanism.
(1) for     to     do
(2)  for     to     do
(3)      if     then
(4)      
(5)      elseif     then
(6)      
(7)      end if
(8)  end for
(9) end for