Skip to main content
. 2017 Nov 25;17(12):2731. doi: 10.3390/s17122731
Algorithm 2 Bisection Search of Prad
  • 1:

    Initialization: a=Pmin-Pcom, b=PTotal-Pcom, c(n), f(x)=Q12γradx,2λ, the tolerance ϵ>0;  

  • 2:

    Loop until: pD(n)-δDϵ

      if f(a)0 then

         Prad(n)a and stop the iteration;

      else

         c(n)a+b2;

         if f(c(n))=0 then

          Prad(n)a and stop the iteration;

         if f(c(n))<0 then

          ac(n);

          c(n)a+b2;

         if f(c(n))>0 then

          bc(n);

          c(n)a+b2;

         end if

         Set nn+1;

      end if  

  • 3:

    End loop