Algorithm 1: The Charging Time Scheduling Strategy |
Input: the initial energy , the residual energy , the estimated energy consumption rate , the charging duration of WCD, the charging rate , the location of each node. Output: each node’s charging time and the travel path of mobile charger. /*the maximum charging time for each node*/ /*the original charging time of each node*/ /*the estimated remaining lifetime of each node*/ Calculate the charging schedule cycle according to and the maximum travel time. Sort the remaining lifetime from small to large to obtain the element set . Calculate the shortest travel path for visiting nodes selected to be charged. return and the shortest travel path. |