Skip to main content
. 2018 Dec 22;19(1):49. doi: 10.3390/s19010049
Algorithm 3: Improved MOPSO algorithm
  1. Input: objective function fitness1, fitness2, traffic matrix G, source node and destination node.

  2. Initializing the population size, the positions and velocity of particles, the flight parameters, the maximal size of archive, and maximal iterations.

  3. While iteration <= maximal iterations

  4. Calculate the value of fitness1 and fitness2.

  5. Calculate the non-dominated solutions and update the archive.

  6. If the number of archive > maximal size

  7. Pruning the archive

  8. End

  9. The external archive is mapped to PCCS.

  10. Calculate the entropy and the difference of entropy.

  11. Choose the gbest according to the difference of entropy.

  12. Update the flight parameters.

  13. Update the positions and velocity of particles.

  14. End

  15. Output: the best position, namely weighted matrix G1