Algorithm 3. Pseudocode for the heuristic strategy of drone task assignment optimization. |
Input: VehiRoute[]; Output: VehiSubRoute, droneSubRoute; for all (task[i] in TaskInfo) do Call the CalcVehiSavings(task[i]) function; for all (RoutePoint in VehiSubRoutes) do Call the CalcdroneStation(t[i],SubRoute) function; Call the CalcCost(t[i],SubRoute) function; end for Call the CalcVehiSavings(task[i]) function; Obtain droneSubRoute; Call the Update() function; end for Obtain VehiSubRoutes; |