Open access

A New Method for Tuning PID-Type Fuzzy Controllers Using Particle Swarm Optimization

Written By

S. Bouallègue, J. Haggège and M. Benrejeb

Published: 27 September 2012

DOI: 10.5772/48305

From the Edited Volume

Fuzzy Controllers - Recent Advances in Theory and Applications

Edited by Sohail Iqbal, Nora Boumella and Juan Carlos Figueroa Garcia

Chapter metrics overview

4,935 Chapter Downloads

View Full Metrics

1. Introduction

The complexity of dynamic system, especially when only qualitative knowledge about the process is available, makes it generally difficult to elaborate an analytic model which is sufficiently precise enough for the control. Thus, it is interesting to use, for this kind of systems, non conventional control techniques, such as fuzzy logic, in order to achieve high performances and robustness [20, 21, 24, 34, 33, 8, 22, 15]. Fuzzy logic control approach has been widely used in many successful industrial applications which have demonstrated high robustness and effectiveness properties.

In the literature, various Fuzzy Controller (FC) structures are proposed and extensively studied. The particular structure given by Qiao and Mizumoto in [26], namely PID-type FC, is especially established and improved within the practical framework in [11, 16, 31]. Such a FC structure, which retains the characteristics similar to the conventional PID controller, can be decomposed into the equivalent proportional, integral and derivative control components as shown in [26]. In order to improve further the performance of the transient and steady state responses of this kind of fuzzy controller, various strategies and methods are proposed to tune the PID-type fuzzy controller parameters.

Indeed, Qiao and Mizumoto [26] designed a parameter adaptive PID-type FC based on a peak observer mechanism. This self-tuning mechanism decreases the equivalent integral control component of the fuzzy controller gradually with the system response process time. On the other hand, Woo et al. [31] developed a method to tune the scaling factors related to integral and derivative components of the PID-type FC structure via two empirical functions and based on the system’s error information. In [12, 16], the authors proposed a technique that adjusts the scaling factors, corresponding to the derivative and integral components of the PID-type FC, using a fuzzy inference mechanism. However, the major drawback of all these PID-type FC structures is the difficult choice of their relative scaling factors. Indeed, the fuzzy controller dynamic behaviour depends on this adequate choice. The tuning procedure depends on the control experience and knowledge of the human operator, and it is generally achieved based on a classical trials-errors procedure. Up to now, there is neither clear mor systematic method to guide such a choice. So, this tuning problem becomes more delicate and harder as the complexity of the controlled plant increases. Hence, the proposition of a systematic approach to tune the scaling factors of these particular PID-type FC structures is interesting.

In this study, a new approach based on the Particle Swarm Optimization (PSO) meta-heuristic technique is proposed for systematically tuning the scaling factors of the PID-type FC, both with and without self-tuning mechanisms. This work can be considered as an extension of the results given in [26, 11, 16, 31, 12]. The fuzzy control design is formulated as a constrained optimization problem which is efficiently solved based on a developed PSO algorithm. In order to specify more robustness and performance control objectives of the proposed PSO-tuned PID-type FC, different optimization criteria are considered and compared subject to several various control constraints defined in the time-domain framework.

The remainder of this chapter is organized as follows. In Section 2, the proposed fuzzy PID-type FC structures, both with and without self-tuning scaling factors mechanisms, are presented and discussed within the discrete-time framework. Two adaptive mechanisms for scaling factors tuning are especially adopted. The optimization-based problems of the PID-type FC scaling factors tuning are formulated in Section 3. The developed constrained PSO algorithm, used in solving the formulated problems, is also described. An external static penalty technique is used to deal with optimization constraints. Theoretical conditions for convergence algorithm and parameters choice are established, based on the stability theory of dynamic systems. Section 4 is dedicated to apply the proposed fuzzy control approaches on an electrical DC drive benchmark and a thermal process within an experimental real-time framework based on an Advantech PCI-1710 multi-functions board associated with a PC computer and MATLAB/Simulink environment. Performances on convergence properties of the proposed PSO and the used GAO algorithm, are compared for the known Integral Absolute Error (IAE) and the Integral Square Error (ISE) criterion cases. The real-time fuzzy controllers are developed through the compilation and linking stage, in a form of a Dynamic Link Library (DLL) which is, then, loaded in memory and started-up.

Advertisement

2. PID-type fuzzy control design

In this section, the considered PID-type FC structures are briefly described within the discrete-time framework based on [26, 11, 16, 31, 12].

2.1. Discrete-time PID-type FLC

Proposed by Qiao and Mizumoto in [26] within continuous-time formalism, this particular fuzzy controller structure, called PID-type FC, retains the characteristics similar to the conventional PID controller. This result remains valid while using a type of FC with triangular and uniformly distributed membership functions for the fuzzy inputs and a crisp output, a product-sum inference and a center of gravity defuzzification methods.

Under these conditions, the equivalent proportional, integral and derivative control components of such a PID-type FC are given by α K e P + β K d D , β K e P , and α K d D , respectively, as shown in [26, 16, 31]. In these expressions, P and D represent relative coefficients, K e , K d , α and β denote the scaling factors associated to the inputs and output of the FC, as shown in Figure 1. The proof of this computation is shown with more details in [26].

When approximating the integral and derivative terms within the discrete-time framework, we can consider the closed-loop control structure for a discrete-time PID-type FC, as shown in Figure 1.

Figure 1.

The proposed discrete-time PID-type FC structure.

As shown in [26, 11, 16, 31], the dynamic behaviour of this PID-type FC structure is strongly dependent on the scaling factors K e , K d , α and β , difficult and delicate to tune.

2.2. PID-type FC with self-tuning mechanisms

In order to improve the performances of the considered PID-type FC structure, various self-tuning mechanisms for scaling factors have been proposed in the literature. Two methods are especially adopted in this chapter.

2.2.1. Self-tuning via Empirical Functions Tuner Method EFTM

In this self-tuning method [31], the PID-type FC integral and derivative components updating are achieved based on scaling factors β and K d , using the information on system’s error as follows:

β k = β 0 Φ e k K d k = K d 0 Ψ e k E1

where β 0 and K d 0 are the initial values of β and K d , respectively, Φ . and Ψ . are the empirical tuner functions defined, respectively, by:

Φ e k = ϕ 1 e k + ϕ 2 Ψ e k = ψ 1 1 - e k + ψ 2 E2

In these equations, the parameters to be tuned ϕ 1 , ϕ 2 , ψ 1 and ψ 2 are all positive. The empirical function related to integral component decreases as the error decreases while the function related to derivative factor increases. Indeed, the objective of the function is to decrease the parameter with the change of error. However, the function has an inverse objective to make constant the proportional effect. Hence, the system may not always keep quick reaction against the error as demonstrated by Woo et al. in [31].

2.2.2. Self-tuning via Relative Rate Observer Method RROM

In this self-tuning method [16, 12], the PID-type FC integral and derivative components updating are achieved as follows:

β k = β 0 K f δ k K d k = K d 0 K f d K f δ k E3

where δ k is the output of the fuzzy Relative Rate Observer (RRO) K f is the output scaling factor for δ k and K f d is the additional parameter that affects only the derivative factor of the FC.

The rule-base for δ k , as used by Eksin et al. [12] and Güzelkaya et al. [16], is considered for the fuzzy RRO. This fuzzy RRO block has as inputs the absolute values of error e k and the variable r k , defined subsequently, as shown in Table 1.

e k / r k S M F
S M M L
SM SM M L
M S SM M
L S S SM

Table 1.

Fuzzy rule-base for the variable δ k .

The linguistic levels assigned to the input e k and the output variable δ k are as follows: L (Large), M (Medium), SM (Small Medium) and S (Small). For the input variable r k , the following linguistic levels are assigned: F (Fast), M (Moderate) and S (Slow).

The variable r k , defined in [16, 12] and called normalized acceleration, gives “relative rate” information about the fastness or slowness of the system response as shown in Table 2. It is defined as follows [16]:

r k = Δ e k - Δ e k - 1 Δ e * = Δ Δ e k Δ e * E4

where Δ e k and Δ Δ e k are the incremental change in error and the so-called acceleration in error given respectively by:

Δ e k = e k - e k - 1 E5
Δ Δ e k = Δ e k - Δ e k - 1 E6

In equation (4), the variable Δ e * is chosen as follows:

Δ e * = Δ e k                     i f         Δ e k Δ e k - 1 Δ e k - 1         i f         Δ e k < Δ e k - 1 E7
Δ e * Δ Δ e k System response
Positive Positive Fast
Positive Negative Slow
Negative Positive Slow
Negative Negative Fast

Table 2.

Nature of the system response depending on the variable r k .

For this RROM self-tuning approach, the uniformly distributed triangular and the symmetrical membership functions, as shown in Figures 2, 3, 4, are assigned for the fuzzy inputs r k and e k , and fuzzy output variable δ k . The view of the above fuzzy rule-base is illustrated in Figure 5.

Figure 2.

Membership functions for r k .

Figure 3.

Membership functions for e k .

Figure 4.

Membership functions for δ k .

Figure 5.

View of the fuzzy rule-base for δ k .

Advertisement

3. The proposed PSO-based approach

In this section, the problem of scaling factors tuning, for all defined PID-type FC structures, is formulated as a constrained optimization problem which is solved using the proposed PSO-based approach.

3.1. PID-type FC tuning problem formulation

The choice of the adequate values for the scaling factors of each PID-type FC structure is often done by a trials-errors hard procedure. This tuning problem becomes difficult and delicate without a systematic design method. To deal with these difficulties, the optimization of these scaling factors is proposed like a promising solution. This tuning problem can be formulated as the following constrained optimization problem:

m i n i m i z e x D f x s u b j e c t t o g l x 0 ;         l = 1 , , n c o n E8

where f : R m R the cost function, D = x D m ; x m i n x x m a x the initial search space, which is supposed containing the desired design parameters, and g l : R m R the problem’s constraints.

The optimization-based tuning problem consists in finding the optimal decision variables x * = x 1 * , x 2 * , , x m * T , representing the scaling factors of a given PID-type FC structure, which minimize the defined cost function, chosen as the ISE and IAE performance criteria. These cost functions are minimized, using the proposed constrained PSO algorithm, under various time-domain control constraints such as overshoot D , steady state error E s s , rise time t r and settling time t s of the system’s step response, as shown in the equations (9), (10) and (11).

Hence, in the case of the PID-type FC structure without self-tuning mechanisms, the scaling factors to be optimized are K e , K d , α and β . The formulated optimization problem is defined as follows:

m i n i m i z e x = K e , K d , α , β T R + 4 f x s u b j e c t t o D D m a x ; t s t s m a x ; t r t r m a x ; E s s E s s m a x E9

where D m a x , E s s m a x , t r m a x and t s m a x are the specified overshoot, steady state, rise and settling times respectively, that constraint the step response of the PSO-tuned PID-type FC controlled system, and can define some time-domain templates.

In the case of the PID-type FC structure with the EFTM self-tuning mechanism, the scaling factors to be optimized are φ 1 , φ 2 , ψ 1 and ψ 2 . The formulated optimization problem is defined as follows:

m i n i m i z e x = φ 1 , φ 2 , ψ 1 , ψ 2 T R + 4 f x s u b j e c t t o D D m a x ; t s t s m a x ; t r t r m a x ; E s s E s s m a x E10

For the PID-type FC structure with the RROM self-tuning mechanism, the scaling factors to be optimized are K f and K f d . The formulated optimization problem is defined as follows:

m i n i m i s e r x = K f , K f d T R + 2 f x s u b j e c t t o D D m a x ; t s t s m a x ; t r t r m a x ; E s s E s s m a x E11
(11)

3.2. Particle Swarm Optimization technique

In this study, the proposed PSO approach is presented and a constrained PSO algorithm is also developed. The convergence conditions of such an algorithm are analyzed and established.

3.2.1. Overview

The PSO technique is an evolutionary computation method developed by Kennedy and Eberhart [9]. This recent meta-heuristic technique is inspired by the swarming or collaborative behaviour of biological populations. The cooperation and the exchange of information between population individuals allow solving various complex optimization problems [27, 10, 25, 28, 30].

Without any regularity on the cost function to be optimized, the recourse to this stochastic and global optimization technique is justified by the empirical evidence of its superiority in solving a variety of non-linear, non-convex and non-smooth problems. In comparison with other meta-heuristics, this optimization technique is a simple concept, easy to implement, and a computationally efficient algorithm [27, 10, 30]. The convergence and parameters selection of the PSO algorithm are proved using several advanced theoretical analysis proposed by Ruben and Kamran in [27] and Van den Bergh in [30]. Its stochastic behaviour allows overcoming the local minima problem.

Particle swarm optimisation has been enormously successful in several and various industrial domains [19, 18]. It has been used across a wide range of engineering applications. These applications can be summarized around domains of robotics, image and signal processing, electronic circuits design, communication networks, but more especially the domain of plant control design, as shown in [4, 5, 6, 2, 3].

3.2.2. Basic PSO algorithm

The basic PSO algorithm uses a swarm consisting of n p particles (i.e. x 1 , x 2 , , x n p ), randomly distributed in the considered initial search space, to find an optimal solution x * = a r g m i n f x R m of a generic optimization problem (8). Each particle, that represents a potential solution, is characterised by a position and a velocity given by x k i : = x k i , 1 , x k i , 2 , , x k i , m T and v k i : = v k i , 1 , v k i , 2 , , v k i , m T where i , k 1 , n p × 1 , k m a x .

At each algorithm iteration, the i t h particle position, x i R m , evolves based on the following update rules:

x k + 1 i = x k i + v k + 1 i E12
v k + 1 i = w k + 1 v k i + c 1 r 1 , k i p k i - x k i + c 2 r 2 , k i p k g - x k i E13

where

w k + 1 : the inertia factor, c 1 , c 2 : the cognitive and the social scaling factors respectively, r 1 , k i , r 2 , k i : random numbers uniformly distributed in the interval 0,1 , p k i : the best previously obtained position of the i t h particle, p k g : the best obtained position in the entire swarm at the current iteration k .

Hence, the principle of a particle displacement in the swarm is graphically shown in the Figure 6, for a two dimensional design space.

Figure 6.

Particle position and velocity updates.

In order to improve the exploration and exploitation capacities of the proposed PSO algorithm, we choose for the inertia factor a linear evolution with respect to the algorithm iteration as given by Shi and Eberhart in [28]:

w k + 1 = w m a x - w m a x - w m i n k m a x k E14

where w m a x = 0.9 and w m i n = 0.4 represent the maximum and minimum inertia factor values, respectively, k m a x is the maximum iteration number.

Similarly to other meta-heuristic methods, the PSO algorithm is originally formulated as an unconstrained optimizer. Several techniques have been proposed to deal with constraints. One useful approach is by augmenting the cost function of problem (8) with penalties proportional to the degree of constraint infeasibility. In this paper, the following external static penalty technique is used:

φ x = f x + l = 1 n c o n χ l m a x 0 , g l x 2 E15

where χ l is a prescribed scaling penalty parameters and n c o n is the number of problem constraints g l x .

Finally, the basic proposed PSO algorithm can be summarized by the following steps:

  1. Define all PSO algorithm parameters such as swarm size n p , maximum and minimum inertia factor values, cognitive c 1 and social c 2 scaling factors, etc.

  2. Initialize the n p particles with randomly chosen positions x 0 i and velocities v 0 i in the search space D . Evaluate the initial population and determine p 0 i and p 0 g .

  3. Increment the iteration number k . For each particle apply the update equations (12) and (13), and evaluate the corresponding fitness values φ k i = φ x k i :

  4. φ k i p b e s t k i p b e s t k i = φ k i p k i = x k i
  5. φ k i g b e s t k g b e s t k = φ k i p k g = x k i

where p b e s t k i and g b e s t k represent the best previously fitness of the i t h particle and the entire swarm, respectively.

  1. If the termination criterion is satisfied, the algorithm terminates with the solution x * = a r g m i n x k i f x k i , i , k . Otherwise, go to step 3.

3.2.3. The convergence of PSO algorithm analysis

In this part, the proposed PSO algorithm is analysed based on results in [27, 30]. Theoretical conditions for convergence algorithm and parameters choice are established.

Let us replace the velocity update equation (13) into the position update equation (12) to get the following expression:

x k + 1 i = 1 - c 1 r 1 , k i - c 2 r 2 , k i x k i + w v k i + c 1 r 1 , k i p k i + c 2 r 2 , k i p k g E16

A similar re-arrangement of the velocity term (13) leads to:

v k + 1 i = - c 1 r 1 , k i + c 2 r 2 , k i x k i + w v k i + c 1 r 1 , k i p k i + c 2 r 2 , k i p k g E17

The obtained equations (16) and (17) can be combined and written in matrix form as:

x k + 1 i v k + 1 i = 1 - c 1 r 1 , k i + c 2 r 2 , k i w - c 1 r 1 , k i + c 2 r 2 , k i w x k i v k i + c 1 r 1 , k i c 2 r 2 , k i c 1 r 1 , k i c 2 r 2 , k i p k i p k g E18

This above expression can be considered as a state-space representation of a discrete-time dynamic linear system, given by:

y ^ k + 1 = M y ^ k + N u ^ k E19

where y ^ k is the state vector, u ^ k the external input system, M and N the dynamic and input matrices respectively, defined as:

y ^ k = x k i v k i ; u ^ k = p k i p k g ; M = 1 - c 1 r 1 , k i + c 2 r 2 , k i w - c 1 r 1 , k i + c 2 r 2 , k i w ; N = c 1 r 1 , k i c 2 r 2 , k i c 1 r 1 , k i c 2 r 2 , k i E20

For a given particle, the convergent behaviour can be maintained while assuming that the external input is constant, as there is no external excitation in the dynamic system. In such a case, as the iterations go to infinity the updated positions and velocities become constants from the k t h to the k + 1 t h iteration, given the following equilibrium state:

y ^ k + 1 - y ^ k = - c 1 r 1 , k i + c 2 r 2 , k i w - c 1 r 1 , k i + c 2 r 2 , k i w - 1 x k i v k i + c 1 r 1 , k i c 2 r 2 , k i c 1 r 1 , k i c 2 r 2 , k i p k i p k g = 0 0 E21

which is true only when:

x k i = p k i = p k g , v k i = 0 E22

Therefore, we obtain an equilibrium point, for which all particles tend to converge as algorithm iteration progresses, given by:

y ^ e q = p k g , 0 T E23

So, the dynamic behaviour of the i t h particle can be analysed using the eigenvalues derived from the dynamic matrix formulation (19) and (20), solutions of the following characteristic polynomial:

λ 2 - 1 + w - c 1 r 1 , k i - c 2 r 2 , k i λ + w = 0 E24

The following necessary and sufficient conditions for stability of the considered discrete-time dynamic system (20) are obtained while applying the classical Jury criterion:

w < 1 c 1 r 1 , k i + c 2 r 2 , k i > 0 w + 1 - c 1 r 1 , k i + c 2 r 2 , k i 2 > 0 E25

Knowing that r 1 , k i , r 2 , k i 0,1 , the above stability conditions are equivalents to the following set of parameter selection heuristics which guarantee convergence for the PSO algorithm:

0 < c 1 + c 2 < 4 c 1 + c 2 2 - 1 < w < 1 E26

While these heuristics provide useful selection parameter bounds, an analysis of the effect of the different parameter settings is achieved and verified by some numerical simulations to determine the effect of such parameters in the PSO algorithm convergence performances.

In order to illustrate the efficiency of the proposed PSO algorithm in the resolution of problems (9), (10) and (11), several comparisons with the Genetic Algorithms Optimization GAO-based method [14, 29] are considered. The next section is dedicated to the application of the proposed PSO-tuned PID-FC approaches to an electrical DC drive and a thermal process within a developed real-time framework.

Advertisement

4. Real-time control approach implementation

In this section, all designed PSO-tuned PID-type FC structures are applied to two different systems such as an electrical DC drive and a thermal PT-326 Process Trainer benchmarks. Real-time implementations and experimental results of these control laws are presented and discussed.

4.1. Control of an electrical DC drive benchmark

4.1.1. Plant model description

The considered benchmark is a 250 watts electrical DC drive, as shown in Figure 15. The machine’s speed rotation is 3000 rpm at 180 volts DC armature voltage. The motor is supplied by an AC-DC power converter. The developed real-time application acquires input data (speed of the DC drive) and generates control signal for thyristors of AC-DC power converter (PWM signal). This is achieved using a data acquisition and control system based on a PC computer and a multi-functions data acquisition PCI-1710 board which is compatible with MATLAB/Simulink [17 , 1].

The considered electrical DC drive can be described by the following model that is used in the design setup:

G s = k m 1 + τ m s 1 + τ e s E27

The model’s parameters are obtained by an experimental identification procedure and they are summarized in Table 3 with their associated uncertainty bounds. Also, this model is sampled with 10 ms sampling time for simulation and experimental setups.

Parameters Nominal values Uncertainty bounds
k m 0.05 75 %
τ m 300 ms 75 %
τ e 14 ms 75 %

Table 3.

Identified DC drive model parameters.

4.1.2. Simulation results

For all proposed PSO-tuned PID-type FC structures, product-sum inference and center of gravity defuzzification methods are adopted for the FC block. Uniformly distributed and symmetrical membership functions, are assigned for the fuzzy input and output variables. The associated fuzzy rule-base is given in Table 4.

e k / Δ e k N Z P
N NB N Z
Z N Z P
P Z P PB

Table 4.

Fuzzy rule-base for the output u f z .

The linguistic levels assigned to the input variables e k and Δ e k , and the output variable u f z are given as follows: N (Negative), Z (Zero), P (Positive), N (Negative), NB (Negative Big) and PB (Positive Big). The view of this rule-base is illustrated in Figure 7.

Figure 7.

View of fuzzy rule-base for the fuzzy output u f z .

The swarm size algorithm’s choice is generally a problem-dependent in PSO framework. However, Eberhart and Shi [10] as well as Poli et al. [25] show that this parameter is often set empirically in relation to the dimensionality and perceived difficulty of a considered optimization problem. They suggest that swarm size values in the range 20-50 are quite common. For this purpose, we have tested the proposed PSO algorithm with different values in this range for the case of PID-type FC structure without self-tuning mechanisms. Globally, all the found results are close to each other. But, best values of the fitness are obtained while using a swarm size equal to 30. Henceforth, this value will be adopted for our following works.

In the PSO framework, it is necessary to run the algorithm several times in order to get some statistical data on the quality of results and so to validate the proposed approach. We run the proposed algorithm 20 times and feasible solutions are found in 98 % of trials and within an acceptable CPU computation time for the IAE and ISE criterion cases. The obtained optimization results are summarized in Tables 5, 6 and 7. Besides, the fact that the algorithm’s convergence always takes place in the same region of the design space, whatever is the initial population, indicates that the algorithm succeeds in finding a region of the interesting research space to explore. The performances comparison of PSO- and GAO-based approaches is achieved in the same conditions.

Cost function Algorithm Best Mean Worst St. dev.
ISE PSO 0.0193 0.0304 0.0511 0.018
ISE GAO 0.1200 0.1780 0.2410 0.050
IAE PSO 0.0162 0.0261 0.0497 0.016
IAE GAO 0.1892 0.2835 0.3227 0.066

Table 5.

Optimization results from 20 trials of problem (9).

Cost function Algorithm Best Mean Worst St. dev.
ISE PSO 0.0660 0.0765 0.1030 0.015
ISE GAO 0.0820 0.0912 0.1330 0.012
IAE PSO 0.0659 0.0838 0.0946 0.014
IAE GAO 0.0718 0.0814 0.0973 0.013

Table 6.

Optimization results from 20 trials of problem (10).

Cost function Algorithm Best Mean Worst St. dev.
ISE PSO 0.0559 0.0792 0.0840 0.013
ISE GAO 0.0822 0.0936 0.1120 0.015
IAE PSO 0.0673 0.0861 0.0993 0.016
IAE GAO 0.0855 0.0905 0.1009 0.008

Table 7.

Optimization results from 20 trials of problem (11).

Indeed, the population size, used in the GAO algorithm, is set as 30 individuals and the maximum generation number is 50. However, the GA parameters, used for MATLAB simulations, are chosen as the Stochastic Uniform selection and the Gaussian mutation methods. The Elite Count is set as 2 and the Crossover Fraction as 0.8. The algorithm stops when the number of generations reaches the specified value for the maximum generation.

According to the statistical analysis of Tables 5,6 and 7, we can conclude that the proposed PSO-based approach produces better results in comparison with the standard GAO-based one. Also, while using a Pentium IV, 1.73 GHz and MATLAB 7.7.0, the CPU computation times are about 358 and 364 seconds for ISE and IAE criteria, respectively, for the considered PID-type FC without self-tuning mechanisms structure.

On the other hand, performances on convergence properties of the proposed PSO and the used GAO algorithm, in term of iterations number’s required to find the best solution, are compared for the IAE criterion case, as shown in Figures 8 and 9. While using the proposed PSO-based method, we succeed to obtain the optimal solution within only about 28 iterations. However, the GAO-based method finds the same result after 40 iterations. All these observations can show the superiority of the proposed PSO-based method in comparison with the GAO-based one. Indeed, the quality of the obtained optimal solution, the fastness convergence as well as the simple software implementation is better than those of the GAO-based approach.

Figure 8.

Convergence properties of the proposed PSO algorithm: IAE criterion case.

Figure 9.

Convergence properties of the standard GAO algorithm: IAE criterion case.

In a typical optimization procedure, the scaling parameters χ l , given in equation (15), will be linearly increased at each iteration step so constraints are gradually enforced. Generally, the quality of the solution will directly depend on the value of the specified scaling parameters. In this paper and in order to make the proposed approach simple, great and constant scaling penalty parameters, equal to 1 0 3 , are used for simulations. Indeed, simulation results show that with a great values of χ l , the control system performances are weakly degraded and the effects on the tuning parameters are less meaningful. The PSO algorithm convergence is faster than the case with linearly variable scaling parameters.

The robustness of the proposed PSO algorithm convergence, under variation of the cognitive, social and inertia factor parameters, is analysed based on numerical simulations as shown in Figure 10 and Figure 11. The PSO algorithm’s convergence is guaranteed within the established domain given by the equation (26).

Figure 10.

Robustness of the proposed PSO algorithm under variations of the cognitive and social parameters: IAE criterion case.

Figure 11.

Robustness of the proposed PSO algorithm under variations of the inertia factor: IAE criterion case.

The robust stability of the proposed PSO-tuned PID-type FC approach is analysed while considering external disturbances and model uncertainties. According to uncertain bounds on nominal plant parameters, given in Table 1, we are going to consider the following family of continuous-time transfer functions supposed including the real studied plant:

G = G ^ s = k m 1 + τ m s 1 + τ e s ; k m k m m i n , k m m a x , τ e τ e m i n , τ e m a x , τ m τ m m i n , τ m m a x E28

Figure 12 shows the step responses of a family of 5 random generated closed-loop uncertain models. The stability robustness of the uncertain plants, under the above considered uncertainty types, is guaranteed for all designed PID-type FC structures.

Figure 12.

Stability robustness of the PSO-tuned PID-type fuzzy controlled system under model parameters uncertainties and external disturbances.

Finally, the time-domain performances of all proposed PID-type FC structures, are compared for the PSO- and GAO-based design cases as shown in Figure 13.

Figure 13.

Time-domain performances comparison of all designed PSO- and GAO-tuned PID-type FC structures: IAE criterion case.

Besides, Table 8 shows the superiorities of the self-tuning EFTM and RROM PID-type FC structures in relation to the one without self-tuning mechanisms as verified in [16]. Remenber that the considered time-domain constraints for the PID-type FC tuning problems (9), 10) and (11) problems, defined in terms of overshoot, steady state, rise and settling times, have been specified as D m a x = 20 % , E s s m a x = 0 , t r m a x = 0.25 s e c and t s m a x = 0.75 s e c .

PSO-tuned PID-type FC structure D ( % ) t r (sec) t s (sec) E s s CPU computation time (sec)
without self-tuning mechanisms 17.5 0.23 0.49 0 364
with EFTM self-tuning mechanism 15 0.21 0.64 0 370
with RROM self-tuning mechanism 7 0.20 0.68 0 392

Table 8.

Performances of the PSO-tuned PID-type FC structures: IAE criterion case.

4.1.3. Experimental setup and results

In order to illustrate the efficiency of the proposed PSO-tuned fuzzy control structures within a real-time framework, the example of the PID-type FC without self-tuning mechanism is considered. The same principle of implementation remains valid for the other PID-type FC structures.

The controlled process is constituted by the single-phase AC-DC power converter and the independent excitation DC motor. A schematic diagram of the experimental setup prepared for testing of the designed controller is shown in Figure 14. The developed experimental benchmark is given by Figure 15. The designed real-time application acquires input data (speed of the DC drive) and generates control signals for the AC-DC power converter through a thyristors gate drive circuit. This is achieved using a data acquisition and control system based on PC and a multi-function data acquisition PCI-1710 board with 12-bit resolution of A/D converter and up to 100 KHz sampling rate. A thyristors gate drive circuit, based on a multivibrator, is used to generate a triggering burst of high-frequency impulses. A pulse transformer is used to assure the galvanic insulation between the control and power circuits. The acquired speed measure, obtained from tachometer sensor, must be adapted to be applied to the used multi-function PCI-1710 board. The complete electronic circuit diagram of the designed control system is given in [17 , 1].

Figure 14.

The proposed experimental setup schematic.

Figure 15.

The developed experimental DC drive benchmark.

The multi-function data acquisition PCI-1710 board allows achieving measurement and controlling functions. This target is used to create a real-time application to let the implemented controller system run while synchronized to a real-time clock. The model of the plant was removed from the simulation model, and instead of it, the input device driver (Analog Input) and the output device driver (Analog Output) were introduced as shown in Figure 17. These device drivers close the feedback loop when moving from simulations to experiments. Device driver’s blocks include procedures to access the inputs-outputs board. The real-time controller is developed through the compilation and linking stage, in a form of a Dynamic Link Library (DLL) which is then loaded in memory and started-up

Figure 16.

PCI-1710 board based real-time implementation of the proposed PSO-tuned PID-type FC structure.

The practical implementation of the PSO-tuned PID-type FC approach leads to the experimental results of Figure 17 and Figure 18. The obtained results are satisfactory for a simple, systematic and non-conventional control approach and point out the controller’s viability and validate the proposed control approach. The measured speed tracking error of the controlled DC drive is very small (less than 10 % of set point) showing the high performances of the proposed control especially in terms of tracking. On the other hand, Figure 18 shows the robustness of the proposed PSO-tuned PID-type FC in rejection of an external load disturbance applied on the controlled system. The dynamic of the disturbance rejection is fast and guaranteed.

Figure 17.

Experimental results of PSO-tuned PID-type FC implementation: fuzzy controller tracking performances.

Figure 18.

Experimental results of PSO-tuned PID-type FC implementation: fuzzy controller robustness under external load disturbance.

4.2. Control of a thermal process benchmark

4.2.1. Plant model description

The thermal process to be controlled, shown in the photography of Figure 20, is based on a known PT-326 Process trainer [13], initially developed with an analog control system and modified in order to be digitally controlled. To power the heating resistor, a single-phase AC-AC converter, is developed [7].

In this prototype, the air drawn from atmosphere by a centrifugal blower is injected, through a heating element, in a polypropylene pipe, and rejected in the atmosphere. The amount of air flowing in the pipe can be adjusted by the mean of an inlet throttle attached to the blower. The process consists of heating the air flowing in the pipe to the desired temperature level. The digital control system generates a 40W signal which determines the amount of electrical power supplied to heating resistor made of 10 K Ω / 7 W power resistors. According to these settings, the experimental trials show that the controlled air temperature can be varied up to 20   C from the ambient temperature. The assigned control objective is to regulate the temperature of the air at a desired level, with high tracking performance and under internal disturbances, like model parameters variation, and output disturbances. The temperature sensor can be placed at three different locations on the path of the air flow. A variation in the temperature makes a voltage variation at the sensor’s output. The amount of air trough the pipe, adjusted by setting the opening of the throttle, can also be used to generate an output disturbance, in order to test the efficiency of the proposed control system.

The controlled system input is the voltage applied to the AC-AC power electronic circuit feeding the heating resistor, and the output is the air flow temperature in the pipe, expressed by a 50 mV/   C voltage, obtained after amplification of the LM35 temperature sensor’s output signal. As shown in [32, 23], this process can be characterized as a non-linear system with a pure time delay. The pure time delay depends on the position of the temperature sensor element inserted into the air stream at any one of the three positions along the tube. When the temperature in the air volume inside the tube is assumed uniform a linear model can be obtained. To identify a numerical model of the considered plant, some experimental trials lead to consider the following transfer function, between the heater input voltage and the sensor’s output voltage:

G s = k m 1 + τ s e - τ d s E29

where k m is the DC gain system, τ is the time constant system, and τ d is the time delay system.

This obtained plant model is assumed to be the nominal one and will be adopted in PSO-tuned PID-type FC synthesis step. These model’s parameters are obtained by an experimental identification procedure and they are summarized in Table 9 with their associated uncertainty bounds. Also, this model is sampled with 2 sec sampling time for simulation and experimental setups.

Parameters Nominal values Uncertainty bounds
k m 20 50 %
τ 65 sec 50 %
τ d 1 sec 50 %

Table 9.

Identified Thermal Process model parameters.

For this PSO-tuned PID-type fuzzy control example, we represent only the obtained experimental results. For the numerical simulations step, both IAE and ISE criterion, used for the electrical DC drive control, are investigated for this thermal process example. Same problems (9), (10) and (11) are considered and resolved by the developed constrained PSO algorithm.

Figure 19.

The proposed thermal process experimental setup schematic.

Figure 20.

Developed experimental benchmark of the PT-326 Process Trainer.

4.2.2. Experimental setup and results

The developed real-time application acquires air temperature measure and generates control signals for the triac of AC-AC power converter through a gate drive circuit, as shown in Figure 19. This is achieved using a control system based on PC and the used multi-function data acquisition PCI-1710 board. A triac gate drive circuit is used to generate a Pulse Width Modulation (PWM) control signal synchronized with the zero-crossing of the AC voltage. The acquired air temperature measure is scaled before being applied to the used multi-function PCI-1710 board used to create a real-time application to let the implemented controller system run while synchronized to a real-time clock. This leads to experimental results shown in Figure 21 and Figure 22.

As shown in Figure 21 and Figure 22, the controlled air temperature of the considered thermal process tracks the desired trajectory with high performance in terms of response speed and precision in the two considered cases. The robustness of the proposed control strategy in term of output static disturbance rejection, which caused by the throttle opening, is improved.

Figure 21.

Experimental result of PSO-tuned fuzzy controlled PT-326 Process Trainer: IAE criterion case.

Figure 22.

Experimental result of PSO-tuned fuzzy controlled PT-326 Process Trainer: ISE criterion case.

Advertisement

5. Conclusion

In this study, a new method for tuning PID-type FC structures, using a constrained PSO-based technique, is proposed and successfully applied to an electrical DC drive and thermal process within a real-time framework. This efficient tool leads to a robust and systematic fuzzy control design approach. The performances comparison, with the standard GAO-based method, shows the efficiency and superiority of the proposed PSO-based approach in terms of the obtained solution qualities, the convergence speed and the simple software implementation of its algorithm.

The practical implementation of the PSO-tuned PID-type FC approach, for the considered electrical DC drive and the thermal PT-326 Process Trainer benchmarks, leads to several satisfactory experimental results showing the high performances of the proposed control especially in terms of tracking and robustness.

The PSO-tuned PID-type FC structures robustness, under external influences such as the output static disturbances and parametric uncertainties, are proven. The control design methodology is systematic, practical and simple without need to exact analytic plant model description. The obtained simulation and experimental results show the efficiency in terms of performance and robustness of the proposed fuzzy control approach which can be applied in industrial motor control field.

References

  1. 1. Bouallègue S. Haggège J. Benrejeb M. 2012On a robust real-time H∞ controller design for an electrical drive, International Journal of Modelling, Identification and Control, 15 (2), 89 96
  2. 2. Bouallègue S. Haggège J. Ayadi M. Benrejeb M. 2012 PID-type fuzzy logic controller tuning based on particle swarm optimization Engineering Applications of Artificial Intelligence 484 493
  3. 3. Bouallègue S. 2011Optimisation par essaim particulaire de lois de commande robuste : théorie et mise en oeuvre pratique, Editions Universitaires Européennes, 978-6-13159-335-2Saarbrücken, Germany.
  4. 4. Bouallègue S. Haggège J. Benrejeb M. 2010Structured Loop-Shaping H∞ Controller Design using Particle Swarm Optimization. Proceedings of the 2010 IEEE International Conference on Systems,Man, and Cybernetics SMC’10, Istanbul.
  5. 5. Bouallègue S. Haggège J. Benrejeb M. 2010Structured Mixed-Sensitivity H∞ Design using Particle Swarm Optimization. Proceedings of the 7th IEEE International Multi-Conference on Systems, Signals and Devices SSD’10, Amman.
  6. 6. Bouallègue S. Haggège J. Benrejeb M. 2011Particle Swarm Optimization-Based Fixed-Structure H∞ Control Design. International Journal of Control, Automation, and Systems 9 (2), 258 266
  7. 7. Bouallègue S. Haggège J. Benrejeb M. 2009Real-Time H∞ Control Design for a Thermal Process, Proceedings of the 10th International conference on Sciences and Techniques of Automatic control & computer engineering STA’2009-ACS, 949 958Hammamet, Tunisia.
  8. 8. Bühler H. 1994Réglage par logique floue, Presses polytechniques et universitaires romandes, Lausanne.
  9. 9. Eberhart R. C. Kennedy J. 1995A New Optimizer Using Particle Swarm Theory. Proceedings of the 6th International SymposiumonMicroMachine and Human Science, Nagoya, 39 43
  10. 10. Eberhart R. C. Shi Y. 2001Particle Swarm Optimization: Developments, Applications and Resources. Proceedings of the IEEE Congress on Evolutionary Computation, Seoul, Korea, 81 86
  11. 11. Eker I. Torun Y. 2006 Fuzzy logic control to be conventional method Energy Conversion and Management 377 394
  12. 12. Eksin I. Güzelkaya M. Gürleyen F. 2001 A new methodology for deriving the rule-base of a fuzzy logic controller with a new internal structure Engineering Applications of Artificial Intelligence 617 628
  13. 13. Feedback, 1980Process Trainer PT326, Feedback Instruments Limited, Crowborough, United Kingdom.
  14. 14. Goldberg D. E. 1989 Genetic Algorithms in Search, Optimization, and Machine LearningAddison-Wesley.
  15. 15. Grigorie L. (editor 2011Fuzzy Controllers, Theory and Applications, 978-9-53307-543-3InTech, Croatia.
  16. 16. Güzelkaya M. Eksin I. Yesil E. 2003 Self-tuning of PID-type fuzzy logic controller coefficients via relative rate observer Engineering Applications of Artificial Intelligence 227 236
  17. 17. Haggège J. Ayadi M. Bouallègue S. Benrejeb M. 2010 Design of Fuzzy Flatness-based Controller for a DC Drive Control and Intelligent Systems 164 172
  18. 18. Korosec P. (editor 2010New Achievements in Evolutionary Computation, 978-9-53307-053-7InTech, Croatia.
  19. 19. Lazinica A. (editor 2009 Particle Swarm Optimization 978-9-53761-948-0InTech, Croatia.
  20. 20. Lee C. C. 1990 Fuzzy Logic in Control Systems: Fuzzy Logic Controller.Part I. IEEE Transactions on Systems, Man, and Cybernetics 20 (2), 404 418
  21. 21. Lee C. C. 1990 Fuzzy Logic in Control Systems: Fuzzy Logic Controller.Part II. IEEE Transactions on Systems, Man, and Cybernetics 20 (2), 419 435
  22. 22. Mamdani E. H. 1974Application of fuzzy logic algorithms for control of simple dynamic plant, Proceedings of the Institute of Electrical Engineering (IEE), 121 (12), 1585 1588
  23. 23. Mohd R. Yeoh Keat. H. Sahnius U. Norhaliza A. W. 2007 Modelling of PT326 Hot Air Blower Trainer Kit Using PRBS Signal and Cross-Correlation TechniqueJurnal Teknologi, 42 9 22
  24. 24. Passino K. M. Yurkovich S. 1998 Fuzzy ControlAddison Wesley Longman, Menlo Park, California.
  25. 25. Poli R. Kennedy J. Blackwell T. 2007Particle Swarm Optimization: An Overview. Swarm Intelligence, Springer 1, 33 57
  26. 26. Qiao W. Z. Mizumoto M. 1996 PID type fuzzy controller and parameters adaptive method Fuzzy Sets and Systems 23 35
  27. 27. Ruben E. P. Kamran B. 2007 Particle Swarm Optimization in Structural Designin: Chan, F.T.S., Tiwari, M.K. (Eds.), Swarm Intelligence: Focus on Ant and Particle Swarm Optimization. In-Tech Education and Publishing, Vienna, 373 394
  28. 28. Shi Y. Eberhart R. 1999Empirical study of particle swarmoptimization. Proceedings of the 1999 Congress on Evolutionary Computation, Washington, 1945 1950
  29. 29. The Math. Works Inc. 2009Genetic Algorithm and Direct Search ToolboxTM: User’s Guide. Natick.
  30. 30. Van den Bergh. F. 2006 An Analysis of Particle Swarm OptimizersPhD Thesis, University of Pretoria, Pretoria, South Africa.
  31. 31. Woo-W Z. Chung-Y H. Lin-J J. 2000 A PID type fuzzy controller with self-tuning scaling factors Fuzzy Sets and Systems 321 326
  32. 32. Yesil E. Güzelkaya M. Eksin I. Tekin O. A. 2008 Online Tuning of Set-point Regulator with a Blending Mechanism Using PI ControllerTurk J Elec Engin, 16 (2), 143 157
  33. 33. Zadeh L. A. 1994Soft computing and fuzzy logic, IEEE Software, 11 48 56
  34. 34. Zadeh L. A. 1965Fuzzy Sets, Information and Control, 8, 338 353

Written By

S. Bouallègue, J. Haggège and M. Benrejeb

Published: 27 September 2012