|
Algorithm 1 Pseudo-code of IMO-CADE |
Input: Algorithm parameters: ; WSN parameters: Output: The best solution
-
1:
Initialize the population with solutions;
-
2:
Evaluate the population and set ;
-
3:
For each operator, set and ;
-
4:
Set ;
-
5:
whiledo
-
6:
Set , ;
-
7:
Sort the solutions in based on the feasibility rules from the best to the worst;
-
8:
For each solution in , set according to Equation (21);
-
9:
For each solution, calculate based on Equation (22);
-
10:
for
to
do
-
11:
Select the operator based on the selection probability;
-
12:
Calculate and based on Equations (23) and (24), respectively;
-
13:
Generate and deal with the violated variables based on Equation (13);
-
14:
Evaluate , , and ;
-
15:
end for
-
16:
;
-
17:
For each solution in , calculate under the current situation;
-
18:
for
to
do
-
19:
if
then
-
20:
;
-
21:
Calculate based on Equation (17) and save it into ;
-
22:
and ;
-
23:
Replace with ;
-
24:
else
-
25:
Set and save it into ;
-
26:
end if
-
27:
end for
-
28:
Update and ;
-
29:
for
to 2 do
-
30:
Calculate based on Equation (18);
-
31:
Update based on Equation (20);
-
32:
end for
-
33:
end while
|