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

Trendingnow

1

Analysts expected oil to surge above $200 but China has quietly kept prices half of that—and can’t for much longer

2

Corporate America has been draining the world's water. Matt Damon's new campaign calls on Gap, Starbucks, and Amazon to help give it back

3

Marc Lore’s robots make 500 burrito bowls an hour. A human can make 45

1

Analysts expected oil to surge above $200 but China has quietly kept prices half of that—and can’t for much longer

2

Corporate America has been draining the world's water. Matt Damon's new campaign calls on Gap, Starbucks, and Amazon to help give it back

3

Marc Lore’s robots make 500 burrito bowls an hour. A human can make 45

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

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

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

defense
PoliticsDefense
Trump says Europe freeloads on defense. Britain’s own (former) Defense Secretary just agreed
By Jill Lawless, Danica Kirka and The Associated PressJune 11, 2026
3 hours ago
Why is it so hard to get ROI from AI? Because building from first principles isn’t easy
NewslettersEye on AI
Why is it so hard to get ROI from AI? Because building from first principles isn’t easy
By Jeremy KahnJune 11, 2026
6 hours ago
SpaceX lowballed its bankers on fees. Goldman Sachs has another way to win big
Startups & VentureFinance
SpaceX lowballed its bankers on fees. Goldman Sachs has another way to win big
By Shawn TullyJune 11, 2026
7 hours ago
Traders work on the floor of the New York Stock Exchange during afternoon trading on June 10, 2026 in New York City.
InvestingWall Street
Bank of America told investors to ‘take profits.’ Then the Nasdaq fell 7%
By Eva RoytburgJune 11, 2026
7 hours ago
Three ways that Asia’s enterprises are adopting AI—and where they are falling behind
CommentaryOracle
Three ways that Asia’s enterprises are adopting AI—and where they are falling behind
By Garrett IlgJune 11, 2026
8 hours ago
Full Coverage Car Insurance: What It Covers, What It Costs, and Who Needs It
Personal FinanceInsurance
Full Coverage Car Insurance: What It Covers, What It Costs, and Who Needs It
By Joseph HostetlerJune 11, 2026
8 hours ago

Most Popular

Analysts expected oil to surge above $200 but China has quietly kept prices half of that—and can’t for much longer
Energy
Analysts expected oil to surge above $200 but China has quietly kept prices half of that—and can’t for much longer
By Sasha RogelbergJune 10, 2026
1 day ago
Corporate America has been draining the world's water. Matt Damon's new campaign calls on Gap, Starbucks, and Amazon to help give it back
Environment
Corporate America has been draining the world's water. Matt Damon's new campaign calls on Gap, Starbucks, and Amazon to help give it back
By Catherina GioinoJune 9, 2026
3 days ago
Marc Lore’s robots make 500 burrito bowls an hour. A human can make 45
Innovation
Marc Lore’s robots make 500 burrito bowls an hour. A human can make 45
By Amanda GerutJune 9, 2026
2 days ago
Current price of oil as of June 11, 2026
Personal Finance
Current price of oil as of June 11, 2026
By Joseph HostetlerJune 11, 2026
16 hours ago
Pentagon accuses Alibaba, Baidu and BYD, three of China's biggest companies, of supporting the Chinese military
Asia
Pentagon accuses Alibaba, Baidu and BYD, three of China's biggest companies, of supporting the Chinese military
By Kate O'Keeffe and BloombergJune 8, 2026
3 days ago
Costco CEO Ron Vachris rose from forklift driver to the C-suite without a college degree: ‘Don’t chase a title’ is the career advice that got him there
Success
Costco CEO Ron Vachris rose from forklift driver to the C-suite without a college degree: ‘Don’t chase a title’ is the career advice that got him there
By Preston ForeJune 8, 2026
4 days 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.