Research Article
UCB-Based Route and Power Selection Optimization for SDN-Enabled Industrial IoT in Smart Grid
Algorithm 1
UCB-based route and power selection optimization for SDN-enabled industrial IoT in smart grid.
(1) | Input: , , , . | (2) | Phase 1: | (3) | Set , , , and , . | (4) | for to do | (5) | Select arms sequentially, and obtain the initial values. | (6) | end for | (7) | for to do | (8) | Phase 2: | (9) | Calculate the preference of the SD towards arm as (12). | (10) | Select based on (13). | (11) | Phase 3: | (12) | Observe delay and energy efficiency performances. | (13) | Calculate based on (11). | (14) | Update and based on (15) and (16). | (15) | end for |
|