Formulating Diet and Blending Problems as LPs
Translate diet-style and blending problems into linear programs: identify decision variables, write the cost objective, and encode nutritional or quality specifications as linear constraints (including linearizing ratio-based specifications).
Step 1 of 157%
Tutorial
The Diet Problem
A diet problem asks for the cheapest combination of foods that meets all nutritional requirements.
The formulation has three ingredients:
- Decision variables: let denote the amount of food in the diet (e.g., servings, ounces, grams).
- Objective: minimize total cost,
where is the cost per unit of food
- Constraints: for each nutrient the total amount supplied must meet the daily minimum
where is the amount of nutrient contained in one unit of food
- Non-negativity: (we cannot consume a negative amount of food).
For example, suppose rice costs \12$2510$g protein minimum at minimum cost, we write