Research Article
Joint Optimization of Offloading and Resource Allocation for SDN-Enabled IoV
Algorithm 1
A offloading decision making algorithm based on PSO.
Input: | The input parameters of particle swarm: | | Output: | | 1: Fordo | 2: For each do | 3: Initialize the velocity position of particles | 4: End for | 5: In Algorithm 2, we obtain then record the current position and fitness as particle’s individual extreme option and value . | 6: Record the smallest fitness and the corresponding position as . | 7: While the number of iteration steps is not 0 do | 8: Fordo | 9: Update the velocity of particles using Equation (16) | Update the position of using Equation (17) | Evaluate fitness of particle using Equation (14) | 10: Ifthen | 11: | 12: End if | 13: Ifthen | 14: = | 15: End if | 16: End for | 17: End while | 18: End for | 19: Return |
|