Let denote the number units of food A;
Let denote the number units of food B;
Here food A costs 18 cents ($0.18) per unit and food B - 12 cents ($0.12);
The optimization function is: ;
Food A has 2 g protein and 4 g of fat and food B has 6 g of protein and 2 g of fat;
Hence we have: for protein and for fat.;
Animals must have at least 30 g of protein and at least 20 g of fat ;
Therefore, the constrains are:
Food B is bought under a contract requiring that at least 2 units of B be used per serving, therefore ;
The linear programming problem is:
minimize
subject to
The graphical method:
First equation:
take to get x intercept: , therefore, the point on the graph is (15,0),
take to get y intercept: , therefore, the point on the graph is (0,5)
Second equation:
take to get x intercept: , therefore, the point on the graph is (5,0),
take to get y intercept: , therefore, the point on the graph is from the graph, the feasible points are (0.10)
To find the intersection of two lines( and ), multiply them to get ;
Then subtract from , we get , ;
Now subtract from , we get ;
Therefore, the intersection point is (3,4)
From the graph, the feasible points are: (0,10),(3,4),(9,2),(15,0);
To find optimization of the function:
minimum at (0,10):
minimum at (3,4):
minimum at (9,2):
minimum at (15,0):
Here 1.02 is the smallest value, therefore 3 units of food A and 4 units of food B are used to minimize the cost.
Answer: the minimum cost per serving is $1.02.
Comments