Figure 3: Flowchart of PSO algorithm.