Skip to content

Optimizing the shortest route on California road networks with Tesla supercharger locations for Electric Vehicles with limited battery capacity.

License

Notifications You must be signed in to change notification settings

utsavmajumdar14/charge_constrained_route_optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗⚡ EV Route Optimizer: Charge Smart, Drive Far

Python License: MIT

Electric vehicles are often subject to range issues. Unlike gasoline vehicles, EVs need to be charged for longer periods of time. This is especially cumbersome when one is going on a roadtrip that spans lengthy distances. If not well-planned, one might end up stranded with no charge in their EV batteries.
Hence we have taken on the problem of solving shortest path with charge constraint, where one needs to decide the specific route to take to reach their destination, by halting at charging points in the most optimized manner.

🌟 Features

  • 🗺️ Interactive maps powered by Folium
  • 🔋 Smart charging station integration
  • 🚙 Support for multiple Tesla models
  • 📊 Data visualization with Matplotlib and Seaborn
  • 🧮 Advanced pathfinding with modified Dijkstra's algorithm

🚀 Getting Started

Prerequisites

  • Python 3.7+
  • pip

Installation

Clone the repo: git clone https://github.com/utsavmajumdar14/charge_constrained_route_optimization.git

Select your start point, destination, and Tesla model to visualize the optimal route!

Assumption

The distance here is an L2 distance whose units are unknown. However, I calculated and figured 1 L2 unit would almost be equivalent to 60 miles. The range, charging speed and charging capacity of the Tesla vehicles are an assumption since this repository focuses more on the algorithm.

Folders

Toy

Here I used a hypothetical toy network to test out the algorithm

Final

The algorithm is executed on California map

New Data

  1. The supercharger data (slightly dated) is obtained from https://www.kaggle.com/datasets/omarsobhy14/supercharge-locations
  2. The road networks are obtained from https://users.cs.utah.edu/~lifeifei/SpatialDataset.htm

🛠️ Tech Stack

  • NumPy & Pandas: Data manipulation
  • Matplotlib & Seaborn: Data visualization
  • Folium: Interactive maps
  • GeoPandas: Geospatial data handling
  • NetworkX: Graph operations
  • ipywidgets: Interactive UI components

📸 Screenshots

Geopanda visualization

Route Visualization Geopanda

Folium Visualization

Route Visualization Folium Optimal route with charging stations

California Road network

Interactive UI California

Toy network

Interactive UI Toy Network User-friendly interface for route planning

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Tesla for inspiring the future of electric mobility
  • OpenStreetMap contributors for geospatial data
  • The open-source community for amazing tools and libraries

Ready to optimize your EV journey? Star ⭐ this repo! 🌍🔌🚗

About

Optimizing the shortest route on California road networks with Tesla supercharger locations for Electric Vehicles with limited battery capacity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published