Chap 3 Simplex
Chap 3 Simplex
Chap 3 Simplex
Introduction:
In the simplex method, the model is put into the form of table,
Max Z = 40 X1 + 50X2
X1, X2 ≥0
1
Initial tableau:
Basic Quantity 40 50 0 0
Cj Variables (Zj) X1 X2 S1 S2
0 S1 40 1 2 1 0
0 S2 120 4 3 0 1
Zj 0 0 0 0 0
Cj - Z j 40 50 0 0
Basic Quantity 40 50 0 0
Cj Variables (Zj) X1 X2 S1 S2
50 X2 20 0.5 1 0.5 0
0 S2 60 2.5 0 -1.5 1
Zj 1000 25 50 25 0
Cj - Z j 15 0 -25 0
Optimal tableau:
Basic Quantity 40 50 0 0
Cj Variables (Zj) X1 X2 S1 S2
50 X2 8 0 1 0.8 -0.2
40 X1 24 1 0 -0.6 0.4
Zj 1360 40 50 16 6
Cj - Z j 0 0 -16 -6
Solution:
X1 = 24, X2 = 8
S1 = 0, S2 = 0
Z = 1360
2
Steps:
value.
values by the pivot column values & select the row with
3
8. Determine whether the new solution is optimal by
= (+) an artificial -M M
variable
≥ (-) a surplus 0 0
variable
(+) an artificial -M M
variable
4
Artificial variable (Ai) does not have a meaning as slack variable
at the origin.
s.t x1 + x2 = 30
2x1 + 8x2 ≥ 80
x1 ≤ 20
x1, x2 ≥0
Standard form:
5
Example 2: Minimize Z = 400x1 + 200x2
s.t x1 + x2 = 30
2x1 + 8x2 ≥ 80
x1 ≤ - 20
x1, x2 ≥0
Standard form:
6
Example 3:
s.t X1 – X3 + A1 = 50
6X2 + S1 = 380
LP model:
7
Exercises 1:
X1 + X2 ≥ 5
X1 + X3 ≤ 10
X1, X2, X3 ≥ 0
6X1 + 14X2 ≤ 48
X2/X1 ≥ 7/8
X1, X2 ≥ 0
7X1 + 15X2 ≥ 18
X1, X2 ≥ 0
8
Exercises 2:
4X1 – S1 + A2 = 40
7X2 + A3 = 500
s.t X1 + S1 = 40
X2 + X3 + S2 = 100
7X1 + 15X2 – S2 + A2 = 18
9
Simplex Method For ≤ Constraints
Example:
s.t X1 + X2 ≤ 7
X2 + X3 ≤ 10
X1, X2, X3 ≥ 0
Standard form:
10
Initial tableau:
Cj Basic Quantity
Var.
Zj
Cj Basic Quantity
Var.
Zj
11
Cj Basic Quantity
Var.
Zj
12
Corresponding New tableau
Old row - Coefficient in X Pivot = New tableau
Column Value Pivot column Row value Row value
13
Corresponding New tableau
Old row - Coefficient in X Pivot = New tableau
Column Value Pivot column Row value Row value
14
Simplex Method For ≥ Constraints
Example:
4X1 + 3X2 ≥ 24
X1, X2 ≥ 0
Standard form:
15
Initial tableau:
Cj Basic Quantity
Var.
Zj
Cj Basic Quantity
Var.
Zj
16
Cj Basic Quantity
Var.
Zj
Cj Basic Quantity
Var.
Zj
17
Corresponding New tableau
Old row - Coefficient in X Pivot = New tableau
Column Value Pivot column Row value Row value
18
Corresponding New tableau
Old row - Coefficient in X Pivot = New tableau
Column Value Pivot column Row value Row value
19
Simplex Method For Mixed Constraints ( ≥, =, ≤ )
Example:
s.t X1 + X2 = 30
2X1 + 8X2 ≥ 80
X1 ≤ 20
X1, X2 ≥ 0
Standard form:
20
Initial tableau:
Cj Basic Quantity
Var.
Zj
Cj Basic Quantity
Var.
Zj
21
Cj Basic Quantity
Var.
Zj
Cj Basic Quantity
Var.
Zj
22
Corresponding New tableau
Old row - Coefficient in X Pivot = New tableau
Column Value Pivot column Row value Row value
23
Corresponding New tableau
Old row - Coefficient in X Pivot = New tableau
Column Value Pivot column Row value Row value
24
Corresponding New tableau
Old row - Coefficient in X Pivot = New tableau
Column Value Pivot column Row value Row value
25
The basic feasible solution in the initial simplex tableau is the
The quantity column values are the solution values for the
The cj values are the contribution to profit (or cost) for each
variable.
26
The pivot number is the number at the intersection of the pivot
27
Irregular types of LP Problems
Example:
X 1 +2 X 2≤40
4 X 1+3 X 2≤120
X 1 , X 2≥0
Basic Quantity 40 30 0 0
Cj Variables (Zj) X1 X2 S1 S2
0 S1 10 0 5/4 1 -1/4
40 X1 30 1 ¾ 0 ¼
Zj 1200 40 30 0 10
Cj - Zj 0 0 0 -10
28
2. An Infeasible Problem
simplex tableau.
Example:
Basic Quantity 5 3 0 0 0 -M -M
Cj Var. X1 X2 S1 S2 S3 A1 A2
3 X2 4 2 1 ½ 0 0 0 0
-M A1 4 1 0 0 -1 0 1 0
-M A2 2 -2 0 -1/2 0 -1 0 1
Zj 12-6M 6+M 3 3/2 M M -M -M
+
M/2
Cj – Zj -1-M 0 -3/2 -M -M 0 0
–
M/2
3. An Unbounded Problem
Basic 4 2 0 0 M
Cj Variable Quantity X1 X2 S1 S2 A1
s
M A1 4 1 0 -1 0 1
0 S2 2 0 1 0 1 0
Zj 4M M 0 -M 0 M
Cj – Zj 4-M 2 M 0 0
29
4. Tie For the Pivot Column
Example:
Basic Quantity 4 6 0 0 0
Cj Var. X1 X2 S1 S2 S3
0 S1 12 6 0 1 -4 0
6 X2 3 0 1 0 1 0
0 S3 10 5 0 0 -10 1
Zj 18 0 6 0 6 0
Cj – Zj 4 0 0 -6 0
Example:
6x1 - 2x2 ≤ 30
30