Fuzzy logic for structural system control

This paper provides some information and numerical tests that aims to investigate the use of a Fuzzy Controller applied to control systems. Some advantages are reported regarding the use of this controller, such as the characteristic ease of implementation due to its semantic feature in the statement of the control rules. On the other hand, it is also hypothesized that these systems have a lower performance loss when the system to be controlled is nonlinear or has time varying parameters. Numerical tests are performed using modal LQR optimal control and Fuzzy control of non-collocated systems with full state feedback in a two-dimensional structure. The paper proposes a way of designing a controller that may be a supervisory Fuzzy controller for a traditional controller or even a fuzzy controller independent from the traditional control, consisting on individual mode controllers. Some comments are drawn regarding the performance of these proposals in a number of arrangements.


INTRODUCTION
In a broad sense, fuzziness is the opposite of precision.Everything that cannot be defined precisely (that is, according to some broadly accepted criteria or norms of precision) and everything that has no clearly described boundaries in space or time is considered a bearer of fuzziness.As stated by Dimitrov [5], Fuzzy logic is also a product of rational thinking and entirely subjected to its 'IF...THEN' rules of inference.According to him it will work satisfactorily 'up to a degree' when dealing with the fuzziness of human perceptions and words and has been used to put into the computer's memory as much as possible of the experts' practical knowledge and competence, then using them for the purpose of designing and controlling intelligent engineering systems and robots.Moreover, the use of different degrees of 'truth', in parallel, creates a fuzzy framework, which is more adequate to the way people express their perceptions in words and therefore more efficient in using these perceptions in computercontrolled engineering and robotic scenarios.Although fuzzy logic 'softens' the problem of choice by replacing 'either...or' with 'as well as', it remains rigidly attached to strictly pre-determined sets of alternatives (inputs, outputs, goals, criteria) and lists of rules describing the mutual relations between the alternatives.
If the set of alternatives consists only of A and B, with fuzzy logic we can never generate C; it is the human operator who, based on his or her experience, can generate (discover, create) new decisions.
Fuzzy logic needs a full description of the rules of relations between the inputs and outputs that can occur in a considered engineering context; when complexity increases, the list of rules may become extremely large and may need a great deal of expert information (not easily available).Fuzzy logic resembles the way of thinking of actors left with an agreed set of decision options, a list of rules of behavior and of instructions how to use them 'fuzzily' so that to solve a specific problem; the actors are given no ideas how to go beyond this set of options and to look for other solutions which might be better.And even if they have information about something 'better', they have not been taught how to free themselves from all those fuzzy rules and instructions that keep the control system running.
Fuzzy logic was first introduced by Lotfi A. Zadeh [17] as natural extension in the classical notion of set theory.Unlike the classical theory in which elements belong or not to given set, this theory allows the degree of belongness of a particular element can be attributed in a gradual way.
Fuzzy logic allows you to develop expert systems using linguistic variables to create a rule base.Linguistic expressions are typical of human nature on taking decisions.For example: "If it is warm I will turn the air conditioning at maximum".Warm does not mean a particular value of temperature and power, but may assume a considerable range of values depending on persons' reasoning.Different people may also have different meanings to the same linguistic concepts.In his works, Zadeh stated the so-called "Principle of Incompatibility", which can be verified in other areas of science.He said: "The closer one looks at the real world problem, the fuzzier becomes its solution", indicating that the treatment of systems in much detail can lead to solutions that are diffuse.In fact, as the complexity of a system increases, our ability to make accurate statements of the behavior of the system significantly decreases until it reaches a limit beyond which precision and significance become mutually exclusive characteristics.

Advantages of Fuzzy controllers over conventional ones.
According to Al-Odienat et al [2], generally speaking, Fuzzy controllers are cheaper to develop, cover a wide range of operating conditions and they are readily adapted in terms of natural language when compared to conventional controllers.Self-organizing Fuzzy controllers can automatically refine the initial fuzzy rules.The Fuzzy controller design should allow the flexibility to modify the control, since the involved systems, in practice, are generally complex with time varying nonlinearities with ill-defined dynamics.Thus, conventional control methods based on the theory of linear systems usually linearize nonlinear systems before being used.This is not a guarantee of good performance in practice [13].Also, most of the controllers are developed based on precise mathematical models of the system.In fact, some systems are difficult to be accurately modeled with rigorous mathematical models and this has motivated the interest in the use of Fuzzy Controllers.Another advantage is that the Fuzzy controller is adjustable and easily understood by human experts as the knowledge of the control placed on the rule base is semantic.
In short, we can highlight the advantages of using fuzzy controllers as: • They are conceptually easy to understand: the concepts behind are very simple and basic; • They are flexible: they allow adding functionality to existing Fuzzy systems just adding new knowledge on the pre-existing rule base; • They are tolerant to imprecise data: precision errors or randomness of measurements has little influence on system performance; • They can model nonlinear systems with arbitrary complexity: this can be done by systems such as "Adaptive Neuro-Fuzzy Inference Systems"; • They can be constructed based on the knowledge of experts and system's behavior; • They can be easily mixed with the traditional control systems, offering increased performance; • They are based on natural human language, which facilitates the addition, modification of new rules, exceptions and new behaviors to pre-existing Fuzzy systems.
The control of systems using traditional methodologies face problems when dealing with non-linearity, poor mathematical definition of the problem, changes and uncertainty in the system parameters as well.This can reduce performance or even unsettle the control system designed with traditional methodologies.In this sense, control systems that are robust enough to adapt and adjust to these changes are desirable [6].
In a feedback control system the error signal e(t) =r -y(t) is the input to the Fuzzy controller which adjusts the control signal u(t) accordingly so that the sign of the error tends to zero.

Fuzzy controller parts
According to Passino [10], a Fuzzy Controller has 4 basic elements, namely: • A set of rules, which contain a quantification of diffuse linguistic description of "experts" on how to achieve good control; • An inference engine, which "emulates" the decision of the "expert" knowledge based on how good should be the control for a particular plant; • A fuzzification interface, which converts controller inputs into information that the inference engine can easily use to activate and apply the rule base; • A defuzzification interface which converts the conclusions reached by the inference mechanism into output values to control the process.A Fuzzy controller may have, in addition to the error signal of the plant output, the derivative or the integral of the error, with entries similar to a traditional PID controller (Proportional, Integral and Derivative).Using a PD (Proportional Derivative) type Fuzzy Controller, the rule base (control laws) can be simply understood by looking at the case of control of the response of a system variable y for a given reference value r as indicated by Figure 3. • Point e: If e(t) = 0 or ė(t) = 0 then the control system should cancel the action Similar rules may be assembled referred to an integral term ∫ e(t)dt and may generate a total of 8 ( 23 ) rules for the PID Controller [8].Obviously, all the inequalities can be transformed to linguistic form with levels of diffuse gradation for the boundaries of what is positive or negative.The error e (t), for example, can be "discretized" in levels such as NB (negative big), NM (negative medium), Z (zero), PM (positive medium) and PB (positive big).

Fuzzy sets
Unlike the traditional theory, which classifies the elements in a decisive manner belonging or not to a set (0 or 1), Fuzzy Logic has the ability to classify all those elements into a so-called degree of belongness by a membership function (between 0 and 1).Some of the membership functions that are used for the variable's fuzzification are the triangular membership function and the trapezoidal membership function depicted in Figure 4. Similar to the traditional set theory, fuzzy sets have rules and definitions for the operations with the sets, like Union, Intersection, Product of fuzzy sets, etc.More details regarding this definition can be found in Jantzen [6].Generally speaking, one can say that the traditional set theory is a special case of the theory of fuzzy sets where the membership function presents a sharp (crisp) membership function like a step function.

Aggregation of the propositions and the implications of the fuzzy rule base
Given a rule base of a fuzzy system, each of these rules will have propositions and implications.The number of propositions can be variable depending on the problem: where x 1 , ..,x n , are the input variables, µ A1j and µ Bj are fuzzy sets for fuzzification of input variables (x i ) and the output variables (y).
There are several ways to add the propositions and the implications on the rule base of a Fuzzy system.This paper uses the Mandani Method [9], which is the method widely used and applied in the literature.In this case, for the aggregation of propositions, one has: For the aggregation of the implications, one has: More details can be found in Pedrycz and Gomide [11].

FUZZY LOGIC APPLIED TO CONTROL SYSTEMS
A hybrid smart composite beam actuated by piezoceramics and electro-rheological fluid actuators was investigated by Takawa et al [15].It is said that a fuzzy controller containing the two actuators was chosen because the application of the linear control theory to the vibration controls would be difficult due to intense non-linearity of the actuators.The developed vibration control system with a fuzzy controller was verified by simulations and experiments.The used model was a cantilever beam.A Takagi-Sugeno (T-S) Method is used for the aggregation of the rules.As output for each rule, a linear and a discrete linear equation of vibration of the tip of the composite beam is proposed assuming first mode vibration, since excitation provided by a shaker of the clamped end was sinusoidal.So, a previous identification of the parameters used in this equation was performed in order to latter use the Controller.Results of experimental measurements and numerical tests are presented to tip deflection history.No metric is proposed to measure the effectiveness of the proposed methodology.
In 2000, Teng et al [16] presented a very simple study on the application of fuzzy theory to structural active control.The used example in the study was a simple cantilever beam, modelled as a discrete 5 equally spaced beam finite element.The input variables used for the controller were the deflection and velocity of the tip of the beam, and the output variable was the force used to control vibrations applied at the same site (collocated system).All variables were discretized with five membership functions.For the aggregation of implications it was used the Mandani Method.There were no "metric" for comparisons and the results were presented only in terms of displacements and velocity history.Some parametric studies regarding overlapping of the membership functions were conducted in order to obtain the best Fuzzy control method.They concluded that an overlapping ratio of 0.3 produced better control effects than 0.5 overlapping ratio.Finally, they concluded that the negative effects of vibration in the structure can be successfully suppressed using this type of controller.
An active modal-fuzzy control method for seismic response reduction is proposed by Choi et al [4].The controller was designed in modal space.It used a Kalman Filter to estimate modal states and a low-pass filter used to eliminate spillover effects in the applications of control forces.The advantages presented in the paper were based on the fact that working in modal space the size of the problem can be reduced, but nothing is said neither the way the Fuzzy controller uses modal state-variables nor the way the gain matrix is evaluated or updated during the process.The aggregation method used was the Takagi-Sugeno method [14].It was controlled just the first mode.An infinity horizon performance index is proposed in order to compare the results.The propose fuzzy controller Type-A, that uses two inputs (first mode displacement coordinates and first mode velocity coordinate, each with five membership function and one output variable, the control force), presented better results than a traditional LQR controller.All the results presented regarding a numerical simulation of historical earthquakes showed that the proposed controller can benefit seismic response reduction in civil structures.
In 2007, Zhao et al [18] presented a PID control method for a two stage vibration isolation system.In fact, according to the rule-base presented by the authors, the proposed controller should be labelled as a PD-Fuzzy controller since it used just the error and the derivative of error as input values.All variables were discretized with 7 fuzzy sets.All the control was on the state space assuming a full-state feedback control and the control force was applied in just one of the degree of freedoms.They presented graphs of acceleration history and PSD (Power Spectral Density) of the acceleration levels for one of the degree of freedoms that showed a significant reduction in vibrations.Finally they concluded, based on numerical results, that the method is effective to improve the vibration isolation.
Ahmad [1] presented comparisons between LQR and PD Fuzzy controllers for an angular position control of flexible manipulator.The performance of the controllers was examined in terms of vibration suppression and disturbances cancelation.The numerical example showed that the effect of the disturbances in the system could successfully be handled by both LQR and PD-Fuzzy controller.The Fuzzy controller was designed with two input variables (hub angle and velocity) and one output (torque).All of the variables were discretized with five fuzzy sets.As expected, just the first mode was controlled.The aggregation method used was Mandani type, and the number of rules to tune the controller was only 11, instead of the expected 25 ( 52 ).Graphs of the modal displacements and the PSD of modal displacements with LQR controller and Fuzzy controller were presented.Nothing is said regarding the control forces.

TRADITIONAL LINEAR QUADRATIC REGULATOR CONTROL (LQR)
According to Preaumont [12], the equation representing the dynamic behavior of a linear system may be written as: where M, K and D are the mass, stiffness and damping matrix respectively, q = {q 1 , q 2 , ..., q n } 'T is the displacement vector and q and q the velocity and acceleration vectors respectively, F is the load action influence matrix and u is the load action vector (control forces) applied by the actuators, given by: Adopting the state-space representation of the dynamic of the system as x = {q q} T , the following equation can be written [12]: where A, B, C and D are the state, input, output and feed through matrices respectively.
Matrices C and D depend on the combination of the desired output (frequently just those that can be measured) and the positioning of the actuators in the structure.For matrices A and B, the following relations are valid: In this example, since it was assumed a full state feedback, matrices C and D were defined as: where I is the identity matrix.The output vector y, in this case, is simply given by y = {q q} T .
For optimal control, it is defined a linear functional to be minimized in order to achieve minimal value [7]: where Q is the weighting matrix for a combination of state-variables to be minimized and R is the weighting function for the acting control loads.Based on this definition, the functional J minimizes both state-variable and control forces.The control force that minimizes the function can be stated in the following form: Latin American Journal of Solids and Structures 9(2012) 111 -129 u = −Gx (10) where G is the gain matrix given by: where matrix S is the Ricatti matrix, obtained from the solution of the Algebraic Ricatti Equation(ARE) assuming that the steady state condition is attained.The ARE is defined as: which is solved for S. Taking into account the steady-state condition at t → ∞, Ṡ → 0 , this follows: There are several methods to solve this equation and the Potter method is the used method [3] in this paper.Remembering that y = Cx + Du and D = 0, one can state that equation ( 13) is equivalent to: where Q * = C −1 QC.Therefore, one can use the same procedure to evaluate the Ricatti equation to solve the control problem minimizing the output variables instead of state-space variables.

LQR modal control
In the case of modal control, one starts with the approximation q = Φη, where Φ is the modal matrix, where the columns are the eigenvectors obtained by the solving the eigenvalueeigenvector problem stated as: where T are the eigenvector corresponding to the eigenvalue ω 2 i .Applying the previous transformation q = Φη to the equation of motion, one holds: Taking into account the properties of the Φ matrix and assuming proportional damping, pre-multiplying both sides of the previous equation by Φ T , yields: Latin American Journal of Solids and Structures 9(2012) 111 -129 and then: where I is the identity matrix, .., 2ξ n ω n } and the system of equations is decoupled, where η = {η 1 , η 2 , ..., η n } T is the state-space vector of the modal variables.Therefore, assuming state-space variables as x m = {η η} T , the following equation may be written: where matrix A m and B m are: The control forces are defined by the relation: where G m is the gain matrix in the modal space, obtained from the solution of the Ricatti equation with the modal state matrix A m , B m given previously.The functional is then written as: Comparing equation ( 22) to the equation ( 9) and taking into account that x m = {η η} T = {Φ −1 q Φ −1 q } T , then one can say that: Again, in this case, if one wants to minimize the output variables instead of the modal state-space variables, the function assumes the form: where Assuming that there are some important modes to be controlled, the solution can be truncated using only these modes just by using the corresponding columns of Φ corresponding to these modes (the matrix becomes rectangular).This generates the approximation q i = ∑ nmod j=1 Φ i,j η j (where nmod is the number of retained modes), or in other words Again, assuming full state feedback control matrix C and D are defined in the same way, with A and B dimensions being reduced in the proportion of the retained modes.More details in control theory and applications to modal control can be found in Preaumont [12].

EXAMPLE OF FUZZY AND LQR NON-COLLOCATED CONTROL OF THE TRUSS STRUCTURE
This example intends to present a benchmark problem on non-collocated vibration control of a lattice structure.It will be used to compare traditional LQR control performance with the proposed Fuzzy in a number of arrangements.So, consider the example presented by Kwon and Bang [7] for the full state feedback vibration control of a planar truss as shown by Figure 5.This is a problem with 9 degrees of freedom.There are two control forces acting on degrees of freedom 6 and 7, as shown by Figure 5. Data regarding the cross sectional areas, Young's modulus and density are also presented in the Figure 5.The load influence matrix in this case is given by: The initial conditions for the system in this example are given by [7]: x(0) = {q 1 , q 2 , q 3 ,q 4 , q 5 , q 6 , q 7 , q 8 , q 9 , q1 , q2 , q3 , q4 , q5 , q6 , q7 , q8 , q9 } T x(0) = {0.1,0.0, 0.0, 0.2, −0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } T (26) which means prescribed horizontal displacements of 0.1 m on node 2 , vertical displacement of 0.2 m on node 3 and horizontal displacement of -0.2 m on node 4.
In this example there is no damping in the system, therefore D=0.The finite element method for stiffness and consistent mass for simple truss bar elements is used to obtain these matrices.The previous formulation was implemented in Matlab and Simulink scripts so that the gain matrix (G) can be obtained by the LQR method.The Fuzzy controller was implemented based on the Matlab's Fuzzy toolbox.
Figure 6 shows the horizontal and vertical displacements history for node 2 for the uncontrolled system.The results are the same obtained by Kwon and Bang [7].
In the following, the implemented LQR modal controller is tested with this same example.It was chosen random modes to be controlled in order to verify the correctness of the developed code.
In Figure 7 it is compared the performance of the LQR controller and the Modal LQR controller using just the 1st.mode and using the first 4 modes (1st,2nd,3rd,4th) in terms of horizontal and vertical displacements on node 2. Figure 8 shows the horizontal and vertical displacement Power Spectral Densities for node 2 for uncontrolled and controlled system using modal LQR (just 1 st mode and 1 st to 4 th modes).Figure 9 shows the control forces Power Spectral Densities for nodes 4 and 5 comparing uncontrolled and controlled system using modal LQR (1 st and 1 st to 4 th modes).The results shows the effectiveness of conrolling the desirable modes by noticng the decrease in the PSD amplitudes in the corresponding frequencies.wasequal to the results presented by Kwon and Bang [7].

Qualitative estimation of gain matrix
Starting from the uncoupled equation of motion in modal space, one has: Using the concept of Pseudo-Inverse (J + = J T (JJ T ) −1 ), one can rewrite the previous equation as: The second part on the right side of the equation gives relevant information related to the control forces, modal displacements and velocities.This part can be used as a first approx-  imation of the gain matrix that will later be used by the Fuzzy controller and added to the inertial forces.
Similarly, this approach can be implemented at the level of variables in real space.Starting from the equation ( 27), this yields: In both cases, T and F F T should be non-singular in order to the pseudo-inverse be evaluated.
Using this estimated gain matrix, one can apply the scalar gain (g) that comes from the Fuzzy controller.This control output should multiply the entire estimated gain matrix.As input, this controller may have the modal state variables of an observer to estimate the states of the modal system.
At this point, it is worth to say that the estimates of the gain matrix should be in a size appropriate to deal with the respective number of used variables (whether just some, using modal state space variables, whether a large number, using state space in original space).
The Fuzzy controller constructed is composed of two entries "e" and "de" that represents than e = 0 − η and η = 0 − ė (both related to a reference value of zero).In the case of controlling more than one mode, it may be created new controllers for each additional mode to be controlled.
For all membership function, the error, it derivative (inputs for Fuzzy Controller) and the scale that will multiply the gain matrix (output of the Fuzzy controller) are of triangular type.In order to define the limits of effectiveness of the input variables it was chosen values in the interval [-2,2] and for the output variable was chosen values in the interval [0,2].For the input variables it was assumed 3 fuzzy sets: N (Negative), Z (Zero) and P (positive), being Z centred on the interval [-2,2] and the other two sets centred on the boundaries of the interval.For the output variables it was chosen 5 fuzzy sets, namely: RL (Reduced Large), RM (Reduced Medium), U (Unit), AM (Amplified Medium) and AL (Amplified Large), equally spaced in the interval [0,2] and the extreme sets, focusing on the limits of the range.The rule base was establishedtaking into account a simple PD controller as shown in Figure 1  Figure 12 shows the horizontal and vertical PSD for displacements on node 2 using a simple LQR, a Fuzzy-LQR (1 st mode), a Fuzzy with G m estimated (1 st mode) and a Fuzzy-complete G estimated(1 st mode).It can be noticed that the proposed Fuzzy controllers is as effective as the LQR controller.
Figure 13 shows the PSD of control forces using a simple LQR, a Fuzzy-LQR (1 st mode), a Fuzzy with G m estimated (1 st mode) and a Fuzzy-complete G estimated(1 st mode).

Global mass change of the whole structure
It is intended to investigate the performance of the LQR and Fuzzy controllers when used in a system that has some parameters changed.The idea is to check the robustness of each of these models against the presence of changes on these parameters.It is expected that the LQR controller has reduced its performance in attenuating vibration, since the gain matrix is fixed and defined beforehand according to the characteristics of the system.Moreover, it is expected that the controller based on fuzzy logic behaves in a more robust way.Even though based on system parameters, the fuzzy controller allows changing his gain in proportion to modal displacement and velocity error.In all tests, it was obtained in advance the parameters of the Fuzzy and LQR controllers and later they were employed in a closed-loop control on a system with the mass parameters modified.In this example, the mass matrix was increased by 100%.In these tests, just the 4 th mode was controlled.The 4th mode was arbitrarily chosen to be controlled, though it was an important mode in terms of energy like 1 st ., 2 nd .and 3 rd .as indicated by the displacement PSD (Figure 15) of the uncontrolled structure.Figure 14 shows the horizontal and vertical PSD of displacement on node 2 using controllers of type Fuzzy-Gm estimated (4 th mode), LQR (4 th mode), Modified system without control and Fuzzy-LQR Gm estimated (4 th mode).

Stiffness and mass change on single sites of the structure
In this example it is intended to investigate the performance of the controllers faced to localized changes in the structure.So, it was attached a mass of 1 kg to node 3 and reduced 50% of the member 4 stiffness.For sake of comparison it was chosen to maintain no damping as in the previous examples.
Figure 15 shows the horizontal and vertical PSD displacements on node 2 for the modified system without control and with control (LQR, Fuzzy-LQR and Fuzzy G m estimated) Figure 16 shows the same comparisons on node 4 and 5 for the PSD of control forces.

FINAL REMARKS
Based on the results, it was observed that the Fuzzy controller performance was equivalent to the LQR controller and sometimes outperformed this traditional controller.G).Among the proposals, that which presented better results was the suggestion (b) designing a Fuzzy Controller for each mode to be controlled and gain matrix estimated in the modal space since it is not necessary to solve the Ricatti equation and the number of variables is reduced.The suggestion of designing a supervisory Fuzzy controller for the LQR control showed little improvement in performance when compared to the simple LQR controller.
Regarding the performance of Fuzzy controllers compared to variations of the parameters of the system, it was expected a poor performance of the LQR controller, as the gain matrix is fixed.This behavior was observed in the two tests with a variation of the total mass of the structure and the locally change in mass and stiffness, noticing that the Fuzzy controller outperformed the LQR in vibration suppression in the presence of uncertainties (Figure 14 and 15).However PSD graphs for control forces shows values of control forces higher than those applied by the LQR controller, indicating a greater energy use (Figure 16).In the analysed cases, it was noticed that the suggestion of the Fuzzy controller with estimated gain matrix added to the inertia forces, may increase vibration, in the event of changes in system parameters, in frequency ranges not observed in the system without control.
Future research will focus on the use of different membership functions and aggregation rules (TS, for example).The use of independent controllers in collocated systems working as SISO (which ensures unrestricted stability control) and experimental tests of the developed controllers are also subject of future researches.

Figure 1
Figure 1 Closed loop control system with fuzzy logic.

Figure 2
Figure 2 Detail of a control system with a Fuzzy controller.

Figure 3
Figure 3 Output control signal of a system for a given reference value r.

Figure 4
Figure 4 Triangular and trapezoidal membership function.

2 ∶
> 0 and ė(t) < 0 If e(t) < 0 and ė(t) < 0 Propositions then change Implications previous action Rule j ∶ If x 1 is µ A1j and ... and x n is µ Anj Proposition then y is µ B j Implication

Figure 5
Figure 5 Sketch of the lattice structure under study [7].

Figure 6
Figure 6 (a) Hor. and (b)Vert.displacement history for node 2 without control.

. 4 .Figure 10
Figure 10 Membership functions and Fuzzy sets used for inputs (a) e and (b) de.

Figure 11
Figure 11 Membership functions and Fuzzy sets for the output g.
It was presented three ways to work with the Fuzzy controller, namely: (a) Fuzzy supervisory controller of the gain matrix of the LQR control (G), (b) Fuzzy controllers in an amount equal to the modes to be controlled in the modal space ( ⌢ G m ), (c) Fuzzy controller with gain matrix estimated in real space ( ⌢