Download presentation
Presentation is loading. Please wait.
Published byEmma Lloyd Modified over 9 years ago
1
CS 312: Algorithm Analysis Lecture #31: Linear Programming: the Simplex Algorithm, part 2 This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.Creative Commons Attribution-Share Alike 3.0 Unported License Slides by: Eric Ringger, with contributions from Mike Jones and Eric Mercer
2
Announcements Homework #22 Due now Saturday: Screencast & quiz Project #6: Linear Programming Key for Part 1 was distributed on Thursday – did you get it? Use C# Whiteboard: Monday Early day: Wednesday Due: Friday Verification suggestion: use another LP solver
3
Objectives Understand the Simplex method Discuss and own the pseudo-code
4
Comparison What is the relationship between the MaxFlow algorithm and the Simplex algorithm?
5
Summary: Example from Last Time Why did the algorithm terminate?
6
Interpreting the Answer Original Problem: Final Problem: …
7
Observations At the beginning of every round of Simplex, The space for the transformed problem is spanned by unit vectors in the directions of the non-basic variables The value of each non-basic variable in the current solution is 0. i.e., the current solution is at the origin of that space The new feasible region is defined in that space Pivot is designed to keep our attention focused on the origin of each successive space
8
Algebra: Check Ratios
10
Simplex Algorithm
13
Algebra: Pivot
15
Pivot Algorithm
17
Algebra: Obj. Function Update Similarly: for each of the constraints …
18
Algebra: Obj. Function Update Similarly: for each of the constraints …
19
Pivot Algorithm
21
Assignment You’re ready to finish Project #6 now! Assignment: HW #22.5 Due Wednesday Remember Saturday’s screencasts and quiz
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.