Skip to main content
. 2022 Sep 10;22(18):6858. doi: 10.3390/s22186858
Algorithm 3: Design algorithm of the digital beamforming matrix and the analog beamforming matrix.
Main algorithm: MM-AltOpt algorithm.
Input: Hybrid beamforming matrix F, initial: FRFn=0F, iteration index n=0, threshold ε3=103, the solution of the objective function of the problem P1 in the nth iteration is δn.
1. while δnδn1ε3
2.   Based on FRFn, calculate FBBn+1 according to FBB=FRFnHFRFn1FRFnHF.
3.   Based on FBBn+1, calculate FRFn+1 according to the inner algorithm.
4.   Set n=n+1.
5. end
Output: FRF,FBB, normalize FBB=PTFRFFBBFFBB.
Inner algorithm: Algorithm for solving the analog beamforming matrix.
Input: Hybrid beamforming matrix F, FBBn, FRFq=0F, iteration index q=0, threshold ε4=103, the solution of the objective function of the problem P5 in the qth iteration is δ1q.
1. while δnδn1ε4
2.     Calculate Cq=FBBnFHFBBnFBBnHλmaxFBBnFBBnHIFRFqH.
3.     Calculate FRF=ejargCqT.
4.     Set q=q+1.
5. end
Output: FRFn.