Lecture 3 The Simplex Method
Lecture 3 The Simplex Method
Lecture 3
The Simplex Method
Announcements
Outline
• LP so far
• Why we can look only at basic feasible solutions
• Optimality conditions
• The simplex method
• The step from one bfs to the next
• Tableu method
• Phase I: Finding an initial BFS
LP so far
• Formulated LP’s in various contexts
• Transform any LP into a standard form LP
• Intuition of simplex method: Find the best corner
point feasible solution
• Math required:
– Corner point Feasible or basic feasible solutions
correspond to a set of n active constraints
– Any set of active constraints corresponds to a basis
from the matrix A
– The basis is a set of linearly independent columns
Standard Form
max c1 x1 c2 x2 ... c N x N
subject to
a11 x1 a12 x2 ... a1N x N b1
a21 x1 a22 x2 ... a2 N x N b2
...
aM 1 x1 aM 2 x2 ... aMN x N bM
x j 0, j 1..N
max cx
Concise version: subject to Ax b
x0
A is an m by n matrix: n variables, m constraints
Standard Form to Augmented Form
max c1 x1 c2 x2 ... c N x N max c1 x1 c2 x2 ... c N x N
subject to subject to
a11 x1 a12 x2 ... a1N x N b1 a11 x1 a12 x2 ... a1N x N x1 b1
a21 x1 a22 x2 ... a2 N x N b2 a21 x1 a22 x2 ... a2 N x N x2 b2
... ...
aM 1 x1 aM 2 x2 ... aMN x N bM aM 1 x1 aM 2 x2 ... aMN x N x N bM
x j 0, j 1..N x j , xi 0, j 1..N , i 1..m
xB m , x N n m
x N 0, xB B 1b
z0 cB ' B 1b
z j cB ' B 1 A. j j N
Optimality test
max c' x z0 ( z j c j )x j
j
Test :
z j c j 0 j N
Finding an initial bfs
• The ‘phase 1’ approach
• The ‘big M’ method