Simplex (Minimization Prob)
Simplex (Minimization Prob)
Question:
Minimize 𝑍 = 𝑥1 − 3𝑥2 + 2𝑥3
Subject to,
3𝑥1 − 𝑥2 + 3𝑥3 ≤ 7
−2𝑥1 + 4𝑥2 ≤ 12
−4𝑥1 + 3𝑥2 + 8𝑥3 ≤ 10
𝑥1 ≥ 0, 𝑥2 ≥ 0, 𝑥3 ≥ 0
Solution:
First convert the problem in to maximization problem.
Multiply the objective function by -1
−𝑍 = −𝑥1 + 3𝑥2 − 2𝑥3
Maximize 𝑍 = −𝑥1 + 3𝑥2 − 2𝑥3 where 𝑍′ = −𝑍
′
Introduce a stack variable in each constrain to change the inequality into equality.
3𝑥1 − 𝑥2 + 3𝑥3 + 𝑠1 = 7
−2𝑥1 + 4𝑥2 + 𝑠2 = 12
−4𝑥1 + 3𝑥2 + 8𝑥3 + 𝑠3 = 10
1|P age
Linear Programming Simplex Method Instructor: Miss Urooj
2|P age
Linear Programming Simplex Method Instructor: Miss Urooj
Coefficient of
Basic b ratio
𝒁′ 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒔𝟏 𝒔𝟐 𝒔𝟑
𝒁′
𝒔𝟏
𝒙𝟐 0 -1/2 1 0 0 1/4 0 3
𝒔𝟑
Coefficient of
Basic b ratio
𝒁′ 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒔𝟏 𝒔𝟐 𝒔𝟑
𝒁′ 1 -1/2 0 2 0 3/4 0 9
𝒔𝟏 0 5/2 0 3 1 1/4 0 10
𝒙𝟐 0 -1/2 1 0 0 1/4 0 3
𝒔𝟑 0 -5/2 0 8 0 -3/4 1 1
3|P age
Linear Programming Simplex Method Instructor: Miss Urooj
Swap the entering variable and leaving variable in table to produce following set of basic and non-basic variables
non-basic (zero) variable (𝑠1, 𝑠2, 𝑥3 ) = (0,0,0)
basic variable (𝑥1 , 𝑥2 , 𝑠3)
Apply Gauss-Jordan row operations
Reduce pivot element to 1, multiply row 𝑠1 by 2/5
Coefficient of
Basic b ratio
𝒁′ 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒔𝟏 𝒔𝟐 𝒔𝟑
𝒁′
𝒙𝟏 0 1 0 6/5 2/5 1/10 4
𝒙𝟐
𝒔𝟑
4|P age
Linear Programming Simplex Method Instructor: Miss Urooj
𝑍′ = −𝑍 = −11
Answer:
Decision Variables Optimum value
𝒙𝟏 4
𝒙𝟐 5
𝒙𝟑 0
𝒁 -11
5|P age
Linear Programming Simplex Method Instructor: Miss Urooj
Question:
Minimize 𝑍 = 5𝑥1 − 4𝑥2 + 6𝑥3 − 8𝑥4
Subject to,
𝑥1 + 2𝑥2 + 2𝑥3 + 4𝑥4 ≤ 40
2𝑥1 − 𝑥2 + 𝑥3 + 2𝑥4 ≤ 8
−4𝑥1 + 2𝑥2 − 𝑥3 + 𝑥4 ≥ −10
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
Solution:
First convert the problem in to maximization problem.
Multiply the objective function by -1
−𝑍 = −5𝑥1 + 4𝑥2 − 6𝑥3 + 8𝑥4
Maximize 𝑍 = −5𝑥1 + 4𝑥2 − 6𝑥3 + 8𝑥4 where 𝑍 ′ = −𝑍
′
6|P age
Linear Programming Simplex Method Instructor: Miss Urooj
7|P age
Linear Programming Simplex Method Instructor: Miss Urooj
Coefficient of
Basic b ratio
𝒁′ 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒔𝟏 𝒔𝟐 𝒔𝟑
𝒁′
𝒔𝟏
𝒙𝟒 0 1 -1/2 1/2 1 0 1/2 0 4
𝒔𝟑
Coefficient of
Basic b ratio
𝒁′ 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒔𝟏 𝒔𝟐 𝒔𝟑
𝒁′ 1 13 -8 10 0 0 4 0 32
𝒔𝟏 0 -3 4 0 0 1 -2 0 24
𝒙𝟒 0 1 -1/2 1/2 1 0 1/2 0 4
𝒔𝟑 0 5 -5/2 3/2 0 0 1/2 1 14
8|P age
Linear Programming Simplex Method Instructor: Miss Urooj
9|P age
Linear Programming Simplex Method Instructor: Miss Urooj
𝑍′ = −𝑍 = −80
Answer:
Decision Variables Optimum value
𝒙𝟏 0
𝒙𝟐 6
𝒙𝟑 0
𝒙𝟒 7
𝒁 -80
10 | P a g e