| Algorithm 1:IPWOA |
|
Input: tasks J, computing resources S, Output: BestAllocation 1: Set , set number of tasks , set , , allocation plan P; 2: Initial each allocation plan P using Equation (22); 3: Calculate the fitness of each allocation plan P using Equation (14); 4: Best allocation = the best allocation plan; 5: While 6: Update a, A, C, l, p; 7: For to : 8: if 9: if 10: Update resource allocation plan P using Equation (24); 11: else 12: Update resource allocation plan P using Equation (20), Equation(21); 13: else 14: if 15: Update resource allocation plan P using Equation (25); 16: else 17: Update resource allocation plan P using Equation (19); 18: Check if any distribution plan the search space and amend it; 19: Calculate the fitness of each distribution plan using Equation (14); 20: Update the best allocation if there is a better solution; 21: ; 22: return best allocation |