Algorithm 2
The pseudocode of heuristic algorithm.
(1) for each in RH do  (2) Validwindow ; ;  (3) for each in time window set Validwindow do  (4) for each in task set Finished do  (5) if then  (6) Delete from time window set Validwindow;  (7) end if  (8) end for  (9) end for  (10) Remove from RH to Finished;  (11) if time window set then  (12) for each in time window set Validwindow do  (13) Calculate of ;  (14) end for  (15) Assign by WCI strategy, and calculate ;  (16) end if  (17) end for 
