Mada za sehemu hiiLinear ProgrammingMada 3
- Linear Programming Problems Formulation
- Graphical solution
- Transportation problems
Transportation problems
Transportation problems arise when a product is distributed from several sources (e.g., factories or warehouses) to several destinations (e.g., customers or outlets), with the goal of minimizing the total transportation cost.
Key concepts
- Source (Supply): A location from which products are sent.
- Destination (Demand): A location where products are needed.
- Balanced Problem: Total supply = total demand.
- Unbalanced Problem: Total supply ≠ total demand (must be adjusted).
The transportation problem is a type of linear programming problem designed to minimize the cost of shipping from sources to destinations.
Formulating a transportation problem
Case 1: Two sources and two destinations
Suppose:
- Source has units
- Source has units
- Destination needs units
- Destination needs units
Let the decision variables be:
- : units transported from to
- : units transported from to
- : units from to
- : units from to
Case 2: Two sources and three destinations
Suppose:
- Source has units
- Source has units
- Destination needs , needs , and needs units
Let the decision variables be:
- : from to
- : from to
- : from to
- : from to
- : from to
- : from to
These variables help us create the constraints to ensure that the total supply from each source is not exceeded, and each destination receives its required demand.
Example
A manufacturer has two warehouses:
- Warehouse : 80 units
- Warehouse : 70 units
Customer demands:
- Customer : 35 units
- Customer : 60 units
Transportation cost table (Tanzanian shillings):
| From → To | ||
|---|---|---|
| 80 | 100 | |
| 120 | 130 |
Let:
- : units from to
- : units from to
- : units from to
- : units from to
Constraints
Supply constraints:
Demand constraints (automatically satisfied with the above setup):
Objective function
Minimize the total transportation cost:
This simplifies to a linear expression in and that can be minimized using linear programming techniques.
Transportation problems are structured and solvable using linear programming techniques such as:
- North-West Corner Method
- Least Cost Method
- Vogel's Approximation Method
- Simplex Method
Linear programming problems
-
Two printers N and T produce three types of books. N produces 80 types I books per day, 10 type II books per day and 20 types III books per day, while T produces 20 types I books per day 10 type II books per day and 70 types III books per day. The orders placed are 1600 type I, 500 type II and 2100 type III books. The daily operating costs for N shs. 10,000/=, for Tshs, 20,000/= how many days should each printer operate to meet the orders at a minimum cost.
-
A small textile company manufactures three different size of shirts, Large (L), medium (M) and small (S) at two different plants A and B. The number of shirts of each size produced and the cost of production per day are as follows!
| A | B | Monthly demand | |
|---|---|---|---|
| Large size per day | 50 | 60 | 2500 |
| Medium size per day | 100 | 70 | 3500 |
| Small size per day | 100 | 200 | 7000 |
| Production Cost per day Tshs. | 2500 | 3500 | _ |
- How many days per month should each factory operate in order to minimize total cost.
- What is the minimum cost of production
Solution 1
Let be number of days printer N should operate
Let be number of days printer T should operate
Objective function
Constraints
- ,
Equations
When ,
,
When ,
,
When ,
,
| Corner points | |
|---|---|
| A (0, 80) | 10000 (0) + 20000 (80) = 1,600,000 |
| B (28, 22) | 10000 (28) + 20000 (22) = 720,000 |
| C (105, 0) | 10,000 (105) + 20000 (0) = 1,050,000 |
Printer N should be operated for 28 days and printer T should work for 22 days to meet the orders at minimum cost.
Solution 2
Let be number of days per month factory A should operate
Let be number of days per month factory B should operate
Objective function
Constraints
- ,
Minimize
Subject to
,
Equations
When ,
,
When ,
,
When ,
,
| Corner points | |
|---|---|
| A (0, 50) | 2500 (0) + 3500 (50) = 175,000 |
| B (15, 30) | 2500 (15) + 3500 (30) = 142,500 |
| C (20, 25) | 2500 (20) + 3500 (25) = 137,500 |
| D (70, 0) | 2500 (70) + 3500 (0) = 175,000 |
Factory A should operate for 20 days and factory B should operate for 25 days in order to minimize total cost.
Minimum cost of production is 137,500
- In a certain garage the manager had the following facts floor space required for a saloon is 2m2 and for a lorry is 3m2. Four technicians are required to service a saloon car and three technicians for a lorry per day. He has a maximum of 24m2 of a floor space and a maximum of 36 technicians available; in addition he is not allowed to service more Lorries than saloon cars. The profit for serving a saloon car is 40,000/= and a lorry is 60,000/=. How many motor vehicles of each type should be serviced daily in order to maximize the profit?
Solution
Let be number of saloon cars to be serviced daily
Let be number of lorries to be serviced daily
Objective function
Constraints
- and
Maximize
Subject to
and
Equations
When ,
,
When ,
,
| Corner points | |
|---|---|
| A (0, 0) | 40000 (0) + 60000 (0) = 0 |
| B (4.8, 4.8) | 40000 (4.8) + 60000 (4.8) = 480,000 |
| C (6, 4) | 40000 (6) + 60000 (4) = 480,000 |
| D (9, 0) | 40000 (9) + 60000 (0) = 360,000 |
6 saloon cars and 4 lorries should be serviced daily to maximize profit to 480,000/=
More example
A builder has two stores, one at S1 and the other at S2. He is building houses at P1, P2, and P3. He needs 5 tons of bricks at P1, 6 tons of bricks at P2 and 4 tons of bricks at P3. The stores contain 9 tons of bricks at S1 and 6 tons of bricks at S2. The transport cost per ton are shown in the diagram
| To From | P1 | P2 | P3 |
|---|---|---|---|
| S1 | 6/= | 3/= | 4/= |
| S2 | 4/= | 2/= | 6/= |
How does the builder send his bricks at a minimum cost? What is the minimum overall cost?
Solution
Let the builder send tons of bricks from S1 to P1 and tons of bricks from S1 to P2
Then the transportation of bricks to P1, P2 and P3 will be as follow:
| To From | P1 | P2 | P3 |
|---|---|---|---|
| S1 | x | y | 9 - (x + y) |
| S2 | 5 - x | 6 - y | 4 - |
The constraints are obtained as follows
- ,
- i.e.
- i.e.
- i.e.
The objective function:
Simplifying:
Since we want to minimize, this is equivalent to maximizing , or we can rewrite as:
Minimize
Subject to
,
,
Equations
When ,
,
,
,
| Corner points | |
|---|---|
| A (0, 5) | 4 (0) + 3 (5) + 38 = 53 |
| B (0, 6) | 4 (0) + 3 (6) + 38 = 56 |
| C (3, 6) | 4 (3) + 3 (6) + 38 = 68 |
| D (5, 4) | 4 (5) + 3 (4) + 38 = 70 |
| E (5, 0) | 4 (5) + 3 (0) + 38 = 58 |
The builder should send the bricks of tons as follows:
| To From | P1 | P2 | P3 |
|---|---|---|---|
| S1 | 0 | 5 | 4 |
| S2 | 5 | 1 | 0 |
The overall minimum cost is 53/=
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuuliza