In this section, the proposed tool has experimented on two different industrial processes such as the liquid level control and pressure control. The experiment was conducted on a personal computer running windows 10 pro 64-bit operating system with hardware configuration of Intel(R) Core(TM) i5-7200U CPU @ 2.5 GHz.
5.1. Example 1: Interacting a Two Tank Liquid Level System
The liquid level system shown in
Figure 7 was considered for validating the proposed tool [
4]. This is one of the commonly used real-time examples of the chemical process [
37]. In a liquid level system, at steady state, the inflow rate and outflow rate are equal to
. The flow rate between the two tanks is also zero and the heads of the tank 1 and tank 2 are equal to
. At time
t = 0, the inflow rate is changed from
to
, where
q is small. The resulting changes in the heads (
) and flow rates (
) are assumed to be small as well. The capacitances of tank 1 and tank 2 are
respectively. The resistance of the valve between the tanks is
R1 and the outlet valve resistance is
R2.
From
Figure 7, the transfer function between liquid level
H2(
s) and inlet flow rate
Q(
s) is derived and given in (33).
In order to understand the effect of the dead time in the process output, five seconds in dead time was introduced in the derived transfer function. Let
R1 =
R2 =1;
C1 =
C2 = 1. Now the resulting transfer function is given in (34):
It is a minimum phase stable system. Let us consider that the level control system is time critical and it is required to control the second tank level
h2(
t) by manipulating the inflow rate
q(
t). Since it is required to control
h2(
t) using the RTD-A controller, the actual system in Equation (34) is reduced into the FOPDT system. The three methods in Tool-I were used to obtain the FOPDT model of the process. The result of each method is presented in
Table 3. The accuracy of the reduced model in terms of the integral square error (ISE) performance measure was also compared. It was found that the fraction incomplete method based model was more accurate for this interacting liquid level system. Hence, in this section, the remaining analysis was carried out with the obtained accurate reduced model in (35).
The open loop response of a reduced order model is displayed in
Figure 8. The fraction incomplete method-based model response was very much closer to the actual second order process response than other methods [
4]. The implementation of the RTD-A controller with a simulation tool on the liquid level control is shown in
Figure 9. The performance of the RTD-A controller with two tuning algorithms and the PID controller was examined in controlling the
h2(
t) without uncertainties and disturbance. The structure of the PID controller transfer function used is given in (36). The PID tuning parameters proportional gain (
KP), integral gain (
KI), derivative gain (
KD) and filter co-efficient (
Tf) used in the simulation were determined using the auto tune function in MATLAB.
The tuning parameters for the process with uncertainty and disturbance using two tuning rules are given in
Table 4. The sampling time of 0.1 s was considered in the controller implementation. The PID auto tuned values were
KP = 0.496,
KI = 0.116,
KD = −0.857 and
Tf = 0.128. The setpoint for
h2(
t) was considered as one meter. The servo response with the PID and RTD-A for zero uncertainty and zero disturbance is shown in
Figure 10. Similarly, the servo response with RTD-A tuned using the optimization algorithm is shown in
Figure 11.
The efficiency of the proposed tool was examined by adding the uncertainty parameter (
) and disturbance to the plant. The RTD-A and PID controlled servo response with disturbance and uncertainty are shown in
Figure 12 and
Figure 13. The RTD-A controller requires values for the sampling time, noise and uncertainty parameter as an input. The tool II was provided with the same input parameters for comparing the two different tuning algorithms. Whenever the user chooses the tuning rule, the tool will acclimate to the chosen tuning rule. In
Figure 12, the response with the Ogunnaike tuning method was more susceptible to noise and also it exhibited a more aggressive controller response. It had some overshoot as compared with the Kariwala tuning method. The process response with the first method deviated more from the setpoint and this deviation increased further with the increase in the uncertainty parameter (
λ). The Kariwala, tuning method was more flexible with respect to the controller aggressiveness and uncertainty. The response with PID had more rise and settling time with less overshoot and control variation than the Ogunnaike method. In
Figure 13 the servo response with optimal tuned parameters after adding uncertainty is shown.
The disturbance rejection ability of the RTD-A controller was experimented and the regulatory response without optimally tuned parameters is shown in
Figure 14. In
Figure 15, the response with disturbance rejection is shown for some optimally tuned values. The disturbance of 20% of setpoint was applied to the process at 50 s. It was found that all the controllers were able to reject the disturbance effect on the process output.
The unit step change in setpoint was applied to the closed loop system and time response was obtained. The time domain specifications could be calculated from the step response of the closed loop system using the stepinfo command in MATLAB. The RTD-A controller performance for two tuning rules and optimal tuning was compared in terms of the integral absolute error (IAE) and other time domain specifications with PID performance and it is presented in
Table 5. In this example performance with RTD-A was better than PID. Between the first two tuning rules, the Kariwala tuning rule-based process response had a good performance compared to the Ogunnaike tuning method excluding the rise time. However, in the overall comparison the firefly algorithm-based result was slightly better than the other methods.
The execution time of the RTD-A and PID controller implementation for the servo response of level control without uncertainty was 0.034279 s and 0.062699 s respectively. Similarly, 0.070815 s and 1.048175 s with 10% uncertainty on process parameters when the simulation time was 100 s.
The Tool-III was applied to the liquid level control system and the effect of the tuning parameter on the process output was analyzed. Each parameter can be changed with the slider and even small changes in the process output can be realized. In Example 1, the
θR,
θT and
θA values were changed and the output of the plant with respect to time was plotted. The output of Tool-III for Example 1 with sequential changes in setpoints (SP = 1 m, SP = 5 m and SP = 2 m) is shown in
Figure 16,
Figure 17 and
Figure 18.
In
Figure 16 the process response rise time decreased and settling time increased as the
θR approaches unity. The response was robust as the
θR value was small. The effect of the setpoint tracking parameter on the process output is shown in
Figure 17. The response became sluggish and the settling time increased as the
θT approached unity. In
Figure 18, as the
θA value approached 1, the response was moving away from the desired set point. Therefore, for the lesser value of
θA, the process output was closer to the desired level. Similarly, the process output reached the set point very quickly without overshoot as the parameter
θA was small.
Tool-IV experimented with the liquid level control system. The objective of the optimal control problem was to minimize the error between the setpoint (
yd) and actual process output (
yp). Therefore, the integral absolute error (IAE) cost function in (37) was chosen for both example 1 and example 2. During this optimal tuning process, an output disturbance was also considered with ±10% random variation.
The number of iterations and swarm size used in the optimization is tabulated in
Table 6. The additional parameters required for PSO and firefly algorithms are listed in
Table 7. The algorithm parameters were chosen based on a certain number of trial runs for the smooth convergence. The same settings were used in the Example 2 experimentation. The optimal tuned values obtained from the tool are listed in
Table 8. These values could be used in Tool-II to plot the closed loop response when needed. Here, these values were used to control the liquid level process. The liquid level response is shown in
Figure 11 and
Figure 13. As mentioned earlier the overall performance was compared with other methods in
Table 5.
5.1.1. Example 1: Closed Loop Stability Analysis
The stability of the closed loop liquid level control and pressure control with the RTD-A controller was checked according to Ogunnaike et al. and Kariwala et al. [
11,
12]. The stability analysis concept in the state variable form was discussed in
Section 2.1.1. It is necessary that the roots of the characteristics equation in (17) should lie within the unit circle for closed loop stability. The roots of the liquid level control characteristic equation in the state variable form were calculated using (17) for different tuning methods and listed in
Table 9. The location of roots in the
z-plane was plotted and shown in
Figure 19. Since all the roots were located inside the unit circle, the system was stable for all tuning methods.
The stability could also be analyzed on the basis of the Jury’s stability criterion discussed in 2.1.2. The coefficients
c0 and
cn were calculated using (21) and (22). The value of the polynomial
P(
z) when
z = 1 and
z = −1 was calculated according to (18). The
θref value also was calculated to check the stability in terms of
θR using (25). The calculated values are tabulated in
Table 10. The value of
cn = 51,164,
θref = 0.07 and the order of
P(
z) was an even number. The necessary conditions in (20), (23), (24) and (25) were checked for stability. It was found that all the conditions were satisfied for closed loop stability for the calculated tuning values. Therefore, the designed RTD-A controller ensured closed loop stability in liquid level control. A similar analysis was done for pressure control in
Section 5.2.1.
The open loop gain margin (GM) of the liquid level process was 4.1 dB and the closed loop GM with PID was 5.86 dB. Thus the closed loop stability with PID would be ensured by choosing the proportional gain value less than open loop gain margin value.
5.2. Example 2: Pressure Control System
A pressure control station is shown in
Figure 20. The FOPDT model for pressure process was found using the black box modeling technique [
38]. The corresponding first order process model is given in (38):
The servo performance of the real-time system model without uncertainty was analyzed with the proposed tool and PID controller. The implementation of the controller with the simulation tool on pressure control is shown in
Figure 21. The tank pressure
P(
t) was to be controlled by adjusting the outlet flow air flowrate
Qout(
t). All four parameters were tuned using the Tool-II and -IV. The tuned values are listed in
Table 11 and
Table 12 respectively. The control objective of the optimal control problem was to reduce the error between the desired pressure and actual pressure. The IAE cost function given in (37) was used to determine the optimal tuning values of RTD-A.
During this optimal tuning process, an output disturbance was also considered with ±10% random variation.
The PID controller tuning values obtained from the auto tune function in MATLAB were KP = 1.373, KI = 0.143, KD = −0.178 and the filter co-efficient (Tf) = 0.115.
5.2.1. Example 2: Closed Loop Stability Analysis
The roots of the characteristics equation of pressure control process were calculated for different tuning methods using (17) and listed in
Table 13. The location of roots in the
z-plane is shown in
Figure 22. It was observed that all the roots were located inside the unit circle. As mentioned in
Section 5.1.1, the Jury’s stability test was performed on the pressure control process. The value of
P(
z) for
z = 1 and
z = −1,
θref, coefficients
c0 and
cn were calculated using (18), (21), (22) and (25). The values are tabulated in
Table 14. The calculated values were checked for stability necessary conditions in (20) and (23)–(25). The value of
cn = 1.5929e + 07,
θRef = 0.3295 and the order of
P(
z) was an odd number.
It was found that the RTD-A tuning parameter satisfied all the necessary conditions for the closed loop stability. It is guaranteed that pressure control will be stable with the RTD-A controller.
The gain margin of the open loop pressure system was 35.3 dB and the closed loop gain margin with PID was 24.1 dB. The closed loop stability with PID is guaranteed if the proportional gain is chosen less than the maximum open loop gain margin value.
The setpoint 53 psi was considered for the pressure control process. The RTD-A and PID controller tuned values were used to control the pressure process. The servo response with RTD-A for a different tuning method and PID is shown in
Figure 23. The pressure response with RTD-A using optimization algorithms is shown in
Figure 24.
The execution time of RTD-A and PID controller implementation for the servo response of pressure control was 0.047388 s and 1.643077 s respectively when the simulation time was 100 s and sampling time was 0.1 s.
The regulatory response of the pressure control process without optimally tuned values and with optimally tuned values is shown in
Figure 25 and
Figure 26 respectively. The setpoint 50 psi was considered in the investigation of disturbance rejection ability. The 10% of setpoint was applied as the disturbance to the process at 50 s in
Figure 25 and at 25 s in
Figure 26. The disturbance rejection ability of the optimally tuned RTD-A controller was better than the other method.
The overall performance comparison for example 2 is done in
Table 15. There was no noticeable difference in the performance of pressure control among the optimally tuned responses excluding GSO. The pressure process works better with the optimal tuning method in terms of IAE and other time domain performance measures. The response with the Kariwala tuning method took longer for the settling time and less rise time than the Ogunnaike tuning. A steady state error was almost zero in all the methods. There was a minimum overshoot in the response with the optimal tuned values, but the percentage overshoot in the Ogunnaike and Kariwala method was absolutely zero. The performance with RTD-A was better than PID in pressure control.
Overall, in a liquid level control system, the firefly optimization tuned response was better than other methods. The genetic algorithm tuned response was better than other methods excluding percentage overshoot in the pressure control process.