Professional Documents
Culture Documents
Algebraic Solutions
Simplex Method
Examples
x1 , x2 0
x1 + 2x2 + s1 = 6
2x1 + x2 s2 = 16
Surplus variable
2x1 + x2 s2 = 16
x1 , x2 , s1 , s2 0
x1 0, x2 0
since x2 0 y2 0
Unrestricted variables
Constraints:
2x1 x2+x3 6
2x1 + y2 + (x3+- x3-) + s1 = 6
x1 + 3x2 -7x3 -16
-x1 - 3x2 +7x3 16
-x1 + 3y2 +7(x3+- x3-) + s2 = 16
with
x1 0, y2 0, x3+ 0, x3- 0, s1 0, s2 0
Subject to
(6/7, 12/7, 0,
0)
PF : Feasible Region
Max z = 3x1 + x2
Subject to
-x1 + x2 1
2x1 + x2 2
x1 , x2 0
nC =6 basic solutions.
m
Min. z = 3x1 + x2
Subject to x1 + x2 8
-x1 + x2 0
x1 , x2 0
Move to a better
adjacent BFS
x1, x2 0
subject to x1 +s1 =4
2x2 +s2 = 12
3x1+ 2x2 +s3 = 18
Equivalent to:
Let aij be the coefficient of the entering variable xj in the ith row.
bi
, aij > 0 is Minimum
aij
subject to
x1 4
2x2 12
3x1+ 2x2 18
x1, x2 0
Z- 3x1 - 5x2 =0
x1 +s1 =4
2x2 +s2 = 12
3x1+ 2x2 +s3 = 18
s1
s2
s3
Basic
Z x1 x2 s1 s2 s3 Solution
variable
Z 1 -3 -5 0 0 0 0
s1 0 1 0 1 0 0 4
s2 0 0 2 0 1 0 12
s3 0 3 2 0 0 1 18
Min.
Basic Ratio
Z x1 x2 s1 s2 s3 Solution
variable
Z 1 -3 0 0 5/2 0 30 No Ratio
s1 0 1 0 1 0 0 4 4/1 = 4
x2 0 0 1 0 1/2 0 6 -------
s3 0 3 0 0 -1 1 6 6/3 =2
Z 1 0 0 0 3/2 1 36
s1 0 0 0 1 1/3 -1/3 2
x2 0 0 1 0 1/2 0 6
x1 0 1 0 0 -1/3 1/3 2
Feasible (4, 3)
Region
(0, 0) (4, 0)
Min Z = x1 -2x2 + x3
subject to
x1 + 2x2 -2x3 4
x1 -x3 3
2x1 -x2 +2x3 2
x 1, x 2, x 3 0
Min Z = x1 -2x2 + x3
subject to
x1 + 2x2 -2x3 + s1 =4
x1 -x3 + s2 =3
2x1 -x2 +2x3 + s3 = 2
x1, x2, x3 , s1, s2, s3 0
Z - x1 + 2x2 - x3 =0
x1 + 2x2 -2x3 + s1 =4
x1 - x3 + s2 =3
2x1 - x2 + 2x3 + s3 = 2
Z 1 -1 2 -1 0 0 0 0 ---
S1 0 1 2 -2 1 0 0 4 4/2=2
S2 0 1 0 -1 0 1 0 3 -----
S3 0 2 -1 2 0 0 1 2 -----
Z 1 -2 0 1 -1 0 0 -4 ---
x2 0 1/2 1 -1 0 0 2 -----
S2 0 1 0 -1 0 1 0 3 -----
S3 0 5/2 0 1 0 1 4 4/1=1
x2 0 3 1 0 1 0 1 6 -----
S2 0 7/2 0 0 1 1 7 -----
x3 0 5/2 0 1 0 1 4 -----