Research Article
LSTM-Based Traffic Load Balancing and Resource Allocation for an Edge System
Algorithm 1. GENM algorithm pseudocode.
Input: (current state) | Output: (control input vector) | 01: Parameter initialization | | 02: for ( within the prediction horizon of depth ) do | - := forecast the workload | - := forecast the energy | - := operating interval of each BS | - := green-based operating interval | - | 03: for (each in ) do | - generate all reachable states | - | 04: for (each in ) do | - calculate the corresponding | taking into account of from | end for | end for | end for | 05: - obtain a sequence of reachable states yielding | minimum energy cost | 06: control leading from to | 07: Return |
|
Algorithm 1. GENM algorithm pseudocode. |