Research Article

Joint Optimization of Spectrum Resource Management and Position Placement for UAV Base Station Networks

Algorithm 1

BR-based channel selection algorithm.
Initialization:
 (1) Input the UAV position strategy from Algorithm 2 and decide the UAV-user association by the mechanism based on matching theory
 (2) All UAVs randomly assign channels to the GUs. The initial channel allocated to GU is denoted as
 (3) Set the iteration time and the max iteration time
While:
 (4) Update
 (5) Randomly select a UAV . The set of channels used by UAV is denoted as . The maximum number of GUs which UAV allows to update the channel selection during the same time is denoted as , where means the number of elements in the set . Randomly select no more than GUs from the GUs served by GU to update the channel selection
 (6) UAV randomly assigns different channels from set to the above selected GUs
  (a) Assume that GU updates its channel selection and its probable new channel selection is
  (b) Calculate payoff and according to formula (6)
  (c) If , update .
 (7) Update
End loop.
Output: The UAV-user association and channel selection strategy .