1 Introduction

Dead time is present in most processes of everyday life, being found in economic, biological, and industrial systems. It can be caused by several sources, for example one can quote sensor processing time, transport of mass, energy, among others. As stated by Saini and Sharma [20], most industrial processes with dead time can be approximated by a first-order plus dead-time processes (FOPDT). A limitation of this type of process is that the dead time decreases the stability margins of the system, making the task of developing a controller design more difficult. Likewise, tuning techniques for proportional, integral and derivative (PID) controllers, of FOPDT systems has been an attractive topic for research.

In the process control field, in most applications PID controllers are used. The controllers of this type are applied due to their simplicity and good performance, as written by Shahri et al. [23] and Padhee et al. [18]. Working with integer exponents tends to be simpler and more understandable for a large number of operators and engineers.

Despite this, the concept of fractional calculus has been changing this perception. One of its applications is performed in control theory because, since the modeling is based on differential equations, it takes only a small step to use the notion of fractional differential equations.

Fractional control was first proposed by Podlubny et al. [19]. As the fractional controllers have two parameters (\(\alpha\) and \(\beta\) ) more than the common PIDs to be tuned, they allow performances that cannot be achieved with conventional PID controllers and therefore better results can be obtained, as affirmed by Lachhab et al. [12]. For this reason, there is a growing interest in the understanding of fractional control and in the methodology of tuning the gains and non-integer orders of these controllers.

Recent works on the field exemplify how this theory improves the effectiveness of control systems. Al-Saggaf et al. [1] used a fractional control to minimize the vibration of a rotary flexible joint system. By means of a comparison with an integer order state feedback control, it was concluded that the fractional controller presented better performance in relation of the parameters of interest. In order to asymptotically stabilize a damping system of a semi-active vehicle, Nguyen et al. [17] made use of a fractional-order derivative-based sliding mode controller (FD-SMC). Numerical simulations of the system were used to prove that the control system produced the expected result. To design an optimal controller for an air conditioning system, Nasirpour and Balochian [15] presented a new methodology that uses Particle Swarm Optimization (PSO) to search for the optimal parameters for a fractional-order PID (FOPID) controller. The parameters were tuned based on the minimization of a nonlinear objective function, which considered overshoot, ITSE, raising time, and settling time. The PSO-FOPID controller performed well with respect to the reference input.

For the control of the temperature on a surface of a thin plate, Jarrah [10] used the fractional control approach. The comparison of the proposed fractional controlling system with integer-order presented a better performance, mainly on the overshoot answer of the system. Several other authors have been using fractional calculus theory to improve systems control , such as Chekari et al. [6], Treesatayapun and Muñoz-Vázquez [25], Jahanshahi et al. [9], Birs et al. [4] and Homaeinezhad and Shahhosseini [8], and good results have been achieved. Several sources are available and summarized in Machado et al. [13], which is a report of works using fractional calculus theory from 1974 to 2010, and more recently by Kochubei [11] and Baleanu and Lopes [3], covering more recent works.

Thus the main objective of this work is to perform a comparison of some of the different tuning methods of fractional order controllers for first-order plus dead-time systems (FOPDT). In addition, the objective is to identify the best of these methods according to pre-established evaluation criteria, moreover, contribute to making the use of fractional PID controllers more accessible and understandable.

2 First-order plus dead-time systems (FOPDT)

A first-order system is a system that contains only one pole and no zeros. The modeling of these systems can be simple and capable of representing a large part of the control systems plants. For this reason, it is commonly used to approach systems with higher orders.

To approximate an unknown order system in open-loop as a FOPDT, its response to the unit step function must present the so-called “S-shaped response”. With that, the main parameters of the plant are graphically identified. These systems are represented by the transfer function given by Equation 1, as in Ziegler et al. [28].

$$\begin{aligned} \begin{array}{l} \frac{C_{s}}{R_{s}} = \frac{K e^{-Ls}}{Ts + 1}, \end{array} \end{aligned}$$
(1)

in which ‘K’ is the gain, ‘T’ is the time constant and ‘L’ is the delay time (dead time) of the system.

3 Fractional control

The traditional PID controllers are generalized by PI\(^\alpha\)D\(^\beta\) type fractional order controllers, in which the exponents \(\alpha\) and \(\beta\) represent the fractional portion of Differintegral as a function of time. These controllers were presented for the first time in the late 1990s by Podlubny et al. [19], evidencing that studies on this type of control are very recent. According to Lachhab et al. [12], when well-tuned, these controllers perform better than controllers with integer orders. Shah and Agashe [22] present the advantages of fractional control:

  • Ability to achieve five different specifications, while classic PID reaches only three;

  • The ease of achieving robustness to variations;

  • The ease of continuous damping;

  • Increased ability to tune to large orders or with large delays;

  • Possibility of better responses for systems without phase minimum.

  • Ease of dealing with nonlinearities with only one controller, without the need to break the system at different points of operation.

  • Good results for nonlinearities.

The typical formulation of this controller in the time domain is given by Eq. 2 and in the frequency domain by Eq. 3, as in Valério and Da Costa [26].

$$\begin{aligned}&\begin{array}{l} u \left( t \right) =Pe \left( t \right) +I_{0}^{}D_{t}^{- \alpha }e \left( t \right) +D_{0}^{}D_{t}^{ \beta }e \left( t \right) , \end{array} \end{aligned}$$
(2)
$$\begin{aligned}&\begin{array}{l} G_{c} \left( s \right) =P+\frac{I}{s^{ \alpha }}+Ds^{ \beta }, \end{array} \end{aligned}$$
(3)

4 Tuning methods

The methods of tuning the parameters of the controller are divided into two parts: analytical and heuristic, as presented by Shahri et al. [23].

As the name implies, the analytic method is based on the analysis of characteristics and specifications of the system, which can be measured and placed in mathematical formulas, in order to find the parameters that will lead to the desired response. The heuristic method is based on the use of optimization algorithms, such as the genetic algorithm (GA), the electromagnetic (EM) algorithm, the differential evolution (DE), among others. These algorithms make several iterations to achieve the best result of a certain function using concepts of trial and error, or evolutionary concepts, in which the best result of one ”generation” continues in the next ”generation”.

According to Monje et al. [14], Valério and Da Costa [27] and Lachhab et al. [12], the analytical tuning methods for fractional controllers are based on the specifications given to the system. These specifications include:

  • Minimum \(\alpha\) value to reset the error in steady state;

  • Phase margin ( \(\phi _{m}\) ) and gain cut-off frequency \(\left( j \omega _{cg} \right)\) specified to complete the conditions as represented in Eqs. 4 and  5.

    $$\begin{aligned}&\begin{array}{l} \angle \left[ C \left( j \omega _{cg} \right) G \left( j \omega _{cg} \right) \right] =- \pi + \phi _{m}, \end{array} \end{aligned}$$
    (4)
    $$\begin{aligned}&\begin{array}{l} \vert C \left( j \omega _{cg} \right) G \left( j \omega _{cg} \right) \vert _{dB}=0dB, \end{array} \end{aligned}$$
    (5)
  • Gain Margin \((g_{m})\) and phase cutoff frequency \((j\omega _{cf})\) specified to complete the conditions as represented in Eqs. 6 and  7.

    $$\begin{aligned}&\begin{array}{l} \frac{1}{ \vert C \left( j \omega _{cf} \right) G \left( j \omega _{cf} \right) \vert }=g_{m}, \end{array} \end{aligned}$$
    (6)
    $$\begin{aligned}&\begin{array}{l} \angle \left[ C \left( j \omega _{cf} \right) G \left( j \omega _{cf} \right) \right] =- \pi , \end{array} \end{aligned}$$
    (7)
  • Robustness to gain variations in Eq. 8.

    $$\begin{aligned} \begin{array}{l} \frac{d}{d \omega }\angle \left[ C \left( j \omega _{cg} \right) G \left( j \omega _{cg} \right) \right] =0, \end{array} \end{aligned}$$
    (8)
  • Rejection of high frequency noises (frequencies above \(\omega _{t}\)) in Eqs. 9 and  10.

    $$\begin{aligned}&\begin{array}{l} \vert T \left( j \omega \right) \vert = \left| \frac{C \left( j \omega \right) G \left( j \omega \right) }{1+C \left( j \omega \right) G \left( j \omega \right) } \right| _{dB} \le AdB, \end{array} \end{aligned}$$
    (9)
    $$\begin{aligned}&\begin{array}{l} \forall \omega \ge \omega _{t}\frac{rad}{s} \rightarrow \vert T \left( j \omega _{t} \right) \vert _{dB}=AdB, \end{array} \end{aligned}$$
    (10)
  • Rejection of low frequency disturbances (frequencies below \(\omega _{s}\) ) in Eqs. 11 and 12.

    $$\begin{aligned}&\begin{array}{l} \vert S \left( j \omega \right) \vert = \vert \frac{1}{1+C \left( j \omega \right) G \left( j \omega \right) } \vert _{dB} \le BdB, \end{array} \end{aligned}$$
    (11)
    $$\begin{aligned}&\begin{array}{l} \forall \omega \le \omega _{s}\frac{rad}{s} \rightarrow \vert S \left( j \omega _{s} \right) \vert _{dB}=BdB, \end{array} \end{aligned}$$
    (12)
  • Being \(\vert f \left( x \right) \vert\) the magnitude in absolute value, \(\vert f \left( x \right) \vert _{dB}\) the magnitude in decibels and \(\angle \vert f \left( x \right) \vert\) the phase angle of the function f (x). These functions are formulated according to Eqs. 13, 14 and 15.

    $$\begin{aligned}&\begin{array}{l} \vert f \left( x \right) \vert =\root \of {R \left[ f \left( x \right) \right] ^{2}+I \left[ f \left( x \right) \right] ^{2}}, \end{array} \end{aligned}$$
    (13)
    $$\begin{aligned}&\begin{array}{l} \vert f \left( x \right) \vert _{dB}=20\log _{10} \vert f \left( x \right) \vert , \end{array} \end{aligned}$$
    (14)
    $$\begin{aligned}&\begin{array}{l} \angle \left[ f \left( x \right) \right] =arctan \left( \frac{I \left[ f \left( x \right) \right] }{R \left[ f \left( x \right) \right] } \right) , \end{array} \end{aligned}$$
    (15)

In the available literature, five tuning methods for fractional PIDs were found. Methods 1 and 2, presented by Valério and Da Costa [26], are analytical methods that have similarities with the methods of Ziegler et al. [28]. Methods 3, 4, and 5 are heuristic methods that use different forms of optimization. Method 3 is demonstrated in the work of Shahri et al. [23], which uses the algorithm of differential evolution (DE). Method 4 uses the genetic algorithm (GA) in two distinct ways, described by Cao et al. [5], and by Padhee et al. [18]. Method 5 is based on the use of the Nelder–Mead algorithm, found in the Toolbox Fractional-Order Modeling and Control, as in Tepljakov et al. [24]. The subsequent topics explain the main features of these methods.

4.1 First method: method KTL

The KTL method resembles the first tuning method by Ziegler et al. [28] for using the open-loop system response due to a step input to tune the controller. Considering that the system response has the ”S-Shape” format, the plant can be approximated as a FOPDT system. With this, the controller parameters can be tuned according to the values of the performed approximation.

Since this is an analytical method, the system specifications are needed to fine-tune the parameters. To do this, test specification values for FOPDT type plants must be created. Thus, two sets of test specifications are created, and it is possible to solve Eqs. 4, 5, 8, 9 and 11.

For the first group of specifications, the values used are represented in Eqs. 16, 17, 18, 19, 20 and 21.

$$\begin{aligned}&\begin{array}{l} \omega _{cg}=0.5 rad/s, \end{array} \end{aligned}$$
(16)
$$\begin{aligned}&\begin{array}{l} \phi _{m}=\frac{2}{3} rad \approx 38 ^{\circ }, \end{array} \end{aligned}$$
(17)
$$\begin{aligned}&\begin{array}{l} \omega _{t}=10 rad/s, \end{array} \end{aligned}$$
(18)
$$\begin{aligned}&\begin{array}{l} A=-10 dB, \end{array} \end{aligned}$$
(19)
$$\begin{aligned}&\begin{array}{l} \omega _{s}=0.01 rad/s , \end{array} \end{aligned}$$
(20)
$$\begin{aligned}&\begin{array}{l} B=-20 dB, \end{array} \end{aligned}$$
(21)

The P, I, \(\alpha\), D, and \(\beta\) parameters are dependent on K, L, and T plant constants. Then, using the least-squares method, it is possible to adjust polynomial curves for each parameter that depend on plant constants. By transferring each of the curves to matrices, as in Eqs. 22 and  24, it is possible to tune the fractional controller. It is worth noting that the polynomial approximation works well only in a range of K, T, and L values, and such value constraints are represented in Eqs. 23 and  25, as in the work of Valério and Da Costa [27].

$$\begin{aligned}&\begin{array}{llllll} \begin{pmatrix} -0.0048 &{} 0.2664 &{} 0.4982 &{} 0.0232 &{} -0.0720 &{} -0.0348 \\ 0.3254 &{} 0.2478 &{} 0.1429 &{} -0.1331 &{} 0.0258 &{} -0.0171 \\ 1.5766 &{} -0.2098 &{} -0.1313 &{} 0.0713&{} 0.0016 &{} 0.0114 \\ 0.0662 &{} -0.2528 &{} 0.1081 &{}0.0702 &{} 0.0328 &{} 0.2202 \\ 0.8736 &{} 0.2746 &{} 0.1489 &{} -0.1557 &{} -0.0250 &{} 0.0323\\ \end{pmatrix} \cdot \\ \begin{pmatrix} 1\\ L\\ T/K\\ L^2\\ (T/K)^2\\ TL/K \end{pmatrix} = \begin{pmatrix} P\\ I\\ \alpha \\ D\\ \beta \end{pmatrix} \end{array} \end{aligned}$$
(22)
$$\begin{aligned}&\begin{array}{l} 0.1 \le \frac{T}{K} \le 5\,\,\,e\, L \le 2, \end{array} \end{aligned}$$
(23)
$$\begin{aligned}&\begin{array}{llllll} \begin{pmatrix} 2.1187 &{} -3.5207 &{} -0.1563 &{} 1.5827 &{} 0.0025 &{} 0.1824\\ -0.5201 &{} 2.6643 &{} 0.3453 &{} -1.0944 &{} 0.0002 &{} -0.1054 \\ 1.0645 &{} -0.3268 &{} -0.0229 &{} 0.2018 &{} 0.0003 &{} 0.0028 \\ 1.1421 &{} -1.3707 &{} 0.0357 &{} 0.5552 &{} -0.0002 &{} 0.2630 \\ 1.2902 &{} -0.5371 &{} -0.0381 &{} 0.2208 &{} 0.0007 &{} -0.0014\\ \end{pmatrix} \normalsize \cdot \\ \begin{pmatrix} 1\\ L\\ T/K\\ L^2\\ (T/K)^2\\ TL/K \end{pmatrix} = \begin{pmatrix} P\\ I\\ \alpha \\ D\\ \beta \end{pmatrix} \end{array} \end{aligned}$$
(24)
$$\begin{aligned}&\begin{array}{l} 5 \le \frac{T}{K} \le 50\,\,\,e\, L \le 2, \end{array} \end{aligned}$$
(25)

For the second set of test specifications, a new polynomial approximation is found, represented in Eq. 32, with its proper constraint on Eq. 33. The values of this second group of variables are presented in Eqs. 26, 27, 28, 29, 30 and 31.

$$\begin{aligned}&\begin{array}{l} \omega _{cg}=0.5 rad/s, \end{array} \end{aligned}$$
(26)
$$\begin{aligned}&\begin{array}{l} \phi _{m}=1 rad \approx 57 ^{\circ }, \end{array} \end{aligned}$$
(27)
$$\begin{aligned}&\begin{array}{l} \omega _{t}=10 rad/s, \end{array} \end{aligned}$$
(28)
$$\begin{aligned}&\begin{array}{l} A=-20 dB, \end{array} \end{aligned}$$
(29)
$$\begin{aligned}&\begin{array}{l} \omega _{s}=0.01 rad/s, \end{array} \end{aligned}$$
(30)
$$\begin{aligned}&\begin{array}{l} B=-20 dB, \end{array} \end{aligned}$$
(31)
$$\begin{aligned} &\begin{array}{llllll} \begin{pmatrix} -1.0574 &{} 24.5420 &{} 0.3544 &{} -46.7325 &{} -0.0021 &{} -0.3106 \\ 0.6014 &{} 0.4025 &{} 0.7921 &{} -0.4508 &{} 0.0018 &{} -1.2050 \\ 1.1851 &{} -0.3464 &{} -0.0492 &{} 1.7317 &{} 0.0006 &{} 0.0380 \\ 0.8793 &{} -15.0846 &{}-0.0771 &{} 28.0388 &{}-0.0000 &{}1.6711 \\ 0.2778 &{} -2.1552 &{} 0.0675 &{} 2.4387 &{} -0.0013 &{} 0.0021 \\ \end{pmatrix} \cdot \\ \begin{pmatrix} 1\\ L\\ T/K\\ L^2\\ (T/K)^2\\ TL/K \end{pmatrix} = \begin{pmatrix} P\\ I\\ \alpha \\ D\\ \beta \end{pmatrix} \end{array} \end{aligned}$$
(32)
$$\begin{aligned}&\begin{array}{l} 0.1 \le \frac{T}{K} \le 50\,\,\,e\, L \le 0.5, \end{array} \end{aligned}$$
(33)

4.2 Second method: method Kcr

The Kcr method applies to systems that, if inserted in a closed-loop control with proportional gain, exhibit constant oscillation for a given value of this gain. Therefore, it resembles the second tuning method of Ziegler et al. [28]. The value of gain that generates the constant oscillation is called Critical Gain (Kcr), and the oscillation period with this same gain is called the Critical Period (Pcr). As in Method 1 the control parameters are found analytically using Eqs. 4, 5, 8, 9 and 11. However, in this case, the parameters of the control are observed varying according to the constants Kcr and Pcr. It is then possible to adapt matrices of polynomial approximation dependent on these constants. Using the first test group of Method 1 and Eqs. 16 to 21, the matrices presented in Eqs. 34 and 36 are found with their proper constraints on Eqs. 35 and 37, as presented by Valério and Da Costa [27].

$$\begin{aligned}&\begin{array}{llllll} \begin{pmatrix} 0.4139 &{} 0.0145 &{} 0.1584 &{} -0.4384 &{} -0.0855 \\ 0.7067 &{} 0.0101 &{} -0.0049 &{} -0.2951 &{} -0.1001 \\ 1.3240 &{} -0.0081 &{} -0.0163 &{} 0.1393 &{} 0.0791 \\ 0.2293 &{} 0.0153 &{} 0.0936 &{} -0.5293 &{} -0.0440 \\ 0.8804 &{} -0.0048 &{} 0.0061 &{} 0.0749 &{} 0.0810 \\ \end{pmatrix} \cdot \\ \begin{pmatrix} 1\\ Kcr\\ Pcr\\ 1/Kcr\\ 1/Pcr \end{pmatrix} = \begin{pmatrix} P\\ I\\ \alpha \\ D\\ \beta \end{pmatrix} \end{array} \end{aligned}$$
(34)
$$\begin{aligned}&\begin{array}{l} K_{cr}*P_{cr} \le 64, \end{array} \end{aligned}$$
(35)
$$\begin{aligned} &\begin{array}{llllll} \begin{pmatrix} -1.4405 &{} 0.0000 &{} 0.4795 &{} 32.2516 &{} 0.6893 \\ 5.7800 &{} 0.0238 &{} 0.2783 &{} -56.2373 &{} -2.5917 \\ 0.4712 &{} -0.0003 &{} -0.0029 &{} 7.0519 &{} 0.1355 \\ 1.3190 &{} -0.0024 &{} 2.6251 &{} -138.9333 &{} 0.1941 \\ 0.5425 &{} -0.0023 &{} -0.0281 &{} 5.0073 &{} 0.2873 \\ \end{pmatrix} \cdot \\ \begin{pmatrix} 1\\ Kcr\\ Pcr\\ 1/Kcr\\ 1/Pcr \end{pmatrix} = \begin{pmatrix} P\\ I\\ \alpha \\ D\\ \beta \end{pmatrix} \end{array} \end{aligned}$$
(36)
$$\begin{aligned}&\begin{array}{l} 64 \le K_{cr}*P_{cr} \le 640, \end{array} \end{aligned}$$
(37)

For the second test group used in Method 1 Eqs. 26 to 31, the matrix on Eq. 38 with its proper restriction on Eq. 39 is found.

$$\begin{aligned} \tiny&\begin{array}{llllll} \begin{pmatrix} -25.8467 &{} -0.0119 &{} 40.4266 &{} -14.5136 &{} 0.0147 &{}1.6841 &{} 4.7503 &{} 0.0144 &{} -7.0200 \\ 10.5528 &{} 0.2352 &{} -17.0426 &{} 6.3144 &{} -0.0617 &{} -0.9399 &{} -1.5547 &{} -0.0687 &{} 3.4357 \\ 0.6213 &{} -0.0034 &{} 0.2257 &{} 0.1069 &{} 0.0008 &{} 1.1809 &{} 0.0904 &{} 0.0010 &{} -0.8139 \\ 15.7620 &{} -0.1771 &{} -23.0396 &{} 8.2724 &{} 0.1987 &{} -0.8892 &{} -2.9981 &{} 0.0389 &{} 2.8619 \\ 1.0101 &{} 0.0024 &{} -0.8606 &{} 0.1991 &{} -0.0005 &{} -0.9300 &{} -0.1609 &{} -0.0009 &{} 0.5846 \\ \end{pmatrix} \cdot \\ \begin{pmatrix} 1\\ Kcr\\ Pcr\\ Pcr^2\\ Pcr*Kcr\\ 1/Kcr\\ 1/Pcr\\ Kcr/Pcr\\ Pcr/Pcr \end{pmatrix} = \begin{pmatrix} P\\ I\\ \alpha \\ D\\ \beta \end{pmatrix} \end{array} \end{aligned}$$
(38)
$$\begin{aligned}&\begin{array}{l} P_{cr} \le 2, \end{array} \end{aligned}$$
(39)

4.3 Third method: DE algorithm

A heuristic method based on the algorithm called DE (differential evolution) was proposed by Shahri et al. [23]. In order to find one or more poles of the system and perform an optimization, it is necessary to know at least two specifications of the control. In this case, these specifications are the Maximum overshoot, Eq. 40, and the time to establishment in 2%, Eq. 41. Using these two specifications, the desired dominant poles \((P_{1,2})\) can be found as in Eq. 42.

$$\begin{aligned}&\begin{array}{l} M_{p}=e^{\frac{- \zeta \pi }{\root \of {1- \zeta ^2}}}, \end{array} \end{aligned}$$
(40)
$$\begin{aligned}&\begin{array}{l} T_{s}=\frac{4}{ \zeta *\omega _{n}}, \end{array} \end{aligned}$$
(41)
$$\begin{aligned}&\begin{array}{l} P_{1,2}=- \zeta \omega _{n} \pm j \omega _{n}\root \of {1- \zeta ^{2}}=-x \pm jy, \end{array} \end{aligned}$$
(42)

Thus, taking into account the equation of characteristic equation of the closed-loop transfer function, Eq. 43, the transfer function for first-order systems with delay, Eqs. 44, 3 and 42, and considering H (s) = 1, Eq. 45 is obtained.

$$\begin{aligned}&\begin{array}{l} 1+G_{c} \left( s \right) G_{p} \left( s \right) H \left( s \right) =0, \end{array} \end{aligned}$$
(43)
$$\begin{aligned}&\begin{array}{l} G_p \left( s \right) =\frac{K}{Ts+1}e^{-Ls}, \end{array} \end{aligned}$$
(44)
$$\begin{aligned} 1+ \left[ P+I \left( -x \pm jy \right) ^{- \alpha }+D \left( -x \pm jy \right) ^{ \beta } \right] *G_{p} \left( -x \pm jy \right) =0,\end{aligned}$$
(45)

From Eq. 45 it is possible to define the objective function (J), which is minimized by the algorithm and is represented in Eq. 46. The modification of Eq. 45 to  46 is intended to ensure that the equation is always positive and it is as close as possible to the real number axis. Therefore, this minimized equation provides the poles of the system.

$$\begin{aligned} \begin{array}{l} J \left( P,I, \alpha ,D, \beta \right) = \vert R \vert ^{2}+ \vert I \vert ^{2}+ \vert \phi \vert ^2, \end{array} \end{aligned}$$
(46)

in which R is the real part, I is the imaginary part and \(\phi\) is the phase angle of Eq 45.

The first step of the DE algorithm is to define the number of variables (V), the number of the population (NP), which, according to Ardia et al. [2] can correspond to ten times of ’V’ and, then the crossing frequency (CR),a value between 0.1 and 0. The mutation factor (F), which, according to Salehinejad et al. [21], can be a constant or a random value between 0 and 2. Thus, Eq. 47 can be used to calculate this factor Shahri et al. [23].

$$\begin{aligned} \begin{array}{l} F=0.4+ \left[ rand \left( 0.1 \right) \right] *0.6, \end{array} \end{aligned}$$
(47)

The next step is to define the maximum and minimum for each parameter (P, I, D, \(\alpha\), and \(\beta\)) in the form of Eqs. 48 and  49.

$$\begin{aligned}&\begin{array}{l} \overline{X}_{\min }= \{ P_{min,}I_{min,} \alpha _{min,}D_{min,} \beta _{min,} \}, \end{array} \end{aligned}$$
(48)
$$\begin{aligned}&\begin{array}{l} \overline{X}_{\max }= \{P_{max,}I_{max,} \alpha _{max,}D_{max,} \beta _{max,} \}, \end{array} \end{aligned}$$
(49)

The number of maximum iterations used in this type of algorithm is 200, a standard value according to Ardia et al. [2].

Then, it is necessary to generate an initial ’population’ of ’NP’ vectors, named \(\overline{X}_{iG}\) according to Eq. 50, and then choose one of these to play the initial vector role.

$$\begin{aligned} \begin{array}{l} \overline{X}_{iG}= \left\{ P_{iG,}I_{iG,} \alpha _{iG,}D_{iG,} \beta _{iG,} \right\} , \end{array} \end{aligned}$$
(50)

in which G is the generation (starts G = 0), i is an integer between 1 and NP and each of the variables \(( P_{iG}, I_{iG}, \alpha _{iG}, \ D_{iG}, \beta _{iG} )\) are presented as possible solutions of the system, generated randomly between the maximum and minimum limits.

In the third part, the ”mutation” of the vectors is carried out. It is possible to find in the literature, several different ways of performing this mutation, as represented in Ganbavale [7]. Some examples are represented in Eqs. 51, 52 and 53.

$$\begin{aligned}&\begin{array}{l} 'DE/rand/1' : \overline{V}_{iG}=\overline{X}_{i1G}+F \left( \overline{X}_{i2G}-\overline{X}_{i3G} \right) ), \end{array} \end{aligned}$$
(51)
$$\begin{aligned}&\begin{array}{l} 'DE/current-to-rest/1' : \overline{V}_{iG}=\overline{X}_{i1G}+\\ F \left( \overline{X}_{bestG}-\overline{X}_{i1G} \right) +F \left( \overline{X}_{i2G}-\overline{X}_{i3G} \right) , \end{array} \end{aligned}$$
(52)
$$\begin{aligned}&\begin{array}{l} 'DE/rand/1' : \overline{V}_{iG}=\overline{X}_{bestG}+F \left( \overline{X}_{i1G} - \overline{X}_{i2G} \right) , \end{array} \end{aligned}$$
(53)

in which i1, i2 and i3 are random integers with values between 1 and NP, different from each other and different from the initial ’i’ chosen. \(\overline{X}_{bestG}\) is the \(\overline{X}\) that presents the best result in the optimization of the objective function among the generation G population.

The fourth step of the algorithm is the crossing of the vectors. In this step, a vector \(\overline{U}_{ig}\) is created from the intersection of the vectors \(\overline{V}_{iG}\) and \(\overline{X}_{iG}\) , as represented in Eq. 54.

$$\begin{aligned} \begin{array}{l} \overline{U}_{ig}= {\left\{ \begin{array}{ll} \overline{V}_{ijG} &\quad \text { if rand} \left( 0.1 \right) \le CR\;or\;j=j_{rand}\\ \overline{X}_{ijG}& for\,other\,cases\\ \end{array}\right. }, \end{array} \end{aligned}$$
(54)

so, ’j’ is an integer with a value between 1 and ’V’, which represents the variable to be selected for crossover. ’\(j_{rand}\)’ is an arbitrary ’ \(\,j\) ’ chosen in the same interval to ensure that at least one variable passes through the crossing process, that is, to ensure that \(\overline{U}_{ig}\) is different from \(\overline{X}_{ijG}\) .

The last step is to choose the best option that minimizes the objective function and start a new generation with a new \(\overline{X}_{i \left( G+1 \right) }\) , according to Eq. 55. Once this step is completed, the algorithm restarts until it reaches the maximum number of iterations defined.

$$\begin{aligned} \begin{array}{l} \overline{X}_{i \left( G+1 \right) }= {\left\{ \begin{array}{ll} \overline{U}_{ig}\,\,\,\,\,\,\, if\,\,f\left( \overline{U}_{ig} \right) \le f \left( \overline{X}_{iG}\right) \\ \overline{X}_{iG}\,\,\,\,\,\,\, if \,\,f\left( \overline{U}_{ig}\right) \ge f \left( \overline{X}_{iG} \right) \\ \end{array}\right. }, \end{array} \end{aligned}$$
(55)

4.4 Fourth method: GA algorithm

This section describes each of the special features of the GA algorithm application.

4.4.1 GA optimizing the five parameters of the controller

This method, presented by J. Cao et al. [5], consists of the optimization of all five FOPID (first-order proportional–integral–derivative) parameters. In this case, the function to be minimized (J) is the weighted average of ISE and IAE, which are two control evaluation criteria that are explained in Sect. 4.2: Evaluation Criteria. This function has the format of Eq. 56.

$$J=w_{1}*\int\nolimits _{0}^{\infty } \vert e \left( t \right) \vert dt+w_{2}*\int\nolimits _{0}^{\infty }e^{2} \left( t \right) dt,$$
(56)

The values of \(w_1\) and \(w_2\) are constants which when added have a value equal to 1 and may vary depending on what is required to obtain from the function ’J’.

4.4.2 GA optimizing the fractional exponents of the controller

In this variation of the GA method, there is only the optimization of the fractional exponents of the plant, the other parameters being tuned from the second method of Ziegler et al. [28]. This application of GA is presented by Padhee et al. [18] and the function to be minimized, in this case, is the ISE \((J_\text{new})\) according to Eq. 57.

$$J_\text{new}= \int _{0}^{\infty }e^{2} \left( t \right) dt,$$
(57)

4.4.3 Fifth method: Nelder–Mead simplex algorithm

Nelder and Mead [16] created a method of optimizing functions in order to find the local minimum in a given value constraint. The algorithm begins with the construction of a Simplex (a triangle of ’N’ dimensions) and aims to find the minimum local ’N’ variables. This algorithm was then used by the FOMCOM Library to find the optimum values for the 5 variables (5 dimensions) of the FOPID.

As in the genetic algorithm, the function chosen to be optimized by the Nelder–Mead algorithm is usually a criterion of control evaluation. Therefore, none of the control specifications are required. The ITAE, IAE, ISE, among others, are generally the ones chosen to find an optimal solution of the controller parameters

5 Methodology

The tests were performed in simulations in MATLAB software (R2020a). For the simulation of fractional transfer functions, a specific toolbox called FOMCON was found in the literature in Tepljakov et al. [24]. The choice of software is due to the good capacity to compute the fractional differential equations, as well as to accurately simulate the responses of the control systems.

To perform the tests of the methods found in the literature, a test FOPDT was used, represented in Eq. 58. The values of ’K’, ’T’ and ’L’ of Eq. 58 have been chosen so that they are within the limits of values in which all described methods can be applied.

$$\begin{aligned} \begin{array}{l} C \left( s \right) =\frac{1}{s+1}e^{-2s}, \end{array} \end{aligned}$$
(58)

In order to model the responses of this plant, a change in the way of writing the delay is necessary. Using Padé function, which makes the polynomial expansion of an exponential function truncating the function in n terms, the delay ( \(e^{-2s}\) ) can be converted into a polynomial approximation.

To find the satisfactory truncation of the polynomial expansion, the step input response was tested for one, four, and eight truncation terms, and the results can be visualized in Fig. 1. In the permanent regime, the approximation of all three is satisfactory, but in the transient regime, the approximation with truncation in one term presented a significant difference. It is also observed that the higher the number of terms, the smaller the difference in the steady-state. When performing the disturbance test however, bigger Padé approximations resulted in oscillatory behaviour, so the truncation was chosen at four terms, resulting in a plant shown in Eq. 59.

$$\begin{aligned} C(S)_{pade4}= \frac{s^4-10s^3+45s^2-105s+105}{s^5+11s^4+55s^3+150s^2+210s+105} \end{aligned}$$
(59)
Fig. 1
figure 1

Comparison between the Padé approximations and the real delay

From there, the function that will represent FOPID is created using FOMCON libraries.

The code used in all simulations is represented in Appendix 1, where the values of the parameters P, I, \(\alpha\), D and \(\beta\) found in each of the methods were replaced in lines 24 to 28.

To evaluate if the FOPID controller has advantages over the conventional PID, the second tuning method of Ziegler and Nichols was used. This method uses the values of Critical Gain and Critical Period, applying them in simple equations, as represented in Table 1.

Table 1 Equations for the second tuning method of Ziegler and Nichols(ZIEGLER; NICHOLS, 1942)

The value of the critical gain was found by the Root locus method, applied to the modified FOPDT plant (Eq. 59), which can be seen in Fig. 2. At the point where the dominant pole crosses the imaginary axis with the lowest k possible, both the \(K_{cr}\) value and the critical frequency value \((\omega _{cr})\), represented in Eq. 60 and in Fig. 2, can be associated. The critical period can then be calculated in the critical frequency equation, as represented in Eq. 61.

$$\begin{aligned}&\begin{array}{l} K_\text{cr}=1.55022 ;\; \omega _\text{cr}=1.21200, \end{array} \end{aligned}$$
(60)
$$\begin{aligned}&\begin{array}{l} P_\text{cr}=\frac{2 \pi }{1.14} \cong 5.6, \end{array} \end{aligned}$$
(61)
Fig. 2
figure 2

Geometric Site of Roots of plant C(s) pade8 in sisotool

The conventional PID was then tuned, replacing the values of Kcr and Pcr in Table 1.

5.1 Evaluation criteria

The most used criteria were the integral of error (IE), integral of the absolute error (IAE), integral of square error (ISE) and integral of the time multiplied by the absolute error (ITAE), represented respectively in Eqs. 62, 63, 64 and 65.

$$IE= \int _{0}^{\infty } \left( r \left( t \right) -y \left( t \right) \right) dt,$$
(62)
$$IAE= \int _{0}^{\infty } \vert r \left( t \right) -y \left( t \right) \vert dt,$$
(63)
$$ISE= \int _{0}^{\infty } \vert r \left( t \right) -y \left( t \right) \vert ^2 dt,$$
(64)
$$ITAE= \int _{0}^{\infty }t*\vert r \left( t \right) -y \left( t \right) \vert dt,$$
(65)

The IE and IAE criteria consider only the error area. ISE, by having the error term squared, maximizes the areas where the error is large, making delays and slowness of response more significant than small steady-state errors. ITAE, by multiplying the error by time, makes steady-state errors more significant than delay or slowness of response. Due to these characteristics of ISE and ITAE, both were chosen as the criteria for the analysis of the methods.

5.2 Robustness test

In order to test whether the controllers tuned by the methods studied are robust, a variation of \(\pm\) 20\(\%\) in all parameters of the plant (the gain, the time constant, and the time delay) was made and the parameters of the FOPID controller were kept constant. The plants, after the modification of \(\pm\) 20\(\%\) , are presented in Eqs. 66 and 67 respectively.

$$\begin{aligned}&\begin{array}{l} C_{+20\%} \left( s \right) =\frac{1.2}{1.2s+1}e^{-2.4s}, \end{array} \end{aligned}$$
(66)
$$\begin{aligned}&\begin{array}{l} C_{-20\%} \left( s \right) =\frac{0.8}{0.8s+1}e^{-1.6s}, \end{array} \end{aligned}$$
(67)

The robustness was evaluated using the ITAE and ISE criteria.

5.3 Disturbance rejection test and controller signal saturation

For the disturbance rejection test a step disturbance is added in the system at t=50s. This value of time was chosen because all systems were already in a steady state at this time. All other parameters were kept the same. To compare the controller methods, the ISE criterion was chosen over the ITAE criterion because the latest is sensitive to long simulation times. To see the contribution of the disturbance separately, the original (without the disturbance) value of ISE was subtracted to the full ISE taken from the signal with disturbance.

$$\begin{aligned} ISE_\text{dist}=ISE_\text{Total}-ISE_\text{Original} \end{aligned}$$
(68)

The control signals were also evaluated, presenting a maximal signal of 11.42 for both GA-5 and N-M algorithms. This signal is not a concern since it can represent physical signals without surpassing the saturation of actuators, as in the example by Zhang et al. (2008) of the control of a F8 airship. For the sake of brevity, the resulting signals will not be presented in this work.

5.4 Comparison of methods

Firstly, the reliability, robustness and results obtained for each method were examined.

A comparative study of all the methods was carried out, including the common PID tuning with the method of Ziegler and Nichols. For this comparison, robustness analysis, optimization time of each tool, and ISE and ITAE criteria were included.

6 Results and discussion

First, the parameters Kp, Ti, and Td were calculated by the method of Ziegler and Nichols. The values found are presented in Eq. 69 and the PID tuned in Eq. 70.

$$\begin{aligned}&\begin{array}{l} P=0.930132 ;\,\, I=0.33219 ; \,\,D=0.6510924, \end{array} \end{aligned}$$
(69)
$$\begin{aligned}&\begin{array}{l} G_\text{c-ZN} \left( s \right) = \left( 0.930132 +\frac{0.33219}{s}+0.6510924*s \right) , \end{array} \end{aligned}$$
(70)

Then, the response to the step input (Fig. 3), as well as the result of ISE and ITAE presented in Eqs. 71 and 72 were found. It can be observed that the ITAE and ISE values are not high, evidencing a good tuning. However, the output oscillates quite frequently, which can be disadvantageous in the event of plant disturbances or variations.

$$\begin{aligned}&\begin{array}{l} ISE_\text{ZN}=2.1117, \end{array} \end{aligned}$$
(71)
$$\begin{aligned}&\begin{array}{l} ITAE_\text{ZN}=8.7623, \end{array} \end{aligned}$$
(72)
Fig. 3
figure 3

System response to a step input. Controller tuned with Ziegler and Nichols method

6.1 First method

The values of K, T and L, are taken from Eq. 58 and are presented in Eq. 73. With these values, the matrix described in Eq. 22 was applied and the controller parameters calculated, as presented in Eqs. 74 and 75.

$$\begin{aligned}&\begin{array}{l} K=1;\,\,T=1;\,\, L=2, \end{array} \end{aligned}$$
(73)
$$\begin{aligned}&\begin{array}{l} P=0.9774;\,\,I=0.4235; \,\,D=0.4227, \end{array} \end{aligned}$$
(74)
$$\begin{aligned}&\begin{array}{l} \alpha =1.3353; \,\,\beta =0.8593, \end{array} \end{aligned}$$
(75)

Figure 4 illustrates the response to a step input (gray line) and the related ISE and ITAE values are presented in Eqs. 76 and 77. In Fig. 4, it is possible to observe high overshoot and a considerable delay in the time response, justifying the high value of ITAE. However, the output had a fast rising time and low oscillation, which explains the low ISE.

$$\begin{aligned}&\begin{array}{l} ISE_\text{KTL}=2.5646, \end{array} \end{aligned}$$
(76)
$$\begin{aligned}&\begin{array}{l} ITAE_\text{KTL}=31.2117 , \end{array} \end{aligned}$$
(77)

The step response for the robustness test can also be seen in Fig. 4 and their respective ISE and ITAE with the percentage difference for the original plant, are found in Table 2. It can be observed that this method is stable, fulfilling the first requirement of the control system. In addition, the step responses were similar in rising time and response time. However, due to the increase in the overshoot value for the + 20% plant, ISE and ITAE increased by almost 50%. In addition, the fact that the -20% plant presented significantly lower values than the original plant indicates that the initial optimization process can be improved to provide better results.

Table 2 ISE and ITAE values for the robustness test of the KTL method
Fig. 4
figure 4

System response to a step input. Controller tuned with KTL method

6.2 Second method

After applying the values of Kcr and Pcr (found in Eqs. 60 and 61) in the matrix presented in Eq. 34, the controller parameters and the transfer function were obtained. These parameters and equations are presented in Eqs. 78, 79 and 80.

$$\begin{aligned}&\begin{array}{l} P=1.0050;\,\,I=0.4827;\,\, D=0.4122, \end{array} \end{aligned}$$
(78)
$$\begin{aligned}&\begin{array}{l} \alpha =1.3279;\,\, \beta =0.9707, \end{array} \end{aligned}$$
(79)
$$\begin{aligned}&\begin{array}{l} G_\text{c-Kcr} \left( s \right) =(1.0050+\frac{0.4827}{s^{1.3279}}+0.4122*s^{0.9707}), \end{array} \end{aligned}$$
(80)

Figure 5 illustrates the system response to a step input for the Kcr controller (gray line). As in the previous method, there was also a high overshoot and a relative delay in response, so both methods present similarities. This fact was expected since both follow the same specifications. Therefore, the ITAE and ISE values are also similar, as represented in Eqs. 81 and 82.

$$\begin{aligned}&\begin{array}{l} ISE_\text{Kcr}=2.6944, \end{array} \end{aligned}$$
(81)
$$\begin{aligned}&\begin{array}{l} ITAE_\text{Kcr}=32.5687, \end{array} \end{aligned}$$
(82)

In the robustness test, the values obtained from ITAE and ISE are represented in Table 3 and the step system responses is presented in Fig. 5. As mentioned, the system response for this method was similar to that of the first method, and therefore, the same observations regarding the overshoot for the plant of + 20% and the reduction of the ITAE and ISE of the plant of −20% . However, in this case, a much greater oscillation can be observed for the plant of + 20%. Such instability can be reinforced by the percentage increase of ITAE, with a value greater than 100%. With this analysis, it can be said that this system presents less robustness to increase the values of the plant when compared to Method 1.

Table 3 ISE and ITAE of plants for robustness test of the Kcr method
Fig. 5
figure 5

System response to a step input. Controller tuned with the Kcr method

6.3 Third method

By executing the code for the DE algorithm, as in Appendices 2 and 3, the values represented in Eqs. 83 and 84 for the controller parameters were found and, the FOPID transfer function is presented as in Eq. 85.

$$\begin{aligned}&\begin{array}{l} P=0.6016;\,\,I=0.8831 ;\,\, D=1.2743, \end{array} \end{aligned}$$
(83)
$$\begin{aligned}&\begin{array}{l} \alpha =0.9244;\,\, \beta =0.9964, \end{array} \end{aligned}$$
(84)
$$\begin{aligned}&\begin{array}{l} G_\text{c-Kcr} \left( s \right) =( 0,6016+\frac{0,8831}{s^{0,9244}}+1,2743*s^{0,9964}), \end{array} \end{aligned}$$
(85)

Figure 6 illustrates the system response to a step input (gray line). It can be observed that the output presents high oscillation, justifying a moderately high ITAE value, as represented in Eq. 87. At the same time, a low amplitude of oscillation is observed, which in turn, justifies the low ISE, as observed in Eq. 86.

$$\begin{aligned}&\begin{array}{l} ISE_\text{DE}=1.9937, \end{array} \end{aligned}$$
(86)
$$\begin{aligned}&\begin{array}{l} ITAE_\text{DE}=15.4282, \end{array} \end{aligned}$$
(87)

After the robustness test, Fig. 6 was obtained with the outputs for each of the test plants and for the original plant. The ITAE and ISE values for this test are given in Table 4. It can be noticed that for both variations the plant remained stable, fulfilling the first requirement of robustness. In addition, for the plant modification of −20% the values are consistent with expected values. However, the plant modification of + 20%, besides obtaining a very oscillatory response, presented a large increase of both ITAE and ISE. With this, it can be said that this tuning did not present good results in the test of robustness of + 20% of the plant.

Table 4 ISE and ITAE results for the robustness test. Controller tuned with the DE method
Fig. 6
figure 6

System response to a step input. Controller tuned with the DE Algorithm

6.4 Fourth method

This section discusses the results for the GA Algorithm method.

6.4.1 Method 4.1

After optimizing the ’J’ function with the optimtool tool (Eq. 56 and Appendix 4), the values found for the controller parameters are presented in Eqs. 88, 89 and 90.

$$\begin{aligned}&\begin{array}{l} P=1.04;\;I=0.494 D=0.723, \end{array} \end{aligned}$$
(88)
$$\begin{aligned}&\begin{array}{l} \alpha =1.003;\; \beta =1.229, \end{array} \end{aligned}$$
(89)
$$\begin{aligned}&\begin{array}{l} G_\text{c-GA5} \left( s \right) =1.04+\frac{0.494}{s^{1.003}}+0,723*s^{1.229}, \end{array} \end{aligned}$$
(90)

In Fig. 7 the system response to a step input (gray line) is illustrated. It can be observed very adequate control parameters, presenting low overshoot, low oscillation, fast response, as well as low ISE and ITAE values, represented in Eqs. 91 and 92.

$$\begin{aligned}&\begin{array}{l} ISE_\text{GA5}=1.8886, \end{array} \end{aligned}$$
(91)
$$\begin{aligned}&\begin{array}{l} ITAE_\text{GA5}=3.5109, \end{array} \end{aligned}$$
(92)

Finally, the robustness test was performed, obtaining the remaining curves for Fig. 7 containing the system responses to the step input, and Table 5, comparing the ITAE and ISE values. From these data, it was observed that the original plant had values already well optimized since the value of ITAE increases even with the decrease of the constants of time and delay. Moreover, the variation values were within the expected range and, even though the ITAE has grown more than 200\(\%\), its absolute value is still relatively low.

Table 5 Comparison of ISE and ITAE values for robustness test using GA for five parameters method
Fig. 7
figure 7

System response to a step input. Controller tuned with the GA-5 Algorithm

6.4.2 Method 4.2

After optimizing the new function with the MATLAB optimtool tool, the values found for the controller parameters are presented in Eqs. 93 and 94, and the values for Eq. 95 from the Ziegler and Nichols tuning are kept constant.

$$\begin{aligned}&\begin{array}{l} P=0.9119;\; I=0.3309;\; D=0.6282, \end{array} \end{aligned}$$
(93)
$$\begin{aligned}&\begin{array}{l} \alpha =1.06;\; \beta =1.29, \end{array} \end{aligned}$$
(94)
$$\begin{aligned}&\begin{array}{l} G_\text{c-GA2} \left( s \right) =0.9119+\frac{0.3309}{s^{1.06}}+0.6282*s^{1.293}, \end{array} \end{aligned}$$
(95)

The ISE and ITAE values were calculated and the system response to the step input is presented in Fig. 8 (gray line). It can be seen that the parameters are also quite adequate. However, there is a relatively higher response delay compared to previous GA results, which explains the relatively higher ISE and ITAE, represented in Eqs. 96 and 97, respectively. It is important to note that the ISE value was lower in this method than in the Ziegler and Nichols method, highlighting the effectiveness of the fractional exponents.

$$\begin{aligned}&\begin{array}{l} ISE_\text{GA2}=2.0414, \end{array} \end{aligned}$$
(96)
$$\begin{aligned}&\begin{array}{l} ITAE_\text{GA2}=12.2562, \end{array} \end{aligned}$$
(97)

In the test of robustness performed in this variation of the GA algorithm, the values of Table 6 and the responses to the step response are illustrated in Fig. 8. It can be observed that this method presented less than 50\(\%\) variation in all the criteria, as well as responses of similar aspects in the graph. The ISE evaluation remained almost constant, even with the variation of + 20\(\%\) or -20\(\%\) , and considering that this is the criterion minimized by the algorithm, it can be inferred that the robustness to the variation of the parameters of the plant was satisfactory.

Table 6 ISE and ITAE of plants for GA robustness test for two parameters
Fig. 8
figure 8

System response to a step input. Controller tuned with the GA-2 Algorithm

6.5 Fifth method

Using FOMCOM libraries optimization tool (Nelder–Mead algorithm) the new controller parameters and transfer function are found and represented in Eqs. 98, 99 and 100.

$$\begin{aligned}&\begin{array}{l} P=0.74009;\; I=0.39926 ;\; D=0.39784, \end{array} \end{aligned}$$
(98)
$$\begin{aligned}&\begin{array}{l} \alpha =1.0011;\; \beta =1.0746, \end{array} \end{aligned}$$
(99)
$$\begin{aligned}&\begin{array}{l} G_\text{c-NM} \left( s \right) = 0.74009+\frac{0.39926}{s^{1.0011}}+0.39784*s^{1.0746}, \end{array} \end{aligned}$$
(100)

As for the other methods, the ISE and ITAE values were calculated and the graph of the response to the input step of the system was plotted in Fig. 9 (gray line). It can be observed that the parameters of this controller were very adequate, with relatively low ISE and ITAE values, as represented in Eqs. 101 and 102. In addition, the graph presented a fast response, with very low overshoot and oscillation.

$$\begin{aligned}&\begin{array}{l} ISE_\text{NM}=2.1802, \end{array} \end{aligned}$$
(101)
$$\begin{aligned}&\begin{array}{l} ITAE_\text{NM}=3.7237, \end{array} \end{aligned}$$
(102)

The results of the robustness test of this method are represented in Table 7 and in Fig. 9. As in Method 4.2 it is observed that the ITAE value grows even with the reduction of time and delay constants, indicating that the original plant is well-tuned. Moreover, even though the ITAE value also increased by more than 200\(\%\) , the absolute value still remained relatively low.

Table 7 Comparison of ISE and ITAE values for robustness test using N-M algorithm
Fig. 9
figure 9

System response to a step input. Controller tuned with the Nelder–Mead Algorithm

The disturbance analysis are shown in Figs. 13 and 14 for all methods combined, and in the next section, the values for the ISE will be shown and compared.

7 Comparative analysis of methods

Fractional controller gains can be more easily determined using analytical methods. However, the results obtained were worse and more sensitive to variations in plant coefficients when compared to heuristic methods. With the heuristic methods, better results could be obtained, especially using the method “GA optimizing the five parameters of the controller”. On the other hand, the computational implementation of the methods is more complicated and requires more time to obtain the solution.

In Figs. 10 and 11 are presented the system response to a unit step disturbance applied in t=50s. Figure 10 contains the system response for the methods Kcr, KTL, and DE algorithm, and Fig. 11 for the methods GA-2, GA-5, and N-M algorithm. The values of the ISE criterion chosen are shown in Table 8. The DE algorithm was the most effective for disturbance rejection but also the GA-5 presented a satisfying performance.

Fig. 10
figure 10

System response to a step input and a disturbance at 50s. Controller tuned with KTL, Kcr, and DE algorithm methods

Fig. 11
figure 11

System response to a step input and a disturbance at 50s. Controller tuned with the GA Optim 5 par, GA Optim 2 par, and N-M Algorithm methods

Fig. 12
figure 12

System response to a step input. All the methods employed

For the comparative analysis, the values for the comparison criteria found for each method are presented in Table 8 and the responses to the step of these methods in Fig. 12. It is possible to see, analyzing the table, a certain advantage in using heuristic methods for the FOPID tuning when considering the ITAE criterion.

Table 8 Comparative analysis for tuning methods

The methods that stood out for this criterion are the GA for five parameters and the Nelder–Mead algorithm, GA presenting a slight advantage. In the ISE criterion, the GA algorithm for five parameters was also slightly better. Considering all parameters presented in Table 8, the GA-5 method presented the best performance.

It was possible to observe that the values of the fractional exponents coincidentally did not differ significantly from 1. Because of this, the use of the common PID can present results close to those of the FOPID for this plant specifically, justifying the fact that the Ziegler and Nichols tuning generated better results than some of the FOPID tunings.

Concerning the execution times of the algorithms, it is evident that the GA algorithm is the one that optimizes the functions more quickly, and, in contrast, the algorithm DE is the one that presents more slowness. These times may be more significant when the function of the plant is more complex or with greater orders. Therefore, it can be said that, in this requirement, the GA algorithm also had an advantage over the other methods.

In Figs. 13 and 14 are represented the comparison of the robustness tests for the ITAE and ISE criteria, respectively. Since the first important requisite in the analysis of robustness is stability, it can be seen in the graphs that all the plants have met this requirement.

The graph of the ITAE (Fig. 13) illustrates a good indication of the robustness of the systems, considering that it did not change much in this criterion after the modification of the plant. With this in mind, it can be concluded that the KTL, GA for five and two parameters , and the Nelder–Mead algorithm presented low changes, demonstrating good robustness to the variation of the plant.

It can be seen that the ISE analysis (Fig. 14) presents little efficiency for the robustness evaluation, since in all the methods the same pattern appeared (higher ISE for the plant of + 20% and lower for the plant of -20 %). This was an expected behaviour, considering that the variation in the plant parameters varies linearly with ISE.

Fig. 13
figure 13

Graph in ITAE’s vertical bars of the robustness test

Fig. 14
figure 14

Graph in vertical bars of ISE’s of robustness test

It is important to note that when comparing the tuning rules with the genetic algorithm and the simplex method, the former requires less information for tuning the desired system. Moreover, it is computationally simpler than the others. On the other hand, the tuning rules techniques were surpassed by the latest in terms of performance. Thus, because it is simpler, computationally cheaper, and more practical, the first tuning technique was used as a reference for judging the heuristic results.

8 Conclusions

In this work, five different tuning techniques for a fractional-order PID were compared. The controllers were employed to regulate the output of a first-order plus dead-time plant, and its effectiveness was evaluated regarding robustness, disturbance rejection, ITAE, and ISE. Details of the algorithm used for the methods are presented in the annex, making the use of the methods considered in this work more accessible.

The results presented demonstrated that heuristic methods tend to tune the controller better. The analytical methods presented (methods 1 and 2) are simpler and faster to apply, and influenced the choice of the value ranges used for the variables of the heuristic methods. If there is no first reference result, the notion about this range would not be appropriate.

Another important point observed in the case of heuristic methods is that it is desirable to minimize the evaluation criteria, as seen after the first attempts to use method 3 (DE algorithm). Minimizing the evaluation criteria ensured stability and good system response, even when there was no knowledge of the system specifications.

In general, the comparative study indicated that the use of the GA method to tune all five parameters of the controller (Method 4.1) may be the best option for FOPID tuning. However, the method using the Nelder–Mead algorithm (Method 5) also presented adequate values and response curves with good combination of overshoot and stabilization time. In addition, the application tool of this method allows great flexibility regarding changes in the system requirements. Therefore, when it is intended to tune the fractional controller, it may be said that it is advisable to apply one of these two methods, considering that it is advantageous to apply Methods 1 or 2 to know the approximate range of values to be used as constraints.

The fractional controllers can be more efficient in controlling a system than the common controllers since it is possible to improve an evaluation criterion by the variation of the Differintegral exponents. However, the relations employed for the analytical methods and the programming and computational requirements for the heuristic methods are more complex compared to the techniques commonly employed in integers controllers for the same plant considered in this work. In this case, the relations available for integer PID controllers can be more practical and simpler.