Algorithm 1 Proposed ECTCO algorithm |
Input:K,B,,,. ,,,,,,,,,. Output:.
-
1:
Initialize: compute by and initialize all the matrices in Equation (22).
-
2:
solve the SDP problem Equation (22) without the rank-1 constraint to get its optimal solution .
-
3:
extract the first elements from the last column of as .
-
4:
ifthen
-
5:
construct from .
-
6:
else
-
7:
for
to L
do
-
8:
generate random column vector .
-
9:
obtain random sample by offloading probability based stochastic mapping method according to Equation (25).
-
10:
;
-
11:
repeat
-
12:
if
then
-
13:
;
-
14:
else
-
15:
compute ;
-
16:
end if
-
17:
compute by and Equation (8);
-
18:
;
-
19:
until
-
20:
if
then
-
21:
discard the random sample .
-
22:
else
-
23:
as feasible solution ,compute the energy cost by and Equation (14) as .
-
24:
end if
-
25:
end for
-
26:
choose the solution among that yields the minimum energy cost: .
-
27:
compare with local computing only and cloud computing only solutions, update the one that yields the minimum energy cost as .
-
28:
end if
|