SlideShare a Scribd company logo
Linear Programming: Chapter 2
The Simplex Method
Robert J. Vanderbei
October 17, 2007
Operations Research and Financial Engineering
Princeton University
Princeton, NJ 08544
http://www.princeton.edu/∼rvdb
Simplex Method
An Example.
maximize −x1 + 3x2 − 3x3
subject to 3x1 − x2 − 2x3 ≤ 7
−2x1 − 4x2 + 4x3 ≤ 3
x1 − 2x3 ≤ 4
−2x1 + 2x2 + x3 ≤ 8
3x1 ≤ 5
x1, x2, x3 ≥ 0.
Rewrite with slack variables
maximize ζ = −x1 + 3x2 − 3x3
subject to w1 = 7 − 3x1 + x2 + 2x3
w2 = 3 + 2x1 + 4x2 − 4x3
w3 = 4 − x1 + 2x3
w4 = 8 + 2x1 − 2x2 − x3
w5 = 5 − 3x1
x1, x2, x3, w1, w2, w3, w4, w5 ≥ 0.
Notes:
• This layout is called a dictionary.
• Setting x1, x2, and x3 to 0, we can read off the values for the other variables: w1 = 7, w2 = 3, etc. This
specific solution is called a dictionary solution.
• Dependent variables, on the left, are called basic variables.
• Independent variables, on the right, are called nonbasic variables.
Dictionary Solution is Feasible
maximize ζ = −x1 + 3x2 − 3x3
subject to w1 = 7 − 3x1 + x2 + 2x3
w2 = 3 + 2x1 + 4x2 − 4x3
w3 = 4 − x1 + 2x3
w4 = 8 + 2x1 − 2x2 − x3
w5 = 5 − 3x1
x1, x2, x3, w1, w2, w3 w4 w5 ≥ 0.
Notes:
• All the variables in the current dictionary solution are nonnegative.
• Such a solution is called feasible.
• The initial dictionary solution need not be feasible—we were just lucky above.
Simplex Method—First Iteration
• If x2 increases, obj goes up.
• How much can x2 increase? Until w4 decreases to zero.
• Do it. End result: x2 > 0 whereas w4 = 0.
• That is, x2 must become basic and w4 must become nonbasic.
• Algebraically rearrange equations to, in the words of Jean-Luc Picard, ”Make it so.”
• This is a pivot.
A Pivot: x2 ↔ w4
becomes
Simplex Method—Second Pivot
Here’s the dictionary after the first pivot:
• Now, let x1 increase.
• Of the basic variables, w5 hits zero first.
• So, x1 enters and w5 leaves the basis.
• New dictionary is...
Simplex Method—Final Dictionary
• It’s optimal (no pink)!
• Click here to practice the simplex method.
• For instructions, click here.
Agenda
• Discuss unboundedness; (today)
• Discuss initialization/infeasibility; i.e., what if initial dictionary is not feasible.
(today)
• Discuss degeneracy. (next lecture)
Unboundedness
Consider the following dictionary:
• Could increase either x1 or x3 to increase obj.
• Consider increasing x1.
• Which basic variable decreases to zero first?
• Answer: none of them, x1 can grow without bound, and obj along with it.
• This is how we detect unboundedness with the simplex method.
Initialization
Consider the following problem:
maximize −3x1 + 4x2
subject to −4x1 − 2x2 ≤ −8
−2x1 ≤ −2
3x1 + 2x2 ≤ 10
−x1 + 3x2 ≤ 1
−3x2 ≤ −2
x1, x2 ≥ 0.
Phase-I Problem
• Modify problem by subtracting a new variable, x0, from each constraint and
• replacing objective function with −x0
Phase-I Problem
maximize −x0
subject to −x0 − 4x1 − 2x2 ≤ −8
−x0 − 2x1 ≤ −2
−x0 + 3x1 + 2x2 ≤ 10
−x0 − x1 + 3x2 ≤ 1
−x0 −3x2 ≤ −2
x0, x1, x2 ≥ 0.
• Clearly feasible: pick x0 large, x1 = 0 and x2 = 0.
• If optimal solution has obj = 0, then original problem is feasible.
• Final phase-I basis can be used as initial phase-II basis (ignoring x0 thereafter).
• If optimal solution has obj < 0, then original problem is infeasible.
Initialization—First Pivot
Applet depiction shows both the Phase-I and the Phase-II objectives:
• Dictionary is infeasible even for Phase-I.
• One pivot needed to get feasible.
• Entering variable is x0.
• Leaving variable is one whose current value is most negative, i.e. w1.
• After first pivot...
Initialization—Second Pivot
Going into second pivot:
• Feasible!
• Focus on the yellow highlights.
• Let x1 enter.
• Then w5 must leave.
• After second pivot...
Initialization—Third Pivot
Going into third pivot:
• x2 must enter.
• x0 must leave.
• After third pivot...
End of Phase-I
Current dictionary:
• Optimal for Phase-I (no yellow highlights).
• obj = 0, therefore original problem is feasible.
Phase-II
Current dictionary:
For Phase-II:
• Ignore column with x0 in Phase-II.
• Ignore Phase-I objective row.
w5 must enter. w4 must leave...
Optimal Solution
• Optimal!
• Click here to practice the simplex method on problems that may have infeasible
first dictionaries.
• For instructions, click here.

More Related Content

What's hot

Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010
akabaka12
 
Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010
akabaka12
 
Emat 213 study guide
Emat 213 study guideEmat 213 study guide
Emat 213 study guide
akabaka12
 
Engr 213 midterm 2b 2009
Engr 213 midterm 2b 2009Engr 213 midterm 2b 2009
Engr 213 midterm 2b 2009
akabaka12
 
4.1 implicit differentiation
4.1 implicit differentiation4.1 implicit differentiation
4.1 implicit differentiation
dicosmo178
 
Linear differential equation
Linear differential equationLinear differential equation
Linear differential equation
Pratik Sudra
 
Final equations week1
Final equations week1 Final equations week1
Final equations week1
khyps13
 
Indirect variation notes
Indirect variation notesIndirect variation notes
Indirect variation notes
kke18914
 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integration
tutulk
 

What's hot (20)

Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010
 
Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010
 
Lesson 31: The Simplex Method, I
Lesson 31: The Simplex Method, ILesson 31: The Simplex Method, I
Lesson 31: The Simplex Method, I
 
Higher order differential equations
Higher order differential equationsHigher order differential equations
Higher order differential equations
 
Emat 213 study guide
Emat 213 study guideEmat 213 study guide
Emat 213 study guide
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its application
 
Engr 213 midterm 2b 2009
Engr 213 midterm 2b 2009Engr 213 midterm 2b 2009
Engr 213 midterm 2b 2009
 
Differential equation and Laplace Transform
Differential equation and Laplace TransformDifferential equation and Laplace Transform
Differential equation and Laplace Transform
 
Recursion & methods of proof in algorithm analysis
Recursion & methods of proof in algorithm analysisRecursion & methods of proof in algorithm analysis
Recursion & methods of proof in algorithm analysis
 
First order ordinary differential equations and applications
First order ordinary differential equations and applicationsFirst order ordinary differential equations and applications
First order ordinary differential equations and applications
 
Directvariation
DirectvariationDirectvariation
Directvariation
 
4.1 implicit differentiation
4.1 implicit differentiation4.1 implicit differentiation
4.1 implicit differentiation
 
Linear differential equation
Linear differential equationLinear differential equation
Linear differential equation
 
1st order differential equations
1st order differential equations1st order differential equations
1st order differential equations
 
Final equations week1
Final equations week1 Final equations week1
Final equations week1
 
Introduction to Differential Equations
Introduction to Differential EquationsIntroduction to Differential Equations
Introduction to Differential Equations
 
Probability statistics assignment help
Probability statistics assignment helpProbability statistics assignment help
Probability statistics assignment help
 
Direct and inverse variation
Direct and inverse variationDirect and inverse variation
Direct and inverse variation
 
Indirect variation notes
Indirect variation notesIndirect variation notes
Indirect variation notes
 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integration
 

Viewers also liked

33.1.005 Education Company Case Study Story
33.1.005 Education Company Case Study Story33.1.005 Education Company Case Study Story
33.1.005 Education Company Case Study Story
Clark Cledwyn Bagaipo
 
Weihnachtsfeier 2009
Weihnachtsfeier 2009Weihnachtsfeier 2009
Weihnachtsfeier 2009
guest24ab935
 
Nur 2 Minuten
Nur 2 MinutenNur 2 Minuten
Nur 2 Minuten
grafic02
 

Viewers also liked (15)

33.1.005 Education Company Case Study Story
33.1.005 Education Company Case Study Story33.1.005 Education Company Case Study Story
33.1.005 Education Company Case Study Story
 
SEOGuardian - Centros de reproducción asistida - Actualización anual
SEOGuardian - Centros de reproducción asistida - Actualización anualSEOGuardian - Centros de reproducción asistida - Actualización anual
SEOGuardian - Centros de reproducción asistida - Actualización anual
 
Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)
 
Likovna kultura 15
Likovna kultura 15Likovna kultura 15
Likovna kultura 15
 
Likovna kultura 2
Likovna kultura 2Likovna kultura 2
Likovna kultura 2
 
핀테크 열풍을 통해_본_은행업의_과제
핀테크 열풍을 통해_본_은행업의_과제핀테크 열풍을 통해_본_은행업의_과제
핀테크 열풍을 통해_본_은행업의_과제
 
Manual gerenciamento residuos
Manual gerenciamento residuosManual gerenciamento residuos
Manual gerenciamento residuos
 
Likovna kultura 26
Likovna kultura 26Likovna kultura 26
Likovna kultura 26
 
La comunicacion
La comunicacionLa comunicacion
La comunicacion
 
Weihnachtsfeier 2009
Weihnachtsfeier 2009Weihnachtsfeier 2009
Weihnachtsfeier 2009
 
La reforma integral de la educación básica
La reforma integral de la educación básicaLa reforma integral de la educación básica
La reforma integral de la educación básica
 
Grupo 3
Grupo 3Grupo 3
Grupo 3
 
Presentación1
Presentación1Presentación1
Presentación1
 
ENTORNOS PARA COMPARTIR RECURSOS
ENTORNOS PARA COMPARTIR RECURSOSENTORNOS PARA COMPARTIR RECURSOS
ENTORNOS PARA COMPARTIR RECURSOS
 
Nur 2 Minuten
Nur 2 MinutenNur 2 Minuten
Nur 2 Minuten
 

Similar to Lec2

4 greedy methodnew
4 greedy methodnew4 greedy methodnew
4 greedy methodnew
abhinav108
 
Simplifying Basic Rational Expressions Part 1
Simplifying Basic Rational Expressions Part 1Simplifying Basic Rational Expressions Part 1
Simplifying Basic Rational Expressions Part 1
DaisyListening
 

Similar to Lec2 (20)

Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
 
4 greedy methodnew
4 greedy methodnew4 greedy methodnew
4 greedy methodnew
 
Linear Programming
Linear ProgrammingLinear Programming
Linear Programming
 
Support Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the theSupport Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the the
 
Introduction to Neural networks (under graduate course) Lecture 5 of 9
Introduction to Neural networks (under graduate course) Lecture 5 of 9Introduction to Neural networks (under graduate course) Lecture 5 of 9
Introduction to Neural networks (under graduate course) Lecture 5 of 9
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
 
L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 
Simplex method material for operation .pptx
Simplex method material for operation .pptxSimplex method material for operation .pptx
Simplex method material for operation .pptx
 
course slides of Support-Vector-Machine.pdf
course slides of Support-Vector-Machine.pdfcourse slides of Support-Vector-Machine.pdf
course slides of Support-Vector-Machine.pdf
 
2_Simplex.pdf
2_Simplex.pdf2_Simplex.pdf
2_Simplex.pdf
 
Introduction to Neural networks (under graduate course) Lecture 4 of 9
Introduction to Neural networks (under graduate course) Lecture 4 of 9Introduction to Neural networks (under graduate course) Lecture 4 of 9
Introduction to Neural networks (under graduate course) Lecture 4 of 9
 
super vector machines algorithms using deep
super vector machines algorithms using deepsuper vector machines algorithms using deep
super vector machines algorithms using deep
 
Branch&bound at
Branch&bound atBranch&bound at
Branch&bound at
 
Supporting Vector Machine
Supporting Vector MachineSupporting Vector Machine
Supporting Vector Machine
 
n7-LP-simplex.ppt
n7-LP-simplex.pptn7-LP-simplex.ppt
n7-LP-simplex.ppt
 
Simplifying Basic Rational Expressions Part 1
Simplifying Basic Rational Expressions Part 1Simplifying Basic Rational Expressions Part 1
Simplifying Basic Rational Expressions Part 1
 
Classical optimization theory Unconstrained Problem
Classical optimization theory Unconstrained ProblemClassical optimization theory Unconstrained Problem
Classical optimization theory Unconstrained Problem
 
MIT Math Syllabus 10-3 Lesson 7: Quadratic equations
MIT Math Syllabus 10-3 Lesson 7: Quadratic equationsMIT Math Syllabus 10-3 Lesson 7: Quadratic equations
MIT Math Syllabus 10-3 Lesson 7: Quadratic equations
 
Grade mathematics: Quadratic Inequalities
Grade mathematics: Quadratic InequalitiesGrade mathematics: Quadratic Inequalities
Grade mathematics: Quadratic Inequalities
 

Recently uploaded

RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
Atif Razi
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Antenna efficency lecture course chapter 3.pdf
Antenna  efficency lecture course chapter 3.pdfAntenna  efficency lecture course chapter 3.pdf
Antenna efficency lecture course chapter 3.pdf
AbrahamGadissa
 

Recently uploaded (20)

Danfoss NeoCharge Technology -A Revolution in 2024.pdf
Danfoss NeoCharge Technology -A Revolution in 2024.pdfDanfoss NeoCharge Technology -A Revolution in 2024.pdf
Danfoss NeoCharge Technology -A Revolution in 2024.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answer
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
Antenna efficency lecture course chapter 3.pdf
Antenna  efficency lecture course chapter 3.pdfAntenna  efficency lecture course chapter 3.pdf
Antenna efficency lecture course chapter 3.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Introduction to Casting Processes in Manufacturing
Introduction to Casting Processes in ManufacturingIntroduction to Casting Processes in Manufacturing
Introduction to Casting Processes in Manufacturing
 

Lec2

  • 1. Linear Programming: Chapter 2 The Simplex Method Robert J. Vanderbei October 17, 2007 Operations Research and Financial Engineering Princeton University Princeton, NJ 08544 http://www.princeton.edu/∼rvdb
  • 2. Simplex Method An Example. maximize −x1 + 3x2 − 3x3 subject to 3x1 − x2 − 2x3 ≤ 7 −2x1 − 4x2 + 4x3 ≤ 3 x1 − 2x3 ≤ 4 −2x1 + 2x2 + x3 ≤ 8 3x1 ≤ 5 x1, x2, x3 ≥ 0.
  • 3. Rewrite with slack variables maximize ζ = −x1 + 3x2 − 3x3 subject to w1 = 7 − 3x1 + x2 + 2x3 w2 = 3 + 2x1 + 4x2 − 4x3 w3 = 4 − x1 + 2x3 w4 = 8 + 2x1 − 2x2 − x3 w5 = 5 − 3x1 x1, x2, x3, w1, w2, w3, w4, w5 ≥ 0. Notes: • This layout is called a dictionary. • Setting x1, x2, and x3 to 0, we can read off the values for the other variables: w1 = 7, w2 = 3, etc. This specific solution is called a dictionary solution. • Dependent variables, on the left, are called basic variables. • Independent variables, on the right, are called nonbasic variables.
  • 4. Dictionary Solution is Feasible maximize ζ = −x1 + 3x2 − 3x3 subject to w1 = 7 − 3x1 + x2 + 2x3 w2 = 3 + 2x1 + 4x2 − 4x3 w3 = 4 − x1 + 2x3 w4 = 8 + 2x1 − 2x2 − x3 w5 = 5 − 3x1 x1, x2, x3, w1, w2, w3 w4 w5 ≥ 0. Notes: • All the variables in the current dictionary solution are nonnegative. • Such a solution is called feasible. • The initial dictionary solution need not be feasible—we were just lucky above.
  • 5. Simplex Method—First Iteration • If x2 increases, obj goes up. • How much can x2 increase? Until w4 decreases to zero. • Do it. End result: x2 > 0 whereas w4 = 0. • That is, x2 must become basic and w4 must become nonbasic. • Algebraically rearrange equations to, in the words of Jean-Luc Picard, ”Make it so.” • This is a pivot.
  • 6. A Pivot: x2 ↔ w4 becomes
  • 7. Simplex Method—Second Pivot Here’s the dictionary after the first pivot: • Now, let x1 increase. • Of the basic variables, w5 hits zero first. • So, x1 enters and w5 leaves the basis. • New dictionary is...
  • 8. Simplex Method—Final Dictionary • It’s optimal (no pink)! • Click here to practice the simplex method. • For instructions, click here.
  • 9. Agenda • Discuss unboundedness; (today) • Discuss initialization/infeasibility; i.e., what if initial dictionary is not feasible. (today) • Discuss degeneracy. (next lecture)
  • 10. Unboundedness Consider the following dictionary: • Could increase either x1 or x3 to increase obj. • Consider increasing x1. • Which basic variable decreases to zero first? • Answer: none of them, x1 can grow without bound, and obj along with it. • This is how we detect unboundedness with the simplex method.
  • 11. Initialization Consider the following problem: maximize −3x1 + 4x2 subject to −4x1 − 2x2 ≤ −8 −2x1 ≤ −2 3x1 + 2x2 ≤ 10 −x1 + 3x2 ≤ 1 −3x2 ≤ −2 x1, x2 ≥ 0. Phase-I Problem • Modify problem by subtracting a new variable, x0, from each constraint and • replacing objective function with −x0
  • 12. Phase-I Problem maximize −x0 subject to −x0 − 4x1 − 2x2 ≤ −8 −x0 − 2x1 ≤ −2 −x0 + 3x1 + 2x2 ≤ 10 −x0 − x1 + 3x2 ≤ 1 −x0 −3x2 ≤ −2 x0, x1, x2 ≥ 0. • Clearly feasible: pick x0 large, x1 = 0 and x2 = 0. • If optimal solution has obj = 0, then original problem is feasible. • Final phase-I basis can be used as initial phase-II basis (ignoring x0 thereafter). • If optimal solution has obj < 0, then original problem is infeasible.
  • 13. Initialization—First Pivot Applet depiction shows both the Phase-I and the Phase-II objectives: • Dictionary is infeasible even for Phase-I. • One pivot needed to get feasible. • Entering variable is x0. • Leaving variable is one whose current value is most negative, i.e. w1. • After first pivot...
  • 14. Initialization—Second Pivot Going into second pivot: • Feasible! • Focus on the yellow highlights. • Let x1 enter. • Then w5 must leave. • After second pivot...
  • 15. Initialization—Third Pivot Going into third pivot: • x2 must enter. • x0 must leave. • After third pivot...
  • 16. End of Phase-I Current dictionary: • Optimal for Phase-I (no yellow highlights). • obj = 0, therefore original problem is feasible.
  • 17. Phase-II Current dictionary: For Phase-II: • Ignore column with x0 in Phase-II. • Ignore Phase-I objective row. w5 must enter. w4 must leave...
  • 18. Optimal Solution • Optimal! • Click here to practice the simplex method on problems that may have infeasible first dictionaries. • For instructions, click here.