Skip to main content

POPULATION

Constant POPULATION 

pub const POPULATION: usize = 16;
Expand description

The population size every NSGA-II comparison in this oracle runs.

A genetic algorithm’s front resolution can never exceed its population, and its convergence speed is measured in generations — one generation costs population trials, so the two pull against each other under a fixed budget. 16 is where the measured sweep landed: large enough to resolve a front (the oracle asserts at least 8 distinct trade-offs), small enough that a gate-sized budget buys the ~30 generations a population needs to arrive (measured on ZDT1: mean g falls 5.8 → 3.7 over 20 generations and only reaches 1.1 by 30; at 100 it is 1.05 and the population spans the whole front). Every quality claim in the oracle is a claim about a population that has arrived; below 20 generations the measurement is of the budget, not of the algorithm.