|
Algorithm 3: Improved MOPSO algorithm
|
Input: objective function fitness1, fitness2, traffic matrix G, source node and destination node.
Initializing the population size, the positions and velocity of particles, the flight parameters, the maximal size of archive, and maximal iterations.
While iteration <= maximal iterations
Calculate the value of fitness1 and fitness2.
Calculate the non-dominated solutions and update the archive.
If the number of archive > maximal size
Pruning the archive
End
The external archive is mapped to PCCS.
Calculate the entropy and the difference of entropy.
Choose the gbest according to the difference of entropy.
Update the flight parameters.
Update the positions and velocity of particles.
End
Output: the best position, namely weighted matrix G1
|