From: Study on optimization of communication network for multi-unmanned aerial vehicles
The algorithm of user positions deployment in a circular area. |
---|
Input: Number of users and circular area center and radius. |
Output: User location. |
1. Generate two random numbers independently: u1 ~ U(0,1), u2 ~ U(0,1). |
2. Calculate the range of the user i: \(r_{i} = R \cdot \sqrt {u_{1} }\), the angle of the user i: \(\theta_{i} = 2\pi u_{2}\), where ri is the polar radius, R is the radius of UAV-covered area, and θi is the polar angle. |
3. The polar coordinates of user i: (ri, θi). |
4. Repeat steps 1 to steps 3 until all users generate the polar coordinates. |
5. End. |