| Algorithm 1: Find the optimal path p |
| 1. Input: objective function fitness1, fitness2, source node and destination node |
| 2. Traffic matrix G is updated by SDN controller after a certain number of requests |
| 3. Weighted matrix G1 ← MOPSO (fitness1, fitness2, G, source, destination) |
| 4. Find the first k shortest paths from the source to the destination based on the weight matrix G1 |
| 5. Find the optimal path p according to the comprehensive performance evaluation model. |
| 6. Output: the path p |