Research Article

Project Scheduling Heuristics-Based Standard PSO for Task-Resource Assignment in Heterogeneous Grid

Algorithm 2

The pseudocode of the proposed enhanced PSO.
(1)  Initialize particles’ positions by applying
     heuristics: LFT (for ) and BRP (for ).
(2)  Iteration Loop
 (2.1)  For each particle in the swarm do:
 (2.2)  Update velocity vector ( , ) and position
     vector ( , ) according to (4.2) (“standard” PSO).
  (2.3)  Calculate task-resource assignment vector based
    on (3.1).
  (2.4)  Calculate task priority vector Pr by applying the
     random key scheme to and constructing a
     new precedence for the task queue.
  (2.5)  Calculate particle’s fitness (based on vector and
     vector Pr) via scheduling completion time calculation (2.3).
  (2.6)  Update .
  (2.7)  Update (gbest or lbest).
(3)  Until End condition is reached, return solution.