here the variables are denoted as follows:
x11 = x1 x31 = x7
x12 = x2 x32 = x8
x13 = x3 x33 = x9
x21 = x4
x22 = x5
x23 = x6
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subject to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
and x1,x2,x3,x4,x5,x6,x7,x8,x9≥0; |
The problem is converted to canonical form by adding slack, surplus
and artificial variables as appropriate
1. As the constraint-1 is of type '=' we should add artificial
variable A1
2. As the constraint-2 is of type '=' we should add artificial
variable A2
3. As the constraint-3 is of type '=' we should add artificial
variable A3
4. As the constraint-4 is of type '=' we should add artificial
variable A4
5. As the constraint-5 is of type '=' we should add artificial
variable A5
6. As the constraint-6 is of type '=' we should add artificial
variable A6
After introducing artificial variables
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subject to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
and x1,x2,x3,x4,x5,x6,x7,x8,x9,A1,A2,A3,A4,A5,A6≥0 |
Iteration-1 | Cj | 1 | 2 | 2 | 4 | 3 | 4 | 4 | 1 | 3 | M | M | M | M | M | M | ||
B | CB | XB | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | A1 | A2 | A3 | A4 | A5 | A6 | MinRatio XB/x1 |
A1 | M | 100 | (1) | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 100/1=100→ |
A2 | M | 50 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | --- |
A3 | M | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | --- |
A4 | M | 150 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 150/1=150 |
A5 | M | 50 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | --- |
A6 | M | 50 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | --- |
Z=500M | Zj | 2M | 2M | 2M | 2M | 2M | 2M | 2M | 2M | 2M | M | M | M | M | M | M | ||
Zj-Cj | 2M-1↑ | 2M-2 | 2M-2 | 2M-4 | 2M-3 | 2M-4 | 2M-4 | 2M-1 | 2M-3 | 0 | 0 | 0 | 0 | 0 | 0 |
Positive maximum Zj-Cj is
2M-1 and its column index is 1. So, the entering variable
is x1.
Minimum ratio is 100 and its row index is 1. So, the leaving basis
variable is A1.
∴ The pivot element is 1.
Entering =x1, Departing =A1, Key Element
=1
R1(new)=R1(old)
R2(new)=R2(old)
R3(new)=R3(old)
R4(new)=R4(old) - R1(new)
R5(new)=R5(old)
R6(new)=R6(old)
Iteration-2 | Cj | 1 | 2 | 2 | 4 | 3 | 4 | 4 | 1 | 3 | M | M | M | M | M | ||
B | CB | XB | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | A2 | A3 | A4 | A5 | A6 | MinRatio XB/x8 |
x1 | 1 | 100 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | --- |
A2 | M | 50 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | --- |
A3 | M | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 100/1=100 |
A4 | M | 50 | 0 | -1 | -1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | --- |
A5 | M | 50 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | (1) | 0 | 0 | 0 | 0 | 1 | 0 | 50/1=50→ |
A6 | M | 50 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | --- |
Z=300M+100 | Zj | 1 | 1 | 1 | 2M | 2M | 2M | 2M | 2M | 2M | M | M | M | M | M | ||
Zj-Cj | 0 | -1 | -1 | 2M-4 | 2M-3 | 2M-4 | 2M-4 | 2M-1↑ | 2M-3 | 0 | 0 | 0 | 0 | 0 |
Positive maximum Zj-Cj is
2M-1 and its column index is 8. So, the entering variable
is x8.
Minimum ratio is 50 and its row index is 5. So, the leaving basis
variable is A5.
∴ The pivot element is 1.
Entering =x8, Departing =A5, Key Element
=1
R5(new)=R5(old)
R1(new)=R1(old)
R2(new)=R2(old)
R3(new)=R3(old) - R5(new)
R4(new)=R4(old)
R6(new)=R6(old)
Iteration-3 | Cj | 1 | 2 | 2 | 4 | 3 | 4 | 4 | 1 | 3 | M | M | M | M | ||
B | CB | XB | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | A2 | A3 | A4 | A6 | MinRatio XB/x9 |
x1 | 1 | 100 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | --- |
A2 | M | 50 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | --- |
A3 | M | 50 | 0 | -1 | 0 | 0 | -1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 50/1=50 |
A4 | M | 50 | 0 | -1 | -1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | --- |
x8 | 1 | 50 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | --- |
A6 | M | 50 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | (1) | 0 | 0 | 0 | 1 | 50/1=50→ |
Z=200M+150 | Zj | 1 | -2M+2 | 1 | 2M | 1 | 2M | 2M | 1 | 2M | M | M | M | M | ||
Zj-Cj | 0 | -2M | -1 | 2M-4 | -2 | 2M-4 | 2M-4 | 0 | 2M-3↑ | 0 | 0 | 0 | 0 |
Positive maximum Zj-Cj is
2M-3 and its column index is 9. So, the entering variable
is x9.
Minimum ratio is 50 and its row index is 6. So, the leaving basis
variable is A6.
∴ The pivot element is 1.
Entering =x9, Departing =A6, Key Element
=1
R6(new)=R6(old)
R1(new)=R1(old)
R2(new)=R2(old)
R3(new)=R3(old) - R6(new)
R4(new)=R4(old)
R5(new)=R5(old)
Iteration-4 | Cj | 1 | 2 | 2 | 4 | 3 | 4 | 4 | 1 | 3 | M | M | M | ||
B | CB | XB | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | A2 | A3 | A4 | MinRatio XB/x4 |
x1 | 1 | 100 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | --- |
A2 | M | 50 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 50/1=50 |
A3 | M | 0 | 0 | -1 | -1 | 0 | -1 | -1 | 1 | 0 | 0 | 0 | 1 | 0 | --- |
A4 | M | 50 | 0 | -1 | -1 | (1) | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 50/1=50→ |
x8 | 1 | 50 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | --- |
x9 | 3 | 50 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | --- |
Z=100M+300 | Zj | 1 | -2M+2 | -2M+4 | 2M | 1 | 3 | 2M | 1 | 3 | M | M | M | ||
Zj-Cj | 0 | -2M | -2M+2 | 2M-4↑ | -2 | -1 | 2M-4 | 0 | 0 | 0 | 0 | 0 |
Positive maximum Zj-Cj is
2M-4 and its column index is 4. So, the entering variable
is x4.
Minimum ratio is 50 and its row index is 4. So, the leaving basis
variable is A4.
∴ The pivot element is 1.
Entering =x4, Departing =A4, Key Element
=1
R4(new)=R4(old)
R1(new)=R1(old)
R2(new)=R2(old) - R4(new)
R3(new)=R3(old)
R5(new)=R5(old)
R6(new)=R6(old)
Iteration-5 | Cj | 1 | 2 | 2 | 4 | 3 | 4 | 4 | 1 | 3 | M | M | ||
B | CB | XB | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | A2 | A3 | MinRatio |
x1 | 1 | 100 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
A2 | M | 0 | 0 | 1 | 1 | 0 | 1 | 1 | -1 | 0 | 0 | 1 | 0 | |
A3 | M | 0 | 0 | -1 | -1 | 0 | -1 | -1 | 1 | 0 | 0 | 0 | 1 | |
x4 | 4 | 50 | 0 | -1 | -1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | |
x8 | 1 | 50 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | |
x9 | 3 | 50 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | |
Z=500 | Zj | 1 | -2 | 0 | 4 | 1 | 3 | 4 | 1 | 3 | M | M | ||
Zj-Cj | 0 | -4 | -2 | 0 | -2 | -1 | 0 | 0 | 0 | 0 | 0 |
Since all Zj-Cj≤0
Hence, optimal solution is arrived with value of variables as
:
x1=100,x2=0,x3=0,x4=50,x5=0,x6=0,x7=0,x8=50,x9=50
Min Z=500
also the artificial variable A2 appears in the basis
1. (6 points) Find an optimal solution for the following transportation problem using the minimal...
Three libraries of the Public University need to send the books of the Math course to three libraries of a Private University. Shipping costs and restrictions are as follows: Minimize total cost = 3X11 + 3X12 + 2X13 + 4X21 + 2X22 + 3X23 + 3X31 +2X32 + 3X33 Subject to: X11 + X12 + X13 ≤ 25 (Public 1 supply) X21 + X22 + X23 ≤ 40 (Public 2 supply) X31 + X32 +...
To remind you, the LP is Min Transportation costs: 3x11 + 2 x12 + 7 x13 + 6 x14 + 7x21 + 5 x22 + 2 x23 + 3 x24 + 2x31 + 5 x32 + 4 x33 + 5 x34 s.t. Need to make sure demand at destination is satisfied: Boston demand: x11 + x21 + x31 = 6000 Chicago demand: x12 + x22 + x32 = 4000 St. Louis demand: x13 + x23 + x33 = 2000 Lexington...
Problem 10-05 Premier Consulting's two consultants, Avery and Baker, can be scheduled to work for clients up to a maximum of 160 hours each over the next four weeks. A third consultant, Campbell, has some administrative assignments already planned and is available for clients up to a maximum of 140 hours over the next four weeks. The company has four clients with projects in process. The estimated hourly requirements for each of the dients over the four-week period are as...
These are the choices for "Shortest Route" Please explain on an excel spreadsheet Problem 6-23 (Algorithmic) Find the shortest route from node 1 to node 7 in the network shown. If the constant is '1" it must be entered in the box. If your answer is zero enter "O". For negative values enter "minus" sign ( 12 1 if the arc from node i to node j is on the shortest route Let X12+ X32 t x56 x13 + x35...
9.2-6. Consider the transportation problem having the following parameter table: Destination 1 23 45Supply 8 6 375 20 5 M 847 30 6 3968 0 Source 4(D)10 0 0 0 0 | 20 Demand 25 25 20 10 20 After several iterations of the transportation simplex method, a BlF solution is obtained that has the following basic variables: 3-20, x21 = 25, x24-5, x32-25, x34-5,x42-0, x43-0, x45-20. Continue the transportation simplex method for wo more iterations by hand. After two...
Problem 6-23 (Algorithmic) Find the shortest route from node 1 to node 7 in the network shown. If the constant is "1" it must be entered in the box. If your answer is zero enter "O". For negative values enter "minus" sign) 13 10 18 19 1 if the arc from node i to node j is on the shortest route otherwise 13 x1 In 3 X X32 + 19 X46 + 10x67 7x57 + Flow Out Flow In Node...