Documente Academic
Documente Profesional
Documente Cultură
1
Mjdah Al Shehri
Mute ur call
Simplex method when some
constraints are not “≤”
constraints
• We employ a mathematical “ trick” to jumpstart
the problem by adding artificial variables to the
equations.
Max 16x1+15x2+20x3-18x4
ST
2x1 + x2 + 3x3 ≤ 3000 [1]
3x1 + 4x2 + 5x3 – 60x4 ≤ 2400 [2]
x4 ≤ 32 [3]
X2 ≥ 200 [4]
X1 + x2 + x3 ≥ 800 [5]
X1 – x2 –x3 =0 [6]
Xj ≥ 0 for all J
X1,x2,s1,s2,R1,R3 ≥ 0
Basis X1 X2 S1 S2 R1 R3 RHS
R1 1 0 -1 0 1 0 4
R1, S2, R3 are
S2 1 4 0 1 0 0 32 basic
variables.
R3 3 2 0 0 0 1 24
Z -2 -5 0 0 +M +M 0
• Make z consistent; (R1, R3) in z-row coefficient (+M,+M) it must be zero; By apply:
Min 4x1 + x2
ST
3x1+ x2 = 3
4x1 + 3x2 ≥ 6
X1+ 2x2 ≤ 4
X1, x2 ≥ 0
Hamdy A. Taha, Operations Research: An introduction, Prentice Hall 17
Solving For the optimal solution of
[Minimization] when there are
artificial variables (cont.)
The Solution
• By adding the appropriate slack, surplus, and artificial
variables, we obtain the following:
Variable
Basis X1 X2 S1 R1 R2 S2 RHS
R1 3 1 0 1 0 0 3
R2 4 3 -1 0 1 0 6
S2 1 2 0 0 0 1 4
Z -4+7M -1+4M -M 0 0 0 9M
1. Degeneracy
2. Alternative optima
3. Unbounded solution
4. Nonexisting ( infeasible ) solution
Entering Leaving
Variable Variable
Basis X1 X2 S1 S2 RHS
s1 1 4 1 0 8
s2 1 2 0 1 4
Z -3 -9 0 0 0
Entering Leaving
Variable Variable
Basis X1 X2 S1 S2 RHS
X2 1/4 1 1/4 0 2
s2 ½ 0 -1/2 1 0
Z -3/4 0 2/4 0 18
Basis X1 X2 S1 S2 RHS
X2 0 1 ½ -1/2 2
X1 1 0 -1 2 0
Z 0 0 3/2 3/2 18
Entering Leaving
Variable Variable
Basis X1 X2 S1 S2 RHS
s1 1 2 1 0 4
s2 1 1 0 1 5
Z -2 -4 0 0 0
Basis X1 X2 S1 S2 RHS
x2 1/2 1 1/2 0 5/2
s2 1/2 0 -1/2 1 3/2
Z 0 0 2 0 10
Max 2x1+ x2
ST
X1 – x2 ≤10
2x1 ≤ 40
X1, x2≥0
Hamdy A. Taha, Operations Research: An introduction, Prentice Hall 39
Simplex Algorithm – Special cases
(cont.)
The solution
Max 2x1+ x2
ST
X1 – x2 +s1= 10
2x1 +s2= 40
X1, x2,s1,s2≥0
Hamdy A. Taha, Operations Research: An introduction, Prentice Hall 40
Simplex Algorithm – Special cases
(cont.)
Basis X1 X2 S1 S2 RHS
x2 1 -1 1 0 10
x1 2 0 0 1 40
Z -2 -1 0 0 0