Research Article
Differential Evolution for Lifetime Maximization of Heterogeneous Wireless Sensor Networks
Pseudocode 2
The pseudocode of recombination operation.
/* recombination operation */ | for 1: popsize % for every chromosome | % randomly generates different integers and | each integer value belong . | sequ = randperm(); | % randomly choose one critical target | rnum = randint(1,1,[1, numOfCritialTarget]); | % find the corresponding sensors | rt = CritialTargetMatrix(rnum,:); | for 1: % all corresponding sensors | pop(i,rt(j)) = sequ(j); % recombination | end for | end for |
|