Next Article in Journal
Metaheuristic with Cooperative Processes for the University Course Timetabling Problem
Next Article in Special Issue
Two Approaches to Analyze Whether Citizens’ National Identity Is Affected by Country, Age, and Political Orientation—A Fuzzy Eco-Apostle Model
Previous Article in Journal
Field Measurements for Traffic Noise Reduction in Highway Tunnels Using Closed-Cell Aluminum Foam Board
Previous Article in Special Issue
A Hybrid MCDM Model for Live-Streamer Selection via the Fuzzy Delphi Method, AHP, and TOPSIS
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Optimization of a Neuro-Fuzzy System for the Control of an Electromechanical Plant

1
Facultad de Ingeniería, Universidad Distrital Francisco José de Caldas, Bogota 11021-110231588, Colombia
2
Departamento de Ingeniería Eléctrica, Electrónica de Computadores y Sistemas, Universidad de Oviedo, Campus de Viesques, 33204 Gijon, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(2), 541; https://doi.org/10.3390/app12020541
Submission received: 11 November 2021 / Revised: 2 January 2022 / Accepted: 5 January 2022 / Published: 6 January 2022
(This article belongs to the Special Issue Applications of Fuzzy Optimization)

Abstract

:
One characteristic of neuro-fuzzy systems is the possibility of incorporating preliminary information in their structure as well as being able to establish an initial configuration to carry out the training. In this regard, the strategy to establish the configuration of the fuzzy system is a relevant aspect. This document displays the design and implementation of a neuro-fuzzy controller based on Boolean relations to regulate the angular position in an electromechanical plant, composed by a motor coupled to inertia with friction (a widely studied plant that serves to show the control system design process). The structure of fuzzy systems based on Boolean relations considers the operation of sensors and actuators present in the control system. In this way, the initial configuration of fuzzy controller can be determined. In order to perform the optimization of the neuro-fuzzy controller, the continuous plant model is converted to discrete time to be included in the closed-loop controller training equations. For the design process, first the optimization of a Proportional Integral (PI) linear controller is carried out. Thus, linear controller parameters are employed to establish the structure and initial configuration of the neuro-fuzzy controller. The optimization process also includes weighting factors for error and control action in such a way that allows having different system responses. Considering the structure of the control system, the optimization algorithm (training algorithm) employed is dynamic back propagation. The results via simulations show that optimization is achieved in the linear and neuro-fuzzy controllers using different weighting values for the error signal and control action. It is also observed that the proposed control strategy allows disturbance rejection.

1. Introduction

In control systems, fuzzy logic offers broad applicability given its flexibility to implement control strategies through a set of rules using membership functions [1,2,3]. It is possible to use training algorithms with neural networks when representing the fuzzy system as a neural network that grants higher accuracy in the fuzzy system performance. When representing a fuzzy system as a neural network, a neuro-fuzzy system is obtained [4,5].
An interesting application of fuzzy logic is the aided design process. In this regard, a remarkable application is observed for compliant mechanism design used in soft robotics, space, and bioengineering due to the advantages of free friction, monolithic structure, and minimal assembly. Considering this area, a hybrid methodology is presented in [6] for solving the multi-objective optimization design. Authors propose a hybridization through a combination of a finite element method, statistical technique, desirability function approach, fuzzy logic system, Adaptive Neuro-Fuzzy Inference System (ANFIS), and Lightning Attachment Procedure Optimization (LAPO). A bistable compliant mechanism is designed, where desirability values of two performance metrics are calculated and transferred into the fuzzy logic system to obtain the output in a single objective function. A related work is presented in [7], proposing a method using statistics, numerical simulation, computational intelligence, and metaheuristics. A two-degree of freedom compliant mechanism is designed, where numerical datasets are collected by simulations. The sensitivity of design parameters is studied by analysis of variance and Taguchi technique. The results of sensitivity are employed to separate populations for lightning attachment procedure optimization. The values of two output mechanism performances are the inputs of the fuzzy logic model, and the output of this system is a single objective function, that is optimized using LAPO algorithm. Other advanced work is presented in [8], presenting an optimization framework to provide a systematic design method for a flexure gripper. The optimization strategy includes the topology, modeling, and size optimization phases. The gripper topology is determined via the solids isotropic material with penalization method considering stress constraint and force distribution. The modeling of the performances is implemented via an Enhanced Adaptive Neuro-Fuzzy Inference System (EANFIS). The optimization is performed to search for the best model parameters. Finally, a hybrid procedure of the Taguchi method is described in [9], using fuzzy logic, response surface method, and Moth-flame optimization algorithm to solve the design optimization of a flexure hinge to enhance three quality characteristics. Fuzzy modeling is proposed to interpolate the three objective functions into a unified objective function. An integrated regression equation is determined via response surface method and flexure hinge is optimized using Moth-flame optimization algorithm.
Regarding fuzzy control applications for electromechanical systems, there are relevant developments in electric engines control and robotics. With regard to fuzzy logic for motor control, reference [10] carries out a review of multi-motor control, which are multiple input and multiple output systems. The main purpose of the multiple motor control variators consists of achieving a coordinated operation in all motors. The literature reviewed shows that fuzzy systems are widely employed in multi-motor control. Meanwhile, in [11] a fuzzy controller is proposed using a motion capture system to operate the speed and orientation of a wheelchair considering the model of a Direct Current (DC) motor for the design process. Further, a fuzzy logic controller is used in [12], for an image-based navigation system of an autonomous underwater vehicle with a DC motor.
According to [13], due to high robustness and simple maintenance, Induction Motors (IM) are commonly used in household appliances and industries. Currently, advanced techniques are applied to traditional controls such as the Field-Oriented Control (FOC) and Direct Torque Control (DTC). Authors in [13] evaluate traditional FOC and DTC compared to two additional fuzzy and predictive controllers.
Concerning robotic applications using fuzzy logic, reference [14] employs a fuzzy control Proportional Integral (PI) in a robotic driving system for hybrid electric vehicles in a way that allows a reliable evaluation of energy efficiency. This depicts the relevance of the efficiency of fuel in hybrid vehicles. Thus, reliable measurements are required in order to have an accurate analysis of fuel efficiency; whereby, the authors propose a robotic system to perform driving tests to reduce the deviation when such tests are carried out by humans. Moreover, reference [15] proposes a Knowledge-Based Neural Fuzzy Controller (KNFC) for navigation control in mobile robots. Knowledge-Based Cultural Multi-Strategy Differential Evolution (KCMDE) is employed here to adjust the parameters of the KNFC. This is applied in mobile robots PIONEER 3-DX for automatic navigation systems and obstacle avoidance, employing the existing angle between the obstacle and the robot to determine if the robot enters in specific reference points to modify its behavior and thus skip dead ends. A related work is presented in [16] using a neuro-fuzzy system in path planning for a service robot in complex environments with the presence of humans as in a retirement home. As inputs for path planning, the system uses a 3D depth camera and multiple sonar sensors.
Meanwhile, reference [17] proposes a simple and practical decoupled control structure for a parallel robot positioning control using the Cable-Driven Parallel Robot (CDPR). This structure is employed with a non-linear Proportional Integral Derivative (PID) and classic PID controllers. In addition, the control system structure is proposed through an analysis of cables involved in End-Effector (EE) robot’s movement when operating independently for each axis; later, an adjustment of rules for fuzzy PID controllers was carried out and the Ziegler–Nichols method was applied to PID classic controllers.
Regarding recent research of neuro-fuzzy control systems, in [18] is developed a Terminal Sliding-Mode Control (TSMC) using a Fuzzy Double Hidden Layer Recurrent Neural Network (FDHLRNN). According to authors, the neuro-fuzzy system proposed is a combination of a radial basis neural network and a fuzzy neural network. To reduce the switching gain (associated with the TSMC), the FDHLRNN is employed to approximate the nonlinear sliding-mode equivalent control term. In order to observe the dynamic response and robustness, the control scheme is tested using a second-order nonlinear system. An additional work is observed in [19], where is designed a TSMC using FDHLRNN for a single-phase Active Power Filter (APF). Authors propose the TSMC to allow the tracking error converges to zero (in a finite time). The system is used in harmonic suppression first to approximate the equivalent control and second to suppress unknown disturbances. The equations to update the adaptive parameters of the FDHLRNN are obtained using a Liapunov function in order to ensure asymptotic stability. Finally, in [20] is displayed an approximation-based adaptive fractional sliding mode control. For approximating the system uncertainties and disturbance we used a Double Loop Recurrent Fuzzy Neural Network (DLRFNN). In this development, a fractional order term is incorporated into the sliding surface having the benefits of sliding mode control and fractional calculus. The DLRFNN uses the advantages of fuzzy systems to handle uncertain information and the neural networks to learn using data measured from the process.
In this work, the designed neuro-fuzzy controller uses the structure of a compact fuzzy system based on Boolean relations as presented in [21], which can be used for the identification and control of dynamic systems. Neuro-fuzzy systems based on Boolean relations are founded in a system design considering possible Boolean regions in the universe discourse, then being extended using fuzzy sets for implementation [22]. Various design considerations are presented in this scenario as well as the manipulation of system equations applying Boole and Kleene algebras. In this way, fuzzy systems with compact structures can be established and used for identification and control of dynamic systems [21]. As an example, the application of this type of system is shown in [23] to control an Automatic Voltage Regulator (AVR). In control applications, the Dynamic Back Propagation (DBP) training algorithm is used in cases when the plant’s feedback signals and the controller are required for the neuro-fuzzy control system.
This document details the design and tuning of a neuro-fuzzy control system applied to an electromechanical plant. The neuro-fuzzy system design is made regarding the architecture of a linear controller. Subsequently, the training is performed similar to a neural network employing the dynamic back propagation algorithm [24,25,26].
The design can be applied in robotics since it is necessary to control the movements of the parts of a robot which are generally activated with DC motors. Another application can be a solar tracker usually employed to improve the use of solar energy. In previous works, the considered plant is similar to that employed to control a solar tracker mainly operated by a DC motor [27,28,29]. Regarding this plant, reference [30] carries out the optimization of a linear controller in discrete time.

Article Approach and Document Organization

The objective of this document is to show the design and optimization process of a fuzzy controller (based on Boolean relations), making the equivalence with a linear controller, for which a well-known plant (widely studied) is used to show the design process and optimization. Considering this work, the design process can be extended to more complex plants. Moreover, this document considers the design of a linear controller as reference since it allows determining the structure of the fuzzy controller as well as its initial configuration, which also allows the optimization using the dynamic back propagation algorithm where the equations in closed-loop are deduced to train the linear and fuzzy controllers. The values from the linear controller are used to determine the initial configuration to optimize the fuzzy controller. A well-known plant composed of a coupled motor with a gear box and inertia with friction is employed to exhibit the design process and training of the controller. From the above, Figure 1 displays the methodology employed. First, the system modeling and analysis is performed, then the linear controller design used as the basis for designing the fuzzy controller (as mentioned above) is conducted. Later, the optimization of the controllers is carried out and finally the simulation of the closed-loop control system is performed.
The document is organized as follows: Section 2 describes the plant model considering a simplified structure and the representation in discrete time. Then, in Section 3 the description is shown of the linear and fuzzy controllers employed. Section 4 displays the general process for controller parameter training. Section 5 describes the equations for linear controller parameter training and Section 6 the equations for fuzzy controller optimization. Then, Section 7 presents the results of the controller training process. Finally, Section 8 shows the discussion and conclusions are presented in Section 9.

2. Electromechanical Plant

Figure 2 displays the diagram of the electromechanical plant considered. This is composed of a DC motor, a gearbox, and a wheel (with moment of inertia) coupled to the gearbox. The analysis of this plant is presented in [31], corresponding to the example A-3-9 pages 95–97. The motor plays an important role in this plant since it is a fundamental part of the dynamic model, as it provides the required torque to move the inertia. The parameters of the DC motor are:
  • K t : Torque constant.
  • K e : Electromagnetic feedback constant.
  • R a : Shield resistance.
  • L a : Shield inductance.
  • J r : Motor moment of inertia.
  • B r : Rotor friction constant.
It is noteworthy that the diagram in Figure 2 is given as an example since in a real case the gearbox has more gears. The motor torque is proportional to the current of the shield for the modeling of the system as indicated in the following equation:
T M = K t i a ( t )
The counter-electromotive force is proportional to the angular speed of the motor:
e ( t ) = K e ω r ( t )
The equation that governs the electrical part is:
u ( t ) e ( t ) = L a d i a ( t ) d t + R a i a ( t )
The torques in the motor shaft are considered to incorporate the mechanical part into the model. The relation between the generated torque and the load torque is obtained by performing a summation of torques on the motor shaft as shown below:
T M ( t ) N T L ( t ) = J e d ω r ( t ) d t + B e ω r ( t )
where:
B e = B r + B m N 2 ; J e = J r + J m N 2 ; N = n 1 n 2
In these equations J m , B m are the inertia and friction of the mechanical part and N the transformation ratio of the gearbox such that θ ( t ) = N θ r ( t ) . In addition, Equation (6) is employed to complete the model.
ω r = d θ r ( t ) d t

2.1. System Block Diagram

In order to observe the presentation of this system as a transfer function, a Laplace transform L is applied, obtaining:
T M ( s ) = K t I a ( s )
E ( s ) = K e Ω r ( s )
U ( s ) E ( s ) = ( R a + s L a ) I a ( s )
T M ( s ) N T L ( s ) = ( B e + s J e ) Ω r ( s )
Θ r ( s ) = Ω r ( s ) s
In addition, taking T L = 0 and Θ ( s ) = N Θ r ( s ) the system transfer function is:
Θ ( s ) U ( s ) = N K t K t K e s + ( L a s + R a ) ( J e s + B e ) s
Considering the model equations, the block diagram in Figure 3 of the electromechanical system can be obtained.

2.2. Approximate Model

In some applications, a complete dynamic model of the plant may be impractical due to the difficulty in establishing the values of its parameter (in this case, the moment of inertia and the friction of the mechanical part). An alternative consists of a simplified model identifying its parameters considering the dynamic behavior of the plant [31].
According to [31], when considering L a 0 (very small) there is a simplified model of the plant; in this way, the diagram in Figure 3 can be represented as shown in Figure 4.
Organizing the diagram of Figure 4, it is possible to obtain the representation of Figure 5 where T L ( s ) can be seen as a system disturbance.
Equivalently, the diagram shown in Figure 6 is obtained where in the time domain the input u ( t ) = L 1 { U ( s ) } corresponds to the voltage; the output is the angular position θ ( t ) = L 1 { Θ ( s ) } and p ( t ) = L 1 { P ( s ) } is the disturbance given by the product ( N R a / K t ) T L ( t ) . In this way, the variable to sense and control corresponds to the angular position θ ( t ) .
On the other hand, considering the location of the poles, the criterion to establish the simplified model is shown in Figure 7 where the pole located in s = a corresponding to the mechanical part is the dominant pole (it governs the system dynamics) since b a ; therefore, to establish the approximate model, the pole located at s = b associated with the electromagnetic part can be neglected [31].
Equation (13) describes the simplified plant transfer function corresponding to a first-order system and an integrator, where the variable s is associated with the Laplace transform.
According to [31], the model of Equation (13) considers the parameters shown in Figure 5, namely J e , B e , K e , K t , N, and R a . In this way, through the data measured from the open-loop plant, the effect of the parameters on the plant operation is being directly considered in the identification process.
G ( s ) = K s ( τ s + 1 )
For this plant, the identification of parameters is carried out considering the average values of the speed and the settling time as shown in [27,28].
For the transfer function, in Equation (13) parameter K corresponds to the steady-state input–output relationship, which for this case is K = Δ ω / Δ u where ω is the angular velocity. Taking a voltage of 12 V, the average time taken by the system to travel an angle of π / 2 is 0.06 rad/s; therefore, K parameter value corresponds to 0.005 rad/(V s) [28].
Parameter τ can be determined as one third of the system settling time (considering a band of 5 % ), which is 1.13 s, hence, τ corresponds to 0.38 s [28]. In this way, the plant model is given by Equation (14). It should be noted that the proposed control system is designed to regulate the angular position of the electromechanical system θ ( t ) .
G ( s ) = Θ ( s ) U ( s ) = 0.005 s ( 0.38 s + 1 )

2.3. Discrete Time Model

Since the control strategy to be implemented is PI, a continuous time PI controller is designed to establish the sampling time. Accordingly, the closed-loop system bandwidth w b w can be used to determine the sampling time.
The recommendations given in [32,33,34] are applied to design the PI controller. The continuous PI controller is given by Equation (15).
C ( s ) = K s + a s
According to [34], the design procedure consists of locating the zero s = a close to the integrator pole so that the pole-zero pair of the feedback system “almost cancel”. As the objective in this section is to determine the sampling time, the goal is to have the highest bandwidth with an overshoot lower than 22 % (as a criterion of the system response) to design the PI controller. Thus, using the root locus, it is established that a = 0.132 and K = 492 . Figure 8 presents the root locus, the step response, and the Bode diagram of the closed-loop system with the continuous time PI control.
Thus, in Figure 8 it is observed that the bandwidth of the closed-loop system is w b w = 3.23 rad/s. According to [35], the sample rate is usually taken between 10 and 20 times the bandwidth. For the design 20 times are taken; therefore, the sampling frequency is w s = 20 w b w and thus the sampling time T s = 2 π / w s is T s 0.1 s .
The transfer function G ( s ) given by Equation (14) is converted to G ( z ) (discrete time system) using a sampling time of T s = 0.1 s and the bilinear transformation method [30]. In this way, the model of the discrete time system is obtained given by Equation (16).
G ( z ) = 10 5 2.907 + 5.814 z 1 + 2.907 z 2 1 1.767 z 1 + 0.767 z 2
In general, this transfer function can be represented as:
G ( z ) = Θ ( z ) U ( z ) = B 0 + B 1 z 1 + B 2 2 1 + A 1 z 1 + A 2 z 2
The respective difference equation for this plant is:
θ [ n ] = B 0 u [ n ] + B 1 u [ n 1 ] + B 2 u [ n 2 ] A 1 θ [ n 1 ] A 2 θ [ n 2 ]

3. Fuzzy Control System

The neuro-fuzzy controller uses the structure of a compact fuzzy system based on Boolean relations such as that presented in [21], which can be used for the identification and control of dynamic systems. Fuzzy systems based on Boolean relations are based on a system design considering possible Boolean regions in the discourse universes; then this system is extended using fuzzy sets for implementation, making it possible to consider the operation of sensors and actuators present in the control system [22]. The output of these systems can be calculated as:
y = i = 1 N ν i Y i
where ν i corresponds to the virtual actuator and Y i the activation output that depends on the membership functions μ l , j ( x l ) associated with inputs x l for l = 1 , 2 , , L and j = 1 , 2 , , M l .
In order to establish the activation functions Y i , a truth table and various design considerations are used as well as the manipulation of the system equations using Boolean and Kleene algebras [22]. By using a compact structure, direct equivalence can be performed with the structure of a dynamic discrete time system, which allows the implementation of fuzzy controllers [21].
In this way, fuzzy control design consists of modifying (extending) a linear (discrete time) controller using fuzzy sets to model the controller non-linear relations. This design principle is used in [23] to control an automatic voltage regulator. The general diagram of the control system can be seen in Figure 9.
The fuzzy controller schema consists of modifying the non-linear relations that exist for the input and feedback signals. To carry out the design of the neuro-fuzzy controller, a linear PI (Proportional Integral) controller given by Equation (20) is considered.
C ( s ) = K p + K i s = s K p + K i s
Considering the controller in discrete time, the respective transfer function of the PI controller is:
C ( z ) = U ( z ) E ( z ) = b 0 b 1 z 1 1 z 1
The difference equation of this controller corresponds to:
u [ n ] = b 0 e [ n ] b 1 e [ n 1 ] + u [ n 1 ]
where the respective coefficients b 0 , b 1 are constant. For the fuzzy controller, these constants are replaced by non-linear relations given by fuzzy membership functions, such that:
u [ n ] = f 1 ( e [ n ] ) f 2 ( e [ n 1 ] ) + f 3 ( u [ n 1 ] ) )
Fuzzy sets shown in Figure 10 and Figure 11 are employed for the fuzzy control system. Particularly, Figure 10 shows a sigmoidal fuzzy set to model positive values of the universe of discourse e and u, while in Figure 11 the negative values are represented for the error e and control action u.
Considering the fuzzy sets described in Figure 10 and Figure 11, as well as the controller structure given by Equation (23), the scheme of Figure 12 is obtained, where the proposed fuzzy controller is shown.
The controller output can be calculated with Equation (24) where the inputs to the fuzzy system are x i { e [ n ] , e [ n 1 ] , u [ n 1 ] } .
u [ n ] = i = 1 3 j = 1 2 ν i j μ i j ( x i ) = i = 1 3 f i ( x i )
For each input x i it is possible to define a function f i as presented in Equation (25).
f i = ν i 1 μ i 1 ( x i ) + ν i 2 μ i 2 ( x i )
To carry out the respective calculations, the membership function is given by equation μ i j ( x i ) = ( 1 + e ρ i j ( x i χ i j ) ) 1 ; in this way, the set of controller parameters is H c = { ν i j , ρ i j , χ i j } .

4. Controller Parameter Training

The structure of the closed-loop neuro-fuzzy controller can be assimilated as a recurrent neural network; according to [36], there are different alternatives to perform the training process. One way is to calculate the respective recurrent equation that updates each parameter using the respective fitness function derivatives. In this way, the system simulation will be carried out with the current parameters without modification; in the same simulation the adjustment of parameters is carried out in auxiliary variables, since these parameters are not used in the current simulation. When finishing the simulation, the system parameters are updated with those stored in the auxiliary variables and a new simulation is carried out until the value of the fitness function is reduced.
To carry out the controller training, first the structure of the plant and the controller are established; thus, for a closed-loop system, the control action corresponds to:
u [ n ] = f c ( e [ n ] , e [ n 1 ] , u [ n 1 ] , H c )
Likewise, the system’s output employed for controller training is:
θ [ n ] = f p u [ n ] , u [ n 1 ] , θ [ n 1 ] , θ [ n 2 ] , H p
where H c corresponds to the set of controller parameters and H p to the plant parameters. Considering h c as one of the control system parameters, the adaptation of the controller parameters is carried out using Equation (28).
h c ( k + 1 ) = h c ( k ) η d J d h c
In Equation (28), parameter η is the learning rate and J corresponds to the adjustment function defined as:
J = 1 2 Q e [ n ] 2 + R u [ n ] 2
where e [ n ] = r [ n ] θ [ n ] and the derivative of J depending on the adjustment parameters is given by Equation (30). Considering these equations, Figure 13 shows the algorithm employed for controller training.
d J d h c = Q e [ n ] d e d h c + R u [ n ] d u d h c
The first step consists of choosing the initial controller’s parameter configuration; then, the next step involves the system output calculation using the model of the plant. Subsequently, the parameter’s adjustment occurs employing the respective equations involved in the dynamics in the control system and the derivatives of the parameters (equations d e / d h c , d u / d h c and subsequent). It is noteworthy that during the simulation the adjusted parameters are stored in auxiliary variables since during this process these values are not used by the controller. To continue the simulation and parameter adjustment, the algorithm returns to the step where the control system is evaluated with n = n + 1 , repeating this process until simulation time N T is complete. Once the simulation time is completed, the parameters of the controller are updated with the optimized values to return to the evaluation step of the control system to start a new iteration k = k + 1 until the objective function J T ( k ) = ( 1 / N T ) n = 1 N T J ( k , n ) is less than a given ε or until k is equal to a given number K T .

5. Equations for Linear Controller Parameter Training

The implementation of the training algorithm (dynamic back propagation) uses difference equations of each parameter in the adaptation Equation (28). On aspects to bear in mind in [37,38], the stability analysis is presented for this kind of algorithm used for training recurrent neural networks.
In order to determine the equations for linear controller training, first, the error equation is e [ n ] = r [ n ] θ [ n ] where the output of the plant is given by Equation (31).
θ [ n ] = B 0 u [ n ] + B 1 u [ n 1 ] + B 2 u [ n 2 ] A 1 θ [ n 1 ] A 2 θ [ n 2 ]
Secondly, the difference equation of the controller is:
u [ n ] = b 0 e [ n ] b 1 e [ n 1 ] + u [ n 1 ]
Therefore, the training equations of the parameters h c { b 0 , b 1 } are the following:
d e d h c [ n ] = d θ d h c [ n ]
d θ d h c [ n ] = B 0 d u d h c [ n ] + B 1 d u d h c [ n 1 ] + B 2 d u d h c [ n 2 ] A 1 d θ d h c [ n 1 ] A 2 d θ d h c [ n 2 ]
The derivative equation of u [ n ] based on the controller parameter b 0 is:
d u d b 0 [ n ] = d d b 0 ( b 0 e [ n ] ) b 1 d e d b 0 [ n 1 ] + d u d b 0 [ n 1 ] = b 0 d e d b 0 [ n ] b 1 d e d b 0 [ n 1 ] + d u d b 0 [ n 1 ] + e [ n ]
Therefore, for the parameter b 1 the equation is:
d u d b 1 [ n ] = b 0 d e d b 1 [ n ] d d b 1 ( b 1 e [ n 1 ] ) + d u d b 1 [ n 1 ] = b 0 d e d b 1 [ n ] b 1 d e d b 1 [ n 1 ] + d u d b 1 [ n 1 ] e [ n 1 ]
In this way, using a learning rate η the following equation is used to update the parameters:
h c ( k + 1 ) = h c ( k ) η Q e [ n ] d e [ n ] d h c + R u [ n ] d u [ n ] d h c

6. Equations for Fuzzy Controller Parameter Training

In this case, the training equations are established for the fuzzy controller based on Boolean relations; in this order, the equation of the plant is:
θ [ n ] = B 0 u [ n ] + B 1 u [ n 1 ] + B 2 u [ n 2 ] A 1 θ [ n 1 ] A 2 θ [ n 2 ]
Considering the controller architecture (Figure 12) and the expression for f i given by Equation (25), the controller dynamics is given by:
u [ n ] = f 1 ( e [ n ] ) f 2 ( e [ n 1 ] ) + f 3 ( u [ n 1 ] )
Additionally,
e [ n ] = r [ n ] θ [ n ]
is used to calculate the error variable.
The respective derivative of the plant output θ [ n ] for a controller parameter h i j H c is:
d θ d h i j [ n ] = B 0 d u d h i j [ n ] + B 1 d u d h i j [ n 1 ] + B 2 d u d h i j [ n 2 ] A 1 d θ d h i j [ n 1 ] A 2 d θ d h i j [ n 2 ]
In the same way, the derivative of the control action u [ n ] with respect to h i j is:
d u [ n ] d h i j = d f 1 ( e [ n ] ) d h i j d f 2 ( e [ n 1 ] ) d h i j + d f 3 ( u [ n 1 ] ) d h i j
Meanwhile, the derivative of the error e [ n ] for a controller parameter h i j corresponds to:
d e [ n ] d h i j = d r [ n ] d h i j d θ [ n ] d h i j = d θ [ n ] d h i j
To determine the respective derivatives, it is considered that:
d f l ( x l ) d h i j = d d h i j ( ν l 1 μ l 1 ( x l ) ) + d d h i j ( ν l 2 μ l 2 ( x l ) )
where l = 1 , , 3 , i = 1 , , 3 and j = 1 , 2 ; therefore, there are different cases for values of i and l. According to the values of i, l and j the possible cases are:
  • Case: l i , where f l does not depend directly on h i j .
  • Case: l = i and j = 1 , where f i directly depends on h i 1 .
  • Case: l = i and j = 2 , where f i directly depends on h i 2 .
In the case when l i it is obtained:
d f l ( x l ) d h i j = d d x l ( ν l 1 μ l 1 ( x l ) ) d x l d h i j + d d x l ( ν l 2 μ l 2 ( x l ) ) d x l d h i j
d f l ( x l ) d h i j = d d x l ( ν l 1 μ l 1 ( x l ) ) + d d x l ( ν l 2 μ l 2 ( x l ) ) d x l d h i j
For m = 1 , 2 the respective derivatives are:
d d x l ( ν l m μ l m ( x l ) ) = d d x l ν l m 1 + e ρ l m ( x l χ l m ) 1
d d x l ( ν l m μ l m ( x l ) ) = L l m = ν l m 1 + e ρ l m ( x l χ l m ) 2 e ρ l m ( x l χ l m ) ρ l m
Meanwhile, when l = i and j = 1 it is established that:
d f i ( x i ) d h i 1 = d d h i 1 ( ν i 1 μ i 1 ( x i ) ) + d d x i ( ν i 2 μ i 2 ( x i ) ) d x i d h i 1
Now in the case where l = i and j = 2 it is presented that:
d f i ( x i ) d h i 2 = d d x i ( ν i 1 μ i 1 ( x i ) ) d x i d h i 2 + d d h i 2 ( ν i 2 μ i 2 ( x i ) )
In the first place, for the derivatives with respect to x i is obtained:
d d x i ( ν i j μ i j ( x i ) ) = L i j = ν i j 1 + e ρ i j ( x i χ i j ) 2 e ρ i j ( x i χ i j ) ρ i j
Second, for the derivatives with respect to h i j it has:
d d h i j ( ν i j μ i j ( x i ) ) = d d h i j ν i j 1 + e ρ i j ( x i χ i j ) 1
In this way, for the respective parameters ν i j , ρ i j and χ i j it is obtained that:
d d ν i j ( ν i j μ i j ( x i ) ) = 1 + e ρ i j ( x i χ i j ) 1 + ν i j 1 + e ρ i j ( x i χ i j ) 2 e ρ i j ( x i χ i j ) ρ i j d x i d ν i j
d d ρ i j ( ν i j μ i j ( x i ) ) = ν i j 1 + e ρ i j ( x i χ i j ) 2 e ρ i j ( x i χ i j ) χ i j x i ρ i j d x i d ρ i j
d d χ i j ( ν i j μ i j ( x i ) ) = ν i j 1 + e ρ i j ( x i χ i j ) 2 e ρ i j ( x i χ i j ) ρ i j ρ i j d x i d χ i j
In general terms for h i j these equations can be written as:
d d h i j ( ν i j μ i j ( x i ) ) = T h i j + C i j d x i d h i j
Considering the parameters ν i j , ρ i j and χ i j it has:
d d ν i j ( ν i j μ i j ( x i ) ) = T ν i j + C i j d x i d ν i j
d d ρ i j ( ν i j μ i j ( x i ) ) = T ρ i j + C i j d x i d ρ i j
d d χ i j ( ν i j μ i j ( x i ) ) = T χ i j + C i j d x i d χ i j
where:
C i j = ν i j 1 + e ρ i j ( x i χ i j ) 2 e ρ i j ( x i χ i j ) ρ i j
T ν i j = 1 + e ρ i j ( x i χ i j ) 1
T ρ i j = ν i j 1 + e ρ i j ( x i χ i j ) 2 e ρ i j ( x i χ i j ) χ i j x i
T χ i j = ν i j 1 + e ρ i j ( x i χ i j ) 2 e ρ i j ( x i χ i j ) ρ i j
Considering the above for the Equation (46) (case l i ), it can be written in the form:
d f l ( x l ) d h i j = d d x l ( ν l 1 μ l 1 ( x l ) ) + d d x l ( ν l 2 μ l 2 ( x l ) ) d x l d h i j = L l 1 + L l 2 d x l d h i j
On the other hand, for Equation (49) (case l = i , j = 1 ) the following representation is stated:
d f i ( x i ) d h i 1 = d d h i 1 ( ν l 1 μ i 1 ( x i ) ) + d d x i ( ν i 2 μ i 2 ( x i ) ) d x i d h i 1 = T h i 1 + C i 1 d x i d h i 1 + L i 2 d x i d h i 1 = T h i 1 + C i 1 + L i 2 d x i d h i 1
Meanwhile for the Equation (50) (case l = i , j = 2 ) it is obtained:
d f i ( x i ) d h i 2 = d d x i ( ν l 1 μ i 1 ( x i ) ) d x i d h i 2 + d d h i 2 ( ν i 2 μ i 2 ( x i ) ) = L i 1 d x i d h i 2 + T h i 2 + C i 2 d x i d h i 2 = T h i 2 + L i 1 + C i 2 d x i d h i 2
Finally, Equations (67)–(69) are employed to update the parameters, here η corresponds to the learning rate.
ν i j ( k + 1 ) = ν i j ( k ) η Q e [ n ] d e [ n ] d ν i j + R u [ n ] d u [ n ] d ν i j
ρ i j ( k + 1 ) = ρ i j ( k ) η Q e [ n ] d e [ n ] d ρ i j + R u [ n ] d u [ n ] d ρ i j
χ i j ( k + 1 ) = χ i j ( k ) η Q e [ n ] d e [ n ] d χ i j + R u [ n ] d u [ n ] d χ i j

7. Results

Using the equations described in Section 5 and Section 6, the respective optimization of the control system is carried out for both the linear and fuzzy controllers. The settings for the Q and R values are as follows:
  • QR1: Q = 1 , R = 0.00005 .
  • QR2: Q = 1 , R = 0.0001 .
  • QR3: Q = 1 , R = 0.0005 .
  • QR4: Q = 1 , R = 0.001 .
After the training process Figure 14 shows the results when considering different reference values using the PI discrete linear controller.
The transfer functions of the PI controller obtained to Q and R values are the following:
  • QR1:
    C ( z ) = 66.79 z 66.67 z 1 = 66.79 ( z 0.9982 ) ( z 1 )
  • QR2:
    C ( z ) = 48.48 z 48.39 z 1 = 48.48 ( z 0.9981 ) ( z 1 )
  • QR3:
    C ( z ) = 22.66 z 22.62 z 1 = 22.66 ( z 0.9982 ) ( z 1 )
  • QR4:
    C ( z ) = 16.11 z 16.08 z 1 = 16.11 ( z 0.9981 ) ( z 1 )
The stability analysis for linear controller consists of determining the closed-loop poles of the control system (controller and plant). In this order, if the poles are in the unit circle the system is stable. For each case the transfer function T ( z ) in a closed loop is:
  • QR1:
    T ( z ) = 0.001942 z 3 + 0.001945 z 2 0.001935 z 0.001938 1.002 z 3 2.765 z 2 + 2.532 z 0.7689
  • QR2:
    T ( z ) = 0.001409 z 3 + 0.001412 z 2 0.001404 z 0.001407 1.001 z 3 2.766 z 2 + 2.533 z 0.7684
  • QR3:
    T ( z ) = 0.0006587 z 3 + 0.0006599 z 2 0.0006564 z 0.0006576 1.001 z 3 2.766 z 2 + 2.533 z 0.7677
  • QR4:
    T ( z ) = 0.0004683 z 3 + 0.0004692 z 2 0.0004666 z 0.0004674 z 3 2.767 z 2 + 2.534 z 0.7675
The respective pole localization is presented in Table 1. It is observed that the poles are within the unit circle. Therefore, all the systems in a closed loop are stable.
Additionally, as observed, the controllers display the zero near to z = 0.998 , while the gain K has the values 66.79 , 48.48 , 22.66 and 16.11 . Moreover, when incrementing the value of R (which weighs the action control), the gain value of the K controller is reduced. Furthermore, it is seen that the algorithm establishes the zero near the pole, therefore the pole and zero “almost cancel” which is consistent with reference [34] for the PI controller design.
As results analysis, Figure 15 shows the root locus for the PI control system. This figure also displays the movement of the roots as the gain K increases.
Employing configurations of functions f i ( x i ) shown in Figure 16, it is possible to use the values obtained from the optimization of the linear controller to define an initial configuration to optimize the fuzzy controller. Thus, the slope of f i in the linear region is set to be equivalent with each parameter of the linear controller.
The fuzzy controller parameters obtained, with which the simulation of the closed-loop system can be performed, are shown in Table 2. As can be seen, there are different parameters considering the QR case. In this table, i corresponds to rows and j to columns.
After performing the fuzzy controller training, Figure 17 shows the system response for different reference values, as well as the value of the control signal; additionally, Figure 18 shows in detail the system response for a unitary reference. According to simulations, the suitable configurations correspond to QR2 or QR3 considering the values of control action and settling time.
On the other hand, Table 3 presents the values obtained for J T in the initial and the final iteration (30 iterations) when performing the optimization process. These results show that the value of the objective function J T increases when increasing the value of R.
In addition, Table 3 shows that linear and fuzzy controls obtain similar values of J T . These results highlight that the design and choice of the initial configuration of the fuzzy controller were satisfactory since it presents a similar result to the linear controller.
To statistically observe the performance of the linear and fuzzy controllers for different values of Q and R 10 simulations were performed with randomly generated r ( t ) reference values (six variations in each simulation). Results of J T for 10 simulations are shown in Table 4, while Table 5 displays the mean, Standard Deviation (STD), maximum and minimum values.
Regarding the statistical tests application [39], the Kruskal–Wallis test is used to determine statistically significant differences between two or more experimental groups, obtaining a p value of 3.7814 × 10 7 , which indicates differences, then it the Bonferroni procedure is employed to perform multiple comparisons, the results are presented in Figure 19, where we observe no significant difference between the linear and fuzzy implementations for the Q and R configurations. We also observed a significant difference between cases QR1 and QR4.
Meanwhile, Figure 20 shows the system behavior for θ ( t ) when there are disturbances p ( t ) . This figure also displays the responses for different configurations in Q and R. It can be observed that the disturbance effect is more noticeable for the controllers that employ a small signal control, as in the cases QR3 and QR4 (according to Figure 17 and Figure 18).
In Figure 21, the behavior comparison of the linear and fuzzy controllers is presented considering different perturbation values. For the disturbance values considered (Figure 18), some fuzzy controller configurations decrease the disturbance rejection capacity.
In order to statistically observe the performance of the linear and fuzzy controllers for disturbance rejection (considering different values of Q and R) 10 simulations were performed with randomly generated p ( t ) disturbance values (six variations in each simulation). Results of J T for 10 simulations are shown in Table 6, in this way, Table 7 displays the mean, standard deviation, and maximum and minimum values.
Considering Table 6 and Table 7, to determine statistically significant differences among the groups, we used the Kruskal–Wallis test, having a p-value of 2.8463 × 10 13 , which indicates differences. Considering the above result, the multiple comparisons using Bonferroni procedure is performed, obtaining Figure 22 observing no significant difference between the linear and fuzzy controllers for the configurations of Q and R. In addition, Figure 22 allows us to observe differences among cases QR1, QR2, QR3, and QR4, for example, when the value of R is increased the value of J T also increases.

8. Discussion

As seen, for linear controller the algorithm locates the zero near the pole in such a way that the pole and zero “almost cancel” occurs, which is a PI controller design method as presented in [34]. Frequently, it is possible to create a design by placing the zero of the controllers near the pole of origin in a way that both pole and zero of the system in closed loop “almost cancel” each other. Considering [33,34], a pair pole-zero that almost cancels has an insignificant effect on the time response; thus, the transitory response of the closed-loop system with the controller is approximately the same as in the closed-loop system without the controller. As a result, PI controller offers little deterioration in the transitory response with a significant improvement in steady state error.
According to [40], a prefilter can be employed to improve the system’s dynamic response. In the linear controller, the prefilter allows the cancellation of the zero effect; also, the system overshoot can be reduced with an adequate prefilter design. The effect of the prefilter might be included in the training algorithm for the optimization of the neuro-fuzzy system. The prefilter may have a linear design and then extend it to a fuzzy design.
This application shows the possibility of achieving a non-linear fuzzy controller taking as reference the design of a linear controller (linear controllers with excellent performance can be used for the plant). As the plant considered is well known, the article focuses on showing how a linear controller can be extended to a fuzzy controller (starting from a behavior close to the linear controller). After having the first implementation for the fuzzy controller, nonlinearities can be included to improve the behavior of the control system when having more complex plants with nonlinearities, a subject that will be addressed in later work. In addition, it can be considered a broader comparison with other techniques using different plants.
Further, in this work, the stability analysis of the closed-loop system was performed with the linear controller, in a later work it is expected to extend the stability analysis for this type of fuzzy controllers by means of a Liapunov analysis.

9. Conclusions

Linear controller design and optimization allow the design of the fuzzy controller as well as the definition of the initial optimization setup of this controller.
For the linear controller (in discrete time), since the pole of the controller is placed in z = 1 , the employed algorithm aims at finding the optimal location for the zero. Then, the fuzzy controller is optimized by considering these values for the initial setup; therefore, similar behavior is obtained. This demonstrates that it is possible to carry out the design and optimization of the fuzzy controller having a linear controller as a reference.
The fuzzy controller permits to include nonlinear relations through membership functions. Adequate configurations of these functions also allow the definition of a linear region in a way that it is possible to determine equivalence between the linear and fuzzy controllers.
The use of values Q and R permits obtaining different behaviors considering the action values that may be supplied for the plant. When testing the fuzzy controller for different reference values, the behavior of the control system is similar for the considered reference values.
It is observed that keeping the value of Q constant and increasing the value of R, the gain of the controller is reduced in a way that the energy of the plant also decreases.
The fuzzy controller scheme can be used for the implementation of an adaptive control strategy, in such a way that when a variation of the plant parameters occurs, the controller can be adjusted to obtain the desired behavior.

Author Contributions

Conceptualization, H.E., I.M. and H.L.; methodology, H.E., I.M. and H.L.; project administration, H.L.; supervision, H.L.; validation, I.M.; writing—original draft, H.E.; writing—review and editing, H.E., I.M. and H.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

In this work were not carried out test on individuals (humans).

Informed Consent Statement

The study presented in this work does not involve human beings.

Data Availability Statement

No external data were required for this work.

Acknowledgments

The authors express gratitude to the Universidad de Oviedo, and the Universidad Distrital Francisco José de Caldas.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Feng, G. Analysis and Synthesis of Fuzzy Control Systems: A Model-Based Approach; CRC Press: Boca Raton, FL, USA, 2010. [Google Scholar]
  2. Barragán, J.; Al-Hadithi, B.M.; Andújar, J.M.; Jiménez, A. Metodología formal de análisis del comportamiento dinámico de sistemas no lineales mediante lógica borrosa. Rev. Iberoam. Autom. Inform. Ind. 2015, 12, 434–445. [Google Scholar] [CrossRef] [Green Version]
  3. Ross, T.J. Fuzzy Logic with Engineering Applications; John Wiley & Sons: West Sussex, UK, 2017. [Google Scholar]
  4. Zhang, B.; Shin, Y.C. A Data-Driven Approach of Takagi-Sugeno Fuzzy Control of Unknown Nonlinear Systems. Appl. Sci. 2021, 11, 62. [Google Scholar] [CrossRef]
  5. Chen, D.; Cai, J.; Huang, Y.; Lv, Y. Deep Neural Fuzzy System Oriented toward High-Dimensional Data and Interpretable Artificial Intelligence. Appl. Sci. 2021, 11, 7766. [Google Scholar] [CrossRef]
  6. Chau, N.L.; Tran, N.T.; Dao, T.P. A multi-response optimal design of bistable compliant mechanism using efficient approach of desirability, fuzzy logic, ANFIS and LAPO algorithm. Appl. Soft Comput. 2020, 94, 106486. [Google Scholar] [CrossRef]
  7. Chau, N.L.; Tran, N.T.; Dao, T.P. Design optimization for a compliant mechanism based on computational intelligence method. Neural Comput. Appl. 2021, 33, 9565–9587. [Google Scholar] [CrossRef]
  8. Dinh, V.B.; Tran, N.T.; Dao, T.P. An integration framework of topology method, enhanced adaptive neuro-fuzzy inference system, water cycle algorithm with evaporation rate for design optimization for a flexure gripper. Neural Comput. Appl. 2021, 1–26. [Google Scholar] [CrossRef]
  9. Chen, Z.S.; Dang, M.P.; Le, H.G.; Chau, N.L.; Dao, T.P. Optimization for a flexure hinge using an effective hybrid approach of fuzzy logic and moth-flame optimization algorithm. Math. Probl. Eng. 2021, 2021, 6622655. [Google Scholar] [CrossRef]
  10. Jerkovic, V.; Varga, T.; Benšic, T.; Barukcic, M. A Survey of Fuzzy Algorithms Used in Multi-Motor Systems Control. Electronics 2020, 9, 1788. [Google Scholar] [CrossRef]
  11. Callejas-Cuervo, M.; González-Cely, A.X.; Bastos-Filho, T. Design and Implementation of a Position, Speed and Orientation Fuzzy Controller Using a Motion Capture System to Operate a Wheelchair Prototype. Sensors 2021, 21, 4344. [Google Scholar] [CrossRef]
  12. Lin, Y.-H.; Yu, C.-M.; Wu, C.-Y. Towards the Design and Implementation of an Image-Based Navigation System of an Autonomous Underwater Vehicle Combining a Color Recognition Technique and a Fuzzy Logic Controller. Sensors 2021, 21, 4053. [Google Scholar] [CrossRef]
  13. Ortega-García, L.E.; Rodriguez-Sotelo, D.; Nuñez-Perez, J.C.; Sandoval-Ibarra, Y.; Perez-Pinal, F.J. DSP-HIL Comparison between IM Drive Control Strategies. Electronics 2021, 10, 921. [Google Scholar] [CrossRef]
  14. Hwang, K.-H.; Park, J.-H.; Kim, H.-J.; Kuc, T.-Y.; Lim, S.-J. Development of a Simple Robotic Driver System (SimRoDS) to Test Fuel Economy of Hybrid Electric and Plug-In Hybrid Electric Vehicles Using Fuzzy-PI Control. Electronics 2021, 10, 1444. [Google Scholar] [CrossRef]
  15. Chen, C.-H.; Lin, C.-J.; Jeng, S.-Y.; Lin, H.-Y.; Yu, C.-Y. Using Ultrasonic Sensors and a Knowledge-Based Neural Fuzzy Controller for Mobile Robot Navigation Control. Electronics 2021, 10, 466. [Google Scholar] [CrossRef]
  16. Chien, J.-C.; Dang, Z.-Y.; Lee, J.-D. Navigating a Service Robot for Indoor Complex Environments. Appl. Sci. 2019, 9, 491. [Google Scholar] [CrossRef] [Green Version]
  17. Carpio, M.; Saltaren, R.; Viola, J.; Calderon, C.; Guerra, J. Proposal of a Decoupled Structure of Fuzzy-PID Controllers Applied to the Position Control in a Planar CDPR. Electronics 2021, 10, 745. [Google Scholar] [CrossRef]
  18. Fei, J.; Chen, Y.; Liu, L.; Fang, Y. Fuzzy Multiple Hidden Layer Recurrent Neural Control of Nonlinear System Using Terminal Sliding-Mode Controller. IEEE Trans. Cybern. 2021, 1–16. [Google Scholar] [CrossRef]
  19. Fei, J.; Chen, Y. Fuzzy Double Hidden Layer Recurrent Neural Terminal Sliding Mode Control of Single-Phase Active Power Filter. IEEE Trans. Fuzzy Syst. 2021, 29, 3067–3081. [Google Scholar] [CrossRef]
  20. Fei, J.; Wang, Z.; Liang, X.; Feng, Z.; Xue, Y. Fractional Sliding Mode Control for Micro Gyroscope Based on Multilayer Recurrent Fuzzy Neural Network. IEEE Trans. Fuzzy Syst. 2021. [Google Scholar] [CrossRef]
  21. Espitia, H.; Soriano, J.; Machón, I.; López, H. Compact Fuzzy Systems Based on Boolean Relations. Appl. Sci. 2021, 11, 1793. [Google Scholar] [CrossRef]
  22. Espitia, H.; Soriano, J.; Machón, I.; López, H. Design Methodology for the Implementation of Fuzzy Inference Systems Based on Boolean Relations. Electronics 2019, 8, 1243. [Google Scholar] [CrossRef] [Green Version]
  23. Espitia, H.; Machón, I.; López, H. Optimization of a Fuzzy Automatic Voltage Controller Using Real-Time Recurrent Learning. Processes 2021, 9, 947. [Google Scholar] [CrossRef]
  24. Gupta, M.; Jin, L.; Homma, N. Static and Dynamic Neural Networks: From Fundamentals to Advanced Theory; Jhon Wiley & Sons: Hoboken, NJ, USA, 2003. [Google Scholar]
  25. Ioannou, P.A.; Pitsillides, A. Modeling and Control of Complex Systems; CRC Press: Boca Raton, FL, USA, 2008. [Google Scholar]
  26. Olivas, E.S.; Guerrero, J.D.M.; Martinez-Sober, M.; Magdalena-Benedito, J.R.; Serrano López, A.J. Handbook of Research on Machine Learning Applications and Trends: Algorithms, Methods, and Techniques: Algorithms, Methods, and Techniques; Information Science Reference (IGI Global): Hershey, PA, USA, 2010. [Google Scholar]
  27. Espitia, H.; Sierra, F. Optimización de un controlador análogo para un seguidor solar empleando algoritmos genéticos y enjambres de partículas. In Proceedings of the IEEE SIFAE Simposio Internacional en Fuentes Alternativas de Energía y Calidad Energética, Barranquilla, Colombia, 25–26 October 2012. [Google Scholar]
  28. Espitia, H.; Sierra, J. Diseño e implementación de controladores análogos para un seguidor solar. Visión Electrónica 2013, 7, 118–135. [Google Scholar]
  29. Espitia, H.; Sierra, F. Controller optimization for a solar tracking system using differential evolution. Tecciencia 2015, 7, 7–13. [Google Scholar] [CrossRef] [Green Version]
  30. Espitia, H.; Machón, I.; López, H. Optimization of a linear controller using dynamic back-propagation. Visión Electrónica 2019, 13, 273–279. [Google Scholar] [CrossRef]
  31. Ogata, K. Modern Control Engineering, 5th ed.; Instrumentation and Controls Series; Prentice Hall: Boston, MA, USA, 2010. [Google Scholar]
  32. Gajíc, Z.; Lelíc, M. Modern Control System Engineering; Prentice Hall: Hoboken, NJ, USA, 1996. [Google Scholar]
  33. Nise, N.S. Control Systems Engineering, 6th ed.; John Wiley & Sons: Hoboken, NJ, USA, 2011. [Google Scholar]
  34. Fadali, M.S. Antonio Visioli, Digital Control Engineering: Analysis and Design; Elsevier: Waltham, MA, USA, 2013. [Google Scholar]
  35. Ogata, K. Sistemas de Control en Tiempo Discreto; Prentice Hall Hispanoamericana: Mexico City, Mexico, 1996. [Google Scholar]
  36. Mak, M.W.; Ku, K.W.; Lu, Y.L. On the improvement of the real time recurrent learning algorithm for recurrent neural networks. Neurocomputing 1999, 24, 13–36. [Google Scholar] [CrossRef]
  37. Steil, J. Online stability of backpropagation-decorrelation recurrent learning. Neurocomputing 2006, 69, 642–650. [Google Scholar] [CrossRef]
  38. Perrusquía, A.; Yu, W. Identification and optimal control of nonlinear systems using recurrent neural networks and reinforcement learning: An overview. Neurocomputing 2021, 438, 145–154. [Google Scholar] [CrossRef]
  39. Derrac, J.; García, S.; Molina, D.; Herrera, F. A practical tutorial on the use of nonparametric statistical tests as a methodology for comparing evolutionary and swarm intelligence algorithms. Swarm Evol. Comput. 2011, 1, 3–18. [Google Scholar] [CrossRef]
  40. Forrai, A. Embedded Control System Design: A Model Based Approach; Springer: New York, NY, USA, 2013. [Google Scholar]
Figure 1. Methodology employed.
Figure 1. Methodology employed.
Applsci 12 00541 g001
Figure 2. Electromechanical plant schematic diagram.
Figure 2. Electromechanical plant schematic diagram.
Applsci 12 00541 g002
Figure 3. Electromechanical system block diagram.
Figure 3. Electromechanical system block diagram.
Applsci 12 00541 g003
Figure 4. Block diagram of the electromechanical system considering L a 0 .
Figure 4. Block diagram of the electromechanical system considering L a 0 .
Applsci 12 00541 g004
Figure 5. Simplified block diagram of the electromechanical system.
Figure 5. Simplified block diagram of the electromechanical system.
Applsci 12 00541 g005
Figure 6. Equivalent block diagram of the plant.
Figure 6. Equivalent block diagram of the plant.
Applsci 12 00541 g006
Figure 7. Consideration of pole location.
Figure 7. Consideration of pole location.
Applsci 12 00541 g007
Figure 8. System characteristics with PI control.
Figure 8. System characteristics with PI control.
Applsci 12 00541 g008
Figure 9. General diagram of the control system.
Figure 9. General diagram of the control system.
Applsci 12 00541 g009
Figure 10. Membership function to model positive values.
Figure 10. Membership function to model positive values.
Applsci 12 00541 g010
Figure 11. Membership function to model negative values.
Figure 11. Membership function to model negative values.
Applsci 12 00541 g011
Figure 12. Neuro-fuzzy control system scheme.
Figure 12. Neuro-fuzzy control system scheme.
Applsci 12 00541 g012
Figure 13. Algorithm for controller training.
Figure 13. Algorithm for controller training.
Applsci 12 00541 g013
Figure 14. System response with the linear controller.
Figure 14. System response with the linear controller.
Applsci 12 00541 g014
Figure 15. Root locus for the linear controllers obtained.
Figure 15. Root locus for the linear controllers obtained.
Applsci 12 00541 g015
Figure 16. Configuration employed for f i ( x i ) .
Figure 16. Configuration employed for f i ( x i ) .
Applsci 12 00541 g016
Figure 17. System response for different reference values.
Figure 17. System response for different reference values.
Applsci 12 00541 g017
Figure 18. Control signal and response for a unitary reference.
Figure 18. Control signal and response for a unitary reference.
Applsci 12 00541 g018
Figure 19. Multiple comparison using Bonferroni procedure.
Figure 19. Multiple comparison using Bonferroni procedure.
Applsci 12 00541 g019
Figure 20. Response of the system for different disturbance values.
Figure 20. Response of the system for different disturbance values.
Applsci 12 00541 g020
Figure 21. Comparison for the response of the system using linear and fuzzy controllers for different disturbance values.
Figure 21. Comparison for the response of the system using linear and fuzzy controllers for different disturbance values.
Applsci 12 00541 g021
Figure 22. Multiple comparison using Bonferroni procedure.
Figure 22. Multiple comparison using Bonferroni procedure.
Applsci 12 00541 g022
Table 1. Pole localization for each QR case.
Table 1. Pole localization for each QR case.
QR1QR2QR3QR4
0.99810.99800.99780.9971
0.96390.97560.99050.9947
0.79780.78810.77620.7734
Table 2. Fuzzy controller parameters for QR cases.
Table 2. Fuzzy controller parameters for QR cases.
Fuzzy controller parameters for QR1 case
ν i j ρ i j χ i j
1.3358 × 10 4 1.3358 × 10 4 0.0101 0.0101 0.3382 × 10 5 0.3382 × 10 5
1.3334 × 10 4 1.3334 × 10 4 0.0099 0.0099 0.3446 × 10 5 0.3446 × 10 5
0.0200 × 10 4 0.0200 × 10 4 0.0100 0.0100 00
Fuzzy controller parameters for QR2 case
ν i j ρ i j χ i j
9.6960 × 10 3 9.6960 × 10 3 0.0100 0.0100 0.1066 × 10 5 0.1066 × 10 5
9.6780 × 10 3 9.6780 × 10 3 0.0100 0.0100 0.1064 × 10 5 0.1064 × 10 5
0.2000 × 10 3 0.2000 × 10 3 0.0100 0.0100 00
Fuzzy controller parameters for QR3 case
ν i j ρ i j χ i j
4.5320 × 10 3 4.5320 × 10 3 0.0100 0.0100 0.1086 × 10 6 0.1086 × 10 6
4.5240 × 10 3 4.5240 × 10 3 0.0100 0.0100 0.1081 × 10 6 0.1081 × 10 6
0.2000 × 10 3 0.2000 × 10 3 0.0100 0.0100 00
Fuzzy controller parameters for QR4 case
ν i j ρ i j χ i j
3.2220 × 10 3 3.2220 × 10 3 0.0100 0.0100 0.6994 × 10 7 0.6994 × 10 7
3.2160 × 10 3 3.2160 × 10 3 0.0100 0.0100 0.6982 × 10 7 0.6982 × 10 7
0.2000 × 10 3 0.2000 × 10 3 0.0100 0.0100 00
Table 3. Initial and final values for J T in each configuration.
Table 3. Initial and final values for J T in each configuration.
QRLinearFuzzy
Case InitialFinalInitialFinal
QR10.02402930.00777540.00824630.0077858
QR20.03014060.01012580.01037600.0101451
QR30.14248500.01979690.01987500.0198434
QR40.44155300.02695720.02703720.0270370
Table 4. Results of J T for 10 simulations.
Table 4. Results of J T for 10 simulations.
SimulationQR1QR2QR3QR4
Run Linear Fuzzy Linear Fuzzy Linear Fuzzy Linear Fuzzy
10.00320.00330.00440.00440.00920.00900.01300.0126
20.00180.00190.00240.00250.00510.00500.00710.0069
30.00430.00440.00580.00580.01220.01190.01720.0166
40.00320.00320.00430.00430.00900.00880.01270.0123
50.00460.00460.00620.00620.01300.01270.01840.0178
60.00170.00180.00230.00230.00480.00470.00670.0066
70.00180.00180.00240.00250.00510.00510.00730.0070
80.00090.00100.00130.00130.00260.00260.00370.0036
90.00090.00100.00120.00130.00260.00260.00370.0036
100.00250.00260.00340.00340.00690.00680.00970.0094
Table 5. Numerical measures of J T for 10 simulations.
Table 5. Numerical measures of J T for 10 simulations.
NumericalQR1QR2QR3QR4
Measure Linear Fuzzy Linear Fuzzy Linear Fuzzy Linear Fuzzy
Mean0.00250.00260.00340.00340.00700.00690.00990.0096
STD0.00130.00130.00170.00170.00370.00360.00520.0050
Max0.00460.00460.00620.00620.01300.01270.01840.0178
Min0.00090.00100.00120.00130.00260.00260.00370.0036
Table 6. Disturbance rejection results of J T for 10 simulations.
Table 6. Disturbance rejection results of J T for 10 simulations.
SimulationQR1QR2QR3QR4
Run Linear Fuzzy Linear Fuzzy Linear Fuzzy Linear Fuzzy
10.00250.00240.00380.00360.01190.01160.02080.0213
20.00240.00240.00360.00350.01090.01070.01890.0190
30.00230.00230.00340.00330.01010.01000.01720.0178
40.00270.00280.00430.00440.01470.01530.02640.0289
50.00230.00230.00340.00340.01030.01020.01760.0180
60.00230.00230.00340.00330.00990.00990.01680.0178
70.00200.00200.00290.00280.00750.00720.01200.0120
80.00240.00240.00360.00360.01110.01140.01920.0205
90.00220.00220.00310.00310.00880.00860.01450.0147
100.00220.00220.00320.00310.00900.00900.01490.0157
Table 7. Numerical measures of J T for 10 simulations considering disturbance rejection.
Table 7. Numerical measures of J T for 10 simulations considering disturbance rejection.
NumericalQR1QR2QR3QR4
Measure Linear Fuzzy Linear Fuzzy Linear Fuzzy Linear Fuzzy
Mean0.00230.00230.00350.00340.01040.01040.01780.0186
STD0.00020.00020.00040.00040.00200.00220.00390.0045
Max0.00270.00280.00430.00440.01470.01530.02640.0289
Min0.00200.00200.00290.00280.00750.00720.01200.0120
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Espitia, H.; Machón, I.; López, H. Design and Optimization of a Neuro-Fuzzy System for the Control of an Electromechanical Plant. Appl. Sci. 2022, 12, 541. https://doi.org/10.3390/app12020541

AMA Style

Espitia H, Machón I, López H. Design and Optimization of a Neuro-Fuzzy System for the Control of an Electromechanical Plant. Applied Sciences. 2022; 12(2):541. https://doi.org/10.3390/app12020541

Chicago/Turabian Style

Espitia, Helbert, Iván Machón, and Hilario López. 2022. "Design and Optimization of a Neuro-Fuzzy System for the Control of an Electromechanical Plant" Applied Sciences 12, no. 2: 541. https://doi.org/10.3390/app12020541

APA Style

Espitia, H., Machón, I., & López, H. (2022). Design and Optimization of a Neuro-Fuzzy System for the Control of an Electromechanical Plant. Applied Sciences, 12(2), 541. https://doi.org/10.3390/app12020541

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop