Keywords

22.1 Introduction

Real-world systems are naturally unstable when analyzed over the broad functioning range while various of the systems are supposed to “act” as linear in the environment of the specific operating condition at moderate speeds under particular consideration (Albertos et al. 1997; Zarei 2020; Precup et al. 2020; Priyanka et al. 2020; Boonpramuk et al. 2019; Fiser and Zítek 2019). Numerous physical process systems are denoted by nonlinear models. Examples incorporate drag on a vehicle in movement, chemical reactor, coulomb friction, robotic manipulator, electrostatic and gravitational attraction, electrical or electronics characteristics, etc. Recently, many researchers from such abovementioned broad area have revealed an intense concern in the modeling and examination of nonlinear control strategies. However, the main challenges force constantly striking into nonlinearities (Iqbal and Ullah 2017). Main causes behind the increasing concern in nonlinear control cover are investigations of strong nonlinearities, advancement of linear control systems, and requirement of dealing with model changes and design simplicity. PID controller is broadly employed in several industrial applications due to its simple design and structure. However, it is a challenge to obtain the desired control performance in the appearance of time delays, anonymous nonlinearities, disturbances as well as variation in system parameters. In this era, several control techniques have been invented for the industrial application. Though PID controller appeared as the simplest and usually accepted classical controller (Goud and Swarnkar 2019a, 2018; Rajesh and Dash 2019; Khan et al. 2019; Gaidhane et al. 2019; Salman and Jafar 2019; Khanduja et al. 2019). PID control tuning is the mathematical and practical procedure for obtaining the optimized value of controller parameters. Conventional controller tuning provides reliable and adequate action for linear time-invariant systems (Dubey et al. 2021; Goud et al. 2021; Swarnkar and Goud 2021; Ekinci and Hekimoglu 2019; Goud and Swarnkar 2019b).

Though, as the process is conducted in the limit enough nearly to a given set point, it cannot guarantee to perform well with fluctuations in set points or environmental conditions. Controller using online tuning for nonlinear systems should adjust variations in the variable and transfer them to control technique such that the performance of the control system is not degraded in spite of variations in the environment changes (Erol 2021; Feng et al. 2021; Jayaswal et al. 2021; Ghosh et al. 2021; Goud and Swarnkar 2019c; Swarnkar and Goud 2020; Noordin et al. 2021; Guo et al. 2021; Pongfai et al. 2021; Gopi and Reddy 2015).

In this investigation, an attempt is made to carry out a comparative analysis of offline and online PID tuning techniques for the unstable system. Pure unstable modes normally occur in the system such as an inverted pendulum system and flight system. Both classical and advanced online PID tuning methods are employed on unstable system to obtain satisfactory performance. The rest of this book chapter is ordered as follows: Sect. 22.2 illustrates the unstable system model. Section 22.3 explains the classical control action. Section 22.4 summarizes classical modes of PID tuning. Section 22.4 describes the online controller tuning for unstable system. Eventually, a short conclusion is discussed in Sect. 22.5.

22.2 Unstable System Model

Controller design of unstable systems could be tried applying many of the techniques suitable to the usual stable system but the outcomes may not be adequate. Controller design for stable system is based on various linear opinions when applied to unstable system practically may fail. This situation, accordingly, requires the sensible and accurate design of the controller. The system, which is now used for the investigation of controllers, is the third-order unstable system with feedforward transfer function shown in Eq. (22.1) (Swarnkar and Goud 2021, 2020).

$$G(s) = \frac{1000}{{(1 + 0.01s)(0.01s^2 + s)}}$$
(22.1)

and feedback transfer function H(s) = 1.

The step response of the plant without any controller is exhibited in Fig. 22.1.

Fig. 22.1
figure 1

Time response characteristic of third-order unstable system (Swarnkar and Goud 2021, 2020)

It can be remarked that oscillations of the system are rising with time and becoming the system unstable. In an unstable system, the amount of overshoot is closely related to rise time. Unexpectedly, the higher the rise times more the overshoots, which is opposed to the cause of stable plants. Bode plot is given for the loop transfer function in Fig. 22.2. The gain crossover frequency (ωg) is calculated as 200 rad/sec whereas the phase crossover frequency (ωp) is calculated as 100 rad/sec. The phase and gain margins measured by the plot are −37° and −13.9 dB, respectively. A negative sign of margins reveals the instability of the system. To check the stability range with respect to feedforward gain of the system, the root locus plot is also shown in Fig. 22.3. This plot shows very small stability range for the plant under consideration. System becomes marginally stable for feedforward gain of 0.2 only, and beyond this system becomes unstable.

Fig. 22.2
figure 2

Bode plot for third-order unstable system (Swarnkar and Goud 2021, 2020)

Fig. 22.3
figure 3

Root locus plot for third-order unstable system (Swarnkar and Goud 2021, 2020)

The traditional and advanced online control techniques are now used to examine their applicability and usefulness for such uncontrolled plant (Swarnkar and Goud 2021, 2020).

22.3 Classical Control Action

All standard design control methods are beneficial for PID controllers. Some novel approaches are also revealed to evaluate parameters for PID controllers and these approaches are often called tuning techniques. The most popular offline tuning methods are invented by Ziegler–Nichols (ZN). By using proper tuning techniques, errors can be overcome and output can move toward given desired value. In some circumstances, where the system has a notable amount of instability, the traditional tuning techniques are unsuccessful to give an excellent solution. A schematic diagram of PID control operation is revealed in Fig. 22.4.

Fig. 22.4
figure 4

A schematic diagram of PID control action (Swarnkar and Goud 2020, 2021)

In conventional control, once these parameters are decided then they remain fixed throughout the process irrespective of the variations in the system. In PID controller, the control signal generated by the controller is defined by Eq. (22.2).

$$u(t) = K_p e(t) + K_i \int {e(t)dt} + K_d \frac{de(t)}{{dt}}$$
(22.2)

The transfer function of PID controller is defined in Eq. (22.3).

$$G_{PID} (s) = \frac{U(s)}{{E(s)}} = K_p + \frac{K_i }{s} + sK_d$$
(22.3)

where \({\mathrm{K}}_{\mathrm{p}}\) is the proportional controller parameter, \({\mathrm{K}}_{\mathrm{i}}\) is the integral controller parameter, and \({\mathrm{K}}_{\mathrm{d}}\) is the derivative controller parameter, e(t) is the error signal, and u(t) is the control signal. These gains fix the role of each individual controller in the process. Correct choice of these gains is actually the base for the perfect controlling (Albertos et al. 1997; Fiser and Zítek 2019; Goud and Swarnkar 2019b). For the nonlinear system, the measurement of these parameters is a challenging assignment. This book chapter highlights the importance of classical and advanced (online) tuning techniques. As these techniques calculate the values of Kp, Ki, and Kd based on their previous values, the next section describes the mathematical model of its execution.

22.3.1 Classical PID Tuning

A traditional tuning method for PID controller was invented by ZN known as Pessen Integral Rule (PIR). The procedure for tuning PID gains using PIR is similar to the procedure of ZN PID tuning. Traditional techniques are offline methods, once the controller gains are set cannot be adjusted during the process which can be overcome by using smart or online techniques.

The steps for getting controller gains using PIR are as follows:

  • Put \(K_d = 0\) and \(K_i = 0\), system is proportional.

  • Take the characteristic equation and by using Routh criteria find the value of \(K_p = K_u\).

  • Using characteristic equation and Routh criteria find the value of Tu.

  • Find out the values of controller gains using Table 22.1 (Pongfai et al. 2021).

    Table 22.1 PID tuning using Pessen integral rule (PIR) (Pongfai et al. 2021)

22.3.2 System Response with Classical PID Tuning

The time response characteristic of the unstable system controlled with PIR technique is shown in Fig. 22.5. Remarkable improvement in system characteristic can be examined with the use of PID controller. The performance of the unstable system is examined in terms of rise time, peak time, settling time, and overshoot. By using the PIR-PID tuning approach highest overshoot is reduced to 56.9987% and settling time to 0.1357 s. which is comparatively better than unstable system. Table 22.3 shows the values of the PID controller parameters obtained by various tuning techniques. Figure 22.6 shows the Bode plot of system with PIR technique in which calculated values of phase margin and gain margin are positive that shows system is stable and that parameters are summarized in Table 22.2.

Fig. 22.5
figure 5

Time response characteristic of third-order unstable system using PIR tuning technique

Fig. 22.6
figure 6

Bode plot for third-order unstable system using PIR tuning technique

Table 22.2 Bode plot parameters of different PID tuning
Table 22.3 PID parameters obtained by advance (online) and classical PID tuning for unstable system

22.4 Online Controller Tuning for Unstable System

The offline conventional method has improved the performance of the system under consideration which can be further improved by advanced online tuning techniques. This section presents the controlling of unstable system using advanced online tuning methods and “SISOTOOL” in the Control System Toolbox, PID tuner block, and signal constraint box. Finally, results will be compared for all tuning methods.

22.4.1 Controller Design with SISOTOOL:

“SISOTOOL” is one of the advanced features in the Control System Toolbox in MATLAB that facilitates software-based controller configuration for single-input single-output (SISO) systems. A typical design workflow with the SISOTOOL involves the following steps:

  • Run the transfer function of an inherently unstable system in the editor or command window of MATLAB.

  • Type “SISOTOOL” at the command prompt.

  • A new window SISO design task is open.

  • Import the system model (transfer function) of an inherently unstable system.

  • Design controllers using Linear–Quadratic–Gaussian (LQG) synthesis design method in automated tuning and update compensator.

  • Now Eq. (22.4) of compensator is found.

Now click on show analysis plot and investigate control system designs using frequency-domain responses and time domain such as step response (Fig. 22.7) and bode plot (Fig. 22.8). Time response characteristic reveals the remarkable change in performance with the higher overshoot as decrease as 46.2%. In Bode plot the gain and phase margins calculated by the graph are positive which indicate the stability of the system. Observations by Bode plot are summarized in Table 22.2, where the results are compared with conventional tuning method also.

$$Compensator = 0.40446 \times \frac{(1 + s)(1 + 0.012s + (0.0064s)^2 )}{{s(1 + 0.0015s)(1 + 0.0014s + (0.0017s)^2 )}}$$
(22.4)
Fig. 22.7
figure 7

Time response graph with tuned LQG synthesis tuning technique

Fig. 22.8
figure 8

Bode plot with tuned LQG synthesis tuning technique

22.4.2 PID Tuning with Signal Constraint Box

In this method of online tuning, the desired output characteristic is defined in advance and controller is tuned for obtaining this characteristic. Following steps are adopted for performing tuning using signal constraint box in MATLAB.

  • Open PID controller box and assign the controller gains in the form of variables only, i.e., Kp, Ki, Kd.

  • Open signal constraint box and set the limits of output waveform as shown in Fig. 22.9.

    Fig. 22.9
    figure 9

    Time response characteristics for different sets of controller gains

  • Go to optimization block then Tuned parameters and add the variables one by one.

  • Assign the initial guess to each variable.

  • Run the system and start the optimization.

The system performance is checked for different set of controller gains. After iteration the best possible set of controller gain is chosen for getting the desired performance of the system. Figure 22.9 shows the number of iterations with the time response characteristics for different sets of controller gains. Finally, the feasible or optimal solution provided by this tuning within the specified tolerances defines the controller gains as shown in Table 22.3.The time response characteristic with this optimal set of controller gains is shown in Fig. 22.10. It is obvious from the characteristic that system becomes stable with reasonable specifications. The maximum overshoot is limited to 11.35% with settling time 0.225 s which shows the great improvement in performance as compared to conventional offline tuning method.

Fig. 22.10
figure 10

Time response characteristic for optimal values of controller gains

22.4.3 Controller Design with Online PID Tuner

PID tuner in MATLAB gives a quick and extensively used single-loop PID tuning approach for the Simulink. This technique is employed to tune controller parameters to obtain a strong PID controller design with the required reaction time. A common design step with the online tuner includes the subsequent steps:

  • Start the PID tuner.

  • When import, the MATLAB software calculates a model from the designs of Simulink model and primary controller.

  • Tune the parameters in the Graphical User Interfaces (GUIs), by manually fixing design rules in two design approaches.

  • The tuner calculates controller parameters that strongly sustain the system.

  • Export the parameters of the designed controller following the PID controller and validate controller performance in Simulink (Gopi and Reddy 2015).

After performing the tuning using PID tuner, controller gains are obtained as shown in Table 22.3.The time response characteristic of the given unstable system with this tuned PID controller is shown in Fig. 22.11. Characteristic shows the remarkable improvement in performance with maximum overshoot as low as 7.13%. This not only makes the system stable but making it convenient for all practical applications. Bode plot of such system is revealed in Fig. 22.12. Graph shows that the system is having both the margins positive with sufficient magnitudes.

Fig. 22.11
figure 11

Time response of unstable system with auto-tuned PID controller

Fig. 22.12
figure 12

Bode plot for the system tuned with online PID tuner

Unstable system is not only showing the bonded output but performance is also quite satisfactory with the adaptive schemes. The performance of the system based on time response specifications is summarized in Table 22.4 which shows the importance of suitable tuning of controller for obtaining the optimal performance of uncontrolled system. Performance of such conventional controllers can be used to understand complex behaviors of the system. PIR response yields higher overshoot which can be slightly overcome by using tuning using Control System Toolbox. The analysis of Control System Toolbox for the design of compensator used in LQG synthesis reveals that tuning technique used is robust toward uncertainty in system parameters and it can be strongly executed to any process industries.

Table 22.4 Step response specification of different PID tuning

22.5 Conclusion

Conventional PID controllers are suitable for performance improvement of stable system while controlling the unstable system which is the challenging job for controllers. If the calculated values of phase and gain margins are negative with large magnitudes for unstable systems, then the performance improvement of such system is not feasible for traditional rigid gain controllers. Tuning of PID controller is a tedious task for such an unbounded plant. With detailed simulation studies this work presents the design and implementation of traditional and advanced online tuned PID controller for controlling the highly unstable system. It is found that an unstable system is not only giving the bonded response but performance is also quite satisfactory with the suitable adaptive control. The performance of such traditional controllers can be employed to examine the complicated behavior of the system. PIR response produces a larger maximum overshoot which can be insignificantly reduced by applying LQG synthesis. The settling time (0.0379 s) and overshoot (46.2%) are under the prescribed limit with LQG synthesis tuning method. The performance of the unstable system is further enhanced with the employment of online advanced tuning techniques. The online PID tuning techniques exhibit that appropriate tuning procedure can not only drag one unstable system toward stability but can also improve its performance to large extent.