Research Article

Hardware in the Loop Testing of Adaptive Inertia Weight PSO-Tuned LQR Applied to Vehicle Suspension Control

Algorithm 1

AIWPSO algorithm.
(1)Initialize the population size , the dimensions , maximum no of iterations , inertia weight , location boundary , and velocity boundary .
(2)for
(3)Initialize the success rate (SR) = 0
(4) for
(5)Compute the fitness of the particles
(6)if
(7)SR = SR + 1
(8)    
(9)    
(10)end
(11)if
(12)     
(13)      
(14)end
(15)for
(16)Update the velocity and position of the particle
(17)
(18)
(19)end
(20)Calculate the percentage of success using 14
(21)Update the inertia weight using 15
(22)end
(23)end