Input: Network and subnet size

Output: location coordinates of WLR

If t(current temperature) > tt then

Assign variable £ = f(s) − f(s0) and if £ < 0 then

Set s0 = s;

Else

Select the random number r between 0 and 1

Determine ε = exp(−£/t)

Check if r < ε then

Set s0 = s;

Return (s0)