Research Article

Energy-Saving Production Scheduling in a Single-Machine Manufacturing System by Improved Particle Swarm Optimization

Algorithm 2

Constraint handling process to obtain a solution.
Require: position and problemData
Ensure: schedule, starting time , completion time , and TWT
(1)
(2)
(3)
(4)
(5)if each do
(6) reschedule:
(7)
(8)
(9)
(10)ifthen
(11)  
(12)  
(13)  
(14)  
(15)  ifthen
(16)   
(17)   
(18)   ifthen
(19)    ifthen
(20)     
(21)     
(22)     
(23)     
(24)     
(25)    else
(26)     
(27)     
(28)    end if
(29)   end if
(30)  end if
(31)  ;
(32)  
(33)else
(34)   ;
(35)   
(36)   go to reschedule
(37)  end if
(38)end for
(39)ifthen
(40)  
(41)end if
(42)return schedule, st, C and TWT