Next Article in Journal
Correction: Reshadi et al. Deep-Shallow Metaclassifier with Synthetic Minority Oversampling for Anomaly Detection in a Time Series. Algorithms 2024, 17, 114
Previous Article in Journal
Radial Basis Function (RBF) and Multilayer Perceptron (MLP) Comparative Analysis on Building Renovation Cost Estimation: The Case of Greece
Previous Article in Special Issue
Fractional-Order Fuzzy PID Controller with Evolutionary Computation for an Effective Synchronized Gantry System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fuzzy Modelling Algorithms and Parallel Distributed Compensation for Coupled Electromechanical Systems

by
Christian Reyes
1,
Julio C. Ramos-Fernández
2,
Eduardo S. Espinoza
1,3 and
Rogelio Lozano
1,*
1
Center for Research and Advanced Studies of the National Polytechnic Institute, Av. Instituto Politécnico Nacional 2508, San Pedro Zacatenco, Mexico City 07360, Mexico
2
Dirección de Investigación, Innovación y Posgrado, Universidad Politécnica de Pachuca, Hidalgo 43830, Mexico
3
National Council of Humanities, Sciences and Technologies, Mexico City 03940, Mexico
*
Author to whom correspondence should be addressed.
Algorithms 2024, 17(9), 391; https://doi.org/10.3390/a17090391
Submission received: 15 June 2024 / Revised: 16 August 2024 / Accepted: 29 August 2024 / Published: 3 September 2024
(This article belongs to the Special Issue Algorithms for PID Controller 2024)

Abstract

:
Modelling and controlling an electrical Power Generation System (PGS), which consists of an Internal Combustion Engine (ICE) linked to an electric generator, poses a significant challenge due to various factors. These include the non-linear characteristics of the system’s components, thermal effects, mechanical vibrations, electrical noise, and the dynamic and transient impacts of electrical loads. In this study, we introduce a fuzzy modelling identification approach utilizing the Takagi–Sugeno (T–S) structure, wherein model and control parameters are optimized. This methodology circumvents the need for deriving a mathematical model through energy balance considerations involving thermodynamics and the non-linear representation of the electric generator. Initially, a non-linear mathematical model for the electrical power system is obtained through the fuzzy c-means algorithm, which handles both premises and consequents in state space, utilizing input–output experimental data. Subsequently, the Particle Swarm Algorithm (PSO) is employed for optimizing the fuzzy parameter m of the c-means algorithm during the modelling phase. Additionally, in the design of the Parallel Distributed Compensation Controller (PDC), the optimization of parameters pertaining to the poles of the closed-loop response is conducted also by using the PSO method. Ultimately, numerical simulations are conducted, adjusting the power consumption of an inductive load.

1. Introduction

Electric Power Generation Systems (PGSs) based on Internal Combustion Engines (ICEs) in combination with an electric generator are widely used in industrial and commercial applications due to their low maintenance and ease of operation under several environmental conditions. However, the low energy efficiency of ICEs reduces the performance of the whole power generation system. In recent years, many researches have proposed new strategies to optimize the results of this type of power generation systems. Such research includes the development of new fuels and explosion chamber systems with new materials for ICE operation, electrical generators with new architectures to maximize fuel efficiency, and voltage and power regulation systems with control algorithms using hybrid automatic identification and control techniques [1].
In order to optimize these systems, different strategies have been addressed, such as the use of innovative control techniques [2,3] or the study of the compartmentalization of electric power generation systems with different topologies of artificial neural networks to predict and be efficient in the complicated characteristics of various types of engine with different fuels [4].
The authors in [5] reviewed typical applications of machine learning (ML) and data-driven control (DDC) at the level of monitoring, control, optimization, and fault detection of power generation systems, with a particular focus on finding out how these methods can be used to evaluate, counteract, or withstand the effects of the associated uncertainties. The benefits of ML and DDC techniques are accordingly interpreted in terms of visibility, manoeuvrability, flexibility, profitability, and safety. The authors in [6] provide an overview of artificial-intelligence (AI) applications for power electronic systems. The applications of four categories of AI are discussed, which are expert system, fuzzy logic, metaheuristic method (like PSO), and machine learning. In [7], the authors discussed the design choices and parameters that affect the system performance, the closed-loop stability, and the controller robustness. Moreover, they presented the solvers and control platforms that can be employed for the real-time implementation of Model Predictive Control (MPC) algorithms. Furthermore, in [8], a comprehensive review is conducted on artificial-intelligence applications in regards to optimization system configuration and energy control strategy, along with the applicability of different energy storage technologies.
Most of the control techniques used for voltage regulation require a mathematical model of the ICE coupled to the electric generator. However, obtaining a complete mathematical model is a challenging task due to the interrelation between all the system components and the corresponding determination of its parameters. In order to deal with this issue, the authors in  [9] proposed the use of a non-linear mathematical model, as well as the combination of the first principle of thermodynamics, physical laws, and steady state data of the engine mass air flow, obtained empirically. This type of approach typically results in inaccurate models due to unmodelled system dynamics and, in addition, the resulting complex mathematical models are not suitable to be used to derive voltage regulation control laws.
One of the major potential areas of application of this type of power generator system is autonomous vehicles. For instance, the authors in [10] developed an unmanned military action vehicle, which uses a power generator system composed of a gasoline engine together with an electric generator and a lithium iron phosphate cell. Similarly, the American company Top Flight created the Airborg H8 10k [11], a hybrid powered UAV with eight rotors and an estimated flight time of two hours with a 4 kg payload or one hour of flight with a 10 kg payload, with a maximum speed of 40 mph. In addition, Sullivan UV is one of the leading companies that develop power generator systems in the expanding market of unmanned aerial vehicles [12].

1.1. Related Work

Techniques based on machine learning have proven to be effective approaches for modelling and controlling ICEs, due to their robustness, which allows compensating variations in the electrical load and whose approach guarantees stability [3]. Nevertheless, artificial-intelligence techniques require significant amounts of data to achieve a good model; in addition, they are merely black boxes, in the sense of interpreting the system’s parameters and its mathematical structure. This contrasts with fuzzy models and controllers, such as Mamdani linguistic systems, where an expert in the physical system dictates the basis of operation rules, which are not optimal, but rather based on human experience. On the other hand, the fuzzy modelling and control technique proposed by Takagi–Sugeno (T–S) can be complemented with optimal parameter identification algorithms, as well as with different control techniques. In the Mamdani fuzzy model, both the antecedent and the consequent are fuzzy propositions, which are chosen by experts on the system to be modelled or by an expert in fuzzy modelling, while in the T–S fuzzy modelling, the antecedent is a fuzzy proposition and the consequent is a mathematical function, which can have a polynomial state-space architecture [13]. This represents a strength for the modelling of complex systems and control based on submodels represented in state space. For instance, the authors in [14] presented a fuzzy logic-based control and power management strategy for unmanned aerial vehicles, in which they developed a set of fuzzy rules for controlling and effectively dividing the power between the two power sources: electric generator and ICE. Similarly, the authors in [15] used a fuzzy logic controller to improve the performance of the traditional perturb and observe algorithm for power generation using a photovoltaic system. The proposed fuzzy logic controller with a rule base collection of 25 rules outperformed the controller using the traditional perturb and observe algorithm due to its adaptive step size, enabling the fuzzy logic controller to adapt the photovoltaic system faster to changing environment conditions.
However, the selection of the fuzzy parameter m of the fuzzy c-means algorithm is a crucial aspect in the implementation of this type of techniques. The authors in [16] found that the value of m must be greater than n / ( n 2 ) (where n is the total number of data objects in the data set) viewed from the perspective of the algorithm convergence. More recently, the authors in [17] proposed, based in their experience, a range of 1.1 m 5 , whereas [18] proposed a new guideline for m selection based on robust fuzzy c-means analysis. They suggested to define m in the range [1.5–4]. The authors in [19] proposed a method for the selection of the optimal m value using four cluster validity indices, obtaining an optimal m value in the interval [2.5–3]. The authors in [20] analyzed the use of soft computing techniques based on the c-means fuzzy classification algorithm and the T–S type fuzzy rule structure in research developed in the field of ICE for the generation of electric power. In [21], the authors proposed a novel semi-supervised fuzzy c-means clustering algorithm using multiple fuzzification coefficients instead of an auxiliary matrix to adjust the membership grade of the data elements, aiming to make the proposed fuzzy c-means algorithm a semi-supervised machine-learning method. The authors demonstrated the convergence of the algorithm and validated the efficiency of the method through a numerical example and derived a supervised approach to determine the parameter m of the c-means algorithm.
In our previous work [22], we used the fuzzy T–S technique to estimate the remaining battery energy in an autonomous vehicle. We used the fuzzy c-means algorithm for the assumptions and the consequents were obtained using linear polynomials, while the m parameter used in the fuzzy c-means algorithm was found by implementing the Particle Swarm Optimization (PSO) algorithm. The PSO metaheuristic algorithm has been previously used in several research works in combination with fuzzy logic techniques; for example, the authors in [23] developed a time-delay network control model to predict the output of the control system. In order to deal with the problem of falling into local optimality, they proposed a non-linear fitting formula to obtain the PSO algorithm parameters based on the number of iterations and using the T–S algorithm to obtain a global optimal solution. Similarly, the authors in [24] employed a fuzzy logic control structure for load frequency control of a dual-area power system, in addition to the PSO method to improve its performance.
In the present research work, the technique proposed by Takagi–Sugeno and Tanaka is used to identify a power generation system based on an internal combustion engine–generator scheme controlled using a fuzzy strategy that allows the regulation of the voltage generated by the system. With this strategy, it is sought to avoid the need to derive a complex mathematical model. The contribution of the proposed strategies is not in the development of a new fuzzy control law, but rather in the development of system identification and control algorithms for a specific application to a power generation system.

1.2. Contributions

The main contributions of this research work are summarized in the development of the following two algorithms:
A1.
An algorithm that uses input–output data corresponding to the control signal sent to the Internal Combustion Engine (ICE) and the voltage signal acquired from the electric generator. This algorithm aims to identify offline a T–S type fuzzy model of the power generation system, where the consequent consists of four state-space fuzzy rules. The model consists of four linear submodels, which represent the input–output operation within the learning space. In order to derive the fuzzy model, the consequents are established using the fuzzy data clustering technique, namely the fuzzy c-means algorithm. This method enables an optimal search for the premises of the fuzzy rules. In this technique, an open problem is to determine the fuzzy parameter m, which allows classification of the data into groups with fuzzy affinity. In the present paper, we propose to employ the Particle Swarm Optimization (PSO) method to identify the optimal value of the fuzzy parameter m from within the search space.
A2.
An algorithm that uses Parallel Distributed Compensation (PDC) to regulate the output voltage, whose gains are determined through the combination of pole placement and PSO methods. This control technique, rooted in the T–S fuzzy model, leverages the premises of the rules and adjusts the consequents using state feedback.
The remainder of the article is organized as follows: In Section 2, the description of the power generation system is presented. In Section 3, the T–S fuzzy modelling algorithm with the assumptions in the form of clustering and linear consequents, as well as the construction of the fuzzy system, applied to the power generation system, are derived. The PDC controller for the voltage regulation of the system is shown in Section 4. Finally, the conclusions and future directions of this research work are presented in Section 5.

2. Simulation Platform

To obtain the required experimental data, the system is considered an open-loop Power Generation System (PGS) in series configuration with an electric generator powered by an Internal Combustion Engine (ICE) [25]. In this configuration, the generated voltage is measured in open loop to first identify a fuzzy model of the power generation system and then design a Parallel Distributed Compensation Controller (PDC) that regulates the generated voltage in closed loop.
The PGS is composed of a myRIO-1900 device from National Instruments used for data acquisition and processing. Both the generator/electric motor and the electric motor used as an electrical load are U12 II (120 KV) brushless motors, while the Electronic Speed Controller (ESC) is a 100 Amp Flame HV, all from T-Motor. The servomotor is a DS3230MG, which is 30 kg/cm. The three-phase diode rectifier is 100 amps and 1600 volts. The ICE used is the Stihl-2MIX model, which is a 1.1 HP/0.8 kW and 22.2 cm3 single-cylinder engine, whose operation is two-stroke. We used a resistive voltage sensor to measure the output voltage of the PGS.
A connection diagram of the proposed power generation system is shown in Figure 1, where r ( k ) is the desired voltage, k r is a precompensation gain, e ( k ) is the voltage error, u ( k ) is the obtained control signal, and V G ( k ) represents the generated voltage, and the variable load block corresponds to an inductive load used to produce a richer system behaviour in open loop in order to improve the off-line identification process.

3. T–S Fuzzy Modelling

Two main topics of research and application for the development of fuzzy systems, known as Mamdani and Takagi–Sugeno, are highlighted in the bibliography [26]. The If–Then fuzzy rules contain two fundamental parts, which are the premises and the consequents. In this work, we demonstrate a fuzzy algorithm with the T–S fuzzy system, where the premises are extracted with the clustering technique, which consists of grouping the learning data into subsets based on their similarity to each other. Since the fuzzy c-means algorithm was developed for pattern recognition by [16], it has been of great technical value for the fuzzy modelling and control of non-linear dynamic systems, as presented in this work. We use the c-means clustering algorithm to extract the premises or firing degrees of the fuzzy T–S rules, because it is effective and feasible in the search for the best prototypes of the membership values; Equation (1).
The iterative fuzzy c-means algorithm is applied to find the clustering centres, c i , which are the prototypes of the membership functions and the membership values, μ i k [ 0 , 1 ] , in the learning phase [27].
J ( Z ; U , C ) = i = 1 c k = 1 N μ i k m z k c i I 2 .
where N is the pairs of input–output data used in order to perform learning, c is the number of clusters proposed by the expert designer using a certain heuristic rule (in this paper, we set c = 3 to illustrate the example of the fuzzy identification, modelling, and control algorithm), Z = z 1 , z 2 , , z N is the learning matrix, which can be a time series of input–output measurements, U = [ μ i k ] is the fuzzy partition matrix, with i = 1 , 2 , , c and k = 1 , 2 , , N , and C = [ c 1 , c 2 , , c c ] is the vector of centres to identify. Normally, the parameter fuzzy m > 1 defines the fuzziness, adjusted heuristically or with some genetic algorithm, and has an important relevance for the representation of the premises in the fuzzy rules. Here, we propose the PSO algorithm to find the best prototypes of the membership functions within the learning space.
Several classification and modelling problems in hard sciences and in different topics have been solved efficiently using the fuzzy c-means algorithm and its different variants. In [27], the authors detail the steps to follow in order to implement the c-means algorithm; the Euclidean distances of each sample of the data to be classified from the centres is as follows:
D i k I 2 = z k c i I 2 = ( z k c i ) T I ( z k c i ) ,
where I is the identity matrix. In the learning phase, the solution of Equation (1) for the membership functions of each cluster is given by Equations (3) and (4) and is, iteratively:
μ i k = 1 j = 1 c ( D i k I D j k I ) ( 2 / m 1 )
c i = k = 1 N ( μ i k ) m z k k = 1 N ( μ i k ) m ,
where μ i k is the firing value of the i-th cluster for the k-th sample, with 1 i c , 1 k N .
The construction of the T–S fuzzy model from experimental data was solved in two steps: (1) the structure identification and (2) the estimation of parameters [28]. In step (1), the structure of the model is proposed, using expert knowledge and observations of the response of the system to be modelled.
Based on the model structure already defined, the learning matrix is defined for the learning matrix for parameter estimation, using time sequences of the input–output X R N × n , where n is the number of state-space variables, as follows,
X = x 11 x 12 x 1 n x 21 x 22 x 2 n x N 1 x N 2 x N n
and the output vector Y R N × 1 , Y = y 1 , , y N , T ; using Equation (5), the solution of the weighted average least squares, the identification of the linear consequent parameters θ i ^ for each i-th rule,
θ i ^ = X T Γ i X 1 X T Γ i Y ,
is defined by the matrix Γ i = diag ( μ i k ) R N × N , which contains in its main diagonal the firing value of the i-th fuzzy rule, which gives it a weighting due to the membership values of each rule ( i = 1 , , c ) and each instant ( k = 1 , , N ) . A fuzzy T–S model is proposed (6), based on 4 dynamic linguistic response labels within the discourse universe: low, zero, medium, and high, R i , i = 1 , 2 , 3 , 4 rules. The premises are represented by clustering centres; a discrete-time of the state-space model is proposed [29]:
R i : If z k is c i then x i ( k + 1 ) = A i x ( k ) + B i u ( k ) y i ( k ) = C i x ( k )
where x i ( k + 1 ) is the state vector at time ( k + 1 ) , A i R n × n is the state matrix of the system, x ( k ) R n is the state vector at time ( k ) , B i ( k ) R n × m is the input matrix of the system, C i ( k ) R q × n is the output matrix, u ( k ) R m is the input vector of the system, and y i ( k ) R q is the output vector. The overall output of the fuzzy rule base (defuzzification) is the weighted sum of the firing values of the fuzzy rules [28], given as:
x ( k + 1 ) = i = 1 c μ i k A i x ( k ) + B i u ( k ) i = 1 c μ i k .

3.1. Fuzzy Identification of a Second-Order System

It is well known that any real-time system identification technique is commonly affected by uncertainties and identification errors. In fact, if multiple runs of an identification process applied to exactly the same model were performed, we would end up obtaining similar but slightly different results [30]. For this reason, we decided to use fuzzy logic to determine a model that was sufficiently close to the physical system and that would allow us to perform the desired voltage regulation despite the inherent errors and uncertainties.
Since the central axis of the modelling with fuzzy logic lies in the knowledge base of the system to be modelled, we rely on the observation of the operation of the power generation system of this research work, and the experimental measurements of the input–output, to propose four fuzzy rules.
Thus, the grouping of the power generator operation dynamics was divided into four clusters, using the learning data Z = [ V G ( k 1 ) ; V G ( k ) ; u ( k ) ] . These clusters correspond to the time series of the voltage measurements of the electrical generator and the excitation of the system, which are respectively in variables of state x 1 and x 2 and the input signal  u ( k ) .
The centroids of the prototype membership functions were determined using the c-means algorithm. Table 1 presents the 4 coordinates of the centroids, which were obtained in Matlab® using the fcm() function inside the search loop for the best parameter m with Algorithm 1. These values correspond to the time series of the measurements of the voltage of the electric generator and the PWM excitation, which are, respectively, in the identification of the states x 1 , x 2 , and u ( k ) control signal, as shown in Figure 1.
Algorithm 1 Fuzzy system identification and m parameter optimization.
  • V G , u ← Load open_loop_experimental_data.mat
  • Z [ V G ( k 1 ) , V G ( k ) , u ( k ) ]
  • c 4                      ▹ Number of rules or clusters
  • N Total number of data
  • function fuzzy c-means( Z , c )
  •     Calculate the centroids c
  • end function
  • return  c
  • for i ← 1 to c do                  ▹ Obtaining of consequents
  •      A i , B i Equation (5)                      ▹ Least squares
  • end for
  • return  A i , B i
  • function PSO Algorithm                  ▹ Open Loop System
  •     for m← 1.1 to 3 do                     ▹ Fuzzy Parameter m
  •         Optimize m using Equation (10)            ▹ Objective function
  •     end for
  • end function
  • return m
Four clusters and their corresponding fuzzy rules, which map fuzzy linear subspaces, were proposed. Each clustering operation is defined by locally mapping the system of equations into state-space variables; Equation (6). The global model is the defuzzification of the rules, which infers the non-linear response. The non-linearities of the ICE driver are represented within the ensemble of the four T–S fuzzy rules; Equation (7).
Figure 2 shows the dynamics of operation, due to the excitation input and the response in the state variables, as well as the clustering centres.
The proposed state-space structure, Equation (8), for each of the four rules locally does not represent all the effects acting on the system, but globally the rule base integrates the non-linearity of the identified system.
x 1 i k + 1 x 2 i k + 1 = 0 1 a 2 i a 1 i A i x 1 k x 2 k + 0 b i B i u k
where a 1 i , a 2 i , and b i are the linear parameters that are identified with the weighted least squares algorithm. Table 2 shows the obtained values of A i and B i for the four identified discrete systems.
In order to obtain the required data to conduct the system identification, we conducted open-loop experiments under different scenarios. Figure 3 depicts the open-loop system response in contrast to the output obtained from the identified fuzzy system (identified voltage) with a multiple step input. The identified voltage is smooth with respect to the actual signal from the electrical generator (generated voltage), mainly due to the linear nature of the fuzzy rule consequents, as shown in Equation (6).
Figure 4 depicts the open-loop system response in contrast to the output obtained from the identified fuzzy system with a constant input and an inductive load used to produce a richer system behaviour in open loop in order to improve the off-line identification process.
To validate the discordance of the model, the Quality of Fit (QoF) was calculated by dividing the Mean Squared Error (MSE) of the identified model by the Mean Squared Output (MSO) (9), which must be much smaller than 1 [31], resulting in a QoF = 6.1264   ×   10 4
M S E M S O = 1 N | | θ X Y | | 2 1 N | | Y | | 2

3.2. Optimization of the Fuzzy Parameter m

To improve the approximation of the T–S fuzzy rule base with the input–output learning data, it is proposed to use the PSO algorithm for the optimal search of the m parameter of the c-means fuzzy algorithm. In addition, the PSO algorithm is also used for the optimal selection of the poles of the closed-loop system of the fuzzy rules defined in Equation (6), with a state feedback control structure for each of the fuzzy rules. In this search for the best parameters within the learning space with the input–output measurements, the PSO algorithm was used, as shown in [32,33].
The proposed cost functions for the optimization problem should be defined according to the characteristics of the system one intends to work with. In our experiment, the cost function of Algorithm 1 is proposed in order to minimise the error of the system identification. On the other hand, the corresponding number of clusters in Algorithm 1 was defined based on the open-loop response of the PGS. Since it presented four operational set points, as depicted in Figure 3, we decided to use four clusters in order to capture most of the system behaviour. This behaviour in the PGS is due to the hysteresis phenomena introduced by the servomotor used to control the ICE’s accelerator.
In Algorithm 2, the cost function was defined based on the desired transient response. In this sense, the system poles of the considered electromechanical system were defined in the positive real axis inside the unite circle, since the desired system response should be similar to the response of a first-order system. For a different system, the location of the desired closed-loop poles and the number of clusters/rules will depend on the characteristics of the system, as well as on the desired system response.
Algorithm 2 Pole placement optimization and PDC control.
  • function PSO Algorithm                  ▹ Close Loop System
  •     for  p i 0.01 to 0.9  do                        ▹ Poles p i
  •         Optimize  p i using Equation (12)              ▹ Objective function
  •     end for
  • end function
  • return  p i
  • Calculate K i for each c i using pole assignment
  • function PDC Control( A i , B i , c , c , K i , m , x 1 ( 0 ) , x 2 ( 0 ) )
  •     for i ← 1 to N do
  •         Calculate Euclidean distances using (2)
  •         Calculate the membership degrees using (3)
  •         Calculate the strategy control using (14)
  •         Perform defuzzification using (7)
  •     end for
  • end function
The cost function employed in the PSO to optimize the parameter m, shown in Equation (3), in Algorithm 1 is based on the RMSE between the measurement obtained from the PGS and the output of the identified fuzzy model, and is given as follows:
RMSE = k = 1 N V G ( k ) x 2 ( k ) 2 N
where V G ( k ) is the value of the physical system output and x 2 ( k ) is the output (state variable) of the system identified through fuzzy modelling. Table 3 shows the values used in the PSO algorithm, as well as the search values assigned to the m parameter and the obtained optimal value of m.
To obtain the value of the constants ς 1 and ς 2 , parameter ξ is calculated as:
ξ = 2 κ 2 ϕ ϕ 2 4 ϕ
where ϕ = ϕ 1 + ϕ 2 . The constants ϕ 1 and ϕ 2 are bounded as ϕ 4 and κ 1 , whose values are defined in [34] for the PSO algorithm. Thus, ς 1 and ς 2 are obtained as ς 1 = ξ ϕ 1 and ς 2 = ξ ϕ 2 .
Algorithm 1 shows the procedure used to obtain the parameter m as well as to obtain the identified system based on the number of defined clusters/rules.

3.3. Closed-Loop System Poles Optimization

For the optimization process of the poles of the closed-loop system, we used the following cost function:
RMSE = k = 1 N r ( k ) x 2 ( k ) 2 N
where r ( k ) is the desired voltage reference and x 2 ( k ) is the state variable, which approximates in a fuzzy way the voltage generated in closed loop. As explained before, in order to obtain the best poles that minimises the system response guaranteeing that the poles remain on the real axis inside the unit circle, the search limits were proposed in the interval [ 0.01 , 0.9 ] . Table 4 shows the values used in the PSO algorithm, as well as the values obtained for the closed-loop poles.
In order to highlight the advantages in the implementation of the proposed PSO algorithms, we used the index errors based on the Integral of the Squared Error (ISE), the Integral of the Absolute Value of the Error (IAE), and the Integral of the Absolute Value of the Error multiplied by Time (ITAE). Table 5 depicts the obtained values from the three indexes applied to the simulation scenarios when the PSO algorithm was used and when it was not employed.
From Table 5, we can see that the error indexes are bigger when the PSO algorithm is not used. This is due the fact that the value of the fuzzy parameter has to be proposed based on the designer expertise at the time of conducting the fuzzy modelling by trial and error. Furthermore, since the optimal location of the system poles is obtained with the PSO algorithm, the system performance is improved

4. PDC Fuzzy Control

To achieve the regulation of the T–S system, the control technique based on the distributed parallel compensator was used. In this control strategy, the consequent of each fuzzy rule of the model (6) is replaced by a control law with the form of linear state feedback ([29,35]). In the PDC approach with pole assignment, the eigenvalues of ( A i B i K i ) are proposed. The consequent for each PDC fuzzy rule is given by:
u i ( k ) = K i x ( k )
The global output of the PDC, in other words, the fuzzy aggregation of all control rules, has the following form:
u ( k ) = i = 1 c μ i k u i ( k ) i = 1 c μ i k
where K i is the vector of gains of the i-th rule, as shown in Table 6, and k r = 1.38 is a precompensation gain, as shown in Figure 1. For obtaining the PDC gains, the method by pole assignment was used, as obtained by the PSO algorithm.
Figure 5 shows the simulation results of the voltage regulation at different reference values, in which it can be seen that the PDC controller regulates the generated voltage, defined by reference steps of 30, 40, and 25 volts. These reference values are typical voltage values in applications that employs LiPo batteries. In such applications, 25, 40, and 30 volts are nominal voltages of LiPo batteries with different numbers of cells.
Furthermore, Figure 5 shows the control signal applied to the PGS, which is bounded to values in a range of [ 0 , 1 ] . This variable regulates the amount of gasoline in the explosion chamber by manipulating the throttle unit (carburettor) with a servomotor. It is seen that the PDC fuzzy controller regulates the voltage in the simulation test to the reference voltage value.
Algorithm 2 describes the required steps for the optimization of the controller’s gains as well as the implementation of the PDC controller. The fuzzy model tracking of the closed-loop power generation system achieves a QoF = 3.4763   ×   10 4 , given by Equation (9). The QoF is much less than 1, even though the PGS is subjected to noise in its generated voltage, natural dead zones of the control actuator in the throttle body (carburettor servo motor), and non-linear dynamically varying electrical disturbances (load).

Comparison of Implementing a PDC vs. PD Controller

In order to highlight the advantages of using the proposed strategies, we simulated a classic PD controller and compared its performance with the one obtained with the PDC strategy. We can see from Figure 6 that the PD controller is not able to reach the desired voltages at different step inputs due to the fact that its gains can only be tuned for a specific region of operation. When the desired voltage is defined at a different region of operation, the proposed PDC controller uses the obtained firing value μ i k from the fuzzy strategy to modify the corresponding controller’s gains. It is worth mentioning that this type of electromechanical systems has different regions of operation due to its intrinsic characteristics. These characteristics are given by the non-linear nature and complexity of the system due to its different components, such as dead zones stemming from the actuator utilized in the internal combustion engine’s accelerator, voltage fluctuations, and non-linearities within the electric load and its associated electronic speed controller.

5. Conclusions

The proposed algorithms based on the fuzzy c-means technique, along with the PDC controller and the PSO metaheuristic optimization method, demonstrated effectiveness in modelling, identifying, and controlling a complex system. This capability was verified through numerical tests conducted on the obtained power generator system model.
Taking advantage of experimental data from the open-loop plant, the optimization strategy utilizing the PSO algorithm enabled the determination of the optimal fuzzy parameter m for the c-means algorithm. It was demonstrated that, by optimizing the value of m, the learning data pertaining to the premises of fuzzy rules are classified with greater similarity. This leads to an enhanced interpretation and reduced approximation error of the fuzzy model. Additionally, it facilitated the selection of poles within the unit circle for each closed-loop rule’s consequent, aiding in the fine-tuning of fuzzy controllers via state feedback.
By utilizing input and output data, the process of identifying a fuzzy model for the power generation system bypasses the necessity to derive and identify a mathematical model through conventional techniques. This is particularly advantageous given the significant challenge posed by the complexity of the entire system, which encompasses both an internal combustion engine and a mechanically coupled electric generator.
The comparison of the proposed control strategies with a classical control law demonstrated that classical controllers are not able to reach the desired voltages at different step inputs due to the controller’s gains only being tuned for a certain region of operation. However, when the desired voltage is required to be defined at a different region of operation, the proposed PDC controller modifies the corresponding controller’s gains thorough the obtained firing value, μ i k , from the fuzzy logic strategy.
In our upcoming research work, we aim to deploy the developed algorithms onto a physical power generation system. This step is crucial to validate their efficacy in addressing the inherent complexities characteristic of such systems. These complexities include dead zones stemming from the actuator utilized in the internal combustion engine’s accelerator, voltage fluctuations, and non-linearities within the electric load and its associated electronic speed controller.
The obtained quality-of-fit indexes between the regulated voltage and the identified voltage are Q o F = 3.4763   ×   10 4 and Q o F = 6.1264   ×   10 4 , respectively. For this index, values much smaller than 1 are considered a good performance.

Author Contributions

Conceptualization, C.R. and E.S.E.; methodology, C.R., J.C.R.-F. and E.S.E.; simulations, C.R., J.C.R.-F. and E.S.E.; dynamics modelling and control, C.R., J.C.R.-F. and E.S.E.; investigation, C.R., J.C.R.-F. and E.S.E.; writing—original draft preparation, C.R., E.S.E. and J.C.R.-F.; writing—review and editing, C.R., J.C.R.-F., R.L. and E.S.E.; supervision, E.S.E., J.C.R.-F. and R.L.; project administration, E.S.E. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially supported by the Mexican National Council for Humanities, Sciences, and Technologies through Project: Laboratorio Nacional en Vehículos Autónomos y Exoesqueletos.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

Christian Reyes thanks Conahcyt in recognition of the invaluable support provided throughout his PhD studies at the Center for Research and Advanced Studies of the National Polytechnic Institute Zacatenco, Mexico.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ICEInternal Combustion Engine
MSEMean Square Error
MSOMean Square Output
PDCParallel Distributed Controller
PGSPower Generation System
PSOParticle Swarm Optimization
QoFQuality of Fit
T–STakagi–Sugeno

References

  1. Zaccone, R.; Campora, U.; Martelli, M. Optimisation of a diesel-electric ship propulsion and power generation system using a genetic algorithm. J. Mar. Sci. Eng. 2021, 9, 587. [Google Scholar] [CrossRef]
  2. Xie, Y.; Savvaris, A.; Tsourdos, A. Fuzzy logic based equivalent consumption optimization of a hybrid electric propulsion system for unmanned aerial vehicles. Aerosp. Sci. Technol. 2019, 85, 13–23. [Google Scholar] [CrossRef]
  3. Aliramezani, M.; Koch, C.R.; Shahbakhti, M. Modeling, diagnostics, optimization, and control of internal combustion engines via modern machine learning techniques: A review and future directions. Prog. Energy Combust. Sci. 2022, 88, 100967. [Google Scholar] [CrossRef]
  4. Bhatt, A.N.; Shrivastava, N. Application of artificial neural network for internal combustion engines: A state of the art review. Arch. Comput. Methods Eng. 2022, 29, 897–919. [Google Scholar] [CrossRef]
  5. Sun, L.; You, F. Machine learning and data-driven techniques for the control of smart power generation systems: An uncertainty handling perspective. Engineering 2021, 7, 1239–1247. [Google Scholar] [CrossRef]
  6. Zhao, S.; Blaabjerg, F.; Wang, H. An overview of artificial-intelligence applications for power electronics. IEEE Trans. Power Electron. 2020, 36, 4633–4658. [Google Scholar] [CrossRef]
  7. Karamanakos, P.; Liegmann, E.; Geyer, T.; Kennel, R. Model predictive control of power electronic systems: Methods, results, and challenges. IEEE Open J. Ind. Appl. 2020, 1, 95–114. [Google Scholar] [CrossRef]
  8. Abdalla, A.N.; Nazir, M.S.; Tao, H.; Cao, S.; Ji, R.; Jiang, M.; Yao, L. Integration of energy storage system and renewable energy sources based on artificial intelligence: An overview. J. Energy Storage 2021, 40, 102811. [Google Scholar] [CrossRef]
  9. Di Giovine, G.; Mariani, L.; Di Battista, D.; Cipollone, R.; Fremondi, F. Modeling and experimental validation of a triple-screw pump for internal combustion engine cooling. Appl. Therm. Eng. 2021, 199, 117550. [Google Scholar] [CrossRef]
  10. Amoiralis, E.I.; Tsili, M.A.; Spathopoulos, V.; Hatziefremidis, A. Energy efficiency optimization in uavs: A review. In Proceedings of the Materials Science Forum, Xi’an, China, 8–9 August 2014; Trans Tech Publications Ltd.: Stafa-Zurich, Switzerland, 2014; Volume 792, pp. 281–286. [Google Scholar]
  11. Technologies, T.F. Hybrid VTOL: Increased Energy Density for Increased Payload and Endurance. 2017. Available online: https://vtol.org/files/dmfile/24-TVF2018-Debitetto-TopFlight-Jan191.pdf (accessed on 4 March 2024).
  12. Sullivan UV. Acutronic Power Systems. 2019. Available online: https://www.sullivanuv.com/ (accessed on 10 April 2024).
  13. Babuška, R. Fuzzy Modeling for Control; Springer: Dordrecht, The Netherlands, 1998. [Google Scholar] [CrossRef]
  14. Zhang, X.; Liu, L.; Dai, Y. Fuzzy state machine energy management strategy for hybrid electric UAVs with PV/fuel cell/battery power system. Int. J. Aerosp. Eng. 2018, 2018, 1–16. [Google Scholar] [CrossRef]
  15. Remoaldo, D.; Jesus, I. Analysis of a Traditional and a Fuzzy Logic Enhanced Perturb and Observe Algorithm for the MPPT of a Photovoltaic System. Algorithms 2021, 14, 24. [Google Scholar] [CrossRef]
  16. Bezdek, J.C. A physical interpretation of fuzzy ISODATA. In Readings in Fuzzy Sets for Intelligent Systems; Elsevier: Amsterdam, The Netherlands, 1993; pp. 615–616. [Google Scholar] [CrossRef]
  17. Bezdek, J.C. Pattern Recognition with Fuzzy Objective Function Algorithms; Springer Science & Business Media: New York, NY, USA, 2013. [Google Scholar]
  18. Wu, K.L. Analysis of parameter selections for fuzzy c-means. Pattern Recognit. 2012, 45, 407–415. [Google Scholar] [CrossRef]
  19. Zhou, K.; Fu, C.; Yang, S. Fuzziness parameter selection in fuzzy c-means: The perspective of cluster validation. Sci. China Inf. Sci. 2014, 57, 1–8. [Google Scholar] [CrossRef]
  20. Shrivastava, N.; Khan, Z.M. Application of soft computing in the field of internal combustion engines: A review. Arch. Comput. Methods Eng. 2018, 25, 707–726. [Google Scholar] [CrossRef]
  21. Khang, T.D.; Tran, M.K.; Fowler, M. A Novel Semi-Supervised Fuzzy C-Means Clustering Algorithm Using Multiple Fuzzification Coefficients. Algorithms 2021, 14, 258. [Google Scholar] [CrossRef]
  22. Manjarrez, L.H.; Ramos-Fernández, J.C.; Espinoza, E.S.; Lozano, R. Estimation of Energy Consumption and Flight Time Margin for a UAV Mission Based on Fuzzy Systems. Technologies 2023, 11, 12. [Google Scholar] [CrossRef]
  23. You, D.; Lei, Y.; Liu, S.; Zhang, Y.; Zhang, M. Networked Control System Based on PSO-RBF Neural Network Time-Delay Prediction Model. Appl. Sci. 2022, 13, 536. [Google Scholar] [CrossRef]
  24. Shouran, M.; Alsseid, A. Particle swarm optimization algorithm-tuned fuzzy cascade fractional order PI-fractional order PD for frequency regulation of dual-area power system. Processes 2022, 10, 477. [Google Scholar] [CrossRef]
  25. Benevieri, A.; Carbone, L.; Cosso, S.; Kumar, K.; Marchesoni, M.; Passalacqua, M.; Vaccaro, L. Series Architecture on Hybrid Electric Vehicles: A Review. Energies 2021, 14, 7672. [Google Scholar] [CrossRef]
  26. Takagi, T.; Sugeno, M. Fuzzy identification of systems and its applications to modeling and control. IEEE Trans. Syst. Man Cybern. 1985, SMC-15, 116–132. [Google Scholar] [CrossRef]
  27. Nayak, J.; Naik, B.; Behera, H. Fuzzy C-Means (FCM) Clustering Algorithm: A Decade Review from 2000 to 2014. In Proceedings of the Computational Intelligence in Data Mining, Bhubaneswar, India, 5–6 December 2015; Springer: New Delhi, India, 2014; Volume 2, pp. 133–149. [Google Scholar]
  28. Setnes, M.; Babuska, R.; Verbruggen, H.B. Rule-based modeling: Precision and transparency. IEEE Trans. Syst. Man Cybern. Part C (Appl. Rev.) 1998, 28, 165–169. [Google Scholar] [CrossRef]
  29. Lilly, J.H. Fuzzy Control and Identification; John Wiley & Sons: Hoboken, NJ, USA, 2010. [Google Scholar] [CrossRef]
  30. Rubio, I.; Guijarro, G.; Garcia, L.; Hespanha, J.; Xie, J. Translational Model Identification and Robust Control for the Parrot Mambo UAS. In Proceedings of the IEEE GLOBECOM 2019 Workshop on Computing-Centric Drone Networks, Waikoloa, HI, USA, 9–14 December 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1–6. [Google Scholar] [CrossRef]
  31. Hespanha, J.P. Advanced Undergraduate Topics in Control Systems Design. 2023. Available online: https://web.ece.ucsb.edu/~hespanha/published/allugtopics-20230402.pdf (accessed on 13 January 2024).
  32. Hashim, H.A.; El-Ferik, S.; Abido, M.A. A fuzzy logic feedback filter design tuned with PSO for L1 adaptive controller. Expert Syst. Appl. 2015, 42, 9077–9085. [Google Scholar] [CrossRef]
  33. Praseeda, C.; Shivakumar, B. Fuzzy particle swarm optimization (FPSO) based feature selection and hybrid kernel distance based possibilistic fuzzy local information C-means (HKD-PFLICM) clustering for churn prediction in telecom industry. SN Appl. Sci. 2021, 3, 613. [Google Scholar] [CrossRef]
  34. Clerc, M.; Kennedy, J. The particle swarm-explosion, stability, and convergence in a multidimensional complex space. IEEE Trans. Evol. Comput. 2002, 6, 58–73. [Google Scholar] [CrossRef]
  35. Wang, H.O.; Tanaka, K. Fuzzy Control Systems Design and Analysis: A Linear Matrix Inequality Approach; John Wiley & Sons: New York, NY, USA, 2004. [Google Scholar] [CrossRef]
Figure 1. Connection diagram of the power generator system.
Figure 1. Connection diagram of the power generator system.
Algorithms 17 00391 g001
Figure 2. Measurements of the excitation input and state variable responses, characterised with groups by clustering centres identified as *.
Figure 2. Measurements of the excitation input and state variable responses, characterised with groups by clustering centres identified as *.
Algorithms 17 00391 g002
Figure 3. Open-loop generated voltage and output of the identified fuzzy model.
Figure 3. Open-loop generated voltage and output of the identified fuzzy model.
Algorithms 17 00391 g003
Figure 4. Open-loop generated voltage and output of the identified fuzzy model under an inductive load, where Algorithms 17 00391 i001, Input, is the pwm signal sent to the servomotor used to moves the throttle of the combustion engine, and Algorithms 17 00391 i002, Load, is the pwm signal sent to the brushless motor used as an inductive load.
Figure 4. Open-loop generated voltage and output of the identified fuzzy model under an inductive load, where Algorithms 17 00391 i001, Input, is the pwm signal sent to the servomotor used to moves the throttle of the combustion engine, and Algorithms 17 00391 i002, Load, is the pwm signal sent to the brushless motor used as an inductive load.
Algorithms 17 00391 g004
Figure 5. Simulation results of the voltage regulation using the obtained model of the power generator system.
Figure 5. Simulation results of the voltage regulation using the obtained model of the power generator system.
Algorithms 17 00391 g005
Figure 6. Comparison between the PDC strategy and a classic PD controller.
Figure 6. Comparison between the PDC strategy and a classic PD controller.
Algorithms 17 00391 g006
Table 1. Centres of the prototype membership functions.
Table 1. Centres of the prototype membership functions.
Centroids x 1 x 2 u
145.596045.58580.7158
238.883738.87100.6258
321.252121.24160.3369
425.300423.99190.4860
Table 2. Resulting values for A i and B i .
Table 2. Resulting values for A i and B i .
A 1 B 1 A 2 B 2
010010
0.8465 0.0828 14.91861.0667 0.1268 3.7456
A 3 B 3 A 4 B 4
010010
0.9635 0.07516 7.05160.9589 0.1102 9.4053
Table 3. Parameters used in the PSO algorithm and obtained value for the parameter m.
Table 3. Parameters used in the PSO algorithm and obtained value for the parameter m.
Optimal
Value m
Bounds# of
Particles
Inertia
Coefficient ω
ς 1 , ς 2 # of
Iterations
2.97 [ 1.1 , 3 ] 3000.09170.5959100
Table 4. Parameters used in the PSO algorithm and obtained values for the poles.
Table 4. Parameters used in the PSO algorithm and obtained values for the poles.
Optimal
Poles
Bounds# of
Particles
Inertia
Coefficient ω
ς 1 , ς 2 # of
Iterations
0.3 0.8 [ 0.01 , 0.9 ] 300 0.3820 0.9549 100
Table 5. Error indexes using the algorithm PSO and without the algorithm PSO.
Table 5. Error indexes using the algorithm PSO and without the algorithm PSO.
ISEIAEITAE
k = 0 N e 2 k T s k = 0 N e k T s k = 0 N k e k T s
With PSO2.6677   ×   10 3 51.65018.02   ×   10 5
Without PSO6.9970   ×   10 6 2.6452   ×   10 3 2.1061   ×   10 9
Where N = 301 is the total number of samples, T s = 1 s is the sampling time, and e ( k ) is the system output tracking error.
Table 6. Defined gain values for each submodel.
Table 6. Defined gain values for each submodel.
GainsValues
K 1 0.0448 , 0.0559
K 2 0.2130 , 0.2118
K 3 0.0529 , 0.0632
K 4 0.0720 , 0.0809
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Reyes, C.; Ramos-Fernández, J.C.; Espinoza, E.S.; Lozano, R. Fuzzy Modelling Algorithms and Parallel Distributed Compensation for Coupled Electromechanical Systems. Algorithms 2024, 17, 391. https://doi.org/10.3390/a17090391

AMA Style

Reyes C, Ramos-Fernández JC, Espinoza ES, Lozano R. Fuzzy Modelling Algorithms and Parallel Distributed Compensation for Coupled Electromechanical Systems. Algorithms. 2024; 17(9):391. https://doi.org/10.3390/a17090391

Chicago/Turabian Style

Reyes, Christian, Julio C. Ramos-Fernández, Eduardo S. Espinoza, and Rogelio Lozano. 2024. "Fuzzy Modelling Algorithms and Parallel Distributed Compensation for Coupled Electromechanical Systems" Algorithms 17, no. 9: 391. https://doi.org/10.3390/a17090391

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