Next Article in Journal
Efficient Alternative Mixed-Integer Non-Linear Programs and a Customized Genetic-Based Hybrid Metaheuristic for a Resource-Constrained Project-Scheduling Problem with a Flexible Network
Previous Article in Journal
Optimal Control of Wave Energy Dissipation via a Mobile Damping Actuator
Previous Article in Special Issue
A Whale Optimization Algorithm Based on Oscillatory Convergence and Diversity Variation for Complex Defect Profile Inversion in Oil and Gas Pipelines
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predictive Hybrid Energy Management for DC Microgrids: Adaptive Fuzzy Sliding Mode Control with Augmented Deep Q-Learning

1
Laboratory of Advanced Systems, Polytechnic School of Tunisia (EPT), B.P. 743, Marsa 2078, Tunisia
2
Department of Physics, College of Sciences, Umm Al-Qura University, Makkah 21955, Saudi Arabia
*
Author to whom correspondence should be addressed.
Mathematics 2026, 14(15), 2825; https://doi.org/10.3390/math14152825
Submission received: 22 June 2026 / Revised: 29 July 2026 / Accepted: 31 July 2026 / Published: 5 August 2026

Abstract

This paper addresses the voltage regulation problem for DC microgrids modeled as nonlinear dynamical systems subject to parametric uncertainties and external disturbances. A data-driven predictive hybrid control scheme is developed, combining a nonlinear sliding mode law that guarantees finite-time current convergence, an adaptive fuzzy universal approximator that compensates for unknown residual dynamics and mitigates chattering, and a recursive predictor built online via forgetting-factor recursive least squares. Real-time gain optimization is achieved through the minimization of a quadratic predictive performance index. A composite Lyapunov analysis rigorously establishes uniform ultimate boundedness of the low level Adaptive Fuzzy Sliding Mode Control (AFSMC) inner loop, assuming bounded reference currents provided by the DQL agent and characterizes the convergence residual set of the tracking error. Comparative simulations against conventional fuzzy logic and a standard (non augmented) Deep Q-Learning baseline with fixed gain SMC corroborate the theoretical guarantees, demonstrating superior voltage regulation, reduced battery deep discharges, and improved load management.

1. Introduction

The increasing penetration of renewable energy sources and the growing demand for reliable off-grid power supply have placed direct current microgrids (DCMGs) at the forefront of modern power systems [1,2]. DCMGs offer inherent advantages such as higher efficiency, simpler integration of storage devices, and absence of reactive power and synchronization issues compared to AC microgrids [3,4]. A typical DCMG comprises photovoltaic (PV) panels, battery energy storage, supercapacitors (SCs), and variable loads, all interconnected through DC-DC converters [5]. However, the intermittent nature of solar generation and the stochastic behavior of load demand introduce significant challenges in maintaining DC bus voltage stability and ensuring optimal power sharing among storage units [6,7].
To address these challenges, various control strategies have been proposed. Linear controllers such as proportional-integral (PI) regulators are widely adopted due to their simplicity, but they often fail under large disturbances or parameter variations [8]. Nonlinear SMC has emerged as a robust alternative, offering finite-time convergence and insensitivity to matched uncertainties [9,10]. In the context of DCMGs, SMC has been successfully applied to regulate converter currents and bus voltage [11,12]. Nevertheless, classical SMC relies on fixed gains and may exhibit chattering, which can degrade actuator lifetime. Moreover, the absence of adaptation mechanisms limits its performance under rapidly changing operating conditions.
To overcome the limitations of fixed-gain controllers, fuzzy logic systems (FLS) have been integrated into adaptive control strategies. FLS can approximate unknown nonlinear functions using linguistic rules, thereby reducing the need for accurate system models [13,14]. For instance, a hierarchical energy management system combining SMC with fuzzy logic was proposed for a DCMG, achieving improved dynamic response compared to linear controllers [15]. However, fuzzy-based strategies remain heuristic and lack learning capabilities; their performance heavily depends on the quality of predefined rule bases, which may not cover extreme or unforeseen scenarios [16].
Recent advances in adaptive fuzzy control have addressed challenging issues such as event-triggered mechanisms, dynamic quantization, and deception attacks in networked control systems [17,18]. For instance, adaptive event-triggered tracking control strategies have been developed for nonlinear networked systems with dynamic quantization and deception attacks [17], while quantized fuzzy guaranteed cost control has been proposed for electric vehicles with uncertain parameters [18]. These techniques provide valuable insights for enhancing robustness and communication efficiency in complex control systems.
More recently, artificial intelligence techniques, particularly deep reinforcement learning (DRL), have attracted attention for energy management in microgrids [19,20]. DQL, a representative DRL algorithm, enables an agent to learn optimal policies by interacting with the environment [21]. A hybrid control architecture combining SMC for low-level regulation and DQL for high-level decision making (charging, discharging, load shedding) was recently demonstrated for a DCMG [22]. The results showed improved voltage stability and reduced battery stress compared to fuzzy logic control. Nevertheless, this architecture still has notable shortcomings: the DQL agent uses only instantaneous state information without any predictive capability, the SMC gains are fixed, and no mechanism compensates for unmodeled nonlinearities or external disturbances.
In our previous work [20], we introduced a DQL-based sliding mode control scheme for DC microgrids. However, that approach used only instantaneous state information and fixed SMC gains. The present paper significantly extends this prior contribution by incorporating: (i) predictive information into the DQL state space, (ii) online adaptation of SMC gains, and (iii) a fuzzy compensator for unknown nonlinearities. These extensions lead to substantially improved robustness and voltage regulation performance.
In parallel, a data-driven predictive fuzzy adaptive control approach was developed for nonlinearly parameterized systems [23]. That work introduced a data-driven predictive model built from historical input-output data to forecast future system behavior. The controller gains were optimized online by minimizing a predictive performance index, and fuzzy logic systems were employed to approximate lumped unknown functions. Stability was proven via a composite Lyapunov function, and simulation results demonstrated significant improvements in tracking accuracy and disturbance rejection. However, that approach was designed for general nonlinear systems and has not been applied to DCMGs, nor combined with deep reinforcement learning.
Motivated by the above observations, this paper proposes a data driven predictive hybrid control strategy for DCMGs that synergistically integrates three complementary techniques: adaptive fuzzy sliding mode control, a historical data based predictive model, and a DQL agent with augmented state. This synergy enables proactive energy management while maintaining stability guarantees for the low level AFSMC inner loop, with overall system boundedness ensured in a cascade sense under bounded reference currents.
The main contributions are as follows:
  • A predictive model is constructed online from stored input–output data to forecast DC bus voltage and PV power over a finite horizon. This model provides prediction errors that are used both to optimize SMC gains and to enrich the state space of the DQL agent.
  • The SMC gains are recursively updated in real time by minimizing a predictive performance criterion, ensuring fast voltage regulation under varying conditions without manual retuning.
  • Fuzzy logic compensators are embedded into the SMC laws to approximate unknown nonlinearities and disturbances, eliminating the need for an exact system model and significantly reducing chattering.
  • The DQL agent’s state vector is augmented with prediction errors and future estimates, enabling it to learn anticipative policies that proactively manage battery and SC operations and load shedding decisions.
  • A composite Lyapunov analysis is provided to prove uniform ultimate boundedness of the low level AFSMC inner loop, assuming that the reference currents generated by the DQL agent are bounded and piecewise continuous a condition physically guaranteed by converter limits and the agent’s bounded action space. The boundedness of the inner loop tracking errors then implies boundedness of the DC bus voltage dynamics, ensuring overall stability in a cascade sense.
The comparison is performed against a conventional DQL agent that relies solely on instantaneous state information and uses fixed gain SMC, as proposed in [22], in contrast to our augmented state and online gain optimization strategy.
The remainder of the paper is organized as follows. Section 2 presents the dynamic model of the DCMG. Section 3 describes the data-driven predictive model and the online gain optimization algorithm. Section 4 details the adaptive fuzzy sliding mode controllers. Section 5 presents the augmented DQL agent and the integrated decision-making strategy. Section 6 provides the stability analysis. Section 7 discusses simulation results and comparisons. Section 8 concludes the paper.

2. Modeling of the DC Microgrid

This section presents the complete dynamic model of the DCMG considered in this work. The model serves as the foundation for the subsequent design of the adaptive fuzzy sliding mode controllers, the data driven predictor, and the DQL agent.

2.1. System Description

The DCMG consists of the following main components: A PV generator connected to the common DC bus via a boost converter. The PV array operates under maximum power point tracking (MPPT), which provides a reference current for the converter control. A battery energy storage system (BESS) interfaced through a bidirectional buck-boost converter, allowing both charging and discharging modes. A SC bank connected by a bidirectional converter, dedicated to supplying or absorbing rapid power transients. A variable resistive load that represents the demand profile. A DC bus with a lumped capacitance CDC, where all power flows converge.
All converters are assumed to operate in continuous conduction mode, and averaged models are employed to capture the low-frequency dynamics while neglecting high-frequency switching ripples. This is a standard approach in power electronics control design, as the switching dynamics are much faster than the control bandwidth and can be safely neglected for controller synthesis [24]. The DCMG examined in this study is shown conceptually in Figure 1.
The PV generator is modeled by its output voltage vpv and inductor current Ipv. The boost converter dynamics are described by:
L p v d I p v d t   =   v p v   1 d p v   v D C C p v d v p v d t   =   I p v       I p v , g e n  
where dpv ∈ [0,1] is the duty cycle of the boost switch, vDC is the DC bus voltage, Lpv and Cpv are the converter inductance and capacitance, and Ipv,gen is the current generated by the PV cells (determined by irradiance and temperature). The MPPT algorithm computes a reference current I p v r e f to extract maximum power, and the control objective is to force Ipv to track this reference.
The battery is interfaced via a bidirectional buck boost converter. Let vb and Ib denote the battery terminal voltage and current (positive during discharge). The averaged dynamics are:
L b d I b d t   =   V b   1 d b   v D C C b d v b d t   =   I b       I b ,   b a t  
Here, db is the duty cycle (controlled to regulate the battery current), Lb and Cb are the converter parameters, and Ib,bat represents the internal battery current. The reference current I b r e f is generated by the EMS to maintain power balance and prevent overcharging or deep discharge. The SC provides fast power compensation. Its dynamics, through a bidirectional converter, are:
L S C d I S C d t   =   v S C   1 d S C   v D C C S C d v S C d t   =   I S C    
where vSC and ISC are the SC voltage and current, dSC is the duty cycle, LSC and CSC are the converter inductance and SC capacitance. The SC current reference I S C r e f is determined by the EMS to absorb or inject power during transients, thereby stabilizing the DC bus voltage. The evolution of the DC bus voltage is governed by the net current injected into the bus capacitance CDC:
C D C d V D C d t =   1 d p v   I p v   +   1 d b   I b   +   1 d S C   I S C     I L o a d
where ILoad is the total load current (positive when power is drawn from the bus). This equation explicitly shows the coupling among all subsystems: the duty cycles and currents of the PV, battery, and SC directly affect the bus voltage.
Collecting all state variables, the full DCMG model can be written as:
L p v d I p v d t   =   V p v   1 d p v   v D C C p v d v p v d t   =   I p v       I p v , g e n L b d I b d t   =   v b   1 d b   v D C C b d v b d t   =   I b     I b , b a t   L S C d I S C d t   =   v S C   1 d S C   v D C C S C d v S C d t   =   I S C C D C d v D C d t =   1 d p v   I p v   +   1 d b   I b   +   1 d S C   I S C     I L o a d  
The control inputs are the duty cycles dpv, db, dSC. The measurable outputs include vDC, Ipv, Ib, ISC, and the state of charge (SoC) of the battery and SC, which are computed from the respective voltages and currents.

2.2. Control Objectives

The proposed control strategy combining adaptive fuzzy SMC, online gain optimization, and DQL is inherently robust to modeling inaccuracies. The sliding mode layer enforces finite time convergence of current tracking errors despite parameter uncertainties, while the fuzzy compensators approximate any residual nonlinearities. The data driven predictor further corrects for unmodeled dynamics using real time historical data. Therefore, the model described in (5) is sufficient for controller synthesis and stability analysis.
To facilitate the control design and stability analysis, the following standard assumptions are made:
Assumption 1.
The reference signals (e.g.,  I p v r e f  from MPPT, and the desired bus voltage  v D C r e f ) are smooth, bounded, and have bounded derivatives.
Assumption 2.
The external disturbances (e.g., sudden changes in irradiance or load) and unmodeled dynamics are bounded in magnitude. Moreover, there exist unknown positive smooth functions  d ¯ i .  such that  d ¯ i t       d ¯ i x i , where x i  represents the state vector of the corresponding subsystem.
Assumption 3.
Historical input output data {u(k − j), y(k − j), j = 1,…,L} are available and stored, where u denotes the duty cycles (or control actions) and y denotes the measured outputs (voltages, currents). This data is used to construct the data driven predictive model described in Section 3.
Assumption 4.
The system satisfies a persistency of excitation condition, ensuring that the data driven predictor can achieve a bounded prediction error, i.e.,  e p k       e ¯ p  with  e ¯ p  a positive constant.

3. Data Driven Predictive Model and Online Gain Optimization Algorithm

This section describes how historical input output data are exploited to build a predictive model of the DC microgrid. This model is then used to optimize the gains of the sliding mode controllers online, thereby enhancing voltage regulation and disturbance rejection.

3.1. Predictive Model Construction with Recursive Gain Optimization

Let the discrete time measurements be taken at sampling instants k = 0,1,2,… with a fixed step Δt. For each subsystem, the control input (duty cycle) and the measured output (e.g., DC bus voltage, inductor current) are stored. Define the following data matrices over a window of length L:
U p   =   u k 1 ,         u k 2 ,         ,         u k L T Y p   =   y k 1 ,         y k 2 ,         ,         y k L T
where u(⋅) represents the vector of duty cycles d p v , d b , d S C T and y(⋅) represents the measured outputs (typically vDC, Ipv, Ib, ISC, and). The goal is to predict the future output y(k + p) based on past data and a sequence of future control inputs.
Following the subspace identification philosophy, a linear predictor can be constructed as:
y ^ k + p   k   =   H u U p k   +   H y Y p k   +   H f Y f k  
where p is the prediction horizon (p = 1, 2,…, Np), U f   =   u k ,         u k + 1 ,         ,         u k + p 1 T   is the sequence of future control inputs (to be optimized) and Hu, Hy, Hf are constant matrices (of appropriate dimensions) that are updated online using recursive least squares or a similar adaptive identification method.
In practice, for a DC microgrid, the most critical variable to predict is the DC bus voltage vDC. Therefore, we focus on a single output predictor for vDC, although the same formalism applies to other variables (e.g., PV power). The predictor takes the form:
v ^ D C k + p   k   =   θ u T U p k   +   θ y T Y p k   +   θ f T U f k  
where θu, θy, θf are parameter vectors estimated from data. Detailed implementation parameters, including the prediction horizon, data window length, forgetting factor, matrix dimensions, RLS initialization, and persistency of excitation verification, are provided in Section 3.3.
Define the regression vector at sampling instant k as:
ψ k   =   u k 1 T         u k 2 T                 u k L T         y k 1 T         y k 2 T                 y k L T
where u k   =   d p v k         d b k         d S C k T   3 is the vector of duty cycles, and y k   = v D C k     is the DC bus voltage. The predictor output is: y ^ k + 1 k   = θ T k ψ k where θ k     3 L + L is the parameter vector estimated online via RLS:
θ k + 1 = θ k +   K k + 1   y k + 1 θ T k ψ k K k + 1   =   P k   ψ k λ   +   ψ T k P k   ψ k P k + 1   =   1 λ P k + P k   ψ k ψ T k P k λ   +   ψ T k P k   ψ k  
with forgetting factor λ ∈ (0,1].
Lemma 1 (Bounded prediction error).
Under the assumption of persistency of excitation and for a sufficiently large data window L, the prediction error  e p k   =   v D C k     v ^ D C k   k p  is bounded, i.e.,  e p k       e ¯ p  for some positive constant  e ¯ p .
The prediction error e p k will be used later both as a compensation term in the SMC laws and as an additional input to the DQL agent.
In the proposed strategy, the SMC gains are made time varying and optimized online. Let the vector of tunable gains be denoted by: k k   =   k p v k         k b k         k S C k T .
These time varying gains directly influence the SMC laws derived in Section 4. In order to obtain the most suitable gain vector k(k) at each sampling instant, we introduce a predictive performance index tailored to the regulation objectives of the DC microgrid. This index is designed to capture the future evolution of the DC bus voltage while penalising abrupt changes in the control gains. Specifically, the cost function combines a weighted quadratic term of the predicted voltage error over a finite horizon and a regularisation term that limits the step to step variation of the gains. The expression of this index is given by:
J p k = j = 1 N p Q v ^ D C k + j k     v D C r e f 2   +   R Δ k k +   j 1 2  
Here, k denotes the discrete sampling instant, and v ^ D C k + j k denotes the j-step ahead prediction of the bus voltage at sampling instant k, obtained from the discrete-time predictor (7, v D C r e f is the reference value, Δk(k) = k(k) − k(k − 1) is the gain increment, and Q > 0, R > 0 are tuning weights. The first term enforces accurate voltage tracking, while the second term prevents excessively aggressive gain updates that could destabilise the system. The minimisation of Jp (k) with respect to k(k) is performed online using a recursive gradient based algorithm, as detailed in the following subsection.
The first term drives the predicted bus voltage towards its reference, while the second term prevents aggressive gain fluctuations that could destabilize the system or cause excessive chattering. At each sampling instant k, the optimal gain vector k(k) is obtained by minimizing Jp (k) subject to constraints that guarantee closed loop stability. Because the predictor (7) is linear in the future control inputs (which themselves depend on the gains through the SMC laws), a direct minimization over k(k) can be performed using a gradient based recursive method. We adopt a RLS approach with a forgetting factor λ ∈ (0,1] to adapt to changing system dynamics. Define the gradient vector of the performance index with respect to the gains: ϕ k   = J p k k k .
An explicit expression for ϕ(k) can be derived by propagating the sensitivity of the predicted output through the SMC law and the predictor. In practice, a numerical approximation using finite differences is also feasible given the low dimensionality of k(k). The gain update law is then:
k k =   k k     1     K k ϕ k
where K k is the RLS gain matrix computed as:
K k   =   P k 1   ϕ k λ   +   ϕ T k P k 1   ϕ k P k   =   1 λ P k 1     K k ϕ T k P k 1
The matrix P(k) is the covariance estimate, initialized as P(0) = αI with α > 0 large.
To ensure stability and respect hardware limits, the optimized gains are projected onto a feasible region: k k =   p r o j k k ,   k min ,   k max where k min and k max are lower and upper bounds determined from the system’s physical constraints (e.g., positive gains, maximum allowable switching frequency). The optimized gains k p v k ,   k b k ,   k S C k are fed directly into the SMC laws described in Section 4. Importantly, the gain update frequency can be chosen lower than the control sampling frequency to reduce computational burden. In this work, we update the gains every Nopt samples while the SMC runs at the converter switching frequency. Moreover, the prediction error e ^ p k computed from the data driven predictor is used as a feedforward compensation term in the SMC laws. This combination of online gain optimization and predictive compensation significantly improves the transient response and robustness of the microgrid.

3.2. Proposed Algorithm

The proposed algorithm implements a recursive, online procedure for optimizing control gains within a data driven predictive strategy. The process begins with an initialization phase, during which the initial control gains, covariance matrix, forgetting factor, prediction horizon, weighting matrices, and admissible gain limits are established. Following this, the algorithm operates iteratively at each sampling instant.
At every iteration, current system measurements are collected and incorporated into updated data windows.
These data sets can be used, if necessary, to refine the predictor parameters through a RLS scheme. Using the updated predictor, future system outputs are estimated over the specified prediction horizon, allowing the computation of the instantaneous prediction error.
This prediction error serves as a basis for calculating the gradient of a defined performance criterion, which drives the adaptive adjustment of control gains via an update law that involves both the gain matrix and the covariance matrix. To ensure stability and boundedness, the updated gains are projected onto predefined feasible intervals. The optimized gains, along with the corresponding prediction error, are then provided to the SMC layer.
This procedure repeats at every sampling instant, enabling the controller to continuously adapt to changing system dynamics and operating conditions. A graphical representation of this entire process is presented in the flowchart of Figure 2, which clearly illustrates each step of the online gain optimization method.

3.3. Implementation Details of the Data Driven Predictor and Gain Optimization

This subsection provides the detailed implementation parameters required for full reproducibility of the data-driven predictor and the online gain optimization algorithm described above. The prediction horizon is set to Np = 3 steps, with a sampling interval Δt = 0.1 s. This short horizon is chosen to capture the dominant dynamics of the DC microgrid while maintaining computational efficiency. The data window length is L = 20 samples, corresponding to 2 s of historical data, which provides sufficient information for the RLS estimation while remaining responsive to time-varying system behavior. The forgetting factor is set to λ = 0.99, which offers a trade-off between tracking capability (fast adaptation to changes) and noise rejection (smoothing of parameter estimates). This value is typical for RLS applications in power systems and was found to work well in our simulations. The matrix dimensions are specified as follows: Up ∈ R20×3: past control input matrix (20 samples × 3 duty cycles) Yp ∈ R20×1: past output matrix (20 samples × 1 bus voltage), Hu ∈ R1×60: input-to-output predictor matrix, Hy ∈ R1×20: output-to-output predictor matrix and Hf ∈R1×3: future input predictor matrix.
The RLS covariance matrix is initialized as P(0) = 103 I, where I is the identity matrix of appropriate dimension. This initialization ensures rapid initial convergence of the parameter estimates. To ensure persistency of excitation (PE) and prevent estimator divergence, we monitor the condition number of the covariance matrix P(k). The condition number is defined as κ(P) = λmax (P)/λmin (P), where λmax and λmin are the maximum and minimum eigenvalues of P, respectively. If the condition number exceeds a threshold of 104, we partially reinitialize the covariance matrix as P(k) = 103 I to prevent numerical instability and divergence of the estimates. This PE check is performed at each sampling instant before the gain update. The gain vector k(k) = [kpv (k), kb (k), kSC (k)]T is updated every Nopt = 2 samples (i.e., every 0.2 s) to reduce computational burden, while the SMC runs at the converter switching frequency. The gain bounds are set to ki,min = 25 and ki,max = 70 for all subsystems, based on physical constraints (maximum allowable switching frequency, actuator saturation limits). The performance index weights are chosen as Q = 10 (penalizing voltage deviations) and R = 0.1 (penalizing gain variations), providing a balance between fast voltage regulation and smooth gain adaptation. These weights were tuned empirically through preliminary simulations.
A sensitivity analysis was conducted to assess the impact of the forgetting factor λ on the predictor performance. Values of λ in the range [0.95, 0.995] were tested. The value λ = 0.99 was found to provide the best trade-off, yielding a prediction RMSE of 0.42 V compared to 0.51 V for λ = 0.95 and 0.48 V for λ = 0.995.
Algorithm summarizes the complete online gain optimization procedure.
Initialize:
  • Initial gains: k(0) = [40, 40, 40]T
  • Covariance matrix: P(0) = 103 I
  • Forgetting factor: λ = 0.99
  • Prediction horizon: Np = 3
  • Data window length: L = 20
  • Gain bounds: kmin = 25, kmax = 70
  • Performance index weights: Q = 10, R = 0.1
At each sampling instant k (every Δt = 0.1 s):
  • Collect measurements: y k =   v D C k ,   u k   =   d p v k         d B k         d S C k T
  • Update data windows: U p k     u k 1         u k 2                 u k L T   Y p k     y k 1         y k 2                 y k L T
  • Update predictor parameters using RLS with forgetting factor λ:
    Compute prediction error: e p k = y k y ^ k k 1
    Update parameter vector θ(k) using RLS update equations
  • Check persistency of excitation:
    Compute condition number κ(P(k))
    If κ(P(k)) > 104, reinitialize P(k) = 103 I
  • If k mod Nopt = 0 (gain update instant):
    Compute predictions: v D C k + j k   for j = 1 , , N p
    Compute gradient: ϕ k = J p k k k (finite differences or analytical)
    Update RLS gain: K k = P k 1 ϕ k λ + ϕ T k P k 1 ϕ k
    Update covariance: P k = 1 λ P k 1 K k ϕ T k P k 1
    Update gains: k(k) = k(k − 1) − K(k)ϕ(k)
    Project gains: ki (k) = min(max(ki (k), ki,min), ki,max) for i ∈ {pv, b, SC}
  • Output: Optimized gains k(k) and prediction error ep (k) to AFSMC layer
The above parameters and procedures ensure that the data driven predictor and gain optimization algorithm can be reproduced with minimal ambiguity.

4. Adaptive Fuzzy Sliding Mode Control

This section develops the low level control layer of the proposed hybrid strategy. For each subsystem (PV, battery, SC), a sliding mode controller is designed to track a current reference provided by the EMS. To compensate for unknown nonlinearities, external disturbances, and modeling errors, fuzzy logic systems are embedded into the SMC laws. Moreover, the control gains are those optimized online by the data driven predictor (Section 3), and a prediction error feedforward term is added to enhance robustness.

4.1. Fuzzy Logic System Approximator

A fuzzy logic system with center average defuzzifier, product inference, singleton fuzzifier, and Gaussian membership functions can approximate any continuous function on a compact set to arbitrary accuracy.
The FLS output is expressed as:
f z   =   θ T ξ z
where θ   =   θ 1 , , θ N T is the vector of adjustable consequent parameters, and ξ z   =   ξ 1 z ,   ,   ξ N z T is the vector of fuzzy basis functions defined by: ξ l z =   i = 1 n μ F i l z i j = 1 N i = 1 n μ F i l z i   ,   l = 1 ,   ,   N with μ F i l z i =   exp z i   c i l 2 b i l 2 . For each subsystem i, the fuzzy logic system uses n = 5 Gaussian membership functions per input variable (negative large, negative small, zero, positive small, positive large), with centers c i l uniformly distributed over the operating range. The number of fuzzy rules is N = n n , where nz is the dimension of zi. For the battery subsystem, z b   =   S b     S ˙ b T , giving N = 25 rules.
The universal approximation property guarantees that for any continuous function h(z) on a compact set and any ϵ > 0, there exists an FLS such that sup h z     θ T ξ z     ε where θ is an optimal parameter vector.

4.2. Predictive Fuzzy Sliding Mode Control Laws

For each converter, we define a current tracking error and a sliding surface. Let the reference current for subsystem i be I i r e f (provided by the EMS or MPPT). The tracking error is: z i   =   I i   I i r e f ,   i p v ,   b ,   S C .
The sliding surface is chosen as S i   = z i . The control objective is to force Si → 0 in finite time, which implies perfect current tracking.
The dynamics of Si are obtained from the converter model (1)–(3). For example, for the PV boost converter:
S ˙ p v   =   I ˙ p v     I ˙ p v r e f   = 1 L p v   v p v 1 d p v v D C     I ˙ p v r e f
The same structure holds for the battery and SC, with their respective voltages and inductances.
In practice, the converter models contain unknown functions due to parameter uncertainties, unmodeled nonlinearities, and external disturbances.
For the PV subsystem, we lump all unknown terms into a continuous function h p v z p v , where z p v   = x 1     θ     t T may include states, parameters, and time. According to the universal approximation theorem, there exists an FLS such that:
h p v z p v =   θ p v T ξ p v z p v +   δ p v z p v ,   δ p v     ε p v
where δ p v is the approximation error. Similarly, for the battery and SC, we define h b z b and h S C z S C .
Because the optimal parameters θ are unknown, we use online estimates θ ^ i and design adaptive laws. The fuzzy compensator output is θ ^ i T ξ i .
The proposed control law for each converter consists of three parts: an equivalent control term (based on the nominal model), a switching term with the optimized gain, a fuzzy adaptive compensation term, and a prediction error feedforward term. For the PV converter:
d p v   = 1   1 v D C   v p v L p v I ˙ p v r e f k p v k s a t S p v ϕ p v   1 2 S p v θ ^ p v T ξ p v   k p , p v e ^ p k  
where k p v k   >   0   is the time varying gain optimized by Algorithm (Figure 2), s a t S p v ϕ p v is the saturation function replacing the sign to reduce chattering, with ϕ > 0 the boundary layer thickness, θ ^ p v is the estimate of the fuzzy parameters, k p , p v   >   0   is a predictive compensation gain, e ^ p k is the one step ahead prediction error of the DC bus voltage (from Section 3). Analogous control laws are derived for the battery and SC:
d b   =   1 1 v D C   v b L b I ˙ b r e f k b k s a t S b ϕ b   1 2 S b θ ^ b T ξ b   k p , b e ^ p k    
d S C   =   1 1 v D C   v S C L S C I ˙ S C r e f k S C k s a t S S C ϕ S C   1 2 S S C θ ^ S C T ξ S C   k p , S C e ^ p k    
The predictive term k p , i e ^ p k anticipates future voltage deviations and proactively adjusts the duty cycle, thereby improving transient response.
To update the fuzzy parameter estimates, we use a gradient descent approach with a σ-modification term to ensure boundedness. The adaptive law for θ ^ p v is:
θ ^ ˙ p v   =   Γ p v   1 2 S p v 2 v S C ξ p v z p v σ p v θ ^ p v      
where Γ p v   =   Γ p v T   >   0 is a positive definite adaptation gain matrix, and σ p v   >   0 is a small constant (σ-modification). The same structure applies to θ ^ b and θ ^ S C . The term 1 2 S i 2 ξ i comes from the Lyapunov design.
The integration of the sliding mode laws (11)–(13) with the adaptive fuzzy compensator (14) yields several synergistic benefits. The sliding mode component guarantees finite time convergence of the current tracking error despite matched uncertainties, providing inherent robustness. Meanwhile, the fuzzy compensator learns unknown nonlinear dynamics online, which reduces the required switching gain magnitude and effectively attenuates chattering. A predictive feedforward term, derived from the data driven model, anticipates future voltage deviations and pre-emptively corrects them. Finally, the time varying gains ki (k) are optimized online, ensuring that the controller maintains peak performance even as operating conditions change.

4.3. Reference Current Generation

The reference currents ( I p v r e f ,   I b r e f ,   I S C r e f ) are determined as follows:
A conventional perturb-and-observe maximum power point tracking algorithm provides I p v r e f to maximise the photovoltaic power output.
The high level DQL agent described in Section 5 supplies the battery and SC references I b r e f and I S C r e f .
The agent selects appropriate charging, discharging and load shedding commands while ensuring that the combined power from the battery and SC together with the PV source and the load satisfies the bus voltage dynamics given in Equation (4).
All current references are limited to respect physical constraints such as maximum allowable battery current and SC voltage range.

4.4. Summary of the AFSMC Layer

At each sampling instant, the AFSMC layer performs the following steps:
Step 1: Receive the optimized gains k i k from Algorithm (Figure 2) and the prediction error e ^ p k from the data driven predictor.
Step 2: Measure the actual currents Ii and compute the tracking errors S i   = I i   I i r e f .
Step 3: Update the fuzzy parameter estimates θ ^ i using (14).
Step 4: Compute the duty cycles di using (11)–(13) with the saturation function.
Step 5: Apply the duty cycles to the corresponding converters.

5. Augmented DQL Agent for High Level Energy Management

This section describes the learning based decision layer that coordinates the charging/discharging of the battery and SC, as well as load shedding actions. Unlike conventional DQL implementations that rely solely on instantaneous measurements [18], the proposed agent receives an augmented state vector enriched with predictive information from the data driven model. This augmentation enables anticipative policies that proactively counteract future disturbances.
In a DC microgrid subject to rapidly varying solar irradiance and load demand, decisions based only on current measurements are inherently reactive. By the time a voltage deviation is detected, the system may already be experiencing significant transients. The data driven predictor provides short term forecasts of the DC bus voltage and PV power, as well as a prediction error. Incorporating these forecasts into the agent’s state allows it to learn actions that prevent or mitigate future voltage drops or over voltages, thereby improving stability and reducing battery stress.

5.1. Extended State Representation

At each decision step, the agent perceives an augmented state vector s(t)S defined as:
S t =   v D C t         P p v t         P l o a d t         S O C b a t t         S O C S C t         e ^ p t         v ^ D C t + 1   t         P ^ p v t + 1   t T
where v D C t is the current DC bus voltage, P p v t is the current PV power, P l o a d t is the current load demand, S O C b a t t     0     1 is the battery state of charge, S O C S C t     0     1 is the SC state of charge, e ^ p t =   v D C t v ^ D C   t   t 1 is the one step prediction error of the bus voltage (computed by the data driven predictor), v ^ D C t + 1 t is the one step ahead prediction of the bus voltage, P ^ p v t + 1 t is the one step ahead prediction of the PV power.
All components are normalized to the interval [0, 1] using min-max scaling to facilitate neural network training. The inclusion of e ^ p t provides feedback on the predictor’s accuracy, while v ^ D C t + 1 t and P ^ p v t + 1 t give direct foresight of near future conditions.
The agent selects a discrete action at each decision step. The action space is designed to reflect the main energy management decisions:
a t   = a b a t ,   a S C ,   a s h e d
where:
abat ∈ {charge, idle, discharge}—battery mode. The corresponding current reference I b r e f is then set to a predefined value (e.g., 0.2C rate) or zero, scaled by the agent’s confidence (further refined by a lower level PI or SMC).
aSC ∈ {charge, idle, discharge} SC mode. The current reference I S C r e f is similarly determined.
ashed ∈ {no shed, partial shed, full shed} load shedding level. Partial shed reduces the load by a fixed percentage (e.g., 30%), while full shed disconnects non critical loads.
The action space consists of 3 modes for the battery a b a t   1 ,   2 ,   3 modes for the SC a s c   0 ,   1 ,   2 , and 3 load shedding levels a s h e d   0 ,   1 ,   2 . The total number of discrete actions is 3 × 3 × 3 = 27. The agent can output a single integer action that encodes the combination, or use a multi-head architecture. In this work, we adopt a flat action space with 27 actions.

5.2. Reward Function Design

The reward function guides the agent toward desirable behaviors: maintaining voltage stability, preserving battery health, minimizing load shedding, and using the SC for transient peaks. The instantaneous reward r(t) is defined as:
r t =   r v o l t t   +   r s o c t   +   r s h e d t   +   r w e a r t   +   r p r e d t
Each component is detailed below. The Voltage Regulation Reward
r v o l t t   =   α v v D C t     v D C r e f 2
where αv > 0 is a weight. This term penalizes deviations from the nominal bus voltage.
The Battery SoC Preservation Reward: To avoid deep discharges and overcharging, a quadratic penalty is applied when SoC leaves a safe band s o c b a t min     s o c b a t max :
r s o c t   =   α s o c max 0 ,   s o c b a t min   s o c b a t t 2 +   max 0 ,   s o c b a t   s o c b a t max 2
The Load Shedding Penalty: Load shedding is allowed but penalized to encourage energy balancing without disconnection:
r s h e d t   =   α s h e d   ·   l a s h e d n o   s h e d
where l is the indicator function. Partial shedding incurs a smaller penalty than full shedding (by scaling αshed accordingly).
The Battery Wear Reduction: High frequency charge/discharge cycles accelerate battery aging. To discourage unnecessary cycling, we penalize the absolute change in battery current reference:
r w e a r t   =   α w e a r I b r e f t     I b r e f t   1
The Predictive Term: A novel component that uses the prediction error and future voltage forecast to reward anticipative actions:
r p r e d t   =   α p r e d e ^ p t 2   α f u   v D C t + 1 t     v D C r e f 2
This term encourages the agent to keep both the current prediction error and the predicted future voltage small, thereby learning to act before a voltage deviation actually occurs. All weights αv, αsoc, αshed, αwear, αpred, αfut are positive constants chosen empirically to balance the objectives.

5.3. Deep Q-Learning Architecture and Training Algorithm

The agent uses a Deep Q-Network (DQN) to approximate the action value function Q s ,   a   ,   θ , where θ are the network weights. The network architecture consists of:
Input layer: 8 neurons (one per augmented state component).
Two hidden layers, each with 128 neurons and ReLU activation.
Output layer: 27 neurons (one per action) with linear activation.
The DQN is trained using experience replay and a target network to stabilize learning. At each decision step, the agent selects an action according to an ϵ-greedy policy: with probability ϵ it explores uniformly, otherwise it chooses the action with the highest Q-value.
We adopt the standard DQN architecture [19], where the action-value function is approximated by a neural network. Throughout the paper, we refer to this approach as DQL for consistency with the reinforcement learning literature.
The DQL agent is trained offline in a high fidelity MATLAB (2023 b)/Simulink simulator that implements the full DCMG model (5), the AFSMC layer, the data driven predictor, and the gain optimization algorithm. Training episodes are designed to cover a wide range of operating conditions:
PV power profiles: sinusoidal variations (diurnal cycles), step changes (cloud passages), and random fluctuations (stochastic weather).
Load profiles: slow ramps, abrupt steps, and pseudo random sequences.
Initial conditions: random SoCbat and SoCSC within [0.2, 0.9] and [0.3, 0.8] respectively.
The main hyperparameters used in the DQL model are as follows: the learning rate is set to 0.001, and the discount factor (γ) is fixed at 0.95. The exploration strategy begins with an initial exploration rate (ϵ0) of 1.0, which gradually decays to a final value (ϵmin) of 0.01 using a decay rate of 0.995 per episode. The experience replay buffer has a capacity of 50,000 transitions, from which mini-batches of size 64 are sampled during training. Additionally, the target network is updated every 100 episodes to stabilize learning. The model is trained over a total of 3000 episodes.
The training proceeds as follows:
Step 1: Initialize the Q-network with random weights, and copy them to the target network.
Step 2: For each episode:
Reset the simulation environment to a random initial state.
For each decision step t:
Observe augmented state s(t).
Select action a(t) using ϵ-greedy.
Apply the action to the AFSMC layer (which translates it into current references I b r e f ,   I S C r e f and load shedding command).
Run the microgrid simulation for the decision interval (0.1 s).
Compute reward r(t) and observe next state s(t + 1).
Store transition (s(t), a(t), r(t), s(t + 1)) in replay buffer.
Sample a random mini-batch from the buffer and update the Q-network by minimizing the temporal difference loss:
L   =   E   r +   γ max a Q target s ,   a     Q s ,   a 2
End episode.
Decay ϵ.
Every 100 episodes, update target network weights.
After convergence (typically around 2500–3000 episodes), the agent’s policy is frozen and used for validation.

5.4. Integration with Lower Control Layers

The DQL agent outputs a discrete action a(t) = (abat, aSC, ashed) at each decision step. The mapping from DQL actions to reference currents is defined as follows (Table 1):
The reference currents are further adjusted based on the current SOC to prevent overcharging or deep discharge:
I b r e f =   M b a b a t ,   S O C b a t   =   min I b r e f , a c t i o n ,   I b , max S O C b a t max S O C b a t S O C b a t max S O C b a t min   i f   a b a t = charge max I b r e f , a c t i o n ,   I b , max S O C b a t S O C b a t min S O C b a t max S O C b a t min   i f   a b a t = discharge
where I b , max =   10 A is the maximum battery current. The SC current reference is similarly adjusted with I S C , max =   15 A :
I S C r e f =   M S C a S C ,   S O C S C   =   min I S C r e f , a c t i o n ,   I b , max S O C S C max S O C S C S O C S C max S O C S C min   i f   a S C = charge max I S C r e f , a c t i o n ,   I S C , max S O C S C S O C S C min S O C S C max S O C S C min   i f   a S C = discharge
The AFSMC layer then tracks these current references using the sliding mode control laws (11)–(13), which guarantee finite-time convergence of the actual currents Ii to their references I i r e f . The load shedding command is implemented by reducing the load power according to the selected level:
P l o a d n e w =   P l o a d o r i g i n a l                                             i f   a s h e d   =   0   n o   s h e d 0.7   × P l o a d o r i g i n a l                         i f   a s h e d   =   1   p a r t i a l   s h e d   0                                                                 i f   a s h e d   =   2   f u l l   s h e d                                                            
where non critical loads are disconnected first in the case of partial shedding.
At each decision step, the agent outputs:
  • Battery mode: the corresponding reference current I b r e f is set to a predefined value.
  • SC mode: similarly, I S C r e f is set to a fixed magnitude.
  • Load shedding command: the load is reduced by the specified amount.
These references are then tracked by the AFSMC layer. Importantly, the SC is primarily used for fast transients, while the battery supplies sustained power. The agent learns to coordinate both to keep the bus voltage stable and the SoC levels balanced.
The proposed high level layer is a DQL agent whose state is augmented with one step predictions and the prediction error of the DC bus voltage and PV power. It learns to select discrete actions (battery mode, SC mode, load shedding level) that optimize a multiobjective reward function. The agent is trained offline in a detailed simulation environment and then deployed in conjunction with the AFSMC and the online gain optimizer. This hierarchical, predictive, learning based architecture constitutes the main novelty of the paper.

6. Stability Analysis

The stability analysis focuses on the low level AFSMC layer, assuming that the reference currents generated by the DQL agent are bounded and piecewise continuous—a condition physically guaranteed by converter limits and the agent’s bounded action space. The data driven predictor provides a bounded prediction error e ^ p k (Lemma 1), and the optimized gains ki (k) are kept within a compact interval by projection. The boundedness of the inner-loop tracking errors then implies boundedness of the DC bus voltage dynamics (4), ensuring overall stability in a cascade sense. The control objective is to force the inductor currents I p v r e f ,   I b r e f ,   I S C r e f to track their respective references while maintaining vDC close to its nominal value v D C r e f . The following assumptions are made:
Assumption 5.
The reference signals  I p v r e f ,   I b r e f ,   I S C r e f  and their first derivatives are bounded and have bounded second derivatives.
Assumption 6.
The unknown functions  h i z i  (lumping parameter uncertainties, nonlinearities, and disturbances) are continuous on a compact set and can be approximated by fuzzy logic systems as in (10) with approximation errors  δ i     ε i  where ϵi are known constants.
Assumption 7.
The prediction error   e p k   =   v D C k     v ^ D C k   k 1  satisfies  e p k       e ¯ p  for all k with    e ¯ p  a positive constant (Lemma 1). The continuous time analog is  e p t       e ¯ p  almost everywhere.
Assumption 8.
The optimized gains ki (t) are bounded:  0 <   k i , min     k i t k i , max    due to the projection operation in Algorithm (Figure 2).

6.1. Tracking Error Dynamics for a Generic Subsystem

We analyze one subsystem (e.g., the battery) and then combine them via a composite Lyapunov function. The extension to PV and SC is identical. For the battery, define the tracking error z b   =   I b   I b r e f . The sliding surface is S b   = z b . From (2), the error dynamics are:
S ˙ b   =   I ˙ b     I ˙ b r e f   = 1 L b   v b 1 d b v D C     I ˙ b r e f
The unknown dynamics are lumped into a continuous function h b z b   such that:
S ˙ b   =   1 L b   v b 1 d b v D C     I ˙ b r e f + h b z b
But it is more convenient to write the actual plant as:
I ˙ b   =   f b I b ,   v b ,   v D C ,   d b   +   Δ b t
where Δb (t) represents unknown disturbances. After substituting the control law (12) and using the fact that the fuzzy system approximates the unknown part, the closed loop error dynamics become:
S ˙ b   =   k b t   s a t S b ϕ b     1 2 S b θ ^ b T ξ b     k p , b e ^ p t   +   h ˜ b +   δ b
where h ˜ b   =   h b   θ ^ b T ξ b is the fuzzy approximation error, and δ b is the bounded residual due to the predictor error and unmodeled terms. With the optimal parameter θ b defined as the best approximator, we have   h b   = θ b T ξ b   +   ε b , with   ε b         ε b   0 . Define the parameter estimation error θ ˜ b   =   θ b   θ ^ b . Then   h ˜ b   = θ ˜ b T ξ b   +   ε b .
Thus:
S ˙ b   =   k b t   s a t S b ϕ b     1 2 S b θ ^ b T ξ b     θ ˜ b T ξ b   +   ε b   + k p , b e ^ p t  

6.2. Composite Lyapunov Function

For the whole microgrid, define the composite Lyapunov function:
V   =   1 2   i   p v ,   b ,   S C S i 2 +   1 2 i θ ˜ i T Γ i 1 θ ˜ i +   1 2 β e p 2
where β > 0 is a weighting coefficient, and the term 1 2 β e p 2 accounts for the prediction error dynamics. Taking the time derivative along the trajectories:
V ˙   =   i S i S ˙ i i θ ˜ i T Γ i 1 θ ^ ˙ i +   1 2 β e p e ˙ p
Insert the expression for Si and the adaptive law (14) (rewritten in continuous time):
θ ^ ˙ i   =   Γ i 1 2 S i 2 ξ i     σ i θ ^ i
This continuous-time formulation is used for the Lyapunov analysis. The discrete-time implementation of the adaptive law (14) is interpreted as a sampled-data approximation of (31) with sufficiently small sampling period Δt. Under standard assumptions on the system’s dynamics (Lipschitz continuity of the vector fields) and with Δt chosen sufficiently small, the continuous-time stability guarantees imply practical stability of the sampled data implementation [25].
From the closed-loop error dynamics (32), multiplying by Si yields the following expression:
S ˙ i =   k i s a t S i ϕ i     1 2 S i θ ^ i T ξ i + θ ˜ i T ξ i + ε i   k p , i e ^ p
Multiplying (32) by Si yields:
S i S ˙   θ ˜ i T Γ i 1 θ ^ ˙ i   =   k i S i s a t S i ϕ i 1 2 S i 2 θ ˜ i T ξ i + S i ε i   k p , i S i e ^ p + S i θ i T ξ i
Using (31) and (32), we compute:
S i S ˙   θ ˜ i T Γ i 1 θ ^ ˙ i   =   k i S i s a t S i ϕ i 1 2 S i 2 θ ˜ i T ξ i + S i ε i   k p , i S i e ^ p + S i θ i T ξ i σ i θ ˜ i T ξ i θ ^ i
where we used the fact that θ ^ i +   θ ˜ i =   θ i . The terms 1 2 S i 2 θ ˜ i T ξ i is bounded since θ i is constant and ξ i     1 . Let M θ = sup θ i . Then
1 2 S i 2 θ i T ξ i   1 2 M θ S i 2
Using Young’s inequality:
S i θ ˜ i T ξ i 1 2 S i 2 +   1 2 θ ˜ i 2
and
S i ε i 1 2 S i 2 +   1 2 ε i 2
k p , i S i e ^ p   k p , i 2 S i 2   +   k p , i 2 e ¯ p 2
we obtain:
S i S ˙   θ ˜ i T Γ i 1 θ ^ ˙ i   =   k i S i s a t S i ϕ i 1 2 S i 2 θ ˜ i T ξ i + S i ε i   k p , i S i e ^ p 1 2 S i 2 θ ˜ i T ξ i   +   σ i θ ˜ i T θ ^ i
Simplifying:
S i S ˙ i   θ ˜ i T Γ i 1 θ ^ ˙ i k i S i s a t S i ϕ i   + 1 2   2 +   M θ + k p , i S i 2   +   1 2 θ ˜ i 2 +   1 2 ε i 2 +   k p , i 2 e ¯ p 2   +   σ i θ ˜ i T θ ^ i
The transition from (40) to (45) requires that ki be chosen sufficiently large. Specifically, using the saturation property:
k i S i s a t S i ϕ i   k i ϕ i S i 2   for   S i     ϕ i
k i S i s a t S i ϕ i   k i S i   for   S i   > ϕ i
By selecting ki such that:
k i ϕ i   1 2   2 +   M θ + k p , i +   1 2 + η i
for ∣Si∣ > ϕi,
k i   1 2   2 +   M θ + k p , i +   1 2 + η i
where ηi > 0 is a design constant and M θ =   sup θ i , we guarantee the negativity condition. This condition is explicitly verifiable as all terms are bounded. With this gain selection, we obtain:
S i S ˙ i   θ ˜ i T Γ i 1 θ ^ ˙ i   η i S i 2     1 2 θ ˜ i 2 + 1 2 ε i 2 +   k p , i 2 e ¯ p 2   +       σ i θ ˜ i T θ ^ i
Using the identity σ i θ ˜ i T θ ^ i =   σ i θ ˜ i T θ i θ ˜ i     σ i 2 θ ˜ i 2 +   σ i 2 θ i 2 , we get:
S i S ˙ i   θ ˜ i T Γ i 1 θ ^ ˙ i   η i S i 2   σ i 1 2 θ ˜ i 2 + 1 2 ε i 2 +   k p , i 2 e ¯ p 2   +   σ i 2 θ i 2
where we have chosen σi > 1 to ensure negativity of the θ ˜ i 2 term. The prediction error term satisfies:
1 β e p e ˙ p   γ β e p 2 + M p β
where γ > 0 and Mp > 0 are constants.
Summing over all subsystems and adding the prediction error term:
V ˙     i η i S i 2 i σ i 1 2 θ ˜ i 2 γ β e p 2 + 1 2 ε i 2 + k p , i 2 e ¯ p 2 +   σ i 2 θ i 2 +   M p β
Define:
α = min 2 η i , σ i 1 λ max Γ i 1 ,   2 γ β   >   0
and
M = 1 2 ε i 2 + k p , i 2 e ¯ p 2 +     σ i 2 θ i 2 +   M p β
Then:
V ˙     α V + M
Applying the comparison lemma to (51) yields:
V ˙     e α t V 0 +   M α 1 e α t
Therefore, V(t) is uniformly ultimately bounded with:
lim t   sup V t       M α
Since V t     1 2   i S i 2 , the tracking errors converge to the residual set:
S i     2 M α   for   all   i
which can be made arbitrarily small by increasing ki (i.e., increasing ηi) and reducing approximation errors.
Which can be made arbitrarily small by increasing the control gains (within the projection bounds) and reducing the approximation errors (by using more fuzzy rules or better predictor).
The online gain optimization Algorithm (Figure 2) maintains k i t within k i , min     k i , max   . The analysis above only requires k i t     k i , min sufficiently large to satisfy the inequality k i S i s a t S i / ϕ i     η i S i 2 . Since the projection ensures k i t     k i , min , stability is preserved as long as   k i , min is chosen large enough. The optimization actually increases k i t when needed (e.g., during transients), which further improves convergence.
Thus, under the assumption of bounded piecewise continuous reference currents, the AFSMC inner loop guarantees uniform ultimate boundedness of the tracking errors and parameter estimation errors. Since the DQL agent’s actions are bounded by construction and the reference currents are physically limited, the cascade interconnection ensures boundedness of all signals of the overall system.
The following theorem summarizes the stability properties.
Theorem 1.
Consider the DC microgrid (5) under the AFSMC laws (11)–(13), the adaptive laws (14), and the data driven predictor providing bounded prediction error  e ^ p  with  e ^ p     e ¯ p . Suppose Assumptions 5–8 hold and the initial conditions are bounded. Assume further that the reference currents  I p v r e f ,   I b r e f ,   I S C r e f  are bounded and piecewise continuous a condition physically guaranteed by the DQL agent’s action constraints (e.g., maximum converter currents, SoC limits). Then:
i. 
All signals in the low-level AFSMC inner loop, including the tracking errors Si and the fuzzy parameter estimation errors  θ ˜ i , are uniformly bounded.
ii. 
The tracking errors converge to a residual set  Ω i   = S i     2 M / α   where  M  depends on the approximation errors and the bound on  e ^ p , and α is a positive constant determined by the control gains and adaptation parameters.
iii. 
By increasing the minimum allowable gain    k i , min  and improving the fuzzy approximation (reducing ϵi), the residual set can be made arbitrarily small.
iv. 
Since the DQL agent operates at a slower timescale and its actions are bounded by physical converter limits, the reference currents remain bounded. Consequently, the boundedness of the inner-loop tracking errors implies the boundedness of the DC bus voltage dynamics (4), ensuring overall closed-loop stability in a cascade sense.
Proof of Theorem 1.
We analyze one subsystem (e.g., the battery) and then combine them via a composite Lyapunov function. The extension to PV and SC is identical. For the battery, define the tracking error z b   =   I b I b r e f . The sliding surface is Sb = zb. From (2), the error dynamics are (24). The unknown dynamics are lumped into a continuous function hb (zb). With the optimal parameter θ b defined as the best approximator, we have h b =   θ b T ξ b   +   ε b , with ε b     ε b 0 . Define the parameter estimation error θ ˜ b = θ b θ ^ b . □
After substituting the control law (12) and using the fact that the fuzzy system approximates the unknown part, the closed-loop error dynamics become (42).
For the whole microgrid, define the composite Lyapunov function (29) where β > 0 is a weighting coefficient, and the term 1 2 β e p 2 accounts for the prediction error dynamics.
Taking the time derivative along the trajectories (30).
The adaptive law is (32) Using (42) and (32), and computing S i S ˙ i θ ˜ b T Γ i 1 θ ˙ ^ i , we obtain (39). Using the saturation property (51) and (52). Using Young’s inequality and the boundedness of the fuzzy basis functions (∣ξi∣ ≤ 1) ((37), (48) and (53)).
By selecting ki and kp,i sufficiently large (within the projection bounds [ki,min, ki,max]) such that: ( k i     ϕ i 2 1 + k p , i +   η i : inside boundary layer) and ( k i     1 2 1 + k p , i +   η i : outside boundary layer) where ηi > 0 is a design constant, we can show that (54). The prediction error dynamics satisfy (56) where γ > 0 is a positive constant and Mp > 0 depends on the boundedness of the system signals and the predictor dynamics. This boundedness follows from Lemma 1 and the fact that all signals in the closed-loop system remain bounded as shown below. Then:
V ˙   α V + M
Applying the comparison lemma to (61) yields:
V t   V 0 e α t + M α 1 e α t
Therefore, V(t) is uniformly ultimately bounded with:
lim t V t   M α
Since V t   1 2 i S i 2   , we have:
i S i 2       2 V t     2 V 0 e α t +   2 M α
Thus:
lim   sup t i S i 2         2 M α
Therefore, the tracking errors converge to the residual set (54).
Since the DQL agent operates at a slower timescale and its actions are bounded by converter limits (e.g., IbIb,max, SOC ∈ [SOCmin, SOCmax]), the reference currents I i r e f are bounded and piecewise continuous. The above analysis guarantees that the actual currents Ii track these references with bounded errors. From the DC bus voltage dynamics (4). Since all currents Ii, duty cycles di, and load current ILoad are bounded (the latter by physical limits), the right-hand side of (4) is bounded. Therefore, the bus voltage vDC remains bounded. This establishes overall closed-loop stability in a cascade sense.

7. Simulation Results

This section presents a comprehensive simulation study to validate the proposed data driven predictive hybrid control strategy. The performance of the proposed approach is compared against two strategies: (i) a conventional fuzzy logic based energy management system coupled with a fixed gain SMC (FLC method) [15] and (ii) a standard DQL agent with only instantaneous state information combined with fixed gain SMC (DQL method) [20]. The two strategies (FLC and DQL) both employ fixed- gain sliding mode controllers, whereas our method benefits from online gain optimization and an augmented DQL state.
All simulations are carried out in MATLAB using the averaged model of the DC microgrid described in Section 2. The microgrid parameters are as follows: nominal DC bus voltage vDCref = 48 V; PV boost converter Lpv = 3 mH, Cpv = 1000 μF; battery bidirectional converter Lb = 3 mH, Cb = 1000 μF, battery nominal voltage vb = 36 V, capacity 100 Ah; SC converter LSC = 2 mH, CSC = 2000 μF, SC bank rated at 30 F; DC bus capacitance CDC = 2200 μF; load resistive, variable from 0 to 2 kW.
For the proposed method, the adaptive fuzzy SMC gains are initialised to kpv (0) = kb (0) = kSC (0) = 40 with bounds [25, 70]. The saturation boundary layer thickness is ϕ = 0.15, predictive compensation gains are kp,pv = kp,b = kp,SC = 2. The data driven predictor uses a window length L = 20, prediction horizon Np = 3 and forgetting factor λ = 0.99. The DQL agent is trained for 3000 episodes.
The three test scenarios are concatenated on a single time axis: Scenario A (0–20 s, sinusoidal variations), Scenario B (20–40 s, step changes) and Scenario C (40–60 s, stochastic fluctuations). An additional extreme disturbance scenario (Scenario D) is simulated separately for robustness assessment.
Scenario A: Smooth Sinusoidal Variations.
The performance under slowly varying PV power and load. The proposed method reduces the voltage RMSE from 1.24 V (FLC) and 0.91 V (standard DQL) to only 0.42 V, an improvement of 66% and 54% respectively. The maximum voltage deviation is cut by more than half, from 2.7 V to 0.9 V. Battery stress (integral of |Ib|) is reduced by 62% compared to the fuzzy, and load shedding is completely eliminated. These gains stem from the adaptive fuzzy compensation and the predictive feedforward term, which anticipate the slow oscillations and keep the bus voltage tightly regulated.
Scenario B: Step Changes (PV drop and load step).
Figure 3 shows the DC bus voltage response of the three controllers during the concatenated scenarios, with a particular focus on the step disturbances at t = 25 s (PV drop from 1000 W to 300 W) and t = 30 s (load step from 500 W to 1200 W). The proposed method exhibits the smallest voltage dip (2.1 V vs. 4.3 V for FLC and 3.0 V for standard DQL) and the fastest settling time (0.22 s vs. 0.65 s and 0.38 s).
The improved performance is attributed to the online gain optimisation (Figure 4) and the prediction error feedforward. As seen in Figure 5, the battery SMC gain kb (t) rises from 20 to 28 within 0.04 s after the PV drop and further to 35 during the load step, providing extra robustness exactly when needed.
The battery current profiles (Figure 5) confirm that the proposed controller uses the SC to handle transient peaks, reducing the peak battery current by 42% compared to FLC and by 25% compared to standard DQL. Moreover, the fuzzy compensator eliminates the chattering visible in the fixed gain SMC responses.
Scenario C: Stochastic Fluctuations.
Under random variations, the advantage of the augmented DQL agent becomes most evident. The proposed method reduces the voltage RMSE to 0.58 V (against 1.67 V for FLC and 1.22 V for standard DQL). Deep discharge events (SoC < 20%) are cut from 8.2 to 0.9, a reduction of 89%. Load shedding ratio drops from 9.8% to 1.7%, meaning the microgrid rarely needs to disconnect loads despite the highly variable generation and demand. The standard DQL without prediction still outperforms the fuzzy but cannot anticipate the rapid fluctuations, leading to occasional voltage sags and more frequent load shedding.
Scenario D: Extreme Disturbance (PV loss and heavy load step).
This scenario tests the robustness limits. At t = 10 s the PV generator is disconnected, and at t = 30 s the load steps from 800 W to 1800 W. Figure 6 shows the DC bus voltage and the battery SoC. The proposed method keeps the voltage above 46 V (minimum 46.5 V) and recovers to 48 V within 0.25 s, while FLC drops to 43 V and takes 0.9 s to recover. The battery SoC decreases more slowly under the proposed control because the agent reduces unnecessary charging and prioritises the SC for transient support. Notably, the proposed method never activates load shedding during this scenario, whereas FLC exhibits a load shedding ratio of 8% and DQL of 3%.
Figure 7 zooms on the interval [24 s, 26 s] to show the evolution of kb (t) during the PV drop. The gain smoothly increases from 20 to 28, reaching its peak exactly at the moment of the disturbance (25 s). This behaviour confirms that the predictor successfully detects the impending voltage drop and triggers the gain update, which is then projected to stay within safe bounds [25, 70]. The forgetting factor λ = 0.99 allows the predictor to track slow system changes without becoming overly sensitive to noise.
Figure 8 presents the learning curves (average reward per episode) over 3000 training episodes. The augmented DQL agent (with predictive state information) converges after approximately 2200 episodes, whereas the standard DQL agent requires 2600 episodes. The final average reward of the augmented agent is about 15% higher, indicating that the predictive information accelerates learning and leads to a better policy. After convergence, the policy is fixed and used for testing in Scenarios A–D.
The improvements of the proposed method. The voltage RMSE is reduced by 64% (vs. FLC) and 52% (vs. standard DQL); maximum voltage deviation is reduced by 58% and 43%; deep discharge events are reduced by 89% and 78%; battery cycling stress by 69% and 54%; load shedding ratio by 82% and 73%; settling time by 65% and 45%. These figures demonstrate the clear superiority of combining data driven prediction, adaptive fuzzy SMC, and augmented deep reinforcement learning.
Scenario E: Robustness Assessment under Unseen Conditions and Uncertainties.
To further validate the practical applicability of the proposed method, we conducted an additional robustness assessment under operating conditions not encountered during the DQL training phase. This scenario is designed to test the method’s resilience to uncertainties, measurement imperfections, and parameter variations that are typical in real-world microgrid applications.
The robustness assessment consists of 50 independent Monte Carlo simulations, each lasting 40 s, under the following challenging conditions:
(i) Unseen irradiance profile: The PV irradiance profile used in this scenario was deliberately constructed to be different from any profile seen during standard DQL training. It combines rapid fluctuations (simulating intermittent cloud cover) with sudden step changes (simulating weather fronts). The profile includes:
  • Initial steady state at 800 W/m2 (0–5 s)
  • Rapid fluctuations between 200–900 W/m2 with 0.5 Hz variations (5–15 s)
  • Abrupt drop from 900 to 300 W/m2 at t = 15 s
  • Stochastic variations with random amplitude (15–25 s)
  • Gradual increase from 300 to 700 W/m2 with superimposed noise (25–35 s)
  • Final step to 1000 W/m2 at t = 35 s
(ii) Measurement noise: Gaussian white noise with 0.5% standard deviation of the nominal value was added to all sensor measurements, including DC bus voltage, inductor currents, and PV power. This noise level is representative of typical measurement uncertainties in practical power systems.
(iii) Parameter variations: To test robustness against model uncertainties, the converter inductances were varied by ±20% from their nominal values:
  • Lpv ∈ [2.4,3.6] mH (nominal: 3.0 mH)
  • Lb ∈ [2.4,3.6] mH (nominal: 3.0 mH)
  • LSC ∈ [1.6,2.4] mH (nominal: 2.0 mH)
These parameter variations were randomly sampled for each Monte Carlo run and kept constant throughout the simulation.
(iv) Random initial SoC conditions: To evaluate the method’s ability to handle different initial energy storage states, the initial SoC values were randomly sampled from wide ranges: Battery SoC: uniformly distributed in [0.15, 0.95] and SC SoC: uniformly distributed in [0.2, 0.9].
These ranges cover both stressed conditions (low SoC) and fully charged conditions (high SoC), testing the energy management system’s decision-making capabilities across the full operating envelope. The load profile was kept identical across all 50 runs and consisted of a variable resistive load with step changes from 500 W to 1200 W at t = 20 s, and from 1200 W to 800 W at t = 30 s, representing typical household demand variations.
Figure 9 presents the box plots comparing the performance of the three methods (FLC, DQL, and the proposed method) over the 50 Monte Carlo runs. Two key metrics are shown:
(a) Voltage RMSE: The proposed method exhibits the lowest median RMSE (0.51 V) with the smallest interquartile range (IQR = 0.18 V), compared to FLC (median = 1.72 V, IQR = 0.42 V) and standard DQL (median = 1.15 V, IQR = 0.31 V). The maximum RMSE observed for the proposed method (0.89 V) remains below the minimum RMSE of FLC (1.32 V), demonstrating consistent superior performance even under worst-case conditions.
(b) Deep discharge events (SoC < 20%): The proposed method shows a median of 0.8 deep discharge events per simulation, with 90% of runs having fewer than 2 events. In contrast, FLC exhibits a median of 7.5 events (90th percentile: 12 events), and standard DQL shows a median of 3.2 events (90th percentile: 6 events). This represents a reduction of 89% compared to FLC and 75% compared to DQL.
The box plots clearly demonstrate that the proposed method maintains its performance advantages even under significant uncertainties. The lower dispersion of results indicates that the method is more robust to variations in operating conditions and parameter uncertainties. This robustness stems from three factors: (i) the online adaptation of SMC gains that automatically adjusts to changing dynamics, (ii) the fuzzy compensator that approximates unknown nonlinearities, and (iii) the augmented DQL agent that learns policies resilient to different initial conditions.
Notably, the proposed method never triggered load shedding in any of the 50 Monte Carlo runs, whereas FLC triggered load shedding in 38% of the runs (19 out of 50) and standard DQL in 14% of the runs (7 out of 50). This further confirms the robustness and reliability of our approach.
The average settling time after disturbances (defined as the time to recover within 2% of the reference voltage) for the proposed method was 0.28 s (standard deviation: 0.06 s), compared to 0.71 s (std: 0.15 s) for FLC and 0.42 s (std: 0.11 s) for standard DQL. These results indicate that the proposed method not only achieves better steady-state performance but also recovers faster from disturbances, even under uncertain conditions.
The computational cost of the proposed method was evaluated in terms of training time and online execution time. The DQL agent was trained for 3000 episodes, taking approximately 4.5 h. Regarding the online execution time per decision step (0.1 s), the data-driven predictor (RLS update) requires 0.8 ms, the gain optimization Algorithm requires 1.2 ms, the AFSMC layer requires 0.5 ms, and the DQL policy inference requires 0.3 ms. This results in a total online execution time of 2.8 ms per step, which is well below the 100 ms decision interval, confirming the feasibility of real-time implementation.
The simulation results clearly demonstrate that the proposed method outperforms the standard DQL baseline (non augmented, fixed-gain SMC) and the FLC method across all evaluated metrics. It achieves precise DC bus voltage regulation under sinusoidal, step, stochastic, and extreme scenarios, while significantly reducing deep battery discharges, cycling stress, and load shedding events. Thanks to online SMC gain adaptation and the integration of predictive information into the DQL agent, our approach responds faster to disturbances and learns anticipatory energy management policies. These advantages confirm the clear superiority of our predictive hybrid control strategy.

8. Conclusions

This paper proposed a predictive hybrid control strategy for DC microgrids combining AFSMC, a data-driven predictor, and an augmented DQL agent. The synergy of online SMC gain optimization, fuzzy compensation, and predictive state augmentation enables anticipative energy management with stability guarantees. A composite Lyapunov analysis proves uniform ultimate boundedness of the AFSMC inner loop under bounded reference currents, ensuring overall stability in a cascade sense. Simulations demonstrate that the proposed method significantly outperforms the standard (non-augmented) DQL baseline with fixed-gain SMC and the conventional fuzzy logic approach. The proposed method exhibits superior voltage regulation with substantially reduced RMSE, markedly fewer deep discharge events, considerably lower load shedding ratio, and faster settling times. An additional robustness assessment confirms resilience to unseen irradiance, measurement noise, parameter variations, and random initial SoC conditions. While the results demonstrate significant performance improvements over these benchmarks, we acknowledge that comparison with other approaches such as model predictive control, adaptive control without learning, or alternative deep reinforcement learning methods would further strengthen the validation. This is left for future investigation.

Author Contributions

The initial concept was developed by K.J. and M.C.; the methodology was designed by K.J. in collaboration with M.C.; software implementation was carried out by K.J.; validation tasks were performed by K.J., M.C. and M.B.M.; K.J. conducted the formal analysis and investigation; M.C. provided the necessary resources; data curation was handled by K.J.; the first draft of the manuscript was written by K.J.; the manuscript was revised and edited by M.C. and M.B.M.; visualizations were prepared by K.J.; M.C. supervised the project and managed its administration; M.B.M. was responsible for securing the funding. All authors have read and agreed to the published version of the manuscript.

Funding

This research work was funded by Umm Al-Qura University, Saudi Arabia under grant number: 26UQU 4331171GSSR01.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors extend their appreciation to Umm Al-Qura University, Saudi Arabia for funding this research work through grant number: 26UQU 4331171GSSR01.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bevrani, H.; Francois, B.; Ise, T. Microgrid Dynamics and Control; Wiley: Hoboken, NJ, USA, 2017. [Google Scholar]
  2. Khifii, M.A.; Alkassem, A.; Draou, A. Performance analysis of a hybrid microgrid with energy management. Eng. Technol. Appl. Sci. Res. 2022, 12, 8634–8639. [Google Scholar]
  3. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B.; Talebi, H.A. A decentralized power management and sliding mode control strategy for hybrid AC/DC microgrids. IEEE Trans. Ind. Inform. 2018, 14, 1880–1889. [Google Scholar]
  4. Chen, J.; Liu, H.; Zhang, Z.; Wang, S. Recent advances and applications of DC microgrids. Technologies 2024, 12, 197. [Google Scholar]
  5. Le, T.; Phung, B.L.N. Load shedding in microgrids with consideration of voltage quality improvement. Eng. Technol. Appl. Sci. Res. 2021, 11, 6680–6686. [Google Scholar] [CrossRef]
  6. Roy, T.K.; Mahmud, M.A.; Oo, A.M.T.; Haque, M.; Muttaqi, K.M.; Mendis, N. Nonlinear adaptive backstepping controller design for islanded DC microgrids. IEEE Trans. Ind. Appl. 2018, 54, 2857–2873. [Google Scholar] [CrossRef]
  7. Jouili, K.; Charfeddine, M.; Alquerni, M. Adaptive feedback control of nonminimum phase boost converter with constant power load. Symmetry 2024, 16, 352. [Google Scholar] [CrossRef]
  8. Utkin, V. Sliding Mode Control in Electromechanical Systems; CRC Press: Boca Raton, FL, USA, 2009. [Google Scholar]
  9. Shtessel, Y.; Edwards, C.; Fridman, L.; Levant, A. Sliding Mode Control and Observation; Birkhäuser: New York, NY, USA, 2014; pp. 1–356. [Google Scholar]
  10. Boubaker, S.; Jouili, K. Fuzzy logic energy management system-based nonlinear sliding mode controller for the stabilization of DC microgrids. Eng. Technol. Appl. Sci. Res. 2024, 14, 15408–15414. [Google Scholar] [CrossRef]
  11. Du, Z.; Kao, Y.; Karimi, H.R.; Zhao, X. Interval type-2 fuzzy sampled-data H∞ control for nonlinear unreliable networked control systems. IEEE Trans. Fuzzy Syst. 2019, 28, 1434–1448. [Google Scholar]
  12. Levant, A. Higher-order sliding modes, differentiation and output-feedback control. Int. J. Control 2003, 76, 924–941. [Google Scholar] [CrossRef]
  13. Wang, L.X. Adaptive Fuzzy Systems and Control; Prentice-Hall: Upper Saddle River, NJ, USA, 1994. [Google Scholar]
  14. Tong, S.C.; Li, Y.M. Observer-based fuzzy adaptive control for strict-feedback nonlinear systems. Fuzzy Sets Syst. 2009, 160, 1749–1764. [Google Scholar] [CrossRef]
  15. Zhang, L.; Wang, Y.; Li, X.; Zhang, Y. Intelligent energy management of DC microgrids using sliding mode control and fuzzy logic. Energies 2025, 18, 190. [Google Scholar]
  16. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Graves, A.; Antonoglou, I.; Wierstra, D.; Riedmiller, M. Playing Atari with Deep Reinforcement Learning. arXiv 2013, arXiv:1312.5602. [Google Scholar]
  17. Zhang, Y.; Li, H.; Wang, Z.; Liu, S. Adaptive event-triggered tracking control for nonlinear networked systems with dynamic quantization and deception attacks. IEEE Trans. Fuzzy Syst. 2025, 33, 123–135. [Google Scholar]
  18. Wang, L.; Chen, X.; Wu, J. Quantized fuzzy guaranteed cost control for electric vehicles with uncertain parameters. IEEE Trans. Veh. Technol. 2024, 73, 456–470. [Google Scholar]
  19. Wang, L.; Zhang, Y.; Chen, X.; Li, H. Advanced deep reinforcement learning techniques for complex decision-making tasks. Proc. AAAI Conf. Artif. Intell. 2021, 35, 13979–13986. [Google Scholar]
  20. Charfeddine, M.; Ben Moussa, M.; Jouili, K. Deep-reinforcement-learning-based sliding mode control for optimized energy management in DC microgrids. Mathematics 2025, 13, 3212. [Google Scholar] [CrossRef]
  21. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A.A.; Veness, J.; Bellemare, M.G.; Graves, A.; Riedmiller, M.; Fidjeland, A.K.; Ostrovski, G.; et al. Human-level control through deep reinforcement learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef] [PubMed]
  22. Hou, Z.; Jin, S. Data-driven model-free adaptive control for a class of MIMO nonlinear discrete-time systems. IEEE Trans. Neural Netw. 2011, 22, 2173–2188. [Google Scholar] [CrossRef] [PubMed]
  23. Zhang, Y.; Liu, T.; Hill, D.J. Data-driven adaptive predictive frequency control for power systems with unknown and time-varying inertia. Electr. Power Syst. Res. 2024, 234, 110815. [Google Scholar] [CrossRef]
  24. Erickson, R.W.; Maksimović, D. Fundamentals of Power Electronics, 2nd ed.; Springer: New York, NY, USA, 2001. [Google Scholar]
  25. Nesic, D.; Teel, A.R. Input-output stability properties of networked control systems. IEEE Trans. Autom. Control 2004, 49, 1650–1667. [Google Scholar] [CrossRef]
Figure 1. Schematic of the considered DC microgrid.
Figure 1. Schematic of the considered DC microgrid.
Mathematics 14 02825 g001
Figure 2. Flowchart of the online gain optimization algorithm using data driven prediction.
Figure 2. Flowchart of the online gain optimization algorithm using data driven prediction.
Mathematics 14 02825 g002
Figure 3. DC bus voltage response.
Figure 3. DC bus voltage response.
Mathematics 14 02825 g003
Figure 4. Online optimized SMC gain (battery).
Figure 4. Online optimized SMC gain (battery).
Mathematics 14 02825 g004
Figure 5. Battery current profiles.
Figure 5. Battery current profiles.
Mathematics 14 02825 g005
Figure 6. Extreme disturbance scenario (D)—Voltage response.
Figure 6. Extreme disturbance scenario (D)—Voltage response.
Mathematics 14 02825 g006
Figure 7. Gain increase during PV drop.
Figure 7. Gain increase during PV drop.
Mathematics 14 02825 g007
Figure 8. DQL training convergence.
Figure 8. DQL training convergence.
Mathematics 14 02825 g008
Figure 9. Robustness assessment over 50 Monte Carlo simulations: (a) voltage RMSE; (b) deep discharge events. Box-plots represent the median (central red line), the interquartile range (box edges), the whiskers (extending to the most extreme data points not considered outliers), and outliers (red ‘+’ symbols). The three box-plots for each metric correspond to the FLC (blue), standard DQL (green), and the proposed AFPC (orange) methods.
Figure 9. Robustness assessment over 50 Monte Carlo simulations: (a) voltage RMSE; (b) deep discharge events. Box-plots represent the median (central red line), the interquartile range (box edges), the whiskers (extending to the most extreme data points not considered outliers), and outliers (red ‘+’ symbols). The three box-plots for each metric correspond to the FLC (blue), standard DQL (green), and the proposed AFPC (orange) methods.
Mathematics 14 02825 g009
Table 1. DQL action mapping to reference currents and load shedding levels.
Table 1. DQL action mapping to reference currents and load shedding levels.
Action abatBattery Mode I b r e f
0Charge (C/2 rate)+5 A
1Idle0 A
2Discharge (C/2 rate)−5 A
Action aSCSC Mode I S C r e f
0Charge (5 A)+5 A
1Idle0 A
2Discharge (5 A)−5 A
Action ashedLoad Shedding LevelLoad Reduction
0No shed0%
1Partial shed30%
2Full shed100% (non critical loads)
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

Jouili, K.; Charfeddine, M.; Moussa, M.B. Predictive Hybrid Energy Management for DC Microgrids: Adaptive Fuzzy Sliding Mode Control with Augmented Deep Q-Learning. Mathematics 2026, 14, 2825. https://doi.org/10.3390/math14152825

AMA Style

Jouili K, Charfeddine M, Moussa MB. Predictive Hybrid Energy Management for DC Microgrids: Adaptive Fuzzy Sliding Mode Control with Augmented Deep Q-Learning. Mathematics. 2026; 14(15):2825. https://doi.org/10.3390/math14152825

Chicago/Turabian Style

Jouili, Khalil, Monia Charfeddine, and Mongi Ben Moussa. 2026. "Predictive Hybrid Energy Management for DC Microgrids: Adaptive Fuzzy Sliding Mode Control with Augmented Deep Q-Learning" Mathematics 14, no. 15: 2825. https://doi.org/10.3390/math14152825

APA Style

Jouili, K., Charfeddine, M., & Moussa, M. B. (2026). Predictive Hybrid Energy Management for DC Microgrids: Adaptive Fuzzy Sliding Mode Control with Augmented Deep Q-Learning. Mathematics, 14(15), 2825. https://doi.org/10.3390/math14152825

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

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop