Solution:
Key idea: In a transportation problem where the total supply equals the total demand, everything produced is sent. Then choosing two of the six amounts fixes all the others, so the problem has only two decision variables. Every amount sent must be at least zero, and these conditions become the constraints.
Step 1 — Compare supply and demand.
The two factories can supply this many units in a week:
8+6=14
The three depots need this many units in a week:
5+5+4=14
Supply equals demand, so every unit made is delivered.
Step 2 — Choose the decision variables.
Let factory P send x units to depot A and y units to depot B.
Step 3 — Express the other four amounts.
Factory P sends 8 units in all, so the rest of its output goes to C.
P→C=8−x−y
Depot A needs 5 units, so factory Q sends what P does not.
Q→A=5−x
Depot B needs 5 units, so in the same way
Q→B=5−y
Depot C needs 4 units, of which P sends 8−x−y, so Q sends the rest.
Q→C=4−(8−x−y)
Q→C=x+y−4
Step 4 — Write the total cost.
We multiply each amount by its cost per unit from the table and add the six products.
Z=16x+10y+15(8−x−y)+10(5−x)+12(5−y)+10(x+y−4)
Opening the brackets gives
Z=16x+10y+120−15x−15y+50−10x+60−12y+10x+10y−40
Collecting the x terms, the y terms and the constants gives the objective function.
Z=x−7y+190
This cost is to be minimized.
Step 5 — Write the constraints.
Every one of the six amounts must be at least zero. The amounts x and y give
x≥0,y≥0
The amount P→C gives 8−x−y≥0, that is
x+y≤8
The amounts Q→A and Q→B give 5−x≥0 and 5−y≥0, that is
x≤5,y≤5
The amount Q→C gives x+y−4≥0, that is
x+y≥4
Step 6 — Collect the LPP.
We write the objective function and all the constraints together.
Minimize Zsubject to x+yx+yxyx≥0, y=x−7y+190≤8≥4≤5≤5≥0
Therefore, with x and y the units sent from P to A and B, the LPP is: minimize Z=x−7y+190 subject to x+y≤8, x+y≥4, x≤5, y≤5, x≥0 and y≥0.