Modelling a maximising problem

• Jan 18th 2011, 08:48 AM
juanma101285
Modelling a maximising problem
Hi, I am completely lost with this problem...

The UN wishes to determine the composition of 1000 identical food parcels, each of which is to be packed into a 20 litre container. For each possible food, its density, dietary value per kilogramme and availability are given below.

Item 1:
Density (kg/litre) 0.1
Dietary value (units/kg): 10
Availability (kg): 2000

Item 2:
Density (kg/litre) 0.2
Dietary value (units/kg): 6
Availability (kg): 3000

Item 3:
Density (kg/litre) 0.25
Dietary value (units/kg): 3
Availability (kg): 10000

Model the problem of maximising the total dietary value of the food parcels as a linear programming problem (assuming that the foods can be packed without any air spaces).

So I am guessing that the objective function will be:

F=1*(x1)+1.2*(x2)+0.9*(x3)

(1=10*01, so that it is units/litre, and so on)

Is that correct? And how can I get the constraints? :-/

Thanks a lot!
• Jan 18th 2011, 10:02 AM
HallsofIvy
I would recommend you specifically identify what your "variables" represent. I can see from you first "object function" that x1 is "the number of litres of Item 1", x2 is "the number of litres of item 2" and x3 is "the number of litres of item 3" but it is better to say that explicitely (and it will shock your teacher!).
Yes, the food value in each package is the density in kg/litre times the "food value" per kg giving "food value per litre" and then multiply by the variables in litres, gives "total food value", the quantity you want to maximize.

Now, there are several restrictions: you have to be able to put them all into a "30 litre container" so, since x1, x2, and x3 are measured in litres, you must have $x1+ x2+ x3\le 20$. You have available 200 kg of item 1 but since x1 is in litres, you need to multiply by its density: item 1 is .1 kg/litre so 200 kg is (200 kg)/(.1 kg/litre)= 2000 litres. A constraint on x1 is $x1\le 2000$.

Of course, you have similar constraits on x2 and x3.

Notice how I am keeping careful track of "units of measurement" to get the relations. I know I need to divide by .1 kg/litre instead of multiply because I need to cancel "kg" and get "litre" in the numerator, not the denominator.

And don't forget the constraints that are often not mentioned: $x1\ge 0$, $x2\ge 0$, and $x3\ge 0$.
• Jan 18th 2011, 11:18 AM
juanma101285
Thank you so much, I understand this whole thing so much better now!