Table 2.
Pseudocode of GM-CPSO.
-- Determine the parameter values and ranges -- Assign the first positions -- Calculate the error or profit -- Define (0) (0) and (0) best((0)) -- Update the inertia weight vector according to the maximum iteration number (3) While (iteration < maximum iteration number) -- Computation of new velocity and position vectors (1) and (2) -- Calculate the error or profit If (minimum error or maximum profit is reached) -- Save the best particle vector and its fitness -- Break End -- Attain the vector for every particle and for the entire swarm -- iteration++ End |