Research Article

Optimal Allocation and Control of Magnetorheological Dampers for Enhancing Seismic Performance of the Adjacent Structures Using Whale Optimization Algorithm

Table 1

The pseudocode of Step 7 of the design process.

For each individual position, calculate the fitness value with the following steps:
Judge whether the total number of MR dampers is smaller than NmaxD.
If yes,
   find out the information of the MR damper allocation, including which pairs of adjacent floors are linked by
   MR dampers and corresponding damper number for each pair of the adjacent floor
   determine the matrices Γ(2n+l,n), B, and Df defined in equations (1), (10), and (8), respectively
   generate an FLC
   calculate the fitness value according to the objective function
else
   let the fitness value = 1
end