Professional Documents
Culture Documents
max 𝑍 = 3𝑥1 + 3 𝑥2
s. t. 𝑥1 + 2 𝑥2 ≤ 15
3𝑥1 + 𝑥2 ≤ 26
4𝑥1 ≤ 32
3𝑥2 ≤ 15
𝑥1 , 𝑥2 ≥ 0
Introduce 𝑠1 , 𝑠2 , 𝑠3 , 𝑠4 :
max 𝑍 = 3𝑥1 + 3 𝑥2
s. t. 𝑥1 + 2 𝑥2 + 𝑠1 = 15
3𝑥1 + 𝑥2 + 𝑠2 = 26
4𝑥1 + 𝑠3 = 32
3𝑥2 + 𝑠4 = 15
𝑥1 , 𝑥2 , 𝑠1 , 𝑠2 , 𝑠3 , 𝑠4 = 0
𝑠2 0 3 1 0 1 0 0 26 26/3
𝑠3 0 4 0 0 0 1 0 32 8
1st
𝑠4 0 0 3 0 0 0 1 15 -
zj 0 0 0 0 0 0 0
cj -zj 3 3 0 0 0 0
𝑠1 0 0 2 1 0 -1/4 0 7 7/2
𝑠2 0 0 1 0 1 -3/4 0 2 2
𝑥1 3 1 0 0 0 1/4 0 8 -
2nd
𝑠4 0 0 3 0 0 0 1 15 5
zj 3 0 0 0 3/4 0 24
cj -zj 0 3 0 0 -3/4 0
𝑠1 0 0 0 1 -2 5/4 0 3 12/5
𝑥2 3 0 1 0 1 -3/4 0 2 -
𝑥1 3 1 0 0 0 1/4 0 8 32
3rd
𝑠4 0 0 0 0 -3 9/4 1 9 4
zj 3 3 0 3 -3/2 0 30
cj -zj 0 0 0 -3 3/2 0
Graphical Method:
Simplex Method without Tabular:
# 1:
Let slack variables be basic variables: 𝑠1 , 𝑠2 , 𝑠3 , 𝑠4 are the basic variables; 𝑥1 , 𝑥2 are the non-basic
variables.
𝐵0 = {𝑠1 , 𝑠2 , 𝑠3 , 𝑠4 }
𝑠1 = 15 − 𝑥1 − 2 𝑥2 = 15 > 0
𝑠2 = 26 − 3𝑥1 − 𝑥2 = 26 > 0
𝑠3 = 32 − 4𝑥1 = 32 > 0
𝑠4 = 15 − 3𝑥2 = 15 > 0
𝑍 = 3𝑥1 +3 𝑥2 = 0
The coefficient of the non-basic variables (𝑥1 , 𝑥2 ) are 3 and 3, which are positive. So, the basic solution is not
optimal.
𝑠1 = 15 − 𝑥1 − 2𝑥2 ≥ 0 requires 𝑥1 ≤ 15
𝑠3 = 32 − 4𝑥1 ≥ 0 requires 𝑥1 ≤ 8
𝑠4 = 15 − 3𝑥2 ≥ 0
Hence 𝑠3 is the leaving variable, which is the one that first goes to zero as the value of the entering variable 𝑥1
increases from zero.
𝑥1 = (32 − 𝑠3 )/4 = 8 − 𝑠3 /4
𝑠4 = 15 − 3𝑥2
------------------------------------------------------------------------------
# 2:
𝐵1 = {𝑠1 , 𝑠2 , 𝑥1 , 𝑠4 }
𝑠1 = 7 + 𝑠3 /4 − 2𝑥2 = 7 > 0
𝑠2 = 2 + 3/4𝑠3 − 𝑥2 = 2 > 0
𝑥1 = 8 − 𝑠3 /4 = 8 > 0
𝑠4 = 15 − 3𝑥2 = 15 > 0
The coefficient of the non-basic variable 𝑥2 is 3, which is positive. So, the basic solution is not optimal.
𝑠2 = 2 + 3/4𝑠3 − 𝑥2 ≥ 0 requires 𝑥2 ≤ 2
𝑥1 = 8 − 𝑠3 /4 = 8
𝑠4 = 15 − 3𝑥2 ≥ 0 requires 𝑥2 ≤ 5
Hence 𝑠2 is the leaving variable, which is the one that first goes to zero as the value of the entering variable 𝑥2
increases from zero.
𝐵2 = {𝑠1 , 𝑥2 , 𝑥1 , 𝑠4 } 𝑥2 = 2 + 3/4𝑠3 − 𝑠2
𝑥2 = 2 + 3/4𝑠3 − 𝑠2
𝑥1 = 8 − 𝑠3 /4
------------------------------------------------------------------------------
# 3:
𝐵2 = {𝑠1 , 𝑥2 , 𝑥1 , 𝑠4 }
𝑥2 = 2 + 3/4𝑠3 − 𝑠2 = 2 > 0
𝑥1 = 8 − 𝑠3 /4 = 8 > 0
𝑍 = 30 + 3/2𝑠3 − 3𝑠2 = 30
The coefficient of the non-basic variable 𝑠3 is 3/2, which is positive. So, the basic solution is not optimal.
Step 3: Determine entering and leaving variables
𝑥2 = 2 + 3/4𝑠3 − 𝑠2 ≥ 0
𝑥1 = 8 − 𝑠3 /4 ≥ 0 requires 𝑠3 ≤ 32
Hence 𝑠1 is the leaving variable, which is the one that first goes to zero as the value of the entering variable 𝑠3
increases from zero.
------------------------------------------------------------------------------
# 4:
𝐵3 = {𝑠3 , 𝑥2 , 𝑥1 , 𝑠4 }
The coefficients of the non-basic variables are negative. So, the basic solution is optimal.