Ise 203 or I
Ise 203 or I
Chapter 4
Solving Linear Programming Problems:
The Simplex Method
Asst. Prof. Dr. Nergiz Kasımbeyli
1
The SIMPLEX Method
• Simplex method is an algebraic procedure
• However, its underlying concepts are
geometric
• Understanding these geometric concepts
helps before going into their algebraic
equivalents
2
3
• In this example, the point of intersection of two constraint boundaries are the
corner-point solutions of the problem.
• For a linear programming problem with n decision variables, each corner point
solution lies at the intersection point of n constraints.
5
•The points that lie on the corners of the feasible region are the corner-point
feasible (CPF) solutions or extreme points.
6
Edges
• For any LP problem with n decision variables, two
extreme points are adjacent to each other if they
share n-1 constraint boundaries. The two adjacent
extreme points are connected by a line segment that
lies on these same shared constraint boundaries.
Such a line segment is referred to as an edge of the
feasible region.
7
An edge of
the feasible
region
Optimality test
Initialization
(Find initial CPF solution)
No
Move to a better
adjacent CPF solution
12
Introducing slack variables x3, x4 and x5 to convert inequalities
into equalities – Convert LP to Augmented Form
13
Slack variables
• Slack variable = 0 in the current solution This
solution lies on the constraint boundary for the
corresponding functional constraint. Feasible
solution, Binding constraint
• If slack variable ≥ 0 the solution lies on the feasible
side of this constraint boundary. Feasible
solution, Nonbinding constraint
• If slack variable ≤ 0, the solution lies on the
infeasible side of this constraint boundary.
Infeasible solution
14
15
16
17
‘Language’ of the Simplex Method
18
Initial Assumptions
• All constraints are of the form ≤
19
The Augmented Form
Set up the method first:
Convert inequality constraints to equality constraints by adding slack variables
subject to x1 +s1 =4
subject to x1 ≤4
2x2 +s2 = 12
2x2 ≤ 12
3x1+ 2x2 +s3 = 18
3x1+ 2x2 ≤ 18
subject to x1 +s1 =4
2x2 +s2 = 12
3x1+ 2x2 +s3 = 18
(0,6,4,0,6) (2,6,2,0,0) (4,6,0,0,-6)
x1,x2, s1, s2, s3 ≥ 0
• Augmented solution
(2,3,2,6,6)
(4,3,0,6,0)
• Basic infeasible solution
X1 21
Basic, Nonbasic Solutions and the Basis
subject to x1 +s1 =4
2x2 +s2 = 12
3x1+ 2x2 +s3 = 18
23
Algebra of the Simplex Method
Optimality Test
Maximize Z = 3x1+ 5x2
subject to x1 +s1 =4
2x2 +s2 = 12
3x1+ 2x2 +s3 = 18
• Optimal? No. If I increase the value of one of the nonbasic variables from 0
to a positive value, the objective function will increase.
24
Algebra of the Simplex Method
Step 1 of Iteration 1: Direction of Movement
Maximize Z = 3x1+ 5x2
subject to x1 +s1 =4
2x2 +s2 = 12
3x1+ 2x2 +s3 = 18
26
Algebra of the Simplex Method
Step 3 of Iteration 1: Solving for the New BF Solution
Z- 3x1- 5x2 =0 (0)
x1 +s1 =4 (1)
2x2 +s2 = 12 (2)
3x1+ 2x2 +s3 = 18 (3)
x1 +s1 =4 (1)
x2 + 1/2 s2 =6 (2)
3x1 - s2 + s3 = 6 (3)
• Convert the system of equations to a more proper form for the new BF
solution
• Elementary algebraic operations: Gaussian elimination
– Eliminate the entering basic variable (x2) from all but constraint 2 (pivot
row)
Since x1=0 and s2=0 we obtain (x1,x2,s1,s2,s3)= (0,6,4,0,6)
27
Algebra of the Simplex Method
Optimality Test
Z- 3x1+ + 5/2 s2 = 30 (0)
x1 +s1 =4 (1)
x2 + 1/2 s2 =6 (2)
3x1 - s2 + s3 = 6 (3)
28
Algebra of the Simplex Method
Step 1 of Iteration 2: Direction of Movement
x1 +s1 =4 (1)
x2 + 1/2 s2 =6 (2)
3x1 - s2 + s3 = 6 (3)
29
Algebra of the Simplex Method
Step 2 of Iteration 2: Where to Stop
Z- 3x1+ + 5/2 s2 = 30 (0)
x1 +s1 =4 (1)
x2 + 1/2 s2 =6 (2)
3x1 - s2 + s3 = 6 (3)
30
Algebra of the Simplex Method
Step 3 of Iteration 2: Solving for the New BF Solution
Z- 3x1+ + 5/2 s2 = 30 (0)
x1 +s1 =4 (1)
x2 + 1/2 s2 =6 (2)
3x1 - s2 + s3 = 6 (3)
• Convert the system of equations to a more proper form for the new BF
solution
• Elementary algebraic operations: Gaussian elimination
– Eliminate the entering basic variable (x1) from all but its equation
The next BF solution is (x1,x2,s1,s2,s3)= (2,6,2,0,0)
31
Algebra of the Simplex Method
Optimality Test
Z + 3/2 s2 + s3 = 36 (0)
• Optimal? yes
32
The Simplex Method in Tabular Form
33
Table 4.3
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Table 4.10
57