Skip to main content
. 2021 Jan 4;21(1):285. doi: 10.3390/s21010285
Algorithm 1 Algorithm for determining the nearly optimal EH time for the system
Input:α0,,1
Output:α* (α* is the optimal point)
  • 1:

    functionLoop(α[])

  • 2:

        α*← 0;

  • 3:

        Δα0.001;

  • 4:

        Pout,IΞ*← 1;

  • 5:

        Llength(α);

  • 6:

        for l0 to L1 do

  • 7:

            if Pout,IiΞ*>Pout,IΞ(Δα) then

  • 8:

               α*Δα;

  • 9:

               Pout,IΞ*Pout,IΞ(Δα);

  • 10:

               ΔαΔα+l;

  • 11:

            else

  • 12:

               break;

  • 13:

            end if

  • 14:

        end for

  • 15:

        return α*;

  • 16:

    end function