Imagine you are searching for the lowest point in a rugged mountain range — at night, with only a flashlight. You walk downhill as far as you can, then stop: you are at a local optimum, the lowest point visible from where you stand. But the deepest valley might be ten kilometres away, on the other side of a ridge.
Most optimization algorithms face exactly this trap. Local search improves a solution step by step until no single change makes it better. The trouble is, "no single change" depends entirely on what you mean by change — the neighborhood structure you are using. Change the structure and a wall can become a door.
Variable Neighborhood Search (VNS), introduced by Pierre Hansen and Nenad Mladenović in 1997, turns this observation into a rigorous strategy. When local search stalls inside neighborhood k, VNS doesn't restart randomly: it shakes the solution with a larger perturbation from neighborhood k+1, then runs local search again from the new starting point. If the result is better, reset to the smallest neighborhood and keep searching; if not, widen the shake again.
The key insight is that different neighborhoods expose different structure: a swap-two-elements move cannot escape a basin that requires four simultaneous changes, but a block-reversal move can. By cycling through an ordered list of neighborhoods of increasing size, VNS systematically probes escape routes that smaller moves can never find — without surrendering the efficiency of local search.
Comments
Loading comments...