| Algorithm 1 Location Refinement |
| Input: and |
| Output: Location of node i |
| While (T > 0 and < ω2) |
| Location initiation; //centroid algorithm |
| While ( < ω1) node i updates its location according to step size calculated by ; |
| node i updates its location according to step size calculated by ; |
| end; |