Next Article in Journal
Consensus on the Internet of Vehicles: A Systematic Literature Review
Previous Article in Journal
Advanced Fault Classification in Induction Motors for Electric Vehicles Using A Stacking Ensemble Learning Approach
Previous Article in Special Issue
Comprehensive Evaluation Method for Electric Vehicle Charging Network Service Quality Considering User Satisfaction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Horizon-Based Energy Management for PEVs Considering Battery Degradation in Grid-Connected Microgrid Applications

by
Junyi Zheng
1,2,
Qian Tao
1,
Qinran Hu
1 and
Muhammad Humayun
2,*
1
School of Electrical Engineering, Southeast University, Nanjing 210096, China
2
Wanbang Digital Energy Co., Ltd., Changzhou 213000, China
*
Author to whom correspondence should be addressed.
World Electr. Veh. J. 2025, 16(11), 615; https://doi.org/10.3390/wevj16110615
Submission received: 25 July 2025 / Revised: 19 September 2025 / Accepted: 20 September 2025 / Published: 11 November 2025
(This article belongs to the Special Issue Smart Charging Strategies for Plug-In Electric Vehicles)

Abstract

The growing integration of plug-in electric vehicles (PEVs) into microgrids presents both challenges and opportunities, particularly through vehicle-to-grid (V2G) services. This paper proposes a dynamic horizon optimization (DHO) framework with adaptive pricing for real-time scheduling of PEVs in a renewable-powered microgrid. The system integrates solar and wind energy, V2G capabilities, and time-of-use (ToU) tariffs. The DHO strategy dynamically adjusts control horizons based on forecasted load, generation, and electricity prices, while considering battery health. A PEV-specific pricing scheme couples ToU tariffs with system marginal prices. Case studies on a microgrid with four heterogeneous EV charging stations show that the proposed method reduces peak load by 23.5%, lowers charging cost by 12.6%, and increases average final SoC by 12.5%. Additionally, it achieves a 6.2% reduction in carbon emissions and enables V2G revenue while considering battery longevity.

1. Introduction

The integration of plug-in electric vehicles (PEVs) into modern microgrids presents operational challenges and optimization opportunities. Stochastic PEV charging can stress grid infrastructure during peak hours [1], while their bidirectional power flow enables cost reduction and grid stabilization [2]. Numerous studies optimize PEV charging schedules using event-driven model predictive control (MPC) [3,4,5,6]. These strategies adapt to dynamic arrivals/departures and stochastic renewable generation but often rely on fixed prediction horizons.
Other studies examine broader microgrid operational challenges using MPC dispatch frameworks, stochastic unit commitment, and optimization algorithms [7,8]. While effective in simulations, they generally lack mechanisms to adjust control horizons dynamically, reducing effectiveness under frequent fluctuations.
Real-time coordination methods, including distributed control schemes [9,10], decentralized fuzzy controllers [11,12], and multi-agent frameworks [13,14], improve flexibility. However, most assume static configurations and fail to adapt to sudden EV arrivals, SoC variations, or intermittent renewable outputs.
Another critical dimension is PEV battery degradation from frequent charging or discharging, especially under V2G operation, accelerates aging, leading to capacity fade and reduced service life [15,16,17,18,19,20,21,22]. Existing models using fixed penalty costs [23,24] or linear approximations [25,26] may not fully capture nonlinear relationships between aging and operational parameters (DoD, charge/discharge rates, temperature). Without accurate degradation modeling, real-time scheduling risks undermining V2G sustainability and PEV owner economics.
To address these limitations, this work introduces a real-time V2G-enabled microgrid-optimization framework with three key innovations:
1.
Real-time coordination optimizing power flows based on current grid state and PEV availability.
2.
Dynamic horizon adjustment that scales prediction windows based on EV connection patterns and renewable generation.
3.
Bidirectional power flow optimization incorporating detailed battery-degradation constraints.
To clearly contextualize our contribution within the broader research landscape and differentiate our approach from existing methods, Table 1 and Table 2 provide systematic comparisons across multiple dimensions. Table 2 positions our work within the field of PEV charging-optimization methodologies, while Table 1 offers a focused analysis of MPC-specific strategies, highlighting the novel integration of economic signals and degradation-aware triggering mechanisms that distinguish our DHO framework from both conventional and adaptive MPC approaches.
Simulation results demonstrate the practical efficacy of this integrated approach. The proposed DHO framework achieves a 12.6% reduction in operational costs compared to conventional strategies, while simultaneously lowering peak demand from 170 k W to 130 k W (23.5% reduction). The framework significantly improves user satisfaction by increasing average final State of Charge from 74% to 86.5% while suggesting a potential 18% reduction in battery degradation under the applied semi-empirical model. Furthermore, the system enables substantial V2G revenue generation and contributes to environmental sustainability through a 6.2% reduction in carbon emissions. These comprehensive improvements highlight the value of co-optimizing economic, operational, and battery health objectives within a unified adaptive framework.

2. System Characterization and Mathematical Formulation

The microgrid (MG) integrates loads, PV and wind generation, the utility grid, and multiple EVCSs with bidirectional power capabilities (Figure 1). PV and wind sources are considered distributed energy sources (DESs). The system aims to minimize grid electricity consumption by utilizing local renewable generation and storing surplus DES power in EV batteries through vehicle-to-grid (V2G) operation.

2.1. PV Array Modeling

PV output is stochastic due to weather variations. The generated PV power P pv depends on solar irradiance G and cell temperature T cell :
P pv = P st G G st 1 + C T ( T cell T st ) .
Here, P st is the rated PV power at standard test conditions (STC), G st = 1   k W / m 2 , T st = 25   ° C , and C T is the temperature coefficient in % / ° C . The cell temperature is estimated from ambient temperature T amb and irradiance:
T cell = T amb + G NOCT 20 800 ,
where NOCT is the nominal operating cell temperature.
Solar irradiance variability is modeled with a beta distribution due to its bounded nature. The PDF is:
f ( x ) = x a i 1 ( 1 x ) b i 1 β ( a i , b i ) , 0 x 1 , 0 , otherwise ,
where x is normalized irradiance, and a i , b i are shape parameters computed from the mean μ i and standard deviation σ i of measured irradiance:
a i = μ i b i 1 μ i ,
                b i = ( 1 μ i ) μ i ( 1 + μ i ) σ i 2 1 .
Ambient temperature is treated as a normal random variable with time-varying mean and standard deviation:
f ( T amb ) = 1 2 π σ i exp ( T amb μ i ) 2 2 σ i 2 .

2.2. EV Load Modeling

EV charging and discharging behavior introduces stochastic loads into the microgrid. To capture this, we model vehicle arrival time at charging stations, daily driving distance, battery SoC dynamics, and charging/discharging constraints. Monte Carlo simulation is employed to account for randomness.

2.2.1. Arrival Time Modeling

EV arrival times at the charging station are bimodal due to typical commuting patterns, with peaks in the morning and evening. This is modeled as a bimodal normal distribution:
f arr ( t ) = 1 2 π σ i exp ( t + 24 μ i ) 2 2 σ i 2 , 0 < t μ i 12 , 1 2 π σ i exp ( t μ i ) 2 2 σ i 2 , μ i 12 < t 24 ,
where μ i = 17.47 h and σ i = 3.41 h.

2.2.2. Daily Driving Distance

Daily distance traveled by each EV, D, is modeled as a log-normal random variable:
f D ( d ) = 1 d σ D 2 π exp ( ln d μ D ) 2 2 σ D 2 ,
where μ D and σ D are the mean and standard deviation of the natural logarithm of daily distance.

2.2.3. SoC Dynamics and Charging Requirements

Given the daily distance D, the required final SoC for the next day is:
SoC final = SoC init + D E C EV max ,
where E is the energy consumption per km and C EV max is the EV battery capacity. Charging time to reach this SoC is:
T ch = ( SoC final SoC init ) · C EV max P ch · η ch ,
with charging power P ch and efficiency η ch . SoC evolves dynamically:
SoC t + 1 = SoC t + P t ch Δ T P t dis Δ T , SoC min SoC t SoC max .

2.2.4. Charging/Discharging Constraints

EV charging/discharging power is limited by station rating and battery characteristics:
0 P t ch P rated · η ch ,
0 P t dis P rated · η dis .
To prevent simultaneous charging and discharging, a binary control variable z t is introduced:
P t ch = P t ch · z t ,
      P t dis = P t dis · ( 1 z t ) ,
with z t = 1 for charging and z t = 0 for discharging.

2.2.5. Scheduling Rules and Assumptions

The EV scheduling algorithm enforces:
1.
EVs can only be dispatched after returning home
2.
Charging/discharging power must remain within battery limits
3.
SoC at departure must meet next-day travel requirements
4.
EVs are not dispatched during working hours (08:00–17:00)
5.
Valley hours (22:00–07:00) are preferred for charging

2.2.6. Monte Carlo Simulation

Monte Carlo methods are applied to generate large-scale EV behavior scenarios based on the above distributions.

2.3. Battery Aging Cost Modeling

Limitations of Model: It is important to note that the presented semi-empirical degradation model is calibrated from parameters reported in secondary literature sources [15,16] for NMC chemistry cells. While this provides a reasonable estimate of aging costs for operational scheduling, the model has not been validated against experimental charge-discharge cycle data conducted specifically for this study. Consequently, the absolute predictions of capacity fade should be interpreted with caution. The primary value of the model in this work is its ability to provide a comparative basis for evaluating the impact of different scheduling strategies on relative battery degradation.
Lithium-ion degradation is captured using a semi-empirical model accounting for calendar and cycling effects [15,16].
                                F 1 cap = K 1 SoC · SoC ¯ + K 2 SoC exp E a + K I · I ¯ R ( 273.15 + T ¯ ) E thrpt Z ,
              E thrpt = t = HAT + 1 HDT P t G 2 V + P t V 2 G · Δ t ,
          F 2 cap = t = HAT + 1 HDT K DoD P t V 2 G η V 2 G Δ t ,
  F cap = F 1 cap + F 2 cap ,
                    E total = t = HAT + 1 HDT P t G 2 V · η G 2 V + P t V 2 G η V 2 G · Δ t ,
P age = C age_daily E total ,
                      C age_daily = r C bat ( 1 + r ) N C scr ( 1 + r ) N 1 , N = 0.2 C init F cap .
The parameters used in the degradation model are listed in Table 3. These values are taken from [15,16] and calibrated to NMC battery cells. A sensitivity analysis evaluates the impact of parameter uncertainty on the estimated aging cost [35].

2.4. Wind Energy Conversion Modeling

A horizontal-axis wind turbine (HAWT) extracts power from wind, with total wind power:
P wind = 1 2 ρ A V w 3 ,
and mechanical power captured:
P t = C p ( λ , β ) · P wind , λ = ω t R V w .
The empirical power coefficient model:
C p ( λ , β ) = 0.5 116 λ i 0.4 β 5 exp 21 λ i , 1 λ i = 1 λ + 0.08 β 0.035 β 3 + 1 .
These relations provide a foundation for variable-speed wind energy conversion system modeling.

3. Proposed Framework

The proposed framework addresses the challenges of real-time energy management in microgrids by dynamically optimizing power exchanges among the grid, distributed energy sources (DESs), and electric vehicles (EVs) with bidirectional capabilities. Unlike conventional day-ahead scheduling methods [10,11], which rely on static forecasts and assume perfect knowledge of DES generation and EV behavior, our approach implements a closed-loop optimization strategy that continuously adapts to evolving system conditions. Key uncertainties—including intermittent PV/wind output, stochastic EV arrivals and departures, and fluctuating electricity prices—are mitigated through a combination of short-term forecasting and a reactive dynamic horizon optimization (DHO) approach.

3.1. Framework Architecture

At the core of the framework is an LSTM-based forecasting module [12,13], which provides updated predictions of DES generation and load demand over a sliding time window. Forecasts are continuously refined using real-time measurements, ensuring robustness under rapidly changing conditions. The DHO strategy formulates a mixed-integer linear programming (MILP) problem over an adaptive prediction horizon, W dho i , which adjusts dynamically based on system states:
W dho i = min ( T EV - depart , W max ) , if EVs are connected , W base , otherwise ,
where T EV - depart is the earliest expected EV departure time, W max is the maximum allowable horizon, and W base is the default horizon for grid/DES-only optimization. This flexibility enables cost-efficient operation without relying on long-term, potentially unreliable forecasts.
The optimization proceeds in a receding-horizon manner. At each time step t i , the framework:
1.
Collects real-time measurements (DES output, EV connections, grid prices)
2.
Updates LSTM forecasts for load and generation
3.
Computes W dho i based on current EV/DES states
4.
Solves the MILP problem over the adaptive horizon
5.
Implements only the control action for t i
This iterative approach mitigates two critical microgrid challenges: (1) Peak-demand penalties are reduced by opportunistic EV discharging during high-price intervals (2) Renewable energy curtailment is minimized by redirecting excess generation to flexible EV loads
The framework’s novelty lies in the synergistic combination of:
  • Time-adaptive optimization: Horizon length is dynamically adjusted based on real-time EV/DES availability
  • Closed-loop forecasting: LSTM models are continuously updated with real-time measurements
  • MILP precision: Discrete EV charging decisions and grid constraints are accurately modeled
Simulation results in Section 8 demonstrate superior performance compared to conventional day-ahead and fixed-horizon MPC approaches, especially under high uncertainty scenarios.

3.2. Objective Function

The microgrid energy-management system aims to minimize the total operating cost, which comprises three components: net energy cost, peak-demand penalty, and battery-degradation cost. As shown in Figure 2, the optimization is performed over the adaptive DHO window W dho i at each time step i.
min C i obj = C i NEC + C i PDC + C i age

3.2.1. Net Energy Cost ( C i NEC )

This term accounts for energy exchanges with the grid, including EV charging costs, revenue from discharging to the grid, electricity import/export costs, and DES utilization. Dynamic pricing signals such as time-of-use ( C j ToU ) and system marginal prices ( C j SMP ) are considered:
C i NEC = j = i i + W i dho m = 1 N i EV C j ch S m , j r m , j ch P m ch , max + C j dis S m , j r m , j dis P m dis , max + j = i i + W i dho C j ToU P j grid , imp C j SMP P j grid , exp .

3.2.2. Peak Demand Cost ( C i PDC )

Designed to penalize net load exceeding a critical threshold P cri , this term encourages peak shaving via controlled EV discharging:
C i PDC = j = i i + W i dho C PC u ( P j NL P cri ) u ( P j NL P cri ) + r m , j ch P m ch , max r m , j dis P m dis , max ,
with the unit step function defined as
u ( x ) = 1 , x > 0 0 , x 0 .
Here, C PC is the penalty cost per unit power exceeding P cri , and P j NL is the net load at time j.

4. Constraints

To ensure reliable and feasible operation, the optimization is subject to several constraints. The fundamental constraint is the power balance at each time step j, ensuring that the total supply from the grid, EV discharging, and DES generation matches the demand from local loads, EV charging, and exported power. This is expressed as [36]:
P j grid , exp + m = 1 N i EV r m , j dis P m dis , max + P j DES = P j grid , imp , + P j L + m = 1 N i EV r m , j ch P m ch , max .
Grid import/export operations are mutually exclusive at any time step, enforced through a binary variable μ j grid that toggles between import and export modes. Additionally, the imported power must remain within the grid’s maximum capacity limits to ensure safe operation and prevent overload conditions:
P j grid , exp μ j grid P max grid , exp
      P j grid , imp ( 1 μ j grid ) P max grid , imp
  μ j grid = 1 , import 0 , export .
For each connected EV, only one action—charging, discharging, or idling—is permitted at any time. This is governed by a binary control variable κ j and corresponding constraints:
  0 r m , j ch κ j
      0 r m , j dis 1 κ j
                    κ j = 1 , charging 0 , discharging .
The state of charge (SoC) of each EV battery must remain within manufacturer-specified limits and meet user-defined minimum requirements by the time of departure:
        SoC m min SoC m , j SoC m max
SoC m , k SoC m req .
The SoC is dynamically updated over time based on the net energy exchanged, considering the efficiencies of the charging and discharging processes. The SoC of the m-th connected EV at time j is given by:
SoC m , j = SoC m , j 1 + η m ch P m , j ch Δ t E m cap P m , j dis Δ t η m dis E m cap .
This equation ensures that charging and discharging actions respect physical efficiency limits and keep the battery operating within safe thresholds, while also satisfying user mobility requirements by departure time.
By integrating these operational constraints with the cost-minimizing objective in Section 3, the proposed DHO-based optimization achieves both economic efficiency and operational reliability. The adaptive design enables the model to dynamically respond to variations in load forecasts, EV availability, and pricing signals.

5. Dynamic Horizon Optimization Framework for Microgrid Optimization Considering Dynamic EV Arrivals

Numerous studies have explored rolling horizon (RH) frameworks for online microgrid optimization [37]. Typically, these frameworks employ a fixed rolling horizon (FRH) with a predetermined window size, denoted as W FRH , but they do not fully consider the temporal flexibility provided by plug-in electric vehicles (EVs) acting as distributed energy resources (DERs).
While a fixed horizon enables periodic updates to system states, such as distributed energy source (DES) output forecasts, load predictions, and EV arrival/departure times, it has inherent limitations. For instance, if the connection duration of the m-th EV, denoted by N m conn , exceeds the FRH window size W t FRH , the optimization process cannot fully leverage the flexibility offered by the EV over its entire availability period.
Conversely, if N m conn < W t FRH , the problem dimension increases unnecessarily due to irrelevant time slots being considered, thereby leading to increased computational complexity.
To address these limitations, the proposed dynamic horizon optimization (DHO) framework dynamically adjusts the horizon size in response to the changing availability of EVs. In the DHO approach, the rolling window W t dho at each time step t is adapted based on the longest connection duration among all EVs currently connected to the EV charging station (EVCS).

5.1. Step 1: Connection Period Determination

At the current time step t, the system operator retrieves real-time information about the EVs connected to the EVCS, including their number, arrival times, and anticipated departure times. For the m-th EV, its connection period is defined as:
T m , t conn = [ t , t + N m conn ] , m = 1 , , N t EV ,
where N m conn is the number of time intervals that the m-th EV will remain connected at time t, and N t EV is the number of EVs currently connected.
Based on these connection periods, the DHO time window is defined as:
T t dho = [ t , t + W t dho ] ,
where the adaptive horizon size is:
W t dho = max 1 m N t EV N m conn .
If no EVs are connected at time t, the default DHO window is set to the minimum possible size:
T t dho = [ t , t + 1 ] , W t dho = 1 .

5.2. Step 2: Dynamic Update of DHO

At the next time step t + 1 , the system updates all EV information to reflect new arrivals or departures. The same procedure as in Step 1 is used to determine the new DHO window W t + 1 dho . This continuous update allows the scheduling algorithm to remain adaptive and responsive to changes in system state, thereby improving cost-effectiveness and utilization of flexible resources.

5.3. Illustrative Example

To illustrate the operation of the DHO mechanism, consider the following scenario:
  • At time t, one EV is connected with:
    T 1 , t conn = [ t , t + 6 ] , N 1 conn = 6 .
    Then:
    T t dho = [ t , t + 6 ] , W t dho = 6 .
  • At time t + 1 , a second EV arrives. The updated connection durations are:
    N 1 conn = 7 , N 2 conn = 5 .
    So:
    W t + 1 dho = max { 7 , 5 } = 7 , T t + 1 dho = [ t + 1 , t + 8 ] .
  • At time t + 2 , a third EV joins with:
    N 3 conn = 8 .
    Hence:
    W t + 2 dho = max { N 1 conn , N 2 conn , N 3 conn } = 8 .
    T t + 2 dho = [ t + 2 , t + 10 ] .
As shown in Figure 3, the DHO window adapts over time—from 6 intervals at time t, to 7 at t + 1 , and 8 at t + 2 —ensuring that all connected EVs are effectively integrated into the optimization framework.

6. Adaptive Electricity Pricing Model for PEVs in Microgrids

The adaptive pricing framework aims to optimize electricity price signals for PEVs, specifically, the charging price C ch ( t ) and discharging price C dis ( t ) , to minimize the total operational cost of the microgrid over a scheduling horizon [ 0 , T ] . This cost includes the energy procurement cost from the external grid and the compensation paid to PEV owners for participating in grid services.
Unlike conventional ToU-based approaches, the proposed model is co-optimized with the DHO scheduling strategy. This tight integration ensures that dynamic EV availability directly influences price adaptation, which has not been explicitly addressed in prior adaptive/rolling-horizon studies such as [37].
The objective function is formulated as:
min C ch ( t ) , C dis ( t ) 0 T C grid ( t ) + C PEV ( t ) d t ,
where C grid ( t ) is the real-time cost of purchasing electricity from the utility grid, and C PEV ( t ) represents the total compensation paid to PEV owners for charging and discharging services.
The grid procurement cost at time t is:
C grid ( t ) = C ToU ( t ) · P grid ( t ) ,
where C ToU ( t ) is the time-of-use (ToU) tariff set by the utility, and P grid ( t ) is the power imported from the grid.
The compensation to PEVs is:
C PEV ( t ) = C ch ( t ) · P ch ( t ) C dis ( t ) · P dis ( t ) ,
where P ch ( t ) and P dis ( t ) are the aggregate charging and discharging powers of PEVs at time t.

6.1. Dynamic Pricing Model Based on Operational Modes

6.1.1. Normal Operation Mode

When the net load satisfies P NL ( t ) P cri , where P cri is the microgrid’s critical import threshold, the system operates under normal conditions. The PEV charging and discharging prices follow the ToU tariff:
C ch ( t ) = C ToU ( t ) , C dis ( t ) = C ToU ( t ) .
In simulations, P cri was set to 80% of the feeder’s rated import limit, consistent with [37].

6.1.2. Peak-Demand Mode

When P NL ( t ) > P cri , the system enters peak-demand mode to reduce grid stress. The adaptive pricing model imposes a penalty ϕ for charging and an incentive ψ for discharging:
C ch ( t ) = C ToU ( t ) + ϕ , C dis ( t ) = C ToU ( t ) + ψ ,
where ϕ and ψ are operator-defined coefficients based on market signals and system needs.
For reproducibility, this study uses ϕ = 0.1 CNY/kWh and ψ = 0.2 CNY/kWh, calibrated through sensitivity analysis. These values reflect realistic penalty/incentive margins in the Chinese ancillary services market, ensuring that V2G participation remains profitable despite battery aging costs.

6.1.3. High Renewable-Generation Mode

When the output from distributed energy resources (DERs), denoted P DER ( t ) , exceeds demand, the system encourages PEV charging to absorb surplus energy. The adaptive prices are:
C ch ( t ) = min C SMP ( t ) , C SMP ( t ) + C ToU ( t ) 2 ,
C dis ( t ) = min C SMP ( t ) , C ToU ( t ) ,
where C SMP ( t ) is the system marginal price (SMP).
This ensures that charging incentives are always bounded by market-clearing prices, thus avoiding arbitrage anomalies. For case studies, SMP values were drawn from the Guangdong day-ahead market (ranging 0.25–0.65 CNY/kWh). Sensitivity of results to SMP fluctuations is quantified in Appendix A.2.
Overall, the novelty of this pricing model lies in: (i) the explicit integration with the DHO window, enabling horizon-aware pricing, and (ii) the parameterized structure ( ϕ , ψ , P cri , SMP bounds) that facilitates reproducibility and benchmarking against ToU-only schemes and advanced DRL-based policies.

7. Impact of Forecast Errors and Model Comparison

The accuracy of forecasts, particularly for distributed energy generation (DES), electric vehicle (EV) behavior, and grid prices, plays a critical role in the performance of microgrid-optimization systems. In this section, we compare the forecasting performance of different models and quantify the impact of forecast errors on system performance.

7.1. Comparison of Forecasting Models

Table 4 presents a comparison of the forecasting models used in this study, including persistence, ARIMA, and the proposed LSTM model. The comparison is based on two widely used point-error metrics: Root Mean Square Error (RMSE) and Mean Absolute Error (MAE).

7.2. Impact of Forecast Errors on System Performance

Forecast errors, especially in DES generation (e.g., PV and wind) and EV behavior (e.g., arrival and departure times), can significantly affect the microgrid optimization. Below we summarize the key impacts and quantify them based on sensitivity analysis of the forecasting models.

7.2.1. Net Energy Cost (NEC)

Forecast errors in DES generation and EV charging/discharging behavior lead to suboptimal energy trading decisions. An overestimate or underestimate of generation or load results in higher grid energy imports or exports, increasing operating costs.
Quantitative Effect: Small forecast errors (e.g., 2–5%) in DES generation or EV scheduling can lead to an increase of 2–5% in the net energy cost (NEC), primarily due to over-reliance on grid energy during low DES output periods.

7.2.2. Peak Demand Cost (PDC)

Errors in forecasting EV arrivals and departures lead to inaccurate peak-demand predictions. An overestimate of EV availability may prevent sufficient discharging during peak demand periods, resulting in higher penalties.
Quantitative Effect: Forecast errors in EV behavior (e.g., 10–15%) can increase peak demand penalties by 3–7%, particularly during high-price intervals.

7.2.3. Battery-Degradation Cost

Inaccurate forecasts of EV charging/discharging schedules cause inefficient battery usage, increasing degradation. Charging or discharging when not optimal leads to faster wear and tear.
Quantitative Effect: Forecast errors in EV state-of-charge (SoC) predictions can increase battery-degradation costs by 5–10% due to unnecessary or inefficient charging cycles.

7.2.4. Renewable Energy Curtailment

Overestimation of renewable generation can result in excess energy that cannot be properly stored or used, leading to unnecessary curtailment, especially in high-penetration renewable systems.
Quantitative Effect: Overestimation of renewable generation by 5–10% can lead to a 20% increase in curtailment, depending on the flexibility of the system’s storage and load.

7.2.5. System Stability

Continuous forecasting errors may degrade the optimization process’s stability, as the system fails to adapt adequately to real-time changes in renewable generation and load conditions.
Quantitative Effect: Forecast errors increase the risk of violating operational constraints (e.g., SoC limits, grid capacity), which may cause up to 10% degradation in system performance.

7.3. Forecast Error Propagation and Sensitivity Analysis

Forecast errors in one component (e.g., DES generation) can propagate and impact other parts of the system, such as EV scheduling, energy costs, and grid interactions. Larger forecast errors introduce higher uncertainty, forcing the optimization algorithm to adopt conservative strategies that increase operational costs (e.g., more grid imports, unnecessary energy storage).
We performed a sensitivity analysis to assess how various levels of forecast errors (e.g., 5–15% in DES generation or EV behavior) degrade the system’s overall performance. The results showed that forecast inaccuracies lead to up to 15% higher operating costs, primarily due to suboptimal energy scheduling, higher peak demand penalties, and inefficient battery utilization.
The dynamic horizon optimization (DHO) approach is designed to adapt to real-time updates, including forecasts of DES generation, EV arrivals, and grid prices. However, as demonstrated, forecast errors can still negatively affect the system’s performance. The LSTM-based forecasting model outperforms simpler models like persistence and ARIMA in capturing nonlinear dynamics and adapting to changing conditions. Nonetheless, minimizing forecast errors remains crucial for improving the accuracy and cost-effectiveness of the optimization process [38,39].

7.4. Error Plot: Predicted vs. Actual Values

We present the error plot (Figure 4), comparing the predicted and actual values for the NREL dataset. The plot below illustrates how closely the predicted values match the actual data, and it highlights the error between them.
In addition to the error plots, we have included the following quantitative metrics to validate the effectiveness of our forecasting module:
  • Normalized Root Mean Square Error (nRMSE): This metric normalizes the RMSE by dividing it by the range of the observed data. It provides a standardized measure of forecasting accuracy across different datasets.
  • Kolmogorov-Smirnov (KS) Test: The KS test is used to compare the distribution of the forecasted values with the observed data, assessing the goodness of fit.
Table 5 presents the results of the nRMSE and KS test for both the training and testing phases of the LSTM model on the NREL dataset.
These quantitative metrics demonstrate the high forecasting accuracy of our LSTM-based model. The nRMSE value indicates a relatively low error compared to the data range, while the KS test statistic suggests that the forecasted values closely match the observed data distribution.

8. Case Study and Performance Evaluation

This section presents a comprehensive case study assessing the performance of the proposed dynamic horizon optimization (DHO) and adaptive pricing model in a microgrid integrated with PV and wind energy sources. As shown in Figure 1, the microgrid comprises four vehicle-to-grid enabled charging stations, each supporting a heterogeneous fleet of PEVs with different power ratings and battery capacities (see Table 6). The renewable energy mix includes PV panels and wind turbines with the following specifications: the wind turbines have a rated power of 50 KW, a rated wind speed of 12 m/s, a cut-in wind speed of 3 m/s, and a cut-out wind speed of 25 m/s.
To demonstrate the effectiveness of our approach, we compare the proposed method against a conventional rolling horizon MPC framework and a scenario-based Stochastic MPC (SMPC) baseline. While more advanced baselines such as deep reinforcement learning (DRL) or other complex methods exist, these are typically computationally intensive and less practical for day-ahead market participation in microgrids with limited computing resources [11]. We therefore focus on MPC as a practical baseline but include a discussion in Appendix A highlighting scalability considerations relative to DRL and acknowledge the comparison to DRL as important future work.
The critical peak demand threshold L peak crit is set at 150 k W , corresponding to the lowest observed historical monthly peak load. This value was validated by sensitivity analysis across 12 months of data to ensure robustness. The penalty ( ϕ = 0.1 CNY/kWh) and incentive ( ψ = 0.2 CNY/kWh) parameters in the adaptive pricing model were tuned such that PEV charging is discouraged during grid stress events while still ensuring net profitability for EV owners.

8.1. Comparative Analysis with Stochastic MPC

We implemented a scenario-based Stochastic MPC (SMPC) baseline that explicitly accounts for forecast uncertainty through multiple generation and demand scenarios. The SMPC achieves slightly better cost performance (2–3% improvement) in high-uncertainty conditions due to its scenario-based robustness, it requires 3.5x more computation time than our proposed DHO framework. This demonstrates the practical value of our approach: the DHO provides a favorable trade-off, achieving 85–90% of the economic benefits of SMPC with significantly lower computational burden, making it more suitable for real-time applications with limited computing resources.

8.2. Utility Pricing and Adaptive EV Pricing Strategy

The pricing strategy is foundational to the MG-EMS operation. During off-peak hours (23:00–07:00), when electricity prices are lowest, the system prioritizes charging. Conversely, during on-peak periods (11:00–17:00), with the highest rates, discharging is encouraged to reduce grid burden. Mid-peak intervals use moderate pricing to maintain operational flexibility. The specific Time-of-Use (ToU) rates for summer and winter are detailed in Table 7.
Figure 5 presents a comprehensive view of the 24-h forecast of load demand, renewable generation, and electricity pricing schemes. Photovoltaic output peaks around midday, while wind power exhibits stochastic fluctuations. The proposed adaptive pricing algorithm dynamically adjusts the real-time charging C ch ( t ) and discharging C dis ( t ) prices in response to these net load conditions, lowering prices to encourage charging during renewable abundance and increasing them to incentivize V2G discharge during high demand.
The figure also compares the utility-defined System Marginal Price (SMP), which varies continuously between 0.26 and 0.63 CNY/kWh, against the stepwise ToU tariffs. Table 8 further contrasts the price ranges for both ToU and the proposed adaptive model across seasons. Our model offers finer granularity, with EV charging costs ranging from 0.6 to 1.2 CNY/kWh and discharging prices from 0.8 to 1.5 CNY/kWh, providing stronger financial incentives for grid-supportive behavior.

8.3. PEV Scheduling and State-of-Charge Results

The core of the DHO strategy’s effectiveness is demonstrated in the scheduling of individual PEVs. Figure 6, Figure 7, Figure 8 and Figure 9 illustrate the adaptive scheduling and state-of-charge (SoC) evolution for EVs across all four stations, comparing the baseline against the DHO-based strategy.
The results, summarized in Table 9, show a consistent and significant improvement in final SoC achieved through DHO optimization. For instance:
  • At EVCS#1, EV1’s SoC increased from 50% (baseline) to 55% (DHO).
  • At EVCS#2, EV2 reached 70% SoC with DHO, outperforming the 65% baseline.
  • Similar gains of 4% to 6% were observed across EVs at EVCS#3 and EVCS#4.
This uniform improvement is a direct result of the DHO framework’s ability to coordinate high-power charging strategies adaptively during optimal periods, ensuring higher energy delivery to each vehicle.

8.4. Performance Metrics and Cost–Benefit Analysis

The improvements in scheduling directly translate to superior system-wide performance and economic gains. Table 10 summarizes the key high-level metrics, showing effective peak load regulation and high utilization rates for renewables and PEVs.
A detailed cost-benefit analysis, presented in Table 11, reveals the stark economic advantage of the DHO approach. It achieved a reduction in total charging cost from 8.74 CNY to 7.64 CNY and a lower average cost per kWh. The strategy also generated 1.15 CNY in V2G discharging revenue, leading to a net economic gain equivalent to a 12.6% cost reduction. Furthermore, the final average SoC across the fleet improved from 74% to 86.5%.
A more granular cost–benefit breakdown over a 7-day horizon showed that V2G discharging generated 1320 CNY in revenue, while the modeled battery-degradation cost (using the semi-empirical model from [15]) was 820 CNY, yielding a net benefit of 500 CNY. This supports our claim that V2G revenues can outweigh degradation costs under the proposed adaptive pricing+DHO framework. Sensitivity analysis confirmed this finding for battery-degradation coefficients varying ±20%.
The strategy’s benefits extend beyond economics:
  • Emissions: A 6.2 % reduction in net CO2 emissions was achieved by shifting demand to periods of high renewable generation.
  • Grid Stability: As shown in Figure 10, the DHO strategy reduced peak demand from 170 kW (baseline) to 130 kW, effectively eliminating grid stress during critical periods.
  • Battery Health: The DHO’s constraints on depth-of-discharge and SoC cycling minimized degradation. The slight increase in wear cost ( 0.03 CNY) was vastly outweighed by V2G revenue.

8.5. Computational Performance and Scalability

A critical advantage of the proposed DHO is its computational efficiency, which is essential for real-world deployment. Implemented in Gurobi [40], the MILP formulation was solved on a standard workstation. For a 24-h horizon with 96 time steps, the average solver time was 18.4 s per scheduling window, which is practical for real-time operation.
To rigorously test scalability, we benchmarked the DHO against conventional fixed-horizon MPC and a Rule-Based strategy across microgrids of varying sizes (10 to 200 PEVs). The results, detailed in Table A1 in Appendix A, demonstrate that the DHO reduces computation time by 45–55% while simultaneously improving solution quality (cost and peak demand reduction) as the system scales. This performance advantage is a key differentiator from more computationally intensive methods like DRL.
However, we acknowledge that these scalability tests use simulated loads and stylized arrival patterns, and the absence of network constraints (voltage, transformer capacity, feeder limits) represents a significant limitation. Our results should therefore be interpreted as demonstrating computational scalability rather than immediate real-world applicability, which requires incorporating these constraints in future work.

8.6. Comparative Analysis of Pricing Strategies

To empirically validate the performance of the proposed adaptive pricing strategy, a comparative analysis was conducted against two benchmark schemes:
  • Standard Real-Time Pricing (RTP): This benchmark reflects a common market-based approach where PEVs pay or are paid the actual system marginal price (SMP) at each time interval, i.e., C ch ( t ) = C dis ( t ) = C SMP ( t ) . This represents a principled, market-driven baseline.
  • Fixed Premium/Discount Pricing: This simpler heuristic charges a fixed premium of 0.15 CNY/kWh over the ToU tariff for charging and offers a fixed discount of 0.10 CNY/kWh from the ToU tariff for discharging, regardless of system conditions. This tests whether conditional adjustments based on system state provide tangible benefits.
The proposed DHO framework was simulated under identical microgrid and EV fleet conditions using all three pricing strategies. The key economic and operational performance metrics are summarized in Table 12 and visualized in Figure 11.
The results, as shown in Figure 11, demonstrate the practical value of the proposed conditional pricing strategy. While the RTP benchmark benefits from direct market price signals, it results in the highest operational costs (+8.9% vs proposed) and peak demand (+11.5% vs proposed) due to the absence of explicit grid-supportive incentives. The Fixed Premium approach reduces costs but proves suboptimal, generating 5.8% less V2G revenue and causing 10.5% higher battery degradation than the proposed method due to its inflexible incentives.
Our proposed method achieves the best balance across all metrics, reducing total costs by 8.2% versus RTP and 2.8% versus Fixed Premium pricing. More importantly, it demonstrates how simple conditional logic—dynamically coupling price signals with real-time grid constraints—can yield significant benefits: discouraging consumption during peak periods ( P NL ( t ) > P cri ) while encouraging V2G discharge and renewable absorption during surplus conditions ( P DER ( t ) > P L ( t ) ).
This analysis confirms that while not a full market design optimization, the proposed transparent pricing heuristic provides measurable economic and operational benefits over common alternatives. This positions it as a valuable contribution for practical implementations where computational tractability and operational simplicity are prioritized alongside performance.

9. Conclusions

This paper has presented a dynamic horizon optimization (DHO) framework with adaptive pricing for real-time energy management in renewable-powered microgrids. The proposed strategy dynamically adjusts control horizons based on EV connection patterns and system states, while a heuristic pricing mechanism couples time-of-use tariffs with system marginal prices to incentivize vehicle-to-grid (V2G) operations.
Simulation results demonstrate the operational effectiveness of the approach, showing a 23.5% reduction in peak load, 12.6% lower charging costs, and a 12.5% increase in average final State of Charge. The framework also achieves a 6.2% reduction in carbon emissions while incorporating battery-degradation constraints. The results suggest a potential trend toward reduced battery degradation under the applied semi-empirical model, though these specific longevity benefits require experimental validation.

10. Future Work

We emphasize that our study has several important limitations that should be addressed in future work. The scalability analysis uses simulated data and stylized patterns rather than real-world datasets, and the absence of network constraints (voltage regulation, transformer loading, feeder capacity) represents a significant simplification. Our claims of “real-world applicability” are therefore tempered, and we position this work primarily as a proof-of-concept demonstrating the potential of the DHO methodology.
The study positions the DHO framework as a practical alternative to more complex methods like deep reinforcement learning or bilevel optimization, particularly for implementations where computational tractability and interpretability are prioritized. Future work will focus on: (1) enhancing the pricing mechanism through stochastic optimization techniques to better handle forecast uncertainties; (2) experimental validation of the battery-degradation model against laboratory cycling tests; (3) expanding the framework to multi-node distributed energy systems; (4) incorporating network constraints including voltage stability and feeder capacity limits; and (5) incorporating robust cybersecurity measures for V2G infrastructure protection.

Author Contributions

Conceptualization, M.H. and J.Z.; Methodology, M.H.; Validation, Q.T. and Q.H.; Formal Analysis, M.H. and Q.T.; Investigation, Q.H.; Resources, J.Z.; Data Curation, Q.T.; Writing—Original Draft Preparation, M.H.; Writing—Review & Editing, J.Z. and Q.H.; Visualization, Q.T.; Supervision, J.Z.; Project Administration, J.Z.; Funding Acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

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

Conflicts of Interest

Junyi Zheng and Muhammad Humayun are employees of Wanbang Digital Energy Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Appendix A. Scalability and Practical Feasibility

This appendix provides extended analysis on the scalability and robustness of the proposed DHO framework, supporting the claims in the main text.

Appendix A.1. Comprehensive Scalability Analysis

Table A1 presents the full results of the computational benchmarking analysis. The DHO’s adaptive horizon mechanism consistently outperforms a fixed-horizon RH-MPC approach. However, we note that these tests use simulated loads and stylized arrival patterns, and the discussed “linear scaling” characteristics should be validated against real-world datasets in future work.
Table A1. Computational benchmarking and scalability analysis.
Table A1. Computational benchmarking and scalability analysis.
ScaleAvg. No. of PEVsStrategyAvg. Solve Time (s)Total Cost Reduction vs. RB (%)Peak Demand Reduction vs. RB (%)Final Avg. SoC (%)
Small10RH-MPC2.358.219.192.5
DHO1.2810.121.74.8
Medium50RH-MPC9.8411.521.391.7
DHO4.7614.224.593.5
Large200RH-MPC42.7712.822.190.2
DHO19.657.125.92.1

Appendix A.2. Robustness and Model Validation

Parameter Sensitivity: The model’s performance was tested under significant uncertainty: ±20% variation in electricity prices and ±30% variation in EV arrival rates. The DHO strategy maintained cost reduction performance within a ±5% band against price volatility and kept total operating cost deviation below 7% under fluctuating demand, confirming its operational robustness.
Forecast Uncertainty: The renewable forecasting module, an LSTM network, achieved a nMAE of 4.2% and RMSE of 0.032 on a held-out test set using historical data [41]. A comparison against persistence and ARIMA baselines in Section 3.2, showing our model’s superior performance. The DHO framework incorporates these expected errors via a conservative uncertainty bound within its rolling optimization.
Degradation Model Validation and Sensitivity: A Global Sensitivity Analysis (GSA) using the Morris method was performed on the battery-degradation model [23]. The GSA confirmed that the model output is most sensitive to the amplitude of the SoC swing (Depth-of-Discharge) and the average SoC, which aligns with established electrochemical principles. The model parameters were calibrated using experimental data from literature sources [15,16], ensuring the cost function C deg is grounded in empirical research.
However, the results of the sensitivity analysis also indicate that the estimated battery life extension and net monetary gains are highly sensitive to the chosen degradation coefficients (notably K DoD , Z, and E a ). This underscores the importance of accurate parameterization and the inherent uncertainty in semi-empirical modeling. Therefore, while the model is useful for comparative analysis between scheduling strategies, the quantitative longevity benefits reported in Section 8 should be interpreted as indicative trends under the assumed model parameters, rather than definitive predictions.

Appendix A.3. Path to Practical Deployment

The MILP structure of the DHO framework is inherently extensible to incorporate linearized power flow constraints for voltage and feeder management, a focus of ongoing work. The computational performance demonstrated herein provides strong confidence for real-time implementation. Our immediate future work involves deploying the algorithm on a real-time control platform (e.g., OPAL-RT) to manage a campus microgrid testbed, validating the model against physical hardware and real-world communication networks.

References

  1. Manzolini, G.; Fusco, A.; Gioffrè, D.; Matrone, S.; Ramaschi, R.; Saleptsis, M.; Simonetti, R.; Sobic, F.; Wood, M.J.; Ogliari, E.; et al. Impact of PV and EV Forecasting in the Operation of a Microgrid. Forecasting 2024, 6, 591–615. [Google Scholar] [CrossRef]
  2. Roaid, M.; Ashfaq, T.; Mumtaz, S.; Albogamy, F.R.; Ahmad, S.; Ullah, B. Energy Management System and Control of Plug-in Hybrid Electric Vehicle Charging Stations in a Grid-Connected Microgrid. Sustainability 2024, 16, 9122. [Google Scholar] [CrossRef]
  3. Toledo-Pérez, M.D.C.; Vargas-Méndez, R.A.; Claudio-Sánchez, A.; Osorio-Gordillo, G.L.; Vela-Valdés, L.G.; González-Flores, J.Á.; Rodríguez-Benítez, O. General Approach to Electrical Microgrids: Optimization, Efficiency, and Reliability. Electricity 2025, 6, 12. [Google Scholar] [CrossRef]
  4. Cagnano, A. Can Integrating SoC Management in Economic Dispatch Enhance Real-Time Operation of a Microgrid. Energies 2025, 18, 1802. [Google Scholar] [CrossRef]
  5. Niccolai, A.; Trimarchi, S.; Barbazza, L.F.; Gandelli, A.; Zich, R.; Grimaccia, F.; Leva, S. Effective Customization of Evolutionary Algorithm-Based Energy Management System Optimization for Improved Battery Management in Microgrids. Energies 2025, 18, 2384. [Google Scholar] [CrossRef]
  6. Esparza, A.; Blondin, M.; Trovão, J.P.F. A Review of Optimization Strategies for Energy Management in Microgrids. Energies 2025, 18, 3245. [Google Scholar] [CrossRef]
  7. Tan, X.; Li, Q.; Wang, H. Advances and trends of energy storage technology in microgrid. Int. J. Electr. Power Energy Syst. 2013, 44, 179–191. [Google Scholar] [CrossRef]
  8. Hussain, S.; Irshad, R.R.; Pallonetto, F.; Jan, Q.; Shukla, S.; Thakur, S.; Breslin, J.G.; Kim, Y.S.; Rathore, M.A.; El-Sayed, H. Enhancing the efficiency of electric vehicles charging stations based on novel fuzzy integer linear programming. IEEE Trans. Intell. Transp. Syst. 2023, 24, 9150–9164. [Google Scholar] [CrossRef]
  9. Hussain, S.; Kim, Y.-S.; Thakur, S.; Breslin, J.G. Optimization of waiting time for electric vehicles using a fuzzy inference system. IEEE Trans. Intell. Transp. Syst. 2022, 23, 15396–15407. [Google Scholar] [CrossRef]
  10. Husein, M.; Chung, I.-Y. Day-ahead solar irradiance forecasting for microgrids using a long short-term memory recurrent neural network: A deep learning approach. Energies 2019, 12, 1856. [Google Scholar] [CrossRef]
  11. Zafar, R.; Vu, B.H.; Husein, M.; Chung, I.-Y. Day-ahead solar irradiance forecasting using hybrid recurrent neural network with weather classification for power system scheduling. Appl. Sci. 2019, 11, 6738. [Google Scholar] [CrossRef]
  12. Amicarelli, E.; Tran, T.; Bacha, S. Optimization algorithm for microgrids day-ahead scheduling and aggregator proposal. In Proceedings of the 2017 IEEE International Conference on Environment and Electrical Engineering and 2017 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Milan, Italy, 6–9 June 2017; pp. 1–6. [Google Scholar] [CrossRef]
  13. Vosoogh, M.; Rashidinejad, M.; Abdollahi, A.; Ghaseminezhad, M. An intelligent day ahead energy management framework for networked microgrids considering high penetration of electric vehicles. IEEE Trans. Ind. Inform. 2021, 17, 667–677. [Google Scholar] [CrossRef]
  14. Trinh, P.-H.; Chung, I.-Y. Optimal control strategy for distributed energy resources in a dc microgrid for energy cost reduction and voltage regulation. Energies 2021, 14, 992. [Google Scholar] [CrossRef]
  15. Lam, L.; Bauer, P. Practical capacity fading model for li-ion battery cells in electric vehicles. IEEE Trans. Power Electron. 2013, 28, 5910–5918. [Google Scholar] [CrossRef]
  16. Xu, B.; Oudalov, A.; Ulbig, A.; Andersson, G.; Kirschen, D.S. Modeling of lithium-ion battery degradation for cell life assessment. IEEE Trans. Smart Grid 2018, 9, 1131–1140. [Google Scholar] [CrossRef]
  17. Guha, A.; Patra, A. State of health estimation of lithium-ion batteries using capacity fade and internal resistance growth models. IEEE Trans. Transp. Electrif. 2018, 4, 135–146. [Google Scholar] [CrossRef]
  18. Farzin, H.; Fotuhi-Firuzabad, M.; Moeini-Aghtaie, M. A practical scheme to involve degradation cost of lithium-ion batteries in vehicle-to-grid applications. IEEE Trans. Sustain. Energy 2016, 7, 1730–1738. [Google Scholar] [CrossRef]
  19. Babin, A.; Rizoug, N.; Mesbahi, T.; Boscher, D.; Hamdoun, Z.; Larouci, C. Total cost of ownership improvement of commercial electric vehicles using battery sizing and intelligent charge method. IEEE Trans. Ind. Appl. 2018, 54, 1691–1700. [Google Scholar] [CrossRef]
  20. Jafari, M.; Gauchia, A.; Zhao, S.; Zhang, K.; Gauchia, L. Electric vehicle battery cycle aging evaluation in real-world daily driving and vehicle-to-grid services. IEEE Trans. Transp. Electrif. 2018, 4, 122–134. [Google Scholar] [CrossRef]
  21. Liu, K.; Zou, C.; Li, K.; Wik, T. Charging pattern optimization for lithium-ion batteries with an electrothermal-aging model. IEEE Trans. Ind. Inform. 2018, 14, 5463–5474. [Google Scholar] [CrossRef]
  22. Hoke, A.; Brissette, A.; Smith, K.; Pratt, A.; Maksimovic, D. Accounting for lithium-ion battery degradation in electric vehicle charging optimization. IEEE J. Emerg. Sel. Top. Power Electron. 2014, 2, 691–700. [Google Scholar] [CrossRef]
  23. Wang, J.; Liu, P.; Hicks-Garner, J.; Sherman, E.; Soukiazian, S.; Verbrugge, M.; Tataria, H.; Musser, J.; Finamore, P. Cycle-life model for graphite-lifepo4 cells. J. Power Sources 2011, 196, 3942–3948. [Google Scholar] [CrossRef]
  24. Suri, G.; Onori, S. A control-oriented cycle-life model for hybrid electric vehicle lithium-ion batteries. Energy 2016, 96, 644–653. [Google Scholar] [CrossRef]
  25. Groot, J. State-of-Health Estimation of Li-Ion Batteries: Cycle Life Test Methods. Ph.D. Dissertation, Chalmers University of Technology, Gothenburg, Sweden, 2012. [Google Scholar]
  26. Spagnol, P.; Onori, S.; Madella, N.; Guezennec, Y.; Neal, J. Aging and characterization of li-ion batteries in a hev application for lifetime estimation. In Proceedings of the 6th IFAC Symposium on Advances in Automotive Control, Munich, Germany, 2–14 July 2010; Volume 43, pp. 186–191. [Google Scholar] [CrossRef]
  27. Ebrahimi, M.; Rastegar, M.; Mohammadi, M.; Palomino, A.; Parvania, M. Stochastic charging optimization of V2G-capable PEVs: A comprehensive model for battery aging and customer service quality. IEEE Trans. Transp. Electrif. 2020, 6, 1026–1034. [Google Scholar] [CrossRef]
  28. Trinh, P.; Zafar, R.; Chung, I.Y. Optimal PEV charging and discharging algorithms to reduce operational cost of microgrid using adaptive rolling horizon framework. IEEE Access 2023, 11, 133668–133680. [Google Scholar] [CrossRef]
  29. Onishi, V.; Antunes, C.H.; Trovão, J. Optimal energy and reserve market management in renewable microgrid-PEVs parking lot systems: V2G, demand response and sustainability costs. Energies 2020, 13, 1884. [Google Scholar] [CrossRef]
  30. Rezaeimozafar, M.; Eskandari, M.; Savkin, A. A self-optimizing scheduling model for large-scale EV fleets in microgrids. IEEE Trans. Ind. Inform. 2021, 17, 8177–8188. [Google Scholar] [CrossRef]
  31. Kou, P.; Yutao, F.; Liang, D.; Gao, L. A model predictive control approach for matching uncertain wind generation with PEV charging demand in a microgrid. Int. J. Electr. Power Energy Syst. 2019, 113, 672–680. [Google Scholar] [CrossRef]
  32. Javor, D.; Raicevic, N.; Klimenta, D.; Janjic, A. Multi-criteria optimization of vehicle-to-grid service to minimize battery degradation and electricity costs. Elektron. Elektrotechnika 2022, 28, 24–29. [Google Scholar] [CrossRef]
  33. Sharma, S.; Ali, I. Optimized electric vehicle charging and discharging with sporadic renewable energy source. In Proceedings of the 2023 International Conference on Power, Instrumentation, Energy and Control (PIECON), Aligarh, India, 10–12 February 2023; pp. 1–6. [Google Scholar] [CrossRef]
  34. Farinis, G.K.; Kanellos, F.D. Integrated energy management system for microgrids of building prosumers. Electr. Power Syst. Res. 2021, 198, 107357. [Google Scholar] [CrossRef]
  35. Hussain, A.; Luo, Y.; Li, T.; Zhang, H.; Mirza, S.; Zhang, H.; Li, X. Stop Four Gaps with One Bush: Versatile Hierarchical Polybenzimidazole Nanoporous Membrane for Highly Durable Li–S Battery. ACS Appl. Mater. Interfaces 2020, 12, 55809–55819. [Google Scholar] [CrossRef] [PubMed]
  36. Xiao, Z.; Li, H.; Zhu, T.; Li, H. Day-ahead optimal scheduling strategy of microgrid with evs charging station. In Proceedings of the 2019 IEEE 10th International Symposium on Power Electronics for Distributed Generation Systems (PEDG), Xi’an, China, 3–6 June 2019; pp. 774–780. [Google Scholar] [CrossRef]
  37. Su, J.; Lie, T.T.; Zamora, R. A rolling horizon scheduling of aggregated electric vehicles charging under the electricity exchange market. Appl. Energy 2020, 275, 115406. [Google Scholar] [CrossRef]
  38. Owais, M.; Moussa, G.S. Global sensitivity analysis for studying hot-mix asphalt dynamic modulus parameters. Constr. Build. Mater. 2024, 413, 134775. [Google Scholar] [CrossRef]
  39. Idriss, L.K.; Owais, M. Global sensitivity analysis for seismic performance of shear wall with high-strength steel bars and recycled aggregate concrete. Constr. Build. Mater. 2024, 411, 134498. [Google Scholar] [CrossRef]
  40. Gurobi Optimization, LLC. Gurobi Optimizer. Available online: https://www.gurobi.com (accessed on 24 July 2025).
  41. NREL. National Renewable Energy Laboratory Data Catalog. Available online: https://data.nrel.gov (accessed on 24 July 2025).
Figure 1. Energy-exchange model of the microgrid with EVCS.
Figure 1. Energy-exchange model of the microgrid with EVCS.
Wevj 16 00615 g001
Figure 2. Flowchart of the real-time decision-making process of the proposed DHO framework.
Figure 2. Flowchart of the real-time decision-making process of the proposed DHO framework.
Wevj 16 00615 g002
Figure 3. Real-time decision-making process of the proposed dynamic horizon optimization (DHO) framework, illustrating the variable-horizon windows and evolving future periods across time steps.
Figure 3. Real-time decision-making process of the proposed dynamic horizon optimization (DHO) framework, illustrating the variable-horizon windows and evolving future periods across time steps.
Wevj 16 00615 g003
Figure 4. Error plot: predicted vs. actual values for NREL dataset.
Figure 4. Error plot: predicted vs. actual values for NREL dataset.
Wevj 16 00615 g004
Figure 5. Dynamic pricing model for EV charging/discharging.
Figure 5. Dynamic pricing model for EV charging/discharging.
Wevj 16 00615 g005
Figure 6. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#1.
Figure 6. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#1.
Wevj 16 00615 g006
Figure 7. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#2.
Figure 7. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#2.
Wevj 16 00615 g007
Figure 8. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#3.
Figure 8. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#3.
Wevj 16 00615 g008
Figure 9. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#4.
Figure 9. Comparison of EVCS scheduling and SoC using proposed DHO and conventional methods for EVCS#4.
Wevj 16 00615 g009
Figure 10. Comparison of grid power scheduling showing (a) conventional method peak demand at 16:00 versus (b) proposed method peak shaving and EV discharging benefits.
Figure 10. Comparison of grid power scheduling showing (a) conventional method peak demand at 16:00 versus (b) proposed method peak shaving and EV discharging benefits.
Wevj 16 00615 g010
Figure 11. Quantitative performance comparison of MPC strategies. Values are normalized to Fixed-Horizon MPC (FH-MPC) baseline. Lower values indicate better performance for all metrics (peak demand shown as 1-reduction). The proposed DHO framework achieves superior economic performance while maintaining computational efficiency.
Figure 11. Quantitative performance comparison of MPC strategies. Values are normalized to Fixed-Horizon MPC (FH-MPC) baseline. Lower values indicate better performance for all metrics (peak demand shown as 1-reduction). The proposed DHO framework achieves superior economic performance while maintaining computational efficiency.
Wevj 16 00615 g011
Table 1. Comparative analysis of MPC strategies for microgrid energy management with V2G Integration.
Table 1. Comparative analysis of MPC strategies for microgrid energy management with V2G Integration.
FeatureFixed-Horizon MPC (FH-MPC)Adaptive Horizon MPC (AH-MPC)Proposed DHO Framework
Prediction HorizonStatic, fixed window sizeDynamically adjusts based on EV arrival/departure eventsAdapts based on EV connectivity + real-time economic and degradation state
Primary Trigger MechanismTime-based (periodic updates)EV connection and disconnection eventsMulti-faceted: EV events + grid price signals + battery health status
Core Optimization ObjectiveReference tracking + operational cost minimizationCost minimization with computational efficiencyMulti-objective: cost + degradation minimization with computational optimization
Battery Health ConsiderationTypically simplified or neglected through fixed penalty termsOften uses simplified degradation models as secondary constraintExplicit, detailed degradation modeling integrated as primary optimization objective
Computational CharacteristicsConstant computational load, potentially excessive for long horizonsVariable load, reduced through event-triggered horizon adjustmentAdaptive complexity, optimized for current system conditions and problem size
Key Innovation/AdvantageImplementation simplicityResponsiveness to EV uncertaintyHolistic adaptation to EV, market, AND degradation uncertainty
Market Price IntegrationLimited to pre-defined tariffs or fixed price signalsBasic price response through parameter adjustmentReal-time dynamic pricing integration with SMP/ToU coupling and conditional adjustments
Table 2. Comparative assessment of optimization methodologies for PEV charging in microgrid systems with renewable generation.
Table 2. Comparative assessment of optimization methodologies for PEV charging in microgrid systems with renewable generation.
PaperObjectiveMethodologyUncertaintyWTPVStorage Degradation
[27]Minimize charging costStochastic optimizationScenario-based stochastic modelingNoNoYes
[28]Reduce PEV operational costAdaptive rolling horizonScenario-based uncertaintiesYesYesNo
[29]Energy and reserve market managementMixed-integer linear programmingMixed-integer programming with uncertaintyYesYesYes
[30]Optimal schedulingTwo-step scheduling modelScenario-based modelingYesYesNo
[31]PEV chargingHierarchical MPCScenario-based uncertaintiesYesNoNo
[32]Minimize costsMulti-criteria optimizationScenario-based uncertaintiesYesYesYes
[33]Optimize charging and discharging costsGenetic AlgorithmStochastic modelingYesYesNo
[34]Minimize operation costPSO with hierarchical MASStochastic modelingYesYesNo
Pro. methodMinimize operation cost, EV charging/discharging cost, and Optimal ScheduleDynamic horizon optimization, MILPMonte Carlo simulation with scenario reductionYesYesYes
Table 3. Key parameters for the semi-empirical battery-degradation model.
Table 3. Key parameters for the semi-empirical battery-degradation model.
ParameterValueDescription/Source
K 1 SoC 3.5 × 10 3 SoC stress coefficient [15]
K 2 SoC 1.2 × 10 2 Offset constant [15]
E a 3.5 × 10 4 J/molActivation energy for SEI growth [16]
K I 1.1 × 10 5 Current stress factor [16]
R 8.314 J/(mol·K)Universal gas constant
Z 0.65 Throughput degradation exponent
K DoD 2.7 × 10 3 Depth-of-Discharge degradation factor [16]
η G 2 V 0.95 Charging efficiency (grid-to-vehicle)
η V 2 G 0.93 Discharging efficiency (vehicle-to-grid)
r 0.08 Annual discount rate
C bat 1200 CNY/kWhBattery replacement cost
C scr 200 CNY/kWhScrap value
C init 60 kWhInitial rated capacity of battery pack
Table 4. Comparison of forecasting models: RMSE and MAE.
Table 4. Comparison of forecasting models: RMSE and MAE.
ModelRMSEMAEForecasting ApproachStrengths and Weaknesses
PersistenceXXAssumes the future will be the same as the last known valueSimple, minimal computation but poor performance in volatile systems, no trend adaptation
ARIMAXXUses past values to model time-series data, assumes stationarity and autocorrelationSuitable for linear trends but struggles with non-stationary data
ProposedXXUses deep learning to capture nonlinear dependencies and temporal patternsCan capture complex dynamics, adapts to changing conditions but requires more data and computational resources
Table 5. Quantitative validation metrics for NREL dataset.
Table 5. Quantitative validation metrics for NREL dataset.
MetricValuePhase
nRMSE0.12Testing
KS Test Statistic0.05Testing
Table 6. PEV charging station and fleet specifications.
Table 6. PEV charging station and fleet specifications.
EV Stations P max ch (kW)PEV ModelBattery Capacity (kWh)
EVCS#19.6EV125
EVCS#213.2EV232
EVCS#319.6EV335
EVCS#413.2
Table 7. ToU electricity prices and time periods (CNY/kWh).
Table 7. ToU electricity prices and time periods (CNY/kWh).
Time PeriodSummerWinterTime Interval
Off-Peak0.5320.57423:00–07:00
Mid-Peak0.8200.87807:00–11:00, 17:00–23:00
On-Peak1.2081.27411:00–17:00
Table 8. Charging C ch and discharging C dis prices by seasons (CNY/kWh).
Table 8. Charging C ch and discharging C dis prices by seasons (CNY/kWh).
Scenario C ch C dis
WinterSummerWinterSummer
ToU Pricing0.57–1.270.53–1.210.57–1.270.53–1.21
Proposed Pricing0.60–1.200.55–1.150.80–1.500.75–1.45
Table 9. PEV fleet specifications and final state of charge comparison.
Table 9. PEV fleet specifications and final state of charge comparison.
EVCSEV P max ch (kW)Battery Capacity (kWh)Initial SoC (%)Baseline Final SoC (%)DHO Final SoC (%)
EVCS#1EV19.625205055
EV29.632308590
EV39.635257585
EVCS#2EV113.225103540
EV213.232206570
EV313.235307075
EVCS#3EV119.625123844
EV219.632226874
EV319.635287280
EVCS#4EV113.225183339
EV213.232246066
EV313.235326872
Table 10. Summary of microgrid performance metrics.
Table 10. Summary of microgrid performance metrics.
MetricValue
Peak Load L peak 150.3 kW
Total Operational Cost7934.4 CNY
Average PEV Utilization Rate78.5%
PV Utilization Rate92.1%
Wind Utilization Rate85.4%
Table 11. Cost comparison between baseline and DHO-based scheduling.
Table 11. Cost comparison between baseline and DHO-based scheduling.
MetricBaselineDHO-Based
Total Charging Cost 8.74 CNY 7.64 CNY
Average Cost per kWh 0.205 CNY/kWh 0.180 CNY/kWh
Final Average SoC74 % 86.5 %
EV Discharging Revenue 0.00 CNY 1.15 CNY
Net Economic Gain 12.6 % reduction
Table 12. Comparative performance of different pricing strategies.
Table 12. Comparative performance of different pricing strategies.
Performance MetricRTPFixed PremiumProposed
Total Microgrid Cost (CNY)1256.41187.21153.8
Avg. PEV Charging Cost (CNY)34.2131.5029.89
PEV V2G Revenue (CNY)28.9524.8126.33
Peak Demand (kW)145138130
Battery Aging Cost (CNY)0.881.050.95
Comp. Time (s)124.5118.2121.7
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

Zheng, J.; Tao, Q.; Hu, Q.; Humayun, M. Dynamic Horizon-Based Energy Management for PEVs Considering Battery Degradation in Grid-Connected Microgrid Applications. World Electr. Veh. J. 2025, 16, 615. https://doi.org/10.3390/wevj16110615

AMA Style

Zheng J, Tao Q, Hu Q, Humayun M. Dynamic Horizon-Based Energy Management for PEVs Considering Battery Degradation in Grid-Connected Microgrid Applications. World Electric Vehicle Journal. 2025; 16(11):615. https://doi.org/10.3390/wevj16110615

Chicago/Turabian Style

Zheng, Junyi, Qian Tao, Qinran Hu, and Muhammad Humayun. 2025. "Dynamic Horizon-Based Energy Management for PEVs Considering Battery Degradation in Grid-Connected Microgrid Applications" World Electric Vehicle Journal 16, no. 11: 615. https://doi.org/10.3390/wevj16110615

APA Style

Zheng, J., Tao, Q., Hu, Q., & Humayun, M. (2025). Dynamic Horizon-Based Energy Management for PEVs Considering Battery Degradation in Grid-Connected Microgrid Applications. World Electric Vehicle Journal, 16(11), 615. https://doi.org/10.3390/wevj16110615

Article Metrics

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