#### Abstract

The control strategy for protecting adjacent structures from earthquake excitations is gaining increasing significance. In this study, to improve the seismic performance, a semiactive control strategy using magnetorheological (MR) dampers to couple the adjacent structures is proposed. In this control strategy, to fully exploit the performance of MR dampers, the allocation (including the locations and the number) and fuzzy logic controller (FLC) system of MR dampers are simultaneously optimally designed by whale optimization algorithm (WOA) with a special encoding scheme. Simulation results verify that WOA provides competitive performance compared with the other three metaheuristic algorithms in terms of solution quality and robustness. Compared with other semiactive control methods including on-off, linear quadratic regulator-clipped voltage law, and WOA-FLC (optimal allocation is not considered) methods, by using much less MR dampers, the proposed control strategy can exhibit more excellent overall performance in terms of reducing the seismic responses and mitigating pounding.

#### 1. Introduction

The mutual collision between two adjacent buildings during the past major earthquakes has caused significant damage. For instance, in the 1985 Mexico City earthquake, over 40% of structures impacted mutually, and more than 15% of the structures collapsed due to the pounding [1]. In the Loma Prieta earthquake, it was reported that there were over 200 pounding cases [2]. Even though building codes were greatly improved subsequently, a multitude of cases of pounding can be observed, such as in the 2011 Christchurch earthquake [3]. In downtown areas where buildings were often built very close to each other due to limited land, devastating damages observed from seismic pounding are particularly frequent [4].

To avoid mutual pounding under earthquake excitations, most researchers proposed linking adjacent structures with passive or active control devices. Hadi and Uz [5] proposed using the passive and active dampers with optimal parameters to achieve the seismic response mitigation of the adjacent buildings. Zou et al. [6] investigated the effectiveness of the active control of the adjacent structures considering the pile-soil-structure interaction effects connected with an ideal hydraulic servo system. However, passive devices are limited to a specific range of vibration modes and lack of adaptability and versatility, and active devices highly rely on large electric power so that they will be useless and even increase the vibration amplitude once the power supply is cut off.

Semiactive control devices are highly reliable and significantly adaptable that can overcome the above-mentioned disadvantages of the passive control devices and active control devices. Therefore, recently more and more researchers have attempted to employ this kind of control device to link the adjacent structures [7]. Magnetorheological (MR) dampers, as one kind of intelligent semiactive control device, are fail-safe when the control system breaks down and can offer high adaptability and large force capacity. They have become one of the most promising control devices to reduce the vibration responses in the field of engineering [8–10]. Katebi and Zadeh [11] and Lin et al. [12] employed MR dampers to interconnect the adjacent structures with different kinds of control algorithms. The results validated that MR dampers not only can suppress the structural vibration but also can prevent structures from colliding with each other to a certain extent. Al-Fahdawi et al. [7] investigated the control effects of connecting the adjacent buildings with MR dampers and hydraulic actuators. The results verified that compared with hydraulic actuators, MR dampers can achieve better control results for the structural responses.

Nowadays various control algorithms implemented for the MR dampers have been proposed, for example, Lyapunov method [13] and clipped optimal control [14], sliding mode control [15], H_{∞} control [16], neural network control [17], and fuzzy logic control (FLC) [18]. Among these control algorithms, the FLC method has been known as a popular method. It can easily handle uncertainties and high nonlinearities of the MR damper and can provide inherent stability to the closed-loop system. Besides, it can directly calculate the MR damper control signal from the structural responses without the requirement of calculating the system control force. Abdeddaim et al. [19] investigated the performance of the FLC method for the MR dampers, which connected two adjacent structures. The results showed that this control algorithm outperforms passive-on control, passive-off control, and on-off control methods, especially in the control of the displacement and acceleration responses.

However, the parameters of the fuzzy control system that must be correctly pre-etermined for the system to function properly are difficult to be selected, as they highly depend on expert experience. Especially, designing a multi-input-multi-output FLC system is much more sophisticated when multiple MR dampers are required to be installed. Recently, it has been verified that optimally designing the FLC with metaheuristic algorithms (MAs) is surprisingly effective and efficient. Mahmoodabadi et al. [20] adopted a particle swarm optimization (PSO) algorithm to optimize the FLC for nonlinear systems. The simulation results demonstrated the superiority of the PSO-based FLC strategy over other MAs. Lin et al. [12] proposed a modified crow search algorithm (CSA) to optimize the FLC parameters for the MR dampers with the consideration of soil-structure interaction. The results validated the effectiveness of this optimal FLC.

On the other hand, the optimal arrangement of MR dampers is vitally important to the control effect, especially for the high-rise structures. Ok et al. [21] pointed out that there is no necessity to connect the adjacent structures at every single floor and significant displacement response reduction is possible with less MR dampers. However, this literature did not provide a solution for the optimal arrangement of MR dampers. Uz and Hadi [22] provided the optimal distribution of MR dampers and fuzzy rules of FLC to control the adjacent buildings by the use of GA, but the mutation operation that is a typical operation of GA cannot be conducted due to the specified encoding strategy. Besides, there was only one output of the FLC, which meant that the optimal command voltages of all the MR dampers were the same.

Recently, a nature-inspired algorithm, called whale optimization algorithm (WOA), which mimics the hunting behavior of humpback whales in nature, is proposed to solve mathematical and engineering optimization problems [23]. The results showed that the WOA outperformed other several MAs. This algorithm exhibited high local optima avoidance and fast convergence speed and was very easy to be performed as it has only two main parameters to be adapted. It has gained more and more attention in the engineering field. Pham et al. [24] used WOA to optimize resource allocation in wireless and communication networks. The results demonstrated that among several state-of-the-art algorithms, WOA was very competitive. Ebrahimgol et al. [25] proposed the application of WOA in the exergy optimization of a nuclear power plant. The results proved that the overall thermal efficiency of the Bushehr nuclear power plant was increased from 33.66% to 36.42% by using WOA, and this algorithm outperformed GA and PSO in terms of local optima avoidance and convergence. In addition, WOA has also been successfully used to solve other challenging problems such as association rule mining using fuzzy logic system [26], underwater image matching [27], structural damage identification [28], and code smell detection [29].

In this study, an intelligent semiactive control strategy employing MR dampers as the connection devices of the adjacent structures is proposed to improve the seismic performance. In this control strategy, to better control the MR dampers, an encoding scheme for the WOA is proposed to simultaneously optimize the allocations and FLC system of the MR dampers, even when the controlled buildings are high-rise type and the FLC is a multi-input-multi-output system. To the best of our knowledge, the optimal design of the MR damper distribution and the control system are rarely simultaneously considered for the coupled adjacent structures. Besides, there have been no published literatures about solving this problem using the WOA technique.

The rest of the paper is organized as follows. Section 2 builds the mathematical model for the MR damper-based adjacent buildings and derives the corresponding motion equation. Section 3 provides an overview of the WOA. In Section 4, the encoding design and the optimization steps for the proposed semiactive control scheme are described. Section 5 examined the effectiveness of the proposed control method in comparison with different semiactive control methods through numerical tests by MATLAB. Finally, the conclusions are stated in Section 6.

#### 2. Modelling the Coupled Adjacent Buildings

##### 2.1. Motion Equation of the System

As shown in Figure 1, the adjacent buildings are idealized as linear shear types, the inline floors of which are rigidly connected with MR dampers. Building 1 (the right building) and Building 2 (the left building) have (*n* + *l*) stories and *n* stories, respectively. Therefore, the coupled system has (2*n* + *l*) degrees of freedom. In this figure, _{g}(*t*) is the earthquake acceleration. Second subscripts 1 and 2 of every parameter refer to Buildings 1 and 2, respectively. For example, *m*_{i,2}, *k*_{i,2}, and *c*_{i,2} denote the mass, stiffness, and damping, respectively, of the *i*-th floor of Building 2. The governing motion equation for the MR damper-coupled adjacent buildings can be expressed as follows:where **F**(*t*) *=* {}^{T} represents damping forces of the MR dampers, **Γ**_{(2n} _{+} _{l,n)} = [**Γ**_{1}, **Γ**_{2}, , **Γ**_{n}] is the distribution matrix of the damping forces, **Λ** is a distribution vector of the seismic excitation, **X**(*t*) is the relative displacement to the ground (called displacement in short), and (*t*) and (*t*) are the velocity and acceleration vectors of the system, respectively. **X**(*t*) is expressed as follows:where *x*_{i,1} and *x*_{i,2} are the relative displacements of the *i*-th floors of Buildings 1 and 2, respectively.

In equation (1), **M**, **C**, and **K** are mass, damping, and stiffness matrices of the coupled system, respectively, which are expressed as follows:

**M**_{1}, **C**_{1}, and **K**_{1} are mass, damping, and stiffness matrices of Building 1, respectively, which are calculated by the following equations. The corresponding matrices **M**_{2}, **C**_{2}, and **K**_{2} of Building 2 can be calculated similarly.

If represents state variable; then we can rewrite equation (1) as follows:

**A** is the system matrix; **B**_{g} and **B**_{f} are the distribution matrices of the seismic excitation and the damping forces, respectively. These three matrices are defined as follows:where **I** denotes the unit matrix and **0** represents the zero matrix (vector).

If denotes the absolute acceleration (called the acceleration in short in the following sections) of the coupled system, then the output of the system can be re-expressed bywhere

In order to conveniently conduct the simulation calculation, we describe equations (5) and (7) in the form of standard state-space as follows:where **Y**(*t*) is the output vector of the system; **B**, **C**_{z}, and **D**_{f} are the statement matrices; and **U**(*t*) is the input vector. **B** and **U**(*t*) are expressed as follows:where (*t*) is the absolute acceleration (called acceleration in short in the following section) of the coupled system.

##### 2.2. Damping Force of the MR Damper

The phenomenological model is widely used to portray the dynamic behaviors of the MR damper that can accurately relate to the voltage-dependent parameters and damping force [30]. As for the above-mentioned adjacent building system, by using this model, the equation governing the damping force is expressed as follows:where *x*_{i,1} and *x*_{i,2} are the displacements of the *i*-th floor of Buildings 1 and 2, respectively. *k*_{1} presents the accumulator stiffness. *x*_{0} is the initial displacement for the spring element. *c*_{1} is viscous damping at a low velocity.where _{i,1} and _{i,2} are the velocities of the *i*-th floor of Buildings 1 and 2, respectively. *c*_{0} is viscous damping at the high velocity; denotes a factor related to the hysteresis loop; *k*_{0} represents the stiffness constant at the high velocity. *c*_{1}, *α*, and *c*_{0} in equations (11) and (12) are estimated as functions of the input voltage of the MR damper [30]. The evolutionary variable *z*_{i} is given bywhere *γ*, *β*, and *A* are shape parameters of the hysteresis loop.

#### 3. Overview of WOA

In the whale optimization algorithm (WOA), the position of prey corresponds to the global optimal solution of the problem. The algorithm initializes with random positions. These positions are updated by search agents to become randomly selected positions or the best positions in each iteration. The algorithm is acquired by the mathematical model that conducts the following encircling prey and bubble net feeding for the search agents to update their positions. The flowchart of the WOA is shown in Figure 2.

Firstly, the humpback whales can identify the position of the prey and encircle them. Since the optimum solution is unknown at the beginning, the optimal position in the current population is assumed to be the prey location or is close to the optimum. After the best search agent is specified, other search agents will try to update their positions to move toward the best search agent. This behavior is achieved by using the following equation:where *t* is the iteration, is the position vector, and *X*^{∗} is the best position obtained so far. and *C* are coefficient vectors that are expressed as follows:where *a* is linearly decreased from 2 to 0 over the course of iterations and *r* is a random vector where random numbers are uniformly distributed in the interval [0, 1]. The value ranges set for *a* and *r* can make the search vector *A* be adaptive variation, which can allow the WOA to smoothly transit between exploration and exploitation [23].

Then, the bubble net hunting with two methods including shrinking encircling and spiral updating position is conducted. The shrinking encircling mechanism is realized by decreasing the control parameter *a* in equation (15). Accordingly, the value of *A* is in the range of [–*a*, *a*] due to equation (15). The following mathematical model is used to describe the spiral updating position operation.where indicates the distance of the *i*-th whale to the best prey found so far. *b* is a constant to define the shape of the logarithmic spiral. *l* is a random number in [−1, 1]. It should be noted that whales swim in a combination path, that is, the contraction circle of their prey and a spiral path. In order to simulate this behavior, the probability of 50% is considered as follows:where *p* is a random number in [0, 1]. Based on this value, the algorithm is able to switch between either a spiral or circular movement.

Besides bubble-net predation, whales can also search for food randomly. The whale individuals search at random according to each other’s position, and this model can be expressed as follows:where is a random position vector chosen from the current population.

#### 4. The Proposed WOA-ALLO-FLC Method

To design the allocation of the MR dampers and the FLC with satisfactory performance with the WOA, the key step is to design a proper encoding structure for each whale individual in relation to the parameters to be determined, which will be detailed in the next subsection.

##### 4.1. Design of the Encoding Strategy

To begin with, the FLC parameters and the encoding strategy for fuzzy rules are described as follows:

The controller is designed with *n*_{i} inputs and *n*_{o} outputs using *n*_{imf} MFs for each input and *n*_{omf} MFs for each output. Accordingly, *n*_{imf} linguistic values are used to denote the MFs for each input variable, for example, negative, zero, and positive. Similarly, the MFs for each output variable are denoted by *n*_{omf} linguistic values, for example, large, medium, and zero. The input universes of discourse (UOD) and output UOD are normalized over [−1, 1] and [0, 2], respectively. Assume the maximum voltage is *V*_{max}, then let all the output scaling factors be equal to *V*_{max}/2. Reciprocals of the input scaling gains are set to be 50% of the corresponding input accelerations.

The fuzzy rules should be designed appropriately that is to describe the relationship between inputs and outputs of the controller by using the “if-then” form. For example, rule *i*: if *x*_{1} is , *x*_{2} is _{,} …, and *x*_{Nin} is , then *y* is *B*_{i}, where *x*_{1}, *x*_{2}, …, are the input variables of the FLC; *y* is the output variable; , , …, are the linguistic values of input variables; *B*_{i} is the fuzzy subset of the output variable. If the antecedent parameters of the rules use all the possible combinations of all the inputs, the number of the fuzzy rules is

After the structure of the FLC system is determined, the input for each rule will be accordingly determined. Therefore, in the fuzzy rules, only the output linguistic variables require encoding. In this study, the *n*_{imf} input linguistic variables are encoded with continuous integers from 1 to *n*_{imf}. For example, a string of codes that represents the fuzzy rule can be expressed as follows:

Next, the design of the encoding strategy for the distribution of MR dampers is proposed as follows:

For the sake of simplicity, let the different MR dampers linking the same adjacent floors generate the same damping force. According to equations (1) and (8), the optimization process is actually the process of determining the distribution matrix of the damping forces **Γ**_{(2n} _{+} _{l,n)} = [**Γ**_{1}, **Γ**_{2}, , **Γ**_{n}]. Based on the analysis of the motion equation in Section 2, it can be deduced that the *i*-th column vector of **Γ**_{(2n} _{+} _{l,n)} as shown below means that the *i*-th adjacent floors are not be connected with any MR dampers:

Besides, the *j*-th column vector of **Γ**_{(2n} _{+} _{l,n)} as shown below means that the *j*-th adjacent floors are connected with one MR damper:where –1 is in the *j*-th row and 1 is in the (*j* *+* *n* *+* *l*)-th row. Therefore, it can be concluded that if there are 5 pairs of adjacent floors are connected, including the 2nd, 4th, 6th, 8^{th}, and 10th floors, then **Γ**_{(2n} _{+} _{l,n)} can be expressed as follows:

Based on the above analysis, once the first *n* rows are determined, the last *n* rows will be determined accordingly because the position relationship of –1 and 1 are fixed in the nonzero column vectors. Therefore, the problem that which adjacent floors are connected with MR dampers can be solved by determining the positions of –1 in the first *n* rows of **Γ**_{(2n} _{+} _{l,n)}.

Finally, the encoding strategy for the allocations of MR dampers is designed as follows: the length of the string of codes is *n*. Real-value coding is employed. Coding numbers are continuous integers ranging from 0 to *n*_{maxD}, where *n*_{maxD} is the allowed maximum number of MR dampers linking the adjacent floors of the same height. The total number of nonzero codes is equal to the total number of the pairs of the connected adjacent floors, and the number *k* in the *i*-th place represents that the *i*-th adjacent floors are connected by *k* MR dampers. For example, a string of codes listed as below means that the 2nd, 4th, 6th, 8th, and 10th adjacent floors are connected by 1, 3, *n*_{maxD}, 1, and *n*_{maxD} MR dampers, respectively.

This string of codes contains the information of the location and number of the MR dampers, and it corresponds to **Γ**_{(2n} _{+} _{l,n)} in equation (29) in terms of the location of the MR dampers.

In conclusion, in this study, the total number of the parameters to be optimized is equal to (*n*_{rule} + *n*).

##### 4.2. Design Process of the Control Strategy

The specific steps of the design process for the proposed control method are detailed as follows:

*Step 1. *Determine the main parameters of the FLC including the MF type, number of MFs for each input/output *n*_{imf} and *n*_{omf}, and number of inputs/outputs *n*_{i} and *n*_{o}. Then calculate the number of the fuzzy rules *n*_{rule}.

*Step 2. *According to the coupled structural parameters, determine the number of the state-space equation matrices including **A**, **B**_{g}, and **C**_{z} defined in equations (6) and (8). Calculate the uncontrolled structural responses and determine the input scaling gains of the FLC. Determine the output scaling gains of the FLC based on the maximum voltage value of the chosen MR damper.

*Step 3. *Determine the total number of parameters to be optimized denoted as *N*_{para}. Define the fitness function and let it be equal to the objective function (see equation (26)).

*Step 4. *Specify the maximum total number of MR dampers employed *N*_{maxD} and provide the parameter boundaries for the damper allocation and the fuzzy rules according to the *n*_{maxD} defined in Section 4.1 and *n*_{imf}, respectively.

*Step 5. *Initialize the WOA parameters, such as the population size *N* and iteration number *T*_{max}. Randomly generate initial position *X*(0) = [*X*_{1}, *X*_{2}, , *X*_{N}] for the population, and let the initial best fitness value be equal to 1 as this is a minimization problem.

*Step 6. **t* = 0. Start the iteration process.

*Step 7. *is shown in Table 1.

*Step 8. *For the whole population, update the best position *X*^{∗}.

*Step 9. *is shown in Table 2.

*Step 10. *Judge whether *t* *T*_{max}. If yes, repeat Steps 7–9; else go to Step 11.

*Step 11. *Find out the global best position *X*^{∗}. Determine the optimal MR damper allocation and the optimal FLC system.

#### 5. Numerical Study

The adjacent 20-storey building (Building 1) and 10-storey building (Building 2) are linked with MR dampers with a maximum force capacity of 1,000 kN [31]. The structural parameters including mass, stiffness, and damping coefficient for both buildings are listed in Table 3. Considering that the 1940 El Centro earthquake is a far-field historical ground motion record usually chosen as the seismic excitation for the optimization design of the semiactive control strategy with MR dampers [32–34], in this study, this earthquake is also selected as the excitation of the buildings.

##### 5.1. The Optimization Results and Algorithm Comparison

The parameter conditions for the encoding strategy are listed in Table 4. The top floor accelerations of both buildings are set to be inputs. Assume that every pair of the adjacent floors are connected and controlled. Therefore, the FLC to be designed is a 2-input-10-output system. The linguistic values for each input variable include negative (N), zero (ZO), and positive (P), and the linguistic values for each output variable include large (L), medium (M), and zero (ZO). For each input and output, the membership functions using a generalized bell-shaped type are shown in Figure 3.

**(a)**

**(b)**

For the sake of the security of the structure and the occupants in the buildings, the maximum displacements of both buildings are required to be reduced. Therefore, we define the objective function as follows:where is a weighting coefficient.

The second subscripts of *J*_{1,1} and *J*_{1,2} refer to Buildings 1 and 2, respectively. is the maximum uncontrolled displacement of each building. is the controlled displacement of the corresponding floor of each building. In this study, to determine the value of the weighting coefficient *α* in equation (26), the analysis about the compromises between the objectives *J*_{1} and *J*_{2} is conducted, as shown in Figure 4.

As seen from Figure 4, simultaneously minimizing both objectives cannot be realized in the optimization whatever *α* is. Nevertheless, this figure indicates that when *α* = 0.2 an excellent comprehensive control effect in terms of both displacement responses can be obtained. Therefore, *α* = 0.2 is adopted as the weight value of the objective function in the subsequent studies.

GA [21, 22, 32] and PSO [20] are metaheuristic algorithms that search the optimal solution via simulating natural evolutionary process and via simulating migration and clustering behavior of birds, respectively. These two algorithms are often used as benchmarks for algorithm comparison [25]. Therefore, in this study, GA, PSO, and CSA [35] are used for comparison to validate the performance of WOA. The controlling parameters of these three algorithms are listed in Table 5. Other parameters for all of these algorithms are chosen as: population size *N* = 20, iteration number *T*_{max} = 100, independent runs = 30. The convergence curves of the best solutions for these algorithms are shown in Figure 5.

The figure shows that among these four algorithms, WOA can achieve the smallest objective value. Detail results for the objective values including the best, mean, worst, and standard deviation (Std. Dev.) values are listed in Table 6. The table demonstrates that among these four indices for the objective value, WOA can obtain three better quantities than its competitors. WOA performs best in terms of convergence accuracy as it can obtain the smallest mean value. The robustness of WOA is very competitive as it comes second to that of CSA in terms of the Std. Dev. value.

The optimal results obtained with the proposed WOA-ALLO-FLC are shown as follows: The allocation of the MR dampers is that all the 8th, 9th, and 10th adjacent floors are connected with 4 MR dampers. That means the total number of MR dampers is 12 although *N*_{maxD} is set to be 20. The optimal fuzzy rules are listed in Table 7. Since only the top three adjacent floors are linked, as for the fuzzy rules, in the practical application what we concern about are only the linguistic values in bold font in the table. Accordingly, the curve surfaces of fuzzy rules for the top three floors are presented in Figure 6.

**(a)**

**(b)**

**(c)**

##### 5.2. Performance Comparison among Different Control Strategies

The control results of the proposed WOA-ALLO-FLC method using only 12 MR dampers are compared with those of on-off control [12], linear quadratic regulator based on clipped voltage law (LQR-CVL) [12] where LQR is a linear quadratic optimal control with the full-state feedback as input that is often used for calculating the desired controlling force [6, 13, 14], and WOA-FLC methods where only the FLC is optimized with WOA using the proposed encoding scheme. In the latter three control methods, every pair of adjacent floors are connected with two MR dampers. That is, a total number of 20 MR dampers are employed in these three control methods.

The control results of the peak displacements of all the floors with different control methods for Buildings 1 and 2 are shown in Figures 7 and 8, respectively. As for Building 1, it is obvious that WOA-ALLO-FLC outperforms the other three control methods, and LQR-CVL performs better than WOA-FLC and on-off methods. As for Building 2, the control effect of the WOA-FLC control is close to that of WOA-ALLO-FLC. However, the maximum displacement is controlled slightly better by WOA-ALLO-FLC. Besides, the on-off control outperforms the LQR-CVL control. Table 8 lists the control results of the maximum displacements, where the reduction ratios of the responses with and without control are listed in the parentheses. Among all these control strategies, WOA-ALLO-FLC achieves the best control effects of the maximum displacements for Buildings 1 and 2 with the reduction ratio of 39% and 65%, respectively, which coincides with the objective of the optimization with WOA as shown in equation (26).

Time histories of the maximum (top floor) displacements and accelerations with the WOA-ALLO-FLC and without control for Building 1 are shown in Figures 9 and 10, respectively. Time histories of the corresponding responses for Building 2 are shown in Figures 11 and 12, respectively. The results show that the WOA-ALLO-FLC method can also simultaneously reduce the maximum accelerations of both buildings, especially for Building 2.

Apart from *J*_{1,1} and *J*_{1,2} defined in equation (27), a set of criteria is used to evaluate the performance of different control methods as follows:where subscripts 1 and 2 refer to Buildings 1 and 2, respectively. and are the maximum acceleration and maximum interstory drift, respectively, of each uncontrolled building. and are the maximum acceleration and maximum interstory drift, respectively, of the corresponding floors of each controlled building. ,, and are the displacement, acceleration, and interstory drift, respectively, of the top floor of each uncontrolled building. rms is the abbreviation of the root mean square. These performance indexes are compared in Table 9 where the numbers in bold font are the best index values. Among these 13 performance indexes, there are 7, 3, and 3 best quantities that are achieved by the WOA-ALLO-FLC, WOA-FLC, and on-off control methods, respectively. In addition, it is only the WOA-ALLO-FLC method that can obtain all the “smaller than 1” performance indexes, indicating that the proposed method can reduce all the displacement, acceleration, and interstory drift responses in terms of the maximum value and root mean square value, although the optimization objective for the design of WOA-ALLO-FLC is only to minimize the maximum displacements. It can be concluded that compared with the other three control methods, the proposed WOA-ALLO-FLC method performs best in reducing structural responses.

As observed from Figures 7 and 8, for both buildings, the higher the floors are, the larger the peak displacements will become. Therefore, a high risk of pounding is expected on the 10th floor of the adjacent buildings. The pounding reduction is examined by the investigation of the minimum separation gap required to avoid mutual impact (called anticollision gap in short) in view of the 10th-floor displacements of both buildings [36]. The 10th-floor displacements of both buildings with the WOA-ALLO-FLC and without control are shown in Figure 13, where UncD and CtrD represent the displacement without control and with WOA-ALLO-FLC, respectively. The figure demonstrates that the relative motion between the adjacent buildings is obviously abated by the proposed control method. The minimum anticollision spacing with different control strategies is compared in Table 10, where the reduction ratios of the controlled gaps and the uncontrolled gap are listed in the parentheses. The results indicate that the largest reduction ratio of 66% is achieved with the proposed strategy, meaning that this strategy is the most effective in pounding mitigation. The control effect of the LQR-CVL method is close to that of the WOA-FLC method, both of which outperform the on-off control method.

#### 6. Conclusion

In this study, MR dampers are used as connection devices for adjacent structures, and an optimal design strategy for allocation and fuzzy control of MR dampers by use of WOA is proposed to enhance the seismic performance of adjacent structures. The main conclusions are listed as follows:(1)WOA is very effective in designing the control strategy to minimize the maximum displacements of the adjacent buildings. The comparison results show that WOA is very promising as it outperforms GA, PSO, and CSA in terms of convergence accuracy. In addition, the robustness of WOA is close to that of CSA and better than that of GA and PSO.(2)In other compared control methods, including on-off, LQR-CVL, and WOA-FLC (no allocation optimization is considered) methods, 20 MR dampers are used to connect the adjacent buildings, while in the proposed WOA-ALLO-FLC method, the adjacent buildings are connected using only 12 MR dampers. The results demonstrate that the proposed method with much less MR dampers shows comprehensive performance superiority over the other three control strategies in terms of the structural responses and pounding mitigation, which indicates that the optimal allocation of MR dampers is very necessary.(3)Among all these compared control methods, it is only WOA-ALLO-FLC that can mitigate simultaneously all the displacement, acceleration, and interstory drift responses for the adjacent buildings. What is more, it can achieve the largest reduction ratios of 39% and 65% for the maximum displacements for Buildings 1 and 2, respectively, and obtain the largest reduction ratio of 66% for anticollision gap.

The proposed control strategy will enlighten investigation on the control system of novel high-rise structures as well as the adjacent structures with consideration of the factors such as nonlinear structural characteristics and pile-soil-structure interaction. Besides, the proposed optimization strategy can be further studied in terms of multi-objective optimization with the Pareto front solution.

#### Nomenclature/Abbreviations

MR: | Magnetorheological |

MA: | Metaheuristic algorithm |

WOA: | Whale optimization algorithm |

PSO: | Particle swarm optimization |

GA: | Genetic algorithm |

CSA: | Crow search algorithm |

LQR: | Linear quadratic regulator |

CVL: | Clipped voltage law |

MF: | Membership function |

FLC: | Fuzzy logic controller |

ALLO: | Allocation |

n: | Number of the floors of the shorter building |

n_{i}: | Number of the inputs of FLC |

N_{para}: | Total number of the parameters to be optimized |

n_{o}: | Number of the outputs of FLC |

n_{imf}: | Number of the MFs for each input |

n_{omf}: | Number of the MFs for each output |

n_{rule}: | Number of the fuzzy rules |

n_{maxD}: | Allowed maximum number of MR dampers linking the adjacent floors of the same height |

N_{maxD}: | Allowed maximum total number of MR dampers |

rms: | Root mean square. |

#### Data Availability

The data generated or analyzed during this study are included within the article.

#### Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

#### Acknowledgments

This work was supported by the Scientific Research Foundation for the Introduction of Talents of Minjiang University, Fujian Province, under Grant no. MJY20029 and the Science and Technology Project Founded by Ningde City, Fujian Province, under Grant no. 20190006.