1 Introduction

The mitigation of destructive effects caused by natural hazards, such as strong earthquakes and high winds is of major concern in the structural engineering community. Over the past few decades, numerous efforts have been conducted to develop versatile structural control schemes for maintaining the safety and serviceability of civil engineering structures under natural hazards (Peng and Li 2019). Structural control is usually categorized into passive, active, semi-active, and hybrid controls (Housner et al. 1997). Among these modalities, passive control has been significantly studied and applied to many engineering structures due to its simple mechanism and zero power requirement. However, the passive control cannot adapt to changing structural properties or varying loading conditions and; thus, its effectiveness is limited. Different from passive control, active control uses the external energy supplied by actuators to exert control forces on structures. Therefore, active control is usually characterized by many attractive features, such as high adaptability and large force capacity. However, active control is suffered from stability and reliability problems as well as large power consumption problems in practice. In this respect, semi-active control, which adjusts the control device’s behavior by modifying the physical properties of embedded smart materials or mechanical systems, not only possesses the reliability of passive control and the adaptability of active control, but also has a small power requirement. Hybrid control, generally consisting of passive and active control modalities, is a feasible solution to the multilevel earthquake-resistant design of engineering structures, but it often occupies a large space. Therefore, semi-active control has drawn increasing attention from engineers and researchers in recent years.

As a kind of fail-safe device for the semi-active control system, magnetorheological (MR) damper exhibits high reliability and stability, but its inherent nonlinear hysteretic nature has brought many difficulties and challenges in the design of control strategy (Zhang and Peng 2020). Developing an effective and robust control strategy is of vital importance to utilize the full capacity of MR damper. In the past two decades, various control algorithms have been proposed for MR damper-based structural systems (Behboodi et al. 2021; Zhao et al. 2019). In 1996, Dyke et al. proposed a clipped-optimal control algorithm based on the acceleration feedback to alter the behavior of MR damper (Dyke et al. 1996, 1998). Later, some improved versions of the clipped-optimal control algorithm have been developed for providing more effective and efficient control (Pohoryles and Duffour 2015; Yoshida and Dyke 2004; Yuen et al. 2007). Apart from the clipped-optimal control family, many other semi-active control algorithms, such as the decentralized output feedback polynomial controller, modulated homogeneous friction algorithm, decentralized bang−bang control algorithm, and Lyapunov’s direct approach have been developed for MR damper-based structural systems (Cha et al. 2013; Dyke and Spencer 1997; Jansen and Dyke 2000). The above-mentioned algorithms are usually classified into traditional control strategy, in which a primary controller, such as the linear quadratic regulator (LQR) and Lyapunov algorithms, is used to provide reference control force for inducing a secondary controller to produce the actual control force. Therefore, the traditional control strategy relies on the accurate mathematical model associated with the dynamics of controlled structures. However, it is not easy to establish an exact model that well matches the structural dynamics, since structural properties, external loadings and measurements are usually full of nonlinearities and uncertainties (Chakraborty and Debbarma 2011; Li et al. 2010).

As an alternative to the traditional control strategy, one promising strategy, i.e., fuzzy logic control (FLC), is less sensitive to the uncertainties associated with structural dynamics, because it mainly uses linguistic instructions based on the human expertise as a basis for the control strategy. The inherent robustness and ability to accommodate uncertainty and imprecision have provided FLC a key advantage over traditional control strategies. Choi et al. developed a semi-active fuzzy control strategy for MR damper-based structural system (Choi et al. 2004), in which the required voltage can be generated for producing a desired damper force. The MR damper system based on the FLC technique is further employed for seismic protection of base-isolated building structures (Jung et al. 2006), cable-stayed bridges (Ok et al. 2007), high-rise buildings (Bathaei et al. 2018), and offshore jacket platforms (Ghadimi and Taghikhany 2021).

Although FLC has been applied to various scenarios of controlled structures and systems, the design of fuzzy membership functions and rule base remains a challenging task, which is often subjective and time consuming. It is mainly because there are no provided routines for determining the parameters of membership functions and rule base. These parameters are usually selected based on the trial-and-error investigation of control effectiveness. To overcome this problem, some optimization-based methods have been developed to identify fuzzy rules and adjust membership functions by advanced optimization algorithms, such as genetic algorithm (GA) (Ali and Ramaswamy 2009), particle swarm optimization algorithm (Marinaki et al. 2011), and whale optimization algorithm (Azizi et al. 2019). Among these optimization algorithms, GA is the most widely used one. For example, to enhance the performance of FLC used for an MR damper-based building structure against earthquake ground motions, Yan and Zhou applied GA to tune fuzzy rules, in which the weighted multiobjective function is used to consider two objectives, i.e., minimizing the maximum structural displacement and acceleration (Yan and Zhou 2006). Dounis et al. developed an evolutionary fuzzy logic controller to modulate the input voltage of MR damper for reducing the seismic response of a base-isolated structure. In the design procedure, GA was employed to tune membership functions (Dounis et al. 2007). Aimed at attenuating the seismic responses of a base-isolated structure equipped with the FLC-driven MR damper system, Ali and Ramaswamy used GA to optimize both membership functions and rule base for obtaining an optimal fuzzy controller, in which the weighted multiobjective function is adopted to minimize bearing displacement and maintain the magnitude of base shear and floor acceleration (Ali and Ramaswamy 2008).

In the aforementioned studies, the control objectives for GA-optimized fuzzy controllers are all combined by weighting factors to form a onefold function-based criterion. However, a trial-and-error procedure may be required for selecting appropriate weighting factors. Some researchers try to solve multiobjective problems by introducing the nondominated sorting genetic algorithm (NSGA-II). This optimization algorithm not only allows several competing physical quantities to be included simultaneously in controller optimization, but also provides a set of Pareto-optimal solutions, instead of a single solution. For example, to ensure both the safety and comfort of a MR damper-based structure, Shook et al. applied the NSGS-II scheme to optimize fuzzy logic controllers, in which four competitive objectives, i.e., peak interstory drift, peak acceleration, RMS of interstory drift and RMS of acceleration were considered in parallel (Shook et al. 2008b). Besides, the NSGS-II has also been successfully applied to optimize the FLC-driven MR damper-based control system in base-isolated structures (Kim and Roschke 2006, 2007; Mehrkian et al. 2019; Shook et al. 2008a), torsionally-responsive structures (Shook et al. 2009), adjacent buildings (Uz and Hadi 2014), nonlinear and plan-asymmetric structural systems (Zafarani et al. 2018).

It is noted that, in previous studies, the attention is mainly focused on minimizing the structural responses, and little attention has been given to the control requirement (Huang et al. 2009). In fact, imparting attention to the control requirement is not only an economical consideration, but also a safety consideration that helps to design appropriate control devices. If a structure is equipped with an unsuitable control device whose maximum control requirement is much lower than the desired level, the performance of the control system will be largely discounted in some situations of extreme hazards. For instance, the dampers deployed in a building of the Northeastern University of Technology, Japan experienced serious impact, which caused damage to the main structure during the Great East Japan earthquake due to the insufficient design of damper stroke (Peng et al. 2021a). Therefore, both structural response and control force need to be considered when optimizing fuzzy logic controllers, and meanwhile, the corresponding seismic performance of MR damper-based structures needs to be addressed.

On the other hand, membership functions and rule base are two important and indispensable parts of a complete fuzzy logic controller, which have been widely investigated in the literature. In previous studies, both the membership functions and fuzzy rules are either assumed to be symmetric or asymmetric. It is noted that asymmetric membership functions (fuzzy rules) may improve the controller’s performance by introducing additional design parameters for providing more variability. In contrast, symmetric membership functions (fuzzy rules) may improve computational efficiency by largely reducing the number of design parameters. Therefore, it is necessary to explore the influence of symmetric and asymmetric parameter assumptions on the FLC performance for achieving a balance between computational efficiency and effectiveness. However, related research works are rare to see, although this topic is of guiding significance for the FLC design. Besides, the fuzzy output is usually defined as the current (voltage) by which the MR damper force can be calculated using the extended Bouc−Wen model (Spencer et al. 1997). It is worth noting that the evaluation of the extended Bouc−Wen model needs to solve differential equations, which will complicate the optimization process and raise the computational cost. To improve the optimization efficiency, the optimization process can be simplified by directly defining the control force as the fuzzy output. In this regard, an inverse modeling technique needs to be developed for identifying the input current for MR damper based on the optimum control force calculated by the optimized fuzzy controller. Inverting a forward model of MR damper is the most direct approach to develop an inverse model for current identification. However, due to the highly nonlinear hysteretic nature, the commonly used forward MR damper models are usually composed of some complex equations, such as transcendental equation, differential equation, and power function, which makes it difficult to derive a direct inversion of these forward models. In order to bypass the complexity of Bouc−Wen models, a modified MR damper model by combining the Bingham-plastic model with a refined constitutive model for MR fluids was proposed very recently (Pei et al. 2021). It is anticipated that the inverse modeling of MR damper can be facilitated by virtue of the modified MR damper model.

The remainder of this paper is structured as follows. In Sect. 2, a human-designed fuzzy logic controller (FLC-HD) is developed. In Sect. 3, an inverse modeling technique is proposed to identify the input current for MR damper to track the desired force provided by the fuzzy logic controller. Section 4 describes the main procedure of optimizing the human-designed fuzzy logic controller using the NSGA-II, and then designs a series of optimization cases by varying the definitions of membership function and rule base. In Sect. 5, the optimization results are analyzed, and the optimized fuzzy controller is combined with the proposed inverse modeling technique for constructing improved semi-active control systems, whose effectiveness and robustness are investigated by conducting a series of numerical simulations on example structures. The conclusions and prospects are summarized in Sect. 6.

2 Human-designed fuzzy logic controller

The FLC mainly uses linguistic instructions based on the human expert knowledge as a basis for control strategy. A fuzzy logic controller can be embedded into a closed-loop system by incorporating human expertise into linguistic IFTHEN rules. A classical fuzzy logic controller is mainly composed of three parts, i.e., fuzzification interface, fuzzy rule and fuzzy inference design, and defuzzification interface. A schematic view of the general architecture of a fuzzy logic controller is shown in Fig. 1.

Fig. 1
figure 1

General architecture of a classical fuzzy logic controller

2.1 Fuzzification interface

As shown in Fig. 1, to design a fuzzy logic controller, the first step is to choose appropriate input and output variables. In this study, the structure acceleration, which can be readily provided by accelerometers, and structural velocity are selected as fuzzy input. The control force is defined as the output variable. Next, a reasonable range of fuzzy input needs to be defined for two input variables. Here, the ranges of two input variables are respectively defined as 75% of the maximum uncontrolled velocity and acceleration responses, which are within the reasonable range (70 ~ 80%) provided in the literature (Uz and Hadi 2014; Yan and Zhou 2006). It is mainly because the structural responses under fuzzy logic control can be mostly covered by 70 ~ 80% of the uncontrolled structural responses. A too small or too large range will cause a rare or excessive use of the outermost membership functions, and thus limit the variability of the control system. Then, for convenience in defining the membership functions, the values of input variables are normalized by the corresponding ranges before entering the fuzzy logic controller. The normalized input data are then converted into linguistic variables through fuzzification. Here, the linguistic variables for both input and output values are divided into seven fuzzy variables, as listed in Table 1.

Table 1 The linguistic variables for input and output values of the FLC

There are two types of membership functions that are often adopted for input and output variables i.e., the Gaussian and generalized bell-shaped membership functions, as shown in Fig. 1. The main reason is that these two types of membership functions can approximate almost all other types of membership functions by appropriately defining their parameters, which are respectively defined as follows (Ahlawat and Ramaswamy 2001; Kim and Roschke 2006):

$$\mu_G = e^{\left( { - \frac{{\left( {x - b} \right)^2 }}{2a^2 }} \right)}$$
(1)
$$\mu_{\text{B}} = \frac{1}{{1 + \left| {{{\left( {x - c} \right)} / d}} \right|^{2e} }}$$
(2)

where a and b are the width (standard deviation) and central position of the Gaussian membership function, respectively; c and e are the central position and slope of the generalized bell-shaped membership function; d is the half-width of the generalized bell-shaped membership function at 0.5 membership grade.

For the human-designed fuzzy logic controller in this work, the evenly distributed Gaussian membership functions with the overlap ratio of 0.6 are adopted for describing the central parts of both input and output variables; and the spline-based Z- and S-shaped membership functions are respectively used to describe the two outermost parts of both input and output variables, as expressed by (Hanumanthakari 2021):

$$\mu_Z = \left\{ \begin{gathered} 1, \, x \le g \hfill \\ 1 - 2\left( {\frac{x - g}{{h - g}}} \right)^2 , \, g \le x \le \frac{g + h}{2} \hfill \\ 2\left( {\frac{x - h}{{h - g}}} \right)^2 , \, \frac{g + h}{2} \le x \le h \hfill \\ 0, \, x \ge h \hfill \\ \end{gathered} \right.,\quad \mu_S = \left\{ \begin{gathered} 1, \, x \le p \hfill \\ 2\left( {\frac{x - p}{{q - p}}} \right)^2 , \, p \le x \le \frac{p + q}{2} \hfill \\ 1 - 2\left( {\frac{x - q}{{q - p}}} \right)^2 , \, \frac{p + q}{2} \le x \le q \hfill \\ 0, \, x \ge q \hfill \\ \end{gathered} \right.$$
(3)

where g and h are the central position and width of the spline-based Z-shaped membership function; p and q are the central position and width of the spline-based S-shaped membership function. For clarity, the initial membership functions for input and output variables of the human-designed fuzzy logic controller are illustrated in Fig. 2.

Fig. 2
figure 2

Initial membership functions for input and output variables of the human-designed fuzzy logic controller. Note: i = 1, 2, 3; i = 1 represents input 1, i = 2 represents Input 2, and i = 3 represents output

2.2 Fuzzy rule and inference design

Inference engine is the kernel of a fuzzy logic controller, which characterizes the transformation from input to output. From the perspective of structural safety and comfort, in this work, the fundamental principle of devising a human-designed fuzzy logic controller is to minimize both structural displacement and acceleration. IFTHEN rules are employed for constructing the rule base of the fuzzy logic controller. An example of the if-premise-then-consequent statement can be expressed as:

If the structure velocity is PL and acceleration is PL, then the control force is NL.

To design an appropriate rule base for the fuzzy logic controller, it is necessary to observe the structural motion states and understand the system dynamics. For simplicity, a sinusoidal movement is assumed and the corresponding structural responses, including displacement, velocity, and acceleration are illustrated in Fig. 3. As observed, one may find distinctive characteristics of structural motion states, which can be summarized as follows:

Fig. 3
figure 3

Structural motion states under a sinusoidal movement

State 1: Structural acceleration and velocity are both positive (or negative), and the absolute value of the former is increasing while the latter is decreasing; structural displacement is increasing, indicating that the structure is moving away from the initial position. Therefore, the control force should be large to suppress the structural motion.

State 2: Structural acceleration and velocity are opposite in sign, and the absolute value of the former is decreasing while the latter is increasing; structural displacement is decreasing, indicating that the structure is returning toward the initial position. Therefore, the control force can be small or zero.

Based on the two states summarized above, a standard symmetric rule base is devised, as shown in Table 2.

Table 2 Rule base for the human-designed fuzzy logic controller

2.3 Defuzzification interface

As the third part of a fuzzy logic controller, the defuzzification interface describes the mapping from the space of fuzzy outputs to crisp outputs. In this study, the center of gravity method is used to determine the crisp control output. For the jth rule of the ith input variables, the command force Fi calculated by the selected defuzzification method is expressed by (Teng et al. 2000):

$$F_i = \frac{{\sum_{j = 1}^{n_r } {c_i^{\left( j \right)} \int {\mu_i^{\left( j \right)} } } }}{{\sum_{j = 1}^{n_r } {\int {\mu_i^{\left( j \right)} } } }}$$
(4)

where nr represents the number of fuzzy rules; \(\mu_i^{\left( j \right)}\) denotes the membership function corresponding to the output variable defined in the consequent statement of the jth rule of the ith input variable; \(c_i^{\left( j \right)}\) denotes the center of the membership function \(\mu_i^{\left( j \right)}\).

3 Inverse modeling technique for current identification of MR damper

Since the force generated by MR damper is directly controlled by the input current, an inverse model or modeling technique aimed at current identification needs to be proposed, in order to induce MR damper to produce the damping force for approaching the reference force provided by the fuzzy logic controller. In this section, an iterative force tracking technique is adopted to combine with a forward model to derive the optimum current for MR damper.

3.1 Forward model

In our previous study, a simple modified Bingham-plastic model with clear physical meanings and high accuracy was proposed to characterize the dynamic behaviors of MR dampers (Pei et al. 2021). In this work, this forward model is adopted to calculate the damper force as well as further establish an inverse modeling technique for MR damper. This modified Bingham-plastic model is constructed by combing a modified Coulomb friction element in parallel with a linear spring and a hysteretic operator, which is defined as follows (Pei et al. 2021):

$$F_{\text{mr}} = kx + \lambda f_y + \xi f_h$$
(5)

where k is the spring stiffness; λ is the coefficient for controlling the low-velocity stress:

$$\lambda = \frac{2}{\pi }{\text{sgn}} \left( {\dot{x}} \right)\arctan \left( {{{\left| {\dot{x}} \right|} / {\dot{x}_b }}} \right)$$
(6)

and ξ is the hysteretic operator:

$$\xi = \arctan \left\{ {{{\left[ {\dot{x} - \dot{x}_H {\text{sgn}} \left( x \right)} \right]} / {\dot{x}_a }}} \right\}$$
(7)

fy and fh are the yielding and hysteretic forces, respectively; \(\dot{x}_a\) and \(\dot{x}_b\) are two different reference velocities for the nondimensional purpose; \(\dot{x}_H\) is the hysteretic velocity. There are six parameters involved in this model, including three force-related parameters (k, fy, and fh) and three displacement-related parameters (\(\dot{x}_H , \, \dot{x}_a {\text{ and }}\dot{x}_b\)). As shown in Fig. 4, the trends of six parameters varying with the input current have been obtained through fitting the experimental data collected from an experiment, in which a sinusoidal displacement excitation with amplitude of 2.54 cm and frequency of 0.5 Hz was applied to MR damper at various input current levels (0 ~ 2.0A) (Yang 2001). Here, the polynomial function is adopted to describe the relationships between the six parameters and input current, as expressed by:

$$k = - 0.2997I^3 + 1.9563I^2 - 3.7818I - 0.236$$
(8)
$$f_h = 5.101I^3 - 50.197I^2 + 131.56I + 4.0539$$
(9)
$$f_y = - 45.090I^3 + 152.930I^2 - 147.940I + 76.710$$
(10)
$$\dot{x}_H = - 0.1209I^3 + 0.8308I^2 - 1.7046I - 0.5106$$
(11)
$$\dot{x}_a = - 0.1347I^4 + 0.6602I^3 - 1.0982I^2 + 0.7768I + 0.204$$
(12)
$$\dot{x}_b = - 12.786I^4 + 61.726I^3 - 105.4I^2 + 76.802I - 23.489$$
(13)
Fig. 4
figure 4

Model parameters varying with input current

Based on the fitting parameters, the modified Bingham-plastic model is used to calculate the damper force versus time, displacement, and velocity under different input currents. The comparison of the model predictions and the fitting experimental data is shown in Fig. 5, in which a good agreement is observed, indicating the accuracy of the forward model.

Fig. 5
figure 5

Comparison between model predictions (—) and test data (···) under different currents. The test data are shown as symbols reported by Yang (2001)

3.2 Inverse modeling technique

An inverse model aims to provide the input current for inducing the MR damper to produce the desired control force. The most direct way to establish an inverse model is to make an inversion of a forward model. However, due to the highly nonlinear hysteretic nature, the forward MR damper models are usually composed of some complex equations, such as transcendental equation, differential equation, and power function, and they are thus difficult to be inverted for establishing an inverse model. Therefore, instead of establishing an inverse model, we choose to approach the optimum current by proposing an inverse modeling technique, which involves analyzing the motion state of the damper piston and calculating the damper force by updating the input current until the desired control force at the present instant of time is approached. For clarity, the detailed computational procedure is sketched in Fig. 6, where i denotes the present instant of time and j denotes the step of updating the input current.

Fig. 6
figure 6

Flowchart of the inverse modeling technique of MR damper

3.3 Model validation

To validate the accuracy of the proposed inverse modeling technique of MR damper, in this subsection, a numerical study that involves the inverse modeling technique and the human-designed fuzzy logic controller is conducted. The example structure used here is a three-story building structure with three MR dampers installed on each floor, as shown in Fig. 7(a). With the assumption of masses lumped at floor levels, the equation of motion for this building structure subjected to seismic ground acceleration \(\ddot{x}_g\) can be written as:

$$\varvec{M\ddot{X}} + \varvec{C\dot{X}} + {\varvec{KX}} = {\varvec{DF}}_d (t) + \varvec{MI\ddot{x}}_g$$
(14)
Fig. 7
figure 7

Schematic views of example structure and input seismic ground motion

where M and K are the mass and stiffness matrices, given by

$${\varvec{M}} = \left[ {\begin{array}{*{20}c} 4 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 4 \\ \end{array} } \right] \times 10^5 \;{\text{kg}}$$
(15)
$${\varvec{K}} = \left[ {\begin{array}{*{20}c} 4 & - 2 & 0 \\ - 2 & 4 & - 2 \\ 0 & - 2 & 4 \\ \end{array} } \right] \times 10^8 \;{{\text{N}} / {\text{m}}}$$
(16)

C is the damping matrix and it is calculated by assuming 2% inherent damping and Rayleigh damping; X represents the vector of structural displacements relative to the ground, and “.” and “..” above X denote the first and second derivatives with respect to time. i.e., the vectors of velocity and acceleration. I denotes the unit vector; Fd is the force vector containing control forces provided by MR dampers; D is the matrix denoting the location of MR dampers. The NS component of the El Centro earthquake (1940) is used as the input seismic ground motion, as shown in Fig. 7(b).

The forward model presented in Sect. 3.1 is fitted based on the experimental study conducted by Yang (2001), and thus it has the maximum damper force of 200 kN under the maximum input current 2 A. Here, considering the size of the example structure, the maximum damper force is magnified into 1000 kN under the maximum input current 2 A by scaling the parameters involved in the fitted forward model. Then, numerical investigations are conducted on the proposed semi-active control scheme combining the human-designed fuzzy logic controller and the inverse modeling technique of MR damper, as illustrated in Fig. 8(a). Through a trial-and-error test, the upper bound of the output variable’s range is defined as 1400 kN, which allows the largest seismic response reduction under the premise that the output force is lower than 1000 kN. As a comparison, the seismic response of structure by a reference active control is calculated with the application of active tendons (actuators) commanded by the human-designed fuzzy logic controller, as illustrated in Fig. 8(b). Then, the seismic responses of the example structure obtained from two different control schemes are compared in Figs. 9(a) ~ (c). It is observed that the floor displacement, floor velocity, and floor acceleration responses by the proposed semi-active control scheme are in good consistency with those by the reference active control, indicating the proposed inverse modeling technique can well track the desired force. Besides, a good consistency between the control forces provided by the two control schemes shown in Fig. 9(d) has directly illustrated this point. However, some differences appear when the direction of the control force changes. The error is mainly caused by the inherent dissipative property of MR damper, which makes it scarcely possible to output the desired optimal force all the time (Khalid et al. 2014; Xu et al. 2021).

Fig. 8
figure 8

Conceptual diagrams of proposed semi-active and reference active control schemes

Fig. 9
figure 9

Seismic responses and control force comparisons between proposed semi-active control scheme and reference active control scheme

Besides, it is worth noting that the control effectiveness of the human-designed fuzzy logic controller is limited. To achieve higher control performance, in the next section, the NSGA-II-based optimization scheme will be applied to improve the human-designed fuzzy logic controller.

4 Optimization of the human-designed fuzzy logic controller using NSGA-II

To improve the performance of the human-designed fuzzy logic controller, in this section, the multiobjective GA based on the NSGA-II is adopted to optimize the membership functions and tune the fuzzy rules.

4.1 Objective functions

To improve structural performance and guide the MR damper selection, five competing physical quantities are selected as control objectives in this study, including the normalized peak floor displacement and floor acceleration, the normalized root mean square (RMS) floor displacement and floor acceleration, and the normalized peak control force. The objective functions with respect to these five physical quantities are summarized in Table 3, where i denotes the floor of structure and t denotes the time; dcon,i(t) and acon,i(t) are the ith floor displacement and floor acceleration of the controlled structure, respectively; dunc,i(t) and a unc,i(t) are the ith floor displacement and floor acceleration of the uncontrolled structure, respectively; Fmr,i(t) is the control force exerted on the ith floor at time t by the MR damper; Fmr,max is the maximum output of the MR damper.

Table 3 Objective functions defined for optimization of human-designed fuzzy logic controller

4.2 Design variables

The performance of a fuzzy logic controller mainly relies on the choice of membership function, the definition of the rule base, and the range of output variable. Therefore, in this study, the parameters involved in membership functions, rule base, and output variable range are defined as the design variables, and the population-based approach, i.e., GA, is employed as the search engine. It is worth noting that there is a chance to obtain meaningless design parameters because the GA searches in a large space and uses selection, crossover, and mutation operations to ensure the diversity and optimality of solutions. To overcome this problem, some constraints need to be adopted to regulate the optimization work. As for the membership functions, it is important to maintain the initial order of the central positions of fuzzy sets. In this respect, the following inequality constraints are thus adopted for both input and output variables:

The two outermost parts of the input (output) variable are respectively described by the spline-based Z-shaped and S-shaped membership functions, then,

(1) if the Gaussian membership function is used to describe the central parts:

$$g_i = - 1 \le b_{i,1} \le b_{i,2} \le b_{i,3} \le b_{i,4} \le b_{i,5} \le p_i = 1 \quad (i = 1, 2, 3)$$
(17)

(2) if the Bell-shaped membership function is used to describe the central parts:

$$g_i = - 1 \le c_{i,1} \le c_{i,2} \le c_{i,3} \le c_{i,4} \le c_{i,5} \le p_i = 1 \quad (i = 1, 2, 3)$$
(18)

For the range of output variable (control force), the maximum output of MR damper Fmr,max of the applied semi-active control force increased by ± 50% is defined as the range of this optimization parameter Fout, as expressed by:

$$0.5F_{\text{mr},\max } \le F_{{\text{out}}} \le 1.5F_{\text{mr},\max }$$
(19)

4.3 Nondominated sorting genetic algorithm version II

Generally, the first four physical quantities (representing the mitigation of structural response) presented in Table 3 are in conflict with the last one (representing the requirement of control force), because a larger control force is often required for suppressing the structural response to a lower level. It is thus difficult to find a feasible solution that allows simultaneous minimization of all the physical quantities. In this sense, the optimization of the human-designed fuzzy logic controller can be considered as a multiobjective problem that finds optimal solutions with superior performance in terms of predefined objectives. To solve this multiobjective problem, a fast elitist nondominated sorting genetic algorithm, i.e., the NSGA-II, is adopted to optimize the human-designed fuzzy logic controller. Here, only the main optimization procedures are described. For more detailed information on the NSGA-II, please refer to reference (Deb et al. 2000).

Initially, a random parent population R of size Na is created with consideration of the constraints defined in Eqs. (17)–(19). Each set of design variables is used to establish the corresponding fuzzy logic controller. Next, the structural seismic responses under each fuzzy logic controller are derived to compute the objective functions and evaluate the fitness of these objective functions. Then, all the solutions are sorted based on the nondomination rank and labeled with Pareto fronts. Among the solutions with different front numbers, the one with a lower front number is better. For the solutions with the same front number, the crowding distance, which measures the distance between a solution and its neighbors in the same front, is calculated and the solution with a larger crowding distance ranks better for improving the population diversity. Subsequently, a series of fundamental GA operations including selection, crossover, and mutation are carried out to create a child population S of size Nb. Further, by combining the parent and child populations, a new population T of size Na + Nb is obtained. This new combined population is then truncated to produce a new parent population of size Na based on the aforementioned ranking method. The main optimization process will be repeated until the maximum number of generations is finally reached. For clarity, the optimization procedures for the FLC-based structure using NSGA-II are illustrated in Fig. 10.

Fig. 10
figure 10

Flowchart of the NSGA-II-based multiobjective optimization

4.4 Optimization formula

According to the statements of objective functions, design variables, and optimization algorithm, the multiobjective optimization problem presented in this work can be summarized as follows:

Find::

(1) Membership function parameters:

(a) If use Gaussian + S-shaped + Z-shaped membership functions:

$$\begin{gathered} {\text{Input }}1: \, a_{1,i} , \, b_{1,i} \quad \left( i = 1, 2, 3, \ldots , 5 \right), \, h_{1} , q_{1} \quad \\ {\text{Input }}2: \, a_{2,i} , \, b_{2,i} \quad \left( i = 1, 2, 3, \ldots , 5 \right), h_{2} , q_{2} \quad \\ {\text{Output}}: \, a_{3,i} , \, b_{3,i} \quad \left( i = 1, 2, 3, \ldots , 5 \right), h_{3} , q_{3} \quad \\ \end{gathered}$$

(b) If use Bell-shaped + S-shaped + Z-shaped membership functions:

$$\begin{gathered} {\text{Input }}1: \, c_{1,i} , \, d_{1,i} , \, e_{1,i} \quad \left( i = 1, 2, 3, \ldots , 5 \right), \, h_{1} {, }q_{1} \quad \\ {\text{Input }}2: \, c_{2,i} , \, d_{2,i} , \, e_{2,i} \quad \left( i = 1, 2, 3, \ldots , 5 \right), h_{2} {, }q_{2} \quad \\ {\text{Output}}: \, c_{3,i} , \, d_{3,i} , \, e_{3,i} \quad \left( i = 1, 2, 3, \ldots , 5 \right), h_{3} {, }q_{3} \quad \\ \end{gathered}$$

(2) Rule base: \(r_i = \left\{ {NL, \, NM, \, NS, \, ZE, \, PS, \, PM, \, PL} \right\} \quad \left( i = 1, 2, 3, \ldots , n_{{\text{RB}}} \right)\)

(3) Range of output variable: Fout

Optimize::

\(f_1 = J_1 , \, f_2 = J_2 , \, f_3 = J_3 , \, f_4 = J_4 {\text{ and }}f_5 = J_5\)

Subject to::

For Gaussian:\(g_i = - 1 \le b_{i,1} \le b_{i,2} \le b_{i,3} \le b_{i,4} \le b_{i,5} \le p_i = 1 \quad (i = 1,2,3)\)

For Bell-shaped: \(g_i = - 1 \le c_{i,1} \le c_{i,2} \le c_{i,3} \le c_{i,4} \le c_{i,5} \le p_i = 1 \quad (i = 1,2,3)\)

Range of output variable: \(0.5F_{{\text{mr,}}\max } \le F_{{\text{out}}} \le 1.5F_{{\text{mr,}}\max }\)

To build a robust and efficient fuzzy logic controller, different optimization cases are designed by varying the type of membership functions (only Gaussian and Bell-shaped types are considered), applying the symmetric or asymmetric membership functions, and using the symmetric or asymmetric rule bases. Therefore, a total of 8 optimization cases are designed, as listed in Table 4.

Table 4 Summary of optimization cases

5 Results and discussion

In this section, the NSGA-II-based multiobjective optimization method has been conducted to optimize fuzzy logic controllers for mitigating the seismic responses of both linear and nonlinear structural systems.

5.1 Linear structural system

The information of the linear example structure is given in Sect. 3.3. Here, the NS component of the El Centro earthquake (1940) is adopted as the external excitation; then, an optimized fuzzy controller is selected to be combined with the proposed inverse modeling technique for constructing a semi-active control scheme. The effectiveness and robustness of this optimized FLC-based semi-active control scheme are further investigated by conducting a series of numerical studies on the example structure.

5.1.1 Pareto-optimal solutions

To determine an appropriate upper limit on the number of generations, the NSGA-II-based optimization is first conducted on the optimization case FLC-GSS for different numbers of generations. Based on the numerical results, the evolution process of fitness values for the normalized structural responses J1, J2, J3, and J4 versus normalized control force J5 is depicted in Fig. 11. As expected, the control performance of the elite individuals is enhanced with the increasing number of generations. Besides, it is observed that, in the initial generations, the control performance exhibits a rapid improvement but shows little change in the latter generations, indicating the population gets closer and closer to the optimal front. Therefore, to ensure that an optimal front can be achieved by all the optimization cases, the maximum number of generations is specified to be 1000, and the population size is taken to contain Na = 100 individuals.

Fig. 11
figure 11

Normalized peak and RMS structural responses versus normalized peak control force under different numbers of generations

A variety of Pareto-optimal solutions are then obtained by conducting the NSGA-II-based optimization on the other optimization cases. The Pareto fronts in terms of normalized structural responses versus normalized control force are illustrated in Fig. 12. Results show that larger control force capacity has led to more beneficial response mitigation. As a comparison, we also calculated Pareto fronts for the case using the human-designed fuzzy logic controller by varying the range of output variable. As can be seen from Fig. 12, the optimal fronts of the optimized fuzzy controllers are generally much closer to the vertical axis than that of the human-designed fuzzy logic controller in both peak and RMS responses, indicating an improved control capacity.

Fig. 12
figure 12

Pareto-optimal solutions for the linear structural system under different optimization cases

In general, compared with the optimization case with symmetric membership functions (or rule base), the case with asymmetric ones possesses more variability due to the involvement of more undetermined design variables, and thus it can provide better control performance. However, Fig. 12 shows that the optimization cases with symmetric membership functions (or rule base) can also obtain good results and some are even better than the cases with both asymmetric membership functions and rule base. A typical example can be found by comparing the FLC-GAS and FLC-GAA cases. The main reason is that the increasing number of design variables has widened the search space and thus makes it more difficult to find optimum solutions in predefined generations. Therefore, to achieve a balance between optimization efficiency and effectiveness, it is not recommended to design a fuzzy logic controller with both asymmetric membership functions and rule base.

According to Fig. 12, we can also observe that, when the normalized peak control force is larger than 0.6, the Gaussian membership function-based controllers generally show superior performance in comparison with the Bell-shaped membership function-based controllers. Conversely, when the normalized peak control force is less than 0.6, the Bell-shaped membership function-based controllers perform better. This phenomenon demonstrates that the optimized controllers with the Bell-shaped membership functions are not absolutely better than those with the Gaussian membership functions, though there are more design variables involved in the former which can offer more variability. However, it is worth noting that the computational burden may be further increased due to the involvement of more design parameters. In this respect, the Gaussian membership function is recommended for devising a fuzzy logic controller in terms of reducing design parameters as well as providing sufficient accuracy.

5.1.2 Structural responses

It is noted that, in this study, the maximum output of the applied MR damper is specified as Fmr,max = 1000 kN. Therefore, to utilize the full capacity of the MR damper, as J5 approaches 1.0, the optimized controller that shows the best performance in terms of the control objectives one concerns most should be selected. Here, we have chosen an optimized fuzzy logic controller from the Pareto-optimal solutions of the FLC-GAS case, which can achieve the minimum value in terms of the sum of J1, J2, J3, and J4. The selected controller is highlighted in Fig. 12. By combining the selected optimized controller with the proposed inverse modeling technique, an improved semi-active control system is constructed, and then applied to mitigate seismic responses of the example structure. Time histories of the seismic responses of the 3rd floor and peak interstory drift along the floor of the example structure are shown in Fig. 13 for the cases of the selected FLC-GAS and the FLC, including the uncontrolled case. As qualitatively observed, the selected optimized controller can significantly reduce the structural responses, especially for the floor displacement and peak interstory drift, compared to the human-designed fuzzy logic controller.

Fig. 13
figure 13

Seismic responses of example structure under different control scenarios

Specifically, according to Table 6, when the selected FLC-GAS controller is applied, the four control objectives, J1, J2, J3, and J4, which represent the peak and RMS responses, are respectively decreased by 43.2% and 32.1%, 71.8%, and 33.5%; while for the FLC-HD case, the four indices are respectively decreased by 24.3%, 13.6%, 40.0%, and 33.7%. It can be obtained that the selected optimized controller shows superior performance in reducing peak floor displacement, peak floor acceleration, and RMS floor displacement compared to the human-designed fuzzy logic controller, except for RMS floor acceleration. Correspondingly, the control forces and input currents required by the optimized controller are generally larger than the human-designed fuzzy logic controller, as shown in Fig. 14.

Fig. 14
figure 14

Time histories of control force and input current of MR damper on the 3rd floor under different control scenarios

To explore the differences between the optimized FLC and human-designed FLC, the membership functions and rule base of the selected (optimized) fuzzy controller are respectively depicted in Fig. 15 and Table 5 for further analysis. By comparing with Fig. 2 and Table 2, it is found that the membership functions and rule base of the optimized fuzzy controller vary greatly from those of the human-designed fuzzy logic controller. However, if we only optimize the membership functions (or rule base) and keep the rule base (or membership function) of the human-designed FLC, the obtained Pareto-optimal solutions shown in Fig. 16 indicate that optimizing membership functions can achieve better control performance compared to optimizing rule base. It is mainly because the membership functions of the human-designed FLC are assumed to be uniformly distributed without any theoretical foundation, while the rule base is formulated based on analyzing the fundamental mode of vibration.

Fig. 15
figure 15

Membership function obtained from selected FLC-GAS

Table 5 Rule base of selected FLC-GAS
Fig. 16
figure 16

Pareto fronts obtained by only optimizing the membership functions or rule base

5.1.3 Robustness of the optimized fuzzy controller

Apart from the control performance, robustness is also an important indicator for evaluating the effectiveness and performance of a control scheme, which is mainly used to measure the capability against the performance deterioration caused by uncertainties associated with structural properties and external excitations.

5.1.3.1 Influence of seismic excitations

To assess the robustness of the optimized fuzzy controllers to the uncertainty associated with external excitations, the MR damper-based example structure subjected to two other earthquakes, i.e., Kobe (1995) and Northridge (1994), are investigated. The two recorded seismic accelerograms are scaled to have the same peak ground acceleration as that of the El Centro (1940) earthquake which is used for optimization. Qualitative and quantitative comparisons with respect to the structural responses obtained from different control scenarios are shown in Fig. 17 and Table 6, respectively. It is observed that both the FLC-HD and the selected FLC-GAS controllers are robust to the uncertainties of seismic excitations; and, the selected FLC-GAS controller still shows superior performance in mitigating seismic responses compared to the human-designed fuzzy logic controller when the seismic excitation is varied.

Fig. 17
figure 17

Time histories of seismic responses of the 3rd floor under different control scenarios and earthquakes

Table 6 Comparison of control objectives under different control scenarios and earthquakes
5.1.3.2 Influence of structural properties

To assess the robustness of the optimized fuzzy controllers to the uncertainty associated with structural properties, structural responses of MR damper-based example structure using the selected FLC-GAS and FLC-HD controllers are, respectively, computed for stiffness degradations of 15%, 25%, and 35%. The corresponding structural responses in terms of peak interstory drift are depicted in Fig. 18. As can be seen, both the selected fuzzy controller and the human-designed fuzzy logic controller can effectively reduce the seismic-induced structural responses when the example structure experiences 15%, 25%, and 35% stiffness degradations, indicating their robustness to the uncertainties of structural properties. Besides, it is observed that the selected fuzzy controller can reduce the structural responses to a relatively larger extent compared with the human-designed fuzzy logic controller.

Fig. 18
figure 18

Peak interstory drift under different stiffness degradation levels

5.2 Nonlinear structural system

5.2.1 Structure model

The example structure explored here is a ten-story nonlinear shear frame equipped with MR dampers, as shown in Fig. 19(a). The lumped masses of the structure are given as m1 = 5.18, m2 = 4.92, m3 = 4.59, m4 = 4.13, m5 = 4.00, m6 = 4.00, m7 = 4.00, m8 = 4.00, m9 = 4.00, m10 = 4.00 (× 108 kg), and the initial interstory stiffnesses are given as k1 = 2.92, k2 = 2.11, k3 = 1.96, k4 = 1.82, k5 = 1.55, k6 = 1.55, k7 = 1.55, k8 = 1.55, k9 = 1.55, k10 = 1.55 (× 105 N/m). Rayleigh damping is utilized here, with the damping ratio being 0.05. The nonlinear interstory hysteretic behavior is represented by the Bouc−Wen model (Ma et al. 2004), as shown in Fig. 19(b). The parameters of the Bouc−Wen model can refer to (Peng et al. 2021b; Li et al. 2011). The maximum damping capacity of the MR damper is also set as 1000 kN. The NS component of the El Centro earthquake (1940) is used as the input seismic ground motion.

Fig. 19
figure 19

Basic information of the ten-story nonlinear shear frame structure

For high-rise buildings, more MR dampers are often required and the layout of MR dampers needs to be well designed. In this respect, apart from the FLC parameters, the damper deployment, i.e., the quantity of MR dampers installed on each floor, is also considered for optimization here, in an attempt to achieve a better control performance. Therefore, more design parameters need to be optimized, which has increased the dimension of the optimization problem. In the meantime, it is worth noting that, compared with the linear structural system, the optimization for the nonlinear structural system is more computationally demanding due to the nonlinearity and associated complexity involved in structural dynamics.

According to the analysis results obtained from the linear structure, the Gaussian membership function is recommended for constructing and optimizing fuzzy logic controllers in terms of accuracy and fewer undetermined parameters; and there is no need to simultaneously consider the asymmetry in both membership functions and rule base. Hence, from the perspective of optimization efficiency and effectiveness, only three optimization cases are considered for the nonlinear structural system, as listed in Table 7. It is worth noting that, in the first optimization case, the human-designed fuzzy rules are used and only the parameters involved in membership functions and damper deployment are considered, because the human-designed fuzzy rules have been proved to be more effective than the human-designed membership functions in FLC design. Besides, in view of structural size restriction and economical aspect, two constraints are considered for restricting the quantities of MR dampers on each floor and total floors, i.e.,

$${\bf{Subject to:}} \, \left\{ \begin{gathered} 0 \le p_i \le 3 \quad (i = 1, \ldots ,10) \hfill \\ N_{{\text{mr}}} {\text{ = sum}}(p_i ) \le 10 \quad (i = 1, \ldots ,10) \hfill \\ \end{gathered} \right.$$
(20)
Table 7 Summary of optimization cases for the nonlinear structural system

where pi denotes the number of MR dampers on the ith floor and Nmr represents the total number of MR dampers.

5.2.2 Pareto-optimal solutions

The final Pareto-optimal solutions in the form of normalized structural responses versus normalized control force for the nonlinear structural system obtained from different optimization cases are illustrated in Fig. 20. It is observed that the Pareto fronts of the nonlinear structural system show more irregularity and complexity compared with those of the linear structural system, which is mainly attributed to the nonlinearity involved in the structural dynamics of the former. Besides, it is noticed that the control force ranges provided by the FLC-GAS-D and the FLC-GSA-D optimization cases are relatively smaller than that of the FLC-GA-D optimization case. Then, below the threshold line of maximum damper force 1000 kN (J5 = 1.0), the Pareto-optimal solutions obtained from the FLC-GA-D optimization case are relatively closer to the vertical axis than those obtained from the other two cases, indicating a better performance in structural control. This phenomenon has proved again that the proposed fuzzy rules are effective in constructing optimal fuzzy logic controllers for structural control. With the proposed fuzzy rules, one only needs to optimize the parameters involved in membership functions for FLC design, which can largely reduce the number of design parameters.

Fig. 20
figure 20

Pareto-optimal solutions for the nonlinear structural system under different optimization cases

The objective functions versus the total number of MR dampers obtained from different optimization cases are compared in Fig. 21. As can be seen, for all three optimization cases, the structural responses (J1 ~ J4) show a decreasing trend with the increasing number of MR dampers, especially for the displacement responses (see J1 and J3 in the three subfigures); and when the total number of MR dampers remains unchanged, e.g., the total number of MR dampers taking 10, the structural responses vary owing to the variations in damper distribution (different deployments of MR dampers on floors) and FLC configuration (different design variables as shown in Table 7).

Fig. 21
figure 21

Objective functions versus the total number of MR dampers for different optimization cases

To further investigate the damper layout properties, the optimal solutions to the damper deployment are first normalized by the bounds of the design space and then mapped into a 10-dimensional polygon loop (p1 to p10 denotes the 1st floor to the 10th floor), as shown in Fig. 22. In this polygon loop-based design space, the upper and lower bounds of a design variable are respectively represented by the outer and inner rings of the polygon loop (the point on the inner ring denotes none of dampers; the point on the outer ring denotes 3 dampers). It is observed that MR dampers are mainly installed on the bottom floors especially in the optimization cases of FLC-GAS-D and FLC-GSA-D, as large seismic force is concentrated on the bottom floors.

Fig. 22
figure 22

Optimal solutions to the damper deployment

Subsequently, to probe the characteristics of the optimized fuzzy logic controllers, the optimal solutions to the membership functions and fuzzy rules obtained from the 3 optimization cases are collected here for analysis. For clarity, the solutions to the membership functions are first normalized by the bounds of the design space and then mapped into a 37-dimensional polygon (representing 37 design parameters involved in membership functions). In the polygon-based design space, the upper and lower bounds of a design variable are respectively represented by the vertex and the center of the polygon; see Fig. 23. Subsequently, similar operations have been conducted to the solutions of the fuzzy rules; see Fig. 24, in which 7 solid and dash circles from the outer loop to the inner loop respectively represent PL, PM, PS, ZE, NS, NM, and NL, respectively. As a comparison, the proposed fuzzy rules are also illustrated in Fig. 24, which are represented by red hollow triangles connected by red dash lines. It is observed that the solutions to the membership functions obtained from the FLC-GAS-D optimization case mainly concentrate in the central area of the design space, while those obtained from the other two cases show more dispersion, especially for the FLC-GA-D case; see Fig. 23a. Besides, the solutions to the fuzzy rules from the FLC-GAS-D optimization case also show more concentration than those obtained from the FLC-GSA-D optimization case. Therefore, the solution space of the FLC-GAS-D optimization case is relatively more narrowed compared with the other two optimization cases. This has explained the reason why the Pareto-optimal solutions derived from the FLC-GAS-D optimization case are not as good as those from the other two cases.

Fig. 23
figure 23

Optimal solutions to the membership functions

Fig. 24
figure 24

Optimal solutions to the rule base

5.2.3 Robustness of the optimized fuzzy controller

As the multiobjective optimization approach provides a set of Pareto-optimal solutions, an engineer is able to select an appropriate design for the specific performance requirement. Here, the solution, which can achieve the minimum value in terms of the sum of J1, J2, J3, and J4, is selected from each optimization case. Therefore, three solutions have been respectively selected from the FLC-GA-D, FLC-GAS-D and FLC-GSA-D optimization cases, denoted as ①, ②, and ③; see Fig. 20. The damper deployment, rule base and membership function configuration corresponding to the three selected solutions are respectively illustrated in Fig. 25a–c.

Fig. 25
figure 25

Damper deployment, rule base and membership function configuration of the three selected solutions

Three fuzzy logic controllers are then constructed according to the selected solutions. By combining the constructed controllers with the proposed inverse modeling technique, 3 improved semi-active control systems are obtained for mitigating the seismic responses of the nonlinear structure. The controllers’ robustness to the uncertainties involved in structural stiffness and earthquake excitations are then explored. The structural responses of the original controlled structure have been compared with those of the same controlled structure with 15%, 25%, and 35% stiffness degradations or the same controlled structure under different earthquake ground motions, as shown in Figs. 26 and 27, in which a good agreement can be observed, indicating the robustness of the developed semi-active control systems to the uncertainties in structural properties and external loadings.

Fig. 26
figure 26

Comparison between structural responses of the original controlled structure and the same controlled structure under different stiffness degradation levels

Fig. 27
figure 27

Comparison between structural responses of the same controlled structure under different earthquake ground motions

6 Conclusions

An improved semi-active control scheme is developed in this study by combing the NSGA-II optimized FLC with a newly proposed inverse modeling technique of MR damper. For validation and comparison, two example structures equipped with MR dampers are addressed. The main conclusions are summarized as follows:

  1. (1)

    A human-designed fuzzy logic controller is developed by assuming uniformly distributed membership functions and applying the law of the fundamental vibration mode-based fuzzy rules. The proposed rule base has been proved to be useful in the FLC design.

  2. (2)

    Based on the modified Bingham-plastic model, an inverse modeling technique is developed for identifying the input current of MR damper.

  3. (3)

    Various sets of Pareto-optimal solutions have been obtained from different optimization cases. Comparison results show that optimized fuzzy controllers show much better control performance than the human-designed one.

  4. (4)

    To achieve a balance between optimization efficiency and effectiveness, it is not recommended to design a fuzzy logic controller with both asymmetric membership functions and rule base.

  5. (5)

    Compared with the Bell-shaped membership function, the Gaussian membership function is recommended for the FLC design in terms of optimization efficiency and effectiveness.

  6. (6)

    The improved semi-active control system shows desired capability and robustness in mitigating seismic responses of both the linear and nonlinear structural systems.

An effective and robust semi-active control scheme has been proposed in this study, but the corresponding numerical investigations are limited to linear and nonlinear plane structures. An in-depth analysis of the proposed control scheme in real-life engineering structures is an ongoing work.