|
Algorithm 2 RR strategy |
-
1:
Generate parameters for consumer allocation
-
2:
Define global variable
-
3:
while (user < ) and (min() >= 0) do
-
4:
if Optimisation needs then
-
5:
Load consumer preferences. size from preference array
-
6:
Call Optimisation Function under variables preferences: , ,
-
7:
Number of user ++
-
8:
if ( equals to 0) then
-
9:
Break
-
10:
end if
-
11:
end if(No consumer to optimise)
-
12:
end while
|