Next Article in Journal
Experimental Study on Direct and Indirect Carbonation of Fly Ash from Fluidized Bed Combustion of Lignite
Next Article in Special Issue
Artificial Intelligence-Based Optimized Nonlinear Control for Multi-Source Direct Current Converters in Hybrid Electric Vehicle Energy Systems
Previous Article in Journal
Short-Term Load Forecasting in the Greek Power Distribution System: A Comparative Study of Gradient Boosting and Deep Learning Models
Previous Article in Special Issue
Levelized Cost of Electricity for Electric Vehicle Charging in Off-Grid Solar-Powered Microgrid: A Practical Case Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Revolutionizing Hybrid Microgrids Enhanced Stability and Efficiency with Nonlinear Control Strategies and Optimization

1
School of Electrical Engineering and Computer Sciences (SEECS), National University of Sciences and Technology (NUST), Islamabad 44000, Pakistan
2
School of Interdisciplinary Engineering and Sciences (SINES), National University of Sciences and Technology (NUST), Islamabad 44000, Pakistan
3
Department of Electrical Engineering, College of Engineering, Qassim University, Buraydah 52571, Saudi Arabia
*
Author to whom correspondence should be addressed.
Energies 2025, 18(19), 5061; https://doi.org/10.3390/en18195061
Submission received: 8 August 2025 / Revised: 6 September 2025 / Accepted: 18 September 2025 / Published: 23 September 2025

Abstract

Microgrid systems play a vital role in managing distributed energy resources like solar, wind, batteries, and supercapacitors. However, maintaining stable AC/DC bus voltages and minimizing grid reliance under dynamic conditions is challenging. Traditional control methods such as Sliding Mode Controllers (SMCs) suffer from issues like chattering and slow convergence, reducing practical effectiveness. This paper proposes a hybrid AC/DC microgrid that operates in both grid-connected and islanded modes while ensuring voltage stability and efficient energy use. A Conditional-Based Super-Twisting Sliding Mode Controller (CBSTSMC) is employed to address the limitations of conventional SMCs. The CBSTSMC enhances system performance by reducing chattering, improving convergence speed, and offering better tracking and disturbance rejection. To further refine controller performance, an Improved Grey Wolf Optimization (IGWO) algorithm is used for gain tuning, resulting in enhanced system robustness and precision. An Energy Management System (EMS) is integrated to intelligently regulate power flow based on renewable generation and storage availability. The proposed system is tested in real time using a Texas Instruments Delfino C2000 microcontroller through a Controller-in-the-Loop (CIL) setup. The simulation and hardware results confirm the system’s ability to maintain stability and reliability under diverse operating scenarios, proving its suitability for future smart grid applications.

1. Introduction

The electrical power grid is a vast and intricate system responsible for transmitting electricity from producers to consumers, serving as a cornerstone of modern infrastructure and daily life. However, rising concerns over the environmental consequences of conventional power generation, particularly its role in greenhouse gas emissions and pollution, are accelerating the shift toward cleaner, more sustainable energy solutions [1]. One of the most promising developments in this transition is the emergence of microgrids (MGs) powered by renewable energy sources (RESs). These systems offer an effective means of reducing environmental impact while supporting global efforts to combat climate change. RES-based microgrids are gaining popularity due to their high efficiency, ease of deployment, and significant role in expanding renewable energy adoption. By aligning distributed generation with local demand, microgrids enhance power reliability and enable efficient utilization of waste heat clear advantages over conventional centralized systems [2]. Photovoltaics (PVs) have proved especially promising among other renewable technologies, and their efficiency enhancement rate is at 9.0% per annum [3]. Future projection using the past highs could, therefore, not be reliable unless a keen insight regarding the causes of this rise is brought to the fore. In this respect, Ref. [4] offers an extended analysis of smart grid development paying attention to the significant elements of it like its communication infrastructure, demand response systems, and cybersecurity. Other issues raised by the study are resource management, optimization, reliability, and creation of self healing capabilities, which are very vital in accomplishing the full potential of the smart grid.
Hybrid AC/DC microgrids (MGs), composed of distributed generators, energy storage systems, and varying load profiles, face considerable control and optimization challenges [5]. The unpredictable nature of renewable energy generation and the continuous variations in DC load demand can significantly impact system stability and operational efficiency [6]. Voltage fluctuations during transitions between islanded and grid-connected modes further complicate reliable operation. To address these challenges, effective power management strategies are essential for ensuring seamless performance under different generation and load conditions [7,8].
Several studies have proposed linear control techniques for microgrid stability, including integral terminal Sliding Mode Control applied on both the machine and grid sides [9]. While effective under certain conditions, these models are typically optimized for islanded mode and often require dual control schemes, introducing additional complexity. Similarly, linear controllers such as traditional droop control are commonly used for DC bus regulation but struggle to respond effectively under highly variable operating conditions. Although robust H controllers have been developed to mitigate uncertainties caused by load variations [10], comprehensive stability analysis in such frameworks remains limited. Furthermore, linear methods frequently fail to capture the nonlinear dynamics of RESs when integrated with power converters and energy storage systems, making them insufficient for complex real-world applications [11].
In order to circumvent the limitations of linear controllers, researchers have increasingly adopted nonlinear control strategies. Among them, the Double Integral Sliding Mode Controller (DISMC) has been widely used in grid-connected wind–PV hybrid systems to enhance steady-state performance, voltage regulation, and robustness under varying operating conditions [12]. However, classical SMC approaches still suffer from inherent issues such as chattering, sensitivity to parameter uncertainties, and limited robustness against external disturbances [13]. More recent investigations have explored DISMC implementations within renewable energy DC microgrids equipped with hybrid energy storage systems, demonstrating improvements in voltage regulation, dynamic responsiveness, and system-wide stability validated via Lyapunov-based analysis and hardware-in-the-loop (HIL) testing [14]. Nonetheless, challenges remain unaddressed, particularly regarding the intermittent nature of renewable energy sources (RESs), which often induces voltage oscillations when multiple sources are coordinated in hybrid AC/DC topologies [15]. Adaptive droop control, though popular for its decentralized structure, may also degrade in performance due to communication delays when multiple energy storage systems (ESSs), PVs, and wind units are interconnected.
To overcome these challenges, recent developments in Sliding Mode Control (SMC) have focused on improving robustness, mitigating chattering, and ensuring fast convergence in microgrid environments under non-ideal operating conditions. Alipour et al. [16] proposed an observer-based backstepping SMC for DC microgrids feeding constant power loads, ensuring system stability despite load perturbations. Mustafa [17] developed an adaptive SMC technique tailored for buck converters interfaced with hybrid microgrids, exhibiting superior current regulation under varying conditions. Similarly, Alnami et al. [18] designed an adaptive dynamic surface Sliding Mode Controller for PV-integrated systems, achieving enhanced tracking accuracy and resilience to external disturbances. Ma et al. [19] introduced a fractional-order SMC that addresses time-delay and parametric uncertainties in distributed generation systems. In addition, Mahmoudi et al. [20] integrated neural networks with SMC for maximum power point tracking (MPPT), enabling improved adaptability under changing irradiance. Chen et al. [21] applied a double-integral SMC framework for fault-tolerant control in hybrid energy architectures. While these contributions represent significant advancements, many of them lack saturation-aware logic or have not been validated beyond simulation environments. Motivated by these limitations, the proposed CBSTSMC incorporates conditional feedback to handle actuator saturation, ensures chattering-free performance, and is verified via Controller-in-the-Loop (CIL) testing for real-time practical feasibility.
In order to overcome these multidimensional problems, this paper is proposing a CBSTSMC of hybrid AC/DC microgrids. The method is highly robust, chatter-free, and easy to implement. The CBSTSMC is specifically created to eliminate wind up created by conveying of control signals. In simple operating conditions without the effects of actuator saturation, the controller acts like a regular Super-Twisting Algorithm (STA), so the performance of the system is smooth and stable. Additionally, the controller incorporates saturation-aware feedback logic, allowing it to switch dynamically between nominal and nonlinear modes depending on operating conditions, which significantly improves stability under fast transients. To further enhance control accuracy and eliminate the need for manual tuning, the CBSTSMC gains are optimized using an Improved Grey Wolf Optimization (IGWO) algorithm, which ensures fast convergence, robustness to uncertainties, and superior steady-state error performance.
The proposed hybrid microgrid architecture is shown in Figure 1 comprising wind energy, battery-and-supercapacitor-based energy storage, grid connection, and different loads. The subsystem within wind energy has a wind turbine and a Permanent Magnet Synchronous Generator (PMSG) connected to a bridge rectifier, DC–DC boost converter, and a DC-link bus, whereas the battery and supercapacitor as assembled in hybrid energy storage devices are linked to the DC bus via a current fed converter. Such an arrangement allows for arranging the efficient management of energy and stable work under a wide variety of conditions. This architecture is tested under both simulation and real-time Controller-in-the-Loop (CIL) environments, verifying its hardware compatibility and performance robustness under real-world disturbances.
The proposed research involves stable voltage regulation at AC and DC buses with variable loads, intermittent RESs, and external disturbances. This work has the following main contributions:
  • Development of multiple control strategies to ensure AC and DC bus stability under dynamic load variations, external disturbances, and RES fluctuations.
  • Design and implementation of the proposed CBSTSMC controller tailored for hybrid AC/DC microgrids.
  • Construction of a comprehensive global model to validate the proposed control strategy’s effectiveness through simulation and analysis.
  • Integration of an IGWO-optimized gain tuning layer to enhance dynamic tracking and minimize steady-state error across diverse scenarios.
  • Validation of the control scheme through real-time CIL testing on a Texas Instruments Delfino C2000 microcontroller, confirming its feasibility for embedded deployment.
This paper is structured as follows: Section 2 presents the mathematical modeling of the system. Section 3 focuses on the design of the controller and the optimization techniques utilized. The simulation results and their analysis are provided in Section 4. Section 5 discusses the Controller-in-the-Loop controller performance. Finally, Section 6 concludes the paper with a summary of key findings.

2. Mathematical Modeling

In this section, the mathematical model of the system is discussed.

2.1. Modeling of Wind Energy System in DC Microgrids

Here, there is a wind system incorporated into a DC microgrid in which a wind turbine, a Permanent Magnet Synchronous Generator (PMSG), an uncontrolled diode rectifier (UDR), and a DC–DC booster are presented. The wind turbine will provide mechanical energy that has to be converted to AC by the PMSG and be rectified by the UDR and switched to DC and processed by the boost converter. The system also uses the Perturb and Observe Maximum Power Point Tracking (MPPT) method in order to optimize as much power as it can in different wind speeds [22]. The entire wind system, including the boost converter, can be seen in Figure 2.
The power of the wind, which is available in the form of mechanical energy, is estimated as
P m = 1 2 ρ π R 2 V 3 C p ( λ , β )
The air density, ρ (kg/m3), turbine radius, R, and power coefficient, C p , as well as wind speed, V, are the only parameters used by Equation (1). The pitch of the blade, pitch angle, β , and power coefficient, C p , affect the tip speed ratio, which varies between 0.4 and 0.45 but has a theoretical limit of 0.59. Wind turbine efficiency and efficient capture of energy are directly associated with the tip speed ratio as defined in Equation (2):
λ = ω m R V
In Equation (2), we refer to the angular speed of the rotor in radians per second as ω m . The maximum mechanical power P max , which is extracted out of the winds under optimal wind operating conditions, is written as
P max = 0.5 λ opt 3 ρ A R 3 ω m 3 C p max ( λ , β )
where ρ is air density, A is the turbine’s swept area, Cpmax is the maximum power coefficient, and lambdaopt is the optimal tip speed ratio in Equation (3).
The power coefficient C p ( λ , β ) is determined with this empirical formula:
C p ( λ , β ) = C 1 C 2 λ i C 3 β C 4 exp C 5 λ i + C 6 λ
where the intermediate variable λ i is given by
1 λ i = 1 λ + 0.8 β 0.035 β 3 + 1
The tip speed ratio λ , previously introduced in Equation (6), is defined as
λ = ω m R V
The power coefficient C p ( λ , β ) , which governs the aerodynamic efficiency of the wind turbine, is modeled using an empirical expression as shown in Equation (4). This nonlinear function captures the dependency of power extraction on the tip speed ratio λ and pitch angle β . The model coefficients are selected as
C 1 = 0.5176 , C 2 = 116 , C 3 = 0.4 , C 4 = 5 , C 5 = 21 , C 6 = 0.0068
These constants are widely used in wind energy simulation studies and are derived from the seminal work of Heier on wind turbine aerodynamics and integration systems [23]. The same model structure and coefficient values are also adopted in industrial-grade simulation tools, including MATLAB/Simulink’s Wind Turbine blockset [24]. This formulation allows accurate yet computationally efficient modeling of turbine performance under varying wind conditions and serves as a basis for implementing MPPT strategies.
The maximum power output is obtained using Equation (1). Figure 3 illustrates the implementation of the Perturb and Observe (P&O) MPPT algorithm in the wind subsystem. The Perturb and Observe (P&O) algorithm is adopted for MPPT due to its simplicity, low computational burden, and ability to effectively track the maximum power point without requiring prior knowledge of turbine characteristics. Although the P&O MPPT algorithm is well established in the literature [25], its flowchart is included here to clearly illustrate the specific implementation adopted in the proposed system.
The DC–DC boost converter consists of an inductor, L w t , an input capacitor, C w , a MOSFET switch, S 3 , and a diode, D w , which collectively regulate the energy flow from the wind energy system to the DC bus. The dynamic behavior of the proposed wind energy boost converter is modeled using the average-value method, applying the principles of volt-second balance (VSB) and capacitor charge balance (CCB). The resulting differential equations, shown in Equations (7) and (8), describe the converter’s performance and assist in analyzing its efficiency and control dynamics.
d i w d t = V w L w t R w i w L w t ( 1 μ 2 ) V d c L w t
d V d c d t = ( 1 μ 2 ) i w C w i out C w
In these equations, V d c is the output voltage across the DC-link capacitor, i w is the current from the wind energy subsystem, and μ 2 represents the duty cycle control input for the boost converter. These equations reflect the real-time energy conversion process and are essential for implementing robust control strategies in the wind-driven DC microgrid.

2.2. Hybrid Storage System

In the proposed hybrid energy management scheme, batteries and supercapacitors are used in a complementary manner to enhance both power quality and storage lifespan. Supercapacitors are well suited for handling short-duration, high-power fluctuations due to their rapid charge–discharge capability and high cycle life. Conversely, batteries are effective for managing long-duration energy demands and ensuring steady power delivery over extended periods. By coordinating the operation of these two storage types, the system can respond quickly to transients using the supercapacitor while offloading energy balancing and slower dynamics to the battery. This synergy improves energy efficiency, reduces stress on battery cells and supports reliable microgrid operation under variable renewable inputs.

2.2.1. Supercapacitors

Supercapacitors, also referred to as Electric Double-Layer Capacitors (EDLCs) [26], play a significant role in enhancing the performance and stability of modern grid systems. Their ability to rapidly charge and discharge makes them particularly effective for managing peak power demands, stabilizing voltage fluctuations, and supporting load leveling during transient conditions. In smart grids and microgrids, supercapacitors are often used to provide immediate power support during sudden load changes and to smooth out short-term power imbalances caused by renewable energy sources. They are also valuable in applications such as frequency regulation, voltage support, and bridging power during the switching of energy sources [27]. Although supercapacitors have lower energy density compared to conventional batteries, their high power density and fast response time make them ideal for integration in hybrid energy storage systems, where they complement batteries to improve grid reliability and dynamic response.

2.2.2. Battery Systems

In grid systems, particularly in microgrids and hybrid AC/DC networks, battery energy storage systems (BESSs) are typically integrated through bidirectional power converters [28]. These converters operate in either buck or boost mode based on the direction of power flow [29]. In buck mode, the converter manages efficient charging of the battery from the grid or renewable sources, whereas in boost mode, it facilitates controlled battery discharge to support the load or grid [9].
Batteries serve as a core component of energy storage infrastructure in modern grids. They help balance supply and demand, provide backup power, enable energy arbitrage, and enhance system reliability. Additionally, batteries support functions such as load shifting, frequency regulation, and voltage stabilization, especially when integrated with intermittent renewable energy sources. The battery’s capacitance is typically denoted as C Batt , and it plays a critical role in defining the storage system’s dynamic performance.

2.3. Dynamic Modeling of Energy Storage Components in a Current-Fed Configuration

In the proposed hybrid energy storage system, the battery and supercapacitor are interfaced via current-fed converters, making current the primary control variable. The evolution of voltage across the storage elements depends on the integrated current profile.
The energy stored in each element is given by
E ( t ) = 1 2 C V 2 ( t )
where E ( t ) denotes the instantaneous energy (J), C is the capacitance or effective capacity (F or Ah), and V ( t ) is the terminal voltage.
For the supercapacitor, the voltage dynamics are governed by:
d V s c d t = I s c C 2 2 V d c μ sc C 2 R 2 + 1 C 2 I o
Similarly, for the battery in a simplified model,
d V b a t t d t = I b a t t C 1 2 V d c μ batt C 1 R 1 + 1 C 1 I o
where i s c ( t ) and i b ( t ) are the injection/withdrawal currents, and V s c and V b are the time-varying terminal voltages of the supercapacitor and battery, respectively.
This current-fed modeling approach aligns with the converter topology used in the proposed system and reflects the natural voltage build-up or depletion based on injected current, enabling precise control of power sharing and dynamic response.

2.4. Inverter

The system includes a three-phase inverter, as illustrated in Figure 2, which is used to convert DC power to AC for interfacing with both the utility grid and local AC loads. While no explicit inverter equations are presented in this work, the inverter shown in the figure represents the configuration employed in the AC sub-grid. A phase-locked loop (PLL) module is typically used for synchronization, and an LCL filter on the AC side enhances power quality by attenuating high-frequency harmonics. The filter components are selected based on a defined cutoff frequency to ensure system stability by keeping lower-order harmonic frequencies below this threshold. For mathematical modeling of the AC subsystem, Park’s and Clarke’s d - q transformations are applied to simplify the analysis by converting three-phase AC signals into equivalent DC quantities in the rotating reference frame.

2.5. Modeling of the Grid System

The proposed model represents a comprehensive structure of the hybrid AC/DC microgrid system under study, as illustrated in Figure 2. This model incorporates the key components of the system, including renewable energy sources, bidirectional converters, energy storage units, and various loads. To accurately capture the dynamic behavior of the system, an average state-space model is developed for the power converters used within the microgrid. These models are derived using the principles of volt-second balance and capacitor charge balance, taking into account the currents and voltages across different components. The resulting set of equations describes the interaction of converters and their role in regulating power flow across the AC and DC buses. This mathematical framework enables detailed analysis of the system’s performance and provides a foundation for implementing advanced control strategies. It also allows for performance optimization of the grid under a wide range of operating conditions, including load changes, renewable generation variability, and mode transitions between grid-connected and islanded operations.
x ˙ 1 = V batt L 1 x 4 L 1 + 2 x 4 μ batt L 1
x ˙ 2 = V sc L 2 x 4 L 2 + 2 x 4 μ sc L 2
x ˙ 3 = V w L w t R w x 3 L w t ( 1 μ 2 ) x 4 L w t
x ˙ 4 = x 1 C 1 + x 2 C 2 2 x 4 μ batt C 1 R 1 2 x 4 μ sc C 2 R 2 + ( 1 μ 2 ) C d c x 3 + I o
The state variables x 1 , x 2 , and x 3 represent the inductor currents of the battery, supercapacitor, and wind energy converters, respectively, while x 4 denotes the DC bus voltage in the integrated DC microgrid system.
The novelty of this study lies in the integration of an IGWO-optimized Conditional-Based Super-Twisting Sliding Mode Controller (CBSTSMC) within a hybrid AC/DC microgrid. Unlike fixed-gain techniques, this approach ensures dynamic gain tuning in real time, allowing improved convergence, minimal chattering, and superior robustness under load variation and uncertainty. The complete methodological flow, shown in Figure 4, outlines the structured steps from system modeling to controller deployment using real-time Controller-in-the-Loop (CIL) validation.

3. Controller Design

Figure 2 presents the complete circuit diagram of the proposed system. This study focuses on the implementation of advanced nonlinear control strategies, specifically Sliding Mode Control (SMC) and Condition-Based Super-Twisting Sliding Mode Control (CBSTSMC). These controllers are designed to ensure the stable, reliable, and efficient operation of the microgrid (MG) while fulfilling several key functional objectives:
  • Regulating the voltage of the shared DC bus within the DC subgrid.
  • Ensuring reliable power delivery to both AC and DC loads.
  • Supporting smooth transitions between islanded and grid-connected operating modes.
  • Providing frequency support to the utility grid during grid-connected operation.
  • Guaranteeing the overall asymptotic stability of the microgrid system.

3.1. Conditional-Based Super-Twisting Sliding Mode Control (CBSTSMC)

The Conditional-Based Super-Twisting Sliding Mode Control (CBSTSMC) differs from conventional controllers by dynamically adapting its behavior based on system conditions. This adaptability allows it to mitigate the wind-up phenomenon typically caused by actuator saturation. As a result, CBSTSMC effectively reduces the adverse effects of control signal saturation while retaining the beneficial characteristics of traditional Sliding Mode Control approaches.
e i = x i x i r e f
The performance of the system is evaluated by comparing actual state variables to their desired reference values. These differences are represented by error terms e i , where i = 1 , 2 , 3 . Each error term quantifies the deviation of a system variable x i from its corresponding reference value x i , ref . By taking the derivative of this error,
e ˙ i = x ˙ i x ˙ i r e f
The sliding surface for each state is defined as
S i = a i e i
where a i is a positive constant for i = 1 , 2 , 3 . This constant determines the slope of the sliding surface and influences the convergence speed of the system states toward the desired values. By taking the time derivative of the sliding surface in Equation (18), we obtain
S ˙ i = a i e ˙ i
By substituting the expressions for x ˙ 1 , x ˙ 2 , and x ˙ 3 into the sliding surface derivative Equation (19), the resulting expressions for S ˙ 1 , S ˙ 2 , and S ˙ 3 are given as
S ˙ 1 = a 1 V batt L 1 x 4 L 1 + 2 x 4 μ batt L 1 x ˙ 1 , ref
S ˙ 2 = a 2 V sc L 2 x 4 L 2 + 2 x 4 μ sc L 2 x ˙ 2 , ref
S ˙ 3 = a 3 V w L w t R w x 3 L w t ( 1 μ 2 ) x 4 L w t x ˙ 3 , ref
To perform the stability analysis of the proposed control system, the following Lyapunov candidate function is selected. It is defined as
V = 1 2 S 1 2 + 1 2 S 2 2 + 1 2 S 3 2
The time derivative of the Lyapunov function defined in Equation (23) is calculated to analyze the stability behavior of the system. Differentiating V with respect to time yields
V ˙ = S 1 S ˙ 1 + S 2 S ˙ 2 + S 3 S ˙ 3
Substituting the expressions of S ˙ 1 , S ˙ 2 , and S ˙ 3 into the derivative of the Lyapunov function Equation (24), we obtain
V ˙ = S 1 a 1 V batt L 1 x 4 L 1 + 2 x 4 μ batt L 1 x ˙ 1 r e f + S 2 a 2 V sc L 2 x 4 L 2 + 2 x 4 μ sc L 2 x ˙ 2 r e f + S 3 a 3 V w L w t R w x 3 L w t ( 1 μ 2 ) x 4 L w t x ˙ 3 r e f
For the Lyapunov function V ˙ to guarantee system stability, its time derivative must be negative definite. To ensure V ˙ 0 , we introduce a Sliding Mode Control constraint defined as
S ˙ i = k i | S i | β i sign ( S i ) v i
By substituting the expressions of S ˙ 1 , S ˙ 2 , and S ˙ 3 into the sliding constraint Equation (26), we obtain
a 1 ( V batt L 1 x 4 L 1 + 2 x 4 μ batt L 1 x ˙ 1 , ref ) = k 1 | S 1 | β 1 sign ( S 1 ) v 1
a 2 ( V sc L 2 x 4 L 2 + 2 x 4 μ sc L 2 x ˙ 2 , ref ) = k 2 | S 2 | β 2 sign ( S 2 ) v 2
a 3 ( V w L w t R w x 3 L w t ( 1 μ 2 ) x 4 L w t x ˙ 3 , ref ) = k 3 | S 3 | β 3 sign ( S 3 ) v 3
The term v i is governed by the following differential equation:
v ˙ i = m i sign ( v i u i , sat )
where m i > 0 is a design parameter, and u i , sat is a saturated version of the control input u i , defined as
u i , sat = u i , if | u i |     Q Q sign ( u i ) , if | u i |   >   Q
Here, Q is a positive saturation threshold derived from the design conditions. The introduction of the saturation function prevents excessive control effort and limits chattering.
By substituting the constraint from Equation (26) into the Lyapunov derivative expression, the resulting form becomes
V ˙ i = k i | S i | β i sign ( S i ) v i
V ˙ i = k i S i 2 v i 0
This equation confirms that the proposed controller ensures system stability by generating a negative definite derivative of the Lyapunov function. By rearranging the sliding constraint Equations (27)–(29), the explicit expressions for the control inputs μ batt , μ sc , and μ 2 are obtained as follows:
μ batt = L 1 2 x 4 [ 1 a 1 ( k 1 | S 1 | β 1 sign ( S 1 ) v 1 ) + x ˙ 1 , ref V batt L 1 + x 4 L 1 ]
μ sc = L 2 2 x 4 [ 1 a 2 ( k 2 | S 2 | β 2 sign ( S 2 ) v 2 ) + x ˙ 2 , ref V sc L 2 + x 4 L 2 ]
μ 2 = 1 + L w t x 4 [ 1 a 3 ( k 3 | S 3 | β 3 sign ( S 3 ) v 3 ) + x ˙ 3 , ref V w L w t + R w x 3 L w t ]
The proposed control signals contribute to the gradual stabilization of the system while mitigating the wind-up effect commonly observed in conventional Super-Twisting Algorithm (STA)-based controllers.

3.2. Gain Tuning Using Improved Grey Wolf Optimization

The Grey Wolf Optimization (GWO) algorithm is a technique that draws its inspirations on the social hierarchy and predatory behavior of grey wolves, which has been found to be quite successful in solving complicated optimization problems [30]. In [31], the enhanced version had further included a chaotic mechanism to intensify global exploration and a dynamic search strategy that enhanced the balance between search and exploitation. In this paper, one implements the Improved Grey Wolf Optimization (I-GWO) to optimize the controller through the minimum of an error-dependent objective, referred to as the FUN objective [32]. Four searching agents, alpha, beta, delta, and omega, are used within this algorithm, which encounters various solutions in the form of candidate solutions during optimization. Each of the search agents changes its position in the hierarchical tree of the wolf pack and plays a certain role to search the solution area dynamically. The first one is to find the best solution that will reduce the error measure in the controller. The integral of the time-weighted absolute error (ITAE) cost function is used in quantifying the error since it focuses on the early correction of errors. This expression of the integrated error is then minimized as the optimization problem:
min F i ( s ) = min t | s i ( e i ) | d t
To evaluate the performance of each of the search agents contained in the microgrid control framework, the cost function F i ( s ) is expressed, where the journey of consideration is indicated by i. The main idea of the optimization process is that the cost function should be minimized. Within the ranks of the Improved Grey Wolf Optimization (I-GWO) algorithm, the alpha wolf strikes first as he/she takes up a leadership position as the direction of the search to the best solution. Beta and delta wolves help to polish the second and third best routes, respectively. In the meantime, the omega wolf aids global exploration since it provides unpredictability to the search process, thereby raising the probability of coming up with unexpected solutions. This is repeated until some predetermined stopping rule is achieved. Gain contents of the CBSTSMC controller are depicted on Figure 5.
The Improved Grey Wolf Optimization (IGWO) algorithm was employed in this study to systematically tune the control and sliding surface gains of the proposed CBSTSMC controller. Unlike fixed-gain approaches, which may perform adequately under nominal conditions but often fail to maintain robustness under uncertainties or rapidly changing load demands, the IGWO-based strategy offers dynamic adaptability. By minimizing the ITAE-based objective function, the optimizer ensures reduced steady-state error, faster convergence, and enhanced resilience to nonlinearities and mode transitions. This adaptive gain tuning significantly improves system stability and tracking accuracy while mitigating chattering effects. Although the current work focuses on the IGWO-enhanced implementation, future studies will incorporate a comparative analysis against fixed-gain CBSTSMC to further quantify the benefits of optimization.
The Improved Grey Wolf Optimizer (IGWO) is employed for gain tuning of the proposed CBSTSMC due to its enhanced convergence speed, exploitation–exploration balance, and robustness in avoiding local minima. Compared to conventional tuning methods or basic metaheuristics, IGWO offers superior dynamic performance by rapidly converging to optimal gains that minimize overshoot and steady-state error. This results in faster transient response and reduced control chattering, which are critical for power electronic converters operating in hybrid microgrid environments.

4. Simulation and Results

The proposed AC/DC hybrid microgrid system was simulated using MATLAB R2024b/Simulink to evaluate the performance of the CBSTSM in both islanded and grid-connected modes. The system incorporates wind energy, a battery unit, a supercapacitor bank, and a grid interface. Detailed parameters for each subsystem are provided in Table 1, Table 2, Table 3 and Table 4. Table 1 outlines the key characteristics of the wind energy system, including air density, wind speed, and rotor specifications. Table 2 presents the electrical and mechanical parameters of the Permanent Magnet Synchronous Generator (PMSG) used in the wind energy conversion system. Table 3 lists the inverter-side specifications, such as DC-link voltage, filter components, and switching frequency. Table 4 summarizes the passive circuit elements including inductors, capacitors, and resistors used throughout the battery, supercapacitor, and wind subsystems. To enhance clarity, Table 5 summarizes the key symbols used in the system modeling and controller design sections. For great reproducibility, the gain parameters for the proposed CBSTSMC controller are explicitly presented in Table 6. These gains were tuned using the Improved Grey Wolf Optimization (IGWO) with an ITAE-based cost function. The values correspond to the individual subsystems, wind energy, battery storage, and supercapacitor.
The primary objective of the control strategy is to maintain stable AC and DC bus voltages, thereby improving the overall stability and reliability of the microgrid. Figure 6a illustrates external disturbances in the system and Figure 6b shows the load profile of the system. The simulation results presented in Figure 7, Figure 8 and Figure 9 correspond to the measurement points indicated by red dots in the system schematic shown in Figure 2. These points include the DC link, inverter output, load terminal, and power converter branches. In the system architecture, the wind energy source is connected through an MPPT algorithm before interfacing with a boost converter. Battery and supercapacitor systems serve as energy storage components, helping regulate voltage and maintain power balance. During islanded mode, the energy management unit coordinates the use of stored energy from the battery and supercapacitor to meet load demands. In the grid-connected mode, the voltage source inverter (VSI) enables bidirectional power flow between the grid and the microgrid based on load requirements. The CBSTSMC controller dynamically generates control signals to ensure robust and stable operation under varying conditions. To validate the effectiveness of the proposed CBSTSMC, comprehensive simulations were conducted under both transient and steady-state operating conditions. Key current waveforms from the battery, grid, and active components were analyzed to assess the controller’s dynamic response, disturbance rejection, and tracking accuracy. In this project, an Energy Management System (EMS) is developed to control and optimize power flow in a hybrid energy setup comprising wind energy, battery storage, supercapacitors, and the electrical grid. The EMS operates based on a prioritized control strategy that activates power sources in a specific sequence, depending on their availability and sustainability. Wind power is given the highest priority due to its renewable nature. If sufficient wind energy is available, it directly supplies the load. If wind alone cannot fulfill the demand, the system checks the battery storage system. The battery discharges to meet the deficit and charges when there is surplus power. A positive current in the battery indicates discharging, while a negative current indicates charging.
If the battery cannot meet the remaining load, the supercapacitor is activated. It acts as a fast-response backup to handle short bursts of high power demand. Like the battery, the current direction indicates its state of charge or discharge. If all these sources fail to supply the required load, the system connects to the grid. The grid acts as the last resort. A positive grid power value means power is being drawn from the grid, while a negative value means excess power is being exported to it. This hierarchical strategy ensures optimal usage of renewable sources and minimizes grid dependency. Zero output from any source implies it is inactive due to unavailability, full charge, or low priority.
Figure 7 presents the wind current waveform I w , where the proposed Conditional-Based Super-Twisting Sliding Mode Controller (CBSTSMC) exhibits highly accurate reference tracking. Across various load steps, CBSTSMC maintains smooth transitions and low oscillations, as clearly highlighted in the magnified views. In contrast, the conventional Sliding Mode Controller (SMC) shows greater fluctuations and slower settling, particularly during sudden disturbances. This demonstrates the superior dynamic performance and robustness of CBSTSMC in managing wind energy conversion.
Figure 7b illustrates the battery current I b , highlighting the system’s charging and discharging behavior. Negative current values indicate charging, while positive values represent discharging. The CBSTSMC closely tracks the reference signal with high accuracy and minimal overshoot, even during abrupt load changes. Compared to the traditional Sliding Mode Controller (SMC), the CBSTSMC significantly reduces chattering and enhances convergence speed. Zoomed-in sections emphasize the superior dynamic response and smoothness of CBSTSMC during switching events. Figure 7c illustrates the supercapacitor current I s , where both charging (negative current) and discharging (positive current) states are well managed. The CBSTSMC tracks the reference profile accurately, with rapid current reversal and minimal overshoot during mode transitions. As shown in the zoomed areas, CBSTSMC significantly reduces the chattering effect compared to SMC and maintains better stability during both transients and steady-state periods. Figure 8 shows the DC bus voltage of the system. In Figure 9, the three-phase grid current I g ( a b c ) demonstrates stable sinusoidal waveforms under varying operating scenarios. The system successfully maintains current symmetry and waveform quality, confirming that CBSTSMC provides effective current regulation even during grid fluctuations and power exchange transitions. The magnified views further verify the preservation of waveform integrity and synchronization across phases.
Figure 9a presents the grid active current I d , which is critical for evaluating power exchange efficiency with the grid. The CBSTSMC accurately follows the reference trajectory, exhibiting minimal steady-state error and significantly reduced oscillations compared to conventional SMC. The controller effectively rejects external disturbances and achieves smoother tracking with improved robustness. This improvement is particularly visible in the zoomed sections where SMC fails to suppress fluctuations.
The reactive current from the grid I q , shown in Figure 9c, is maintained close to zero under CBSTSMC, ensuring unity power factor and efficient energy exchange. The proposed control strategy suppresses oscillations effectively, as evident in the highlighted regions, while SMC introduces higher-frequency disturbances and a less-stable current profile. These results affirm the capability of CBSTSMC to regulate reactive power and enhance grid compliance in a hybrid AC/DC microgrid environment.
The following tables present the evaluation of error performance metrics and the comparative analysis of transient response characteristics for all systems under consideration. Table 7 provides the error performance metrics, including MAPE, RMSE, ISE, IAE, and ITAE, for different control systems such as wind, battery, SC, DC, and grid active current. These metrics are used to assess the effectiveness of the controllers. Table 8 presents the transient response characteristics, including Rise Time, Peak Time, Transient Time, Settling Time, and Overshoot, for the same systems. These characteristics are crucial for understanding the dynamic behavior of the systems during operation.

Advantages of the Proposed CBSTSMC over Traditional SMC and STSMC

Conventional Sliding Mode Control (SMC) and its second-order variant, the Super-Twisting Sliding Mode Control (STSMC), are widely used for their robustness against model uncertainties and external disturbances. While STSMC effectively mitigates chattering compared to first-order SMC, both approaches suffer performance degradation under actuator saturation, discontinuous switching signals, and high-frequency disturbances typical in hybrid microgrids. To address these limitations, this paper proposes a novel Condition-Based Super-Twisting Sliding Mode Controller (CBSTSMC), which introduces key enhancements over both traditional SMC and STSMC.
  • Saturation-Aware Switching: Unlike conventional SMC or STSMC, the CBSTSMC employs a condition-based logic that dynamically adjusts the control law based on the real-time status of actuator limits. This prevents integral wind-up and ensures smooth convergence even in the presence of saturation constraints.
  • Chattering Suppression: By integrating a conditional control layer, the CBSTSMC significantly reduces high-frequency switching, which causes chattering—particularly during steady-state operations or near-equilibrium points.
  • Mode-Dependent Behavior: Under nominal conditions, CBSTSMC behaves identically to STSMC, offering fast and robust convergence. However, when disturbance levels exceed a certain threshold or actuator saturation is detected, the control law is conditionally modified to a softened response, improving system reliability.
Overall, the CBSTSMC unifies the robustness of conventional SMC and the finite-time convergence of STSMC with intelligent logic-based switching to ensure chatter-free, saturation-resilient control. These improvements are crucial for emerging renewable-integrated microgrids, where reliability, smooth control, and fast adaptability are essential.

5. Controller-in-the-Loop

As a crucial real-time validation methodology in control systems engineering, Controller-in-the-Loop (CIL) testing offers a high-fidelity hybrid platform where the control logic is executed on actual embedded hardware, while the plant dynamics are simulated in real time. This approach enables rigorous verification of control performance under real-world constraints, such as sampling delays, communication jitter, and hardware interfacing challenges [33].
In this study, a CIL framework was developed to evaluate the real-time performance of the proposed Condition-Based Super-Twisting Sliding Mode Control (CBSTSMC) algorithm. The controller logic was designed in MATLAB R2024b/Simulink using a combination of Stateflow blocks and embedded MATLAB functions. This high-level model was then translated into embedded C code via Simulink Coder and Embedded Coder toolboxes and deployed onto the Texas Instruments Delfino TMS320F28379D dual-core microcontroller, a high-performance real-time DSP widely used for power electronics and motor control applications.
The plant-side model, comprising wind turbine dynamics, energy storage converters (battery and supercapacitor), and inverter–grid interactions—was developed in Simulink and executed in real time using a fixed-step solver with a sampling time of 100 ms. Bidirectional communication between the controller hardware and simulated plant was established using SCI (Serial Communication Interface) and DAC (Digital-to-Analog Converter) channels. Sensor feedback (e.g., DC-link voltage and inductor currents) was read via SCI, and the computed control actions (gate signals and PWM values) were transmitted back to the virtual plant model in a closed-loop structure.
The test bench was configured to simulate closed-loop power stage behavior under realistic conditions, including fast DC-link voltage variations and sudden load changes. Key parameters monitored during the HIL experiments included converter output voltages, inductor currents, sliding surface trajectories, PWM gate signals, and actuator saturation states.
To provide a visual representation of this process, Figure 10 presents a block diagram of the implemented CIL setup. The diagram highlights the real-time interaction between the MATLAB/Simulink simulation environment and the physical controller, capturing the closed-loop communication path and key interfacing components involved in the validation framework.
The experimental validation confirms that the CBSTSMC controller achieves fast tracking, strong robustness, and reliable dynamic performance under load transients and renewable generation variations, thereby ensuring its real-time feasibility. Figure 11 and Figure 12 exhibit the CIL results.

6. Conclusions

The proposed AC/DC hybrid microgrid system integrates renewable energy sources, including wind, with energy storage components such as batteries and supercapacitors. The system is designed to operate both in islanded and grid-connected modes, providing stable AC and DC bus voltages, managing power flow efficiently, and minimizing grid dependency. The system incorporates a wind energy source, battery storage, and a supercapacitor bank, all controlled using a dynamic control strategy. The CBSTSMC was employed to regulate the system’s operation. The controller’s primary objective was to improve dynamic performance, disturbance rejection, and voltage regulation. The system’s performance was validated through detailed simulations, and key metrics such as current waveforms from the battery, grid, and active components were analyzed. For instance, the grid active current showed a steady-state error of only 0.0531 A, while the wind current tracking was highly accurate with minimal fluctuations, ensuring efficient energy conversion. A significant feature of the system was the gain tuning of the CBSTSMC controller using the Improved Grey Wolf Optimizer (IGWO). IGWO was applied to find the optimal controller gains, which enhanced the controller’s response speed and tracking accuracy. This optimization process led to a substantial reduction in steady-state error and overshoot, achieving superior dynamic performance compared to traditional controllers. For example, the battery current was regulated with minimal overshoot, and rapid transitions between charging and discharging states were achieved, even during abrupt load changes. An Energy Management System (EMS) was implemented to control and optimize power flow in the hybrid energy setup. The EMS prioritizes renewable wind energy and coordinates battery and supercapacitor usage based on availability, ensuring minimal reliance on the grid. When wind power is insufficient, the system utilizes battery storage, and if the battery cannot meet the load, the supercapacitor is activated to handle short bursts of power demand. The grid is used as a last resort, and the system operates efficiently with minimal grid interaction. The Controller-in-the-Loop (CIL) testing was carried out using the Texas Instruments Delfino C2000 microcontroller, which validated the performance of the CBSTSMC in real-time conditions. The controller was implemented directly on the hardware, allowing for the assessment of the system’s response to dynamic conditions in a real-world setup. The CIL results confirmed the robust performance of the CBSTSMC, including its disturbance rejection capability and the accurate regulation of current and voltage. As part of future work, the proposed averaged model will be refined into a switching-level representation to incorporate PWM ripple and switching transients and enhance real-time validation fidelity.

Author Contributions

Conceptualization, A.R. and R.G.; Methodology, A.R.; Software, R.G.; Validation, R.G., H.I.S. and O.A.; Formal Analysis, R.G.; Investigation, R.G.; Resources, A.R.; Data Curation, R.G.; Writing—Original Draft Preparation, R.G.; Writing—Review and Editing, A.R. and H.I.S.; Visualization, R.G.; Supervision, A.R.; Project Administration, A.R.; Funding Acquisition, O.A., A.A. (Abdulrahman Alsafrani) and A.A. (Abdullah Alburidy). All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Deanship of Graduate Studies and Scientific Research at Qassim University, grant number QU-APC-2025. The APC was funded by the Deanship of Graduate Studies and Scientific Research at Qassim University.

Data Availability Statement

No data were used in this study.

Acknowledgments

The researchers would like to thank the Deanship of Graduate Studies and Scientific Research at Qassim University for financial support (QU-APC-2025).

Conflicts of Interest

The authors declare no conflicts of interest. The sponsors had no role in the design, execution, interpretation, or writing of the study.

References

  1. Judge, M.A.; Khan, A.; Manzoor, A.; Khattak, H.A. Overview of smart grid implementation: Frameworks, impact, performance and challenges. J. Energy Storage 2022, 49, 104056. [Google Scholar] [CrossRef]
  2. Homaee, O.; Essayeh, C.; Vahidinasab, V.; Tikka, V.; Mendes, G.; Fawcett, J. Vehicle-to-Everything: Looking into the Future of Flexibility Services. arXiv 2024, arXiv:2407.15615. [Google Scholar]
  3. Kobashi, T.; Yarime, M. Techno-economic assessment of the residential photovoltaic systems integrated with electric vehicles: A case study of Japanese households towards 2030. Energy Procedia 2019, 158, 3802–3807. [Google Scholar] [CrossRef]
  4. Worighi, I.; Maach, A.; Hafid, A.; Hegazy, O.; Van Mierlo, J. Integrating renewable energy in smart grid system: Architecture, virtualization and analysis. Sustain. Energy Grids Netw. 2019, 18, 100226. [Google Scholar] [CrossRef]
  5. Pannala, S.; Patari, N.; Srivastava, A.K.; Padhy, N.P. Effective control and management scheme for isolated and grid connected DC microgrid. IEEE Trans. Ind. Appl. 2020, 56, 6767–6780. [Google Scholar] [CrossRef]
  6. Kanakadhurga, D.; Prabaharan, N. Demand side management in microgrid: A critical review of key issues and recent trends. Renew. Sustain. Energy Rev. 2022, 156, 111915. [Google Scholar] [CrossRef]
  7. Tian, X.; Wang, Y.; Wang, F.; Guo, Z.; Dong, Y. An improved droop control strategy for accurate current sharing and DC-BUS voltage compensation in DC microgrid. In Proceedings of the IET Conference Proceedings CP775, Online, 2–3 July 2020; IET: London, UK, 2020; Volume 2020, pp. 1466–1473. [Google Scholar]
  8. Buduma, P.; Das, M.K.; Naayagi, R.T.; Mishra, S.; Panda, G. Seamless operation of master–slave organized ac microgrid with robust control, islanding detection, and grid synchronization. IEEE Trans. Ind. Appl. 2022, 58, 6724–6738. [Google Scholar] [CrossRef]
  9. Roy, T.K.; Ghosh, S.K.; Saha, S. Robust backstepping global integral terminal sliding mode controller to enhance dynamic stability of hybrid AC/DC microgrids. Prot. Control Mod. Power Syst. 2023, 8, 8. [Google Scholar]
  10. Suman, G.K.; Guerrero, J.M.; Roy, O.P. Robust Frequency Control in Interconnected Microgrids: An H2/H Control Approach. IEEE Syst. J. 2021, 16, 2044–2055. [Google Scholar] [CrossRef]
  11. Jabbar, M.A.M.; Tran, D.T.; Kim, K.H. Decentralized power flow control strategy using transition operations of DC-bus voltage for detection of uncertain DC microgrid operations. Sustainability 2023, 15, 11635. [Google Scholar] [CrossRef]
  12. Li, J.; Pi, B.; Zhou, P.; Li, J.; Dong, H.; Chen, P. An Objective Holographic Feedback Linearization Based on a Sliding Mode Control for a Buck Converter with a Constant Power Load. Electronics 2023, 12, 3976. [Google Scholar] [CrossRef]
  13. Iovine, A.; Carrizosa, M.J.; Damm, G.; Alou, P. Nonlinear control for DC microgrids enabling efficient renewable power integration and ancillary services for AC grids. IEEE Trans. Power Syst. 2018, 34, 5136–5146. [Google Scholar] [CrossRef]
  14. Jarrahi, M.A.; Roozitalab, F.; Arefi, M.M.; Javadi, M.S.; Catalao, J.P. DC microgrid energy management system containing photovoltaic sources considering supercapacitor and battery storages. In Proceedings of the 2020 International Conference on Smart Energy Systems and Technologies (SEST), Istanbul, Turkey, 7–9 September 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar]
  15. Neisarian, S.; Arefi, M.M.; Vafamand, N.; Javadi, M.; Santos, S.F.; Catalão, J.P. Finite-time adaptive sliding mode control of DC microgrids with constant power load. In Proceedings of the 2021 IEEE Madrid PowerTech, Madrid, Spain, 28 June–2 July 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 1–6. [Google Scholar]
  16. Alipour, M.; Zarei, J.; Razavi-Far, R.; Saif, M.; Mijatovic, N.; Dragicevic, T. Observer-Based Backstepping Sliding Mode Control Design for Microgrids Feeding a Constant Power Load. IEEE Trans. Ind. Electron. 2023, 70, 465–473. [Google Scholar] [CrossRef]
  17. Mustafa, G. Adaptive Sliding Mode Control of Buck Converter Feeding Resistive and Constant Power Load in DC Microgrid. Energy Rep. 2023, 9, 1026–1034. [Google Scholar] [CrossRef]
  18. Alnami, H.; Hakmi, S.H.; Abdelwahab, S.A.M.; Abdellatif, W.S.E.; Hegazy, H.Y.; Mohamed, W.I.; Mohamed, M. Enhanced Adaptive Dynamic Surface Sliding Mode Control for Optimal Performance of Grid-Connected Photovoltaic Systems. Sustainability 2024, 16, 5590. [Google Scholar] [CrossRef]
  19. Ma, L.; Chen, K.; Tang, Y. Fractional-order sliding mode control for microgrid converters with time-delay compensation. Nonlinear Dyn. 2023, 111, 1821–1835. [Google Scholar]
  20. Mahmoudi, A.; Vafamand, N.; Rezvani, A. Neural network-aided sliding mode control for improved MPPT in PV systems under dynamic conditions. Sustain. Energy Technol. Assess. 2023, 56, 103065. [Google Scholar]
  21. Chen, L.; Huang, Y.; Li, X. Double-integral sliding mode fault-tolerant control for renewable energy-based multi-source systems. Control Eng. Pract. 2022, 127, 105234. [Google Scholar]
  22. Ghias, R.; Hasan, A.; Ahmad, I. Artificial neural network based conditional controllers with saturated action for multi-renewable hybrid alternating or direct current microgrids in islanded and grid-connected modes. J. Energy Storage 2024, 94, 112139. [Google Scholar] [CrossRef]
  23. Heier, S. Grid Integration of Wind Energy Conversion Systems; John Wiley & Sons: Hoboken, NJ, USA, 1998. [Google Scholar]
  24. MathWorks. Wind Turbine—Asynchronous Machine Model. 2025. Available online: https://www.mathworks.com/help/physmod/sps/powersys/ref/windturbine.html (accessed on 6 September 2025).
  25. Josefowicz, J.; Winters, S.; Church, D. Single-Ended Primary Inductance Converter (SEPIC) Based Power Supply for Driving Multiple Strings of Light Emitting Diodes (LEDs) in Roadway Lighting Fixtures. U.S. Patent 8,624,500, 7 January 2014. [Google Scholar]
  26. Bothe, A.; Balducci, A. Thermal analysis of electrical double layer capacitors: Present status and remaining challenges. J. Power Sources 2022, 548, 232090. [Google Scholar] [CrossRef]
  27. Mohamed, M.M.; El Zoghby, H.M.; Sharaf, S.M.; Mosa, M.A. Optimal virtual synchronous generator control of battery/supercapacitor hybrid energy storage system for frequency response enhancement of photovoltaic/diesel microgrid. J. Energy Storage 2022, 51, 104317. [Google Scholar] [CrossRef]
  28. Khalid, A.; Stevenson, A.; Sarwat, A.I. Overview of technical specifications for grid-connected microgrid battery energy storage systems. IEEE Access 2021, 9, 163554–163593. [Google Scholar] [CrossRef]
  29. Saleem, S.; Ahmad, I.; Ahmed, S.H.; Rehman, A. Artificial intelligence based robust nonlinear controllers optimized by improved gray wolf optimization algorithm for plug-in hybrid electric vehicles in grid to vehicle applications. J. Energy Storage 2024, 75, 109332. [Google Scholar] [CrossRef]
  30. Rehman, A.; Ahmad, I.; Jabbar, A.U. Igwo based robust nonlinear control design for androgen suppression therapy in prostate tumor patients. Biomed. Signal Process. Control 2024, 97, 106729. [Google Scholar] [CrossRef]
  31. Ghias, R.; Rehman, A.; Ahmad, I.; Saleem, S.; Shah, S.H.A. Optimized Nonlinear Control Strategies for Hybrid Electric Vehicles Integrating Photoelectrochemical and Photovoltaic Cells with Fuel Cells, Batteries, and Supercapacitors. In Proceedings of the 2024 3rd International Conference on Emerging Trends in Electrical, Control, and Telecommunication Engineering (ETECTE), Lahore, Pakistan, 26–27 November 2024; IEEE: New York, NY, USA, 2024; pp. 1–7. [Google Scholar]
  32. Saleem, S.; Rehman, A.; Ghias, R.; Ahmed, S.H.; Ahmad, I. Optimizing Electric Vehicle Charger Performance Using Robust Nonlinear Control Techniques for Grid to Vehicle Application. Available online: https://www.researchgate.net/profile/Atif-Rehman-12/publication/381805895_Optimizing_electric_vehicle_charger_performance_using_robust_nonlinear_control_techniques_for_grid_to_vehicle_application/links/667fdb352aa57f3b825e33c0/Optimizing-electric-vehicle-charger-performance-using-robust-nonlinear-control-techniques-for-grid-to-vehicle-application.pdf (accessed on 8 August 2025).
  33. Rehman, A.; Ghias, R.; Ahmed, S.H.; Ahmad, I. Advanced optimized nonlinear control strategies for prosthetic knee joints. Biomed. Eng. Lett. 2024, 15, 291–300. [Google Scholar] [CrossRef]
Figure 1. System’s block diagram.
Figure 1. System’s block diagram.
Energies 18 05061 g001
Figure 2. Circuit diagram of the system.
Figure 2. Circuit diagram of the system.
Energies 18 05061 g002
Figure 3. PO-based MPPT flowchart for wind turbine systems.
Figure 3. PO-based MPPT flowchart for wind turbine systems.
Energies 18 05061 g003
Figure 4. System flow diagram.
Figure 4. System flow diagram.
Energies 18 05061 g004
Figure 5. IGWO for the gains of the proposed CBSTSMC.
Figure 5. IGWO for the gains of the proposed CBSTSMC.
Energies 18 05061 g005
Figure 6. (a) Disturbance and (b) load profile.
Figure 6. (a) Disturbance and (b) load profile.
Energies 18 05061 g006
Figure 7. (a) Wind current, (b) battery current, and (c) supercapacitor current.
Figure 7. (a) Wind current, (b) battery current, and (c) supercapacitor current.
Energies 18 05061 g007aEnergies 18 05061 g007b
Figure 8. DC bus voltage.
Figure 8. DC bus voltage.
Energies 18 05061 g008
Figure 9. (a) Grid active current, (b) grid current, and (c) grid reactive current.
Figure 9. (a) Grid active current, (b) grid current, and (c) grid reactive current.
Energies 18 05061 g009
Figure 10. Block diagram of CIL.
Figure 10. Block diagram of CIL.
Energies 18 05061 g010
Figure 11. CIL results of the system. (a) Battery current with smooth tracking; (b) Wind current with stable injection; (c) Supercapacitor current with fast, low-ripple response.
Figure 11. CIL results of the system. (a) Battery current with smooth tracking; (b) Wind current with stable injection; (c) Supercapacitor current with fast, low-ripple response.
Energies 18 05061 g011aEnergies 18 05061 g011b
Figure 12. CIL results of the system. (a) Grid reactive current with suppressed oscillations; (b) DC bus voltage with stable regulation; (c) Grid active current with smooth, accurate tracking.
Figure 12. CIL results of the system. (a) Grid reactive current with suppressed oscillations; (b) DC bus voltage with stable regulation; (c) Grid active current with smooth, accurate tracking.
Energies 18 05061 g012aEnergies 18 05061 g012b
Table 1. Modified wind turbine parameters.
Table 1. Modified wind turbine parameters.
ParameterValue
Atmospheric Air Density ( ρ )1.20 kg/m3
Cut-in Wind Speed ( V cut - in )11.8 m/s
Rotor Blade Diameter ( D r )5.7 m
Optimal TSR ( λ opt )7.2
Max Power Coefficient ( C p , max )0.41
Table 2. Modified PMSG electrical parameters.
Table 2. Modified PMSG electrical parameters.
ParameterValue
Nominal Power ( P nom )2.8 kW
Stator Winding Resistance ( R s )0.039 Ω
d-axis Inductance ( L d )0.330 mH
q-axis Inductance ( L q )0.225 mH
Number of Pole Pairs (p)4
Flux Linkage Constant ( ψ )0.188 Wb
Moment of Inertia (J)0.012 kg·m2
Viscous Friction Coefficient (B)0.00195 N·m·s
Table 3. Modified inverter system specifications.
Table 3. Modified inverter system specifications.
ParameterValue
Rated DC-link Voltage ( V dc )710 V
DC-link Capacitance ( C dc )220 μ F
RMS Grid Voltage ( V ac )230 V
Grid Frequency ( f grid )50 Hz
LC Filter Parameters ( L f , C f )0.025 mH, 980 μ F
Switching Frequency ( f sw )4800 Hz
Table 4. Circuit parameters.
Table 4. Circuit parameters.
ParameterValue
L 1 , L 2 , L w t , L g 40 mH, 9 mH, 0.04 mH, 0.04 mH
C 1 , C 2 , C w , C dc 500 μ F , 200 μ F , 200 μ F , 200 μ F
R w , R b , R s c 0.05 Ω , 0.05 Ω , 0.05 Ω
Table 5. List of symbols.
Table 5. List of symbols.
SymbolDescription
V d c DC-link voltage across the hybrid system
V i n v Output voltage of the voltage source inverter
i l o a d Load current drawn by the connected demand
k i Super-twisting sliding mode gain
a i Positive constant defining sliding surface slope
b i Auxiliary gain for super-twisting correction term
m i Positive tuning constant in auxiliary dynamics
β i Power factor exponent in STSMC ( 0 < β i < 1 )
QSaturation bound for anti-windup control
s i Sliding surface for i t h controller loop
v i Auxiliary dynamic term for sliding enhancement
u i , sat Saturated control input with anti-windup logic
τ Time constant in transfer function models
L, CInductance and capacitance of respective elements
RResistance in the filter/converter topology
Table 6. Controller gain parameters.
Table 6. Controller gain parameters.
GainValue
k 1 , k 2 , k 3 4000, 3550, 1000
a 1 , a 2 , a 3 70, 50, 50
b 1 , b 2 , b 3 5, 10, 10
m 1 , m 2 , m 3 0.5, 0.5, 0.5
β 1 , β 2 , β 3 0.8, 0.8, 0.8
Table 7. Evaluation of error performance metrics for all systems.
Table 7. Evaluation of error performance metrics for all systems.
SystemControllerMAPERMSEISEIAEITAE
WindSMC0.82210.34761.91663.655817.9344
WindCBSTSMC0.13540.02550.69770.48471.9224
BatterySMC0.90730.39701.62133.988919.9356
BatteryCBSTSMC0.11280.02900.04130.30521.5042
SCSMC0.51790.5884104.585420.718791.0543
SCCBSTSMC0.09810.038510.31713.926418.1761
DCSMC0.51790.5884104.585420.718791.0543
DCCBSTSMC0.09810.038510.31713.926418.1761
Grid Active CurrentSMC0.00450.00010.00020.00110.0043
Grid Active CurrentCBSTSMC0.14560.05920.81311.99068.2086
Table 8. Comparative analysis of transient response characteristics for all systems.
Table 8. Comparative analysis of transient response characteristics for all systems.
SystemControllerPeak TimeTransient TimeSettling TimeOvershoot (%)
WindSMC9.00005.74005.880050.0000
WindCBSTSMC9.60186.00006.000059.5108
BatterySMC9.00005.74005.880050.0000
BatteryCBSTSMC9.60186.00006.000059.5108
SCSMC5.39595.00005.00000.0065
SCCBSTSMC5.04535.00005.00000.0514
DCSMC402.3038400.0000400.00000.0531
DCCBSTSMC400.8533400.0000400.00000.0934
Grid Active CurrentSMC9.00005.74005.880050.0000
Grid Active CurrentCBSTSMC9.60186.00006.000059.5108
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ghias, R.; Rehman, A.; Sherazi, H.I.; Alrumayh, O.; Alsafrani, A.; Alburidy, A. Revolutionizing Hybrid Microgrids Enhanced Stability and Efficiency with Nonlinear Control Strategies and Optimization. Energies 2025, 18, 5061. https://doi.org/10.3390/en18195061

AMA Style

Ghias R, Rehman A, Sherazi HI, Alrumayh O, Alsafrani A, Alburidy A. Revolutionizing Hybrid Microgrids Enhanced Stability and Efficiency with Nonlinear Control Strategies and Optimization. Energies. 2025; 18(19):5061. https://doi.org/10.3390/en18195061

Chicago/Turabian Style

Ghias, Rimsha, Atif Rehman, Hammad Iqbal Sherazi, Omar Alrumayh, Abdulrahman Alsafrani, and Abdullah Alburidy. 2025. "Revolutionizing Hybrid Microgrids Enhanced Stability and Efficiency with Nonlinear Control Strategies and Optimization" Energies 18, no. 19: 5061. https://doi.org/10.3390/en18195061

APA Style

Ghias, R., Rehman, A., Sherazi, H. I., Alrumayh, O., Alsafrani, A., & Alburidy, A. (2025). Revolutionizing Hybrid Microgrids Enhanced Stability and Efficiency with Nonlinear Control Strategies and Optimization. Energies, 18(19), 5061. https://doi.org/10.3390/en18195061

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop