| | Parameters:, , , , , , , , , , , , , // represents the current iteration number, represents the maximum iteration number. | | Objective: |
| | 1Define, , , , , , , , , , , , , , , , , , , , , | | 2For //M is the set of particles | | 3For | | 4 Set to a random number | | 5End for | | 6For | | 7 Set to a random number of intervals | | 8End for | | 9 Calculate the total number of tasks and in different date | | 10For | | 11 Set to a random number of intervals or | | End for | | 12For, | | 13 Set to a random number of intervals | | 14End for | | 15For | | 16 Set to a random number of intervals | | 17End for | | 18 Reorder based on | | 19 If , , , then calculate the fitness value; otherwise calculate the fitness value with penalty cost | | 20Update, | | 21End for | | 22Whiledo | | 23For | | 24 Update the velocity and position of , , , | | 25 Make , , , feasible, and reorder based on | | 26Update, | | 27End for | | 28 | | 29End while | | 30Return |
|
|