Research Article
An Improved Topology of Isolated Bidirectional Resonant DC-DC Converter Based on Wide Bandgap Transistors for Electric Vehicle Onboard Chargers
Algorithm 2
Pseudocode of the PSO algorithm [
26].
(1) | Initialize the size of the particle swarm and other parameters; | (2) | Randomly initialize the position and velocity of particles; | (3) | While the termination criterion is not satisfied do | (4) | For i = 1 to the number of particles do | (5) | Calculate the fitness function; | (6) | Update the personal and global best of each particle; | (7) | Update the velocity of the particle; | (8) | Update the position of the particle; | (9) | End for | (10) | End while | (11) | Return the position of the best particle; |
|