
Joseph C. answered 08/10/20
Teacher | Researcher | Programmer
They are already hinting at what should the objective function should be since they want to minimize cost
Let me define the following
a = (20, 11, 0, 28) vector with the amount of vitamin A in each supplement
b = (6, 12, 22, 0) vector with the amount of vitamin B in each supplement
f = (0, 3, 6, 10) vector with the amount of Iron in each supplement
c = (0.01, 0.02, 0.03, 0.04) cost of each suplement
s = (s1, s2, s3, s4) vector with the amount of each supplement to buy
(a) Give the definitions below the total cost is the scalar product
T = c*s
This is our objective function
(b) Our constrains are the requirement each prisoner needs, in this case
a*s = 120
b*s = 50
f*s = 20