Sol Assignment 1
Sol Assignment 1
NOTE: Unless specifically stated otherwise, use the method of your choice to obtain a
BFS to the problem. In such cases, it is recommended that you use the Vogel’s
approximation method (VAM), since it is likely to lead to less iterations when you are
trying to find ab Optimal solution:
1. Use the Least (Minimum) Cost method to find a BFS to the following problem and
then determine an Optimal solution where Oi and Dj represent the ith origin and jth
destination respectively
D1 D2 D3 D4 Available D1 D2 D3 D4 A
O1 6 4 1 5 14 O1 14
O2 8 9 2 7 16 O2 16
O3 4 3 6 2 5 O3 5
Requirements 6 10 15 4 R 6 10 1 4
D1 D2 D3 D4 A
O1 14
O2 1 15
O3 5
R 6 10 4
D1 D2 D3 D4 A
O1 14
O2 1 15
O3 1 4
R 6 9
D1 D2 D3 D4 A
O1 14
O2 6 9 1
O3 1 4
R
2. A company is to schedule its weekly production of a certain product for the next 4
weeks. The production cost per item is Re. 100. Weekly demands are 400, 800, 800
and 900, which must be met. The company can produce a maximum of 600 units each
week. In addition, the company can employ overtime which increases the production
cost by Re. 20 per item. Excess production can be stored at a unit cost of Re. 10 per
week. How should the production be scheduled so as to minimize the total cost?
Since backordering is not allowed, we have to ensure that it is excluded. This is done
by assigning a very large (positive) cost (M) to all such allotments. M is assumed to
be big enough that all other cell costs 0 in comparison.
400 800
P1(R) 100 110 120 130 0 600 10 The next allotments are in
P1(O) 120 130 140 150 02300 10 (7, 4) and (8, 4); (5, 3) and
P2(R) M 100 110 120 0 600 M-100 (6, 3). Ties are resolved
P2(O) M 120 130 140 01900 M-120 arbitrarily. The final
P3(R) M M 100600 110 0 0 allotments are in (3, 2); (1,
P3(O) M M 120200 130 0900 0 1) and (1, 2):
P4(R) M M M 100600 0
P4(O) M M M 120300 0
20 10
400 200
P1(R) 100400 110200 120 130 0 600 10
P1(O) 120 130 140 150 02300 10
P2(R) M 100600 110 120 0
P2(O) M 120 130 140 01900
P3(R) M M 100600 110 0 0
P3(O) M M 120200 130 0900 0
P4(R) M M M 100600 0
P4(O) M M M 120300 0
20 10
400 800 800 900 5100 This leads to the final allotment shown
P1(R) 400 200 600 on left. Since this is a degenerate
P1(O) 2300 2300 solution, additional cells must be
P2(R) 600 600 allotted a BV.
P2(O) 1900 1900
P3(R) 600 600
P3(O) 200 900 1100
P4(R) 600 600
P4(O) 300 300
400 800 800 900 5100 (Any set of choices that does not
P1(R) 400 200 600 involve a loop is OK, but to cut short
P1(O) 2300 2300 the work, we add an additional
P2(R) 600 600 condition: amongst candidate cells,
P2(O) 1900 1900 choose those that have min cost). Note
P3(R) 600 600 that 8+5-1=12 allotments are
P3(O) 200 900 1100 necessary. (The two symbols and
P4(R) 600 600 are used only for differentiation; each
P4(O) 300 300 denotes a basic variable at zero value)
Manufacturer W X Y Z
Total Quantity 300 200 150 200
The store estimates that its profit per dress will vary with the manufacturer as shown
in the matrix below. How should orders be placed? Use VAM to get a BFS.
DRESS
A B C D E
W 2.75 3.5 4.25 2.25 1.5
Manufacturer X 3 3.25 4.5 1.75 1
Y 2.5 3.5 4.75 2 1.25
Z 3.25 2.75 4 2.5 1.75
Again, we add a “dummy dress” for which there will be no profit to represent unused
capacity of manufacturers. So the profit matrix is as follows after we initiate VAM (2,
1), (4, 1), (4, 4), (1, 4), (1, 6), (2, 6) and back to (2, 1):
DRESS
Manu A B C D E D’
Fac W 2.75 3.5 4.25 2.25 1.5 0 .75
Turer X 3 3.25 4.5 1.75 1 0 1.25
.
Y 2.5 3.5 4.75 2 1.25 0 1.25
Z 3.25 2.75 4 2.5 1.75 0 .75
.25 0 .25 .25 .25 0
We follow the VAM procedure through the following iterations. Note that this is a
maximization problem. For BFS, we apply VAM as usual, except that in determining
allocations, we take the difference between max entry and next to max entry, and allot
to the max in the row (or column) where this difference is max.:
0 0 0 250 200 75
DRESS
Manu A B C D E D’
Fac W 2.75 25 x 2.25 1.5 0 .5 275
Turer X 150 x x 1.75 1 0 1.25 50
.
Y x 75 75 x x x x 0
Z 3.25 x x 2.5 1.75 0 .75 200
.25 X x .25 .25 0
0 0 0 250 200 75
DRESS
Manu A B C D E D’
Fac W x 25 x 2.25 1.5 0 .75 275
Turer X 150 x x 1.75 1 0 .75 50
.
Y x 75 75 x x x x 0
Z x x x 2.5 1.75 0 .75 200
x x x .25 .25 0
0 0 0 50 200 75
DRESS
Manu A B C D E D’
Fac W x 25 x 2.25 1.5 0 .75 275
Turer X 150 x x 1.75 1 0 .75 50
.
Y x 75 75 x x x x 0
Z x x x 200 x x x 0
x x x .5 .5 0
0 00 0 200 75
DRESS
Manu A B C D E D’
Fac W x 25 x 50 1.5 0 1.5 225
Turer X 150 x x x 1 0 1 50
.
Y x 75 75 x x x x 0
Z x x x 200 x x x 0
x x x x .5 0
0 0 0 0 0 75
DRESS
Manu A B C D E D’
Fac W x 25 x 50 200 0 25
Turer X 150 x x x x 0 50
.
Y x 75 75 x x x x 0
Z x x x 200 x x x 0
x x x x x 0
Let us now determine optimality. We use the basic cells to determine ui and vj
v
Manu u 3 3.5 4.75 2.25 1.5 0
Fac 0 3.5 2.25 1.5 0
Turer 0 3 0
.
0 3.5 4.75
0.25 2.5
And so for the non-basic cells we have (for costs, consult cost matrix):
DRESS
A B C D E D’
W 0+3-2.75 0+4.75-4.25
X 0+3.5-3.25 0+4.75-4.5 0+2.25-1.75 0+1.5-1
Y 0+3-2.5 0+2.25-2 0+1.5-1.25 0+0-0
Z 0.25+3-3.25 0.25+3.5-2.75 0.25+4.75-4 0.25+1.5-1.75 0.25+0-0
4. Powerco has three electric power plants that supply the power needs of four cities.
Plant 1, 2 and 3 can supply the following KW hours of electricity respectively (in
millions): 35, 50 and 40. The peak power demands in these cities, which occur at the
same time, are respectively as follows (in millions): 45, 20, 30, 30. The costs of
sending 1 million KW hours of electricity from plants to cities are as follows (in ’00
rupees):
5. Consider the following cost and resource matrix. A BFS is also given. Examine
optimality and drive to an optimal solution if not already optimal.
D1 D2 D3 D4 A Clearly this is a
D1 D2 D3 D4
O1 2 3 4 9 20 degenerate solution.
O1 10 10
O2 14 12 5 1 30 Let us therefore
O2 20 10
O3 12 15 9 3 40 include a BV in cell
O3 40
R 10 10 20 50 (2, 2).