1 Introduction

In spite of the recent advances in control theory, PID controller is the most widespread form of feedback compensation. This is mainly due to its noticeable effectiveness and simple structure that is conceptually easy to understand. PID is a simple and useful controller, which gives a powerful solution to the control of a huge number of industrial plants. According to the literature, more than 95% of industrial controllers are PID controllers [1,2,3,4,5]. The key reason for this popularity is that a well-designed PID controller can meet most control requirements [6]. In fact, most of the industrial controllers are PI because the derivative action is very often not used. As a result, good PI tuning methods are extremely desirable due to their widespread use.

Since the 1940s, a large number of analytical and numerical methods, which are usually different in complexity and flexibility, have been proposed for tuning of PID controllers [7,8,9,10,11,12,13]. In addition, several well-known control books have chapters on tuning PID controllers [14,15,16,17].

Generally, an efficient design method should satisfy the design specifications and be able to deal with a wide range of plants. A satisfactory load disturbance response is often the first goal in control applications. This paper presents a PI tuning method resulting in a set of tuning formulae. To consider performance and robustness requirements, the design objective is the optimization of load disturbance rejection with a constraint either on the gain margin (GM) or the phase margin (PM). As the first order plus dead time (FOPDT) models can approximately model a huge number of industrial plants, the resulting tuning formulae are then applied to these plants to obtain a simple set of tuning formulae.

The paper is organised as follows. In Sect. 2, an analytical method to determine the optimal parameters of PI controllers in terms of minimizing an objective function and satisfying a GM or PM constraint is developed. The method is applied to FOPDT plants in Sect. 3. In Sect. 4, the simplified tuning formulae for FOPDT plants are presented, using dimensional analysis and curve-fitting techniques. In Sect. 5, the resulting tuning formulae are applied to a variety of control examples. Moreover, a comparison between the performance of the proposed tuning formulae and that of one of the most prevalent design methods is given for each example. Finally, the conclusions of the whole study are drawn.

2 Theory

The plant, \(G_p(s)\), is controlled by the PI controller in Eq. (1).

$$\begin{aligned} G_c (s)=K_c +\frac{K_i}{s}. \end{aligned}$$
(1)

where \(K_c\) and \(K_i\) are proportional and integral gains, respectively. The aim of control is to reject load disturbance signals, which are the most common and most important disturbances in control that drive systems away from their desired operating points [3]. The output signal of a closed-loop system in the presence of an input load disturbance signal is given by Eq. (2).

$$\begin{aligned} y=\frac{G_p G_c }{1+G_pG_c }r+\frac{G_p }{1+G_p G_c}d. \end{aligned}$$
(2)

where r, d and y refer to the reference, load disturbance and output signals, respectively. Step disturbances are applied at the input to the plant. A commonly chosen performance metric is the integral of absolute error (IAE). A significant drawback of this criterion is that it is not suitable for analytical approaches, as the evaluation requires computation of time functions [3]. However, the IAE is equivalent to the integral of error (IE) if the error signal is positive. Moreover, the IE may be a good approximation for the IAE for well-damped closed-loop systems. The reason for using IE is that it is appropriate for analytical approaches as its value is directly related to the integral gain, as shown in Eq. (3) [3].

$$\begin{aligned} \textit{IE}=\frac{1}{K_i}. \end{aligned}$$
(3)

In addition, robustness is a key issue in control systems. It is well known that GM and PM are used as measures of robustness. In order to ensure the robustness of the closed-loop system, the optimization problem is constrained so that a desired GM or a required PM is guaranteed. Moreover, the PM acts as a measure of performance as it is related to the damping of the system [18]. Therefore, the design objective is to maximize \(K_i\) subject to satisfying the robustness constraint.

2.1 Tuning formulae for a constraint on GM

Assume that the model of the plant is given by Eq. (4).

$$\begin{aligned} G_p (j\omega )=\alpha (\omega )+j\beta (\omega ). \end{aligned}$$
(4)

where \(\alpha (\omega )\) and \(\beta (\omega )\) are real and imaginary parts of the plant. The loop transfer function is then written as shown in Eq. (5).

$$\begin{aligned} L(j\omega )=(\alpha (\omega )+j\beta (\omega ))\left( K_c -j\frac{K_i }{\omega }\right) . \end{aligned}$$
(5)

In order to determine the controller parameters that obtain a desired GM, Eqs. (6) and (7) should be solved.

$$\begin{aligned} \hbox {Im}[L(j\omega )]= & {} 0. \end{aligned}$$
(6)
$$\begin{aligned} \hbox {Re}[L(j\omega )]= & {} \frac{-1}{A_m }. \end{aligned}$$
(7)

where \(A_m\) is the value of the desired GM. Inserting Eq. (5) in Eqs. (6) and (7) results in the controller parameters given by Eqs. (8) and (9).

$$\begin{aligned} K_c= & {} \frac{-\alpha (\omega )}{A_m (\alpha ^{2}(\omega )+\beta ^{2}(\omega ))}.\end{aligned}$$
(8)
$$\begin{aligned} K_i= & {} \frac{-\omega \beta (\omega )}{A_m(\alpha ^{2}(\omega )+\beta ^{2}(\omega ))}. \end{aligned}$$
(9)

The necessary and sufficient conditions for maximizing \(K_i \) and satisfying the GM constraint are given by Eqs. (10) and (11), respectively.

$$\begin{aligned} \frac{dK_i}{d\omega }= & {} 0. \end{aligned}$$
(10)
$$\begin{aligned} \frac{d^{2}K_i}{d\omega ^{2}}< & {} 0. \end{aligned}$$
(11)

Equation (9) can be written as shown in Eq. (12).

$$\begin{aligned} K_i =\omega f(\omega ). \end{aligned}$$
(12)

where \( f(\omega )\) is given by Eq. (13).

$$\begin{aligned} f(\omega )=\frac{-\beta (\omega )}{A_m (\alpha ^{2}(\omega )+\beta ^{2}(\omega ))}. \end{aligned}$$
(13)

Inserting Eq. (12) into Eq. (10) gives the necessary condition shown in Eq. (14).

$$\begin{aligned} \frac{dK_i}{d\omega }=f(\omega )+\omega {f}'(\omega )=0. \end{aligned}$$
(14)

where \( {f}'(\omega )\) is the derivative of \( f(\omega )\) with respect to \(\omega \). \(\omega \) can be determined by inserting \(f(\omega )\) from Eq. (13) and \({f}'(\omega )\) into Eq. (14), resulting in Eq. (15).

$$\begin{aligned} \omega =\frac{1}{2\frac{\alpha (\omega ){\alpha }'(\omega )+\beta (\omega ){\beta }'(\omega )}{\alpha ^{2}(\omega )+\beta ^{2}(\omega )}-\frac{{\beta }'(\omega )}{\beta (\omega )}}. \end{aligned}$$
(15)

where \({\alpha }'(\omega )\) and \({\beta }'(\omega )\) are the derivatives of \(\alpha (\omega )\) and \(\beta (\omega )\) with respect to \(\omega \), respectively. Inserting Eq. (14) into Eq. (11), the sufficient condition is obtained as shown in Eq. (16).

$$\begin{aligned} \frac{d^{2}K_i}{d\omega ^{2}}=-2f(\omega )+\omega ^{2}{f}^{''}(\omega )<0. \end{aligned}$$
(16)

The maximizing \(\omega \) is given by Eq. (15) subject to satisfying Eq. (16). The optimal controller parameters are given by inserting the maximizing \(\omega \) into Eqs. (8) and (9). This analytical tuning method is referred to as specified gain margin (SGM) because the closed-loop system satisfies a desired GM. An iterative technique, such as the Newton–Raphson method, is required to solve Eq. (15).

2.2 Tuning formulae for a constraint on PM

Assuming the loop transfer function in Eq. (5), Eqs. (17) and (18) should be solved to determine the controller parameters that obtain a desired PM.

$$\begin{aligned}&\left| {L(j\omega )} \right| =1.\end{aligned}$$
(17)
$$\begin{aligned}&\pi +\angle L(j\omega )=\phi _m. \end{aligned}$$
(18)

where \(\phi _m\) is the value of the desired PM. Inserting Eq. (5) into Eqs. (17) and (18) results in Eqs. (19) and (20).

$$\begin{aligned}&K_c^2 +\frac{K_i^2 }{\omega ^{2}}=\frac{1}{\alpha ^{2}(\omega )+\beta ^{2}(\omega )}. \end{aligned}$$
(19)
$$\begin{aligned}&\pi +\tan ^{-1}\left( \frac{\beta (\omega )}{\alpha (\omega )}\right) -\tan ^{-1}\left( \frac{K_i }{\omega K_c }\right) =\phi _m. \end{aligned}$$
(20)

Equation (20) can be written as shown in Eq. (21).

$$\begin{aligned} \omega T_i =\frac{\alpha (\omega )\cos (\phi _m )+\beta (\omega )\sin (\phi _m )}{-\alpha (\omega )\sin (\phi _m )+\beta (\omega )\cos (\phi _m )}. \end{aligned}$$
(21)

where \(T_i \) is given by Eq. (22).

$$\begin{aligned} T_i=\frac{K_c}{K_i}. \end{aligned}$$
(22)

Considering Eqs. (19), (21) and (22), PI parameters can be written as shown in Eqs. (23) and (24).

$$\begin{aligned} K_c= & {} -\frac{\alpha (\omega )\cos (\phi _m )+\beta (\omega )\sin (\phi _m)}{\alpha ^{2}(\omega )+\beta ^{2}(\omega )}. \end{aligned}$$
(23)
$$\begin{aligned} K_i= & {} \omega \frac{\alpha (\omega )\sin (\phi _m )-\beta (\omega )\cos (\phi _m )}{\alpha ^{2}(\omega )+\beta ^{2}(\omega )}. \end{aligned}$$
(24)

Writing Eq. (24) in the form of Eq. (12) with \(f(\omega )\) shown in Eq. (25)

$$\begin{aligned} f(\omega )=\frac{\alpha (\omega )\sin (\phi _m )-\beta (\omega )\cos (\phi _m )}{\alpha ^{2}(\omega )+\beta ^{2}(\omega )}. \end{aligned}$$
(25)

and applying the necessary condition for maximizing \(K_i\), represented in Eq. (14), to Eq. (25) results in Eq. (26).

$$\begin{aligned} \omega =\frac{1}{2\frac{\alpha (\omega ){\alpha }'(\omega )+\beta (\omega ){\beta }'(\omega )}{\alpha ^{2}(\omega )+\beta ^{2}(\omega )}-\frac{{\alpha }'(\omega )\sin (\phi _m )-{\beta }'(\omega )\cos (\phi _m )}{\alpha (\omega )\sin (\phi _m )-\beta (\omega )\cos (\phi _m )}}. \end{aligned}$$
(26)

whereas the sufficient condition is again given by Eq. (16). If the maximizing \(\omega \) given by Eq. (26) satisfies Eq. (16), the optimal PI parameters are given by Eqs. (23) and (24). This tuning method is referred to as specified phase margin (SPM).

3 Tuning formulae for FOPDT plants

In this section, the SGM and SPM methods are applied to an important category of industrial plants and simplified versions of Eqs. (8), (9), (15), (23), (24) and (26) are presented.

3.1 SGM tuning formulae for FOPDT plants

A huge number of industrial plants can be modelled by a FOPDT model, shown in Eq. (27).

$$\begin{aligned} G_p (s)=\frac{K_p e^{-\tau _d s}}{Ts+1}. \end{aligned}$$
(27)

To design PI controllers for this class of plants, the SGM design method is applied to the FOPDT models. The real and imaginary parts of the plant are given by Eqs. (28) and (29).

$$\begin{aligned}&\alpha (\omega )=\frac{K_p }{1+\omega ^{2}T^{2}}(\cos (\omega \tau _d)-\omega T\sin (\omega \tau _d )). \end{aligned}$$
(28)
$$\begin{aligned}&\beta (\omega )=\frac{-K_p }{1+\omega ^{2}T^{2}}(\sin (\omega \tau _d)+\omega T\cos (\omega \tau _d )). \end{aligned}$$
(29)

Inserting Eqs. (28) and (29) into Eqs. (8), (9) and (13) results in Eqs. (30)–(32).

$$\begin{aligned}&K_c =\frac{-\cos (\omega \tau _d )+\omega T\sin (\omega \tau _d )}{A_m K_p }. \end{aligned}$$
(30)
$$\begin{aligned}&K_i =\frac{\omega (\sin (\omega \tau _d )+\omega T\cos (\omega \tau _d ))}{A_m K_p}. \end{aligned}$$
(31)
$$\begin{aligned}&f(\omega )=\frac{\sin (\omega \tau _d )+\omega T\cos (\omega \tau _d)}{A_m K_p}. \end{aligned}$$
(32)

Maximizing \(\omega \) shown in Eq. (33) is given by inserting \( f(\omega )\) from Eq. (32) and \( {f}'(\omega )\) into Eq. (14).

$$\begin{aligned} \omega =\frac{\sin (\omega \tau _d )+\omega T\cos (\omega \tau _d )}{-(T+\tau _d )\cos (\omega \tau _d )+\omega T\tau _d \sin (\omega \tau _d )}. \end{aligned}$$
(33)

The sufficient condition for maximizing \(K_i\), shown in Eq. (34), is determined by inserting \(f(\omega )\) and \({f}''(\omega )\) into Eq. (16).

$$\begin{aligned} A\sin (\omega \tau _d)+B\cos (\omega \tau _d )>0. \end{aligned}$$
(34)

where A and B are given by Eqs. (35) and (36).

$$\begin{aligned} A= & {} 2+\omega ^{2}\tau _d (2T+\tau _d). \end{aligned}$$
(35)
$$\begin{aligned} B= & {} \omega T(2+\omega ^{2}\tau _d^2). \end{aligned}$$
(36)

Finding \(\cos (\omega \tau _d)\) from Eq. (33) and substituting it into Eq. (34), the sufficient condition is given by Eq. (37).

$$\begin{aligned} C\sin (\omega \tau _d)>0. \end{aligned}$$
(37)

where C is given by Eq. (38).

$$\begin{aligned} C = (2+\omega ^{2}\tau _d^2)\frac{\tau _d (1+\omega ^{2}T^{2})+T}{2T+\tau _d }+2\omega ^{2}T\tau _d. \end{aligned}$$
(38)

Obviously \(C>0\) and it can easily be investigated that \(\omega \tau _d <\pi \) holds for the SGM method. As a result, the sufficient condition is always satisfied.

3.2 SPM tuning formulae for FOPDT plants

Substituting Eqs. (28) and (29) into Eqs. (23), (24) and (25) results in Eqs. (39)–(41).

$$\begin{aligned}&K_c =\frac{-\cos (\omega \tau _d +\phi _m )+\omega T\sin (\omega \tau _d +\phi _m)}{K_p}.\end{aligned}$$
(39)
$$\begin{aligned}&K_i =\frac{\omega (\sin (\omega \tau _d +\phi _m )+\omega T\cos (\omega \tau _d +\phi _m ))}{K_p }. \end{aligned}$$
(40)
$$\begin{aligned}&f(\omega )=\frac{\sin (\omega \tau _d +\phi _m )+\omega T\cos (\omega \tau _d+\phi _m )}{K_p}. \end{aligned}$$
(41)

Maximizing \(\omega \) shown in Eq. (42) is given by inserting \( f(\omega )\) from Eq. (41) and \( {f}'(\omega )\) into Eq. (14).

$$\begin{aligned} \omega =\frac{\sin (\omega \tau _d +\phi _m )+\omega T\cos (\omega \tau _d +\phi _m )}{-(T+\tau _d )\cos (\omega \tau _d +\phi _m)+\omega T\tau _d \sin (\omega \tau _d +\phi _m)}. \end{aligned}$$
(42)

Inserting \(f(\omega )\) and \( {f}''(\omega )\) into Eq. (16), results in the sufficient condition shown in Eq. (43).

$$\begin{aligned} C\sin (\omega \tau _d +\phi _m)>0. \end{aligned}$$
(43)

\(\omega \tau _d +\phi _m<\pi \) holds for the SPM method, therefore, the sufficient condition is always satisfied.

4 Simplified tuning formulae for FOPDT models

Although simpler versions of Eqs. (15) and (26) for FOPDT plants are presented in Eqs. (33) and (42), an iterative method is still required to solve these nonlinear equations. Using dimensional analysis and curve-fitting methods, simple PI tuning formulae are presented in this section.

The PI controller in Eq. (1) can be written as shown in Eq. (44).

$$\begin{aligned} G_c (s)=K_c \left( 1+\frac{1}{T_i s}\right) . \end{aligned}$$
(44)

To obtain the optimal PI tuning formulae for a FOPDT model given in Eq. (27), the PI parameters can be defined based on the model parameters, as shown in Eqs. (45) and (46).

$$\begin{aligned}&K_c =f_1 (K_p,\tau _d , T). \end{aligned}$$
(45)
$$\begin{aligned}&T_i =f_2 (K_p,\tau _d , T). \end{aligned}$$
(46)

Functions \(f_1 \) and \(f_2 \) should be determined to optimize the objective function and satisfy the GM or PM constraint. Obviously, it is a challenging task to obtain these functions as each controller parameter is a function of three model parameters. To cope with this issue, we use dimensional analysis to simplify the procedure for determining \(f_1\) and \(f_2\) [19].

To simplify a problem through reducing the number of its variables to the smallest number of essential variables, dimensional analysis can be employed [20]. Without any change in a given physical system behaviour, relations between variables in the system are defined as relations between dimensionless numbers, using dimensional analysis. A dimensionless number has no physical unit and is formed as a product or ratio of quantities that have units.

Consider a system expressed by Eq. (47)

$$\begin{aligned} x_1 =f(x_2 ,x_3,\ldots , x_n ). \end{aligned}$$
(47)

with non-zero \(x_1 , x_2 ,\ldots , x_n \). According to Buckingham’s pi-theorem [20], this equation can be substituted with Eq. (48)

$$\begin{aligned} \pi _1 =g(\pi _2 ,\pi _3 ,\ldots , \pi _{n-m} ). \end{aligned}$$
(48)

where \(\pi _2 ,\ldots , \pi _{n-m} \) are independent dimensionless numbers and m is the minimum number of \( x_2 ,x_3 ,\ldots , x_n \), which includes all the units in \(x_1 , x_2,\ldots , x_n \)

For the model given by Eq. (27), the unit of the dead time (\(\tau _d )\) and the time constant (T) is the second. The unit of the plant gain (\(K_p )\) depends on the nature of the system. As the plant gain along with either the dead time or the time constant cover all the units in Eqs. (45) and (46), m is equal to 2. Hence, \(\frac{\tau _d}{T}\), named dimensionless dead time, is the only dimensionless number in the model. In the PI controller shown in Eq. (44), the unit of integral time \((T_i)\) is the second. The unit of controller gain is the inverse of the unit of plant gain. Therefore, the remaining dimensionless numbers are dimensionless gain \((K_p K_c )\) and dimensionless integral time (\(\frac{T_i }{\tau _d }\) or \(\frac{T_i }{T})\). According to Buckingham’s pi-theorem, these dimensionless numbers are functions of the dimensionless dead time, as shown in Eqs. (49) and (50) [19].

$$\begin{aligned}&K_p K_c =g_1 \left( \frac{\tau _d }{T}\right) . \end{aligned}$$
(49)
$$\begin{aligned}&\frac{T_i }{\tau _d }=g_2 \left( \frac{\tau _d }{T}\right) . \end{aligned}$$
(50)

4.1 Simplified SGM tuning formulae for FOPDT models

Having a constraint on GM, the following procedure is proposed for generating formulae for PI controller tuning.

Step 1. A range of values of \(\frac{\tau _d }{T}\) is selected.

Step 2. Using Eq. (33), \(\omega \) is determined for each selected value of \(\frac{\tau _d }{T}\).

Step 3. For each value of \(\frac{\tau _d }{T}\), the optimal values of \(K_c\) and \(T_i\) are obtained by inserting the resulting \(\omega \) from step 2 into Eqs. (30), (31) and (22).

Step 4. The optimal values of \(K_p K_c A_m \) and \(\frac{T_i }{\tau _d}\) versus \(\frac{\tau _d}{T}\) are drawn.

Step 5. Functions \(g_1 \) and \(g_2 \) in Eqs. (49) and (50) are determined by using curve-fitting methods.

Assuming the values of \(\frac{\tau _d}{T}\) range from 0.1 to 2, Figs. 1 and 2 show the optimal values of \(K_p K_c A_m\) and \(\frac{T_i}{\tau _d}\) across the selected values of \(\frac{\tau _d}{T}\), respectively. It can be seen from Fig. 1 that \(K_p K_c A_m \) is a function of \(\frac{\tau _d }{T}\), as shown in Eq. (51).

$$\begin{aligned} K_p K_c A_m =A_1 +\frac{B_1 }{\frac{\tau _d }{T}}. \end{aligned}$$
(51)

Similarly, the values of \(\frac{T_i }{\tau _d }\) are determined from the values of \(\frac{\tau _d }{T}\), using Eq. (52).

$$\begin{aligned} \frac{T_i }{\tau _d }=\frac{A_2 }{\frac{\tau _d }{T}+B_2 }. \end{aligned}$$
(52)

Using the least-squares minimization approach, \(A_1\), \(B_1\), \(A_2\) and \(B_2 \) are determined for the best match with Figs. 1 and 2. As a result, the optimal values of \(A_1 \), \(B_1 \), \(A_2 \) and \(B_2 \) are 0.4331, 1.1191, 1.8095 and 0.8344, respectively.

Fig. 1
figure 1

Optimal values of \(K_p K_c A_m\) and the values of \(K_p K_c A_m \) given by Eq. (51) versus \(\frac{\tau _d }{T}\)

Fig. 2
figure 2

Optimal values of \(\frac{T_i }{\tau _d }\) and the values of \(\frac{T_i}{\tau _d}\) given by Eq. (52) versus \(\frac{\tau _d }{T}\)

After simplification, the PI parameters can explicitly be determined using Eqs. (53) and (54).

$$\begin{aligned}&K_p K_c = \frac{1}{A_m }\left( \frac{10T}{9\tau _d }+\frac{3}{7}\right) . \end{aligned}$$
(53)
$$\begin{aligned}&\frac{T_i}{\tau _d}=\frac{\frac{9}{5}}{\frac{\tau _d}{T}+\frac{5}{6}}. \end{aligned}$$
(54)

4.2 Simplified SPM tuning formulae for FOPDT models

Having a constraint on PM, the procedure mentioned in Sect. 4.1 is used when Eq. (33) in step 2 and Eqs. (30) and (31) in step (3) are substituted by Eqs. (42), (39) and (40), respectively. Also, \(K_p K_c A_m\) in step 4 should be replaced by \(K_p K_c \). Having obtained the optimal values of \(K_p K_c \) and \(\frac{T_i }{\tau _d }\) for each value of \(\frac{\tau _d }{T}\), the dimensionless gain and dimensionless integral time are given by Eqs. (55) and (56), using cure-fitting techniques.

$$\begin{aligned} K_pK_c= & {} A_1 (\phi _m )+\frac{B_1 (\phi _m )}{\frac{\tau _d }{T}}, \nonumber \\ \frac{\pi }{6}\le & {} \phi _m \le \frac{\pi }{3}. \end{aligned}$$
(55)
$$\begin{aligned} \frac{T_i }{\tau _d }= & {} \frac{A_2 (\phi _m )\frac{\tau _{d}}{T}+B_2 (\phi _m )}{\frac{\tau _d }{T}+C_2 (\phi _m )}, \nonumber \\ \frac{\pi }{6}\le & {} \phi _m \le \frac{\pi }{3}. \end{aligned}$$
(56)

where

$$\begin{aligned} A_1 (\phi _m )= & {} \frac{2}{5}\phi _m +\frac{1}{7}. \end{aligned}$$
(57)
$$\begin{aligned} B_1 (\phi _m )= & {} -\frac{4}{7}\phi _m +\frac{22}{23}. \end{aligned}$$
(58)
$$\begin{aligned} A_2 (\phi _m )= & {} \frac{5}{6}\phi _m^2 -\frac{8}{11}\phi _m +\frac{3}{7}. \end{aligned}$$
(59)
$$\begin{aligned} B_2 (\phi _m )= & {} -\frac{2}{7}\phi _m^2 +\frac{8}{11}\phi _m +\frac{3}{5}. \end{aligned}$$
(60)
$$\begin{aligned} C_2 (\phi _m )= & {} -\frac{3}{10}\phi _m +\frac{4}{11}. \end{aligned}$$
(61)

Figures 3 and 4 show values of \(K_p K_c \) and \(\frac{T_i }{\tau _d}\) across \(\frac{\tau _d}{T}\).

Fig. 3
figure 3

Values of \(K_p K_c\) given by Eq. (55) versus \(\frac{\tau _d}{T}\)

Fig. 4
figure 4

Values of \(\frac{T_i }{\tau _d}\) given by Eq. (56) versus \(\frac{\tau _d}{T}\)

5 Simulation results

Tuning is a trade-off between conflicting design objectives. Both robustness and setpoint regulation are design objectives in conflict with load disturbance rejection [8]. In this section, the SGM and SPM controllers are compared with the Astrom–Panagopoulos–Hagglund (APH) controller [7]. Like the proposed method, the APH technique aims at optimal load disturbance rejection. Similarly, this is done by minimizing the IE criterion. Robustness is guaranteed by requiring that the maximum sensitivity is less than a specified value.

Example 1

$$\begin{aligned} G_1 (s)=\frac{1}{(s+1)^{3}}. \end{aligned}$$

Inserting \(s=j\omega \) into \(G_1(s)\) results in

$$\begin{aligned} G_1(j\omega )=\alpha (\omega )+j\beta (\omega ) \end{aligned}$$

where

$$\begin{aligned} \alpha (\omega )= & {} \frac{1-3\omega ^{2}}{(1+\omega ^{2})^{3}} \\ \beta (\omega )= & {} \frac{\omega (\omega ^{2}-3)}{(1+\omega ^{2})^{3}} \end{aligned}$$

For a constraint on GM, optimal PI parameters are determined by solving Eq. (15) and inserting the resulting \(\omega \) into Eqs. (8), (9) and (22). Solving Eq. (15) by a trial and error method results in \(\omega =1.225 \frac{r}{s}\). Applying Eq. (62)

$$\begin{aligned} {f}''(\omega )=\mathop {\lim }\limits _{\Delta \rightarrow 0} \frac{f(\omega +2\Delta )-2f(\omega +\Delta )+f(\omega )}{\Delta ^{2}}. \end{aligned}$$
(62)

to \(f(\omega )\) in Eq. (13), Eq. (16) gives \(\frac{d^{2}K_i }{d\omega ^{2}}=-14.71\). Hence, the sufficient condition is satisfied. PI parameters are given by \(K_c =\frac{3.5}{A_m }\) and \(T_i =\frac{14}{9}\). Closed-loop step responses for different values of GM are shown in Fig. 5. The comparison results are shown in Table 1.

Fig. 5
figure 5

Closed-loop step responses for different values of GM

Table 1 Comparison results of the SGM controllers to control \(G_1 (s)\)

An interesting property of the SGM tuning formulae is that the value of GM can be indicated as a parameter to compromise between performance and robustness. Figure 5 clearly shows that a higher value of GM results in an inferior load disturbance rejection but a better setpoint regulation. It should be noted that higher values of \(\frac{IE}{IAE}\) are associated with less oscillatory systems.

For a constraint on PM, optimal PI parameters are determined by solving Eq. (26) and inserting the resulting \(\omega \) into Eqs. (23), (24) and (22). Considering \(f(\omega )\) in Eq. (25) and for \(PM=40^{^{\circ }}\), the SPM method results in \(\omega =0.697\), \(K_c =1.476\) and \(T_i =2.02\). The sufficient condition in Eq. (16) is also satisfied as \(\frac{d^{2}K_i }{d\omega ^{2}}=-5.527\). Table 2 summarizes the comparison results for different values of PM.

Table 2 Comparison results of the SPM controllers to control \(G_1 (s)\)

It can be seen from Table 2 that the sufficient condition is satisfied for the selected values of PM. Closed-loop step responses for different values of PM are shown in Fig. 6. Clearly, a better setpoint regulation but an inferior load disturbance rejection is provided by a higher value of PM.

Fig. 6
figure 6

Closed-loop step responses for different values of PM

To compare the performance of the SGM, SPM and APH methods, closed-loop step responses are drawn in Fig. 7. A slightly better setpoint regulation is given by the SPM due to a higher value of PM. The setpoint response given by the APH controller is improved using a two-degree of freedom structure. Table 3 shows the comparison results.

Fig. 7
figure 7

Closed-loop step responses resulting from the SGM, SPM and APH design methods

Table 3 Comparison results of the SGM, SPM and APH methods to control \(G_1(s)\)

An advantage of the SGM and SPM methods is that as soon as \(\omega \) is determined and subject to satisfying the sufficient condition, the controller parameters are directly given. However, the APH controller parameters cannot be resulted from an explicit set of tuning formulae. They should be computed using a procedure, which may lead to complicated situations [7].

Example 2

In this example, the SGM method is applied to a non-minimum phase plant, a pure time delay unit, a long dead time plant and a plant with complex poles.

$$\begin{aligned} G_2 (s)= & {} \frac{1-2s}{(s+1)^{3}}. \quad G_3 (s)=e^{-s}.\\ G_4 (s)= & {} \frac{e^{-15s}}{(s+1)^{3}}. \quad G_5 (s)=\frac{9}{(s+1)(s^{2}+as+9)}. \end{aligned}$$

\(G_2 (s)\) and \(G_5 (s)\) are not common in control, however, they are included to demonstrate the wide applicability of the proposed tuning method. Closed-loop step responses for different values of GM are shown in Fig. 8. The comparison results are shown in Table 4. Figure 9 shows the fairly similar closed-loop step responses provided by the SGM and APH methods.

Fig. 8
figure 8

Closed-loop step responses for different values of GM

Fig. 9
figure 9

Closed-loop step responses resulting from the SGM and APH methods

Table 4 Comparison results of the SGM controllers

Results of comparison of the SGM and APH methods are summarized in Table 5. Results of applying the SPM method to \(G_2 (s)\), \(G_3 (s)\) and \(G_4 (s)\) are shown in Table 6. Comparing to each SGM controller, the corresponding SPM controller has a too high gain, resulting in a low gain margin and a high maximum sensitivity.

Table 5 Comparison results of the SGM and APH controllers
Table 6 Comparison results of the SPM controllers

Example 3

In this example, the SPM method is applied to the following integrating plants.

$$\begin{aligned} G_6 (s)=\frac{1}{s(s+1)^{2}}. \quad G_7 (s)=\frac{e^{-s}}{s}. \end{aligned}$$

Closed-loop step responses for different values of PM are shown in Fig. 10. The comparison results are shown in Table 6. Figure 11 shows the closed-loop step responses resulting from the SPM and APH methods. As shown in Fig. 11, the setpoint response of the SPM controller can easily be improved using the setpoint weight. For these methods, the comparison results are summarized in Table 7.

Fig. 10
figure 10

Closed-loop step responses for different values of PM

Fig. 11
figure 11

Closed-loop step responses resulting from the SPM and APH methods

Table 7 Comparison results of the SPM and APH controllers

The SPM controller for a FOPDT plant is given by solving Eq. (42) and inserting the resulting \(\omega \) into Eqs. (39), (40) and (22). A plant with dead time and a single pole at origin is a special case of a FOPDT plant when the time constant becomes infinite. Such a plant can be described by Eq. (63).

$$\begin{aligned} G_{\mathrm{int}} (s) = \mathop {\lim }\limits _{T\rightarrow \infty } \frac{K_p e^{-\tau _d s}}{Ts+1}=\frac{K_p^{\prime } e^{-\tau _d s}}{s}. \end{aligned}$$
(63)

where \(K_p^{\prime }\) is given by Eq. (64).

$$\begin{aligned} K_p^{\prime }=\frac{K_p}{T}. \end{aligned}$$
(64)

For the plant in Eq. (63), Eq. (42) is simplified to Eq. (65).

$$\begin{aligned} \omega =\frac{2}{\tau _d}\cot (\omega \tau _d +\phi _m ). \end{aligned}$$
(65)

Controller parameters are given by inserting the resulting \(\omega \) into Eqs. (66) and (67).

$$\begin{aligned} K_c= & {} \frac{\omega \sin (\omega \tau _d +\phi _m )}{K_p^{\prime }}. \end{aligned}$$
(66)
$$\begin{aligned} T_i= & {} \frac{\tan (\omega \tau _d +\phi _m )}{\omega }. \end{aligned}$$
(67)

Using Eqs. (65)–(67), results shown in Table 6 for \(G_7 (s)\) are obtained in a simpler manner.

Results of applying the SGM method to \(G_6 (s)\) and \(G_7 (s)\) are shown in Table 4. Comparing to the corresponding SPM controller, the SGM controller does not have a large enough integral time, resulting in a low phase margin and a high maximum sensitivity.

6 Conclusions

To consider both performance and robustness requirements, this paper presented a PI tuning method for the optimization of load disturbance rejection with a constraint either on the GM or on the PM. The design method resulted in the SGM and SPM tuning formulae that could be adapted for the type of system required. Using dimensional analysis and curve-fitting techniques, a simplified form of tuning formulae for FOPDT models was also determined. Simulation results for a variety of examples including integrating, non-minimum phase and long dead time plants showed that the proposed tuning method was effective in dealing with a wide range of plants.

For industrial applications, it is often required that GM and PM specifications fall into desirable ranges. Future research will attempt to minimize the IE criterion subject to simultaneously satisfying predefined constraints on gain and phase margins.