Research Article

Multiobjective Optimization of Large-Scale EVs Charging Path Planning and Charging Pricing Strategy for Charging Station

Algorithm 4

The PSO algorithm.
Initialization The particle swarm is initialized with the population amount . Position and velocity of each particle are initialized randomly in the feasible interval. and are initialized as and , respectively. The inertia factor and the acceleration constant are initialized as constants.
(1)While or
(2)For each particle , update the position and the velocity as follows,
(3)  
(4)   If, Then
(5)   If, Then
(6)   
(7)Output the optimal position and optimized objective