Research Article
Power and Time Slot Allocation in Cognitive Relay Networks Using Particle Swarm Optimization
Algorithm 1
Pseudocode for PSO.
Begin | Randomly initialize particles swarm, | while (the stopping criterion is not met) | Evaluate fitness of particles | for to number of particles | Find pbest | Find gbest | for to number of dimension of particle | update the position of particles by (19), (20) | next | next | update the inertia weight value ranges from 0.3 to 0.9 | next generation until stopping criterion | End |
|