|
Algorithm 1 Joint charging scheduling and routing allocation algorithm (CSRA). |
|
Input: a set , a set V of to-be-charged sensors, the residual energy of each sensor in at some time , a small threshold with .
Output: routing , charging tour C.
-
1:
Obtain a routing by assuming that each sensor uploads its data along its minimum energy path to the base station;
-
2:
for 1 to
do
-
3:
Find a charging tour with the routing , by invoking Algorithm 2 for the charging scheduling subproblem;
-
4:
Obtain a routing with the charging tour , by invoking Algorithm 3 for the routing allocation subproblem;
-
5:
Let and be the longest sensor dead durations of solutions and , respectively;
-
6:
if
then
-
7:
; /* is no better than */
-
8:
break;
-
9:
else
-
10:
; /* is better than */
-
11:
end if
-
12:
if
then
-
13:
/* the difference of the longest sensor dead durations and of solutions and is smaller than */
-
14:
break;
-
15:
end if
-
16:
end for
-
17:
return charging tour C, and routing .
|