Inferensys

Glossary

Tabu Search

A metaheuristic optimization algorithm that uses short-term memory structures (tabu lists) to forbid recently visited solutions, preventing cyclical behavior and enabling escape from local optima.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
METAHEURISTIC OPTIMIZATION

What is Tabu Search?

Tabu Search is a metaheuristic optimization algorithm that guides a local search procedure to explore the solution space beyond local optimality by using adaptive memory structures to avoid cycling back to previously visited solutions.

Tabu Search is a metaheuristic that enhances local search by maintaining a short-term memory structure, called the tabu list, which records recently visited solutions or forbidden moves. This mechanism prevents the algorithm from immediately reversing recent steps and becoming trapped in local optima, forcing a guided exploration of the broader search space.

Developed by Fred Glover in 1986, the algorithm strategically accepts non-improving moves to escape local optima, using aspiration criteria to override tabu restrictions when a forbidden move leads to a globally superior solution. In last-mile logistics, Tabu Search efficiently solves complex Vehicle Routing Problem (VRP) variants by iteratively swapping customer assignments between routes while avoiding previously explored, suboptimal fleet configurations.

METAHEURISTIC MECHANICS

Key Features of Tabu Search

Tabu Search is a metaheuristic that uses adaptive memory structures to guide a local search procedure, enabling it to escape local optima and systematically explore the solution space for complex combinatorial problems like vehicle routing.

01

Short-Term Memory (Recency)

The core mechanism that prevents cycling by forbidding moves that revert to recently visited solutions. A tabu list stores solution attributes (e.g., swapped edges, moved nodes) for a fixed number of iterations called the tabu tenure. Any move possessing an attribute on this list is classified as tabu and temporarily prohibited, forcing the search to explore new regions of the solution space.

  • Tabu Tenure: The number of iterations an attribute remains forbidden
  • Attribute-Based: Stores move characteristics, not full solutions, for memory efficiency
  • Dynamic Tenure: Can be randomized within a range (e.g., 5-10 iterations) to add robustness
5-10
Typical Tabu Tenure Range
02

Aspiration Criteria

A mechanism that overrides the tabu status of a move when it leads to a solution better than the best-so-far global optimum. This prevents the algorithm from missing superior solutions simply because they are temporarily forbidden. The most common form is the global aspiration criterion: if a tabu move produces a solution with an objective value strictly better than any previously encountered, the tabu restriction is lifted and the move is accepted.

  • Default Aspiration: Override if new solution > global best
  • Search Diversification: Prevents memory from becoming overly restrictive
  • Custom Criteria: Can be extended to include solution diversity or constraint satisfaction thresholds
03

Intensification Strategies

Techniques that focus the search on promising regions of the solution space by returning to elite solutions and exploring their neighborhoods more thoroughly. Intensification often involves storing a set of high-quality, diverse solutions during the search and periodically restarting from them with modified parameters or focused neighborhood operators.

  • Elite Set: Maintains a pool of the best solutions found
  • Path Relinking: Generates new solutions by exploring trajectories between elite solutions
  • Frequency-Based Memory: Uses long-term memory to identify common attributes in good solutions and bias the search toward them
04

Diversification Strategies

Techniques that drive the search into unexplored regions of the solution space to avoid stagnation. Using long-term frequency memory, the algorithm penalizes moves or solution attributes that have been used frequently, encouraging exploration of less-visited areas. This is often implemented by adding a penalty term to the objective function based on the frequency count of move attributes.

  • Frequency Penalty: Adds a cost proportional to how often an attribute has appeared
  • Restart Mechanisms: Periodically reinitializes the search from a new random solution
  • Strategic Oscillation: Alternates between feasible and infeasible regions to cross barriers in the search space
05

Neighborhood Structure

The set of solutions reachable from the current solution by applying a single, well-defined move operator. For routing problems, common operators include 2-opt (reversing a segment of a route), Or-opt (relocating a segment), and relocate (moving a single customer). The efficiency of Tabu Search depends heavily on the neighborhood's ability to connect the solution space while remaining computationally tractable to evaluate.

  • 2-opt: Reverses a subsequence to remove edge crossings
  • Relocate: Moves a node from one position to another
  • Exchange: Swaps the positions of two nodes
06

Candidate List Strategies

A computational acceleration technique that restricts the neighborhood evaluation to a subset of promising moves rather than exhaustively examining all possibilities. For large-scale routing problems, evaluating every possible move is prohibitive. Candidate lists use heuristics to pre-filter moves, such as only considering swaps between nodes that are geographically nearby or have high potential for improvement.

  • Nearest Neighbor: Only evaluate moves involving nodes within a distance threshold
  • Elite Candidate: Maintain a list of historically successful move types
  • Don't Look Bits: Skip nodes that did not improve the solution in the last iteration
ALGORITHM COMPARISON

Tabu Search vs. Other Metaheuristics

A comparative analysis of Tabu Search against other common metaheuristics used in last-mile delivery optimization, evaluating their mechanisms for escaping local optima and guiding the search process.

FeatureTabu SearchSimulated AnnealingGenetic AlgorithmLarge Neighborhood Search

Escape Mechanism

Deterministic memory-based prohibition

Probabilistic acceptance of worse solutions

Population-based crossover and mutation

Heuristic-based destruction and repair

Memory Structure

Explicit short-term (recency) and long-term (frequency) memory

No explicit memory; relies on temperature parameter

Implicit memory via population gene pool

No explicit memory; adaptive weights in ALNS variant

Cycling Prevention

Intensification Capability

Medium-term memory for promising region exploration

Controlled by cooling schedule

Elitism and selection pressure

Controlled by operator selection and acceptance criteria

Diversification Capability

Frequency-based long-term memory penalizes common attributes

High temperature phase allows broad exploration

Mutation operator and population diversity

Large destruction percentage (up to 40%)

Parameter Sensitivity

Tabu tenure length and aspiration criteria

Initial temperature and cooling rate

Population size, crossover rate, mutation rate

Number of destroy/repair operators and removal percentage

Convergence Speed

Moderate; guided by deterministic memory

Slow; requires logarithmic cooling for optimality guarantee

Slow; evaluates many solutions per generation

Fast; focuses on promising neighborhoods

Deterministic Outcome

TABU SEARCH EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about how Tabu Search works, its mechanisms, and its application in solving complex optimization problems like last-mile delivery routing.

Tabu Search is a metaheuristic optimization algorithm that guides a local search procedure to explore the solution space beyond local optimality by using adaptive memory structures to avoid cycling back to previously visited solutions. It works by iteratively moving from a current solution to the best admissible neighbor, even if that neighbor is worse than the current solution, thereby escaping local optima. The algorithm maintains a tabu list—a short-term memory structure that records recently visited solutions or specific solution attributes—and forbids moves that would revert to those states for a specified number of iterations, known as the tabu tenure. This deterministic prohibition forces the search into new, unexplored regions of the solution space. Additionally, aspiration criteria can override the tabu status if a forbidden move leads to a solution better than the global best found so far. The process continues until a stopping condition, such as a maximum number of iterations or a time limit, is met.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.