Skip to main content
. 2017 Jul 11;17(7):1607. doi: 10.3390/s17071607
Algorithm 1 The pseudo-code of the proposed algorithms
Input:
Set of static targets T;
Set of mobile AUVs A;
Total number of static targets N;
Total number of mobile AUVs K;
Output:
Tour sequence for the kth AUV: Dk, k=1,2,,K;
Tour trajectory for the kth AUV: Sk, k=1,2,,K;
1: Initialization: n=1;
2: while (nN) do
3:  if(THB-3Dubins-MTSP)
4:   # GA based MTSP calculation
5:   # Break when reaching THB constraint;
6:  else if (TLB-3Dubins-MTSP)
7:   #GA based MTSP calculation
8:   Break when reaching TLB constraint;
9:  end if
10: n:=n+1;
11: end while
12: Initialization: k=1, Sk:=;
13: while (kK) do
14:  Initialization: v=0;
15: while (v<Nk) do
16:   # 3D Dubins curve plotting
17:   Sk:=[Sk,3D_Dubins(Tv,Tv+1)];
18:   v:=v+1;
19: end while
20: Sk:=[Sk,3D_Dubins(TNk,T0)];
21: k:=k+1;
22: end while
23: returnSk, for k=1,2,,K