Keywords

25.1 Introduction

Most industrial plant systems can be represented by a linear time-invariant transfer function. Proportional-integral-derivative (PID) controllers are probably the most commonly used controllers in industrial applications. Numerous methods have been proposed for tuning the PID controller parameters [13].

Lead-lag controllers provide a more practical alternative. The design of the lead-lag controller has been studied [46]. Ou and Lin proposed a method based on Generic Algorithm (GA) and Particle Swarm Optimization (PSO) to design the PID controller, and then compared the results [7]. Horng used cuckoo search to design lead-lag controller [8]. Cuckoo search algorithm is one of the latest metaheuristic techniques, developed by Yang and Deb [911].

In this chapter, cuckoo search algorithm that uses a time-domain objective function to design the controller is proposed. If the plant could be modeled as a linear time-invariant transfer function, the proposed method can design a controller that approaches or meets the time-domain specifications. The objective function includes eight specifications, they are delay time, rise time, first peak time, maximum peak time, percent maximum overshoot, percent maximum undershoot, setting time, and steady-state error. This is improved by the formation of reference [8].

25.2 Time-Domain Objective Functions

Typical unit-step response of a control system illustrating the time-domain specifications are percentage maximum overshoot OS %, delay time T d , rise time, T r , setting time T s , and steady-state error E ss [1]. Let y(t) be the unit-step response and y ss the steady-state error. For a more general system, the following specifications will be considered:

  1. 1.

    First Peak time, T p . The time to reach the first peak.

  2. 2.

    Maximum Peak time, T m . The time to reach the maximum peak.

  3. 3.

    Percentage Maximum overshoot, US % is defined as

$$ {y}_{\mathrm{us}}= \min \left(y(t)\right),\kern0.5em t\ge {T}_p,\kern1em \mathrm{US}\kern0.5em \%=\left\{\begin{array}{cc}\hfill \frac{\left({y}_{\mathrm{ss}}-{y}_{\mathrm{us}}\right)}{y_{\mathrm{ss}}},\hfill & \hfill \mathrm{if}\kern0.75em {y}_{\mathrm{us}}<{y}_{\mathrm{ss}},\hfill \\ {}\hfill 0,\hfill & \hfill \mathrm{if}\kern0.75em {y}_{\mathrm{us}}\ge {y}_{\mathrm{ss}}.\hfill \end{array}\right. $$
(25.1)

First define deviation ratio (DR)

$$ \mathrm{D}\mathrm{R}\left(\mathrm{T}\mathrm{D}\mathrm{S}\right)=f\left(\left.\mathbf{x}\right|\mathrm{T}\mathrm{D}\mathrm{S}:\mathrm{lb},\mathrm{u}\mathrm{b}\right) = \left\{\begin{array}{ll}\kern2.25em 0,\hfill & \mathrm{if}\kern0.5em 0\le \mathrm{lb}\le f\left(\left.\mathbf{x}\right|\mathrm{T}\mathrm{D}\mathrm{S}\right)\le \mathrm{u}\mathrm{b}\hfill \\ {}\frac{f\left(\left.\mathbf{x}\right|\mathrm{T}\mathrm{D}\mathrm{S}\right)-\mathrm{u}\mathrm{b}}{\mathrm{ub}},\hfill & \mathrm{if}\kern0.5em f\left(\left.\mathbf{x}\right|\mathrm{T}\mathrm{D}\mathrm{S}\right)>\mathrm{u}\mathrm{b}\hfill \\ {}\frac{\mathrm{lb}-f\left(\left.\mathbf{x}\right|\mathrm{T}\mathrm{D}\mathrm{S}\right)}{\mathrm{lb}},\hfill & \mathrm{if}\kern0.5em f\left(\left.\mathbf{x}\right|\mathrm{T}\mathrm{D}\mathrm{S}\right)<\mathrm{lb}\hfill \end{array}\right. $$
(25.2)

where TDS is the time-domain specification, i.e., rise time, first peak time, maximum peak time, etc. The proposed objective function is

$$ \begin{array}{c}\mathrm{TDOF}=\Big({w}_1\mathrm{D}\mathrm{R}\left({T}_d\right)+{w}_2\mathrm{D}\mathrm{R}\left({T}_r\right)+{w}_3\mathrm{D}\mathrm{R}\left({T}_p\right)+{w}_4\mathrm{D}\mathrm{R}\left({T}_m\right)\\ {}+{w}_5\mathrm{D}\mathrm{R}\left(\mathrm{OS}\;\%\right)+{w}_6\mathrm{D}\mathrm{R}\left(\mathrm{US}\;\%\right)+{w}_7\mathrm{D}\mathrm{R}\left({T}_s\right)+{w}_8\mathrm{D}\mathrm{R}\left({E}_{\mathrm{ss}}\right)\Big)/\mathrm{T}\mathrm{W}\end{array} $$
(25.3)

where \( \mathrm{T}\mathrm{W}={\displaystyle {\sum}_{i=1}^8{w}_i} \). In (25.3), w i represents weights reflecting the relative importance of the corresponding term. DR denotes the deviation ratio of desired interval, from lower bound (lb) to upper bound (ub). For second-order system, the first peak time is the maximum peak time. But, for the general system, they are not the same.

The design of controller becomes in the minimization of the TDOF for all possible parameters. Moreover, some tolerances in the time-domain specifications are allowable as in (25.2).

25.3 The Controller

Two kinds of controllers are considered, there are PID and lead-lag (or lag-lead) controller. For PID control, one typically has

$$ {G}_c(s)={K}_{\kern-.2em p}+\frac{K_i}{s}+{K}_d\;s. $$
(25.4)

The transfer function of a lead-lag (or lag-lead) controller is written as:

$$ {G}_c(s)=K\left(\frac{T_1s+1}{\alpha {T}_1s+1}\right)\cdot \left(\frac{T_2s+1}{\beta {T}_2s+1}\right), $$
(25.5)

where \( K>0,\kern0.5em \alpha >1,\kern0.5em {T}_1>0,\kern0.5em \beta <1,{T}_2>0 \).

25.4 Cuckoo Search Algorithm

In this chapter, a new optimization algorithm, called the cuckoo search algorithm, is introduced for design controller [911]. The algorithm uses a combination of a local random walk and the global random walk, controlled by a parameter p a . This allows for proper balance between exploration and exploitation of the solution space. The local random walk can be written as

$$ {x}_i^{t+1}={x}_i^t+\alpha s\otimes H\left({p}_a-\varepsilon \right)\otimes \left({x}_j^t-{x}_k^t\right) $$
(25.6)

where x t i and x t k are two different solutions taken by random permutation. In (25.6), H(u) is a Heaviside function, ε is a random number got from a uniform distribution, and s is the step size. On the other hand, the global random walk is figured out using Lévy flights:

$$ {x}_i^{t+1}={x}_i^t+\alpha L\left(s,\lambda \right) $$
(25.7)

where

$$ L\left(s,\lambda \right)=\frac{\lambda \Gamma \left(\lambda \right) \sin \left(\pi \lambda /2\right)}{\pi}\cdot \frac{1}{s^{1+\lambda }},\kern1em s\ge {s}_0\ge 0 $$
(25.8)

Here, \( \alpha =0.01 \) is the step size scaling factor.

In the following design procedure, set maximum generation equals to 750, and \( {P}_a=0.25 \). Generate initial population of 15 host nests, which cause closed-loop stable (by using Routh-Hurwitz criterion).

25.5 Illustrative Examples

Example 1

A unity feedback system has the forward transfer function:

$$ {G}_{\kern-.15em p}(s)=\frac{150}{s^2+15s+50}. $$
(25.9)

as in Fig. 25.1. The closed-loop system is stable. The system type refers to the order of the pole of G p (s) at s = 0. Thus, the closed-loop system having the forward-path transfer function of (25.9) is type 0. The step response of the uncompensated system is shown in Fig. 25.3. Here, the peak time is 0.249 s, the percentage overshoot is 13.3 %, and the steady-state error E ss is equal to 0.273.

Fig. 25.1
figure 1

Unity feedback system without controller

As shown, the uncompensated system does not satisfy the design specifications in Table 25.1. Hence, the controller is used to improve the transient response as in Fig. 25.2. All the weight w i are set to 1. First, the PID controller will be designed for the system. When the design procedure is completed, the parameters are \( {K}_{\kern-.15em p}=5.3161 \), \( {K}_i=10.2197 \), and \( {K}_d=0.2299 \). Apart from delay time, most of the time-domain specifications are very close to demand. Next, the lead-lag controller will be designed. When completed, the parameters are K = 59.6384, α = 26.0208, T 1 = 0.2319, β = 0.1520, and T 2 = 0.0911. All the desired specifications are fulfilled. If the deviation ratio of delay time would be reduced, the weight of delay time will increase to 6, and keep the others the same value. After the adjustments of weights, and redesign the controller again. The parameters found are, \( {K}_{\kern-.15em p}=3.0046 \), \( {K}_i=7.3653 \), and \( {K}_d=0.1339 \). The deviation ratio of all specifications are listed in Table 25.2. Since the specifications of both led-lag controllers are full-filed, the adjustments produce influence of no importance as shown in Fig. 25.4.

Table 25.1 Example 1: Controller design with \( {w}_i=1 \), for \( i=1,2,\dots, 8 \)
Table 25.2 Example 1: Controller design with \( {w}_4=6 \), and \( {w}_i=1 \), for \( i\ne 4 \)
Fig. 25.2
figure 2

Unity feedback system with controller

Fig. 25.3
figure 3

Uncompensated system in Example 1

Fig. 25.4
figure 4

Compensated system in Example 1

Example 2

A unity feedback system has the following forward transfer function:

$$ {G}_{\kern-.15em p}(s)=\frac{700}{\left(s+2\right)\left(s+4\right)\left(s+6\right)}. $$

The closed-loop system is unstable. The step response of the uncompensated system is shown in Fig. 25.5. The design specifications are listed in Table 25.3. When the design procedure is finished, the PID parameters are \( {K}_{\kern-.15em p}=0.2431 \), \( {K}_i=0.3030 \), and \( {K}_d=0.2299 \). Furthermore, the lead-lag parameters are K = 7.1739, α = 67.1652, T 1 = 0.4054, β = 0.0010, and T 2 = 0.4112. The deviation ratio of delay time has been improved (Fig. 25.6).

Table 25.3 Example 2: Controller design with \( {w}_i=1 \), for \( i=1,2,\dots, 8 \)
Fig. 25.5
figure 5

Uncompensated system in Example 3

Fig. 25.6
figure 6

Compensated system in Example 3

The weight of delay time T d increase by a factor of 6, while keeping the others the same. Redesign the controller again; the PID parameters found are \( {K}_{\kern-2pt p}=0.2431 \), \( {K}_i=0.2840 \), and \( {K}_d=0.0523 \) (Table 25.4).

Table 25.4 Example 2: controller design with \( {w}_3=6 \), and \( {w}_i=1 \), for \( i\ne 3 \)

25.6 Conclusions

A large part of an industrial plant system may be represented by the linear time-invariant transfer function. A simple procedure is used to design the controller to meet or approach the specification with cuckoo search algorithm has been proposed in this chapter. The proposed time-domain objective function is expressed in terms of peak time, maximum overshoot, maximum undertow, and setting time of the unit-step response. Computer simulations support the usefulness of the method.