| Algorithm 1. the algorithm of obtaining available energy and obtaining the probability of marking and logging |
|
INPUT: the observed solar radiation power // is the th day, is the th hour of the th day, // is the observed solar radiation power at ; is the initial energy of the node battery, // is the max electricity in battery. OUTPUT: the available energy // is the available energy at ; is the remaining battery level. (1) get available energy stage 1: Find a day with the minimum total observed solar radiation power in the whole day using the formula . In addition, define this day as . 2: If is the time to start the sunshine. Get using the formula . Get is the highest observed solar radiation time of the day. If ; ;} If ; ; If ; ; If ; End if End if 3: If Switch () Case1: If ; ; Break; Case2: If ; Break; Case3: If ; ; If ; Break; Case4: If ; ; If ; Break; Default: If ; ; If ; Break; End if (2) get the probability of marking stage 4: For each in the set {} Do Get the probability of marking using Equation (41); End for (3) get the probability of logging stage 5: For each in the set {} Do Get the probability of logging using Equation (50); End for |