Introduction

Liquid level control is extensively utilized in modern manufacturing processes, such as pharmaceutical system and petrochemical processing plant, wastewater treatment system, filtration, food processing, nuclear power production, and many others. Controlling the liquid level with the least amount of error or tracking the desired level in a QTS is a very difficult problem due to the nonlinear dynamics behavior and the uncertainties presented by the environment1. QTS is a particular group of unstable non-minimum phase MIMO (multiple inputs, multiple outputs) system. In practice, the implementation of regulators for a non-linear MIMO systems is far more complicated than for a SISO (single input, single output) systems, due to variations in process dynamics that typically result from the changing of operating points, as well as from interacting loops based on gate valve ratio, in which each controlled variable affects more than one or all of the controlled variables. Moreover, QTS is susceptible to physical changes due to gradual deterioration or deformation of some components. A perfect liquid level regulation plays a very significant role in these nonlinear systems in view of the economic operation. For this reason, quite a few researchers have worked on it2. To reach the desired operating points as quickly as possible and maintain a stable level condition in tanks, numerous regulators have been developed for liquid level regulation of QTS. Among them we note, for example proportional integral differential (PID) regulator3, adaptive regulator4, backstepping regulator5, sliding mode regulator6, active disturbance rejection regulator7, fuzzy regulator8, predictive regulator9, linearized feedback regulator10and fractional order regulator11.

Some of these regulators, such as predictive and backstepping regulators are a model-based design approach and necessitate prior knowledge of QTS. On the other hand, a complete QTS system usually comprises of valves, sensors, conduits, pumps, reservoirs, and a few electrical and mechanical parts. During operation, and depending on the requirements, the valves can modify the opening, or the type of liquid in the reservoir can vary. Furthermore, some parameters may still be unknown in certain cases, for example the dimension, the discharge ratio of the valves, and the source voltage of the pump. As a result, developing a precise mathematical model for QTS is difficult. However, the Fuzzy regulators developed using a mathematical modelling approach are model-independent regulators12, allowing the QTS to be controlled without the need of decoupling, having as a logical basis the behaviour of the QTS at each of its stages. This makes the Fuzzy regulator a useful regulator for QTS. Most of the Fuzzy regulator applications have taken into account a Type-1 Fuzzy Logic System (T1-FLS). Nevertheless, T1-FLS is sometimes not satisfactory to overcome uncertainties because its membership functions (MFs) are completely crisp. Further, in 1975, a new breakthrough structure, known as Type-2 Fuzzy Sets, was originally designed to the regulator field by Zadeh13 as a branch of Artificial Intelligence (AI) tools to deal with uncertainty in inputs, outputs, and decisions due to their many adjustable parameters, that make them useful for control applications, where the MFs have a fuzzy interval shape14, which is discussed in Cao et al.15.

The Type-2 Fuzzy regulator offers enhanced performance compared to the Type-1 Fuzzy regulator and has been utilized in different engineering fields such as automatic redundant control16, power system stabilizer (PSS) control17, aircraft flight control18, permanent magnet synchronous motor control19, automatic generation control of diverse energy source-based multiarea power system20, etc. Moreover, integrating the Type-2 Fuzzy regulator with Fractional Order Calculus (FOCs) can improve its efficiency21.

Over the past 20 years, FOCs has become more and more important in the design of advanced and resilient FO-T2F-PID regulators. This has increased the system’s performance and robustness in the face of plant uncertainties due to the adoption of fraction-orders (FOs) of integrals and derivatives22,23. Applications for FO-T2F-PID regulators are many and include structural seismic control24, active suspension (AS) control25, pumped storage unit (PSU) control26, and wind turbine control27. The literature shows that adding FOCs to a Type 2 Fuzzy regulator can increase the stability of the feedback control system. Thus, combining FO terms with a Type 2 Fuzzy regulator will expand the search possibilities and increase the flexibility of the regulator. This feature motivated to design FO-T2F-PID regulator for the system under study which is highly uncertain and non-linear system. The primary contribution of this article is that it is the first to suggest an examination of the FO-T2F-PID regulator for QTS control, which lowers the control effort and improves the accuracy of monitored water levels. In order to apply the FO-T2F-PID regulator to QTS and exploit its distinct advantages in these systems, the Takagi–Sugeno–Kang (TSK) method is utilized. Fine-tuning of the FO terms and regulator parameters are the basic requirements for an effective control strategy. Therefore, the development of optimization tools can simplify the tuning of these parameters 28.

In the last few decades, some scientists and academics have suggested a variety of evolutionary and heuristic optimization methods in order to address the optimization issues of benchmark and practical applications29. Here are the most popular among them: the grey wolf optimizer (GWO)30, particle swarm optimizer (PSO)31, cuckoo search optimizer (CSO)32, ant colony optimizer (ACO)33, bacterial foraging optimizer (BFO)34, hybridized harmony search-random search algorithm (hyHS-RSA)35, crow-search algorithm (CSA)36, pelican algorithm (PA)37, golden eagle algorithm (GEA)38, improved cooperation search algorithm (I-CSA)39, spider wasp algorithm (SWA)40, and random walk aided artificial rabbits algorithm (RW-ARA)41.

GWO is a meta-heuristic intelligent optimization method inspired by the social structure and hunting tactics of grey wolves in the wild. The benefits of this optimizer include increased flexibility, reduced optimization settings, strong adaptability, and simplicity of implementation. Recently, an improved version of GWO has been developed with more exploration capabilities, called Augmented-GWO (A-GWO). However, in some cases, the performance of A-GWO is very poor at the exploitation stage and remains stagnant at the local optimum. Conversely, CS is a population-based search technique that draws inspiration from the distinctive nesting habits of Cuckoo birds. Multiple research studies have shown that the CS favours global exploration42. CSs have been extensively combined with other optimizers to increase their capacity to avoid local optima43. The selection of optimizer depends on the control objectives and the specific features of the system, and a mixture of diverse optimizers may be indispensable to attain the desired performance44.

In contrast to conventional optimization techniques, a new hybrid optimizer called Hybrid A-GWOCSO algorithm is developed in this article, which effectively achieves global optimization with minimal computation time by combining the best features of two bio-inspired evolutionary optimization (AGWO & CS). The new hybrid A-GWOCSO algorithm combines the exploitation capabilities of A-GWO with the exploration capabilities of CS. So, this research suggests a hybrid A-GWOCSO technique to select the best parameters in FO-T2F-PID regulator. As far as we know, there has been no effort to extract the gains of the FO-T2F-PID regulator by hybridizing A-GWO and CS. This effective tuning method along with the Type-2 Fuzzy embedded FO-PID regulator increases the effectiveness of the suggested control method in regulating the water level of QTS.

Hardware-in-the-loop (HIL) Co-Simulation is a type of real-time simulation in which a specific component of hardware interfaces interacts with a mathematical model or simulation environment. Using HIL application reduces costs, testing times and dangerous scenarios, since it is built on an interactive simulation and it is piloted by a process or regulator operating on a digital platform that interacts with the regulator or real process31.

Research gap

Despite extensive research on the control of QTS, there are still many research gaps and open challenges. Here are some potential research gaps in the control of QTS:

  • Most existing control strategies for QTS concentrate on linearized models or assume near-linear behavior. However, the QTS displays considerable nonlinearities, particularly at extreme operating points.

  • Many of the above control strategies have only been validated in simulation, with limited consideration of real-time implementation constraints, such as computational delays, sampling rates, or hardware limitations.

  • Existing control strategies often focus on a single objective (e.g., stability or set-point tracking), neglecting trade-offs between competing objectives (e.g., control inputs, robustness, and performance).

  • Although the FO-T2F-PID regulator has been extensively employed in the control of various systems, experimental confirmation of its usage in QTS is still limited.

  • Hybrid A-GWOCSO method is essential for the reliable control of QTS, but its integration with FO-T2F-PID regulator for QTS control is still largely unexplored.

Motivation and contribution

Being able to effectively control liquid levels in multiple tanks simultaneously is crucial for the efficiency and safety of QTS. If the levels aren’t properly controlled, it can lead to overflow, undersupply, or other malfunctions. In addition, there might be constraints on the inputs, like the flow rates being limited, or delays in the system due to the time it takes for liquid to move from one tank to another. These factors can complicate the control strategy of QTS. To fulfill the above-mentioned goals, suitable control technique should be developed to deal with these challenges. Amongst the many regulators suggested in the literature, FO-T2F-PID regulator is the one that is most frequently utilized. Due to a variety of FO-T2F-PID regulator gains, the Hybrid A-GWOCSO method is employed to obtain the best results and the most effective solutions. Many researchers have suggested the Hybrid A-GWOCSO to optimize the regulator gains, though it takes more time and becomes stagnant while searching for the global optimum. The Hybrid A-GWOCSO is utilized in the study since the optimized FO-T2F-PID regulator has not been investigated extensively. The important contributions of this article are as follows:

  • Novel regulator design: This research proposes a new control system that combines the advantages of Fuzzy Type 2 and FOCs in a single regulator called HO-FO-T2F-PID that effectively handles modelling and parameter uncertainty in QTS, providing a more robust and adaptable solution.

  • Real-time implementation: This article uses HIL technology to simulate the application of an OH-FO-T2F-PID regulator on a QTS, which allows us to evaluate the effectiveness of the recommended controller in real-time application. Additionally, the performance of the recommended regulator will be compared with that of the OH-FO-T1F-PID and optimized ADRC regulators, and the Hybrid A-GWOCSO method was also used to adjust each regulator under study.

  • Noise sensitivity reduction: The HO-FO-T2F-PID regulator can smooth out its response to sudden changes in the liquid level, thereby reducing the impact of high-frequency noise. This results in smoother QTS performance.

  • Significance and advancement of the field: This study contributes significantly to the development of the field of QTS control, presenting a robust, flexible and high-performance control strategy that fills the gap between theory developments and real-world application.

  • Advanced optimization using Hybrid A-GWOCSO method: Exploiting the newly developed meta-heuristic optimization algorithm (i.e. AGWO and CS) to precisely adjust the parameters of the suggested HO-FO-T2F-PID regulator. The capability of the hybrid A-GWOCSO to balance the exploration and exploitation stages leads to improved statistical outcomes compared to 23 other metaheuristic methods.

  • Excellent performance: A fair performance comparison with the OH-FO-T1F-PID and optimized ADRC regulator has proven the superiority and competence of the proposed OH-FO-T2F-PID regulator in terms of response time, accuracy, and robustness, especially under different working situations and disturbances.

Work structure

The organization of the study is as follows: Section “Description and structural model of QTS” describes the QTS modelling procedure. Section “Regulator construction” gives a comprehensive overview of the suggested control strategy, which includes FOCs and Fuzzy Type 2. Section “Hybridized algorithm for regulator parameter tuning” discusses the proposed hybrid A-GWOCSO algorithm, which is used to adjust the coefficients of the considered regulator. Section “Statistical evaluation of the proposed hAGWOCS method” presents the quantitative and qualitative analysis, along with a statistical comparison of the proposed Hybrid A-GWOCSO with 23 recently reported optimizer. Sections “Simulation tests” and “HIL experiment validation” discuss and analyze the outcomes obtained from simulations and HIL Co-Simulation, respectively. Finally, Section “Conclusion and future scope” provides the general conclusion of the study and discusses the suggested method’s contribution to improving the QTS control with the future works.

Description and structural model of QTS

The schematic of the structural model of the QTS under consideration is illustrated in Fig. 1. The system contains two variable speed pumps (called Pump 1 and Pump 2) driven by DC motors to move water from the liquid basin to four overhead tanks located in the same area. The tanks located above (designated as Tank 3 and Tank 4) freely empty into the tanks located below (denoted as Tank 1 and Tank 2). Level sensors detect the water levels in these two lower tanks (designated as h1 and h2) and provide an output signal proportional to the liquid level. The motor terminal voltage (v1 and v2) determines the flow rate delivered by each pump.

Fig. 1
figure 1

A complete representation of QTS.

The goal is to adjust the voltages supplied to pumps 1 and 2 (represented by v1 and v2) so that the liquid levels in the two inferior tanks converge to their corresponding reference levels (represented by hd1 and hd2). This article does not address the control of liquid levels in the overhead tanks marked as h3 and h4. The differential equations below describe the dynamic equations of QTS with respect to mass balance and Bernoulli’s laws:

$$\left\{ {\begin{array}{*{20}l} {\frac{{dh_{1} }}{dt} = - \frac{{a_{1} }}{{A_{1} }}\sqrt {2gh_{1} } + \frac{{a_{3} }}{{A_{1} }}\sqrt {2gh_{3} } + \frac{{\gamma_{1} k_{1} }}{{A_{1} }}v_{1} + \sigma_{1} } \hfill \\ {\frac{{dh_{2} }}{dt} = - \frac{{a_{2} }}{{A_{2} }}\sqrt {2gh_{2} } + \frac{{a_{4} }}{{A_{2} }}\sqrt {2gh_{4} } + \frac{{\gamma_{2} k_{2} }}{{A_{2} }}v_{2} + \sigma_{2} } \hfill \\ {\frac{{dh_{3} }}{dt} = - \frac{{a_{3} }}{{A_{3} }}\sqrt {2gh_{3} } + \frac{{\left( {1 - \gamma_{1} } \right)k_{2} }}{{A_{3} }}v_{2} } \hfill \\ {\frac{{dh_{4} }}{dt} = - \frac{{a_{4} }}{{A_{4} }}\sqrt {2gh_{4} } + \frac{{\left( {1 - \gamma_{1} } \right)k_{1} }}{{A_{4} }}v_{1} } \hfill \\ \end{array} } \right.$$
(1)

The area of the tank flow opening can be indicated by the coefficient ai, where i = 1, …, 4. The area of tank i can be indicated by the coefficient Ai, where i = 1, …, 4. The coefficient of pump can be represented by the variable kj, where j = 1, 2 (i.e., the water flow rate produced by pump j). The external disturbances caused by flow rate can be represented by σ1 and σ2.

Some other variables of the QTS can also be mentioned, such as the inflow to tank 1 (γ1k1v1), the inflow to tank 4 (1 − γ1). k1v1, the inflow to tank 2 (γ2k2v2) and finally the inflow to tank 3 (1 − γ2).k2v2. The symbol g stands for the gravitational acceleration.

The QTS is a minimum-phase system if the total water flow rates of the higher tanks are less than the comparable total of the lower tanks10 (1 < γ1 + γ2 < 2). Otherwise (0 < γ1 + γ2 < 1), the QTS is a non-minimum phase system. The state, input and output vectors of QTS are defined by x, u, and y, respectively.

$$x = \left[ {h_{1} h_{2} h_{3} h_{4} } \right]^{T} ,\quad u = \left[ {v_{1} v_{2} } \right]^{T} ,\quad {\text{and}}\quad y = \left[ {h_{1} h_{2} } \right]^{T} .$$

Therefore, the state-space equation for QTS becomes as follows:

$$\left[ {\begin{array}{*{20}c} {\dot{x}_{1} } \\ {\dot{x}_{2} } \\ {\begin{array}{*{20}c} {\dot{x}_{3} } \\ {\dot{x}_{4} } \\ \end{array} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - \frac{{a_{1} }}{{A_{1} }}\sqrt {2gh_{1} } + \frac{{a_{3} }}{{A_{1} }}\sqrt {2gh_{3} } } \\ { - \frac{{a_{2} }}{{A_{2} }}\sqrt {2gh_{2} } + \frac{{a_{4} }}{{A_{2} }}\sqrt {2gh_{4} } } \\ {\begin{array}{*{20}c} { - \frac{{a_{3} }}{{A_{3} }}\sqrt {2gh_{3} } } \\ { - \frac{{a_{4} }}{{A_{4} }}\sqrt {2gh_{4} } } \\ \end{array} } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {\frac{{\left( {1 - \gamma_{1} } \right)k_{1} }}{{A_{4} }}} & 0 \\ 0 & {\frac{{\gamma_{2} k_{2} }}{{A_{2} }}} \\ {\begin{array}{*{20}c} 0 \\ {\frac{{\left( {1 - \gamma_{1} } \right)k_{1} }}{{A_{4} }}} \\ \end{array} } & {\begin{array}{*{20}c} {\frac{{\left( {1 - \gamma_{1} } \right)k_{2} }}{{A_{3} }}} \\ 0 \\ \end{array} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {v_{1} } \\ {v_{2} } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {\sigma_{1} } \\ {\sigma_{2} } \\ \end{array} } \right]$$
(2)

Using the formula for measurement:

$$\left[ {\begin{array}{*{20}c} {y_{1} } \\ {y_{2} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {n_{c} } & 0 & {\begin{array}{*{20}c} 0 & 0 \\ \end{array} } \\ 0 & {n_{c} } & {\begin{array}{*{20}c} 0 & 0 \\ \end{array} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {h_{1} } \\ {h_{2} } \\ {\begin{array}{*{20}c} {h_{3} } \\ {h_{4} } \\ \end{array} } \\ \end{array} } \right]$$
(3)

where nc is the calibrated constant. It is also possible to express the QTS state space model in the form of vector fields as:

$$\dot{x} = F\left( x \right) + G\left( x \right)v + \sigma$$
(4)

where \(\dot{x} \in R^{4 \times 1}\), FR4×1, GR2×1,vR2×1, and σR2×1.

Table 1 provides a description of the operational variables of the QTS.

Table 1 Model specifications of the QTS.

Regulator construction

The main goal of this research study is to develop and construct an effective regulator that allows the QTS to quickly reach a new equilibrium point in the in the existence of external perturbations, while the fluid levels in the two lower tanks follow the desired set point values, i.e., h1 and h2. For this reason, the structural design and planning procedures of the OH-FO-T2F-PID regulator are described in this section. All the advantages of Type-2 Fuzzy theory and FOCs were taken into account when developing the OH-FO-T2F-PID regulator. This typical control scheme offers many advantages over traditional Type-2 Fuzzy based PID regulator as presented in reference45. Figure 2 depicts the main layout of the closed-loop block diagram of the suggested OH-FO-T2F-PID regulator. In this regulator, the inputs to the Type-2 Fuzzy regulator are the scaled version of the error signal E(t) and the scaled version of the FO derivative of the error signal DE(t) with order μ.

Fig. 2
figure 2

Block scheme of the suggested OH-FO-T2F-PID regulator applied to QTS.

The output signal UT2-FLC(t) of the Type-2 Fuzzy regulator is multiplied by the scaling coefficient GPD, and its fractional integral with order multiplied by the scaling coefficient GPI and then summed to provide the final regulator output τ(t). Thus, the final control signal generated by the suggested regulator can be represented as follows:

$$\tau \left( t \right) = u_{FO - T2F - PID} \left( t \right) = G_{PI} \frac{{U_{T2 - FLC}^{ - \lambda } \left( t \right)}}{{dt^{ - \lambda } }} + G_{PD} u_{T2 - FLC} \left( t \right)$$
(5)

where UT2-FLC(t) is the output of the Type 2 FLC, which is given as follows:

$$U_{T2 - FLC} \left( t \right) = \zeta \left( {G_{E} e\left( t \right),\quad G_{DE} \frac{{d^{\mu } e\left( t \right)}}{{dt^{\mu } }}} \right)$$
(6)

where ζ is a fuzzy-2 function. e(t) represents the difference between the reference liquid level hd(t), and the measured liquid level h(t).

It is worth noting that the Type 2 FLC serves as the basis for the suggested regulator, which is responsible for generating the main control action of OH-FO-T2F-PID regulator. The five basic components of a Type 2 FLC are the type reducer, the inference engine, the rule base, the fuzzifier, and the defuzzifier.

The configuration of the Type 2 fuzzy regulator is identical to that of the Type 1 fuzzy regulator, with the addition of a “Type Reducer” component to the output-processing unit45. Figure 3 displays a block representation of a Type 2 FLC.

Fig. 3
figure 3

Block representation of a Type-2 FLC.

For Type 2 fuzzy regulator output generation, a fuzzy rule base has been decided based on the liquid level control problem for the considered QTS. The input to the Type 2 fuzzy regulator is “E” and “DE”, while the instantaneous control output isUT2-FLC. It is worth mentioning here that the UFO-T2F-PI and UFO-T2F-PD outputs of the Type 2 fuzzy regulator correspond to the Fuzzy-2-PI and the Fuzzy-2-PD control signals, respectively. The unique feature of the designed OH-FO-T2F-PID regulator is its ease of implementation as only two membership functions for the input linguistic variables are taken into account as illustrated in Fig. 4a, which greatly reduces the number of rules. In Fig. 4a, the shifts p1 and p2 present the footprint of uncertainty (FOU) of the primary membership degree. It is possible to calculate the upper and lower boundaries of error (E) primary MFs for positive fuzzy sets using the following equations:

$$\overline{\mu }_{E}^{{\tilde{P}}} = \left\{ {\begin{array}{*{20}l} {0 } \hfill & {\quad if\quad \left( {E \le - dz + p_{1} } \right)} \hfill \\ {\frac{{E + dz + p_{1} }}{2 dz}} \hfill & {\quad if\quad \left( { - dz + p_{1} < E < dz - p_{1} } \right)} \hfill \\ 1 \hfill & {\quad if\quad \left( {E \ge - dz + p_{1} } \right)} \hfill \\ \end{array} } \right.$$
(7)
$$\underline {\mu }_{E}^{{\tilde{P}}} = \left\{ {\begin{array}{*{20}l} 0 \hfill & {\quad if\quad \left( {E \le - dz + p_{1} } \right)} \hfill \\ {\frac{{E + dz - p_{1} }}{2 dz}} \hfill & {\quad if\quad \left( { - dz + p_{1} < E < dz - p_{1} } \right)} \hfill \\ 1 \hfill & {\quad if\quad \left( {E \ge - dz + p_{1} } \right)} \hfill \\ \end{array} } \right.$$
(8)
Fig. 4
figure 4

Primary MFs for Fuzzy-2 system: (a) Inputs (E) and (DE), (b) Output (UT2-FLC).

In addition, it is possible to calculate the upper and lower boundaries of error (E) primary MFs for negative fuzzy sets using Eqs. (9) and (10):

$$\overline{\mu }_{E}^{{\tilde{N}}} = \left\{ {\begin{array}{*{20}l} 1 \hfill & {\quad if\quad \left( {E \le - dz + p_{1} } \right)} \hfill \\ {\frac{{ - E + dz + p_{1} }}{2dz}} \hfill & {\quad if\quad \left( { - dz + p_{1} < E < dz + p_{1} } \right)} \hfill \\ 0 \hfill & {\quad if\quad \left( {E \ge dz + p_{1} } \right)} \hfill \\ \end{array} } \right.$$
(9)
$$\underline {\mu }_{E}^{{\tilde{N}}} = \left\{ {\begin{array}{*{20}l} 1 \hfill & {\quad if\quad \left( {E \le - dz - p_{1} } \right)} \hfill \\ {\frac{{ - E + dz - p_{1} }}{2dz}} \hfill & {\quad if\quad \left( { - dz - p_{1} < E < dz - p_{1} } \right)} \hfill \\ 0 \hfill & {\quad if\quad \left( {E \ge dz - p_{1} } \right)} \hfill \\ \end{array} } \right.$$
(10)

The description of the upper and lower limits of the error deviation (DE) primary MFs in [− DE-p2, − DE + p2] are the same as Eqs. (7)–(10). On the other hand, two single-output MFs are formed, and positioned around zero at a distance “zp” from one another as shown in Fig. 4b.

In accordance with the two MFs defined for each linguistic variable, four fuzzy rules were developed, as follows:

  • Rule 1: if E is ‘N’ and DE is ‘N’, Then y1 = UT2-FLC is ‘P’.

  • Rule 2: if E is ‘N’ and DE is ‘P’, Then y2 = UT2-FLC is ‘Z’.

  • Rule 3: if E is ‘P’ and DE is ‘N’, Then y3 = UT2-FLC is ‘Z’.

  • Rule 4: if E is ‘P’ and DE is ‘P’, Then y4 = UT2-FLC is ‘N’.

A 2 × 2 rule base was created, as shown in Table 2, to achieve the best performance of the Fuzzy-2 system.

Table 2 Rule base of Fuzzy-2 system.

From fuzzy inference of interval Type-2 Fuzzy regulator, the fired membership degree of fuzzy rule is also an interval, the 4 rules interval are represented as Eqs. (11)-(14) using “product” operator:

$$\left[ {\underline {l}_{1} ,\overline{l}_{1} } \right] = \left[ {\underline {\mu }_{{\tilde{A}_{i} }} \left( E \right) \times \underline {\mu }_{{\tilde{B}_{j} }} \left( {DE} \right),\quad \overline{\mu }_{{\tilde{A}_{i} }} \left( E \right) \times \overline{\mu }_{{\tilde{B}_{j} }} \left( {DE} \right)} \right]$$
(11)
$$\left[ {\underline {l}_{2} ,\overline{l}_{2} } \right] = \left[ {\underline {\mu }_{{\tilde{A}_{i} }} \left( E \right) \times \underline {\mu }_{{\tilde{B}_{j + 1} }} \left( {DE} \right),\quad \overline{\mu }_{{\tilde{A}_{i} }} \left( E \right) \times \overline{\mu }_{{\tilde{B}_{j + 1} }} \left( {DE} \right)} \right]$$
(12)
$$\left[ {\underline {l}_{3} ,\overline{l}_{3} } \right] = \left[ {\underline {\mu }_{{\tilde{A}_{i + 1} }} \left( E \right) \times \underline {\mu }_{{\tilde{B}_{j} }} \left( {DE} \right),\quad \overline{\mu }_{{\tilde{A}_{i + 1} }} \left( E \right) \times \overline{\mu }_{{\tilde{B}_{j} }} \left( {DE} \right)} \right]$$
(13)
$$\left[ {\underline {l}_{4} ,\overline{l}_{4} } \right] = \left[ {\underline {\mu }_{{\tilde{A}_{i + 1} }} \left( E \right) \times \underline {\mu }_{{\tilde{B}_{j + 1} }} \left( {DE} \right),\quad \overline{\mu }_{{\tilde{A}_{i + 1} }} \left( E \right) \times \overline{\mu }_{{\tilde{B}_{j + 1} }} \left( {DE} \right)} \right]$$
(14)

\(\left[ {\underline {l}_{i} ,\overline{l}_{i} } \right]\) represent the lower and upper MF values of the interval Type-2 fuzzy sets. The fuzzy inference output UT2-FLC for the Type-2 FLS under consideration is determined using NT-type reduction techniques. Specifically, the output UT2-FLC is derived by averaging the upper and lower limits of the fired membership degrees for fuzzy rules, as shown in Eq. (15):

$$U_{T2 - FLC} = \frac{{\mathop \sum \nolimits_{i}^{4} \left( {\underline {l}_{i} + \overline{l}_{i} } \right)y_{i} }}{{\mathop \sum \nolimits_{i}^{4} \left( {\underline {l}_{i} + \overline{l}_{i} } \right)}}$$
(15)

Here is the final output of the OH-FO-T2F-PID regulator:

$$\tau \left( t \right) = G_{PD} u_{T2 - FLC} \left( t \right) + G_{PI} \smallint u_{T2 - FLC} \left( t \right)dt$$
(16)

It is also necessary to emphasize that the current article uses the Oustaloup approximation method to construct FO parts, which are necessary for the designed OH-FO-T2F-PID regulator to function in simulations or practical systems. As a result, it is easy to approximate the FO derivative operator sθ by constructing a higher-integer transfer function with many poles and zeros, as shown in Eq. (17):

$$s^{\theta } = G_{f} \left( s \right) = \alpha \mathop \prod \limits_{k = - \varphi }^{\varphi } \frac{{s + \omega_{z,k} }}{{s + \omega_{p,k} }}$$
(17)

In Eq. (17) α is the filter gain, where ωz,k and ωp,k are frequency bands, and can be computed using the following formulas46:

$$\omega_{z,k} = \omega_{l} \left( {\frac{{\omega_{h} }}{{\omega_{l} }}} \right)^{{\frac{{\alpha + \varphi + 0.5\left( {1 - \theta } \right)}}{2\varphi + 1}}}$$
(18)
$$\omega_{p,k} = \omega_{l} \left( {\frac{{\omega_{h} }}{{\omega_{l} }}} \right)^{{\frac{{\alpha + \varphi + 0.5\left( {1 + \theta } \right)}}{2\varphi + 1}}}$$
(19)
$$\alpha = \omega_{h}^{\theta }$$
(20)

where the approximation order is represented by (2φ + 1). In this case, a fifth order filter with a suitable frequency range of ω = [0.01, 100] rad/s is considered. For the sake of keeping the paper brief, an extensive overview of the FO calculus implementation is not included here.

In the next section, we will focus on adjusting the fractional derivative of the error and the Type 2 FLC outputs, while the MFs structure and the rule base stay in their initial form. Adjustable parameters like GE, GDE, GPD, GPI, λ, and µ can significantly improve the performance of QTS.

Hybridized algorithm for regulator parameter tuning

This section presents a full discussion of the newly developed hAGWOCS algorithm as well as descriptions of the AGWO, CS, and the cost functions.

Overview of GWO algorithm

This approach was first introduced by Mirjalili et al. in 201447.GWO is one of the newly recommended optimization methods, which is derived by the hunting mechanism and the hierarchy of grey wolves pack45. GWO consists of three essential points:

  • Pursuing and getting close to the intended victim.

  • Surrounding and restricting her movement.

  • Chasing the victim.

Grey wolves hunt in groups according to a strict social order. The top group leader, known as (α) wolf, is followed by (β) wolf, (δ) wolf is the executor of (β) and (δ) wolves, and the other internally balanced group of wolves is known as the (ω) wolves. Figure 5 illustrates the hierarchy of gray wolves.

Fig. 5
figure 5

Block representation of a Type-2 FLC.

The following equation describes the actions of a pack of wolves surrounding a victim45:

$$\vec{V}\left( {k + 1} \right) = \vec{V}_{p} \left( k \right) - \vec{P} \cdot \left| {\vec{L} \cdot \vec{V}_{p} \left( k \right) - \vec{V}\left( k \right)} \right|$$
(21)

\(\vec{V}_{p} \left( k \right)\) and \(\vec{V}\left( k \right)\) correspond to the position vectors of the victim and the wolf at iteration k, respectively. The coefficients vectors and are computed by Eq. (22) and (23):

$$\vec{P} = 2 \cdot \vec{\eta } \cdot \vec{q}_{1} - \vec{\eta }$$
(22)
$$\vec{L} = 2 \cdot \vec{q}_{2}$$
(23)

The vector (\(\vec{\eta }\)) is computed as follows, taking into account two random vectors, (\(\vec{q}_{1}\)) and (\(\vec{q}_{2}\)), having values in the interval [0, 1]:

$$\vec{\eta }\left( k \right) = 2 - \frac{2 \cdot k}{{Itermax}}$$
(24)

where Itermax indicates the max iteration. Equation (23) gives the updated location of each member of the community:

$$\vec{V}\left( {k + 1} \right) = \frac{{\vec{V}_{1} \left( k \right) + \vec{V}_{2} \left( k \right) + \vec{V}_{3} \left( k \right)}}{3}$$
(25)

where \(\vec{V}_{1} \left( k \right),\vec{V}_{2} \left( k \right)\), and \(\vec{V}_{3} \left( k \right)\) are calculated as follows:

$$\vec{V}_{1} \left( k \right) = \vec{V}_{\alpha } \left( k \right) - \vec{P}_{1} \left| {\vec{L}_{1} \cdot \vec{V}_{\alpha } \left( k \right) - \vec{V}\left( k \right)} \right|$$
(26)
$$\vec{V}_{2} \left( k \right) = \vec{V}_{\beta } \left( k \right) - \vec{P}_{2} \left| {\vec{L}_{2} \cdot \vec{V}_{\beta } \left( k \right) - \vec{V}\left( k \right)} \right|$$
(27)
$$\vec{V}_{3} \left( k \right) = \vec{V}_{\delta } \left( k \right) - \vec{P}_{3} \left| {\vec{L}_{3} \cdot \vec{V}_{\delta } \left( k \right) - \vec{V}\left( k \right)} \right|$$
(28)

For all three wolves, the optimal places in each iteration are vectors \(\vec{V}_{\alpha } \left( k \right),\vec{V}_{\beta } \left( k \right)\), and \(\vec{V}_{\delta } \left( k \right)\), respectively. Assuming that the coefficient vectors (\(\vec{P}_{1}\)), (\(\vec{P}_{2}\)), and (\(\vec{P}_{3}\)) are calculated using Eq. (22), and the coefficient vectors (\(\vec{L}_{1}\)), (\(\vec{L}_{2}\)), and (\(\vec{L}_{3}\)) are calculated using Eqs. (23). A more comprehensive explanation of GWO can be found in referce47. The vector (\(\vec{\eta }\)) is a fundamental control parameter in the standard GWO, determining the exploitation and exploration stages of the entire process. When the decay rate of vector η is slow, the exploration ratio of the grey wolf will be greater than the development ratio, which is suitable for global search. In contrast, it is suitable for local search to establish equilibrium between exploitation and exploration. Qais48 developed an enhanced version of GWO called AGWO, which improves the GWO exploration process without losing its robustness and simplicity. In this article, to provide enough exploration durations throughout the first phase of a typical GWO, the vector (\(\vec{\eta }\)) is modified according to Eq. (29):

$$\vec{\eta }\left( k \right) = 2 - \frac{{\cos \left( {rand} \right) \cdot k}}{Itermax}$$
(29)

This approach helps to find the best value more precisely and prevents falling into the trap of local optimum by performing an exhaustive search over the entire possible space. The hunting behavior in the suggested AGWO will rely solely on (α) and (β), as shown in Eqs. (30)–(32):

$$\vec{V}_{\alpha } \left( k \right) = \left| {L_{1} \vec{V}_{\alpha } \left( k \right) - \vec{V}\left( k \right)} \right|,\quad \vec{V}_{\beta } \left( k \right) = \left| {L_{2} \vec{V}_{\beta } \left( k \right) - \vec{V}\left( k \right)} \right|$$
(30)
$$\vec{V}_{1} \left( k \right) = \vec{V}_{\alpha } \left( k \right) - \vec{P}_{1} \vec{V}_{\alpha } \left( k \right),\quad \vec{V}_{2} \left( k \right) = \vec{V}_{\beta } \left( k \right) - \vec{P}_{2} \vec{V}_{\beta } \left( k \right)$$
(31)
$$\vec{V}\left( {k + 1} \right) = \frac{{\vec{V}_{1} \left( k \right) + \vec{V}_{2} \left( k \right)}}{2}$$
(32)

Overview of CS algorithm

The CS optimizer was first introduced in 2009 by Yang et al.49. CS, which mimics the parasitizing behavior of cuckoo breeding to solve optimization issues. The CS solution is equivalent to the cuckoo egg. In general, CS are designed based on the following three guidelines50:

  • Cuckoos place only one egg at a time.

  • Cuckoos deposit their eggs randomly in a selected nest.

  • Only the finest nests with high quality eggs will inherit to the future generation.

The total number of available host nests is limited. Figure 6 illustrates the processes of CS algorithm, which is drawn by the authors.

Fig. 6
figure 6

Processes of CS algorithm.

Equation (33) shows how the cuckoo updates its position by searching for a new nest site51:

$$\begin{aligned} D\left( {k + 1} \right) & = D\left( k \right) - \Gamma \left( {D\left( k \right) - D_{g} \left( k \right)} \right) \oplus levy\left( \varepsilon \right) \\ & = D\left( k \right) + \frac{0.01\sigma }{{\left| \varphi \right|^{1/\varepsilon } }}\left( {D\left( k \right) - D_{g} \left( k \right)} \right) \\ \end{aligned}$$
(33)

The preceding formula has two unique solutions, D(k + 1) and D(k), determined via a random walk.  denotes point-to-point multiplication. The step size is adjusted by a parameter Γ > 0, and Dg(k) is the global optimal solution. Both (σ) and (φ) are arbitrary numbers, respectively. Levy (ε) is a random variable that follows the Levy distribution, as shown in Eq. (34):

$$levy\left( \varepsilon \right) \approx t^{ - \varepsilon } ,\quad 1 < \varepsilon \le 3$$
(34)

In addition, CS replaces the found nests with probability (Pa) using the discovery operator as shown in Eq. (35)52:

$$D\left( k \right) = \left\{ {\begin{array}{*{20}l} {D\left( k \right) + rand \cdot (D_{j} \left( k \right) - D_{m} \left( k \right),} \hfill & {\quad if\quad P > P_{a} } \hfill \\ {D\left( k \right),} \hfill & {\quad else} \hfill \\ \end{array} } \right.$$
(35)

where Pa [0, 1] is an arbitrary integer, Dj and Dm are the possible solutions.

Overview of proposed hAGWOCS algorithm

Relevant algorithms like CS and AGWO are not recommended when the problem involves large dimensions with more fitness evaluations or vice versa. Therefore, in this article the CS algorithm is combined with the AGWO method to obtain higher optimization performance. The suggested hybrid variant is named hAGWOCS algorithm. It resembles the AGWO, except the modifications of the location vector of the searching agents in the AGWO are updated by the CS algorithm.

In this regard, the location update formula of CS is utilized to adjust the locations, convergence accuracy and velocity of the gray wolf agent (α) for the objective of maintaining a correct equilibrium between exploitation and exploration and improving the convergence speed of AGWO algorithm, while the rest of the AGWO operations are the same. Consequently, Eq. (36) provides the updated position vector D(k + 1) for the proposed hAGWOCS algorithm:

$$D\left( {k + 1} \right) = D\left( k \right) + \frac{0.01\sigma }{{\left| \varphi \right|^{{\frac{1}{\varepsilon }}} }}\left( {D\left( k \right) - D_{g} \left( k \right)} \right)$$
(36)

The procedures to take when developing the proposed hAGWOCS method are as follows:

  • Step 1: Determine the initial number of gray wolves using the following equation:

    $$\vec{M}_{i} = \left\{ {\vec{M}_{1} , \vec{M}_{2} , \ldots ,\vec{M}_{f} , \ldots ,\vec{M}_{k} } \right\};\quad 1 < f \le \Omega$$
    (37)

    where Ω represents all the community’s solutions.

  • Step 2: Calculate the fitness values of each agent and arrange them. AGWO utilizes two best solutions, (α) which is the first finest agent, and (β) which is the second finest search agent.

  • Step 3: Verify if k < Iter_max. If so, go to:

    Update the current search agent position based on the encirclement behavior, as expressed by the flowing equation:

    $$\vec{M}_{i} \left( {k + 1} \right) = \vec{M}_{i} \left( k \right) - \vec{P}_{i} .\vec{M}_{i} \left( k \right)$$
    (38)

    Calculate the overall best position for the current iteration by Eq. (39):

    $$\vec{M}_{o} \left( {k + 1} \right) = \frac{{\vec{M}_{1} \left( k \right) + \vec{M}_{2} \left( k \right) + \vec{M}_{3} \left( k \right)}}{3}$$
    (39)

    The aforementioned equation is changed by adding another term \(\vec{M}_{4} \left( k \right)\) to the numerator, as seen in Eq. (40), to provide the location update in the suggested hAGWOCS method:

    $$\vec{M}_{o} \left( {k + 1} \right) = \frac{{\vec{M}_{1} \left( k \right) + \vec{M}_{2} \left( k \right) + \vec{M}_{3} \left( k \right) + \vec{M}_{4} \left( k \right)}}{4}$$
    (40)

    \(\vec{M}_{4} \left( k \right)\) represents the location vector, which is determined by the CS method as follow:

    $$\vec{M}_{4} \left( k \right) = \vec{M}_{o} \left( k \right) + \Gamma \oplus levy\left( \varepsilon \right)$$
    (41)

    where \(\vec{M}\left( k \right)\) denotes the location of the search agent at the present iteration, and Γ [0, 1] represents the step size. The term \(\vec{M}_{4} \left( k \right)\) improves the efficiency of the suggested hAGWOCS algorithm by allowing it to use Levy flight to explore the search space. Thus, the location of other agents around the prey will be randomly updated.

  • Step 4: Update the fitness value of all search agents;

    Calculate the fitness of all updated search agents. The solution with the highest fitness value replaces the poorest solution, and thus the best solution is selected:

    $$Iter=Iter+1$$
  • Step 5: Continue repeating stages 2 through 5 until the maximum count, or "Itermax," is attained, where the best solution can be found so that the designed fitness aids in identifying the best solutions at both the lower and the upper limits. The flow diagram depicted in Fig. 7 describes the different steps involved in the suggested hAGWOCS algorithm.

    Fig. 7
    figure 7

    Flowchart of the proposed hAGWOCS method.

Statistical evaluation of the proposed hAGWOCS method

Quantitative analysis of hAGWOCS method

This subsection aims to use the CEC2005 standard functions53 to evaluate the performance of the suggested hAGWOCS method. The CEC2005 benchmark functions were considered, including unimodal, multi-modal and fixed-dimensional benchmark problems. Table 3 outlines the characteristics of the Benchmark test functions employed in this study. Statistical evaluation of the hAGWOCS method from standard function tests over 30 independent runs was compared to those with regular GWO30 method for a 30 search agents and 500 generations. The minimum, maximum, mean, standard deviations (STD) and computational time (CPU time/s) of both algorithms for the first set of benchmark functions are summarized in Table 4.

Table 3 Details of the CEC2005 benchmark functions.
Table 4 (a) Statistical outcomes of GWO in solving F1–F7, (b) statistical outcomes of hAGWOCS in solving F1–F7.

It is clear from the obtained values that the suggested hAGWOCS outperforms GWO method for functions F1, F2, F3, F4, F6 and F7, in which the obtained STD values with the suggested hAGWOCS are equal/close to 0 or far smaller than the mean values. The GWO method performance in function F5 is better than the suggested hAGWOCS method. In addition, GWO has high computational efficiency compared to the hAGWOCS method and has several functions with less than 10 s.

Table 5 displays the statistical outcomes of the second set of benchmark functions using the suggested hAGWOCS and GWO methods. It is analyzed from Table 5 and found that suggested hAGWOCS still produces optimal outcomes or maintains good performance in terms of mean, minimum, maximum, and standard deviation value in functions F8-F13, while providing worse results in computational time as compared to GWO method.

Table 5 (a) Statistical outcomes of GWO in solving F8–F13, (b) statistical outcomes of hAGWOCS in solving F8–F13.

Table 6 provides an explanation of the third set of benchmark functions utilizing hAGWOCS and GWO methods. Across individual benchmark functions, the recommended hAGWOCS consistently outperformed its counterpart, providing lower average and standard deviation values. It is worth mentioning that for functions such as F15–F20 and F23, the suggested hAGWOCS method showed the best results, demonstrating its robustness. In addition, for function F15, the suggested hAGWOCS method maintained its dominance.

Table 6 (a) Statistical outcomes of GWO in solving F14–F23, (b) statistical outcomes of hAGWOCS in solving F14–F23.

Overall, the statistical findings illustrate the capacity and effectiveness of the suggested hAGWOCS method in finding optimal solutions more consistently than the standard GWO method.

hAGWOCS versus 23 representative optimization methods

To fully validate the capabilities of the suggested hAGWOCS method, 23 state-of-the-art and outstanding optimization methods were utilized to compare with hAGWOCS, including PSO54, gravitational search optimizer (GSO)55, differential evolution optimizer (DEO)56, fruit fly optimizer (FFO)57, ant lion algorithm (ALA)58, symbiotic organisms search optimizer (SOSO)59, bat optimizer (BO)60, flower pollination optimizer (FPO)61,62, cuckoo search (COS)32, firefly optimizer (FO)63, genetic optimizer (GO)64, grasshopper optimization algorithm (GOA)65, Moth-flame algorithm (MFO)66, multiverse algorithm (MVA)67, Dragonfly optimizer (DO)68, binary bat optimizer (BBO)69, Biogeography algorithm (BA)70, binary gravitational search optimizer (BGSO)71, sine cosine optimizer (SCO)72, salp swarm optimizer (SSO)73, whale optimization algorithm (WOA)74, binary moth flame algorithm (BMFA1 and BMFA2)75, and Enhanced grey wolf optimizer (E-GWO)76,77. Table 7 presents the essential information of the compared optimization methods for the first set of benchmark functions.

Table 7 Comparison of uni-modal benchmark functions.

Table 8 provides the comparative findings for the second set of benchmark functions, which relate to different modern heuristic search methods.

Table 8 Comparison of multi-modal benchmark functions.

The comparison results between hAGWOCS and 23 modern heuristic search methods for the third set of benchmark functions are presented in Tables 9 and 10.

Table 9 Comparison of fixed dimension benchmark functions.
Table 10 Comparison of fixed dimension benchmark functions.

From the previous results among 23 selected methods, we can see that suggested hAGWOCS outperforms thirteen compared methods in terms of accuracy (ALA, SOSO, BO, FPO, CS, FO, GO, GOA, MVA, DO, BBO, WOA, and E-GWO), and is only worse than ten compared methods.

Qualitative analysis of hAGWOCS method

Figure 8 provides the qualitative analysis metrics of hAGWOCS and standard GWO methods, including the shapes of tested functions, the search history, average fitness history, and convergence curve. For simplicity, we focus on six classical benchmark functions (F4, F7, F8, F9, F19, and F23), including unimodal, multi-modal, and fixed-dimensional functions. In the second column of Fig. 8, the search histories show all the positions of starfish during the optimization process, illustrating that the positions of starfish are widely distributed in the entire search space, with more in the areas that promise the best solution during the exploration phase. The third and fourth columns show the average fitness values and convergence curves of hAGWOCS method, demonstrating its good convergence capability in solving unimodal, multi-modal and fixed-dimensional functions. In conclusion, the exploration and exploitation of hAGWOCS method are illustrated by the qualitative analysis. The suggested hAGWOCS method achieves the balance between the exploration and exploitation, which can ensure the searching capacity and the convergence during the optimization process.

Fig. 8
figure 8

Results of qualitative analysis by hAGWOCS and regular GWO methods.

Cost function for tuning the proposed OH-FO-T2F-PID regulator

As discussed in the previous section, the proposed OH-FO-T2F-PID regulator can be optimal when its control gains are tuned optimally by minimizing the fitness function. A fitness function in multi-objective optimization process is the weighted sum of two or more cost functions. During the optimization process, it is necessary to minimize the error index as well as the control inputs. In this paper, the performance indicator has been taken into consideration as follows:

$$J = ISCS + ITAE = \mathop \smallint \limits_{0}^{{T_{sim} }} \tau^{2} \left( t \right)dt + \mathop \smallint \limits_{0}^{{T_{sim} }} t\left| {E\left( t \right)} \right|dt$$
(42)

In this case, Tsim stands for computational time, τ(t) represents the control input, and ITAE is the integral time absolute error. ISCS is the integral of the squared control signal. This fitness function is suitably reduced when the suggested OH-FO-T2F-PID regulator approaches near-optimal gain values. Thus, the considered hAGWOCS algorithm minimizes the cost function (J) to produce optimally tuned scaling factors for the inputs/outputs, as well as fractional integral–differential orders for the suggested OH-FO-T2F-PID regulator with low control signal and error-index. So, the design problem for QTS can be described by the following restricted optimization problem, where the constraints are the gains limits of the suggested OH-FO-T2F-PID regulator:

$$\begin{aligned} & Minimize\,J\left( x \right) = (G_{E} ,G_{DE} , G_{PD} , G_{PI} , \lambda ,\mu ) \in \Re^{6} \\ & Subject\,to:\quad \left\{ {\begin{array}{*{20}l} {G_{E,min} \le G_{E} \le G_{E,max} } \hfill \\ \begin{gathered} \begin{array}{*{20}c} {G_{DE,min} \le G_{DE} \le G_{DE,max} } \\ {G_{PD,min} \le G_{PD} \le G_{PD,max} } \\ {G_{PI,min} \le G_{PI} \le G_{PI,max} } \\ \end{array} \hfill \\ \lambda_{min} \le \lambda \le \lambda_{max} \hfill \\ \mu_{min} \le \mu \le \mu_{max} \hfill \\ \end{gathered} \hfill \\ \end{array} } \right. \\ \end{aligned}$$

In this case, the limits of GE, GDE, GPD, and GPI are defined in the range [0, 10]. The search bounds of the optimization problem are determined by the gain range of the FO-T2F-PID regulator, which limits the cost function (42). The optimizations gains’ maximum and minimum bounds of the FO-T2F-PID regulator are summarized in Table 11.

Table 11 Bounds of the gains of the FO-T2F-PID regulator hAGWOCS method.

Figure 9 depicts a block diagram of the optimization process for the OH-FO-T2F-PID regulator using the proposed hAGWOCS algorithm. Here, MATLAB software environment was utilized to determine the best optimum values for each of the six regulator gains.

Fig. 9
figure 9

Schematic diagram of the optimization process of OH-FO-T2F-PID regulator.

The hAGWOCS technique has been run for a sufficient number of iterations to guarantee that it converges to the optimal point. Figure 10 displays the convergence profile of the suggested hAGWOCS method, which outperforms its competitor by reaching the optimal values in 117 iterations.

Fig. 10
figure 10

Convergence profiles of GWO and hAGWOCS methods using OH-FO-T2F-PID regulator after 50 trials.

Simulation tests

Simulations performed under the different transient and dynamic scenarios confirm the efficiency and effectiveness of the designed OH-FO-T2F-PID regulator. The parameters listed in Table 1 were exploited in the QTS built-in model included in the MATLAB software environment. Tables 12, 13 and 14 summarize the optimal values for each regulators utilized in the configuration model under study. The following tests can help clarify the simulation results.

Table 12 Optimal design for OH-FO-T2F-PID regulator gains by hAGWOCS algorithm.
Table 13 Optimal design OH-FO-T1F-PID regulator gains by hAGWOCS algorithm.
Table 14 Optimal design for ADRC regulator gains by hAGWOCS algorithm.

Test 1, tracking performance under step-point reference

In the first test, the reference level was fixed at 8 cm for 0 to 100 s, and then the second reference level was fixed at 11 cm for 100 to 200 s, while the third reference level was fixed at 14 cm for 200 to 300 s and the final reference level was kept at 10 cm for 300 to 400 s. The simulation results of the reference and the step responses of the QTS along with the control inputs are plotted in Figs. 11 and 12. The performances of the considered OH-FO-T2F-PID controller are compared with the performances of the optimized ADRC regulator and the OH-FO-T1F-PID regulator in terms of peak overshoot, peak time (tp), settling time (ts), and error (e). The obtained results are illustrated in Table 15. The Fig. 11 shows that the level control produced by the designed OH-FO-T2F-PID regulator has no overshoot and has a much lower settling time compared to optimized ADRC and OH-FO-T1F-PID. The closed-loop responses of QTS with OH-FO-T1F-PID regulator has overshoot, undershoot and long settling time, while the closed-loop responses of QTS with optimized ADRC regulator has less settling time and overshoot. There is a large difference between the control signals delivered to pumps 1 and 2 and what the considered OH-FO-T2F-PID and other controllers generate. The designed OH-FO-T2F-PID regulator provides approximately 5 Volt of flow rates to both motors with less aggressive control signals compared to the OH-FO-T1F-PID and optimized ADRC controller (Fig. 12). The aggressive effort from the OH-FO-T1F-PID regulator justifies the noticeable overflow in tank 1 and tank 2 levels. Conversely, by smoothly controlling the pump flows, the proposed OH-FO-T2F-PID regulator keeps tank levels from rising too high.

Fig. 11
figure 11

Liquid level evolution for step-point tracking test.

Fig. 12
figure 12

Control inputs evolution for step-point tracking test.

Table 15 Dynamic behavior of the three studied regulators.

Test 2, tracking performance under sinusoidal set-point reference

In the second test, a reference signal consisting of a 3 cm sine wave with a bias of 10 cm and a period of 60 s was utilized to track the change in the liquid level inside the tank. The simulation responses of the tank liquid level and control inputs are depicted in Figs. 13 and 14. As the results show, the designed OH-FO-T2F-PID regulator provided accurate level control performance with rapid settling and without overshoot. Compared with the OH-FO-T1F-PID regulator and optimized ADRC regulator, the suggested OH-FO-T2F-PID regulator provided better reference tracking dynamics.

Fig. 13
figure 13

Liquid level evolution for sinusoidal set-point tracking test.

Fig. 14
figure 14

Control signals evolution for sinusoidal set-point test.

Test 3, tracking performance under external perturbations

To evaluate the tracking performance of the designed OH-FO-T2F-PID regulator against external perturbations, the following test was conducted: The liquid level h2 increases to 7 cm. Next, it rises by 3 cm at the time instant t = 100 s to arrive at 10 cm. At the moment t = 200 s, a perturbation occurs as a step signal with changeable amplitude (1 cm from t = 200 s to t = 300 s, and − 2 cm for the remaining time of the test), which is practically explained by adding an amount of liquid and opening the discharge valve to produce a little leak within the tank. The simulation outcomes of the evolution of the tank liquid level and the control inputs are illustrated in Figs. 15 and 16.

Fig. 15
figure 15

Liquid level evolution for external disturbance test.

Fig. 16
figure 16

Control signals evolution for external disturbance test.

Test 4, tracking performance under parameter uncertainty

This test analyzes the influence of parameter uncertainty on the QTS. One of the parameters that affects the performance of the QTS is uncertainty in the design of the outlet hole of the first tank. Figures 17 and 18 illustrate the output response and the control inputs of the first tank, respectively, in the presence of parameter uncertainty (Δk1 =  −50%) after 200 s of the test beginning. As presented in Figs. 17 and 18, the designed OH-FO-T2F-PID regulator shows superior ability to smoothly manage parameter fluctuations. In contrast, the optimized ADRC regulator shows a deviation of − 10.17% from the steady state. While, the OH-FO-T1F-PID regulator requires about 30 s to mitigate the influence of uncertainty. On the other hand, the suggested OH-FO-T2F-PID regulator effectively reduces the influence of parameter changes, highlighting its robustness and improved response.

Fig. 17
figure 17

Liquid level evolution with uncertainty in the outlet hole of tank1.

Fig. 18
figure 18

Control signals evolution for parameter uncertainty test.

HIL experiment validation

In this section, real-time HIL-based experiments are performed using the following hardware setup (Fig. 19). Where the external threads comprise the hardware components interfaced with the software for real-time control and feedback. These include critical elements such as the Data Acquisition System (DAQ), and real-time controller (dSPACE), which executes the control algorithm (OH-FO-T2F-PID regulator) and ensures deterministic communication with the host PC. Whereas, the internal threads encompass the software components running on the real-time simulation platform. These threads integrate a high-fidelity mathematical model of the QTS, developed in MATLAB/Simulink. Additionally, it incorporate ControlDesk monitoring tools, such as interactive dashboards and data visualization interfaces, to track QTS performance metrics (tracking errors) and verify the effectiveness of the suggested OH-FO-T2F-PID regulator. Together, these threads seamlessly interact to simulate real-world QTS behavior while enabling rigorous testing of control robustness under external disturbances and parameter uncertainties. The prototype device, which was utilized to demonstrate the robustness and reliability of the designed OH-FO-T2F-PID regulator is illustrated in Fig. 19a. The system’s hardware comprises a host PC, a numerical oscilloscope, and a dSPACE-ds1104 digital controller. The latter is a real-time simulator based on a fully digital signal processor responsible for converting and generating the control. Whereas the QTS, and liquid level sensors are simulated using the MATLAB/Simulink, following the schematic diagram of Fig. 19b. The performance of the designed OH-FO-T2F-PID controller was validated by conducting two practical tests on QTS.

Fig. 19
figure 19

The hardware implementation (a), and the Flowchart for HIL-based laboratory testing setup (b).

Test 1, reference tracking control

Figure 20 displays the first experimental output responses of the reference tracking control when the objective is to follow two successive step trajectories for water levels h1 and h2, respectively. The control test duration is 100 s. It is necessary to announce that the state trajectories have been selected in such a way that large variations in different equilibrium points are included. These variations were applied at two times throughout the experiment at t1 = 10 s and t2 = 50 s. The maximum tank levels (hmax) are 14 cm. The proposed OH-FO-T2F-PID regulator has been tested and the findings are illustrated in Fig. 20. According to Fig. 20, the designed OH-FO-T2F-PID regulator exhibits excellent tracking performances because the output trajectories follow their references without overshoot, and the steady-state tracking error is greatly reduced to a small neighbourhood of zero. It is worth noticing that the experimental results very are close to the simulation results.

Fig. 20
figure 20

Practical results of the designed OH-FO-T2F-PID regulator for reference tracking test.

Test 2, external disturbance rejection

The designed OH-FO-T2F-PID regulator can also be utilized to solve the disturbance rejection problem. Figure 21 displays the practical outcomes of the recommended OH-FO-T2F-PID controller against external disturbance rejection issue. In this test, the disturbance is applied at the 80th second, by pouring more water into tank 1, causing an increase in the h1 level of about 10%–20% as shown in Fig. 21. The designed OH-FO-T2F-PID regulator showed good properties in closed-loop experiments, and also showed stable and viable trajectories even in the existence of perturbations. It is necessary to emphasize that in the second experiment, the suggested OH-FO-T2F-PID regulator decreases the control signal to allow tank 1 to leak until the desired response (Fig. 22). As shown in Fig. 21, the high quality of the tracking response is not affected by the injected disturbance. Therefore, the recommended control strategy is also effective in rejecting small external disturbances.

Fig. 21
figure 21

Practical results of the designed OH-FO-T2F-PID regulator for external disturbance rejection test.

Fig. 22
figure 22

Practical response of control input of both the tanks during external disturbance.

HIL Experiment limitations

A number of difficulties arise while testing and implementing the suggested OH-FO-T2F-PID regulator in real-time HIL system due to its intrinsic complexity. The following are the main limitations of using the OH-FO-T2F-PID regulator in a HIL experiment:

  • The OH-FO-T2F-PID regulator includes a fractional-degree and a type-2 fuzzy logic system, which are computationally intensive and difficult to implement in real-time HIL simulation.

  • Tuning the parameters of the suggested OH-FO-T2F-PID regulator is a complex and time-consuming process.

  • The mismatch between the simulation model and the physical hardware can lead to inaccurate results.

  • The final challenge of the HIL Experiment is to deal with practical issues such as computation delays, communication failures, and software errors. These issues can affect data quality, the feasibility, and the reliability of the HIL experiment.

Conclusion and future scope

In this study, the Fuzzy type-2 system is combined with the fractional calculus to design a robust OH-FO-T2F-PID regulator for precise liquid level tracking in a state-coupled QTS. The hybrid GWO-CS algorithm was utilized to choose the optimal gains for the recommended OH-FO-T2F-PID regulator. The improvements were made by incorporating the efficient exploitation mechanism of the A-GWO method with exploration capabilities of the CS method. The suggested hybrid A-GWOCSO method has been tested to select the best coefficients of the OH-FO-T2F-PID regulator. To validate the control performance, simulations and real-time control experiments were conducted using the HIL test bench on QTS, and the control results of the optimized ADRC and OH-FO-T1F-PID regulators, along with the suggested OH-FO-T2F-PID regulator, were presented to establish a comprehensive comparison. The findings of the simulation and HIL testing demonstrated that the suggested OH-FO-T2F-PID regulator outperformed the optimized ADRC and the OH-FO-T1F-PID regulators in terms of references tracking, parameters uncertainty, and external perturbations elimination. A statistical comparison of the suggested Hybrid A-GWOCSO method with 23 recently reported optimizer is also carried out with 30 independent runs. It is found that the hAGWOCS method outperforms thirteen compared methods in terms of accuracy, and is only worse than ten compared methods.

Although the suggested OH-FO-T2F-PID regulator displays significant improvement in QTS performance compared to its counterparts, it should also be noted that the OH-FO-T2F-PID regulator is more complex and requires more computations. Therefore, it may not be suitable for all applications, particularly those where simplicity is important or where computational resources are limited.

As a next research, the new IT2FO-FPID regulator should be investigated for practical problems that are more susceptible to parameter fluctuations, disturbances, and random noise. The stability analyses of the suggested IT2FO-FPID regulator should also be studied to improve its robustness. We hope that the recommended multi-objective optimization strategy will be useful in adjusting the gains of the OH-IT2FO-FPID regulator and will provide successful results in the future.