LP Formulation Exercises
LP Formulation Exercises
A cargo plane has three compartments for storing cargo: front, center and rear. These
compartments have the following limits on both weight and space:
Compartment Weight capacity (tons) Space capacity (cubic meters)
Front 10 6800
Centre 16 8700
Rear 8 5300
Furthermore, the weight of the cargo in the respective compartments must be the same
proportion of that compartment's weight capacity to maintain the balance of the plane.
The following four cargoes are available for shipment on the next flight:
Cargo Weight (tons) Volume (cubic meters/ton) Profit (/ton)
C1 18 480 310
C2 15 650 380
C3 23 580 350
C4 12 390 285
Any proportion of these cargoes can be accepted. The objective is to determine how
much (if any) of each cargo C1, C2, C3 and C4 should be accepted and how to
distribute each among the compartments so that the total profit for the flight is
maximized. Formulate the above problem as a linear program
Solution
Decision Variables
We need to decide how much of each of the four cargoes to put in each of the three
compartments. Hence let:
xij be the number of tons of cargo i (i=1,2,3,4 for C1, C2, C3 and C4 respectively) that
is put into compartment j (j=1 for Front, j=2 for Centre and j=3 for Rear) where
xij >=0 i=1,2,3,4; j=1,2,3
Note here that we are explicitly told we can split the cargoes into any proportions
(fractions) that we like.
Objective Function
Constraints
cannot pack more of each of the four cargoes than we have available
the weight of the cargo in the respective compartments must be the same
proportion of that compartment's weight capacity to maintain the balance of the
plane
[x11 + x21 + x31 + x41]/10 = [x12 + x22 + x32 + x42]/16 = [x13 + x23 + x33 + x43]/8
Problem 2
A canning company operates two canning plants. The growers are willing to supply
fresh fruits in the following amounts:
The canned fruits are sold at 50/ton to the distributors. The company can sell at this
price all they can produce.
The objective is to find the best mixture of the quantities supplied by the three
growers to the two plants so that the company maximizes its profits.
Solution
Decision Variables
We need to decide how much to supply from each of the three growers to each of the
two canning plants. Hence let xij be the number of tons supplied from grower i
(i=1,2,3 for S1, S2 and S3 respectively) to plant j (j=1 for Plant A and j=2 for Plant B)
where xij >=0 i=1,2,3; j=1,2
Objective Function
and this is
Constraints