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.
Glossary
Tabu Search

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.
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.
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.
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
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
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
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
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
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
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.
| Feature | Tabu Search | Simulated Annealing | Genetic Algorithm | Large 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 |
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Tabu search is part of a broader family of optimization techniques. These related concepts define the landscape of combinatorial problem-solving for last-mile delivery.
Simulated Annealing (SA)
A probabilistic metaheuristic that escapes local optima by accepting worse solutions with a decreasing probability, mimicking the cooling of metal. Unlike Tabu Search's deterministic memory, SA uses stochastic acceptance criteria.
- Key mechanism: Metropolis criterion for uphill moves
- Cooling schedule: Controls the convergence rate
- Trade-off: Simpler to implement but lacks explicit memory structures
Genetic Algorithm (GA)
A population-based metaheuristic inspired by natural selection that evolves solutions through crossover, mutation, and selection. Contrasts with Tabu Search's single-solution trajectory approach.
- Population diversity: Maintains multiple candidate solutions
- Crossover operator: Combines parent routes to create offspring
- Fitness function: Evaluates solution quality for selection pressure
Large Neighborhood Search (LNS)
An iterative heuristic that destroys and repairs large portions of a solution to escape local optima. Tabu Search can be embedded within LNS as the repair operator for sub-problems.
- Destroy operator: Removes a subset of customer visits
- Repair operator: Reinserts removed visits optimally
- Synergy: Tabu lists prevent repair cycles during reinsertion
Adaptive LNS (ALNS)
Extends LNS by dynamically selecting from multiple destroy and repair operators based on their past performance. The adaptive scoring mechanism mirrors Tabu Search's adaptive memory concept.
- Operator weights: Updated via roulette-wheel selection
- Score adjustments: Rewards for new global bests and improving solutions
- Integration: Tabu tenure can adapt based on search phase
Mixed Integer Programming (MIP)
An exact optimization method where decision variables are constrained to integer values. Tabu Search is a heuristic alternative when MIP formulations become computationally intractable for large VRP instances.
- Branch-and-bound: Systematic tree search for optimality
- Cutting planes: Tighten the linear relaxation
- Hybrid approach: Tabu Search provides warm-start solutions for MIP solvers

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us