Skip to main content
. 2025 Nov 28;27(12):1214. doi: 10.3390/e27121214
Algorithm 2 Beamspace WMMSE Precoding
Input: {g^k,γk,σk,βk}k, PT, Imax, χ.
  1: Initialize:
   1-a: i0.
   1-b: R¯k0, kK.
  2: while i<Imax do
  3:      ii+1.
  4:      R¯kR¯k, kK.
  5:      Update uk as in (32).
  6:      Update mk as in (34).
  7:      Update pk as in (37).
  8:      Calculate R¯k as described in (14).
  9:      if k=1Kβk(R¯kR¯k)k=1KβkR¯kχ then
10:         break
11:      end if
12: end while
Output:  P.