---
# System prepended metadata

title: Energy Saving Algorithm Pseudocode

---

[Enabling_Energy_Efficiency_in_5G_Network.pdf](/uploads/3b57a388abc96824fa492e796f1ca831/Enabling_Energy_Efficiency_in_5G_Network.pdf)

# Energy Saving Algorithm Pseudocode



## Energy Saving Algorithm
### On Saving Model - turn off cell?


1. Initial network environment(Random Access).
2. Collect and analyse all cell measurements/parameters.
3. If　the number of  RRC connection establishment attempts < Threshold? then ??
4. If  fitness on booster cells < Low threshold and candidate cell will take.
5. Set a turn off cell configuration.
6. Send configuration (action??) to RIC platform.
7. Follow configuration state of switch cell(s).
8. Repeat step2-step8.

### On Non-Saving Model

1. Initial network environment(Random Access).
2. Collects and analyse all cell measurements.
3. If　number of  RRC connection establishment attempts > Threshold?
4. If **traffic** fitness on macro cell > High Threshold.4. If **traffic** fitness on macro cell > High Threshold.
5. Sets an activation configuration.
6. Send configuration
7. Follow Configurations to active cell(s) state.
8. Repeat step2-step8.





ps. Traffic fitness is a score about the DL Total PRB Usage , RRC connection establishment, and so on. 

#### Threshold  design 

1. Be  standard "DL Total PRB Usage". *Ld*
2. Calculate Standard Deviation σ1.
3. Be RRC connection establishment attempts standardizing. *Rce*
4. Calculate Standard Deviation σ2.
5. FITNESS $`FT= \alpha\times  Ld_u^c+  \beta \times Rce_u^c`$ 
6. User={1,2,3...,*u*} ,Cell={1,2,3...,*c*}
7. High Threshold is $` \alpha[Ld_{avg}+ σ1]+  \beta \times [Rce_{avg}+σ2] `$
8. Low Threshold is $` \alpha[Ld_{avg}- σ1]+  \beta \times [Rce_{avg}-σ2] `$
9. $` \alpha , \beta `$ are weight parameters.

---
### NEW
1. *Ld* is "DL Total PRB Usage". 
2. Calculate "DL Total PRB Usage" standard deviation σ1.
3. *Rce* is the number of RRC connection establishment attempts is 
4. Calculate "the number of RRC connection establishment attempts" standard deviation σ2.
5. High threshold of RRC connection establishment attempts is $[Rce_{avg}+σ2]$ ,Low Threshold of RRC connection establishment attempts is $[Rce_{avg}-σ2]$
6. High Threshold of











