Sampling Error Isn't
26 January 2012
Effective multimedia teaching videos
10 February 2012
Show all

Food is a universal context

Food is a universal context

What I like about Operations Research is its applied nature. It is mathematical and useful. We need to make sure that our students recognize that. As students have often had little experience in the world of business and manufacturing, it can be helpful to use examples based around food. Food is a universal topic. We all need food and most of us enjoy it and probably eat too much. For this reason food is a useful context to use in teaching.

Linear programming diet problems

The linear programming diet problem is an obvious starting place. For decades linear programs have been used to find optimal combinations of different types of feed for animals such as pigs, cattle and poultry. A popular teaching diet problem is based on McDonald’s fast food. Information on nutritional content and requirements is easily sourced these days on the web. Students can create their own diet problems and find the least cost solution to feed themselves a minimum cost, balanced (within reason) diet at McDonalds. When we used this as a student assignment the solution involved a large number of soft-serve ice cream cones. This sort of solution helps teach students that the computer finds the optimal solution to the model, which may not be even feasible in reality, if there are too many implicit constraints.
A popular variation of the McDonalds diet problem was the Hiking diet problem. This was a little different as the objective was minimising weight rather than cost. Again the initial “optimal” solution lacked variety. (This gave us the opportunity to teach that the number of non-zero variables at optimality will not exceed the number of binding constraints.) The students enjoyed the assignment and some were inspired to the extent that they used it to cater for a hike. Another example was refugee boxes, aiming to provide a balanced diet for a family for a week, at minimum cost.In all these examples the problem of non-integer solutions can also be addressed.

Other Operations Research topics can be taught using food.

When teaching about fixed and variable costs, and developing a spreadsheet model, our example is that of a sausage sizzle. In it the students are setting up to sell sausages wrapped in bread, with onions, cooked on a barbecue. The aim is to find the breakeven point.
Critical path can be taught in the context of planning a three course dinner.

Many examples are built around Choconutties

I have been accused of making everything about food. Our series of videos for teaching statistics and spreadsheet modelling centre around Helen, who sells choconutties. In our test and practice examples we have bakeries, candy manufacturers, jam-makers and cafes. Food examples are used for inventory control, break-even analysis, linear programming, decision analysis and critical path.
Students need to be engaged with the material, and it helps if the examples and contexts are familiar. There is a case for using business examples as well, as these help develop their understanding of business and its vocabulary. But food is a good place to start.


  1. A colleague used to teach statistical process control using bags of M&M candies (counting the number of pieces of each color). The lesson was popular due to the consumption of the samples at the end of class.

  2. […] Some time ago I promised to blog about how to teach statistics with chocolate. Anyone who has watched my youtube videos may have noticed a recurring theme. Helen sells Choconutties. These are a fictitious chocolate bar, originally devised to require a table of prices, which would require the use of absolute and relatives references. As the series developed Helen had all sorts of issues with her sales, which required statistical analysis, often using spreadsheets. For the “choosing the test” video I managed to come up with seven different chocolate-based scenarios. I’ve had complaints from my students that using my materials makes them hungry. […]

Leave a Reply

Your email address will not be published. Required fields are marked *