Skip to main content
. 2025 Oct 23;25(21):6534. doi: 10.3390/s25216534
Algorithm 2 MCGD for client selection in round k.
  • Require: 

    K, β>0, step sizes {ηt}t=0T1, inner iterations T, mini-batch size B

  •  1:

    Measure Vi(k),Di(k),Si(k) for all clients and compute ui(k)

  •  2:

    Initialize φ(0) (e.g., softmax solution exp(ui(k)/β)), then project: φ(0)ΠC[φ(0)]

  •  3:

    for t=0 to T1 do

  •  4:

        Sample mini-batch Bt={ξb}b=1B

  •  5:
        Compute gradient estimates:
    g^i(t)=1Bb=1Bui(ξb)β1+logφi(t)
  •  6:
        Gradient ascent step:
    φ˜(t+1)=φ(t)+ηtg^(t)
  •  7:
        Project back to feasible set:
    φ(t+1)ΠC[φ˜(t+1)]
  •  8:

    end for

  •  9:

    return  φ(k)φ(T)