Independent research index. Livestock Library today is an Australian livestock-software business. We are not affiliated with the former Livestock Library repository that the Sheep CRC and Beef CRC built and AGBU managed, which closed in 2026. Summaries here are our own writing; the research belongs to its authors and publishers. About this index
Research summary · AAABG proceedings

Economic values for NZ dairy cattle estimated with an evolutionary algorithm

Starting from a modelled national herd of 3.28 million lactating cows spread over 1.32 million hectares of pasture, Lopez-Villalobos, Garrick and Holmes set out to calculate economic values dairy cattle breeders could use to rank bulls and cows on milk, fat, protein and live weight, by letting a computer search for the figures that make the most money rather than deriving them from a fixed formula.

By the Livestock Library teamPublished 1 November 20267 min read

The paper

Estimation of economic values using an evolutionary algorithm with a New Zealand dairy cattle example

Authors
N. Lopez-Villalobos, D.J. Garrick, C.W. Holmes
Published
2001
In
Proc. Assoc. Advmt. Anim. Breed. Genet. 14
Collection
AAABG proceedings

We know of no online copy of this paper today. A university or state library that holds the Proceedings of the Association for the Advancement of Animal Breeding and Genetics is the place to ask.

Reference: Lopez-Villalobos, N., Garrick, D.J. and Holmes, C.W. (2001) Estimation of economic values using an evolutionary algorithm with a New Zealand dairy cattle example. Proc. Assoc. Advmt. Anim. Breed. Genet. 14.
Dairy cows grazing pasture, illustrating research into economic values dairy cattle breeding programs
Illustration generated for this summary; not a photograph from the study.
In this summary
  1. Why a selection objective needs accurate economic values dairy cattle breeders trust
  2. Modelling the whole New Zealand dairy industry
  3. How the evolutionary algorithm searched for an answer
  4. What the search returned
  5. Weighing the evidence
  6. Where this fits among other breeding objective methods
  7. Practical implications for breeding decisions
  8. Sources and further reading
  9. Questions

Why a selection objective needs accurate economic values dairy cattle breeders trust#

Breeding programs for dairy cattle rank animals on an index built from relative economic values multiplied by estimated breeding values for each trait. Getting those economic values right matters because they decide which bulls and cows get used, and therefore which traits improve fastest across the national herd.

The paper explains that the profit function behind these values is often not a simple equation. It is more usually a computer model full of interacting effects, such as average production per cow depending on herd age structure, which itself depends on survival rates. A model like that cannot be differentiated algebraically in the ordinary way, so economic values have to be worked out by numerical methods instead.

The authors mention a few such numerical methods already in use, including comparative budgeting and the Newton-Raphson method, before turning their attention to evolutionary algorithms, which borrow ideas from natural selection and genetics. Candidate solutions are represented as vectors of values that are repeatedly recombined, mutated and tested for fitness across many generations until a workable answer emerges.

This paper applies one particular evolutionary algorithm, differential evolution, developed by Price and Storn (1997), to a full bioeconomic model of the New Zealand dairy industry. The goal was to see whether this numerical search method could recover economic values consistent with those already used in practice, while coping with a more complicated profit function than simpler models allow.

Modelling the whole New Zealand dairy industry#

The bioeconomic model at the centre of the study, developed by Lopez-Villalobos and colleagues in earlier work, represents the entire national dairy industry rather than a single farm. It starts with 3.28 million lactating cows carrying a representative age structure and breed composition, and a fixed dairying area of 1.32 million hectares.

Feed supply was set at 12,000 kg of pasture dry matter utilised per hectare each year, with an energy content of 10.5 MJ metabolisable energy per kilogram of dry matter. Separate allowances covered maintenance, milk output, pregnancy and heifer growth, and the number of cows kept in the model was adjusted so the national herd's feed needs matched what the pasture could supply.

Each cow's expected production figures for body weight and her three lactation traits were built from breed averages, the estimated breeding values passed down from her parents, and factors that adjust for her age. Industry profit was then worked out as income from culled animals and overseas sales of dairy products, minus on-farm running costs and the costs of turning milk into saleable product.

Milk in the model was processed into whole milk powder, skim milk powder, cheese and a combined butter and casein category, in fixed proportions. Because the mix of dairy products made from a given milk composition affects processing costs, the model lets the composition of milk feed back into profitability in a way that simpler models do not capture.

Pasture dry matter measurement frame on a grazed paddock
Illustration generated for this summary; not a photograph from the study.

How the evolutionary algorithm searched for an answer#

An individual in the algorithm was defined as a set of four economic values, one each for milk, fat and protein yield and for mature cow live weight. The population size was held at 20 individuals per generation, with initial values drawn at random from a uniform distribution between 0 and 10.

Two control settings governed the search: a scaling factor of 0.8, which controls how much perturbation is applied to parameter estimates each round, and a recombination rate of 0.5. The algorithm ran for 200 generations before stopping.

Within the model, four different mating pathways were used to generate the next generation, matching sires and dams in different combinations to breed replacement males and females. Parents were ranked on an index built from the same traits, and expected genetic progress was calculated using genetic and phenotypic parameters taken from Spelman and Garrick (1997), based on realistic numbers of lactation records per cow and per progeny-tested bull.

Fitness, the quantity the algorithm tried to maximise, was a measure of accumulated profit relative to feed use, worked out per unit of dry matter consumed each year over a 15-year horizon. The same fitness measure let the authors compare the evolutionary algorithm's results directly against economic values calculated the conventional way, as the change in profit from a small change in one trait while holding the others constant.

Steps in the differential evolution search for economic values: Based on the algorithm described by Price and Storn (1997), as applied in the study
Diagram: Livestock Library · open full size

What the search returned#

The evolutionary algorithm converged on economic values of -$0.043 per litre of milk, $0.83 per kilogram of fat, $3.50 per kilogram of protein and -$0.72 per kilogram of live weight. For comparison, the partial first derivative method applied to the same base year gave -$0.034 per litre milk, $1.42 per kilogram fat, $3.50 per kilogram protein and -$0.45 per kilogram live weight, while the values published by LIC (2000) were -$0.049 per litre milk, $1.18 per kilogram fat, $3.50 per kilogram protein and -$0.49 per kilogram live weight.

The protein value came out identical across all three approaches at $3.50 per kilogram, while the other three traits showed differences between methods. Compared with the partial derivative approach, the evolutionary algorithm placed less weight on fat and a larger penalty on both live weight and milk yield.

Those differences carried through to predicted profit. The fitness score was 5,339 for the differential evolution values compared with 5,311 for the partial first derivative values and 5,322 for the LIC figures, meaning the evolutionary algorithm's economic values delivered a slightly higher predicted profit under the model's own assumptions.

The authors describe their result as consistent with the values actually used for dairy cattle selection in New Zealand, despite coming from a more complex model that also accounts for processing, distribution and marketing of dairy products rather than only on-farm production.

Milk vat and pipeline inside a dairy processing shed
Illustration generated for this summary; not a photograph from the study.

Weighing the evidence#

The paper's own comparison is its strongest piece of evidence: three different ways of generating economic values, including one already adopted for practical selection decisions through LIC, land in a similar neighbourhood for milk, fat, protein and live weight. That convergence suggests the evolutionary algorithm was finding a sensible answer rather than an artefact of the search process.

The authors also note a parallel from sheep breeding. Meszaros and colleagues, working on a crossbreeding system, likewise found that economic values generated by an evolutionary strategy produced higher predicted profit than values obtained as first partial derivatives of the profit function, which echoes the pattern seen here for dairy cattle.

We would treat the headline numbers as a demonstration of method rather than a finished recommendation for use on farm, because the study itself flags that its market assumptions are a simplification. Prices for dairy products were held fixed regardless of how much milk the industry produced, an assumption the authors call unrealistic given that New Zealand supplies more than 25% of international dairy trade, where its own output could reasonably be expected to move world prices.

The authors say further work was underway to estimate economic values under conditions where prices respond to supply and demand, which would be a tougher and more realistic test of whether the evolutionary algorithm approach holds up once that extra layer of interaction is added to an already complex model.

Where this fits among other breeding objective methods#

The paper positions differential evolution as one option among several numerical methods for tackling profit functions that resist straightforward algebra, alongside comparative budgeting and the Newton-Raphson method credited to Pasternak and Weller (1993). Its case for evolutionary algorithms rests on practicality: Price and Storn, who developed differential evolution, had shown it could be coded simply, needed few control settings, adapted readily to different optimisation problems, and was likely to find a true global optimum rather than getting stuck on a local one.

That practicality argument matters most when a bioeconomic model has many moving parts that feed back into each other, exactly the situation the authors describe for the New Zealand dairy model with its processing and marketing costs layered on top of on-farm production. Trying to write out an explicit derivative for such a system would be awkward at best.

This work sits within a wider body of dairy cattle breeding research published through the Association for the Advancement of Animal Breeding and Genetics, the society behind this proceedings series. The same authors have also published other work, summarised separately as across-breed dairy evaluation reshaped NZ genetic ranking in 1996.

Another paper by some of the same authors is catalogued as testing an approach for daughter misidentification in breeding value estimation, from 2015.

Practical implications for breeding decisions#

For anyone setting a selection index, the core message is that the choice of method for calculating economic values can shift the numbers meaningfully, even when the underlying biology and economics are the same. A fat value of $0.83 per kilogram from the evolutionary algorithm against $1.42 per kilogram from the partial derivative method, both applied to the same model, is not a trivial gap.

The paper's own framing is cautious rather than sweeping. It states that evolutionary algorithms can be used to design breeding programs when profit functions are complex, highlighting that this approach requires little programming effort to handle a large number of variables within an elaborate model.

The authors are explicit that their comparison was carried out under a simplified market scenario, with dairy product prices held fixed regardless of output, and that extending the method to a setting where prices respond to supply and demand was left for further research. That qualification matters for anyone deciding how directly to apply these particular figures.

Taken together, the results indicate that a differential evolution search, despite needing few control settings, can handle a profit function with many interacting parts and return economic values close to those already calculated by established methods, while also finding a combination that performed slightly better under the model's own profit measure.

Sources and further reading#

Questions#

What is an evolutionary algorithm in this context?

It is a numerical search method that treats candidate solutions, here sets of four economic values, as populations that are repeatedly combined, altered and tested for fitness over many generations, gradually converging on values that maximise a chosen outcome such as predicted profit.

How did the evolutionary algorithm's results compare with those already used in New Zealand?

The economic values it produced, -$0.043 per litre milk, $0.83 per kilogram fat, $3.50 per kilogram protein and -$0.72 per kilogram live weight, were broadly consistent with the values published by LIC (2000) and with those calculated by the simpler partial derivative method, though fat and live weight values differed noticeably between methods.

Why did the authors think their model assumptions were unrealistic?

Prices for dairy products were held constant regardless of production volume, but the paper notes New Zealand supplies more than 25% of international dairy trade, meaning its own output could plausibly influence world prices, an effect the model did not capture.

Does this mean evolutionary algorithms should replace current methods for calculating economic values?

The paper stops short of that claim. It presents the method as a workable option for complex bioeconomic models with many interacting factors, demonstrating it can recover sensible economic values, rather than arguing it should supersede simpler, already-used calculation methods.

About this summary

Written by the Livestock Library team from the published paper by N. Lopez-Villalobos, D.J. Garrick and C.W. Holmes (2001), and released on 1 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.