Taken from example 13.1 in the book Nocedal-Wright2006_Book_NumericalOptimization.pdf
Given the following optimization problem
We add a slack variable to rewrite this into
Which is the standard form for a LP problem
Link to originalWhere
Iteration 1
We then define the book-keeping needed for the Simplex Method
Where
This gives
We then have to change basis
- Pick the smallest element of : →
- Let enter (leaving )
- Increase while . becomes 0 first
- Let leave and enter
Iteration 2
Now we get
Giving us
and
Where is the entering index and is the leaving index.
Iteration 3
Now we get
Giving us
and
Since we get the Basic Optimal Point (BOP) (Aka the solution)