The paper
Selecting mating pairs with genetic algorithms
- Authors
- B.J. Hayes, R.K. Shepherd, S. Newman
- Published
- 1997
- In
- Proc. Assoc. Advmt. Anim. Breed. Genet. 12
- Collection
- AAABG proceedings
- Listed on the old library
- 25 January 2012

In this summary
- Why mate allocation needs more than simple selection
- How the test was built
- What the genetic algorithm actually found
- How much confidence this result deserves
- Why static methods fall short for harder breeding problems
- Where this kind of tool could be put to use
- Placing the mate selection with genetic algorithms study in context
- Sources and further reading
- Questions
Why mate allocation needs more than simple selection#
Choosing which animals to breed from is only half the job of improving a herd or flock. The other half is deciding which male should be mated to which female, because the pattern of those pairings can itself change the outcome. The paper sets out three scenarios where this matters: when the merit of progeny depends on which breeds or genotypes are combined, as happens with heterosis; when the pattern of allocation affects how much variation appears among the progeny rather than just the average; and when the relationships created among progeny affect inbreeding and genetic connections between herds in later generations.
Earlier work cited in the paper had already explored some of this territory. Kinghorn is credited with showing that both expected merit and broad-sense breeding value depend on the breeds of the animals mated when heterosis is involved. Kinghorn and Shepherd had used an exchange algorithm to increase the spread of estimated breeding values expected in the next generation, and had also pointed out that mate allocation affects the pattern of relationships among progeny, with consequences for long-term inbreeding and for genetic links between management groups.
Against that background, the authors set a narrower, practical question. Could a genetic algorithm, a search technique modelled loosely on natural evolution, find the mating set that maximises total progeny merit in a simple fixed scenario, and how did its efficiency change as the number of candidate animals increased.
How the test was built#
The authors worked with a deliberately simple test case to keep the comparison clean. A fixed array of expected progeny merit was used, representing every possible mating between a set of male and female candidates, as illustrated by the three-by-three example in the paper. In this test the value of any one mating did not depend on which other matings were also chosen, which meant the true optimal mating set could be worked out independently using a linear programming transportation model, with a dummy male or female added to represent animals left unmated. That optimal answer, found by linear programming, became the benchmark against which the genetic algorithm's results were judged.
A genetic algorithm works by treating each possible mating set as a chromosome, a string of numbers where the value at each position identifies which male is mated to a particular female. An initial population of these chromosomes is created at random, each one scored using an evaluation function based on the progeny merit values. Pairs of chromosomes are then selected for breeding with a probability tied to their fitness, crossed over at a random point to produce offspring chromosomes, and subjected to a mutation operator that randomly alters some of the values. The paper walks through a small worked example with a population of four chromosomes to show exactly how selection, crossover and mutation combine to produce a new generation.
To test how the approach scaled, the authors simulated equal numbers of male and female candidates at four sizes: 4, 5, 10 and 20 of each sex. An independent, randomly chosen progeny merit value was assigned to every possible pairing, mirroring the structure of the worked example. Population size for the genetic algorithm was 5 when there were 4 or 5 candidates of each sex, rising to 30 when there were 10 or 20 candidates of each sex. The rate at which mutation was applied was allowed to vary, climbing higher whenever variety among the candidate solutions in the population began to run out, a mechanism intended to stop the search settling prematurely on a weak solution.

What the genetic algorithm actually found#
The headline result is straightforward: the genetic algorithm found the optimal mating set, as independently verified by linear programming, in every single case tested. That held across all four candidate-set sizes, from the smallest with 4 candidates of each sex up to the largest with 20.
What changed with size was how hard the algorithm had to work to get there. Averaged over 100 replications, the number of generations needed to reach the optimal solution rose sharply as the candidate pool grew: 7.68 generations (plus or minus 0.69) at 4 candidates of each sex, 29.53 (plus or minus 2.51) at 5, 1132.24 (plus or minus 11.32) at 10, and 104778.21 (plus or minus 20.40) at 20. The paper also reports evaluation efficiency, defined as the number of mating sets actually evaluated by the algorithm divided by the total number of possible mating sets, where a smaller figure means the search covered proportionally less of the whole solution space to reach the answer. That efficiency measure improved as the mating set size increased, moving from 1.60 at 4 candidates to 0.000072 at 20, noting that the algorithm may revisit solutions it has already tried.
Put together, these results describe an algorithm that becomes computationally more demanding in absolute terms as the problem grows, generation counts rising by orders of magnitude, but relatively more efficient in the sense that it explores an ever-smaller fraction of the total possible mating combinations to land on the best one.
How much confidence this result deserves#
It is worth being clear about the scope of this test before drawing any practical lesson from it. The scenario used throughout is one where the value of each mating is fixed and independent of every other mating made, which is exactly the condition under which linear programming already gives a guaranteed correct answer. The genetic algorithm was being checked against a problem that a simpler, established method could already solve exactly, rather than against the harder, interdependent problems the authors say genetic algorithms are ultimately meant for.
That is a sensible way to validate a new tool, because it lets the authors confirm the genetic algorithm reaches the same answer as a known-correct method before trusting it anywhere more complicated. We would treat this result as a demonstration of feasibility on a controlled test case rather than as direct evidence of how the algorithm would perform on the messier mate-selection problems involving inbreeding, parameter estimation or herd connections that the paper identifies as the real target application, since none of those complications were present in the test reported here.
The repeated trials, 100 replications at each candidate-set size, give some sense of the consistency of the generation counts and evaluation efficiencies reported, and the standard errors attached to the generation figures suggest the algorithm's behaviour was reasonably stable within each scenario rather than wildly erratic from run to run.
Why static methods fall short for harder breeding problems#
The paper draws a clear distinction between genetic algorithms and linear programming as classes of optimisation tool. Linear programming requires that every variable feeding into the objective function stay fixed between generations of the calculation, which is exactly what allowed it to serve as the benchmark in this test. Genetic algorithms, by contrast, are described as dynamic optimisation techniques, able in principle to cope with matings whose worth shifts depending on earlier choices, current choices and choices still to come.
This distinction matters because the scenarios the authors flagged at the outset, heterosis effects, control over the spread of progeny breeding values, and management of inbreeding and genetic connections across generations, all involve exactly this kind of interdependence. A static technique that assumes each mating's value is fixed cannot represent a problem where selecting one pair changes what the next best pair is worth.
The authors reference earlier work by Kinghorn and Shepherd suggesting that building these issues directly into an objective function describing net economic gain, then optimising it with a suitable mate selection algorithm, can effectively generate a breeding program design as an output rather than an input. The paper frames the dynamic character of genetic algorithms as a plausible route to that kind of design, provided enough care is taken up front so that the fitness criterion weighs the traits and risks that matter appropriately.

Where this kind of tool could be put to use#
The authors point to large-scale breeding operations as a natural setting for this sort of search tool, singling out the pig industry as an example where the number of candidate mating pairs can be very large and where inbreeding considerations mean the pattern of mate allocation genuinely does influence mean progeny merit, not just its spread. In such settings, exhaustively checking every possible combination of mating pairs quickly becomes impractical, which is the gap a search procedure like a genetic algorithm is designed to fill.
Single-pair mating was assumed throughout the reported tests, but the paper notes that the same framework can accommodate fixed or variable mating ratios, meaning the approach is not inherently limited to one male mated to one female. That flexibility is mentioned rather than tested here, so it remains a stated capability rather than a demonstrated result in this particular paper.
Two further papers in this index share authors with this one: mate selection algorithms and major genes in breeding decisions from 2001, and choosing both sire and dam with mate selection software from 1999. A separate study on meat quality in Brahman crosses also lists Newman among its authors.
Placing the mate selection with genetic algorithms study in context#
This paper appeared in volume 12 of the proceedings of the Association for the Advancement of Animal Breeding and Genetics, a conference series that has run every second year since the organisation's founding and makes its proceedings freely available. The wider set of AAABG conference proceedings gathered in this index holds related work from the same research community across the years, and the paper itself can be read in full through the AAABG proceedings archive.
Other titles in the same proceedings field dealt with related algorithmic questions in breeding, among them a paper on REML algorithms in multivariate analyses, a paper on genome wide selection and genetic algorithms in dairy cattle, and a paper describing a method for testing algorithms that add genetic marker data into BLUP. These share only a word in their titles with the present study, and nothing about their content is described here.
The specific contribution of this paper is narrow but clear: a controlled demonstration that a genetic algorithm can match the exact answer given by linear programming on a fixed mate-allocation problem, with generation counts and evaluation efficiencies reported across mating set sizes from 4 to 20 candidates of each sex, setting up the case for applying the same search method to problems that linear programming cannot handle at all.
Sources and further reading#
- The paper at AAABG proceedings (aaabg.org), free PDF
- AAABG proceedings online: the association's own site, where its proceedings are free to read
- Animal Genetics and Breeding Unit
- Australian Meat Processor Corporation: research for red meat processors
Questions#
What is a genetic algorithm in this context?
It is a search procedure modelled on natural genetics and evolution, using simple mechanisms such as reproduction, crossover and mutation. Each possible mating set is represented as a chromosome, scored for fitness using expected progeny merit, and new generations of mating sets are bred from the fittest existing ones until an optimal or near-optimal solution emerges.
Did the genetic algorithm actually find the best mating pairs?
Yes, in every case tested the genetic algorithm found the same optimal mating set as linear programming, which served as the independent benchmark. What varied was how many generations it took to get there, rising sharply as the number of male and female candidates increased from 4 up to 20 of each sex.
Why not just use linear programming instead of a genetic algorithm?
Linear programming needs every variable in the objective function to stay fixed, which works only when each mating's value is independent of all others. The paper argues genetic algorithms are better suited to harder problems where one mating's value depends on other matings over time, such as those involving inbreeding or genetic connections between herds.
Which industries might use mate selection with genetic algorithms?
The authors point to large-scale operations such as the pig industry, where the number of candidate mating pairs is large and inbreeding considerations mean mate allocation genuinely affects average progeny merit, as a plausible setting where a search tool like this could be more practical than checking every possible combination.
Written by the Livestock Library team from the published paper by B.J. Hayes, R.K. Shepherd and S. Newman (1997), and released on 4 November 2026. It is our account of the research in our own words, not the paper itself. For anything you plan to act on, read the original.
Are you an author or publisher of this paper? If something here is wrong, or you would like it changed or removed, tell us and we will fix it.