In this paper. we study the optimal cooperative beamforming problem in the amplify-and-forward (AF) multi-user and multi-relay networks. which face the challenges of rapid node number variations and per-node power limits. To achieve extra diversity gain. https://www.alarecre.com/American-Flag-Color-Block-iPhone-14-Waterproof-Case-p12619/