Introduction

Many electrical and electronic devices are sensitive to voltage fluctuations. Fluctuations in voltage can damage or reduce the lifespan of equipment connected to the power supply, also affect the stability of the grid, and lead to disruptions in the power supply1,2. In power generation plants that are connected to the electrical grid, it is crucial to maintain the voltage within specified limits. The power demand on the generator might fluctuate throughout the day, resulting in voltage spikes or dips as demand suddenly changes3. To address these issues, power engineers use a variety of methods and controls to stabilize and manage a power grid's voltage profile4.

Literature on tuning techniques

The most crucial component of the AC generator is the field excitation, which serves as the control mechanism to maintain the voltage level. However, the AVR, which regulates the generator terminal voltage under various operating situations, is the crucial component of the excitation system5,6. A PID controller is combined with the AVR to improve the terminal voltage profile of the generator7,8. The parameters of a PID controller need to be tuned based on the characteristics of the specific system to achieve optimal performance. The techniques that are used for tuning the gains of the PID controller are classified as classical methods, intelligent techniques, and optimization techniques. Ziegler-Nichols9,10 and Cohen-Coon11,12 tuning rules are very popularly used conventional techniques to control a wide verity of processes, but large transient response and weak controller robustness are the fundamental drawbacks of the conventional tuning techniques13,14. The drawbacks of conventional tuning techniques may be minimized by using intelligent techniques like fuzzy logic11,15, artificial neural networks16,17, and neural networks18,19. Intelligent approaches have practical limits that require expert knowledge, are more difficult to build and tune, and are less interpretable20,21. A few optimization algorithms, such as Particle Swarm Optimization22,23, Teaching Learning-based Optimization (TLbO), Ant Colony Optimization (ACO), Whale Optimization (WO), Manta Fay Foraging Optimizer (MRFO), Cuckoo Search (CS) Harmony Search (HS), Firefly Algorithm, Flower Pollination Algorithm, Local Unimodal Sampling (LUS) etc., are described in detail24,25.

Okou et al.26 described stability criteria using the Lyapunov function of the entire power system to generate the non-linear component. Riccati equation with algebraic solutions is used to calculate the gains of the linear component27,28. The significant reduction of interconnection signals' influence on voltage and speed dynamics is ensured by these advancements29,30. In31 the optimal gains of a PID controller in an AVR system are determined using the TLbO approach. Ekinci32 presented the salp swarm algorithm (SSA), which offers high-quality adjustment of the ideal PID controller settings for AVR. The FPA is a bio-inspired algorithm that replicates how flower plants naturally conduct pollination. Xin-She Yang recently unveiled it in 2012. Flower plants eventually want to reproduce by pollinating each other33. The Adaptive Neuro-Fuzzy Inference System (ANFIS) was created by training the Fuzzy Inference System (FIS). A unique application of ANFIS with a hybrid learning algorithm for the AVR system has been proposed by34,35. A new optimization method called Simulink Design Optimization (SDO) is demonstrated in36 to evaluate the gains of the PID controller for an AVR. Pachauri37 introduced the Water Cycle Algorithm (WCA) to find the PID controller gains optimally. Reconfiguring the distribution system is another way to reduce power loss and enhance the stability of the network38. The voltage level at the received end of the network can be maintained constant with the placement of the distributed generators (DGs) at the optimal locations of the network39. To effectively stabilize the power system, Meddeb et al. and Shah et al.40,41 used power electronic control techniques. The goal of this effort is to investigate how FACTS devices contribute to damping voltage fluctuation in fault conditions. In this article, the Pessen Integral Rule (PIR) and V-Tiger methods for tuning the gains of a PID controller are demonstrated and then compared their performance with other methods such as ZN, PIR, FPA, and TLbO algorithms.

Research gap and solution

Due to the system dynamics, nonlinear behavior of the AVR components, dynamics of the AC generator and operational constraints, the optimization of AVR is a challenging task42,43,44. The implementation of this innovative method may help to reduce the difficulties associated with AVR optimization45,46. V-Tiger is a newly introduced method for adjusting the gains of the PID controller. The advantages of the proposed tuning method are highlighted by comparing its performance with the other PID tuning methods. There are several methods for testing the dynamic system stability in control systems. Among these methods, a pole-zero map is frequently employed because of its ease of use. The Bode plot provides the plant stability in the frequency domain. The plant is more stable the larger the margins47,48. The discussion in36,49 presents disk stability margins to examine the robustness of the controller and closed-loop stability. In comparison to traditional margin analysis, disk-based margin analysis offers a more robust stability guarantee. In particular research studies, the authors have employed plant parameter uncertainties of ± 25% and ± 50% to assess the robustness of their proposed controllers. However, the maximum uncertainty that a system can withstand without losing its stability is not discussed. This article uses performance degradation curves to illustrate the robustness of the controller and the maximum range of uncertainty that the AVR can withstand without losing its stability.

Research contributions

The main contributions of the research article are:

  1. 1.

    A novel tuning approach based on system virtual time response is proposed for tuning the gains of the PID controller.

  2. 2.

    Demonstrated that the AVR equipped with the V-Tiger PID controller has a better transient response than the other tuning techniques listed for comparison.

  3. 3.

    Illustrated the performance degradation curves of the AVR with various controllers.

  4. 4.

    The robust stability margins and the corresponding maximum uncertainty, which a system can tolerate without compromising its stability or performance, are measured from the degradation curves.

  5. 5.

    The degradation curves are also used to estimate the worst-case gains at the given uncertainty range.

The rest of this article is structured as follows: The closed-loop transfer function of the AVR is discussed in "Automatic voltage regulator model" section ; the V-Tiger concept and its application to modify the PID gains for the robust AVR is covered in "Evaluating PID controller gains" section; in the section "MATLAB simulation and analysis", the performance and robustness of the AVR utilizing various controllers is discussed. Lastly, this article concludes with research findings.

Automatic voltage regulator model

An AVR is a control system that regulates the generator voltage to maintain a relatively constant voltage level, despite variations in the load and input conditions50,51. The main function of an AVR is to stabilize the generator's output voltage within acceptable limits, ensuring the quality and reliability of electrical power supplied to connected loads52,53,54. Figure 1 shows the schematic diagram of power generation with AVR.

Figure 1
figure 1

Typical arrangement of power generation with AVR.

The AVR detects the generator terminal voltage continuously using a voltage sensor. The sensed voltage is compared to a reference voltage (a nominal voltage). The deviation between the sensed voltage (actual output voltage) and the reference voltage is amplified by an error amplifier. The amplified error signal is used to generate a control signal that adjusts the excitation level of the generator's field winding. The control signal is applied to the excitation system, typically through a magnetic amplifier or electronic devices, to adjust the field current of the generator. By controlling the field current, the AVR regulates the magnetic field strength within the generator, affecting the output voltage. The generator's voltage is adjusted to bring it back to the desired level.

Mathematical model of AVR

A first-order mathematical model of a generator with an AVR can be represented using a simple transfer function. The first-order model typically captures the primary dynamic behavior of the system, specifically focusing on the response of the generator's voltage to changes in the reference voltage or load on the utility grid. In the context of a generator with AVR, this transfer function can be used to model the response of the generator's voltage to changes in the reference voltage. A simplified first-order model for the generator with AVR is

$$\begin{aligned} \text{V}_{{\text{out}}} \text{(s)} &= \frac{{\text{K}_{g} }}{{\text{1} + \text{s}\tau_{g} }}\text{V}_{\text{f}} \text{(s)} \\ \frac{{{\text{V}}_{{{\text{out}}}} ({\text{s}})}}{{{\text{V}}_{{\text{f}}} ({\text{s}})}} &= \frac{{\text{K}}_{g} }{{\text{1} + \text{s}\uptau_{g} }} \end{aligned}$$
(1)

Here Vout(s) = AC generator output voltage; Vf(s) = Generator field voltage; Kg and τg are the gain and time constants of the AC generator respectively.

In this model, a change in the field voltage Vf(s) results in a dynamic response of the generator's output voltage Vout(s). Note that this is a simplified representation, and actual generator systems may involve more complex models that consider additional dynamics, such as the electrical and mechanical dynamics of the generator55,56.

Generally, the exciter voltage output is the nonlinear function of the field voltage because of the saturation of the magnetic circuit. Hence there is no simple relationship between the generator output voltage and field exciter voltage. A linearized model of the field exciter in an AVR is obtained by ignoring the saturation effect and other nonlinearities. Practically, the field excitation system is used for adjusting the generator field current to control its output voltage. The simplified first-order model of the field excitation system is

$$\begin{aligned} {\text{V}}_{{\text{f}}} ({\text{s}}) &= \frac{{\text{K}_{exc} }}{{\text{1} + \text{s}\uptau_{exc} }}{\text{V}}_{{\text{e}}} ({\text{s}}) \\ \frac{{{\text{V}}{}_{{\text{f}}}({\text{s}})}}{{{\text{V}}_{{\text{e}}} ({\text{s}})}}& = \frac{{\text{K}_{exc} }}{{\text{1} + \text{s}\uptau_{exc} }} \end{aligned}$$
(2)

This model suggests that the field voltage Vf(s) responds to changes in error voltage Ve(s) (the difference between the reference voltage Vref(s) and the actual output voltage Voa(s)) with a gain Kexc and a time constant τexc. The time constant reflects the speed at which the field voltage adjusts to changes in the reference voltage.

The voltage feedback system is a crucial component in regulating the generator's output voltage57,58. The voltage feedback system in an AVR can be formulated as a first-order model by neglecting its saturation effect as an assumption. The first-order transfer function of the voltage feedback system is given below.

$$\begin{aligned} {\text{V}}_{{{\text{oa}}}} ({\text{s}}) &= \frac{{\text{K}vf }}{{\text{1} + \text{s}\uptau vf}}{\text{V}}_{\text{out}}({\text{s}}) \\ \frac{{{\text{V}}_{{{\text{oa}}}} ({\text{s}})}}{{{\text{V}}_{{{\text{out}}}} ({\text{s}})}} &= \frac{{\text{K}_{vf} }}{{\text{1} + \text{s}\uptau_{vf} }} \end{aligned}$$
(3)

where Vout(s) = Generator output voltage; Voa(s) = Actual output voltage; Kvf and τvf are the gain and time constants of the voltage feedback sensor. The parameters Kvf and τvf are assumed to be constant, but in reality, these parameters might vary with operating conditions.

The excitation amplifier is an electronic device; it amplifies the voltage error signal before sending it to the excitation system59. A mathematical model of the amplifier can be derived by ignoring its nonlinearities and is represented below

$$\begin{aligned} {\text{V}}_{{\text{r}}} ({\text{s}}) & = \frac{{\text{K}_{amp} }}{{\text{1} + \text{s}\uptau_{amp} }}\left( {{\text{V}}_{{{\text{ref}}}} ({\text{s}}) - {\text{V}}_{{{\text{oa}}}} ({\text{s}})} \right) \\ \frac{{{\text{V}}_{{\text{r}}} ({\text{s}})}}{{{\text{V}}_{{\text{e}}} ({\text{s}})}} & = \frac{{\text{K}amp}}{{\text{1} + \text{s}\uptau amp}} \end{aligned}$$
(4)

where Vr = Amplifier output voltage; Ve(s) = error between Vref(s) and Vao(s); Kvf and τvf are the gain and time constants of the voltage feedback sensor. The parameters Kamp and τamp are the gain and time constant of the amplifier respectively.

Utilizing the above models, the transfer function model of AVR with a power generation system is shown in Fig. 2a.

Figure 2
figure 2

(a) Transfer function model of AVR with the power generation system. (b) Transfer function model of AVR with PID controller.

The closed-loop block diagram in Fig. 2a relating the generator output voltage Vout(s) to the reference voltage Vref(s) is

$$\begin{aligned} \frac{{{\text{V}}_{{{\text{out}}}} ({\text{s}})}}{{{\text{V}}_{{{\text{ref}}}} ({\text{s}})}} &= \frac{{{\text{G}}_{{amp}} ({\text{s}}){\text{G}}_{{{\text{exc}}}} ({\text{s}}){\text{G}}_{g} ({\text{s}})}}{{{\text{1 + G}}_{{amp}} ({\text{s}}){\text{G}}_{{{\text{exc}}}} ({\text{s}}){\text{G}}_{g} ({\text{s}}){\text{H}}_{{vf}} ({\text{s}})}} \hfill \\ \frac{{{\text{V}}_{{{\text{out}}}} ({\text{s}})}}{{{\text{V}}_{{{\text{ref}}}} ({\text{s}})}} & = \frac{{{\text{K}}_{{amp}} {\text{K}}_{{{\text{exc}}}} {\text{K}}_{g} {\text{K}}_{{vf}} \left( {1 + {\text{s}}\tau _{{vf}} } \right)}}{{\left( {1 + {\text{s}}\tau _{{amp}} } \right)\left( {1 + {\text{s}}\tau _{{exc}} } \right)\left( {1 + {\text{s}}\tau _{g} } \right)\left( {1 + {\text{s}}\tau _{{vf}} } \right) + {\text{K}}_{{amp}} {\text{K}}_{{exc}} {\text{K}}_{g} {\text{K}}_{{vf}} }} \hfill \\ \end{aligned}$$
(5)

Equation (5) can be rewritten as

$$ {\text{V}}_{{{\text{out}}}} ({\text{s}}) = \frac{{\text{K}_{{amp }} \text{K}_{exc} \text{ K}_{g} \text{K}_{vf} \text{ (1} + \text{s}\uptau_{vf} \text{)}}}{{\text{(1} + \text{s}\uptau_{amp} \text{) (1} + \text{s}\uptau_{exc} \text{) (1} + \text{s}\uptau_{g} \text{) (1} + \text{s}\uptau_{vf} \text{)} + \text{K}_{amp} \text{ K}_{exc} \text{ K}_{g} \text{ K}_{vf} }}{\text{V}}_{{{\text{ref}}}} ({\text{s}}) $$
(6)

For a unit step reference voltage Vref(s) = \(\frac{1}{\text{s}}\), the steady-state error

$$ {\text{V}}_{{{\text{ess}}}} \left( {\text{s}} \right) = \left| {{\text{V}}_{{{\text{ref}}}} {\text{(s) }}} \right| - \mathop {\lim }\limits_{s \to 0} {\text{sV}}_{{{\text{out}}}} \left( {\text{s}} \right) $$
(7)

The steady-state error defined in (7) can be eliminated by adding the controller to AVR. The controller's role is not just about eliminating steady-state errors but also about maintaining voltage regulation, ensuring system stability, responding to dynamic changes, and preventing voltage violations in different operating conditions60,61. In this research article, a PID controller is used. A PID controller is a widely used feedback control system in various industrial applications. It regulates the response of the plant by adjusting the input based on the error generated by the required set-point and the actual response.

The control signal u(t) from the PID controller is mathematically represented as62.

$$ u(t) = \text{K}_{\text{p}} e(t) + \text{K}_{\text{i}} \int\limits_{\text{0}}^{\text{t}} {e\left( \uptau \right) d\uptau + \text{K}_{\text{d}} \frac{de(t)}{{dt}}} $$
(8)

where e(t) is the error at time t, Kp is the proportional gain, Ki is the integral gain and Kd is the derivative gain. Figure 2b shows the transfer function model of AVR with PID controller.

The closed-loop transfer function of block diagram in Fig. 2b relating the generator output voltage Vout(s) to the reference voltage Vref(s) is

$$\begin{aligned} \frac{{{\text{V}}_{{{\text{out}}}} ({\text{s}})}}{{{\text{V}}_{{{\text{ref}}}} ({\text{s}})}} & = \frac{{{\text{PID}}({\text{s}}){\text{G}}_{{amp}} ({\text{s}}){\text{G}}_{{exc}} ({\text{s}}){\text{G}}_{g} ({\text{s}})}}{{{\text{1 + PID}}({\text{s}}){\text{G}}_{{amp}} ({\text{s}}){\text{G}}_{{exc}} ({\text{s}}){\text{G}}_{g} ({\text{s}}){\text{H}}_{{vf}} ({\text{s}})}} \hfill \\ & = \frac{{\left( {{\text{s}}^{2} {\text{K}}_{{\text{d}}} + {\text{sK}}_{{\text{p}}} + {\text{K}}_{{\text{i}}} } \right){\text{K}}_{{amp}} {\text{K}}_{{exc}} {\text{K}}_{g} \left( {1 + {\text{s}}\tau _{{vf}} } \right)}}{{{\text{s}}\left( {1 + {\text{s}}\tau _{{amp}} } \right)\left( {1 + {\text{s}}\tau _{{exc}} } \right)\left( {1 + {\text{s}}\tau _{g} } \right)\left( {1 + {\text{s}}\tau _{{amp}} } \right) + \left( {{\text{s}}^{2} {\text{K}}_{{\text{d}}} + {\text{sK}}_{{\text{p}}} + {\text{K}}_{{\text{i}}} } \right){\text{K}}_{{amp}} {\text{K}}_{{exc}} {\text{K}}_{g} {\text{K}}_{{vf}} }} \hfill \\ \end{aligned}$$
(9)

The nominal values and proposed uncertainty of the AVR system, presented in Fig. 2a, are given in Table 136,47. By utilizing these nominal parameters, the closed-loop transfer function of the AVR is

$$ \frac{{{\text{V}}_{{{\text{out}}}} ({\text{s}})}}{{{\text{V}}_{{{\text{ref}}}} ({\text{s}})}} = \frac{{\text{0}\text{.1s} + \text{10}}}{{\text{0}\text{.0004 s}^{\text{4}} + \text{0}\text{.0454 s}^{\text{3}} + \text{0}\text{.555 s}^{\text{2}} + 1.51\text{s} + 11}} $$
(10)
Table 1 Nominal values and proposed uncertainty of AVR components.

Also, the closed-loop transfer function of the AVR including the PID controller is given as

$$\frac{{{\text{V}}_{{{\text{out}}}} ({\text{s}})}}{{{\text{V}}_{{{\text{ref}}}} ({\text{s}})}} = \frac{{0.1{\text{K}}_{{\text{d}}} {\text{s}}^{3} + \left( {0.1{\text{K}}_{{\text{p}}} + 10{\text{K}}_{{\text{d}}} } \right){\text{s}}^{2} + \left( {0.1{\text{K}}_{{\text{i}}} + 10{\text{K}}_{{\text{p}}} } \right){\text{s}} + 10{\text{K}}_{{\text{i}}} }}{{0.0004{\text{s}}^{5} + 0.0454{\text{s}}^{4} + 0.555{\text{s}}^{3} + \left( {1.51 + 10{\text{K}}_{{\text{d}}} } \right){\text{s}}^{2} + \left( {1 + 10{\text{K}}_{{\text{p}}} } \right){\text{s}} + 10{\text{K}}_{{\text{i}}} }} $$
(11)

Evaluating PID controller gains

Tuning a PID controller is crucial for the proper functioning and performance of a control system63,64. Proper tuning ensures that the controller effectively regulates the system, minimizing errors and achieving the desired dynamic response65. This article proposes the Pessen Integral Rule (PIR) and Virtual Time response-based iterative gain evaluation and re-designs (V-Tiger) methods to tune the PID controller. The results of the proposed controller are compared with FPA, TLbO, PIR, and ZN-based PID controllers.

Pessen Integral Rule

The Pessen Integral Rule (PIR) is another tuning method for PID controllers. It was proposed by Leonard Pessen and is a modification of the ZN tuning method. This method emphasizes the integral action by setting the integral time constant to one-fourth of the ultimate period obtained from the Ziegler-Nichols method66,67. The Pessen Integral Rule aims to improve the transient response of the system by giving more weight to the integral term. Here are the steps to apply the Pessen Integral Rule:

Step-I::

Perform step response experiment

Using proportional control alone, do a step-response experiment to obtain the plant's ultimate gain (Ku) and ultimate period (Pu). Adjust the proportional gain (Kp) until the response exhibits the persistent oscillations as seen in Fig. 3.

Figure 3
figure 3

Plant response with step-response experiment.

Figure 3 states that the ultimate period (Pu) is the interval of time between two successive peaks, and the ultimate gain (Ku) is the proportional control gain at which persistent oscillations occur.

Step-II::

Calculate the integral time constant (Ti)

Calculate the integral and derivative time constants by applying the Pessen integral rule i.e. integral time constant (Ti) = Pu/4 and derivate time constant Td = 0.15Pu.

Step-III::

Set PID controller parameters

$${\text{The standard form of PID controller is u}}\left( {\text{s}} \right){\mkern 1mu} = {\text{K}}_{{\text{p}}} {\mkern 1mu} \left( {1{\mkern 1mu} + {\mkern 1mu} \frac{1}{{{\text{sT}}_{{\text{i}}} }}{\mkern 1mu} + {\text{ sT}}_{{\text{d}}} } \right) = {\text{K}}_{{\text{p}}} + {\mkern 1mu} \frac{1}{{\text{s}}}{\mkern 1mu} {\text{K}}_{{\text{i}}} + {\text{ sK}}_{{\text{d}}}.$$

Set the PID controller gains by using the Pessen Integral Rule as follows

Kp = 0.7Ku; Ki = \(\frac{{{\text{K}}_{{\text{p}}} }}{{{\text{T}}_{{\text{i}}} }}\) = 0.175 \(\frac{{{\text{K}}_{u} }}{{{\text{P}}_{u} }}\) and Kd = KpTd = 0.105KuPu.

Virtual time response based iterative gain evaluation and re-design (V-Tiger)

The V-Tiger approach to tune a PID (Proportional-Integral-Derivative) controller involves virtual time-response analysis and iterative gain adjustment to optimize the PID parameters for a given system68,69. Using this tuning procedure, the frequency characteristics of the controller are combined with the computed frequency components of the controlled object's input and output. The closed-loop system time response is obtained by first calculating the response in the frequency domain, and then using the inverse Fourier transformation. With this ideal, one-shot experimental data is used to compute the controlled plant's time response. The time response obtained by this method is known as Virtual time response70.

Let the controlled plant G(z) be a linear time invariant discrete-time SISO system. The input and output time series of the one-shot experimental data of G(z) are, respectively, u0(k) and y0(k). In this case, k is the sample number (= 1, 2, 3,…, n) and z is the shift operator. Let the time series of the reference signal (input), disturbance signal (output), and disturbance signal (input) to the closed-loop system be denoted by ref(k), δ(k), and δu(k). The discrete fourier transformations of u0(k), y0(k), ref(k), δ(k), and δu(k) are u0(jω), y0(jω), ref(jω), δ(jω), and δu(jω), respectively. The angular velocity (rad/sec) is denoted by ω, which may be expressed mathematically as follows in terms of sampling time (ts): ω = 0, 2π/nts, 4π/nts . . . (n − 1)2π/nts. The following presumptions were made to use this method:

  1. i.

    The input time series of one-shot experimental data u0(jωa) ≠ 0 at a given angular velocity ωa if ref(jωa), δ(jωa), and δu(jωa) are not 0, and vice versa.

  2. ii.

    The closed-loop system should be stabilized by the controller CPID. If controller CPID(jω) ≠ 0, then there is no stability boundary pole for any value of ω.

  3. iii.

    The inverse of plant G-1(jωa) has a stability boundary pole at a given angular velocity ωa if \(\text{C}_{\text{PID}}^{ - 1} (j\upomega_{\text{a}} )\) ≠ 0, and vice versa.

  4. iv.

    The initial and final values of step response data u00 and y00 are considered as steady state.

Basic procedure

The under-dampened step response in Fig. 4a is copied, flipped, and coupled to the original step response as shown in Fig. 4b. In terms of u00(k) and y00(k), the input and output time series data (u0(k) and y0(k)) of G(z) are represented as

$$ {\text{u}}_{0} \left( {\text{k}} \right) \, = \left\{ {\begin{array}{ll} {{\text{u}}_{00} \left( {\text{k}} \right),} & \quad {{\text{k }} = { 1},{ 2}, \, \ldots {\text{n}}/{2}.} \\ { - {\text{ u}}_{00} \left( {{\text{k}} - \frac{{\text{n}}}{2}} \right) + {\text{ u}}_{00} \left( {1} \right) \, + {\text{ u}}_{00} \left( {\frac{{\text{n}}}{2}} \right),} & \quad {{\text{k}} = \frac{{\text{n}}}{2} + 1,\;\frac{{\text{n}}}{2} + 2, \ldots {\text{n}}.} \\ \end{array} } \right. $$
(12)
$$ {\text{y}}_{0} \left( {\text{k}} \right) \, = \left\{ {\begin{array}{ll} {{\text{y}}_{00} \left( {\text{k}} \right),} & \quad {{\text{k }} = { 1},{ 2}, \, \ldots {\text{n}}/{2}.} \\ { - {\text{ y}}_{00} \left( {{\text{k}} - \frac{{\text{n}}}{2}} \right) + {\text{ y}}_{00} \left( {1} \right) \, + {\text{ y}}_{00} \left( {\frac{{\text{n}}}{2}} \right),} & \quad {{\text{k}} = \frac{{\text{n}}}{2} + 1,\;\frac{{\text{n}}}{2} + 2, \ldots {\text{n}}.} \\ \end{array} } \right. $$
(13)
Figure 4
figure 4

(a) Step response. (b) Cyclic response.

Since the frequency response has only a steady-state response, the discrete-time frequency function of plant G and controller CPID can be written, respectively, as G(jω), CPID(jω). Now the time series of output y0(jω) can be represented as

$$ {\text{y}}_{0} \left( {{\text{j}}\upomega } \right) \, = {\text{ G}}\left( {{\text{j}}\upomega } \right){\text{ u}}_{0} \left( {{\text{j}}\upomega } \right) $$
(14)

Figure 5 depicts the closed-loop plant when the controller (whose control performance is to be evaluated) is introduced.

Figure 5
figure 5

Closed-loop plant with controller.

Considering the disturbances δ(jω) and δu(jω), Fig. 5 holds

$$ {\text{y}}\left( {{\text{j}}\upomega } \right) \, = \frac{{{\text{G}}({\text{j}}\upomega ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega )}}{{1 + {\text{G}}({\text{j}}\upomega ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega )}}{\text{ref}}({\text{j}}\upomega ) + \frac{1}{{1 + {\text{G}}({\text{j}}\upomega ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega )}}\updelta ({\text{j}}\upomega ) + \frac{{{\text{G}}({\text{j}}\upomega )}}{{1 + {\text{G}}({\text{j}}\upomega ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega )}}\updelta {\text{u}}({\text{j}}\upomega ) $$
(15)

from (14), (15) and multiplying the results on both numerator and denominator with \(\text{C}_{\text{PID}}^{ - 1} ({\text{j}}\upomega )\) u0(jω)

$$ {\text{y}}\left( {{\text{j}}\upomega } \right) \, = \frac{{{\text{y}}_{0} ({\text{j}}\upomega ){\text{ref}}({\text{j}}\upomega )}}{{{\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega ){\text{u}}_{0} ({\text{j}}\upomega ) + {\text{y}}_{0} ({\text{j}}\upomega )}} + \frac{{{\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega ){\text{u}}_{0} ({\text{j}}\upomega )\updelta ({\text{j}}\upomega )}}{{{\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega ){\text{u}}_{0} ({\text{j}}\upomega ) + {\text{y}}0({\text{j}}\upomega )}} + \frac{{{\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega ){\text{u}}_{0} ({\text{j}}\upomega )\updelta u({\text{j}}\upomega )}}{{{\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega ){\text{u}}_{0} ({\text{j}}\upomega ) + {\text{y}}0({\text{j}}\upomega )}} $$
(16)

Assume ref1(jω) = \(\text{C}_{\text{PID}}^{ - 1} ({\text{j}}\upomega )\text{u}_{0}(\text{j}\upomega ) + \text{y}_{0}(\text{j}\upomega ),\) the (16) can be re-written as

$$ {\text{y}}\left( {{\text{j}}\upomega } \right) \, = \frac{{{\text{ref}}(j\upomega )}}{{{\text{ref}}_{1} (j\upomega )}}{\text{y}}0({\text{j}}\upomega ) + \frac{\updelta (j\upomega )}{{{\text{ref}}_{1} (j\upomega )}}{\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega ){\text{u}}_{0} ({\text{j}}\upomega ) + \frac{{\updelta_{{\text{u}}} ({\text{j}}\upomega )}}{{{\text{ref}}_{1} ({\text{j}}\upomega )}}{\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega ){\text{u}}_{0} ({\text{j}}\upomega ) $$
(17)

Also from Fig. 5,

$$ {\text{u}}\left( {{\text{j}}\upomega } \right) \, = {\text{ C}}_{{{\text{PID}}}} \left( {{\text{j}}\upomega } \right)\left( {{\text{ref}}\left( {{\text{j}}\upomega } \right) \, {-}{\text{ y}}\left( {{\text{j}}\upomega } \right)} \right) $$
(18)

Assuming δ = δu = 0 and giving ref1(jω) as input to the closed-loop plant, Fig. 5 can be re-drawn as shown in Fig. 6.

Figure 6
figure 6

Closed-loop plant with ref(jω) and δ(jω) = δu(jω) = 0.

At a certain value of angular velocity (ωa), when ref1(jωa) = 0, from Fig. 6

$$\begin{aligned} {\text{y}}_{0} \left( {{\text{j}}\upomega_{{\text{a}}} } \right) & = \frac{{{\text{G}}({\text{j}}\upomega_{{\text{a}}} ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{{\text{a}}} )}}{{1 + {\text{G}}({\text{j}}\upomega_{{\text{a}}} ){\text{C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{{\text{a}}} )}}{\text{ref}}_{{1}} ({\text{j}}\upomega_{{\text{a}}} ) \\ {\text{y}}_{0} \left( {{\text{j}}\upomega_{{\text{a}}} } \right) & = \frac{1}{{1 + \frac{1}{{{\text{G}}({\text{j}}\upomega_{a} ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{a} )}}}}0 \end{aligned}$$
(19)
$$\begin{aligned} {\text{u}}_{0} \left( {{\text{j}}\upomega_{{\text{a}}} } \right) & = \frac{{{\text{C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{{\text{a}}} )}}{{1 + {\text{G}}({\text{j}}\upomega_{{\text{a}}} ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{{\text{a}}} )}}{\text{ref}}_{{1}} ({\text{j}}\upomega_{{\text{a}}} ) \\ {\text{u}}_{0} \left( {{\text{j}}\upomega_{{\text{a}}} } \right) & = \frac{1}{{{\text{G}}({\text{j}}\upomega_{{\text{a}}} ) + \frac{1}{{{\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{{\text{a}}} )}}}}{\text{ref}}_{1} ({\text{j}}\upomega_{{\text{a}}} ) = \frac{1}{{{\text{G}}({\text{j}}\upomega_{{\text{a}}} ) + {\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega_{{\text{a}}} )}}0 \end{aligned}$$
(20)

In (19), if \(1 + \frac{1}{\text{G}(\text{j}\upomega \text{a}) \, \text{CPID}(\text{j}\upomega a)}\) ≠ 0, y0(jωa) becomes zero. In (20), if \({\text{G}}({\text{j}}\upomega_{{\text{a}}} ) + {\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega_{{\text{a}}} )\) ≠ 0, u0(jωa) = 0. When G(jωa)CPID(jωa) = − 1 or G(jωa) = 0 or \({\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega_{{\text{a}}} )\) = 0, \(\text{G}(\text{j}\upomega_{\text{a}} ) + \text{C}_{\text{PID}}^{ - 1} (\text{j}\upomega \text{a})\) = 0. From (20), with the assumption—iii, when G(jωa) = 0, \({\text{C}}_{{{\text{PID}}}}^{ - 1} ({\text{j}}\upomega_{{\text{a}}} )\) is non-zero, hence u0(jωa) = 0. A similar argument can be made, for Fig. 5, when ref(jωa) and δ(jωa) = δu(jωa) = 0. From (15), at ωa

$$ {\text{y}}\left( {{\text{j}}\upomega_{{\text{a}}} } \right) \, = \frac{1}{{1 + 1/\left( {{\text{G}}({\text{j}}\upomega_{{\text{a}}} ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{{\text{a}}} )} \right)}}0 + \frac{1}{{1 + {\text{G}}({\text{j}}\upomega_{{\text{a}}} ){\text{ C}}_{{{\text{PID}}}} ({\text{j}}\upomega_{{\text{a}}} )}}0 + \frac{1}{{{\text{G}}^{ - 1} ({\text{j}}\upomega_{{\text{a}}} ) + {\text{C}}_{{{\text{PID}}}}^{{}} ({\text{j}}\upomega_{{\text{a}}} )}}0 $$

With assumption (ii), the 1st and 2nd terms become ‘0’. When \({\text{G}}^{ - 1} ({\text{j}}\upomega_{\text{a}} ) + {\text{C}}_{\text{PID}}^{{}} ({\text{j}}\upomega \text{a})\) = 0, the 3rd term is ‘0’. The term \({\text{G}}^{ - 1} ({\text{j}}\upomega_{\text{a}} ) + {\text{C}}_{\text{PID}}^{{}} ({\text{j}}\upomega {\text{a}})\) = 0 only when \({\text{G}}({\text{j}}\upomega_{\text{a}} ) \, {\text{CPID}}({\text{j}}\upomega_{\text{a}} )\) = − 1 or \({\text{G}}^{ - 1} ({\text{j}}\upomega_{\text{a}} ) \, =\) \({\text{CPID}}({\text{j}}\upomega_{\text{a}} )\) = 0. Therefore, y(jωa) = 0. Putting y(jωa) and ref(jωa) as 0 in (18), G(jωa) = CPID(jωa)0.0 or G(jωa) = 0 when \({\text{C}}_{{{\text{PID}}}}^{{ - 1}} \left( {{\text{j}}\upomega _{{\text{a}}} } \right)\) ≠ 0. Now by putting y(jωa) = 0 in y(jωa) = G(jωa)u(jωa), u(jωa) becomes zero. The time responses y and u are the inverse discrete Fourier transformations of y(jω) and u(jω) with the assumptions (i), (ii), and (iii).

Implementation of V-Tiger for controller gains

Before applying V-Tiger, model the system to be controlling. Develop a mathematical model that represents the dynamics of the plant under control. Initialize the PID controller with initial gain values. These initial values are based on any heuristic methods or values commonly used in similar systems. In this work, the initial PID gains are based on the Pessen Integral Rule. Perform the virtual time-response analysis using the modeled system and the initial PID controller settings. Simulate the closed-loop system and observe the system's response. Now quantify the performance metrics such as overshoot, settling time, and stability margin from the virtual time-response analysis. These metrics will be used to evaluate the performance of the system under the current PID controller settings. Based on this virtual time-response analysis, adjust the PID gains iteratively. To adjust the PID gains iteratively, Particle Swarm Optimization (PSO) is used in this research. Repeat the virtual time-response analysis with the updated PID gains. Measure the performance metrics again and assess whether the changes result in improved control performance. Continue the iterative process of adjusting PID gains, performing virtual experiments, and evaluating system performance until the desired control performance is achieved. The objective function is defined in (21) with the values of overshoot and stability margins as constraints.

$$ {\text{Objective function}},\;\;min\left( {\text{J}} \right) \, = \text{t}\int {\left| {\text{V}_{{\text{ref}}} - \text{V}_{{\text{oa}}} } \right|} + \upomega_{{1}} {\text{t}}_{{\text{s}}} + \, \upomega_{{2}} \frac{{{\text{Os}}}}{100} $$
(21)

To adjust the controller's behavior to fulfill the performance needs, satisfy the constraints, and enhance the robustness of the AVR, here are two weighting factors, ω1 and ω2, selected as 4 and 2, respectively. Os = Overshoot. Figure 7 shows the flow chart of the V-Tiger.

Figure 7
figure 7

Flowchart of V-Tiger.

MATLAB simulation and analysis

The suggested controllers are implemented in an AVR system that is simulated using 2021b MATLAB/Simulink. The nominal parameters and their associated uncertainties are shown in Table 1. By implementing the ZN ultimate sensitivity method to (10), the critical gain Ku and the ultimate period Pu are identified as 1.6053 and 1.121 s respectively. Using the Pessen Integral Rule (PIR), the PID controller gains are Kp = 1.1235, Ki = 2.509, and Kd = 0.189. These gains are considered as initial PID controller gains for obtaining the optimum PID controller using Virtual Time response-based iterative gain evaluation and re-designs (V-Tiger) with the constraints (i) Overshoot ≤ 10%, (ii) Stability margins GM > 3 dB and PM  >  20°. The search range for controller gains using V-Tiger is from zero to twice the PID gains of the Pessen Integral Rule. After carrying 30 simulation runs, the optimal gains of the V-Tiger PID controller are identified as Kp = 0.8415, Ki = 0.6163, and Kd = 0.2838.

Transient response analysis

The transient response of the AVR without a controller possesses a percentage overshoot of 50.53%, settling time of 6.99 s with steady-state error of 0.0909 pu36. Figure 8 displays, for various controllers, the transient response of the generator output voltage (pu). Table 2 lists the step response specifications, stability performance, and closed loop poles with the damping ratio of the AVR utilizing various controllers.

Figure 8
figure 8

Transient response of the generator output voltage.

Table 2 Comparison of time response, stability performance, and closed-loop poles with damping ratio for different controllers.

According to Fig. 8 and Table 2, the AVR using the V-Tiger PID controller possesses superior transient response, more stable margin range, and damping ratio than the other controllers. Hence the AVR with V-Tiger PID controller is more stable and exhibits good performance. Figure 9 compares the control signals generated by the various PID controllers. Figure 10 illustrates how different PID controllers provide field excitation to AC generator.

Figure 9
figure 9

Comparison of control signals by different PID controllers.

Figure 10
figure 10

Field excitation (pu) for various PID controllers.

Robustness analysis

Robustness analysis is a crucial aspect of system design and control engineering. It involves examining how well a system can maintain stability and desired performance levels in the presence of uncertainties or variations in its parameters. The goal is to identify the maximum amount of uncertainty that a system can tolerate without compromising its stability or performance. The trade-off curve, as shown in Fig. 11a, provides a visual representation of the relationship between the normalized amount of uncertainty in the system and its performance, specifically measured by the peak gain of the closed-loop transfer function using the Bode plot. In Fig. 11a, the value of normalized uncertainty (x) = 1 corresponds to the uncertainty ranges specified in the model. This is considered the nominal level of uncertainty. When x = 2, it represents a system with twice as much uncertainty compared to the nominal system. x = 0 corresponds to the nominal system. Performance is represented on the y-axis by the peak gain of a closed-loop transfer function. From the graph, it can be inferred that the plant moves into an unstable zone when the normalized uncertainty rises with an increase in peak gain.

Figure 11
figure 11

(a) System performance degradation curve. (b) AVR performance degradation curve with controllers.

The performance degradation curves of the AVR with various controllers are shown in Fig. 11(b). This graph indicates that in the absence of a controller, the AVR system becomes unstable for even small amounts of system uncertainty. The AVR with V-Tiger PID controller is more stable than the FPA PID, TLbO PID, and ZN PID controllers in terms of system uncertainty as well. The peak gains and time delays of the AVR system with various PID controllers for the normalized uncertainty range of the amplifier and exciter are listed in Table 3.

Table 3 Peak gains and time delays of AVR for the normalized uncertainty of amplifier and exciter.

According to Table 3, when the uncertainty of the amplifier and exciter are set to their nominal values (x = 0), the nominal system gain (peak) with V-Tiger-PID controller is around 0.025dB. The peak gain of the AVR with the V-Tiger PID controller is infinite at normalized uncertainty (x) of amplifier and exciter of AVR is 3.5 i.e. the AVR system becomes unstable when the uncertainty range of the amplifier and exciter of AVR is beyond 3.5 times the specified uncertainty of the AVR model. Therefore, the robust stability margin of the AVR with the V-Tiger PID controller is 3.5. A robust stability margin means it is the maximum value of uncertainty that the system can withstand and remains stable. Similarly, for the AVR using FPA-PID, TLbO-PID, PIR-PID, and ZN-PID controllers, respectively, the peak gains of the AVR become infinite beyond the normalized uncertainty x = 1.5, x = 1.5, x = 1, and x = 3 and the robust stability margins are identified as 1.5, 1.5, 1 and 3. Figure 12a and b show the AVR responses for different normalized uncertainty levels using V-Tiger and ZN PID controllers, respectively.

Figure 12
figure 12

(a) Response of the AVR with V-Tiger-PID controller for normalized uncertainty. (b) Response of the AVR with ZN-PID controller for normalized uncertainty.

Table 4 shows the comparison of AVR's transient response for normalized uncertainty of amplifier and exciter. From Table 4, for small amounts of uncertainty in the amplifier and exciter, the nominal AVR system without a controller becomes unstable. In contrast, the AVR with FPA-PID, TLbO-PID, PIR-PID, and ZN-PID controllers becomes unstable when the normalized uncertainty in the amplifier and exciter is x = 1.5, x = 1.5, x = 1, and x = 3 correspondingly. With the V-Tiger PID controller, the permitted normalized uncertainty is measured as 3.5. This investigation makes it evident that the AVR with V-Tiger PID controller shows superior robustness performance than the other controllers.

Table 4 AVR's transient response for a range of normalized uncertainty of amplifier and exciter.

Worst-case gain

The worst-case gain (Kwc) is the peak gain at the specific uncertainty range. This value is the counterpart of the robust performance margin. Figure 13 shows the performance degradation curve of the AVR with the V-Tiger PID controller and it rises monotonically in proportion to the degree of uncertainty. The worst-case gain for the AVR with the V-Tiger-PID controller at the given uncertainty (x = 1) is around 7.95 dB, according to Fig. 13. When the specified uncertainty of the AVR using the V-Tiger-PID controller doubles (x = 2), the worst-cage gain hits 15.4 dB. Similarly, the AVR with FPA-PID, TLbO-PID, PIR-PID, and ZN-PID controllers has worst-case gains of about 15 dB, 15.1 dB, 47 dB, and 8.98 dB for the specified uncertainty. The AVR with FPA-PID, TLbO-PID, and PIR-PID controllers is unstable when the stated uncertainty is doubled; however, the AVR with ZN-PID controller has the worst-case gain of 17.6 dB.

Figure 13
figure 13

Performance degradation curve of AVR with V-Tiger PID controller.

Conclusions and future research directions

In this study, a novel tuning technique known as Virtual Time response based iterative gain evaluation and re-design (V-Tiger) is proposed, and its use in adjusting PID controller gains for automated voltage regulator (AVR) systems is examined. The AVR system with V-Tiger tuning exhibits better transient response than other tuning techniques, as shown in Fig. 8 and Table 2. In particular, it performs better than the ZN, PIR, FPA, and TLbO PID controllers in terms of low peak overshoot, short settling time, and higher damping factor. Furthermore, by adding uncertainty to the field exciter and amplifier, the transient response of the AVR with the V-Tiger and ZN PID controllers is also shown.

The performance degradation curves of AVR with different controllers are plotted in Fig. 11b. From the curves, the robust stability margins and worst-case stability gains are measured. The robust stability margins of the AVR system using the ZN PID and V-Tiger PID controllers are 3 and 3.5, respectively, for the maximum allowable uncertainty of the amplifier and field exciter. Moreover, the worst-case stability gain with a ZN PID controller is 8.67 dB, and with a V-Tiger PID controller, it is 7.95 dB. Future research will use novel optimization tuning techniques, such as the honey badger algorithm and the dandelion optimizer, to examine the transient responsiveness of the generator output and the robustness of the AVR with the controller. Also, the proposed methodologies will be used for Automatic generation control, Power System Stabilizer, speed control of industrial DC drives, and distributed network voltage profile improvement.

Future research in this area shows potential for further advancements in voltage regulation and control strategies, with an emphasis on improving system performance and robustness. One possible avenue of investigation is the use of novel optimization techniques, such as the honey badger algorithm and the dandelion optimizer, to fine-tune control parameters and improve system responsiveness. Furthermore, there exists a potential to broaden the scope of the proposed approaches beyond the context of voltage regulation in power generation plants. Future research may look into the effectiveness of these technologies in alternative areas, including Automatic Generation Control (AGC), Power System Stabilization (PSS), and speed regulation of industrial DC drives. Moreover, research studies may explore the integration of these control strategies into distributed energy systems with the aim of improving voltage profile management and ensuring grid stability. Furthermore, the development of better predictive modeling tools may provide more precise forecasting of voltage variations, allowing for proactive mitigation strategies. Integration with machine learning algorithms could improve system adaptability and efficiency by allowing for real-time decision-making depending on changing grid conditions.

In conclusion, future research should focus on enhancing the current level of knowledge in voltage regulation and control, exploring applications that involve various disciplines, and addressing new challenges related to sustainability and resilience in power systems.