0% found this document useful (0 votes)
38 views8 pages

Self-Tuning of Fuzzy Logic Controllers in Cascade Loops

This document proposes a method for self-tuning fuzzy logic controllers (FLCs) in cascade control loops. It describes how the Relay feedback method can be used to tune both the primary and secondary controllers in the cascade. For the secondary loop, the Relay method determines the critical gain and period, which are then used to tune a proportional-integral controller or equivalent FLC. The same process is then applied to the primary loop. The key advantage is this allows automatic tuning of FLCs in cascade loops, for which there was previously no systematic procedure. Simulation examples demonstrate the effectiveness of tuning FLCs in cascade loops using this Relay feedback self-tuning method.

Uploaded by

Carlos Bellatin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views8 pages

Self-Tuning of Fuzzy Logic Controllers in Cascade Loops

This document proposes a method for self-tuning fuzzy logic controllers (FLCs) in cascade control loops. It describes how the Relay feedback method can be used to tune both the primary and secondary controllers in the cascade. For the secondary loop, the Relay method determines the critical gain and period, which are then used to tune a proportional-integral controller or equivalent FLC. The same process is then applied to the primary loop. The key advantage is this allows automatic tuning of FLCs in cascade loops, for which there was previously no systematic procedure. Simulation examples demonstrate the effectiveness of tuning FLCs in cascade loops using this Relay feedback self-tuning method.

Uploaded by

Carlos Bellatin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

SELF-TUNING OF FUZZY LOGIC CONTROLLERS IN CASCADE LOOPS

M. SANTOS, J.M. DE LA CRUZ Dpto. de Informtica y Automtica. Facultad de Fsicas. (UCM) Ciudad Universitaria s/n. 28040-MADRID (Spain). S. DORMIDO Dpto. de Informtica y Automtica. Facultad de Ciencias. (UNED) Senda del Rey s/n. 28040-MADRID (Spain).
Cascade control is a multi-loop control scheme commonly used in chemical plants. But, as the involved processes are in general complex, with delays and non-linearities, conventional control methods are not able to guarantee the final control aims. Fuzzy Control (FLC) has been successful applied to these applications. However, controller parameters adjustment is a critical point and in Fuzzy Control there is no systematic procedure for tuning. We propose a simple tuning strategy for these FLC based on the Relay method that allows to apply it to more complicated FLC configurations, like cascade loops.

Introduction

In chemical industry, the processes are usually slow, making easier their self-tuning and they do not require an accurate adjustment of the controller parameters. For these processes, the structure of control in cascade has been proved very efficient, since it allows a second loop of control that it is tuned searching for tight aims. But the involved processes are in general complex, with delays, non-linearities; so, it is not always possible to control them with classical regulators. However, fuzzy control has been demonstrated very effective in the control of these plants. On the other hand, the tuning of the controllers is a critical point in their performance and stability. The tuning of controllers in cascade is a tedious task, and in the case of fuzzy controllers, it is not simple since it does not exist an automatic procedure for tuning. In this work, we propose a simple tuning method for fuzzy controllers which allows its application to more complex structures, like cascade controllers. Section 2 describes the tuning of controllers in cascade by the Relay method. In section 3, our strategy for the FLC initial adjustment is presented, based on the equivalence 1

between a type of FLC and the conventional ones. So, it is possible to apply the Relay method to tune FLC, as it is shown by simulation examples, and operates in a cascade scheme with fuzzy controllers. The conclusions are summarized in sect. 4.

Tuning of cascade controllers by the Relay method

Cascade control is a multi-loop control scheme (Figure 1). The manual tuning of controllers in cascade loops is a time-consuming task. Fuzzy logic is being use to self-tuning cascade controllers, and another systematic methods have been proposed to automatize this procedure [3]. But it also possible to apply this structure employing fuzzy controllers to cover a wider range of processes.
y2(t) = u1(t) r1(t) + e1(t)

Gc1(s)

r2(t)

e2(t)

Gc2(s)

u2(t)

G2(s)

G1(s)

y1(t)

Figure 1: Control in cascade

In order to apply the Ziegler and Nichols tuning formulas based on the frequency response [8], there are only two parameters which are necessary: the critical gain Kc, and the critical period Tc. To determine them, a relay is introduce in the control closed-loop, to force the system oscillates in a controlled limit cycle. The period of oscillation is the critical period, and the obtained amplitude of the oscillation, a, makes feasible to obtain the critical gain by the expression Kc = 4d/.a, where d is the amplitude of the relay [1]. For these parameters Tc and Kc, the PID parameters are calculated to give a desired response. Either the secondary or primary loop can be placed on the relay feedback (Figure 2). The conditions for stable limit cycles are assume for the plants. The controllers in cascade tuning is carried out first in the secondary loop, and then in the primary loop. 2

r1(t)

e1(t) +

Gc1(s) c r r2(t) +

e2(t)

Gc2(s) c r

y2(t) = u1(t) u2(t)

G2(s)

G1(s)

y1(t)

Figure 2: Tuning of controllers in cascade utilizing relay feedback

2.1 Self-tuning of the secondary loop In Figure 2, the primary loop is set in the position of manual operation. The relay feedback around the secondary loop results in controlled limit cycle oscillations at the cross-over frequency of G2, wc2. The describing function N2 of the second relay is given by the expression N2(a2) = 4d2/.a2, where a2 is the amplitude of the oscillation at the G2 output, and d2 is the relay amplitude. This describing function is approximately the magnitude of Gc2 at the cross-over frequency and, therefore, it is the critical gain Kc2 required for tuning the controller Gc2 [3]. The oscillation period is the critical period Tc2. With these quantities, the parameters of Gc2 are tuned using the Ziegler-Nichols formulas. Generally, a P or a PI controller is enough to control the secondary loop because it is not necessary an accurate control of this part of the system. The closed loop transfer function of the system results: H1 = G1 ( s) G2 ( s) Gc 2 ( s) Gc1 ( s) 1 + Gc1 ( s) G 2 ( s)(1 + Gc1 ( s) G1 ( s)) (1)

2.2 Self-tuning of the primary loop Once the secondary loop is designed, the primary loop is closed with a relay around it. Controlled limit cycle oscillations are observed. The plant now operates at its phase cross-over point wc1. The describing function of this relay N1 at the frequency of oscillation wc1, can be written as the next expression, with a1 the amplitude of the oscillations observed at the output of the process G1, and d1 the relay amplitude.

4d 1

. a1

1 G 2 (iw) Gc 2 (iw) 1 + G 2 (iw)( Gc 2 (iw)

(2) G1 (iw)
w = wwu 1

The transfer function of the closed loop system is now: G ( s) Gc ( s) 2 2 G1 ( s) Gc1 ( s) 1 ( ) G s Gc + 2 2 ( s) H1 = G ( s) Gc ( s) 2 2 1 + Gc1 ( s) G1 ( s) 1 ( ) G s Gc + 2 2 ( s)

(3)

The describing function of the relay is the critical gain required for tuning the controller Gc1. The critical period is the period of the limit cycle oscillation. The Ziegler-Nichols formulas can be used initially to tune Gc1.

Fuzzy controllers tuning

In Process Control area, the controller parameters adjustment is a critical point. In Fuzzy Control there is no systematic procedure for tuning; in fact, there is almost no other way but trial and error. Under certain conditions, it has been possible to establish an equivalence between some kind of fuzzy logic controllers and non-linear conventional controllers. These results have been proved by an analytic study of the equations that describe the control action in terms of the input variables [2], [4]. The starting point is to identify the FLC input and output variables with those of a conventional controller Figure 3 shows the basic scheme of an incremental Fuzzy-PID controller, where error e, the error change ce and the second error derivative ac are the input FLC variables, and the increment of the control u is the FLC output. The parameters chosen to tune the FLC are the scale factors GE, GR, GA and GU, gains which weight the input and output variables respectively. 4

r
-

e
d/dt

GE ce ac GR GA Fuzzy Inference u GU du

d/dt

Figure 3: Fuzzy-PID Controller

The restrictions for the FLC concern the number of linguistic labels, membership functions, defuzzification method, etc. Then, the control action is linear by pieces. Therefore, some of the tuning parameters of the FLC can be reduced to the parameters of a classical PID regulator (Kp, Ti and Td), [4], [6], and the widely studied classical tuning techniques can be applied to this type of fuzzy controllers. For instance, the Relay Method proposed by strm [1] can be applied to FLC to obtain its tuning parameters by means the PID controller gains (Figure 4) [5].

Figure 4: FLC Tuning procedure with the Relay Method

These FLC scale factors are calculated to get a desired behaviour. For example, if these gains are set to the values given by (4), the FLC behaviour is closed similar to a PI regulator (Figure 5). These expressions have been obtained based on Buckleys results [7] and analysing the control law for the FLC. We have replaced the membership functions equations defined for each variable in the control output equation, given by the center of area defuzzification method. But another control 5

aims can be searched, like to maintain the FLC behaviour in different zones of control, or set these gains to the stationary values [4]. GR = Kp.( 2. L f ) 0'5. L. GU GE = Ki .( 2. L f ) 0'5. L. GU (4)

where f =max(GE.###e(t)###, GR.###ce(t)###)###L, and L = center of each membership function. We have proved this indirect tuning strategy with different model plants [6]. First, G2 have been simulated in the secondary loop of the cascade scheme. The critical parameters are obtained by the Relay method (Figure 4). Then, a PI controller with parameters Kp2 = 0,3 and Ki2 = 1 or the equivalent FLC is autotuned for the secondary loop using Ziegler-Nichols rules. With the secondary controller in place, the primary loop G1 is placed on relay feedback, and the computed gains are Kp1 = 0,12 and Ti1 = 1,2 G 2 ( s) = 1 (1 + s) e 0.2 s G1( s) = 1 (1 + s) e 0.8 s

System response with FLC and PI controllers

PI FLC

Control signals PI FLC

time.10

Figure 5: Second loop response with PI and FLC controllers

This adjustment may be improved to include other heuristic aspects about the expert knowledge to emphasise the FLC non-linear characteristic. 4 Conclusions

Fuzzy Controllers have a non-linear behaviour that makes them an useful tool for the chemistry industry. But in Process Control Area, stability, efficiency, performance, etc., depend on how the controller parameters are selected. In Fuzzy Control there is no systematic procedure for tuning. We have proposed a simple tuning strategy for FLC. Simulating the FLC behaviour, and under certain conditions, it has been possible to establish an equivalence between the FLC initial parameters and the classical PID tuning gains (as we have proved also analytically). This result allows to apply well-know tuning strategies, as the Relay method, to more complicated configurations of FLC, like cascade loops. Moreover, the plant operator feels comfortable with these new controllers because he works with PID-look-and-feel ones. Acknowledgements This work has been partially supported by the CICYT project TAP95-0790. References 1. K. J. strm et al, Automatic tuning and adaptation for PID controllers - a survey, Control Eng. Practice, 1, 4, pp. 699-714, 1993. 2. S. Dormido, M. Santos, A. P. de Madrid, F. Morilla, Autosintona de controladores borrosos utilizando tcnicas clsicas basadas en reguladores PID, in Proc. III FLAT, Espaa, 1993, pp. 217-225. 3. C.C. Hang, A. P. Loh, V.U. Vasnani, Relay Feedback Auto-Tuning of Cascade Controllers, IEEE Trans. on Control Systems Techn., 2, 1, 42-45, 1994. 4. M. Santos, Contribution to tuning techniques of Fuzzy controllers, Ph.D, 1994. 5. M. Santos et al, Tuning of fuzzy controllers: application of the Relay Method. Proc. of EUROSIM95, pp. 1131-1136, Ed. Elsevier, N-H, 1995. 6. M. Santos, S. Dormido, J. M. de la Cruz, Derivative action in PID-fuzzy controllers, EUROCAST95, Innsbruck, 1995. 7. H. Ying, W. Siler, J. J. Buckley: Fuzzy control theory: a nonlinear case. Automatica 26, 3, 513-520, 1990. 7

8. J.G. Ziegler and N.B. Nichols, Optimum setting for automatic controller, Trans. ASME, 64, pp. 759-768, 1942.

You might also like