Skip to main content
. 2020 Apr 21;20(8):2361. doi: 10.3390/s20082361
Algorithm 1: Pseudocode for centralized Q-learning
Initialization:
 for each sBBUtSBBUt, aBBUtABBUt do
  initialize Q-table and policy πBBU(sBBUt)
 end for
Learning:
 loop
  estimate the state sBBUt
  generate a random real number x[0,1]
   if x<ε // for exploration
    select the action aBBUt randomly
   else
    select the action aBBUt according to πBBU(sBBUt)
   recommend action aBBUt to the devices in the cell
   calculate reward rBBUt
   update Q-value Q(sBBUt, aBBUt) and πBBU(sBBUt)
end loop