
Linear Optimization Modeling 33 5
20.6.3.1 Understanding the Problem
For easy understanding and for deriving the mathematical formulation of the
problem, the data given is represented in a table. For each type of food, the
data include the cost p er unit of food, and the contents, carbohydrates, fat,
and proteins. The data for the diet problem is represented as follows:
Food type Cost Carb ohydra tes Fat Protein
P 2.55 9.75 18.15 13.9 5
Q 3.55 22.95 12.15 18.85
20.6.3.2 Mathematical Formulation
Let x
1
denote the amount of units of food type P and x
2
the units of food
type Q contained in the diet. The to tal cos t of the diet is 2.55x
1
+ 3.55x
2
.
As stated ...