Research Article

Discrete Bat Algorithm for Optimal Problem of Permutation Flow Shop Scheduling

Algorithm 5

The pseudocode of adjustment.
for  each individual
                   Find out all jobs and their position in current scheduling sequence;
                 1 : , where   denotes the number of jobs in current scheduling problem;
                 1 : ;
                 Generate an insert order   randomly;
                 Select a job in   according to   and insert into ;
end for