Application of the Improved Multipopulation Genetic Algorithm in the TMD Controlled System considering Soil-Structure Interaction
Algorithm 2
The implementation process of the exchange of optimal individuals among multiple groups.
Step 1: for i = 1: Population number
[The best individual of the i population. The line number of the best individual] = min (obj{i});
Step 2: n = i + 1;
if n > Population number
n = mod (n, Population number);
end
Step 3: [Worst individual value of the nth population, The row number of the worst individual value] = max (obj{n});
Step 4: Chrom{n}(The row number of the worst individual,) = Chrom{i}(The line number of the best individual);
obj{n}(The row number of the worst individual) = obj{i}(The line number of the best individual);
end
Step 1: find the best individual in the i-th population. Step 2: realize the linkage between each population. Step 3: find the worst individual in the n-th population. Step 4: replace the worst individual in the n-th population with the best individual in the i-th population, and cycle by population number until all the worst individuals are replaced by the best individuals.