Cellar Puzzle

Right now, my cellar looks like one of those sliding-tile puzzles, the kind where you can only move a piece if there’s an empty square next to it.
The harvest is in, and the 2026 vintage is fermented. But the 2025 vintage is still resting in barrels, and those barrels are needed for the new wine. So the 2025 has to move into tanks first, where it waits and is prepared for bottling. Then each empty barrel has to be cleaned and steamed before the 2026 can move in.
On paper, that sounds straightforward. In practice, there is one catch: almost every container in the cellar is full at the same time. Each move depends on another one having happened first. If I get the order wrong, I end up in the situation every winemaker fears: a full tank of wine in my hands, and no empty container to put it in. At that point, there’s no clever way out.
In my previous life as a quantitative analyst, this kind of problem had a name: a scheduling problem under constraints. So this year I did what any homesick mathematician would do, and with some help from AI, I wrote a small program that plans the whole sequence of operations from start to finish. It tells me which barrel to empty into which tank, when to steam which barrel, and, most importantly, it checks that I never run out of containers along the way.
As I prepare the 2025 vintage for bottling, I taste each wine to make sure it is as expected. This vintage is tasting beautifully. Just the right balance between freshness and ripe fruit, exactly the level of elegance that I look for. I think this vintage will be one of my absolute favorites and I can’t wait to sharing it with you.




Comments