Skip to main content
. 2023 Sep 20;23(18):7980. doi: 10.3390/s23187980
Algorithm 4 Cyclic Bidding Strategy Based on Task Timing
Input: WTLun, Plan, Um, CU
Output: updated Plan
1 CoWTLun=copy (WTLun)
2 While WTLun≠ ∅ or CoWTLun≠WTLun do
3   CoWTLun=copy (WTLun)
4   For k in range (1, nwtl) do
5     Um gets BPmk, mdcmk of inserting Twk into Pm by single-target insertion method
6     Um  sends Twk , mdcmk , Plan  to every UAV of CU
7     For Ui in CU do (Parallel)
8      Ui gets BPik, mdcik of inserting Twk into Pi by single-target insertion method
9       If mdcik<mdcmk  and mdcik<104
10       Ui  sends BPik , mdcik  to Um
11      Else
12       Ui give up the bidding
13      End if
14       End for
15       If all Ui in CU give up the bidding
16      If mdcm<104
19       Pm=BPmk, Um delete Twk from WTLun
20      End if
21 Else
22   Um  compares all received mdc  and finds the Ubest  with the min mdc
23     Pbest=BPbest , Um  sends losingsignal to those Ui  participated in the bidding (except Ubest ) and sends winningsignal to Ubest
24      End if
25       End for
26      End while