Research Article

Seismic Control of Tall Buildings Using Distributed Multiple Tuned Mass Dampers

Algorithm 6

NSGA-II.
(1)population = INITIALIZEPOPULATION()
(2)repeat
(3)repeat
(4)  {parent1, parent2} = MAKESELECTION (population)
(5)  if rnd(1)  crossoverProbability
(6)   {offspring1, offspring2} = CROSSOVER(parent1, parent2)
(7)   REPAIR(offsprint1, offspring2)
(8)   COMPUTEFITNESS(offsprint1, offspring2)
(9)  end if
(10)  if rnd(1)  mutationProbability
(11)   {offspring1, offspring2} = MUTATION(parent1, parent2)
(12)   REPAIR(offsprint1, offspring2)
(13)   COMPUTEFITNESS(offsprint1, offspring2)
(14)until size(population)  M
(15) tempPopulation = population
(16) newPopulation = [ ]
(17)repeat
(18)   = PARETOFRONT(tempPopulation)
(19)  ps = CROWDINGDISTANCE(p)
(20)  newPopulation = newPopulation + ps
(21)  tempPopulation = tempPopulation-ps
(22)until size(tempPopulation) > 2
(23) population = newPopulation
(24)until generationNumber  N