Skip to main content
. 2024 Mar 7;24(6):1742. doi: 10.3390/s24061742
Algorithm 1 AP-based CP location and SN-CP association optimization algorithm
  • 1:

    Initialize wm, ε, τmk, tmax, r(m,k)=a(m,k)=0, and t=0.

  • 2:

    Calculate τmk between any two SNs, and set s(m,k) according to (15).

  • 3:

    repeat

  • 4:

       Update r(m,k),a(m,k) according to (16) and (17), respectively.

  • 5:

       Update tt+1.

  • 6:

    until Convergence or ttmax.

  • 7:

    Find C by (18) and establish K and o.

  • 8:

    Find L by (19) according to the center of gravity method.