Research Article

A PSO-Based Hybrid Metaheuristic for Permutation Flowshop Scheduling Problems

Algorithm 1

The main procedure of the SA_VNS.
Begin:
  Initialization:
    Let be the input initial solution. Set , the acceptance threshold , and
     .
  while ( ) do
    (1) Generate a random number in 0, 1 , and two random integer numbers and .
    If > 0.5, generate = insert ( ); otherwise generate = interchange ( ).
    (2) Set .
    (3) while     do
      Set .
      while ( ) do
       (1) Generate two random integer numbers and .
       (2) If , generate = .
       (3) If , generate = .
       (4) If and ; otherwise set .
      end while
      Set .
    end while
    (4) If , and then go to step 6; otherwise go to step 5.
    (5) If ; otherwise, generate a random
      number r in 0, 1 , and then set if and if .
    (6) Set and .
  end while
  Report the improved solution   .
End