Skip to main content
. 2019 Mar 24;19(6):1446. doi: 10.3390/s19061446
Algorithm 2 Heterogeneous DDLO for MEC networks
 1: Input: all WDs’ task requirements st
 2: Output: offloading decision at*
 3: Initialization:
 4:  Initialize all B DNNs with different random parameters θtb, bB;
 5:  Initialize memory structure with size H;
 6: for t=1,2,,G do
 7:  Input the same st to each DNN.
 8:  Generate B offloading action candidates from the DNNs {atb}=fθtb(st);
 9:  Select the offloading decision at*=argminbBQ(st,atb);  
10:  Store (st,at*) into the memory structure;
11:  Randomly Sample B batches of training data from the memory structure;
12:  Train the DNNs;
13: end for