Skip to main content
. 2020 Dec 2;20(23):6882. doi: 10.3390/s20236882
Algorithm 1 Gradient Ascent for solving the optimization.
  • 1:

    k=0,f0=finitial

  • 2:

    repeat

  • 3:

        Compute the gradient: ∇ν(fk)

  • 4:

        Choose a step size: tk>0

  • 5:

        Update fk+1:=fk+tk∇ν(fk)

  • 6:

       k←k+1

  • 7:

    untilmax(|∇ν(fk)|)≤η

  • 8:

    returnfk.