Skip to main content
. 2018 Jun 7;18(6):1864. doi: 10.3390/s18061864
Algorithm 1. Random Probability Exploration of the Optimal Velocity vAopt.
Input: UAV A maximal velocity vAmax, constrains of neighbor UAVs ORCVA|*τ
Output: The optimal velocity decision vAopt
1: Computational Rectangle Domain: RandVelRange=Square(vAmax)
2: Random Velocity: vrand=RV(RandVelRange)
3: Set the Accuracy: AN=1000
4: Initialization: N=1, FN=0, FD=Φ
5: while NAN do
6:  if vrandvAmax then
7:   if vrandORCVA|*τ then
8:    vrandFD
9:    FN=FN+1
10:  end if
11: end if
12: N=N+1
13: end while
14: Output vAopt=AVE(FD)   The optimal velocity has been explored.
15: return.