An animal feed to be mixed from soybean meal and oats must contain at least 120lb of protein, 27lb of fat, and 10lb of mineral ash. Each sack of soybeans costs $15 and contains 50lb of protein, 9lb of fat, and 5lb of mineral ash. Each sack of oats costs $5 and contains 15lb of protein, 5lb of fat, and 1lb of mineral ash. How many sacks of each should be used to satisfy the minimum requirements at minimum cost?
Let x represent the number of sacks of soybeans and y the number of sacks of oats.
The objective function is C=15x+5y (The total cost -- $15 per sack of soybeans and $5 per sack of oats.)
The constraints are :
`50x+15y>=120` or `10x+3y>=24`
and the natural constraints `x,y>=0` .
Here is a graph of the feasible region:
The feasible region is open; it is above the red segments and contained in the 1st quadrant. We need only look at the junction points:
The actual point is `(39/23,54/23)` for a cost of 37.17.
The mathematical answer is `39/23` bags of soybeans and `54/23` bags of oats.
The real-life answer will be 2 bags each -- this is the closest lattice point ( a point with integer coordinates) within the feasible region.