Using Large Language Models to Solve the Electric Vehicle Routing Problem with Advanced Prompting Techniques
Electric vehicles are an essential technology in the energy transition that can help to reduce global carbon emissions. Electric vehicle adoption suffers from a range of issues including range anxiety. Thus, to reduce range anxiety, routes can be planned to include EV stations within the path from source and destination. The Electric vehicle routing problem is a variant of the vehicle routing problem with additional constraints. These constraints may include capacity constraints, battery charging/discharging, traffic congestion, etc. In this paper, we consider the EVRP as essentially the VRP problem with the additional constraint of passing through an EV node during a trip. We show that by carefully prompting a large language model with precise information and instructions, we can guide it to solve the EVRP problem. We experiment with different prompting techniques and our results show that explicit, instruction-driven prompts with self-checks perform the best.
Authors
- Usman Zafar (ORCID: https://orcid.org/0000-0001-5819-6024)
- Sertaç Bayhan (ORCID: https://orcid.org/0000-0003-2027-532X)
Institutions
- Hamad bin Khalifa University (QA)
Publication Details
- Published
- 2025-05-20
- DOI
- https://doi.org/10.1109/cpe-powereng63314.2025.11027311
- Citations
- 1
- Primary Topic
- Power Systems and Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.73