Relay feedback control has been one of the key instruments used in the automatic tuning of PID controllers. Its application is associated with the identification of process frequency response information via the self-generated excitation signals in a closed-loop operation. Because it is in a closed-loop operation, the feedback control effect maintains the system around its operating condition while conducting the experiment.
This chapter will discuss the automatic tuning of PID controllers where the process frequency response information is obtained from relay feedback experiments and the PID controllers are designed using the design methods introduced in Chapter 8.
This section will discuss relay feedback control systems in combination with hysteresis or with an integrator. Simulink tutorials are presented for both cases, which is convenient for simulation studies and experimental validations.
In applications, because of measurement noise, a hysteresis element is incorporated within the relay feedback control mechanism to avoid possible random switches due to the effect of noise. Figure 9.1 illustrates a block diagram of relay feedback control.
For the purpose of relay feedback control, there are a few parameters that need to be defined.
Figure 9.1 Block diagram of relay feedback control.
We define the deviation variable of the control signal as
and the initial condition of the deviation control signal as . We assume that the system is already operating at the steady state. With the actual measurement of the output
at the sampling time
, the closed-loop control signal
is calculated using the following relay switching rules:
and
where is the feedback error at the sampling time
.
It is worthwhile emphasizing that the relay switching rule given in (9.1) is for the systems that have a positive steady-state gain. For the systems having a negative steady-state gain, the deviation variable is calculated as
Clearly, the relay feedback control is a nonlinear control law with a small amount of a priori information required and it is very easy to implement.
It is known (Astrom and Hagglund (1984), Astrom and Hagglund (1988)) that this relay controlled system will generate a sustained periodic oscillation that contains the fundamental frequency at the point of the Nyquist curve of the process, which approximately has the imaginary part as
, as shown in Figure 9.2. One immediately pays attention to the location of the frequency
on the Nyquist curve. If the hysteresis value
is chosen to be zero, then the frequency
becomes the cross-over frequency on the Nyquist curve if a proportional controller is used. This was indeed the key link between the classical Ziegler–Nichols tuning rules and the first generation of auto-tuners (Astrom and Hagglund (1984), Astrom and Hagglund (1988)). The second point is that if the hysteresis
is increased, while maintaining the same amplitude
, the frequency
is reduced, meaning that the oscillation period
is increased.
Under relay feedback control, there are several classes of systems that will have a sustained periodic oscillation. In general, these systems should be stable to ensure safety of the operation during experiments. They include the first order plus delay systems, systems with higher order dynamics, systems with non-minimum phase behavior and higher order under-damped systems. The common feature of these systems is that their Nyquist curve will expand to the second and third quadratures on the complex plane, as shown in Figure 9.2. For a first order system, relay feedback control will not generate sustained periodic oscillation unless there are additional dynamics from actuation and measurement involved leading to a higher order system as a result.
Figure 9.2 Location of on a Nyquist curve.
The following tutorial is written to produce a MATLAB function that can be used for Simulink simulations and for real-time implementations.
Assuming that the plant is stable with all poles on the left half of the complex plane, the relay feedback controller incorporates an integrator in the closed-loop system, as illustrated in Figure 9.5. It is known (Astrom and Hagglund (1984), Astrom and Hagglund (1988)) that this relay controlled system will generate a sustained periodic oscillation that contains the fundamental frequency at the point where the Nyquist curve of the process intersects the imaginary axis as shown in Figure 9.6.
Figure 9.5 Block diagram of integrated relay feedback control.
Figure 9.6 Location of on a Nyquist curve when using an integrator with relay.
With the integrator incorporated in the relay feedback control, the frequency is smaller than the case without the integrator, meaning that the oscillation period
is larger. The main purpose of choosing this configuration instead of the basic relay feedback control is to ensure that the plant information obtained is contained at the lower and medium frequency range, as illustrated in Figure 9.6. Additionally, because of the integrator, the effect of high frequency measurement noise is minimized, and the need to use a hysteresis for the noise is reduced. It will be shown in Section 9.6 that the proposed configuration is essential in providing the key information of steady-state gain and dominant time constant in the auto-tuner design.
The relay feedback control with integrator is easy to implement. We assume that the system is operating at the steady state with given values of and
. The integral error
is defined as
With the first order approximation of the derivative , we obtain at the sampling time
,
Thus, the integral error is calculated recursively with
The control law for the relay with integrator is summarized as follows. Here, we assume that the steady-state gain of the system is positive.
The following Tutorial is to present a Simulink function for the relay with integrator control law. It is very similar to Tutorial 9.1. With these real time functions, one can convert them into C-code for the real time implementation of the relay feedback control systems.
It is well known that under a stable relay feedback control, both control input and process output signals are periodic in nature (Astrom and Hagglund (1984), Astrom and Hagglund (1988), Astrom and Hagglund (1995), Astrom and Hagglund (2006), Hagglund and Astrom (1985)). If a single relay experiment is conducted, a standard Fourier analysis (Kreyszig (2006)) shows that the periodic signals contain the frequencies in multiples of the fundamental frequency as
,
,
,
,
, where
is an odd number. Because of this, many approaches have been proposed to extract meaningful process information from the set of relay feedback control data, including the describing function analysis (Atherton (1975), Astrom and Hagglund (1984)) and fast Fourier analysis (Wang et al. (2001)).
For a period , the Fourier series expansion of the periodic input signal
, is expressed as (see Kreyszig (2006)),
Here, we emphasize that the continuous time fundamental frequency is . From (9.9), it is seen that the construction of the periodic signal
using the sinusoidal components is predominantly dependent on the first few terms because their contributions decay as the frequency increases.
By choosing sampling interval , the discretized input signal
at sampling instant
becomes
where is the number of samples within one period. The expression of the discrete time signal
reveals the discrete time fundamental frequency as
when we compare (9.10) with (9.9). Therefore, the relationship between the continuous time and discrete time frequencies exists as,
The simplest way to estimate the frequency response of the system under relay feedback is to use the FFT. Assuming that the data length is , the Fourier transform of an input signal
,
, is
and the corresponding Fourier transform of the output is
where . With the computation of the Fourier transformation of both input and output signals, the estimation of the frequency response of the plant
is simply (Ljung (1999))
From both (9.12) and (9.13), with the definition of the Fourier transform, it is seen that the corresponding discrete frequency is defined from 0 to with an incremental of
, where
is the data length.
The remaining tasks are to find which index corresponds to the fundamental frequency
in discrete time, followed by converting the discrete time frequency to the continuous time frequency
.
An intuitive way to find the fundamental frequency is to find the averaged number of samples of the input signal
within one period [see Figures 9.7(b)–(c)]. However, this could potentially lead to an inaccurate result because of the possible random switches in the input signal due to the measurement noise [see Figure 9.7(d)].
Since the input signal exhibits the feature of a periodic signal, the amplitude of the discrete time Fourier transform of the input signal will yield a maximum value at the fundamental frequency . Thus, we will use the maximum value of the amplitude of the Fourier transform as the signature to identify the discrete time fundamental frequency
while taking into account of the incremental frequency
in a general Fourier transformation.
The following MATLAB tutorial shows how to estimate ,
,
and
through Fourier analysis.
In the Monte-Carlo simulation, the measurement noise is generated with a random initial seed that changes with each simulation to reflect the randomness of the noise and its effect on the estimation results. It means that the measurement noise sequence is unique for each simulation and different from others. Consequently, the estimated parameters for each simulation are unique due to the noise. From the total number of simulations, the mean and variance of the estimated parameters are assessed. This assessment can be performed graphically by plotting the estimated parameters for each run against the original parameters or by calculating the mean and variance of the parameters from the total number of simulations. We choose to use a graphic display of the Monte-Carlo simulation results.
Two examples are presented in this section to show the estimation of frequency response of the system using the FFT with relay feedback control data in a noisy environment. The first case is to investigate the estimation when a relay is used with hysteresis to control the system and the second case is to show the estimation when a relay with an integrator is used to control the system.
The system under study has the transfer function
The noise used in the simulation is band limited noise with sampling interval (s) and power strength 1 together with a gain 0.1. The simulation time is 800 s. The initial seed used to generate the noise sequence varies from 0 to 68 to form the Monte-Carlo simulation studies. In total, we will conduct 69 simulation studies for the estimation.
Figure 9.9 Frequency response estimation using FFT (Example 9.4). (a) Input and output data using seed . (b) Fourier transform of the input data. (c) Estimated frequency responses (
,
,
). (d) Estimated steady-state gain.
This section introduces a model based approach for the estimation of process frequency response based on the input and output data collected from relay feedback control. The model is called the FSF model (Bitmead and Anderson (1981),Wang and Cluett (2000)). The advantages of using such a model based approach in comparison with the FFT analysis include that the computation can be performed recursively in real time and the estimated frequency responses have better accuracy because of the model optimization.
Assuming that a relay experiment is performed, a set of input and output signals and
is obtained. Because the input and output signals are periodic signals, the period in number of samples, denoted by
, is calculated and the fundamental discrete frequency is denoted by
, where
. Also, the backward shift operator
is defined as
where
is a discrete time signal.
Then, associated with the plant frequency response, and
, where
, the output
is expressed using the frequency sampling filter model in the relationship to the input signal
as (Bitmead and Anderson (1981),Wang and Cluett (2000)),
where is the FSF output for the zero frequency, defined as
and is the
th FSF filter output defined as
and is the output measurement noise assumed to be Gaussian distributed with zero mean and variance
. If the input signal
is a perfect period signal with period
, then, from Fourier analysis (Kreyszig (2006)), it only contains the odd number of frequencies and the magnitude decays as the number increases (see (9.10)). As a result, the outputs from the frequency sampling filters with even numbers are zero in response to the relay feedback control signal
, and they could be removed from the sum in (9.15). Figure 9.10 shows a block diagram of the frequency sampling filter model with a reduced number of filters. In practice, because of nonlinearities and other imperfect conditions, the relay control signals may not be perfectly periodic signals. The outputs of the zero frequency sampling filter and the even number of frequency filters may have signals with small magnitudes. To avoid bias errors in estimation, the expression of the output signal will take into consideration the effect of the near zero terms, which yields,
The model in (9.16) with seven complex parameters proves to be adequate for the majority of the applications even in the situation when the relay control does not produce perfect periodic signals.
Figure 9.10 Block diagram of the frequency sampling filter model with reduced order.
With the description of the output signal in terms of the frequency parameters, the next step is to estimate these parameters using the relay feedback control data. Define the complex parameter vector to be estimated as
and its corresponding regressor vector as
where denotes the complex conjugate transpose of
.
Assuming that the number of data samples is , then the least squares estimation of
has the following analytical solution (Soderstrom and Stoica (1989), Ljung (1999), Soderstrom (2018), Young (2012), Goodwin and Sin (1984)):
For real-time computation, we can use a recursive least squares algorithm to compute the frequency parameter vector at sampling instant
(see Goodwin and Sin (1984),Young (2012),Ljung (1999)). Here, a standard recursive least squares algorithm is written in the following steps, where the initial conditions of
and
are selected by the user or they can also be calculated using the relay testing data based on the least squares algorithm (Wang and Cluett (2000)). The following computation steps are repeated in real time, beginning with the sampling instant
.
There are two comments given below.
In this section, we will illustrate the estimation of frequency response using the frequency sampling filter model based on a relay with integrator control. The same Monte-Carlo simulation studies as in Example 9.4 will be used to generate the input and output data under relay feedback control.
In general, the frequency sampling filter model based estimation leads to an improved estimation compared with FFT based approaches when using the relay feedback control data because it is a model based approach that uses the principle of optimization in the parameter solutions. Additionally, the FSF model based approach can be implemented using a recursive method, as shown in Tutorial 9.4, which is suitable for real time computation on a micro-controller. If necessary, a noise model can be incorporated in the estimation (Wang and Cluett (2000)). The main advantage of using the FFT for the estimation is its simplicity of implementation, as shown in Tutorial 9.3.
Figure 9.11 Frequency response estimation using FSF (Example 9.5).
In this section, we will further evaluate the estimation of the plant frequency response using the frequency sampling filter model in comparison with the estimation using Fourier analysis, where Monte-Carlo simulation studies are used.
The transfer function used in the Monte-Carlo simulation is
The relay amplitude is selected to be 1 and the sampling interval (s). The relay testing time is selected to be 800 (s). The noise used in the simulation is band limited noise with sampling interval
(s) and power strength 1 together with a gain 0.02. In the Monte-Carlo simulation, the measurement noise is generated with a random seed that changes with each simulation to reflect the randomness of noise and its effect on the estimation results. The seeds used in the simulations are 0, 2,
,60. Thus, there are 31 random seeds used in the Monte-Carlo simulation to generate the measurement noise. There is a small hysteresis in the proposed relay feedback control because the integral action acting as a low-pass filter has reduced the possible random switches caused by the noise.
In many applications, during the relay experiments, there is an unknown constant disturbance. This type of disturbance often enters the system at the input variable, which is called the input disturbance. A typical example is the electrical load in an AC motor (Wang et al. (2015)). This type of disturbances will cause periodic oscillations in the relay feedback control to become unbalanced.
A constant input disturbance with magnitude of 0.3 is added to the relay feedback control experiments. Figure 9.12(a) shows the closed-loop relay feedback control responses in the presence of measurement noise and the input disturbance. From this figure it is seen that with the disturbance the oscillations are no longer in symmetry. Fourier analysis reveals [see Figure 9.12(b)] that the input signal has the fundamental frequency (rad), where
and the next significant frequency in the periodic signal is
followed by
. By choosing the nine frequency parameters (
) and
in the frequency sampling filter model, we obtain the estimated frequency parameters as shown in Figure 9.12(c). It is seen that the estimated parameters are unbiased with small variances, as shown through the Monte-Carlo simulations. In comparison, Figure 9.12(d) shows the estimated parameters using Fourier analysis, which are seen to have larger variances. The estimation results for frequency parameters at 0 and
are not consistent when the oscillations are not symmetric caused by the constant disturbance.
Figure 9.12 Monte-Carlo simulation results with random seeds in the presence of constant load disturbance. (a) Input and output signal. (b) Magnitude of DFT. (c) FSF estimation. (d) FFT estimation. Key:
(solid line), o is the estimated values at
,
is the estimated values at
,
is the estimated values at
.
In the application of process control, low frequency disturbances are frequently encountered. This group of studies will investigate what would happen to the relay feedback control and to the frequency response estimation in the presence of unknown low frequency disturbance.
In the Monte-Carlo simulation studies, the low frequency disturbance, entering into the system via the input signal, is generated by passing the same band limited measurement noise through a first order filter with transfer function:
which is then sampled using the same sampling interval (s). Note that the disturbance model has a time constant of 20 (s), which is much larger than the time constants of the system. Figure 9.13(a) shows the input and output data generated by the relay feedback control system. From this figure, it is interesting to see that the relay feedback control system no longer generates periodic oscillations in the presence of low frequency disturbances. This is confirmed through the Fourier analysis [see Figure 9.13(b)], from which only one spike in the magnitude of the Fourier transformation is observed. It is important to note that the relay feedback control system produces the oscillations that have the largest amplitude at
, where
. Figures 9.13(c) and (d) compare the estimation results obtained using the frequency sampling filter model and the Fourier analysis of the input and output data. It is seen from Figure 9.13(c) that the variances of the estimated parameters using the frequency sampling filter model are relatively small; however, there are small biases in the estimated parameters. In contrast, because the input signal is not periodic, the frequency response estimation using Fourier analysis produces poor results except the estimated parameters at
, as shown in Monte-Carlo simulation studies, which is evident by the scatters on the complex plane [see Figure 9.13(d)].
Figure 9.13 Monte-Carlo simulation results with random seeds in the presence of unknown low frequency disturbance. (a) Input and output signal. (b) Magnitude of DFT. (c) FSF estimation. (d) FFT estimation. Key:
(solid line), o is the estimated values at
,
is the estimated values at
,
is the estimated values at
.
The final question to be answered in the Monte-Carlo simulation studies is whether the steady-state estimation will be valid using the frequency sampling filter model. Figure 9.14 shows that the estimation of steady-state information is not reliable when using relay feedback control. Depending on the particular seed of the noise generator, all the estimated steady-state gains vary significantly from the true value (0.6). The worst case is shown in Figure 9.14(b), where with the constant disturbance the steady-state gain estimated is 0.
Figure 9.14 Monte-Carlo simulation results for estimation of steady-state gain with random seeds. (a) Steady-state estimation (measurement noise). (b) Steady-state estimation (constant disturbance). (c) Steady-state estimation (low frequency disturbance). Key:
(solid line), o is the estimated values at
.
To design the auto-tuner for a stable plant, the integrator with relay feedback control is used to generate the input and output data for the frequency response identification because this configuration handles the measurement noise and disturbances well and also provides the valuable low frequency information for the PID controller design. We assume that the two estimated frequency response points from the relay testing data are the fundamental frequency ,
and
, where
is the number of samples within one period. Because of noise, the oscillation generated from the relay feedback control may not be perfectly periodic. Thus, the parameter
is estimated using FFT analysis as illustrated in the previous sections (see Section 9.4). In the majority of the cases, the second frequency
is selected as
.
We assume that the plant transfer function is stable with all poles strictly on the left-half complex plane. Recall the desired closed-loop performance for the PID controller design using frequency response data in Chapter 8, which is specified through the control sensitivity function (see (8.18)), as
where is the desired closed-loop time constant, the parameter
is selected so that
is approximately equal to the dominant time constant of the system,
is the steady-state gain of the system.
To link the PID controller design method to the auto-tuner, the question remains as how to choose the design parameters in (9.20). One possibility that works well is to derive the approximate dominant time constant of the system using the period of relay control, . For the majority of the system, it can be readily verified through simulation studies that the settling time of the system is roughly
, namely half of the period under integrated relay control. With this knowledge, the dominant time constant of the process is selected about one-fifth of the settling time as
Now, one can choose the desired closed-loop time constant in relation to the dominant time constant of the process via the scaling parameter
by defining
Substituting (9.21) and (9.22) into (9.20) leads to the desired control sensitivity function as,
hence, the desired closed-loop transfer function as
Note that in (9.24) the parameters and
are known from the relay experiment and the user selected performance parameter is
, which is the scaling factor between the estimated open-loop and the desired closed-loop time constants. This modification of the closed-loop performance specification leads to the automatic calculation of the PID controller parameters with minimum effort from the user.
Because the direct estimation of the steady-state gain is not consistent using the relay control experiment, an approximation is taken to yield a rough estimation of the gain as
where is the unknown steady-state gain of the system.
In this section, we will firstly evaluate the closed-loop PID control performance of the proposed auto-tuner using four classes of systems commonly encountered in process control, and secondly perform comparative studies. For simplicity of the presentations, only measurement noise is added to the relay experiments. It has been verified that the auto-tuner will provide similar closed-loop performance when the constant disturbance or the low frequency disturbance are introduced during the relay experiments as long as we make an adjustment on the choice of the second frequency estimate for the PID controller design (see Sections 9.5.1 and 9.5.2).
There are four classes of systems used to evaluate the auto-tuner. Time delays are added for all testing cases to reflect the cases in process control. The same steady-state gain is used in all four cases for consistency in signal-to-noise ratio and the scaling of disturbance rejection in the closed-loop simulation. The sampling interval is , the relay amplitude is selected to be 1, and a measurement noise with standard deviation
was added to the output. After the relay experiment, the number of samples for the period of the relay signal is calculated automatically to give the parameter
, and the frequency responses at
and
are estimated. Then, by choosing
, 1, and 2, three sets of PID controller parameters are calculated using the program FR4PID.m.
Case A. This is a testing case for high order systems. The transfer function of this system is given as
Case B. This is the testing case for systems with non-minimum phase behavior. The transfer function is given by
Case C. This is the testing case for systems with dominant time delay. The transfer function is given as
Case D. The final testing case uses an underdamped system, which has the transfer function
This transfer function has the damping coefficient . Thus, the system has oscillatory response in open-loop operation.
Relay feedback control is used to generate the input and output data for all four processes in the presence of measurement noise. Because of the integral action used in the relay feedback control, the measurement noise has not affected the input signal without using hysteresis in the design, and there is no correlation between the measurement noise and the input signal. This adds to the benefit of using an integrator in series with a relay control. The estimation of the frequency responses at and
is performed using the frequency sampling filter model and the estimated frequency responses are accurate for all four cases.
By choosing , 1, and 2, three sets of PID controller parameters are calculated, which corresponds to the selection of three different desired closed-loop response speed. For instance, when
, the desired closed-loop time constant is selected equivalent to half of the estimated dominant open-loop time constant. Table 9.1 shows the PID controller parameters of the four cases for the three
values together with the mean squared errors, where the mean squared error is defined as
,
being the number of samples and
being the error between the reference and output signals.
It is noticed that as increases, the proportional controller gain
reduces, and the derivative gain reduces. In contrast, the variation of integral gain is smaller when
changes.
Figures 9.16(a)–(d) show the Nyquist plots of the four cases for the three control systems designed using , 1 and 2, where the frequency response of the system,
, is used in the computation. It is seen from the Nyquist plots that the PID controllers with all three choices of
lead to stable closed-loop systems. However, for
, the closed-loop control systems for case B to case D had gain margins less than 2. As
increases, both gain and phase margins for all four systems have increased. In particular, for the default choice of
, the gain margins for all four case are greater than 2 and phase margins are greater than
.
Table 9.1 PID controller parameters for different values.
Case | ![]() |
![]() |
![]() |
![]() |
![]() |
A | 0.5 | ![]() |
9.0098 | ![]() |
0.0894 |
1 | ![]() |
![]() |
![]() |
![]() |
|
2 | ![]() |
![]() |
![]() |
![]() |
|
B | 0.5 | ![]() |
6.2732 | ![]() |
![]() |
1 | ![]() |
![]() |
![]() |
![]() |
|
2 | ![]() |
![]() |
![]() |
0.1072 | |
C | 0.5 | ![]() |
![]() |
![]() |
![]() |
1 | ![]() |
![]() |
![]() |
![]() |
|
2 | ![]() |
![]() |
![]() |
![]() |
|
D | 0.5 | ![]() |
![]() |
![]() |
![]() |
1 | ![]() |
![]() |
![]() |
![]() |
|
2 | ![]() |
![]() |
![]() |
0.0543 |
Figure 9.16 Nyquist plots using the PID controller parameters in Table 9.1. (a) Case A. (b) Case B. (c) Case C. (d) Case D. Key: line (1) ; line (2)
; line (3)
.
Closed-loop simulation is conducted for all four cases with , 1, and 2. In the closed-loop simulation, the derivative term is implemented on the output only and a derivative filter with time constant
is used. A unit step signal is used as the reference signal at
(s), and a unit step input disturbance enters at time
(s). Figures 9.17(a)–(d) show the closed-loop simulation results for reference following and disturbance rejection. It is seen that all closed-loop systems are stable. The simulation results demonstrate that for a faster response to the reference signal, the PID control system will also have a faster response to disturbance rejection. The user can select the scaling parameter
to achieve the desired closed-loop response as required. As
increases, the closed-loop response speed reduces to both reference following and disturbance rejection. The overshoot in the reference response when
is small could be overcome by using a two degree of freedom PID controller implementation as shown in Chapters 1 and 2.
Figure 9.17 Closed-loop simulation results using the PID controller parameters in Table 9.1. (a) Case A. (b) Case B. (c) Case C. (d) Case D. Key: line (1) ; line (2)
; line (3)
.
In this section, we will benchmark the closed-loop performance of the PID controller found by the auto-tuner against the performance of the several other well known PID controllers. We will consider the following first order plus time delay model,
In the comparative studies, we will calculate the PID controller parameters using the IMC-PID controller design proposed by Rivera et al. (1986) (see Section 1.4.1), and the PID controller design by Padula and Visioli (2011) (see Section 1.4.2).
As in Chapter 1, the PID controller parameters using IMC-PID controller and Padula and Visioli tuning rules are calculated using the transfer function model (9.25). The PID controller parameters from the auto-tuner are calculated from the relay experiment where measurement noise with standard deviation of 0.02 was added.
In Table 9.2, we will choose two parameters to yield two sets of PID controller parameters from the auto-tuner. With this selection, it seems that all three PID controllers have a similar gain for the proportional control. However, the integral time constant varies between 26 and 35, and the derivative gain varies between 7 and 17. Figures 9.18(a)–(b) compare the three control signals and output signals in both reference following and disturbance rejection, which show that all three control systems have similar closed-loop performances in reference following and disturbance rejection.
Table 9.2 PID controller parameters and mean squared errors from the control simulation studies. Cases A and B use an auto-tuner, case C uses IMC-PID, cases D and E use Padula and Visioli PID.
Case | Spec. | ![]() |
![]() |
![]() |
![]() |
A | ![]() |
![]() |
![]() |
![]() |
0.1326 |
B | ![]() |
![]() |
![]() |
![]() |
![]() |
C | ![]() |
![]() |
![]() |
![]() |
|
D | ![]() |
![]() |
17.2991 | ![]() |
0.1923 |
E | ![]() |
0.3205 | 22.5160 | 13.5770 | 0.1504 |
Figure 9.18 Closed-loop simulation results using the PID controller parameters in Table 9.2. (a) Control signal. (b) Output signal. Key: line (1) auto-tuner (); line (2) IMC-PID controller; line (3) Padula–Visioli design (
).
Figure 9.19 Block diagram of relay feedback control for an integrating system.
For systems containing an integrator, in the design of auto-tuner for PID controllers, a proportional controller is first used to stabilize the plant. A relay with hysteresis element is utilized to generate the sustained oscillation for the closed-loop control system. The block diagram of the relay feedback control for an integrating system is illustrated in Figure 9.19.
The approximate model of an integrating system is assumed to be of the following form:
For most physical systems, there are more or less approximations involved in obtaining the integrating plus time delay model. For an integrating plus time delay system, a single frequency is sufficient to determine its gain and time delay
. Therefore, it is exceedingly simple to obtain an integrating plus delay model using the relay feedback control experimental data.
As shown in Section 9.4, the estimation of the closed-loop frequency response using either FFT analysis or an FSF model will yield the information where
is the estimated closed-loop frequency response and
is the fundamental frequency of the relay feedback control.
With the knowledge of the proportional controller , the frequency response of the plant
is calculated from the closed-loop frequency response relationship,
leading to
Now, letting the frequency response of the integrating plus delay model (9.26) be equal to the estimated leads to
Equating the magnitudes on both side of (9.28) gives
where . Additionally, from (9.28), the following relationship holds:
This gives the estimate of time delay as
In the event that parameter is negative, its absolute value is taken as the estimated time delay.
It is seen here that if the system is approximated by integrating with the time delay, the plant information at a single frequency is sufficient to determine the plant gain and time delay.
On obtaining the estimated integrating plus time delay model (9.26), one can find the PID controller using the empirical rules such as the modified IMC-PI controller in Skogestad (2003), which was discussed in Section 1.4.1, or tuning rules in Tyreus and Luyben (1992). We will use the empirical rules presented in Section 8.4.3, which gives the flexibility of PI, PID and PD controllers together with the gain margin and phase margin for the selection of performance parameter .
One is encouraged to follow Tutorial 9.1 for the relay feedback control and Tutorial 9.4 for the estimation of the frequency response using an FSF so as to validate the following simulation example.
The following example is to show the behaviour of the auto-tuner when it is applied to a complex integrating system.
Although it is derived for an integrator plus delay system, the auto-tuner provides satisfactory closed-loop performance for many classes of systems. This is illustrated by the following example.
This auto-tuner will be used for finding the PID controllers for the unmanned aerial vehicles in Chapter 10.
Figure 9.27 Frequency response comparison (Example 9.7). (a) Nyquist diagram. (b) Sensitivity function. Key: line (1) frequency response calculated with integrating plus delay model; line (2) frequency response calculated with the actual plant.
Auto-tuners are very convenient for tuning cascade control systems. The inner-loop control system will be auto-tuned first to find the appropriate controller, followed by the implementation of this secondary controller. An outer-loop control system will be auto-tuned with the closed-loop secondary system considered. As an illustration, we consider the following example.
We have discussed automatic tuning of PID controllers in this chapter. The auto-tuners are designed for stable systems and integrating systems. Both involve relay feedback control to generate the input and output data for estimation of plant frequency response. Then, the PID controller design methods discussed in Chapter 8 are used to automatically find the controller parameters.
The other important aspects of the chapter are summarized as follows.
Use the auto-tuner with integrator model to find the PID controller parameters for these systems. In the relay control experiments, feedback control gain , and relay amplitude of
and hysteresis of
are used. Sampling interval
is selected. The performance parameters
and
are selected for fast disturbance rejection. Evaluate the closed-loop control system performance for step input disturbance rejection with a disturbance amplitude of
.
and the outer-loop transfer function
Repeat the exercises given in Problem 9.7 with the closed-loop performance parameter . What are your observations when you compare these two PI control systems?