Research Article

BP Network Control for Resource Allocation and QoS Ensurance in UAV Cloud

Algorithm 3

Algorithm of MQEB.
(1) , initialize .
(2) Start TS-LOOP.
(3)  For .
(4)   Sample the actually ith HQ delay .
(5)   According Algorithm 1, get the and the number of time slots .
(6)   Distribute slots for ith HQ.
(7)  End For.
(8) End TS-LOOP.
(9) Start CW-LOOP.
(10)   Sample the actual jth SQ delay , the accessing probability , and queueing length .
(11)   Construct and SOP as (24).
(12)   Solve SOP according to Algorithm 2, and get the solution .
(13)   Distribute slots for all SQ.
(14)  For .
(15)   Sample the actual accessing probability and scale factor as inputs. According to Algorithm 1, get and the scale factors .
(16)   Adjust scale factor for jth SQ.
(17)  End For.
(18) End CW-LOOP.
(19) , go to step 1.