Figure 4: Flowchart of modified PSO algorithm.