Electric vehicle (EV) fleets are expected to become an increasingly important source of flexibility for power system operations. However, accurately capturing the flexibility potential of numerous and heterogeneous EVs remains a significant challenge. We propose a bilevel optimization formulation to enhance flexibility aggregations of electric vehicle fleets. The outer level minimizes scheduling deviations between the aggregated and reference EV units, while the inner level maximizes the aggregated unit's profits. Our approach introduces hourly to daily scaling factor mappings to parameterize the aggregated EV units. Compared to simple aggregation methods, the proposed framework reduces the root-mean-square error of charging power by 78~per cent, providing more accurate flexibility representations. The proposed framework also provides a foundation for several potential extensions in future work.
- Paper ID: 2506.04843
- Title: Bilevel Optimization for Improved Flexibility Aggregation Models of Electric Vehicle Fleets
- Authors: Philipp Härtel (Fraunhofer IEE), Michael von Bonin (Fraunhofer IEE)
- Classification: math.OC cs.SY eess.SY
- Publication Date: June 5, 2025 (arXiv preprint)
- Paper Link: https://arxiv.org/abs/2506.04843
Electric vehicle (EV) fleets are expected to become increasingly important flexibility resources in power system operations. However, accurately capturing the flexibility potential of numerous heterogeneous electric vehicles remains a significant challenge. This paper proposes a bilevel optimization formulation to enhance flexibility aggregation of EV fleets. The upper level minimizes scheduling deviations between the aggregated EV unit and reference EV units, while the lower level maximizes the profit of the aggregated unit. The approach introduces scaling factor mappings from hourly to daily timescales to parameterize the aggregated EV unit. Compared to simple aggregation methods, the proposed framework reduces the root mean square error (RMSE) of charging power by 78%, providing a more accurate representation of flexibility.
With the large-scale proliferation of electric vehicles, EV fleets will become important flexibility resources in power systems. However, accurately modeling the charging and discharging flexibility of large-scale heterogeneous EV fleets faces significant challenges:
- Computational Complexity: Individual modeling of each EV in large-scale power system planning is computationally infeasible
- Heterogeneity Challenges: Different EVs exhibit different driving patterns, battery capacities, charging behaviors, and other characteristics
- Flexibility Overestimation: Existing simple aggregation methods tend to overestimate the actual flexibility potential of vehicle fleets
German electricity market forecasts for 2045 show that the median electricity demand from EVs remains below 10 GW throughout the year, but the upper quartile frequently exceeds 40 GW, exhibiting enormous variability. The introduction of vehicle-to-grid (V2G) capabilities further amplifies the need for accurate flexibility representation.
- Naive Aggregation Approaches: Estimate fleet flexibility by simply summing individual EV charging availability and driving requirements, ignoring inter-vehicle interactions and dependencies
- Virtual Battery Aggregation: Model EV fleets as virtual energy storage systems, but still rely on manually adjusted generic scaling factors
- Clustering Techniques: Group EVs with similar charging patterns, but lack optimized aggregation strategies
- Proposes Bilevel Optimization Framework: First application of bilevel optimization to EV fleet flexibility aggregation, with the upper level optimizing scaling factors to minimize scheduling deviations and the lower level optimizing market participation profits of the aggregated unit
- Designs Scaling Factor Mapping Mechanism: Introduces temporal-scale scaling factor mappings from hourly to daily timescales, capable of capturing flexibility characteristics at different temporal granularities
- Significantly Improves Aggregation Accuracy: Achieves 78% reduction in charging power RMSE compared to simple aggregation methods, providing more accurate flexibility representation
- Provides Scalable Framework: Establishes infrastructure for future extensions (e.g., V2G, different user types, fast charging)
Input: Individual EV unit charging/discharging availability, state-of-charge (SOC) trajectories, electricity prices, driving requirements
Output: Optimized scaling factors and scheduling strategy for the aggregated EV unit (AEV)
Objective: Minimize scheduling deviations between the AEV and reference individual EV units
Minimize scheduling deviations between the aggregated unit and reference EV units:
minΞOL∑t∈T[γC(xu,tC−X^Vu,tC)2+γD(xu,tD−X^Vu,tD)2+γS(xu,tS−X^Vu,tS)2]
Constraints include:
- Scaling factor mapping: xu,tC=κu,τC∑v∈VuXv,tC, where τ=fnC(t)
- Non-negativity of scaling factors: κu,τC,κu,τC∈R+
Maximize market participation profit of the aggregated unit:
minΞIL∑t∈TΠt(xu,tC−xu,tD)
Constraints:
- Charging/discharging power limits: xu,tC≤xu,tC≤xu,tC
- SOC continuity: xu,t+1S=ρuxu,tS−Φu,tDR−Φu,tTH+ηuCxu,tC−ηuD1xu,tD
Periodic mapping function is designed as:
fnC(t)=fnD(t)=fnS(t)=⌊ntmod(7×24)⌋
This mapping ensures weekly (168-hour) cycles while grouping every n hours within the cycle, ensuring each working day is processed.
Due to the convexity of the lower-level problem, the bilevel problem is reformulated as a single-level mixed-integer linear program:
- Introduce dual variables λu,t,μu,t(⋅)
- Add KKT optimality conditions
- Reformulate complementary slackness conditions using the big-M method
- Time Range: 3-week period with hourly resolution (January 2012 German data)
- EV Configuration: 900 commuter driving profiles based on historical travel survey data
- Electricity Prices: 2035 forecasted German electricity prices
- Vehicle Specifications: Including battery capacity, driving efficiency, home charging/discharging power, SOC limits
- Primary Metric: Root mean square error (RMSE) of charging power
- Optimization Metrics: Objective function value, optimality gap
- Comparison Dimensions: SOC trajectories, charging power scheduling deviations
- Simple Aggregation (SA): Heuristic aggregation method based on virtual energy storage
- AEV Variants: Different scaling factor mappings (1h, 2h, 4h, 6h, 24h)
- Solver: Gurobi Optimizer
- Simplified Setup: V2G capabilities not considered in current version, focusing on core method validation
- User Types: Only commuters considered to reduce heterogeneity complexity
| Method | Optimal Objective | Optimal Lower Bound | Relative Gap | RMSE (MW) |
|---|
| AEV 1h | 2891.69 | 1957.95 | 32.29% | 2.926 |
| AEV 2h | 3734.22 | 2921.89 | 21.75% | 3.125 |
| AEV 4h | 4130.89 | 3709.89 | 10.19% | 3.164 |
| AEV 6h | 4300.00 | 4162.43 | 3.20% | 3.256 |
| AEV 24h | 5666.59 | 5609.96 | 1.00% | 3.827 |
| SA | - | - | - | 18.084 |
Key Findings:
- AEV method achieves 78% RMSE reduction compared to SA
- Finer-grained mappings (1h, 2h) produce smaller scheduling deviations
- 24h mapping achieves 1% optimality gap
- Aggregated maximum charging power availability reduced by 0%-18%
- Maximum SOC trajectory reduced to 60%
- Minimum SOC trajectory ranges from 0%-15% of aggregated maximum SOC
- Variation patterns exist across different working days
Observable from Figure 4:
- AEV unit scheduling highly consistent with individual EV reference scheduling
- SA method produces more pronounced charging peaks during low-price periods
- AEV method better captures actual flexibility constraints
- Virtual Battery Aggregation: Model EV fleets as virtual energy storage systems, considering charging/discharging limits and battery capacity
- Clustering Techniques: Group EVs with similar charging patterns to avoid heterogeneous vehicle mixing
- Equivalent Models: Borrow concepts of composite or equivalent models from hydroelectric systems
- Identifying accurate simplified models in hydroelectric systems
- Electricity market clearing and capacity planning
- Demand response and energy storage optimization
- Method Effectiveness: The bilevel optimization framework significantly improves the accuracy of EV fleet flexibility aggregation
- Computational Feasibility: Efficient solution achieved through KKT reformulation
- Practical Value: Provides accurate EV flexibility representation for large-scale power system planning
- Simplified Assumptions: Current version does not consider V2G, workplace charging, fast charging, and other scenarios
- User Heterogeneity: Only considers commuters, does not cover different user types
- Computational Complexity: Some instances fail to reach global optimality (relative gap >1%)
- Functional Extensions: Integrate V2G capabilities, multiple user types, fast charging infrastructure
- Sensitivity Analysis: Different price scenarios, working-day-specific scaling factors
- Aggregator Role: Utilize bilevel structure to analyze incentive mechanisms for flexibility aggregators
- Real-Time Applications: Extend to real-time scheduling and market participation
- Methodological Innovation: First systematic application of bilevel optimization to EV fleet aggregation with solid theoretical foundation
- Experimental Completeness: Comprehensive comparison across multiple temporal-scale mappings with convincing results
- High Practical Value: 78% accuracy improvement is significant for power system planning
- Framework Extensibility: Provides solid foundation for future research
- Scenario Limitations: Current experimental scenarios are relatively simplified, lacking verification of important features like V2G
- Computational Efficiency: Some instances exhibit larger optimality gaps, potentially affecting practical applications
- Parameter Sensitivity: Lacks sensitivity analysis for critical parameters (e.g., deviation weights γ)
- Scalability Verification: Insufficient verification of method performance on larger vehicle fleets
- Academic Contribution: Provides new optimization paradigm for EV aggregation field
- Engineering Value: Can be directly applied in power system planning tools
- Policy Support: Provides technical foundation for formulating EV flexibility market mechanisms
- Power System Planning: EV flexibility assessment in long-term investment decisions
- Market Design: Mechanism design for EV aggregators' electricity market participation
- Operational Optimization: Coordinated control of EV fleets in distribution networks
The paper cites 16 relevant references, primarily covering:
- EV aggregation methods: Virtual energy storage aggregation, clustering techniques
- Bilevel optimization theory: KKT conditions, mixed-integer reformulation
- Hydroelectric system equivalent modeling: Composite models, bilevel applications
- German travel data: MiD survey, transportation statistics
Overall Assessment: This is a high-quality paper with significant contributions to the EV fleet flexibility aggregation field. The methodology is novel, experiments are comprehensive, and results are substantial, providing an effective solution to key technical challenges in large-scale EV integration. Despite some limitations, its innovation value and practical potential make it an important advancement in the field.