A Hybrid Genetic Algorithm for Multidepot and Periodic Vehicle Routing Problems: Biased-Fitness Survivor Selection Never Removes an Elite Individual Outside XResearch Paper
Motivation
Genetic algorithms with local search ("memetic" or hybrid genetic algorithms) are among the most effective heuristics for vehicle routing. Their recurring weakness is premature convergence: selection and local improvement both favour good individuals, so the population fills with near-copies of a few solutions and the search stalls. Vidal, Crainic, Gendreau, Lahrichi and Rei addressed this in their hybrid genetic search with adaptive diversity control (HGSADC) for multi-depot and periodic vehicle routing (CIRRELT-2010-34, 2010; journal version Operations Research 60(3), 2012). Instead of judging an individual by its cost alone, HGSADC ranks it by a Biased Fitness that mixes its cost rank with its rank in contribution to population diversity, and it uses that score to decide which individuals survive.
Trading cost for diversity raises an obvious worry: a very good but unoriginal solution could be discarded. The paper answers it with its only stated result, an elitism property (Section 4.6, an unnumbered Proposition with a three-sentence proof): the best individuals by cost are never discarded, as long as they are not clones. The HGSADC framework has since become the basis of state-of-the-art codes for many routing variants, and this guarantee is the one formal statement on which its population management rests.
Setting
HGSADC keeps two subpopulations (feasible and infeasible) and manages each separately. Everything below concerns one subpopulation; no routing object is involved.
A population is a finite set of individuals, with . Each individual has a penalized cost , its fitness (lower is better); a distance to every other individual; and a diversity contribution , which in the paper is the mean distance from to its nearest neighbours in (higher is better).
The normalized ranks of relative to the current population are
so that the best individual has rank and the worst rank . For an integer parameter , the Biased Fitness is (equation (7))
An individual is a clone in if some other has or . With the current best solution, is the set of individuals of , other than , that have a clone.
Survivor selection. When a subpopulation reaches individuals, of them are discarded one at a time: if , an individual of maximum in is removed; otherwise an individual of maximum in the whole population. After each removal the distances, , the ranks and are recomputed on the remaining population. An individual is among the best of in terms of fitness when fewer than members of have strictly smaller cost.
Formalization targets
Goal: Section 4.6, Proposition
For every run of the survivor-selection procedure that removes individuals from and ends at , with :
Milestones: the three sentences of the proof (p. 17)
- If , the individual with the worst fitness has and .
- An individual among the best has
- One removal step does not remove an individual among the best.
Significance
The result. The Proposition explains what the parameter means: it is the number of top individuals whose survival is guaranteed from one generation to the next, whatever their diversity contribution. It lets the algorithm designer push for diversity through without risking the loss of the best solutions, and it is what makes the "removal zone" of the paper's Figure 4 a meaningful picture. The same Biased Fitness and survivor rule are reused in later HGS variants, so the guarantee transfers to them.
Formalizing it. The proof in the paper is three sentences long, but it leaves several things implicit: what happens with ties in cost or diversity, why "the" worst individual has rank exactly , why the coefficient of is nonnegative, and why the one-step argument survives successive removals with everything recomputed. A machine-checked version settles each of these. To our knowledge no formalization of this or any other population-management guarantee for genetic algorithms exists.
Difficulty
The arithmetic of each step is elementary. The difficulty is in reading the statement correctly. "The individual with the worst fitness has rank 1" fails when costs tie; it holds only in the branch , where equal costs are excluded because two individuals with equal cost are both clones and at most one of them is the best solution. The inequality needs , which the Proposition does not state: it follows from the population sizes ( reduced to , with , , Table 1). Without it the Proposition is false: if and , some elite individual must be removed. Finally, the one-step argument must be iterated: the population, its ranks and change after each removal, and one must check that the hypotheses on persist.
Formalization scope
Individuals are elements of an arbitrary type with decidable equality; populations are Finset α. Costs, distances and diversity contributions are real-valued, and is an arbitrary function of (population, individual), which includes the paper's equation (5); the goal is therefore stated for every diversity measure. Explicit readings of loose phrases:
- "normalized ranks … where the best individual has rank 0 and the worst has rank 1": the number of strictly better individuals divided by , in (competition ranking; tied individuals share the better rank);
- "the nbElit best individuals … in terms of fitness": fewer than members with strictly smaller cost;
- "Update the distance measures and X, and repeat": , ranks and are recomputed on the current population at each of the steps;
- ties in "maximum Biased Fitness" are broken arbitrarily, and the goal quantifies over every run;
- the population-size condition is an explicit hypothesis, taken from Section 4.6 and Table 1;
- the best solution is a parameter, not required to lie in (for the infeasible subpopulation it is the incumbent feasible solution); may itself be .
A formalization that freezes the initial Biased Fitness, that takes the ranks as arbitrary functions into , that states the existence of one good run, or whose size hypothesis cannot be met, would not be this Proposition. The supporting definition file contains the ranks, the Biased Fitness, clones, , a removal step and a run of steps; no further library is needed beyond Finset cardinalities. Proofs of the three milestones and of the goal are welcome, as is a formalization of the paper's Hamming distance (6) and diversity contribution (5) as an instance of .
Selected references
- T. Vidal, T. G. Crainic, M. Gendreau, N. Lahrichi, W. Rei, A Hybrid Genetic Algorithm for Multi-Depot and Periodic Vehicle Routing Problems, technical report CIRRELT-2010-34, July 2010. https://www.cirrelt.ca/documentstravail/cirrelt-2010-34.pdf (the version cited throughout; Section 4.6, pp. 16–17).
- T. Vidal, T. G. Crainic, M. Gendreau, N. Lahrichi, W. Rei, A Hybrid Genetic Algorithm for Multidepot and Periodic Vehicle Routing Problems, Operations Research 60(3):611–624, 2012. https://doi.org/10.1287/opre.1120.1048
- C. Prins, A simple and effective evolutionary algorithm for the vehicle routing problem, Computers & Operations Research 31(12):1985–2002, 2004. https://doi.org/10.1016/S0305-0548(03)00158-8
- K. Sörensen, M. Sevaux, MA|PM: memetic algorithms with population management, Computers & Operations Research 33(5):1214–1225, 2006. https://doi.org/10.1016/j.cor.2004.09.011