← Latest papers
💻 computer science

The Traveling Thief Problem with Time Windows: Benchmarks and Heuristics

This paper introduces the Traveling Thief Problem with Time Windows (TTP-TW), a new variant relevant to real-world scenarios where goods can only be collected within specific intervals, and proposes a novel heuristic algorithm that outperforms adapted existing methods on newly created benchmark instances.

Original authors: Helen Yuliana Angmalisang, Frank Neumann

Published 2026-04-09
📖 6 min read🧠 Deep dive

Original authors: Helen Yuliana Angmalisang, Frank Neumann

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a thief (let's call him "The Traveling Thief") who has just broken into a city full of houses. Your goal is simple: steal as much valuable stuff as possible and get out with a high profit.

But this isn't a normal heist. This paper introduces a much more complicated version of the game with three major twists:

  1. The Heavy Backpack: You have a backpack with a weight limit. The heavier your backpack gets, the slower you walk.
  2. The Time Windows: You can't just walk into any house whenever you want. Each house has a specific "opening time" (like a shop that only opens between 9:00 AM and 10:00 AM). If you arrive too early, you have to wait outside. If you arrive too late, the door is locked, and you get a penalty (or the whole plan fails).
  3. The Rental Fee: You are renting the backpack by the hour. The longer your trip takes (because you are walking slowly or waiting for doors to open), the more money you lose.

The Problem:
The thief needs to figure out two things at the same time:

  • The Route: Which order should I visit the houses to minimize travel time?
  • The Loot: Which items should I steal? (Stealing a heavy TV might slow you down so much that you miss the next house's opening time, costing you more in rental fees than the TV is worth).

This is the Traveling Thief Problem with Time Windows (TTPTW). It's a nightmare for computers because changing your route changes your speed, which changes your arrival time, which might make you miss a door, which changes which items you can steal. It's a giant, tangled web of cause-and-effect.

The Old Ways (And Why They Failed)

The researchers tried using existing "smart thief" algorithms (like S4, S5, C5) and "smart route" algorithms (like LKH-3).

  • The Route Algorithms: These are great at finding the shortest path, but they don't care about the backpack weight or the time windows. They often send the thief to a house at 8:55 AM when the door doesn't open until 9:00 AM, or they send him there so late he misses it entirely.
  • The Thief Algorithms: These are good at picking items, but they assume the thief can go anywhere anytime. When you add strict time windows, these algorithms get stuck. They try to solve the puzzle, but the "feasible" area (where a solution actually works) becomes so tiny that they can't find it.

The Result: In many test cases, the old algorithms found zero working solutions. They were like a GPS that tells you to drive through a wall because it doesn't know the wall is there.

The New Solution: The "Dual Search" Algorithm (DSEA)

The authors created a new algorithm called DSEA (Dual Search Evolutionary Algorithm). Think of this as a super-smart thief coach who uses a two-pronged approach:

  1. The "Smart Start" (Tour Initialization):
    Instead of guessing a random route, the coach uses a special trick to build the first route. It looks at the time windows and the speed limits to create a path that is likely to work right from the start. It's like checking the traffic and store hours before you even leave the house, rather than just driving and hoping for the best.

  2. The "Dual Search" (Two Types of Tweaks):
    Once the coach has a starting plan, it tries to improve it using two different strategies simultaneously:

    • The "Swap" Strategy: It swaps the order of two houses in the route to see if that saves time.
    • The "Insert" Strategy: It moves a house to a different spot in the route.

    The genius of DSEA is that it doesn't just fix the route; it constantly re-evaluates what to steal based on the new route. It's a continuous loop of: Change the path -> Recalculate the speed -> Check the time windows -> Adjust the loot.

The Experiments: Testing the Thief

The researchers created a new set of "heist scenarios" (benchmarks) with different levels of difficulty:

  • Loose Time Windows: Shops are open most of the day. (Easy mode).
  • Tight Time Windows: Shops are only open for 10 minutes. (Hard mode).
  • Different City Sizes: From small towns (51 houses) to massive metropolises (1,000 houses).

The Results:

  • The Old Guard: The old algorithms (S4, S5, LKH-3) mostly failed. They couldn't find a single valid plan in many of the tight scenarios. They were like a thief who keeps getting locked out.
  • The New Coach (DSEA): The new algorithm found valid solutions almost every time.
    • DSEA1 (The "No-Clutter" Version): Interestingly, the best version of the new algorithm was the one that didn't try to constantly "fix" the loot list after every tiny change. It focused on exploring new routes and only decided on the final loot at the very end. It was like a thief who focuses on the path first and grabs whatever fits at the end, rather than constantly dropping and picking up items while walking.
    • DSEA3 (The "Integrator"): This version was better for very specific, tricky scenarios where the loot and the route were tightly linked, but generally, the simpler approach won.

The Big Takeaway

This paper solves a real-world problem. Imagine emergency services (ambulances that must arrive within a specific time window) or food delivery (drivers who must pick up food at a restaurant and drop it off at a customer's house within a specific time, while managing the weight of the food).

The authors showed that to solve these complex, real-world puzzles, you can't just use old tools. You need a new approach that understands that route, weight, and time are all connected. Their new "Dual Search" method is like giving the thief a smartwatch, a map, and a calculator all in one, allowing him to navigate the tightest time windows and heaviest backpacks to make the most profit.

In short: They took a problem that was too hard for old computers to solve, built a new "smart thief" algorithm, and proved it can find solutions where everyone else was stuck staring at a locked door.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →