Skip to main content

Table 1 Pseudo code for the description of simulated annealing[12, 17]

From: Automated uplink power control optimization in LTE-Advanced relay networks

1:

Select an initial solution x = (x1, x2, x3, x4) = x0 Ω;

2:

Select an initial temperature T = T0 > 0;

3:

Select a neighborhood structure N(x);

4:

Select a temperature reduction function R(T);

5:

Select the number G of iterations executed at each temperature T;

6:

Select the number of times U the temperature is reduced;

7:

Set the counter u of the number of times the temperature is reduced to 0;

8:

Repeat

9:

Set the repetition counter g = 0;

10:

Repeat

11:

Generate a solution x’ N(x);

12:

Calculate ∆x,x = f(x) – f(x’);

13:

ifx,x ≤ 0, then x ← x’;

14:

ifx,x > 0, then x ← x’ with probability exp(−∆x,x/T);

15:

g ← g + 1;

16:

Until g = G;

17:

T ← R(T);

18:

u ← u + 1;

19:

Until u = U