In: Operations Management
Answer the following questions for the linear programming problem given below:
maxz=2x1+3x2+x3maxz=2x1+3x2+x3
Subject to:Subject to:
x1+x2+x3≤40x1+x2+x3≤40
2x1+x2−x3≥102x1+x2−x3≥10
−x1+x3≥10−x1+x3≥10
x1,x2,x3≥0
PHASE ONE
The problem is converted to
canonical form by adding slack, surplus and artificial variables as
appropiate
1. As the constraint-1 is of type
'≤' we should add slack variable S1
2. As the constraint-2 is of type
'≥' we should subtract surplus variable
S2 and add artificial variable A1
3. As the constraint-3 is of type
'≥' we should subtract surplus variable
S3 and add artificial variable A2
After introducing slack,surplus,artificial
variables
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| subject to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| and x1,x2,x3,S1,S2,S3,A1,A2≥0 |
| Iteration-1 | Cj | 0 | 0 | 0 | 0 | 0 | 0 | -1 | -1 | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | A1 | A2 | MinRatio XBx1 |
| S1 | 0 | 400 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4001=400 |
| A1 | -1 | 102 | (2) | 1 | -1 | 0 | -1 | 0 | 1 | 0 | 1022=51→ |
| A2 | -1 | 10 | -1 | 0 | 1 | 0 | 0 | -1 | 0 | 1 | --- |
| Z=-112 | Zj | -1 | -1 | 0 | 0 | 1 | 1 | -1 | -1 | ||
| Zj-Cj | -1↑ | -1 | 0 | 0 | 1 | 1 | 0 | 0 |
Negative minimum
Zj-Cj
is -1 and its
column index is 1. So,
the entering variable is
x1.
Minimum ratio is 51 and its row
index is 2. So, the
leaving basis variable is A1.
∴ The pivot element is 2.
Entering =x1,
Departing =A1,
Key Element =2
R2(new)=R2(old)÷2
| R2(old) = | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 |
| R2(new)=R2(old)÷2 | 51 | 1 | 0.5 | -0.5 | 0 | -0.5 | 0 | 0 |
R1(new)=R1(old) - R2(new)
| R1(old) = | 400 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
| R2(new) = | 51 | 1 | 0.5 | -0.5 | 0 | -0.5 | 0 | 0 |
| R1(new)=R1(old) - R2(new) | 349 | 0 | 0.5 | 1.5 | 1 | 0.5 | 0 | 0 |
R3(new)=R3(old) + R2(new)
| R3(old) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 | 1 |
| R2(new) = | 51 | 1 | 0.5 | -0.5 | 0 | -0.5 | 0 | 0 |
| R3(new)=R3(old) + R2(new) | 61 | 0 | 0.5 | 0.5 | 0 | -0.5 | -1 | 1 |
| Iteration-2 | Cj | 0 | 0 | 0 | 0 | 0 | 0 | -1 | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | A2 | MinRatio XBx2 |
| S1 | 0 | 349 | 0 | 0.5 | 1.5 | 1 | 0.5 | 0 | 0 | 3490.5=698 |
| x1 | 0 | 51 | 1 | (0.5) | -0.5 | 0 | -0.5 | 0 | 0 | 510.5=102→ |
| A2 | -1 | 61 | 0 | 0.5 | 0.5 | 0 | -0.5 | -1 | 1 | 610.5=122 |
| Z=-61 | Zj | 0 | -0.5 | -0.5 | 0 | 0.5 | 1 | -1 | ||
| Zj-Cj | 0 | -0.5↑ | -0.5 | 0 | 0.5 | 1 | 0 |
Negative minimum
Zj-Cj
is -0.5 and its
column index is 2. So,
the entering variable is
x2.
Minimum ratio is 102 and its
row index is 2. So,
the leaving basis variable is
x1.
∴ The pivot element is 0.5.
Entering =x2,
Departing =x1,
Key Element =0.5
R2(new)=R2(old)÷0.5
| R2(old) = | 51 | 1 | 0.5 | -0.5 | 0 | -0.5 | 0 | 0 |
| R2(new)=R2(old)÷0.5 | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 |
R1(new)=R1(old) - 0.5R2(new)
| R1(old) = | 349 | 0 | 0.5 | 1.5 | 1 | 0.5 | 0 | 0 |
| R2(new) = | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 |
| 0.5×R2(new) = | 51 | 1 | 0.5 | -0.5 | 0 | -0.5 | 0 | 0 |
| R1(new)=R1(old) - 0.5R2(new) | 298 | -1 | 0 | 2 | 1 | 1 | 0 | 0 |
R3(new)=R3(old) - 0.5R2(new)
| R3(old) = | 61 | 0 | 0.5 | 0.5 | 0 | -0.5 | -1 | 1 |
| R2(new) = | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 |
| 0.5×R2(new) = | 51 | 1 | 0.5 | -0.5 | 0 | -0.5 | 0 | 0 |
| R3(new)=R3(old) - 0.5R2(new) | 10 | -1 | 0 | 1 | 0 | 0 | -1 | 1 |
| Iteration-3 | Cj | 0 | 0 | 0 | 0 | 0 | 0 | -1 | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | A2 | MinRatio XBx3 |
| S1 | 0 | 298 | -1 | 0 | 2 | 1 | 1 | 0 | 0 | 2982=149 |
| x2 | 0 | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 | --- |
| A2 | -1 | 10 | -1 | 0 | (1) | 0 | 0 | -1 | 1 | 101=10→ |
| Z=-10 | Zj | 1 | 0 | -1 | 0 | 0 | 1 | -1 | ||
| Zj-Cj | 1 | 0 | -1↑ | 0 | 0 | 1 | 0 |
Negative minimum
Zj-Cj
is -1 and its
column index is 3. So,
the entering variable is
x3.
Minimum ratio is 10 and its row
index is 3. So, the
leaving basis variable is A2.
∴ The pivot element is 1.
Entering =x3,
Departing =A2,
Key Element =1
R3(new)=R3(old)
| R3(old) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| R3(new)=R3(old) | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
R1(new)=R1(old) - 2R3(new)
| R1(old) = | 298 | -1 | 0 | 2 | 1 | 1 | 0 |
| R3(new) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| 2×R3(new) = | 20 | -2 | 0 | 2 | 0 | 0 | -2 |
| R1(new)=R1(old) - 2R3(new) | 278 | 1 | 0 | 0 | 1 | 1 | 2 |
R2(new)=R2(old) + R3(new)
| R2(old) = | 102 | 2 | 1 | -1 | 0 | -1 | 0 |
| R3(new) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| R2(new)=R2(old) + R3(new) | 112 | 1 | 1 | 0 | 0 | -1 | -1 |
| Iteration-4 | Cj | 0 | 0 | 0 | 0 | 0 | 0 | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | MinRatio |
| S1 | 0 | 278 | 1 | 0 | 0 | 1 | 1 | 2 | |
| x2 | 0 | 112 | 1 | 1 | 0 | 0 | -1 | -1 | |
| x3 | 0 | 10 | -1 | 0 | 1 | 0 | 0 | -1 | |
| Z=0 | Zj | 0 | 0 | 0 | 0 | 0 | 0 | ||
| Zj-Cj | 0 | 0 | 0 | 0 | 0 | 0 |
Since all Zj-Cj≥0
Hence, optimal solution is arrived
with value of variables as :
x1=0,x2=112,x3=10
Max Z=0
SIMPLEX METHOD
|
|||||||||||||||||||||||||||||||||
| subject to | |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
| and x1,x2,x3≥0; |
The problem is converted to
canonical form by adding slack, surplus and artificial variables as
appropiate
1. As the constraint-1 is of type
'≤' we should add slack variable S1
2. As the constraint-2 is of type
'≥' we should subtract surplus variable
S2 and add artificial variable A1
3. As the constraint-3 is of type
'≥' we should subtract surplus variable
S3 and add artificial variable A2
After introducing slack,surplus,artificial
variables
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| subject to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| and x1,x2,x3,S1,S2,S3,A1,A2≥0 |
| Iteration-1 | Cj | 2 | 3 | 1 | 0 | 0 | 0 | -M | -M | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | A1 | A2 | MinRatio XBx2 |
| S1 | 0 | 400 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4001=400 |
| A1 | -M | 102 | 2 | (1) | -1 | 0 | -1 | 0 | 1 | 0 | 1021=102→ |
| A2 | -M | 10 | -1 | 0 | 1 | 0 | 0 | -1 | 0 | 1 | --- |
| Z=-112M | Zj | -M | -M | 0 | 0 | M | M | -M | -M | ||
| Zj-Cj | -M-2 | -M-3↑ | -1 | 0 | M | M | 0 | 0 |
Negative minimum
Zj-Cj
is -M-3 and its column index is 2. So,
the entering variable is
x2.
Minimum ratio is 102 and its
row index is 2. So,
the leaving basis variable is
A1.
∴ The pivot element is 1.
Entering =x2,
Departing =A1,
Key Element =1
R2(new)=R2(old)
| R2(old) = | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 |
| R2(new)=R2(old) | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 |
R1(new)=R1(old) - R2(new)
| R1(old) = | 400 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
| R2(new) = | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 |
| R1(new)=R1(old) - R2(new) | 298 | -1 | 0 | 2 | 1 | 1 | 0 | 0 |
R3(new)=R3(old)
| R3(old) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 | 1 |
| R3(new)=R3(old) | 10 | -1 | 0 | 1 | 0 | 0 | -1 | 1 |
| Iteration-2 | Cj | 2 | 3 | 1 | 0 | 0 | 0 | -M | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | A2 | MinRatio XBx3 |
| S1 | 0 | 298 | -1 | 0 | 2 | 1 | 1 | 0 | 0 | 2982=149 |
| x2 | 3 | 102 | 2 | 1 | -1 | 0 | -1 | 0 | 0 | --- |
| A2 | -M | 10 | -1 | 0 | (1) | 0 | 0 | -1 | 1 | 101=10→ |
| Z=-10M+306 | Zj | M+6 | 3 | -M-3 | 0 | -3 | M | -M | ||
| Zj-Cj | M+4 | 0 | -M-4↑ | 0 | -3 | M | 0 |
Negative minimum
Zj-Cj
is -M-4 and its column index is 3. So,
the entering variable is
x3.
Minimum ratio is 10 and its row
index is 3. So, the
leaving basis variable is A2.
∴ The pivot element is 1.
Entering =x3,
Departing =A2,
Key Element =1
R3(new)=R3(old)
| R3(old) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| R3(new)=R3(old) | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
R1(new)=R1(old) - 2R3(new)
| R1(old) = | 298 | -1 | 0 | 2 | 1 | 1 | 0 |
| R3(new) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| 2×R3(new) = | 20 | -2 | 0 | 2 | 0 | 0 | -2 |
| R1(new)=R1(old) - 2R3(new) | 278 | 1 | 0 | 0 | 1 | 1 | 2 |
R2(new)=R2(old) + R3(new)
| R2(old) = | 102 | 2 | 1 | -1 | 0 | -1 | 0 |
| R3(new) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| R2(new)=R2(old) + R3(new) | 112 | 1 | 1 | 0 | 0 | -1 | -1 |
| Iteration-3 | Cj | 2 | 3 | 1 | 0 | 0 | 0 | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | MinRatio XBS3 |
| S1 | 0 | 278 | 1 | 0 | 0 | 1 | 1 | (2) | 2782=139→ |
| x2 | 3 | 112 | 1 | 1 | 0 | 0 | -1 | -1 | --- |
| x3 | 1 | 10 | -1 | 0 | 1 | 0 | 0 | -1 | --- |
| Z=346 | Zj | 2 | 3 | 1 | 0 | -3 | -4 | ||
| Zj-Cj | 0 | 0 | 0 | 0 | -3 | -4↑ |
Negative minimum
Zj-Cj
is -4 and its
column index is 6. So,
the entering variable is
S3.
Minimum ratio is 139 and its
row index is 1. So,
the leaving basis variable is
S1.
∴ The pivot element is 2.
Entering =S3,
Departing =S1,
Key Element =2
R1(new)=R1(old)÷2
| R1(old) = | 278 | 1 | 0 | 0 | 1 | 1 | 2 |
| R1(new)=R1(old)÷2 | 139 | 0.5 | 0 | 0 | 0.5 | 0.5 | 1 |
R2(new)=R2(old) + R1(new)
| R2(old) = | 112 | 1 | 1 | 0 | 0 | -1 | -1 |
| R1(new) = | 139 | 0.5 | 0 | 0 | 0.5 | 0.5 | 1 |
| R2(new)=R2(old) + R1(new) | 251 | 1.5 | 1 | 0 | 0.5 | -0.5 | 0 |
R3(new)=R3(old) + R1(new)
| R3(old) = | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| R1(new) = | 139 | 0.5 | 0 | 0 | 0.5 | 0.5 | 1 |
| R3(new)=R3(old) + R1(new) | 149 | -0.5 | 0 | 1 | 0.5 | 0.5 | 0 |
| Iteration-4 | Cj | 2 | 3 | 1 | 0 | 0 | 0 | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | MinRatio XBS2 |
| S3 | 0 | 139 | 0.5 | 0 | 0 | 0.5 | (0.5) | 1 | 1390.5=278→ |
| x2 | 3 | 251 | 1.5 | 1 | 0 | 0.5 | -0.5 | 0 | --- |
| x3 | 1 | 149 | -0.5 | 0 | 1 | 0.5 | 0.5 | 0 | 1490.5=298 |
| Z=902 | Zj | 4 | 3 | 1 | 2 | -1 | 0 | ||
| Zj-Cj | 2 | 0 | 0 | 2 | -1↑ | 0 |
Negative minimum
Zj-Cj
is -1 and its
column index is 5. So,
the entering variable is
S2.
Minimum ratio is 278 and its
row index is 1. So,
the leaving basis variable is
S3.
∴ The pivot element is 0.5.
Entering =S2,
Departing =S3,
Key Element =0.5
R1(new)=R1(old)÷0.5
| R1(old) = | 139 | 0.5 | 0 | 0 | 0.5 | 0.5 | 1 |
| R1(new)=R1(old)÷0.5 | 278 | 1 | 0 | 0 | 1 | 1 | 2 |
R2(new)=R2(old) + 0.5R1(new)
| R2(old) = | 251 | 1.5 | 1 | 0 | 0.5 | -0.5 | 0 |
| R1(new) = | 278 | 1 | 0 | 0 | 1 | 1 | 2 |
| 0.5×R1(new) = | 139 | 0.5 | 0 | 0 | 0.5 | 0.5 | 1 |
| R2(new)=R2(old) + 0.5R1(new) | 390 | 2 | 1 | 0 | 1 | 0 | 1 |
R3(new)=R3(old) - 0.5R1(new)
| R3(old) = | 149 | -0.5 | 0 | 1 | 0.5 | 0.5 | 0 |
| R1(new) = | 278 | 1 | 0 | 0 | 1 | 1 | 2 |
| 0.5×R1(new) = | 139 | 0.5 | 0 | 0 | 0.5 | 0.5 | 1 |
| R3(new)=R3(old) - 0.5R1(new) | 10 | -1 | 0 | 1 | 0 | 0 | -1 |
| Iteration-5 | Cj | 2 | 3 | 1 | 0 | 0 | 0 | ||
| B | CB | XB | x1 | x2 | x3 | S1 | S2 | S3 | MinRatio |
| S2 | 0 | 278 | 1 | 0 | 0 | 1 | 1 | 2 | |
| x2 | 3 | 390 | 2 | 1 | 0 | 1 | 0 | 1 | |
| x3 | 1 | 10 | -1 | 0 | 1 | 0 | 0 | -1 | |
| Z=1180 | Zj | 5 | 3 | 1 | 3 | 0 | 2 | ||
| Zj-Cj | 3 | 0 | 0 | 3 | 0 | 2 |
Since all Zj-Cj≥0
Hence, optimal solution is arrived
with value of variables as :
x1=0,x2=390,x3=10
Max Z=1180