Electric Vehicle Routing under Time-Variant Electricity Prices

Bo Lin, Bissan Ghaddar, Jatin Nathwani

Abstract

The integration of electric vehicles (EVs) with the energy grid has become an important area of research due to the increasing EV penetration in today's transportation systems. Under appropriate management of EV charging and discharging, the grid can currently satisfy the energy requirements of a considerable number of EVs. Furthermore, EVs can help enhance the reliability and stability of the energy grid through ancillary services such as energy storage. This paper proposes the EV routing problem with time windows under time-variant electricity prices (EVRPTW-TP) which optimizes the routing of a fleet of electric vehicles that are delivering products to customers, jointly with the scheduling of the charging and discharging of the vehicles from/to the grid. The proposed model is a multiperiod vehicle routing problem where electric vehicles can stop at charging stations to either recharge their batteries or inject stored energy to the grid. Given the energy costs that vary based on time-of-use, the charging and discharging schedules of the EVs are optimized to benefit from the capability of storing energy by shifting the demand from peak hours to off-peak hours when the price of energy is lower. The vehicles can recover the cost of energy and potentially realize profits by injecting energy back to the grid at high price periods. EVRPTW-TP is formulated as an optimization problem and a Lagrangian relaxation approach as well as a hybrid variable neighborhood search/tabu search heuristic are proposed to obtain high quality solutions. Numerical experiments on instances from the literature are provided. The proposed model is also evaluated on the case study of a grocery delivery service at the region of Kitchener-Waterloo in Ontario, Canada. Insights on the impacts of energy pricing, service time slots, as well as fleet size are presented.

Introduction

This research introduces the Electric Vehicle Routing Problem with Time Windows under Time-Variant Electricity Prices (EVRPTW-TP), a framework that jointly optimizes delivery routes and vehicle-to-grid (V2G) charging/discharging schedules. By strategically buying electricity during off-peak hours and selling it back to the grid during peak hours, commercial EV fleets can effectively act as mobile batteries, offsetting their energy costs and potentially turning a profit. This paper proposes a hybrid heuristic algorithm to solve this complex multi-period problem and demonstrates its real-world viability through a grocery delivery case study.

Problem Statement: Bridging the Gap in EV Fleet Management

As electric vehicle (EV) adoption rises, commercial fleets (like UPS, FedEx, or local grocery delivery) are transitioning to electric. While this reduces emissions, it places a massive new load on the power grid. However, EVs also offer a unique opportunity: through bidirectional vehicle-to-grid (V2G) technology, they can store energy when it's cheap and inject it back into the grid when demand (and price) is high.

Previous research has looked at EV routing, EV charging, and V2G systems mostly in isolation. Existing models either focus on single vehicles, ignore the delivery of goods (routing), or don't allow the vehicles to discharge energy back to the grid for profit. This paper tackles the gap by jointly optimizing the routing, charging, and discharging of a fleet of EVs. The challenge is balancing the primary operational goal—delivering goods to customers within strict time windows—with the secondary goal of arbitraging time-of-use electricity prices to minimize net energy costs.

Comparison of the proposed EVRPTW-TP model with existing literature

Methodology: Optimizing Routing and Energy Arbitrage

The authors formulate the EVRPTW-TP as a Mixed Integer Program (MIP). Because routing problems are notoriously NP-hard, solving this jointly with discrete charging/discharging schedules is computationally heavy. The model incorporates various sets and parameters to account for customer nodes, charging stations, depots, and time-variant pricing.

Mathematical notation and parameter definitions used in the model formulation

To tackle this, the authors use a two-pronged approach:

  1. Lagrangian Relaxation: Used to compute high-quality lower bounds by relaxing the constraint that every customer must be visited exactly once, penalizing violations using Lagrangian multipliers.
  2. Hybrid VNS/TS Heuristic: To find practical, feasible solutions quickly, they develop a hybrid Variable Neighborhood Search (VNS) and Tabu Search (TS) meta-heuristic.

Evaluating the cost of a route in this model isn't just about distance; it requires finding the optimal charging/discharging schedule for that specific route. The authors embed specialized, highly constrained MIPs inside the heuristic to optimally schedule the energy arbitrage for any given route generated by the VNS/TS operators.

Datasets and Experimental Setup

  • Benchmark Instances: The authors adapted the widely used Solomon (1987) and Schneider et al. (2014) EV routing benchmarks. They scaled the normalized distances and times to represent realistic values (e.g., max 100km distance, 5 AM to 12 AM planning horizon) to accurately calculate real-world charging times.
  • Case Study Data: A real-world scenario of a local grocery delivery service in the Kitchener-Waterloo (KW) region of Ontario, Canada, featuring 30 customers, 7 level-2 charging stations, and real time-of-use hydro rates from the Ontario Energy Board.

Key Insights: The Economics of V2G

  • V2G arbitrage can pay for battery degradation: A major hesitation around V2G is that extra charging cycles degrade the EV's battery. However, the authors found that the profits generated from selling energy back to the grid during peak hours over the battery's lifespan ($7,900 - $9,500) actually exceed the estimated cost of battery degradation (~$5,000 - $6,700).
  • The hidden cost of "timely service": Strict delivery time windows (e.g., 2-hour slots) severely limit a fleet's flexibility. When vehicles are locked into tight schedules, they can't detour to charging stations during peak pricing hours to sell energy. Relaxing time windows drastically reduces driving distance and flips energy from a net cost to a net profit.
  • Diminishing returns on fleet size: Adding more EVs to a fleet reduces the travel distance per vehicle and frees up time for V2G discharging. However, beyond the number of vehicles actually needed for delivery, extra EVs essentially become highly expensive, static battery storage, which is not economically viable under current energy prices.
  • Winter weather impacts: Cold weather reduces EV range (simulated up to a 50% drop). This forces vehicles to use their battery capacity for driving rather than arbitraging, cutting into V2G profits and requiring more frequent, less optimal charging stops.

Key Results

  • Algorithmic Performance: Standard solvers (CPLEX) failed to find optimal solutions for almost all instances with 10 or more customers. The proposed VNS/TS heuristic found optimal solutions for 9 out of 12 small instances (gap < 4.3%) and successfully solved medium instances (up to 35 customers) in under 2 hours.
  • Economic Impact: In the KW case study, operating the fleet without V2G discharging cost $2.02 per day in electricity. Allowing V2G discharging turned that cost into a **$2.80 daily profit** (a $4.82 swing per day).
  • Routing Efficiency: Removing strict 2-hour time windows in favor of a fully flexible schedule reduced the fleet's total daily driving distance from 229 km to 131 km, while increasing discharging time from 6 hours to 12 hours.

Limitations and Future Directions

To keep the math tractable, the model assumes linear charging/discharging speeds and constant energy consumption, ignoring real-world non-linear battery physics and the changing mass of the vehicle as packages are delivered. Furthermore, battery degradation costs are discussed in the insights but are not explicitly penalized in the optimization objective function.

Future work may involve replacing the embedded MIPs in the heuristic with dynamic programming to speed up computation. There is also potential to explore models that handle dynamic, uncertain electricity prices and the integration of intermittent renewable energy sources.

Summary updated

Abstract

The integration of electric vehicles (EVs) with the energy grid has become an important area of research due to the increasing EV penetration in today's transportation systems. Under appropriate management of EV charging and discharging, the grid can currently satisfy the energy requirements of a considerable number of EVs. Furthermore, EVs can help enhance the reliability and stability of the energy grid through ancillary services such as energy storage. This paper proposes the EV routing problem with time windows under time-variant electricity prices (EVRPTW-TP) which optimizes the routing of a fleet of electric vehicles that are delivering products to customers, jointly with the scheduling of the charging and discharging of the vehicles from/to the grid. The proposed model is a multiperiod vehicle routing problem where electric vehicles can stop at charging stations to either recharge their batteries or inject stored energy to the grid. Given the energy costs that vary based on time-of-use, the charging and discharging schedules of the EVs are optimized to benefit from the capability of storing energy by shifting the demand from peak hours to off-peak hours when the price of energy is lower. The vehicles can recover the cost of energy and potentially realize profits by injecting energy back to the grid at high price periods. EVRPTW-TP is formulated as an optimization problem and a Lagrangian relaxation approach as well as a hybrid variable neighborhood search/tabu search heuristic are proposed to obtain high quality solutions. Numerical experiments on instances from the literature are provided. The proposed model is also evaluated on the case study of a grocery delivery service at the region of Kitchener-Waterloo in Ontario, Canada. Insights on the impacts of energy pricing, service time slots, as well as fleet size are presented.
BibTeX
@inproceedings{lin2021electric,
  author = {Bo Lin and Bissan Ghaddar and Jatin Nathwani},
  title = {{Electric Vehicle Routing under Time-Variant Electricity Prices}},
  booktitle = {Transportation},
  year = {2021},
  doi = {10.1016/j.trc.2021.103285},
}
Figure