Research Article
Adaptive Resource Allocation of Vehicles under Dynamic Environment
Algorithm 2
The allocation scheme of computing resources.
Input: : the set of tasks which arrive at the time ; | : the subnetwork set of vehicles; | : maximum number of iterations; | Output: the set of providers for computing resources. | 1: initial ; | 2: for in do | 3: for in do | 4: if do | 5: initial ; | 6: initial population ; | 7: while do | 8: ; | 9: Calculate and ; | 10: ); | 11: ; | 12: ; | 13: ; | 14: end while | 15: end if | 16: ; | 17: end for | 18: end for | 19: return . |
|