You are on page 1of 9

ISA Transactions 50 (2011) 2836

Contents lists available at ScienceDirect

ISA Transactions
journal homepage: www.elsevier.com/locate/isatrans

Tuning of an optimal fuzzy PID controller with stochastic algorithms for


networked control systems with random time delay
Indranil Pan a , Saptarshi Das a,b , Amitava Gupta a,b,
a
Department of Power Engineering, Jadavpur University, Salt Lake Campus, LB-8, Sector 3, Kolkata-700098, India
b
School of Nuclear Studies and Applications (SNSA), Jadavpur University, Salt Lake Campus, LB-8, Sector 3, Kolkata-700098, India

article info abstract


Article history: An optimal PID and an optimal fuzzy PID have been tuned by minimizing the Integral of Time multiplied
Received 12 August 2010 Absolute Error (ITAE) and squared controller output for a networked control system (NCS). The tuning is
Received in revised form attempted for a higher order and a time delay system using two stochastic algorithms viz. the Genetic
11 October 2010
Algorithm (GA) and two variants of Particle Swarm Optimization (PSO) and the closed loop performances
Accepted 19 October 2010
Available online 11 November 2010
are compared. The paper shows that random variation in network delay can be handled efficiently with
fuzzy logic based PID controllers over conventional PID controllers.
Keywords:
2010 ISA. Published by Elsevier Ltd. All rights reserved.
Fuzzy PID controller
Genetic Algorithm
Networked control system
Optimal tuning
Particle Swarm Optimization
Random network delay

1. Introduction be the choice of inputs, scaling factors, membership functions


(number or type or both), rule base, fuzzificationdefuzzification
Fuzzy logic controllers (FLC) have become more common and inferencing techniques [7].
in recent control applications to handle complex nonlinear It has been shown in [24,8] that a change in inputoutput
processes [1,2]. It has been shown by many contemporary scaling factors (SF) affects the control performance of the FLC to a
researchers that application of FLC enhances the closed loop greater extent compared to the choice of the type of membership
performance of a PID controller in terms of handling change in functions (MF). Also, the output SFs act like the controller gains
an operating point for nonlinear processes by online updating and hence directly affect the stability of the closed loop system. So,
the controller parameters [3,4]. FLCs generally work with a set the output SFs have greater importance than the input SFs on the
of control rules, derived from experts knowledge. Various fuzzy closed loop performance of a process and hence should be chosen
logic controller structures which are analogous to the conventional very carefully. The FLC tries to mimic the operators expertise by
PID controllers are analyzed by Mann et al. [5] and Golob [6] incorporating a nonlinear relationship between the error and the
using single or multiple input conditions (viz. error, change of derivative of error and that of the output control signal [1,2]. Often,
error and rate of change of error). The universal approximation fixed SFs and predefined MFs become insufficient for achieving
property as in [2] states that there is a way to implement fuzzy an optimal performance and need to be tuned online. It has been
controllers for almost all types of nonlinear processes but there shown by Woo et al. [8] that a change in input and output scaling
is no mathematical formulation to decide what would be the factors (SF) affects the control performance to a higher extent than
appropriate choice of fuzzy parameters in implementing them. variation in overlap of the fuzzy membership functions. Hence, in
Hence empirical rules are used for the choice of various fuzzy the present study, only inputoutput SFs are tuned to find out the
parameters as discussed in [7]. The fuzzy tuning parameters may optimal parameters of a FLC based PID controller to handle random
variation in network delay.
In recent past, fuzzy logic based PID controllers have become
Corresponding author at: Department of Power Engineering, Jadavpur Univer- more common to handle complex dynamic processes. Diverse
linear and nonlinear plants have been tuned by Mudi and Pal
sity, Salt Lake Campus, LB-8, Sector 3, Kolkata-700098, India. Tel.: +91 9830489108,
+91 33 2442 7700; fax: +91 33 2335 7254. [3,4] and Bhattacharya et al. [9] with a fuzzy gain tuning
E-mail addresses: indranil.jj@student.iitd.ac.in, indranil@pe.jusl.ac.in (I. Pan), mechanism and implemented along with a two input-one output
saptarshi@pe.jusl.ac.in (S. Das), amitg@pe.jusl.ac.in (A. Gupta). FLC. Various improvements in conventional PID controllers using
0019-0578/$ see front matter 2010 ISA. Published by Elsevier Ltd. All rights reserved.
doi:10.1016/j.isatra.2010.10.005
I. Pan et al. / ISA Transactions 50 (2011) 2836 29

Fig. 1. Optimal fuzzy PID structure with random network delays.

a fuzzy inferencing mechanism have been investigated in [1013]. present work, we implement a fuzzy PID controller for a higher
Various tuning methods have also been proposed for tuning the order plant and also a plant with time delay and optimize the fuzzy
fuzzy controller parameters as in [14] and others involving the parameters with stochastic algorithms like the Genetic Algorithm
Genetic Algorithm etc. [10,1416]. Mathematical quantification and Particle Swarm Optimization, taking the random delays in
using non symmetrical fuzzy sets for a generalized class of the network into account. Also the effectiveness of the various
controllers has been discussed by Mohan and Sinha [17] and the stochastic algorithms and their variants for tuning are compared
applicability of various types of fuzzy controllers from control in the present study. Our cost function not only includes ITAE but
perspective are analyzed. Performances of fuzzy PIDs are compared also has the controller output taken into account to avoid controller
with normal PIDs and model predictive control in [18]. In [18] saturation.
the fuzzy parameters are tuned using the NelderMead downhill A practical networked control loop generally consists of a
simplex method. Also various performance indices [1820] for deterministic inherent system delay and two stochastic delays [23]
the cost function are compared in [18]. PID controller parameters viz. the controller to actuator delay ( CA ) and the sensor to
have been tuned by a fuzzy system by Kazemian [21]. Fuzzy logic controller delay ( SC ) as shown in Fig. 1. Under these conditions,
coupled with neural networks has also been used to tune PID the process to be controlled over a network can be considered as
parameters in [19]. randomly varying with time. It has been suggested by Mudi and
Due to quantum leaps in communication systems, in recent Pal [3,4] that FLCs have a higher capability of enforcing optimal
years, it has become more normal to use a common commu- performance in a control loop over conventional optimal PIDs for
nication channel like Ethernet or CAN bus etc. for transmission nonlinear and time-varying systems. In this paper, an optimal
fuzzy PID controller has been tuned by minimizing the sum of
of the control signal and the measured output. This helps in re-
ITAE and squared value of control signal considering random
ducing wiring costs and eliminates the necessity for maintain-
variation in network delay and the performance is compared with a
ing dedicated communication channels for each control parameter
conventional optimal PID controller, tuned with the same criteria.
[22,23]. However, this type of networked control system is not a
The performance of the optimal controllers also depends on
panacea and has various unresolved issues like transmission delays
the choice of a suitable optimization algorithm, used for controller
and packet dropouts [24] which can degrade control performance.
tuning. Many stochastic optimization algorithms have come up in
Hence these finer nuances over conventional control systems need
control applications, especially in controller tuning [5557]. In this
to be delved into before actually implementing it in a real plant.
paper, a PID and fuzzy-PID controller have been tuned with two
In recent NCS applications, fuzzy logic based controllers have stochastic optimization algorithms, namely the Genetic Algorithm
been proved to be efficient in handling packet drop-out [25,26] and and Particle Swarm Optimization with its two variants viz. gbest
network induced delays [23]. Various improvisations over existing and lbest PSO [58,59].
protocols have been proposed using fuzzy logic in [2628] which The rest of the paper is organized as follows. Section 2 discusses
help in congestion control and reduce delays and packet losses in the structure of the optimal fuzzy PID. A brief description of the
the network. We, however intend to focus on existing transmission two stochastic optimization methods used for controller tuning is
protocols and evaluate performances of various controllers for discussed in Section 3. Section 4 presents the simulation results of
varying levels of transmission delays. Different models based two test plants with and without random network delay. The paper
on fuzzy logic have been proposed for the modelling of a NCS ends with the conclusion as Section 5 followed by the references.
in [29,30]. Various nonlinear systems which can be represented by
equivalent fuzzy models have been implemented over the network 2. Structure of the fuzzy PID controller and its optimal tuning
in [3140] and their performance with respect to delays and packet
dropouts have been analyzed. A Matlab based co-simulation tool 2.1. Fuzzy PID controller to handle random network delay
called TrueTime which helps in analyzing controller task execution
in real time kernels along with network transmissions and The fuzzy PID structure (Fig. 1) used in this paper is a
continuous plant dynamics has been used in the analysis of fuzzy combination of fuzzy PI and fuzzy PD controllers with Ke , Kd as
PID controllers implemented over the network in [4148]. Fuzzy input SFs and , as output SFs as discussed by Woo et al. [8],
logic controllers with their improvisations have been implemented Yesil et al. [60], Qiao and Mizumoto [61], Li et al. [62], Mohan
to handle network induced delays and their performances over and Sinha [63] and Mann et al. [64]. This uses two-dimensional
their conventional counterparts have been investigated in [4952]. linear rule base (Fig. 2) for error (e), error derivative (e) and FLC
A fuzzy PID controller has been implemented for a network based output (uFLC ) with standard triangular MFs (Fig. 3) and Mamdani-
cascade control system in [53,54]. However no optimization of the type inferencing.
fuzzy PID parameters has been done to check for the optimum In Figs. 2 and 3, the fuzzy linguistic variables NL, NM, NS, ZR,
values of these parameters. Also time domain error indices like PS, PM, PL represent Negative Large, Negative Medium, Negative
ITAE, Integral of Absolute Error (IAE) etc. based optimization have Small, Zero, Positive Small, Positive Medium and Positive Large
not been included in the analysis, and the saturation of controller respectively. The FLC output (uFLC ) is determined by using the
output for these controllers has not been investigated. In the center of gravity method by defuzzification.
30 I. Pan et al. / ISA Transactions 50 (2011) 2836

Fig. 2. Rule base for error, error derivative and FLC output.

Fig. 3. Membership functions for error, error derivative and FLC output.

2.2. Formulation of the objective function for time domain optimal It has been seen that classical optimization problems often
tuning get trapped in local minima. This limitation can be overcome
by the introduction of stochastic optimization methods like
The controller output of a conventional PID is a weighted sum Particle Swarm Optimization or the Genetic Algorithm [5557]. But
of error, its derivative and integral values, i.e. optimal performance cannot be guaranteed if there are random
delays in the network, i.e. CA and SC (Fig. 1). To overcome the
de(t )
[ ] [ ]
u(t ) = Kp [e(t )] + Ki e(t )dt + Kd . (1) problem of random variation in network delay, the controller
dt performance can be further enhanced by introducing a FLC based
PID over a simple PID structure. Thus Fuzzy PIDs are expected to
The simple error minimization criteria can be modified by
produce satisfactory closed loop response for random variation
introducing a suitable time domain performance index like ITAE
in system parameters i.e. network delays in this case. Thus our
or Integral of Time multiplied Squared Error (ITSE) to have a better
proposed scheme combines both the time domain optimality as
control action. Also for a sudden change in set-point, ITSE based
well as required robustness against random delay variation in
tuning produces a larger controller output than ITAE, hence in the
the closed loop system (due to the network in the loop) with an
present study only ITAE has been considered as a suitable time
optimal Fuzzy PID controller.
domain performance index [55] and not other performance indices
having higher powers of error and time.
The objective function, used for controller tuning has been 3. Stochastic optimization algorithms used for controller
taken as a weighted sum of the ITAE and squared control signal tuning
similar to that of [56,57], i.e.
The tuning of the parameters of the Fuzzy PID controller
(i.e. input and output SFs) has been carried out by two popular
w1 t |e(t )| + w2 u2 (t ) dt .

J = (2) stochastic optimization methods, namely the GA and PSO which
0
are described briefly in the following subsections.
It is worth mentioning that the weights w1 and w2 have been
introduced in the objective function (2) with a provision of 3.1. Particle Swarm Optimization (PSO)
balancing the impact of the error and control signal. In the present
simulation study we have considered equal weights for the two In PSO the particles are initially distributed randomly in the
objectives to be met by the controller as such the minimization search space. The particles move towards a global minima in each
of the error index is as equally important as the control signal is. iteration depending on the best value found so far (global best or
The objective function J in (2) is now minimized to find out the gbest) among all the particles and the individual particles best
optimal set of controller parameters which simultaneously reduces position (pbest). The objective function which is to be minimized
the ITAE and control signal u(t ). The time multiplication term in is used to evaluate the fitness of the particle for a particular
error index ITAE minimizes the chance of oscillation at later stages, position. For each particle (i) the velocity in each dimension in
thus effectively reducing the settling time (ts ) of the closed loop the consecutive iteration is updated by the following velocity and
system and the absolute value of error minimizes the percentage position update equation, given by
of overshoot (%Mp ). The minimization of the squared control signal
reduces the chance of actuator saturation and also reduces the size vi (t + 1) = vi (t ) + c1 1 (pi (t ) xi (t )) + c2 2 (pg (t ) xi (t ))
(3)
of the actuator and thus the cost involved. xi (t + 1) = xi (t ) + vi (t + 1).
I. Pan et al. / ISA Transactions 50 (2011) 2836 31

Each particles position (xi ) in the next iteration depends on in the simulation process and as such will result in less effective
its velocity (vi ) in the present equation multiplied by an inertia solutions. Hence this parameter is generally a small fraction of
factor () which is generally kept large so as to prevent random the total population size. In the present study, population size is
movement of the particles in the search space and to deviate the considered to be 20 and elite count as 2.
velocity of the particles by a smaller amount in each iteration. Crossover refers to information exchange based on probabilistic
The other two positive constants c1 , c2 are the cognitive learning decisions between solution vectors. Here the child vector of the
rate and the social learning rate respectively. The weights c1 , c2 next generation is formed by combining the solution vectors of
represent the relative importance of the learning of the particles two parent individuals in the current population. The crossover
from its own best position (pi ) and the global best position (pg ), fraction dictates how many children other than the elite children
and both have been chosen as 1.49 for the present study, similar are formed by crossover. The remaining children are formed by
mutation. In mutation a small randomly selected part of a solution
to [55]. In (3), {1 , 2 } [0, 1] are two uniformly distributed
vector is occasionally altered, with a very small probability of
random numbers.
creating a child in the next generation. This way the solution is
The inertia factor () in our case has also been reduced linearly
refined iteratively until the objective function is minimized below
from 0.9 to 0.4 over the iterations [55]. This is an improvisation
a certain tolerance level or the maximum number of iterations is
over the conventional PSO algorithm and incorporates a velocity exceeded.
control mechanism which ensures more effective searching at If we have a crossover fraction of 1, which implies that there
a fine grain [56]. A velocity clamping is also introduced in the is no mutation, then the genetic algorithm initially progresses to
algorithm and the maximum value of the velocity is set to 15% of minimize the objective function until it forms the best individual
the range in each dimension [65]. This ensures that the velocity from the available gene pool. After this the best individual is carried
does not explode to large values and helps in controlling the global forward and replicated in successive generations and no new
exploration of the particles. However, a judicious choice of the better individuals are obtained due to lack of mutation. Hence the
PSO parameters should be made so as to reduce the computational problem stagnates and the program terminates with this fitness
effort and at the same time prevent pre-convergence of the value after the maximum number of iterations is reached.
optimum solutions. Maiti et al. [55] dealt with a similar kind of However if we set crossover fraction as 0, implying that the
controller tuning and hence this has been chosen as a base case whole population evolves through mutation, then it does not
for the PSO parameter values. improve the fitness of the best individual at the first generation.
As a rule of thumb in the PSO algorithm, the minimum number It improves the fitness of the other individuals in the population,
of particles must be at least greater than the number of solution but since these are never combined with the genes of the best
variables. Increasing the number of particles gives better results individual due to lack of crossover, the best fitness value levels
at the cost of an increase in computational time and complexity. off at a certain time and the program is terminated when the
Hence there is a tradeoff between the two. In our case 20 particles maximum number of iterations are reached.
give satisfactory results in terms of the convergence criterion as Hence, a judicious choice of the crossover and mutation fraction
needs to be used. In our simulation we have used the crossover
well as the time taken. For the sake of effective comparison of
fraction to be 0.8 and mutation fraction to be 0.2 which has given
both the gbest and lbest PSO algorithms the population is chosen
satisfactory results for a wide variety of problems [66].
as same.
In the gbest PSO a star topology is considered for the social
4. Results and discussions
network as opposed to a ring topology in lbest PSO [58,59] and in
both cases the number of particles has been considered to be 20. The closed loop performance of some representative plants
The same velocity and position update equations are used in both in Zhuang and Atherton [67] (with and without network delays)
these PSO variants but in gbest PSO, Pg in (3) represents the global have been compared with a conventional PID and a Fuzzy PID,
best of all the particles till the current iteration, whereas in lbest both of which have been tuned with three stochastic optimization
PSO it represents the neighbourhood best of the particles till the methods, namely the GA, gbest PSO and lbest PSO.
current iteration for each cluster. The lbest PSO has an overlapping
1
neighbourhood, to facilitate information exchange. This is based P1 (s) = (4)
on adjacent indices of the population array rather than on spatial (s + 1)5
positions to reduce computational complexity. In general, the gbest 2 (0.5s + 1) e0.1s
PSO converges faster than the lbest PSO due to larger particle P2 (s) = . (5)
interconnectivity. However lbest PSO has larger diversity and is less (s + 1) (4s + 1)
susceptible to being trapped in local minima. The performance of the above plants has been compared on the
basis of optimal tracking for a unit change in set point as well as
suppression of unit load disturbance [67]. Also, comparisons are
3.2. Genetic Algorithm (GA)
made for control signals in each case which is a cause of actuator
saturation [56,57].
The genetic algorithm is another stochastic optimization pro-
cess inspired by natural evolution and can be used to minimize
4.1. Simulation without network delay
a suitable objective function for tuning the controller parame-
ters [57]. Initially, a population of solution vectors is created ran- The stochastic optimization based tuning results for test plants
domly over the whole solution domain. Each solution vector in the (4) and (5) with conventional PID and Fuzzy PID are reported in
present population undergoes reproduction, crossover and muta- Tables 1 and 2.
tion, in each iteration, to give rise to a better population of solution Here, the controller parameters in Tables 1 and 2 are calculated
vectors in the next iteration. with minimization of the objective function in (2) for unit change
Reproduction implies that solution vectors with higher fitness in set point. Additionally the load disturbance is compared later
values can produce more copies of themselves in the next to evaluate the performance of the controllers, tuned via different
generation. Usually a parameter called the elite count is used which intelligent optimization algorithms. The closed loop response
represents the number of fittest individuals (solution vectors) that for plant P1 and P2 and the respective controller outputs for
will definitely go to the next generation. Increasing the elite count unit change in set-point and load disturbance are shown in
may result in domination of the fitter individuals obtained earlier Figs. 48.
32 I. Pan et al. / ISA Transactions 50 (2011) 2836

Time Response of Plant P2 with Unit Set-Point Change & Load Disturbance
Table 1
1.2
Tuning results of PID controller without network delay.
Plant Optimization algorithm Jmin Kp Ki Kd
1
GA 53.0824 0.96 0.2273 1.0704
P1 gbest-PSO 52.6866 1.1 0.2462 1.4367
lbest-PSO 52.6866 1.101 0.239 1.4364 0.8

Amplitude
GA 14.46459 1.423 0.3162 0.195
P2 gbest-PSO 14.4294 1.799 0.4025 1.0026 0.6
lbest-PSO 14.43 1.715 0.3816 0.4755

0.4
Time Response of Plant P1 with Unit Set-Point Change & Load Disturbance
1.2
0.2

1
0
0 10 20 30 40 50 60
0.8 Time (sec)
Amplitude

0.6 Fig. 6. Output of plant P2 with step change in set-point & load disturbance.

Controller Output for Plant P2


0.4 2.4

2.2
0.2
2

0 1.8
0 10 20 30 40 50 60 70
1.6
Amplitude
Time (sec)
1.4
Fig. 4. Output of plant P1 with step change in set-point & load disturbance. 1.2

Controller Output for Plant P2 1


2.2
0.8
2 0.6

1.8 0.4
0 10 20 30 40 50 60

1.6 Time (sec)


Amplitude

1.4 Fig. 7. Controller output for plant P2 .

1.2 Time Response of Plant P1 with Unit Set-Point Change & Load Disturbance Considering
Random Network Delays
1 1.2

0.8
1

0 10 20 30 40 50 60 70
0.8
Time (sec)
Amplitude

0.6
Fig. 5. Controller output for plant P1 .

0.4
4.2. Simulations with network induced delay

Since FLC works on instantaneous values of e and e, rather than 0.2


a predefined model structure, its performance is expected to be
better over a simple PID for handling stochastic delays due to the 0
0 10 20 30 40 50 60
network, and the tuning results for the test plants are reported in
Time (sec)
Tables 3 and 4. For the simulation of network delays in the forward
and the feedback path in Fig. 1, a random number in the interval of Fig. 8. Output of plant P1 with random network delay.
[00.2] seconds is generated at each time step.
The hybrid system comprising of the discrete time network and
controller with Zero Order Hold (ZOH) along with the continuous networked control system. Also, the load disturbance suppression
time plant can be considered as a continuous time system with is faster and deviation from the set-point is less with fuzzy PIDs
random delay if the sampling time (Ts ) is very small as shown by compared to a conventional PID controller. The controller output
Tipsuwan and Chow [68] and Fang et al. [69]. In the present study becomes oscillatory with high amplitude in case of simple PID. The
Ts = 0.01 s has been considered. fuzzy PID controller outputs are also oscillatory but the amplitudes
The corresponding closed loop response and controller outputs are less (Figs. 9, 11). To ensure that a large control signal does not
for plant P1 and P2 are shown in Figs. 811, considering network saturate the actuator, the control signal u(t ) is also minimized as a
delays. part of the objective function (2), in the proposed technique.
It is evident from Figs. 8 and 10 that fuzzy PIDs have a nice It is worth mentioning that the introduction of random
capability to suppress the effect of random delay variation in a network delays would lead to such a variation of controller
I. Pan et al. / ISA Transactions 50 (2011) 2836 33

Table 2
Tuning results of fuzzy PID controller without network delay.
Plant Optimization algorithm Jmin Ke Kd
GA 55.2846 0.4506 0.6335 1.4428 0.6494
P1 gbest-PSO 55.3445 0.4487 0.6113 1.4952 0.6512
lbest-PSO 55.2535 0.4369 0.5525 1.5043 0.6334
GA 14.5233 0.8528 0.5305 3.0839 0.7747
P2 gbest-PSO 14.1719 0.2947 0.372 4.1761 10.487
lbest-PSO 14.1732 0.3522 0.4726 3.2474 7.9644

Controller Output for Plant P1 Considering Random Network Delays Table 3


5 Tuning results of PID with network delay.
Plant Optimization algorithm Jmin Kp Ki Kd
4
GA 54.4237 0.978 0.2217 0.9524
3 P1 gbest-PSO 54.4947 0.946 0.2207 0.9018
lbest-PSO 54.684 0.943 0.2267 1.1464
2 GA 14.5265 1.618 0.3636 0.1876
Amplitude

P2 gbest-PSO 14.677 1.588 0.3059 0.2344


1
lbest-PSO 14.6801 1.158 0.3136 0.4203
0

1 output. Introducing network prediction schemes can ameliorate


the adverse effects to a certain degree. Other alternative can be to
2 design effective transmission protocols so that the random delays
are handled adequately by the network protocol itself. Also, the
3
0 10 20 30 40 50 60 presence of the control signal in the performance index effectively
Time (sec) reduces the band of oscillation in the controller output. With
only a simple error minimizing criteria, the band of oscillation in
Fig. 9. Controller output for plant P1 with random network delay.
control signal would have been more. This is a particular problem
introduced by the randomness of the communication network.
Time Response of Plant P2 with Unit Set-Point & Load Disturbance Since the primary objective of the controller is to maintain time
Considering Random Network Delays
1.2 domain optimality which is evident from the time responses, the
control signal suffers to some extent (as it has been optimized and
1 not been allowed to be arbitrarily high) so as to suppress the effect
of random delay in the time responses and yield a smooth closed
0.8
loop dynamics. From the presented figures and tables, it is also
evident that the PSO variants perform better than the GA for the
Amplitude

optimization process.
0.6

0.4 4.3. Effect of gradual increase in random network delay

0.2 The best tuned controllers of Tables 3 and 4 (having the lowest
Jmin ) are now tested with increased network delay (max
CA
= max
SC
=
0 {0.2, 0.4, 0.5}) to see how efficiently they handle relatively
0 10 20 30 40 50 60
large random delays with the same tuning parameters. Simulated
Time (sec)
results of the system and controller outputs for plants (4)(5) are
Fig. 10. Output of plant P2 with random network delay.
presented in Figs. 1215 respectively.
It is clear from Figs. 13 and 15 that the controller output
for the PID controller becomes larger than the Fuzzy PID when
Controller Output for Plant P2 Considering Random Network Delays
3
the network induced delay is increased, which may saturate the
actuator in practical NCS applications. Also, Fuzzy PIDs give lower
2.5 overshoot than simple PIDs for increased network delay (Figs. 12
2 and 14).
It is also worth mentioning that all issues in networked control
1.5
applications are not essentially process control delays (which
Amplitude

1 might be large but are generally constant). Stochastic delays are


0.5
much harder to deal with and even a small amount of random
stochastic delay in each sampling time can result in system
0
instability even if the system might be stable due to the same
0.5 amount of constant time delay which is not stochastic in nature as
shown by Hirai and Satoh [70]. This implies that a control system
1
designed for the worst case scenario does not necessarily ensure
1.5
0 10 20 30 40 50 60
system stability when the delay varies stochastically between the
Time (sec) upper and lower bounds. The simulated Figs. 1215 show that the
fuzzy logic controller has higher capability of suppressing random
Fig. 11. Controller output for plant P2 with random network delay. variation in network delay in the forward and feedback path.
34 I. Pan et al. / ISA Transactions 50 (2011) 2836

Table 4
Tuning results of fuzzy PID with network delay.
Plant Optimization algorithm Jmin Ke Kd
GA 56.09 0.4165 0.3617 1.6922 0.6183
P1 gbest-PSO 55.6603 0.3487 0.486 1.8778 0.895
lbest-PSO 56.325 0.5709 0.8484 1.1915 0.5034
GA 14.92 1.9299 1.08 1.9199 0.7337
P2 gbest-PSO 14.6336 0.6815 1.0369 0.9233 3.2445
lbest-PSO 14.7689 0.6049 0.8688 1.0554 4.6765

Time Response of Plant P1 with Gradual Increase in Random Network Delay Controller Output of Plant P2 with Gradual Increase in Random Network Delay
1.2 4

3
1

2
0.8
Amplitude

Amplitude
1
0.6
0

0.4
1

0.2
2

0 3
0 10 20 30 40 50 60 0 10 20 30 40 50 60
Time (sec) Time (sec)

Fig. 12. Output of plant P1 with gradual increase in random network delay. Fig. 15. Controller output for P2 with gradual increase in random network delay.

Controller Output of Plant P1 with Gradual Increase in Random Network Delay


10 the controller performance will deteriorate as the sampling time is
increased, as it deviates from the continuous time case to a larger
8
extent. In NCS applications however the sampling time is a design
6
input variable based on the network conditions, since decreasing
4 the sampling time would result in a large number of packets being
2 sent through the network which would result in more network
Amplitude

congestion and increase delays. Real time implementation of


0
such controllers in NCS for process control applications has been
2
reported in [23,71].
4

6
5. Conclusion
8

10 The effect of random delays in NCS has been handled in this


0 10 20 30 40 50 60
paper by using fuzzy PID controllers. Tuning of controllers is
Time (sec)
done by minimizing ITAE and the squared control signal with
Fig. 13. Controller output for P1 with gradual increase in random network delay. three stochastic algorithms viz. the GA, gbest PSO and lbest PSO.
Simulation results indicate that load disturbance suppression with
Time Response of Plant P1 with Gradual Increase in Random Network Delay Fuzzy PID tuned by gbest and lbest PSO is better than that with
1.2
the GA. Also, to nullify the effect of random variation network
delay in the controlled output, the control action with simple
1
PIDs becomes much larger than that with Fuzzy PIDs. The random
network induced delay is then gradually increased and the Fuzzy
0.8
PID controller again shows better performance than a simple
Amplitude

PID controller, especially in load disturbance suppression. Further


0.6 works on the proposed scheme can be directed towards stability
analysis of such controllers in NCS applications. Other future
0.4 investigations may include a performance study of the fuzzy
controller to handle nonlinear processes and considering sensor
0.2 noise and packet drop-outs in the network.

0
0 10 20 30 40 50 60 Acknowledgement
Time (sec)

This work has been supported by the Board of Research in


Fig. 14. Output of plant P2 with gradual increase in random network delay.
Nuclear Sciences (BRNS) of the Department of Atomic Energy
Also the controller tuning algorithm presented in this paper is (DAE), India, sanction no. 2009/36/62-BRNS, dated November
offline and is independent of the choice of sampling time. However, 2009.
I. Pan et al. / ISA Transactions 50 (2011) 2836 35

References [33] Zhang Huaguang, Yang Dedong, Chai Tianyou. Guaranteed cost networked
control for TS fuzzy systems with time delays. IEEE Transactions on Systems,
[1] Driankov Dimiter, Hellendoorn Hans, Reinfrank Michael. An introduction to Man, and CyberneticsPart C: Applications and Reviews 2007;37(2):16072.
fuzzy control. Berlin: Springer-Verlag; 1993. [34] Zhang Huaguang, Yang Jun, Su Chun-Yi. TS fuzzy-model-based robust H
[2] Passino Kevin M, Yurkovich Stephen. Fuzzy control. Reading, (MA): Addison- design for networked control systems with uncertainties. IEEE Transactions
Wesley Longman Inc.; 1998. on Industrial Informatics 2007;3(4):289301.
[3] Mudi Rajani K, Pal Nikhil R. A robust self-tuning scheme for PI-and PD-type [35] Jiang Xiefu, Han Qing-Long. On designing fuzzy controllers for a class of
fuzzy controllers. IEEE Transactions on Fuzzy Systems 1999;7(1):216. nonlinear networked control systems. IEEE Transactions on Fuzzy Systems
[4] Mudi Rajani K, Pal Nikhil R. A self-tuning fuzzy PI controller. Fuzzy Sets and 2008;16(4):105060.
Systems 2000;115(2):32738. [36] Gao Huijun, Zhao Yan, Chen Tongwen. H fuzzy control of nonlinear systems
[5] Mann George KI, Hu Bao-Hang, Gosine Raymond G. Analysis of direct action under unreliable communication links. IEEE Transactions on Fuzzy Systems
fuzzy PID controller structures. IEEE Transactions on Systems, Man and 2009;17(2):26578.
Cybernetics, Part B (Cybernetics) 1999;29(3):37188. [37] Peng Chen, Yang Tai Cheng. Communication-delay-distribution-dependent
[6] Golob Marjan. Decomposed fuzzy proportional-integral-derivative con- networked control for a class of TS fuzzy systems. IEEE Transactions on Fuzzy
trollers. Applied Soft Computing 2001;1(3):20114. Systems 2010;18(2):32635.
[7] Reznik Leonid, Ghanayem Omar, Bourmistrov Anna. PID plus fuzzy controller [38] Zhang Huaguang, Li Ming, Yang Jun, Yang Dedong. Fuzzy model-based robust
structures as a design base for industrial applications. Engineering Applica- networked control for a class of nonlinear systems. IEEE Transactions on
tions of Artificial Intelligence 2000;13(4):41930. Systems, Man and Cybernetics, Part A (Systems and Humans) 2009;39(2):
[8] Woo Zhi-Wei, Chung Hung-Yuan, Lin Jin-Jye. A PID type fuzzy controller with 43747.
self-tuning scaling factors. Fuzzy Sets and Systems 2000;115(2):3216. [39] Yang De-Dong, Zhang Hua-Guang. Robust H networked control for uncertain
[9] Bhattacharya S, Chatterjee A, Munshi S. A new self-tuned PID-type fuzzy fuzzy systems with time-delay. Acta Automatica Sinica 2007;33(7):72630.
controller as a combination of two-term controllers. ISA Transactions 2004; [40] Tian Engang, Yue Dong, Gu Zhou. Robust H control for nonlinear systems
43(3):41326. over network: a piecewise analysis method. Fuzzy Sets and Systems 2010;
[10] Bandyopadhyay R, Chakraborty UK, Patranabis D. Autotuning a PID controller: 161(21):273145.
a fuzzy-genetic approach. Journal of Systems Architecture 2001;47(7):66373. [41] Zhang Wenjuan, Wang Lian-Ming, Deng Yufen, Zhang Hongwei. Studies on the
[11] Bandyopadhyay R, Patranabis D. A new autotuning algorithm for PID fuzzy PID control method for networked control systems with random delays.
controllers using dead-beat format. ISA Transactions 2001;40(3):25566. In: 7th world congress on intelligent control and automation. WCICA 2008.
[12] Bandyopadhyay R, Patranabis D. A fuzzy logic based PI autotuner. ISA 2008. p. 331620.
Transactions 1998;37(3):22735. [42] Dezong Zhao, Chunwen Li, Jun Ren. Fuzzy speed control and stability analysis
[13] Blanchett TP, Kember GC, Dubay R. PID gain scheduling using fuzzy logic. ISA of a networked induction motor system with time delays and packet dropouts.
Transactions 2000;39(3):31725. Nonlinear Analysis: Real World Applications 2011;12(1):27387.
[14] Boubertakh Hamid, Tadjine Mohamed, Glorennec Pierre-Yves, Labiod Salim. [43] Zhang Qian, Guo Xi-Jin, Wang Zhen, Tian Xi-Ian. Application of improved fuzzy
Tuning fuzzy PD and PI controllers using reinforcement learning. ISA controller in networked control systems. Journal of China University of Mining
Transactions 2010;49(4):54351. and Technology 2006;16(4):5004.
[15] Hu Baogang, Mann George KI, Gosine Raymond G. New methodology for [44] Huang Congzhi, Bai Yan, Liu Xingjie. Fuzzy PID control method for a class of
analytical and optimal design of fuzzy PID controllers. IEEE Transactions on networked cascade control systems. In: The 2nd international conference on
Fuzzy Systems 1999;7(5):52139. computer and automation engineering. ICCAE, 2010. vol. 1. 2010. p. 1404.
[16] Visioli A. Tuning of PID controllers with fuzzy logic. IEE ProceedingsControl [45] Huang Congzhi, Bai Yan, Li Xinli. Simulation for a class of networked cascade
Theory and Applications 2001;148(1):18. control systems by PID control. In: International conference on networking,
[17] Mohan BM, Sinha Arpita. Mathematical models of the simplest fuzzy PI/PD sensing and control. ICNSC 2010. 2010. p. 45863.
controllers with skewed input and output fuzzy sets. ISA Transactions 2008; [46] Zhang Wen-Juan, Deng Yu-Fen, Wang Lian-Ming, Zhang Hong-Wei. Fuzzy
47(3):30010. PID control method for networked control system with constant delays. In:
[18] Mansour SE, Kember GC, Dubay R, Robertson B. Online optimization of fuzzy- International conference on machine learning and cybernetics, 2008. vol. 4.
PID control of a thermal process. ISA Transactions 2005;44(2):30514. 2008. p. 196873.
[19] Lee Ching-Hung, Teng Ching-Cheng. Calculation of PID controller parameters [47] Du F, Qian QQ. Fuzzy immune self-regulating PID control based on modified
by using a fuzzy neural network. ISA Transactions 2003;42(3):391400. Smith predictor for networked control systems. In: IEEE international
[20] Xu Jian-Xin, Liu Chen, Hang Chang Chieh. Tuning of fuzzy PI controllers based conference on networking, sensing and control. ICNSC 2008. 2008. p. 4248.
on gain/phase margin specifications and ITAE index. ISA Transactions 1996; [48] Du F, Qian QQ. Fuzzy immune self-regulating PID control for wireless
35(1):7991. networked control system. In: IET conference on wireless, mobile and sensor
[21] Kazemian Hassan B. Comparative study of a learning fuzzy PID controller and networks. CCWMSN07. 2007. p. 1081-4.
a self-tuning controller. ISA Transactions 2001;40(3):24553. [49] Lee Kyung Chang, Lee Suk, Lee Man Hyung. Remote fuzzy logic control of
[22] Das M, Banerjee A, Ghosh R, Goswami B, Balasubramanian R, Chandra AK, networked control system via profibus-DP. IEEE Transactions on Industrial
Gupta A. A study on multivariable process control using message passing Electronics 2003;50(4):78492.
across embedded controllers. ISA Transactions 2007;46(2):24753. [50] Almutairi NaifB, Chow Mo-Yuen. PI parameterization using adaptive fuzzy
[23] Das M, Ghosh R, Goswami B, Chandra AK, Balasubramanian R, Luksch P, modulation (AFM) for networked control systems-part I: partial adaptation.
Gupta A. Multi-loop networked process control: a synchronized approach. ISA In: 28th annual conference of the industrial electronics society. IECON 02. vol.
Transactions 2009;48(1):12231. 4. 2002. p. 31527.
[24] Zhang Wei, Branicky Michael S, Phillips Stephen M. Stability of networked [51] Almutairi NaifB, Chow Mo-Yuen. PI parameterization using adaptive fuzzy
control system. IEEE Control Systems Magazine 2001;21(1):8499. modulation (AFM) for networked control systems-part II: full adaptation. In:
[25] Dong Hongli, Wang Zidong, Gao Huijun. H fuzzy control for systems with 28th annual conference of the industrial electronics society. IECON 02. vol. 4.
repeated scalar nonlinearities and random packet losses. IEEE Transactions on 2002. p. 315863.
Fuzzy Systems 2009;17(2):44050. [52] Almutairi NaifB, Chow Mo-Yuen, Tipsuwan Yodyium. Network-based con-
[26] Li Jian Guo, Yuan Jing Qi, Lu Jun Guo. Observer-based H control for networked trolled dc motor with fuzzy compensation. In: 27th annual conference of the
nonlinear systems with random packet losses. ISA Transactions 2010;49(1): industrial electronics society. IECON 01. vol. 3. 2001. p. 18449.
3946. [53] Fadaei A, Salahshoor K. Design and implementation of a new fuzzy PID
[27] Jammeh Emmanuel A, Fleury Martin, Wagner Christian, Hagras Hani, controller for networked control systems. ISA Transactions 2008;47(4):
Ghanbari Mohammed. Interval type-2 fuzzy logic congestion control for video 35161.
streaming across IP networks. IEEE Transactions on Fuzzy Systems 2009;17(5): [54] Fadaei A, Salahshoor K. Improving the control performance of networked
112342. control systems using a new fuzzy PID. In: IEEE international symposium on
[28] Siripongwutikorn Peerapon, Banerjee Sujata, Tipper David. Fuzzy-based industrial electronics. ISIE 2008. 2008. p. 206671.
adaptive bandwidth control for loss guarantees. IEEE Transactions on Neural [55] Maiti Deepyaman, Acharya Ayan, Chakraborty Mithun, Konar Amit, Ja-
Networks 2005;16(5):114762. narthanan Ramdoss. Tuning PID and PI D controllers using the integral time
[29] Ren F-C, Chang C-J, Cheng R-G. QoS-guaranteed fuzzy transmission controller absolute error criteria. In: 4th international conference on information and au-
for dynamic TDMA protocol in multimedia communication systems. IEE tomation for sustainability. ICIAFS 2008. 2008. p. 45762.
ProceedingsCommunications 2002;149(56):2928. [56] Cao Jun-Yi, Cao Bing-Gang. Design of fractional order controllers based
[30] Zheng Ying, Fang Huajing, Wang Hua O. TakagiSugeno fuzzy-model-based on particle swarm optimization. In: 1st IEEE industrial electronics and
fault detection for networked control systems with Markov delays. IEEE applications. 2006. p. 16.
Transactions on Systems, Man and Cybernetics, Part B (Cybernetics) 2006; [57] Cao Jun-Yi, Liang Jin, Cao Bing-Gang. Optimization of fractional order
36(4):9249. PID controllers based on Genetic Algorithms. In: Proceedings of the 2005
[31] Jiang Bin, Mao Zehui, Shi Peng. H -filter design for a class of networked international conference on machine learning and cybernetics. vol. 9. p.
control systems via TS fuzzy-model approach. IEEE Transactions on Fuzzy 56869.
Systems 2010;18(1):2018. [58] Kennedy James, Mandes Rui. Population structure and particle swarm perfor-
[32] Jia Xinchun, Zhang Dawei, Hao Xinghua, Zheng Nanning. Fuzzy H tracking mance. In: Proceedings of the 2002 congress on evolutionary computation.
control for nonlinear networked control systems in TS fuzzy model. IEEE CEC02. vol. 2. p. 16716.
Transactions on Systems, Man and Cybernetics, Part B (Cybernetics) 2009; [59] Ghosh Sayan, Kundu Debarati, Suresh Kaushik, Das Swagatam, Abraham Ajith,
39(4):10739. Panigrahi BijayaK, Snase Vaclav. On some properties of the lbest topology
36 I. Pan et al. / ISA Transactions 50 (2011) 2836

in particle swarm optimization. In: Ninth international conference on hybrid [66] Global optimization toolbox: users guide. Mathworks, Inc. 2010.
intelligent systems. HIS09. vol. 3. p. 3705. [67] Zhuang M, Atherton DP. Automatic tuning of optimum PID controllers.
[60] Yesil E, Guzelkaya M, Eksin I. Self tuning fuzzy PID type load and frequency IEE ProceedingsD: Control Theory and Applications 1993;140(3):21624.
controller. Energy Conversion and Management 2004;45(3):37790. [68] Tipsuwan Yodyium, Chow Mo-Yuen. Control methodologies in networked
[61] Qiao Wu Zhi, Mizumoto Masaharu. PID type fuzzy controller and parameters control systems. Control Engineering Practice 2003;11(10):1099111.
adaptive method. Fuzzy Sets and Systems 1996;78(1):2335. [69] Fang Laihua, Wu Zhongzhi, Wu Aiguo, Zheng Aihong. Fuzzy immune self-
[62] Li Han-Xiong, Zhang Lei, Cai Kai-Yuan, Chen Guanrong. An improved robust regulating PID control of networked control system. In: International confer-
fuzzy PID controller with optimal fuzzy reasoning. IEEE Transactions on ence on computational intelligence for modelling, control and automation,
Systems, Man and Cybernetics, Part B (Cybernetics) 2005;35(6):128394. 2006 and international conference on intelligent agents, web technologies and
[63] Mohan BM, Sinha Arpita. Analytical structure and stability analysis of a fuzzy
internet commerce. CIMCA-IAWTIC06. 2006. p. 748.
PID controller. Applied Soft Computing 2008;8(1):74958.
[70] Hirai Kazumasa, Satoh Yoshiaki. Stability of a system with variable time delay.
[64] Mann George KI, Hu Bao-Gang, Gosine RaymondG. Two-level tuning of fuzzy
IEEE Transactions on Automatic Control 1980;25(3):5524.
PID controllers. IEEE Transactions on Systems, Man and Cybernetics, Part B
(Cybernetics) 2001;31(2):2639. [71] Das Monotosh, Ghosh Ratna, Goswami Bhaswati, Gupta Amitava, Tiwari AP,
[65] Liu Bo, Wang Ling, Jin Yi-Hui, Tang Fang, Huang De-Xian. Improved particle Balasubramanian R, Chandra AK. Network control system applied to a large
swarm optimization combined with chaos. Chaos, Solitons & Fractals 2005; pressurized heavy water reactor. IEEE Transactions on Nuclear Science 2006;
25(5):126171. 53(5):294856.

You might also like