Research Article

Analysis and Design of the Battery Initial Energy Level with Task Scheduling for Energy-Harvesting Embedded Systems

Algorithm 1

Holistic energy evaluation.
Input: A⟵set of n active tasks at time t
Output: true or false
(1)function GLOBAL CALCULATION (A)
(2)  hp⟵calculating hyperperiod of the task set A
(3)  sum⟵0
(4)  for i = 1; i ≤ n; i++do
(5)   take the ithtask of A as
(6)   Eienergy cost of
(7)   Tiperiod of
(8)   sumEi + sum
(9)  end for
(10)  if (sumhpR) < 0 then
(11)   return false
(12)  else
(13)   return true
(14)  end if
(15) end function