Skip to main content
. 2021 Dec 17;21(24):8445. doi: 10.3390/s21248445
Algorithm 5: Simulation Annealing Method for UAV flight path planning
Input:
CH coordinates Cjk=x1k,  y1k,   x2k,  y2k, .,  xjk,  yjk, t0, tF
Output:
UAV flight route sequence target points Dv and vminl
Steps:
1: while (t>tf)
2:    create a new Hamiltonian circuit lm+1 and calculate v(lm+1)
3:    dv  vlmvlm+1 
4:    if (dv<0) // calculate probability of acceptance p
5:      p 1
6:    Else
7:      p  edvT
8:    End if
9:    if rand() ≤ p
10:      update Dv using lm+1 and vminl=vlm+1
11:    Else
12:      discard lm+1
13:    End if
14:    update the t :t αt0
15: End while
16: return Dv and the vminl