Title The Herd Feeding Problem
DateSubmitted 18 Feb 2008
CaseStudyType DIYCaseStudy
OperationsResearchTopics LinearProgramming, BlendingModels
ApplicationAreas Farm Management
ProblemDescription Adapted from a real-world problem

When determining how to feed a herd of dairy cows, farmers need to take into account many different parameters, e.g.,

  • How much milk they want the cows to produce;
  • The price of the various feed types;
  • If the cows are pregnant and how far through their pregnancy are they;
  • How much pasture their farm currently has for grazing.

Farmers will often turn to farm consultants to help them make the best decision. In this case study we are going to analyse the decision suggested by a farm consultant.

The following table gives some typical amounts of MJME (megajoules of metabolisable energy) required for a cow each day in order for it to produce various amounts of milk that day.


Cows get MJME from their feed, or more specifically the amount of DM (dry matter) in their feed. The next table gives a list of possible feed types, their cost, %DM, MJME per kgDM as well as their percentage of protein and NDF (neutral detergent fibre).


This month, a consultant has estimated that a herd of 350 cows each require 180 MJME per day to produce 23 L of milk. For nutrition they need their feed to contain at least 17% protein and 32% NDF.

He also estimates the farm has 1920 kg of usable pasture.

His feed solution for each cow is given below.


The farmer wants to know if this is the best possible solution.

For more information on MJME, DM, etc see - Straggle Muster 113.

ProblemFormulation Teaching Case Study: Student to complete
ComputationalModel Teaching Case Study: Student to complete
Results Teaching Case Study: Student to complete
Conclusions Teaching Case Study: Student to complete

1. Write AMPL files herd.mod, herd.dat and to find a feeding solution.Write a management summary of your feeding solution. Be sure to compare it to the consultant's solution.

What to hand in Your new AMPL files herd.mod, herd.dat and Your management summary.

Topic attachments
I Attachment History Action Size Date Who Comment
Microsoft Excel Spreadsheetxls herd.xls r1 manage 22.0 K 2008-02-29 - 23:01 TWikiAdminUser  
Edit | Attach | Watch | Print version | History: r16 < r15 < r14 < r13 < r12 | Backlinks | View topic | Raw edit | More topic actions
Topic revision: r16 - 2009-10-06 - MichaelOSullivan
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback