Algorithm 1 Beam-forming Algorithm for A Given Cluster |
-
Require:
-
Ensure:
-
1:
Initialize T, .
-
2:
= Ø, = Ø, = Ø.
-
3:
Randomly initialize .
-
4:
← the gradient of f at .
-
5:
Calculate the updating direction = −.
-
6:
Obtain the optimal step size based on the Armijo rule.
-
7:
, .
-
8:
← the gradient of f at .
-
9:
.
-
10:
.
-
11:
while
do
-
12:
.
-
13:
Insert to .
-
14:
Insert to .
-
15:
Insert to .
-
16:
L← the number of the elements in .
-
17:
if then
-
18:
Pop the first element in .
-
19:
Pop the first element in .
-
20:
Pop the first element in .
-
21:
L←.
-
22:
end if
-
23:
(Back Propagating)
-
24:
for i = L:−1:1 do
-
25:
the i-th element in .
-
26:
the i-th element in .
-
27:
the i-th element in .
-
28:
.
-
29:
.
-
30:
end for
-
31:
(Forward Propagating)
-
32:
.
-
33:
for i = 1:L do
-
34:
the i-th element in .
-
35:
the i-th element in .
-
36:
the i-th element in .
-
37:
.
-
38:
.
-
39:
end for
-
40:
.
-
41:
steps (6)–(10)
-
42:
end while
|