Skip to main content
QUICK REVIEW

[Paper Review] A Reinforcement Learning Approach for Electric Vehicle Routing Problem with Vehicle-to-Grid Supply

Ajay Narayanan, Prasant Misra|arXiv (Cornell University)|Apr 12, 2022
Electric Vehicles and InfrastructureEngineering9 citations
TL;DR

This paper proposes Quik, a reinforcement learning (RL)-based framework for solving the Capacitated Electric Vehicle Routing Problem with Time Windows and Vehicle-to-Grid (CEVRPTW-D), which optimizes delivery routes while enabling energy discharge to the grid during peak demand. Quik achieves 24x faster computation than MILP and genetic algorithm baselines, with solution quality within 20% of optimal, demonstrating scalable, real-time routing for large-scale EV fleets.

ABSTRACT

The use of electric vehicles (EV) in the last mile is appealing from both sustainability and operational cost perspectives. In addition to the inherent cost efficiency of EVs, selling energy back to the grid during peak grid demand, is a potential source of additional revenue to a fleet operator. To achieve this, EVs have to be at specific locations (discharge points) during specific points in time (peak period), even while meeting their core purpose of delivering goods to customers. In this work, we consider the problem of EV routing with constraints on loading capacity; time window; vehicle-to-grid energy supply (CEVRPTW-D); which not only satisfy multiple system objectives, but also scale efficiently to large problem sizes involving hundreds of customers and discharge stations. We present QuikRouteFinder that uses reinforcement learning (RL) for EV routing to overcome these challenges. Using Solomon datasets, results from RL are compared against exact formulations based on mixed-integer linear program (MILP) and genetic algorithm (GA) metaheuristics. On an average, the results show that RL is 24 times faster than MILP and GA, while being close in quality (within 20%) to the optimal.

Motivation & Objective

  • To address the high cost and complexity of last-mile electric vehicle (EV) delivery by integrating vehicle-to-grid (V2G) energy supply as a revenue stream.
  • To model and solve the CEVRPTW-D problem—optimizing EV routes under capacity, time window, and V2G discharge constraints—while minimizing total trip cost.
  • To overcome the scalability limitations of exact methods (MILP) and metaheuristics (GA) for large-scale EV routing with multi-service operations.
  • To design a value-based RL framework that learns efficient routing policies through offline training, enabling real-time decision-making for fleet operators.

Proposed method

  • The RL agent acts as a fleet aggregator, observing system states that encode vehicle-customer and vehicle-discharge station pairings.
  • The state space includes vehicle load, time, location, and energy levels; the action space selects the next visit location (customer or discharging station).
  • A custom reward function is engineered to reflect trip cost, incorporating energy sale revenue during V2G discharge and penalties for time window violations.
  • The framework uses a value-based RL algorithm (e.g., Deep Q-Network or similar) to learn a policy mapping states to actions that maximize cumulative discounted rewards.
  • The model is trained offline on Solomon benchmark datasets to generalize across diverse customer and discharging station configurations.
  • Performance is evaluated against MILP (exact) and GA (metaheuristic) baselines using computation time and solution cost as key metrics.

Experimental results

Research questions

  • RQ1Can reinforcement learning effectively solve the multi-objective CEVRPTW-D problem that combines goods delivery and vehicle-to-grid energy supply under capacity and time window constraints?
  • RQ2How does the computational efficiency of an RL-based approach compare to traditional MILP and GA methods for large-scale EV routing with hundreds of customers and discharge points?
  • RQ3To what extent does the RL solution maintain solution quality (in terms of cost) relative to optimal MILP solutions, especially under complex operational constraints?
  • RQ4Can the RL framework scale to real-time deployment in dynamic environments with changing demand and electricity prices?

Key findings

  • Quik achieves an average computation speed 24 times faster than both MILP and genetic algorithm baselines on large-scale instances involving hundreds of customers and discharge stations.
  • The RL-based solution maintains solution quality within approximately 20% of the optimal cost obtained via MILP, indicating strong near-optimality.
  • The framework successfully integrates V2G energy discharge into routing decisions, enabling EVs to generate revenue during peak grid demand without compromising delivery schedules.
  • The value-based RL approach scales efficiently to large problem instances, overcoming the computational bottlenecks of exact and metaheuristic methods.
  • The reward engineering strategy effectively balances delivery cost, time window compliance, and energy revenue, guiding the agent toward cost-effective policies.
  • Preliminary results suggest that further RL model improvements could close the optimality gap while enabling real-time adaptation to dynamic demands.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.