• Home
  • Latest
  • Fortune 500
  • Finance
  • Tech
  • Leadership
  • Lifestyle
  • Rankings
  • Multimedia

Trendingnow

1

MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year

2

Now worth $200 million, Sarah Jessica Parker credits being ‘one of eight kids that struggled financially’ for her hunger, ambition, and work ethic

3

Ray Dalio says the U.S. just had its 'Suez moment'—and history says what comes next could end an empire

1

MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year

2

Now worth $200 million, Sarah Jessica Parker credits being ‘one of eight kids that struggled financially’ for her hunger, ambition, and work ethic

3

Ray Dalio says the U.S. just had its 'Suez moment'—and history says what comes next could end an empire

This is the perfect Tesla Supercharger roadtrip

Robert Hackett
By
Robert Hackett
Robert Hackett
Down Arrow Button Icon
Robert Hackett
By
Robert Hackett
Robert Hackett
Down Arrow Button Icon
June 16, 2015, 12:12 PM ET
A Tesla Motors Inc. Gallery And Service Center As Stock Rebounds
Supercharger stations stand at the Tesla Motors Inc. Gallery and Service Center in Paramus, New Jersey, U.S., on Thursday, Dec. 11, 2014. Bloomberg via Getty Images
Add Fortune on Google for similar content.

If you’re looking to hit every single Tesla Supercharger station in the U.S., this data scientist has you covered.

Mortada Mehyar set out to solve what’s known as the “traveling salesman problem,” a complicated mathematical puzzle that aims to determine the perfect (meaning shortest) path for a person visiting a set of destinations: In this case, Tesla Model S charging stations. Given all the possibilities, the calculation can be algorithmically baffling, even for computers.

For instance, if there are two hundred stations would require checking, according to the programmer, approximately 7.9 x 10^134 permutations. Suffice it to say that that is A LOT of permutations. “That’s actually a lot more than the total number of atoms in the universe!” he writes.

Luckily, there’s a better way to solve the problem. Mehyar uses a program called Concorde that whittles down the possibility space by using algorithm branches, allowing it figure out what is closest to an exact optimum path as possible. “Since we don’t have that many nodes, and the distance metric (symmetric geometric distance) is relatively simple,” the coder said. Exactness is his goal.

At the time of the writing of the post, there were 194 superchargers across the country, he said. After crunching the numbers, he finds the route below to be the best:

Perfect Tesla Supercharger Roadtrip 2015
Courtesy of Mortada Mehyar.
Courtesy of Mortada Mehyar.

Presumably, Mehyar has reverse engineered a logistical problem that Elon Musk is no doubt grappling with at his electric car company. “Stations are strategically placed to minimize stops during long distance travel,” the company’s website says.

Tesla (TSLA) has been expanding rapidly, however, dotting the country with its recharge posts. Already the course plotted by Mehyar is slightly out of date. At the time of writing this post, there were two more supercharger locations in the U.S., bring the total up to 196.

Pack an extra pair of socks.

About the Author
Robert Hackett
By Robert Hackett
Instagram iconLinkedIn iconTwitter icon
See full bioRight Arrow Button Icon
Add Fortune on Google for similar content.

Latest in

Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025

Most Popular

Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Fortune Secondary Logo
Rankings
  • 100 Best Companies
  • Fortune 500
  • Global 500
  • Fortune 500 Europe
  • Most Powerful Women
  • World's Most Admired Companies
  • See All Rankings
  • Lists Calendar
Sections
  • Finance
  • Fortune Crypto
  • Features
  • Leadership
  • Health
  • Commentary
  • Success
  • Retail
  • Mpw
  • Tech
  • Lifestyle
  • CEO Initiative
  • Asia
  • Politics
  • Conferences
  • Europe
  • Newsletters
  • Personal Finance
  • Environment
  • Magazine
  • Education
Customer Support
  • Frequently Asked Questions
  • Customer Service Portal
  • Privacy Policy
  • Terms Of Use
  • Single Issues For Purchase
  • International Print
Commercial Services
  • Advertising
  • Fortune Brand Studio
  • Fortune Analytics
  • Fortune Conferences
  • Business Development
  • Group Subscriptions
About Us
  • About Us
  • Press Center
  • Work At Fortune
  • Terms And Conditions
  • Site Map
  • About Us
  • Press Center
  • Work At Fortune
  • Terms And Conditions
  • Site Map
  • Facebook icon
  • Twitter icon
  • LinkedIn icon
  • Instagram icon
  • Pinterest icon

Latest in

Qualcomm’s big AI gamble: Breaking Nvidia’s chips stronghold 
AIChips
Qualcomm’s big AI gamble: Breaking Nvidia’s chips stronghold 
By Phil WahbaJune 27, 2026
25 minutes ago
U.S. aircraft attack Iran in response to drone strike on cargo ship that Tehran called ‘ceasefire management’ as both sides wrestle for Hormuz control
PoliticsIran
U.S. aircraft attack Iran in response to drone strike on cargo ship that Tehran called ‘ceasefire management’ as both sides wrestle for Hormuz control
By Collin Binkley, Jon Gambrell and The Associated PressJune 26, 2026
9 hours ago
Red Lobster lost millions on its endless shrimp disaster. Shareholders say it was a ‘car crash’ designed to squeeze profits
LawRestaurants
Red Lobster lost millions on its endless shrimp disaster. Shareholders say it was a ‘car crash’ designed to squeeze profits
By Marco Quiroz-GutierrezJune 26, 2026
11 hours ago
Best Beef Organ Supplements (2026): Expert Tested and Reviewed
HealthDietary Supplements
Best Beef Organ Supplements (2026): Expert Tested and Reviewed
By Emily PharesJune 26, 2026
11 hours ago
Sam Altman and Donald Trump.
AIOpenAI
OpenAI agrees to stagger rollout of its most powerful model to only Trump-approved customers
By Eva Roytburg and Beatrice NolanJune 26, 2026
12 hours ago
gr
PoliticsElections
Anthropic and OpenAI waged a $27 million proxy war in a Manhattan congressional race. The winner told them both to get lost
By Sasha RogelbergJune 26, 2026
12 hours ago

Most Popular

MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year
Success
MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year
By Sydney LakeJune 25, 2026
2 days ago
Now worth $200 million, Sarah Jessica Parker credits being ‘one of eight kids that struggled financially’ for her hunger, ambition, and work ethic
Success
Now worth $200 million, Sarah Jessica Parker credits being ‘one of eight kids that struggled financially’ for her hunger, ambition, and work ethic
By Orianna Rosa RoyleJune 24, 2026
3 days ago
Ray Dalio says the U.S. just had its 'Suez moment'—and history says what comes next could end an empire
Economy
Ray Dalio says the U.S. just had its 'Suez moment'—and history says what comes next could end an empire
By Nick LichtenbergJune 26, 2026
1 day ago
The bond market knows something about the $39 trillion national debt that Washington doesn’t
Economy
The bond market knows something about the $39 trillion national debt that Washington doesn’t
By Eva RoytburgJune 25, 2026
1 day ago
Trump turns on Big Oil donors who spent nearly $100 million to get him elected—now he wants the DOJ to investigate them for price gouging
Economy
Trump turns on Big Oil donors who spent nearly $100 million to get him elected—now he wants the DOJ to investigate them for price gouging
By Tristan BoveJune 25, 2026
1 day ago
Current price of oil as of June 26, 2026
Personal Finance
Current price of oil as of June 26, 2026
By Joseph HostetlerJune 26, 2026
18 hours ago

© 2026 Fortune Media IP Limited. All Rights Reserved. Use of this site constitutes acceptance of our Terms of Use and Privacy Policy | CA Notice at Collection and Privacy Notice | Do Not Sell/Share My Personal Information
FORTUNE is a trademark of Fortune Media IP Limited, registered in the U.S. and other countries. FORTUNE may receive compensation for some links to products and services on this website. Offers may be subject to change without notice.