There is a factory located at each of the two places P and Q. From these locations, a certain commodity is delivered to each of the three depots situated at A, B and C. The weekly requirements of the depots are respectively 5, 5 and 4 units of the commodity while the production capacity of the factories at P and Q are 8 and 6 units respectively. The cost of transportation per unit is given below:
| From/To | A | B | C |
|---|---|---|---|
| P | 16 | 10 | 15 |
| Q | 10 | 12 | 10 |
(Costs in Rs.)
How many units should be transported from each factory to each depot in order that the transportation cost is minimum? Formulate the above as a linear programming problem.
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →The book reduces this two-factory, three-depot transportation problem to just two decision variables — = units sent P→A and = units sent P→B — by writing every other shipment in terms of and from the supply and demand totals. The result is the printed formulation: Minimize subject to , , , , .
Setting up with two variables
Total supply is units and total demand is units, so the problem is balanced — every unit produced is shipped and every depot is served exactly. Because everything is balanced, once we fix how much P sends to A and to B, all six shipments are determined.
Let
- = units transported from factory P to depot A,
- = units transported from factory P to depot B.
Then, using the capacities and requirements:
| Route | Units | Reasoning |
|---|---|---|
| P → A | decision variable | |
| P → B | decision variable | |
| P → C | P produces 8 units in all | |
| Q → A | A needs 5; the rest of A's demand comes from Q | |
| Q → B | B needs 5; the rest comes from Q | |
| Q → C | Q produces 6; |
The constraints
Every shipment must be non-negative:
- and .
The objective function
Multiply each shipment by its per-unit cost (from the table: P→A ₹16, P→B ₹10, P→C ₹15, Q→A ₹10, Q→B ₹12, Q→C ₹10) and add:
Expanding and collecting like terms:
…
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.