Research Article

An Optimal SDN-Based Wavelength Allocation and Routing Method for 5G Network

Algorithm 1

Proposed SO-MO-RWA scheme.
(1)Initialization: Particle , velocity , position , and the number of iterations.
(2)Get , update particle velocity.
(3)Calculate the next position of the particle through the velocity , the group optimal position , etc.
(4)If the conditions are met, end the operation to derive the optimal solution, otherwise update , , and go to step 4.
(5)Update parameter .
(6)Update parameters , , .
(7)If the optimal position does not change in multiple iterations, add the value to jump out of the local search, and perform step 1.