Introduction

The disparity between energy production and consumption can lead to several adverse events that impact the electrical grid and the equipment on both the generation and load sides. Ensuring the safe and reliable operation of any electrical system network requires maintaining the system frequency and terminal voltage within acceptable limits. Modern power networks are equipped with Automatic Voltage Regulators (AVR) and Load Frequency Control (LFC) mechanisms to address variations in voltage and frequency1. These mechanisms, along with additional regulatory schemes, provide the necessary control over frequency and terminal voltage in the power system. However, the increasing demand for renewable energy sources, along with rapid population growth and industrialization, has introduced new challenges in the field of automatic generation control (AGC) within power systems2. The advent of energy markets has significantly transformed global power system networks. In a deregulated power system, multiple Generation Companies (GENCOs) and Distribution Companies (DISCOs) participate in a competitive electricity market overseen by a central entity known as the Independent System Operator (ISO)3.

Previously, researchers have addressed the automatic generation control (AGC) problem in traditional settings using classical controllers4,5,6,7. The interest in meta-heuristic-based PID controllers for studying LFC issues in deregulated environments has grown significantly8. Additionally, different fractional and hybrid versions of PID controllers, such as FOPID, TID, and PIDF (1 + FOD) controllers, have been previously employed in AGC studies9,10,11,12. The integration of renewable resources has received significant attention in research concerning LFC, both in classical and deregulated settings using classical controllers. Sharma et al.13 explored the challenges of frequency regulation in a deregulated power system with a fuzzy-based regulator combined with a redox flow battery14. In recent years, battery storage-based auxiliary frequency control methods have gained considerable importance15. Superconducting Magnetic Energy Storage (SMES) devices have also attracted attention for additional frequency regulation16,17. Due to the high cost of storage devices, various researchers have proposed more affordable alternatives, such as dynamic energy storage technologies. These include the integration of electric vehicles with the grid via vehicle-to-grid (V2G) technology, dynamic demand response, and controllable loads18,19,20. The concept of virtual inertia has been utilized to prevent unexpected frequency dips caused by fluctuating loads21. To further reduce power system frequency oscillations, several FACTS devices, such as Thyristor Controlled Series Capacitor (TCSC), Thyristor Controlled Phase Shifter (TCPS), and Interline Power Flow Coordinator (IPFC), have been integrated with controlled LFC systems22. Most work on simultaneous voltage and frequency control has been conducted in vertically integrated systems23,24. In the deregulated wind-integrated power system, Rajbongshi et al. proposed a proportional plus fractional integral plus derivative with filter (PIλDF) controller for combined AVR-LFC loops, though the voltage and frequency oscillations took a considerable time to settle25. Only a few studies have addressed this issue with solar and wind integration, with major focus on vertically integrated power systems for optimal control of combined AVR and LFC loops using classical as well as advanced controllers26,27,28,29,30.

A comprehensive review of the literature on combined voltage and frequency control indicates a major reliance on classical controllers, including various versions of PI, PID, and FOPID controllers. Therefore, the combined AVR-LFC control problem in deregulated power systems warrants further research with advanced predictive controllers31. Moreover, studies on voltage and frequency control in deregulated environments have often overlooked the stochastic nature of renewable generation. Furthermore, some recent studies are reviewed in the field of voltage and frequency regulation32,33,34,35.

Several recent works have integrated renewable sources with classical control mechanisms. For example, Rajbongshi et al. proposed a proportional-plus-fractional-integral-plus-derivative (PIλDF) controller for combined AVR-LFC loops, but the resulting system exhibited slow settlement of frequency and voltage oscillation studies have used advanced controllers such as the fuzzy-based regulator with redox flow batteries, but the literature remains limited to vertically integrated systems, leaving the deregulated power market relatively unexplored. Additionally, the role of auxiliary control devices like Unified Power Flow Controllers (UPFC) and Electric Vehicles (EVs) has been considered in some studies, but these devices are often analyzed in isolation, without a comprehensive strategy that integrates them with advanced predictive control methods.

In this study, a deregulated multi-area, multi-source power network has been studied for the combined voltage and frequency control problem for different deregulated market cases, such as poolco transactions and bilateral transactions. An optimal MPC-LHHO controller has been designed by the authors in29 for the centralized control of AVR and LFC loops in a vertically integrated power network. This work addresses the research gap in deregulated power systems by proposing a novel coordinated voltage and frequency control strategy that integrates advanced Leader Harris Hawks Optimization-based Model Predictive Control (MPC-LHHO) with stochastic modeling of wind and solar generation. Unlike traditional approaches, the proposed method incorporates stochastic models for renewable energy generation based on ARIMA, allowing for more accurate prediction of power fluctuations and enhanced system stability. Furthermore, the study integrates UPFC and EVs as auxiliary control devices, presenting a holistic control strategy for frequency regulation under variable renewable conditions in a deregulated market.

The novelty of this work lies in the novel combination of MPC-LHHO with stochastic renewable generation models and the simultaneous optimization of multiple control loops (AVR, LFC, and auxiliary control devices) in a deregulated power system. This is the first study to address the dual challenge of voltage and frequency regulation while accounting for contract breaches, random load variations, and the complex interactions in a deregulated environment, showcasing significant improvements in system stability and robustness36. The leader-based mutation selection has further amplified its performance by enhancing the exploration and exploitation phases37. Herein, the LHHO-optimized MPC has been implemented on the concerned deregulated system, and its transient response qualities have been examined and compared with the HHO-based Model Predictive controller as well as the conventional PID-FA27 and FOPID-MFO28 controllers. The sudden oscillation in the frequency and tie-line power flow that was caused by the intermittent nature of the load and the generation from renewable sources has been mitigated using the utilization of a Unified Power Flow Coordinator and the integration of Electric Vehicles (EVs) with the grid. These auxiliary methods of control have been deployed in conjunction with the MPC controller, and the controller weights have also been obtained using LHHO in coordination with EV and UPFC loops. The major novelties and highlights of this work are given as,

  1. 1.

    A novel approach is proposed for the simultaneous control of voltage and frequency deviations within a deregulated power system that integrates wind, photovoltaic (PV), and small hydro generation sources, employing the Leader Harris Hawks Optimized Model Predictive Controller (MPC-LHHO). The transient response of the MPC-LHHO is analyzed and compared to that of established controllers, including the PID-FA27, FOPID-MFO28, and MPC-HHO36, across various scenarios, such as poolco and bilateral transaction frameworks.

  2. 2.

    Further in a novel attempt, the randomness in wind and solar generation has been considered using two different stochastic models (SM-1 and SM-2). Under SM-1 the small stochastic drifts and deterministic drifts were modelled using a mathematical function. While in SM-2, the stochasticity in RESs has been modelled after using the Monte Carlo simulations of the ARIMA model constructed for real-time wind speed and solar irradiance data procured from NREL.

  3. 3.

    To deal with intermittencies in load and renewable sources, the authors have proposed the application of a Unified Power Flow Coordinator and Electric Vehicle integration with the grid. The simulation results have verified that a significant reduction has been recorded in the frequency fluctuations of the system.

  4. 4.

    The validation of robustness has been obtained after considering the contract violation case and randomly varying load pattern in the UPFC-EV-based MPC-LHHO controlled combined AVR-LFC model.

Section “Introduction” presents the basic introduction and literature review of the frequency and voltage control problem in interconnected power system networks under deregulated environment. The brief modelling of the combined AVR-LFC model along with UPFC and EV blocks has been discussed in “System modelling”. Section “LHHO-based model predictive control scheme” illustrates the LHHO-based optimal MPC strategy for the simultaneous control of voltage and frequency. Section “Results and discussion” presents the important findings and discussion related to the proposed work, followed by concluding remarks in the “Conclusions” section.

System modelling

Model for basic transient response analysis

This study analyses a combined AVR-LFC model containing 6 GENCOs and 6 DISCOs as depicted in Fig. 1. Herein, renewable power resources such as wind, solar PV, and hydro have been considered in integration with the conventional thermal and diesel generation systems. Area 1 GENCOs contain thermal, wind, and solar PV plants, and area 2 GENCOs contain thermal, diesel, and hydro plants. The generation capacity of area 2 is four times that of area 1. In this research work, authors have proposed 3 different methods for the modeling of solar and wind generation systems under a deregulated environment. Basic transient analysis features transfer function-based modeling wherein the stochastic nature of wind and solar has not been studied. In stochastic modelling (SM-1), the stochastic drifts and deterministic shifts have been considered for the modelling of wind and solar generation output values. In another case (SM-2), practical wind speed and solar irradiance data have been considered and stochasticity has been added using Monte Carlo simulations. In Fig. 1, the MATLAB SIMULINK based modelling for the combined AVR-LFC loops has been referred from the previously published works in the conventional and deregulated environment25,29. Detailed transfer function-based modelling for thermal, solar PV, wind, and hydro are provided in30,38,39. Additionally, the DISCO participation matrices (DPMs) and area participation factors (apfs) corresponding to the deregulated modelling under poolco, and bilateral cases are provided in Sect. 4.1.

Fig. 1
figure 1

Combined AVR-LFC model for the considered power system model under deregulated environment.

This work also features the application of several auxiliary control loops for the improvement of frequency stability in the power system model. Herein, Unified Power Flow Coordinator (UPFC) and Electric Vehicle (EV) integration with the grid has been considered to provide additional frequency support in the system in coordination with the proposed MPC-LHHO scheme. From the literature, it has been established that these auxiliary loops do not have an impact on the voltage and tie-line power flow deviations in the system. However, these auxiliary loops significantly improve the frequency profile of the system. In this work, several means of auxiliary controls have been adopted to curb the frequency oscillations caused due to the variations in the consumer load and renewable generation. Herein, the Unified Power Flow Controller has been employed to get improvements in the frequency regulation by providing fast-acting reactive power compensations in the tie-line. Such fast compensation will ensure a smooth lossless flow of power among different neighboring areas, and it will improve the damping of the system and power angle stability. The block diagram and detailed modelling of a UPFC device connected to a power system model may be referred to from7.

Recently, the concept of electric vehicle integration with the grid has gained much interest from various researchers working in the field of power structure management and regulation7. The electric vehicle unit in this work is basically an array of electric vehicles connected to the grid using V2G technology. These vehicles act as dynamic storage depending on the energy demand from the consumer side. During high demand, the vehicle battery will be used to supply power to the grid, and in case of reduced demand, the grid will supply excess power to the battery charging station. The change in output power (\(\:{\varDelta\:P}_{EVi}\)) of EV is a function of EV gain \(\:{(K}_{EVi}\)) and regulation capacity of EV (\(\:{R}_{EVi}\)). The up and down limits on the yield power of EV are considered as ± 5 kW. Figure 2 explains a basic method for the interconnection of EV aggregation with the grid38,40.

Fig. 2
figure 2

Block diagram representation for electric vehicle model.

Stochastic modelling of solar and wind units

Herein, the LFC model in Fig. 1 has been integrated with additional solar PV and wind generation units containing a randomly varying pattern comprising both deterministic shifts and stochastic drifts. This particular model (SM-1) has been previously used in the LFC model41 and combined AVR-LFC model for conventional power system models29. Herein, the net generated power from wind and solar is calculated using a mathematical model given in Eq. (1). And the graphical representation for the output wind and solar power is given in Fig. 3.

$$\:P\left(g\right)=\left[\right\{\varphi\:\eta\:\sqrt{\beta\:}(1-G(s\left)\right)+\beta\:\}\partial\:/\beta\:]\varGamma\:$$
(1)

P(g) is the total generation power from both solar and wind plants and is depicted in Fig. 3. Herein, \(\:\varphi\:\) is the stochastic element having random values from − 1 to + 1, and for both cases, \(\:G\left(s\right)=\frac{1}{1+1{0}^{4}s}\). And \(\:\varGamma\:\)is specified as 0.5 H(t)-0.1 H(t-40) for wind turbine model and 1.111 H(t)-0.5555 H(t-40) for solar PV model.

Fig. 3
figure 3

Fluctuations in generated solar and wind power output with respect to time for SM-129,41.

In another stochastic model (SM-2), the stochasticity in wind speed and solar radiation data has been introduced after obtaining the ARIMA model of real-time data taken from the National Renewable Energy Laboratory (NREL)42. Here, an ARIMA (2,1,3) model has been used to model the wind speed data and ARIMA (2,1,2) has been used to model the solar irradiance data. All the modelling coefficients are given in Table 1, and the resulting ARIMA models have been plotted to show a comparison with the actual data. The flowchart for the SM-2 modelling strategy is given in Fig. 4, and the resulting wind and solar data scenarios are given in Fig. 5. These ARIMA models are then simulated to generate 4 different scenarios of wind speed and solar irradiance. These generated scenarios for 24-h are sampled in seconds, and 100 data samples for each scenario are saved for further processing. Further, for wind speed data samples, the typical speed vs. power characteristic was used to calculate the net generated wind turbine power38,43. Further, for solar radiation data, the output power characteristics given by Shimizu et al., Matsuo et al., and Nakagawa et al.32 have been employed to calculate the net solar PV power. The extracted power from the PV cell is determined using Eq. (2).

$$\:{P}_{PV}=\:\eta\:S\varphi\:\:\left(1-0.005\left({T}_{a}+25\right)\right)$$
(2)

Here, \(\:\eta\:\) is the efficacy of PV, S is the PV surface area,\(\:\:\varphi\:\) is the intensity of Solar radiation, and \(\:{\:T}_{a}\) is the surrounding temperature.

Fig. 4
figure 4

Proposed strategy for the modelling of wind and solar generation under SM-2.

Fig. 5
figure 5

Different scenarios generated using ARIMA models for: (a) wind speed, (b) solar irradiance.

In this study, the ARIMA (Auto Regressive Integrated Moving Average) model is utilized to generate stochastic scenarios for wind and solar power generation. The ARIMA model is well-suited for forecasting time series data with inherent randomness and trends, such as wind speed and solar irradiance. To model these parameters, MATLAB’s Econometric Modeler was employed, which provides an efficient environment for fitting ARIMA models to real-time wind and solar data obtained from the National Renewable Energy Laboratory (NREL). For the wind speed data, an ARIMA (2,1,3) model was developed, and for the solar irradiance data, an ARIMA (2,1,2) model was chosen. The ARIMA parameters for both wind speed and solar irradiance were estimated using MATLAB’s Econometric Modeler, which applies Maximum Likelihood Estimation (MLE) to find the optimal values for the AR and MA terms.

The econometric tool also enabled the validation of the ARIMA model by comparing the generated time series against real-time data from NREL. This validation ensured that the model parameters (AR and MA coefficients) accurately reflected the stochastic nature of wind and solar power generation.

Table 1 Coefficients for ARIMA model considering wind and solar data.

LHHO-based model predictive control scheme

In this article, a robust centralized Model Predictive Controller (MPC) is examined and implemented to regulate both frequency and voltage within a hybrid energy system in a deregulated environment. This advanced predictive controller leverages a novel meta-heuristic optimization method, enhancing the system’s transient profile. The standout feature of this work is the optimization of MPC cost characteristic weights using the Leader Harris Hawks Optimization (LHHO) method. While MPC is a reliable technique for various dynamical systems, its effectiveness is notably improved by fine-tuning the cost function weights, particularly for managing multi-loop dynamics. The authors introduce a meta-heuristic optimization strategy designed to precisely adjust the controller weight values. This article explores the essential components and steps of the LHHO-MPC approach, providing a thorough analysis of how this innovative strategy effectively tackles the complex combined voltage and frequency issues in a deregulated power network. The strategic integration of the MPC framework with the adaptive LHHO optimization method represents a novel approach to ensuring the stability and efficiency of hybrid energy systems in a dynamic deregulated environment.

  1. 1.

    Model the concurrent voltage and frequency regulation loops for the deregulated power structure on the SIMULINK platform.

  2. 2.

    Employ MPC using the design tool and supply the values for Measured Outputs (MOs), Manipulated Variables (MV), sampling time, prediction horizon, and control horizon.

    Here, area control error values in both areas are taken as MVs (input variables), and frequency deviation is taken as MOs (output variables) corresponding to LFC loops. Similarly, the input signal to the exciter is taken as MVs and terminal voltage output is taken as MOs for AVR loops in both areas.

  3. 3.

    Select the weights on input, output, and rate of change of input using online features in MPC design and provide nominal values for chosen weights and run the model.

  4. 4.

    Execute LHHO method for the optimum tuning of the above-mentioned controller weights. The tuning of MPC weights should be performed in such a manner that the Performance Index (PI) presented in Eq. (3) is minimized.

    $$\:\text{P}\text{I}\:=\:{(\alpha\:.ISE}_{1})+{(\beta\:.ISE}_{2})$$
    (3)

    where, \(\:{ISE}_{1}={\int\:}_{0}^{T}\left\{{(\varDelta\:{f}_{i})}^{2}+{(\varDelta\:{T}_{pij})}^{2}\right\}dt\:and\:{ISE}_{2}={\int\:}_{0}^{T}\left\{{\varDelta\:{V}_{i}}^{2}\right\}\)dt.

    Here, \(\:\varDelta\:{f}_{i}\) and \(\:\varDelta\:{V}_{i}\) are the frequency error and voltage error values in ith area, and \(\:\varDelta\:{T}_{pij}\) is the tie-line power error between area i and j. \(\:{ISE}_{1}\) and \(\:{ISE}_{2}\) are the values of integral squared errors associated with the LFC and AVR loops, respectively.

  5. 5.

    Choose the suitable values for \({\alpha}\:\text{and}\:{\beta}\) to get the required performance.

    The flow diagram for the proposed LHHO-based MPC method is provided in Fig. 6. Further, a detailed description of the MPC and LHHO approaches is provided in the subsequent sections.

    Fig. 6
    figure 6

    Block diagram for the proposed MPC-LHHO scheme.

Model predictive control

As opposed to traditional PID and MPC controllers, the centralized MPC algorithm proposed here better coordinates the voltage and frequency management loops and effectively deals with their interface. Since MPC can process several inputs and outputs simultaneously, it is an efficient control method for complicated systems with linear and non-linear dynamics. Since nonlinearities, uncertainties, and external disturbances are inherently present in any power system model, MPC is essential in order to compensate for them adequately. The prediction unit and the control unit are the two main components of an MPC block. At the current instant of time, where the past data on the inputs/outputs and array of control sequences are available for a specific prediction horizon, the prediction unit is responsible for making predictions on plant output. Control computations are then carried out optimally by minimizing a cost function in Eq. (4), and the control unit determines future control input by analyzing past input/output data and forecasts of future output.

$$\:\varvec{J}=\:{\sum\:}_{\varvec{h}={\varvec{H}}_{1}}^{{\varvec{H}}_{2}}\varvec{o}1{{[\varvec{E}}_{\varvec{p}}(\varvec{t}+\varvec{h})]}^{2}+{\sum\:}_{\varvec{m}=1}^{\varvec{M}}\varvec{c}1[{\varDelta\:\varvec{U}(\varvec{t}+\varvec{m}-1)]}^{2}$$
(4)

Here, H1 and H2 are bounds on the set of predicted samples, M is a bound on the control sequence, Ep is the prediction error between the reference output and the predicted output values, and U is the incremental control input sequence. The optimizer will solve this cost function (CF) for each time sample to get its optimal control sequence values. Figure 6 presents the fundamental architecture for MPC tuned using the LHHO algorithm.

In this problem, the Model Predictive Controller (MPC) addresses a Multiple Input Multiple Output (MIMO) system with 4 input and 4 output variables. The prediction horizon is set to 10, and the control horizon is 2. The dataset for the MPC cost function includes CF weights o1 and c1, representing the error in anticipated output estimations and the variance between adjacent input samples, respectively. These weights determine the cost associated with each input and error value. The controller intervenes to prevent the output from deviating from the set point if the weight corresponding to any projected error is large. Similarly, the MPC ensures that no input deviates from its starting value if the coefficient for that input is large. A penalty on the rate of change in control can be applied to penalize the difference between current and previous input values. An additional weight (dc1) is used to impose a penalty on the incremental change of the input vector. By appropriately adjusting the cost function weights, the MPC controller can manage multi-loop problems and various objectives. These weights can range between zero and one and can be optimized using a meta-heuristic algorithm to achieve the desired outcomes29,31.

Leader HHO algorithm

Harris Hawks Optimization (HHO) is a nature-inspired optimization technique that mimics the chasing and hunting behavior of Harris Hawks. The optimal solution is represented by the position of the Jackrabbit, with each Hawk in the group representing a potential solution to the problem. HHO excels in optimization due to its well-defined exploration and exploitation phases, along with exceptional convergence abilities. The procedural steps of HHO are detailed in the literature, specifically in reference36. To further enhance the HHO algorithm, some modifications have been proposed in37. The introduction of an adaptive perch probability feature, which depends on the positions of the worst- and best-performing Hawks, has significantly improved the algorithm’s search process. Additionally, a leader-based mutation selection method has been implemented to simulate the transition from exploration to exploitation. This feature greatly enhances the Hawks’ search capabilities, resulting in the advanced Leader Harris Hawks Optimization (LHHO). The pseudocode and algorithmic steps for this approach can be found in reference37.

The Leader Harris Hawks Optimization (LHHO) approach used in this study introduces significant advancements by enhancing the exploration and exploitation phases of the traditional HHO algorithm. The adaptive perch probability and leader-based mutation selection improve convergence speed and ensure global optimization, making it particularly effective for complex multi-loop control problems in power systems. Future work could explore extending the LHHO framework to hybrid optimization techniques or applying it to other domains, such as energy management in microgrids or large-scale renewable integration scenarios, to further validate its versatility and performance.

Table 2 Parameter values for different controllers.

Results and discussion

Basic transient performance

Under this analysis, the proposed algorithm was implemented on the combined AVR-LFC system for the presented test system under poolco and bilateral transactions. Herein, the controller performance of the proposed LHHO-based MPC technique is evaluated and compared with the MPC-HHO29, PID-FA27, and FOPID-MFO28 techniques. The controller parameters for the above-mentioned methods are given in Table 1. The resulting graphs showing frequency deviations, tie-line power error, voltage deviations under poolco, and bilateral transaction cases are represented in Figs. 7 and 8, respectively. The quantitative analysis of obtained results from the LHHO-MPC method in comparison with HHO-MPC29, PID-FA27, and FOPID-MFO28 techniques is shown in Table 2. The disco participation matrices for both transactions are given in Eq. (5). The apf values for GENCOs under poolco transaction are [1/3, 1/3, 1/3, 1/3, 1/3, 1/3]; and for bilateral transactions the apf values are [0.5, 0.2, 0.3, 0.4, 0.3, 0.3]. The net amount of generation (in puMW) from each GENCO may be calculated as per the Eq. (6).

Fig. 7
figure 7

Transient response curves for poolco transaction case considering; (a) \(\:\varDelta\:{f}_{1}\) (Hz), (b) \(\:\varDelta\:{f}_{2}\) (Hz), (c) \(\:\varDelta\:{T}_{p12}\) (puMW), (d) \(\:\varDelta\:{V}_{1}\) (V).

Fig. 8
figure 8

Transient response curves for bilateral transaction case considering; (a) \(\:\varDelta\:{f}_{1}\) (Hz), (b) \(\:\varDelta\:{f}_{2}\) (Hz), (c) \(\:\varDelta\:{T}_{p12}\) (puMW), (d) \(\:\varDelta\:{V}_{1}\) (V).

$$\begin{aligned} & {\text{DPM}}_{{{\text{poolco}}}} = \left[ {\begin{array}{*{20}l} {1/3} \hfill & {1/3} \hfill & {1/3} \hfill & 0 \hfill & 0 \hfill & 0 \hfill \\ {1/3} \hfill & {1/3} \hfill & {1/3} \hfill & 0 \hfill & 0 \hfill & 0 \hfill \\ {1/3} \hfill & {1/3} \hfill & {1/3} \hfill & 0 \hfill & 0 \hfill & 0 \hfill \\ 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill \\ 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill \\ 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill & 0 \hfill \\ \end{array} } \right]\:{\text{and}} \\ & {\text{DPM}}_{{{\text{bilateral}}}} = \left[ {\begin{array}{*{20}l} {0.2} \hfill & {0.3} \hfill & {0.1} \hfill & {0.2} \hfill & {0.15} \hfill & {0.3} \hfill \\ {0.15} \hfill & {0.1} \hfill & {0.2} \hfill & {0.15} \hfill & {0.15} \hfill & {0.1} \hfill \\ {0.15} \hfill & {0.1} \hfill & {0.2} \hfill & {0.15} \hfill & {0.2} \hfill & {0.1} \hfill \\ {0.3} \hfill & {0.2} \hfill & {0.15} \hfill & {0.1} \hfill & {0.2} \hfill & {0.1} \hfill \\ {0.1} \hfill & {0.2} \hfill & {0.2} \hfill & {0.1} \hfill & {0.1} \hfill & {0.2} \hfill \\ {0.1} \hfill & {0.1} \hfill & {0.15} \hfill & {0.3} \hfill & {0.2} \hfill & {0.2} \hfill \\ \end{array} } \right] \\ \end{aligned}$$
(5)
$$\:\varDelta\:{P}_{Gi}={\sum\:}_{k=1}^{6}cp{f}_{ik}\varDelta\:{P}_{Lk}$$
(6)

Using the above expressions, the net generated power for GENCO 1 under poolco transaction with a load of 0.01 pu MW is calculated as in Eq. (7).

$$\:{\Delta\:}{\text{P}}_{\text{G}\text{E}\text{N}\text{C}\text{O}1}=\left[\frac{1}{3}+\frac{1}{3}+\frac{1}{3}+0+0+0\right]\text{*}0.01=\:0.01\:\text{p}\text{u}\text{M}\text{W}$$
(7)

Similarly, the net generation for bilateral transaction case is computed as in Eq. (8).

$$\:{\Delta\:}{\text{P}}_{\text{G}\text{E}\text{N}\text{C}\text{O}1}=\left[0.2+0.3+0.1+0.2+0.15+0.3\right]\text{*}0.01\:=\:0.0125\:\text{p}\text{u}\text{M}\text{W}$$
(8)

On the similar lines, the generated output for the remaining GENCOs can be computed using the expression in Eq. (13). For bilateral transaction case, the output for GENCOs 2, 3, 4, 5, and 6 is 0.0085 pu MW, 0.009 pu MW, 0.0105 pu MW, 0.009 pu MW, and 0.0105 pu MW, respectively. For MPC-LHHO controlled system, the generated outputs thermal units in both areas i.e., GENCO 1 and GENCO 4 under bilateral transaction case are provided in Fig. 9.

Fig. 9
figure 9

Output power deviations in GENCOs having thermal generation unit.

Table 3 depicts the transient response analysis of obtained results in terms of peak overshoot (PO), peak undershoot (PU), and settling time (ST). Upon analyzing the same, it has been observed that for the stabilization frequency in area 1 under poolco transactions, the proposed MPC-LHHO method provides a minimum undershoot of 0.0207, which is 67.45% and 62.83% improved when compared with PID-FA27 and FOPID-MFO28 controllers, respectively. Similarly, the presented method provides 91.11% and 84% improvements in settling time for voltage deviations in area 1 under poolco transactions when compared to the PID-FA27 and FOPID-MFO28 controllers, respectively. The proposed MPC-LHHO method provides a small yet significant improvement in overall fitness function values when compared to the MPC-HHO29 controller.

Table 3 Transient response performance evaluation for different controllers.

Further, considering bilateral transactions case, the proposed MPC-LHHO method yields minimum value of overall fitness function value considering LFC loops (ISE1), i.e., 0.0027. Comparatively, the proposed technique results in 67.46%, 59.09%, and 15.62% improvements in LFC loops (ISE1) values when compared with PID-FA27, FOPID-MFO28, and MPC-HHO29 controllers, respectively. Further, the fitness function value corresponding to the AVR loop is minimum for MPC-LHHO controller, i.e., 0.6036. Herein, an improvement of 81.96%, 75.98%, and 20.16% has been observed when compared with PID-FA27, FOPID-MFO28, and MPC-HHO29 controllers, respectively.

Performance improvement using UPFC and EV

Herein, the load frequency controller performance has been further enhanced with the aid of certain auxiliary controller loops working in coordination with the proposed MPC-LHHO controller. Herein, UPFC device has been used to provide supplementary support to provide enhanced power exchange between the two control areas. Thereafter, the electric vehicle integration with the grid has been considered along with UPFC device and the MPC weights have been recomputed in coordination with these two auxiliary LFC loops. From Figs. 10 and 11, it is evident that these auxiliary loops significantly reduce the frequency deviations in the system under poolco and bilateral transaction cases. Here, the fitness function values corresponding to the frequency deviation in both cases of the MPC-LHHO controlled system aided with UPFC and EV loops demonstrate the improvement in overall performance enhancement in the frequency regulation.

Fig. 10
figure 10

Graphical representation of transient response performance obtained after using UPFC and EV integration for poolco transaction case; (a) \(\:\varDelta\:{f}_{1}\) (Hz), (b) \(\:\varDelta\:{f}_{2}\) (Hz).

Fig. 11
figure 11

Graphical representation of transient response performance obtained after using UPFC and EV integration for bilateral transaction case; (a) \(\:\varDelta\:{f}_{1}\) (Hz), (b) \(\:\varDelta\:{f}_{2}\) (Hz).

Performance evaluation under stochastic modelling of RESs

This section features the study and implementation of stochastic wind and solar models in EV-UPFC assisted MPC-LHHO controlled AVR-LFC system under poolco transactions. Herein, the two different cases for the stochastic models have been considered for the transient analysis.

In the first case (SM-1), the wind and solar generation values have been modelled considering deterministic shift and stochastic drifts. Further, the proposed EV-UPFC assisted MPC-LHHO controller has been applied with original weight settings as discussed in previous subsections. The resulting transient response plots have been acquired and represented in Fig. 12. From the obtained plots, it is clear that the frequency and voltage profile of the system remain stable under the stochastic modelling (SM-1) of wind and solar power generation.

Fig. 12
figure 12

Obtained transient response for SM-1 case; (a) \(\:\varDelta\:{f}_{1}\) (Hz), (b) \(\:\varDelta\:{f}_{2}\) (Hz).

In the second case (SM-2), the randomness in wind and solar data has been modelled with the assistance of Monte Carlo simulated ARIMA models of real time wind speed and solar irradiance data. Further, these stochastic models of PV and wind have been added in the system in addition to the existing transfer function-based PV and wind models in area 1 and area 2, respectively. The resulting transient response plots attained after applying SM-2 modelling are given in Figs. 13 and 14.

Fig. 13
figure 13

Transient response performance results under SM-2 case considering wind turbine in area 2; (a) \(\:\varDelta\:{f}_{1}\) (Hz), (b) \(\:\varDelta\:{f}_{2}\) (Hz).

Fig. 14
figure 14

Transient response performance results under SM-2 case considering solar PV integration in area 1; (a) \(\:\varDelta\:{f}_{1}\) (Hz), (b) \(\:\varDelta\:{f}_{2}\) (Hz).

Performance assessment under diverse loading cases

In this analysis, the robustness of the presented approach has been tested under different challenging scenarios such as contract violation and random loading cases. The proposed UPFC-EV assisted MPC-LHHO approach has been implemented after considering 0.01 pu MW additional load demand from DISCO 1. The DPM for the contract violation case is taken from24, and the apf values for the GENCOs are given as [0.4, 0.25, 0.35, 0.4, 0.2, 0.4]. The resultant response of the system frequency and voltage profile is given in Fig. 15.

Fig. 15
figure 15

Transient response results under contract violation case.

Further, the robustness of the proposed UPFC-EV based MPC-LHHO controller has been tested under the random loading scenario. Herein, a randomly varying load pattern has been considered in the contract violation case. From the transient response plots in Fig. 16, it is clear that the proposed controller effectively handles the fluctuating loading pattern to give a stable transient response for frequency and terminal voltage errors.

Fig. 16
figure 16

Transient response curves for random loading case; (a) Load (pu MW), (b) \(\:\varDelta\:{f}_{1}\) (Hz), (c) \(\:\varDelta\:{f}_{2}\) (Hz), (d) \(\:\varDelta\:{V}_{1}\) (V).

Conclusions

This manuscript addresses the dual challenge of reducing voltage and frequency deviations in a deregulated power network that includes thermal, diesel, and renewable sources from wind, solar PV, and hydro plants. An efficient control strategy, the Leader Harris Hawks optimized Model Predictive Control (MPC-LHHO), is implemented to stabilize voltage and frequency in this hybrid interconnected network, specifically under poolco and bilateral transaction scenarios. Simulation results confirm the superiority of this approach, as it achieves minimal fitness function values and enhances the system’s transient profile compared to other recent methods reported in the literature. For both transaction cases, the MPC-LHHO controller demonstrates outstanding performance, yielding the lowest performance index values. Additionally, an auxiliary control loop involving unified power flow controller and electric vehicle (UPFC-EV) integration is incorporated with the MPC-LHHO to further refine frequency stability, with EV-UPFC integration boosting the fitness function value by 52.18% and 22.22% for poolco and bilateral scenarios, respectively. To address practical considerations, two separate methods are used to incorporate stochastic variations in solar radiation and wind speed into the voltage and frequency control model. Results indicate the robustness of the proposed control method, delivering stable responses across various load conditions, including contract violations and random loading scenarios.

Future works may focus on integrating the proposed control strategy with real-time market dynamics and testing it in deregulated power systems. Additionally, expanding the stochastic models to account for more uncertainty factors, such as weather and market fluctuations, could improve the predictive capability. Exploring hybrid optimization techniques and addressing cybersecurity concerns will also be crucial for enhancing the robustness and adaptability of the system in future implementations.