The grand tour of Aachen

2 minute read

Published:

Some experiments start small. A simple question, a little curiosity—just a modest goal of optimizing a walk between fountains. But then, the dataset gets bigger. The scope expands. And suddenly, you’re looking at a 101 km optimized walking tour of Aachen, covering every fountain, sculpture, garden, and Denkmal (monument) the city has to offer.

This was not the original plan.

It all started with my first fountain-optimizing blog post, where I used the Traveling Salesman Problem (TSP) to find the best route between Aachen’s fountains. But then I stumbled upon a much larger dataset from Wikipedia—one that included not just fountains, but sculptures, monuments, and gardens too. At this point, it was clear: I had to go all in.

Turns out, optimizing a 101 km route with hundreds of stops is no joke. Running the simulated annealing algorithm on my 2015 MacBook Pro took nearly a full day. Watching my laptop churn through permutations at a pace best described as leisurely made me question some of my life choices. But, in the end, it worked!

As before, I fed the location data into a TSP solver using simulated annealing, letting the algorithm work its magic. The result? A path that covers all major artistic and historical landmarks in Aachen in just over 100 km. It’s still a long walk, but hey, at least it’s optimized.

Let’s be honest: walking this entire route in one go is completely out of the question, at least based on my current fitness levels. Running it? Absolutely not. But biking—biking might still be an idea. A very bad idea, but an idea nonetheless.

That said, it’s probably best not to make this an actual goal. I need to remind myself that just because something is computationally interesting doesn’t mean I have to physically suffer for it. Probably.

If the original fountain walk was a fun side quest, this is the full-scale main mission. If anyone out there feels like attempting the Grand Tour of Aachen next summer, let me know—I might need company (no seriously).

You can download the larger KML file to import into Google Maps for your own adventure.

Who knew a simple walk could turn into an optimization problem? Well, probably everyone who knows me.