SlideShare a Scribd company logo
1 of 16
Operations Research
CHAPTER 07 - THE TWO PHASE SIMPLEX METHOD
The Two Phase Simplex Method
Phase I: We create an artificial objective function as the sum of all
the artificial variables, and we minimize this objective function using
the tableau simplex method.
If the minimum value of this artificial objective function is zero, then
this means that all the artificial variables have been reduced to zero,
and we have a basic feasible solution to the original problem, and
we proceed to phase II. If this minimum value is positive, then this
means that the original problem is infeasible, so we terminate.
Phase II: The final tableau of phase I becomes the first tableau of
phase II using the original objective function now. Use the tableau
method again to obtain an optimal solution.
Example
Min Z= -3x1 + x2 + x3
S.T. x1 – 2x2 + x3 <= 11
-4x1 + x2 +2x3 >= 3
-2x1 + x3 = 1
Solution
Write the problem in standard form
Min Z= -3x1 + x2 + x3
S.T. x1 – 2x2 + x3 + x4 = 11
-4x1 + x2 +2x3 - x5 = 3
-2x1 + x3 = 1
Solution
Write the problem in canonical form (add artificial variable to the 2nd
and to the 3rd constraints)
Min Z= -3x1 + x2 + x3
S.T. x1 – 2x2 + x3 + x4 = 11
-4x1 + x2 +2x3 - x5 + x6 = 3
-2x1 + x3 + x7 = 1
Solution
Phase 1: -Change Z to W and add to it the artificial variables
-W is always minimized
-Keep the constraints
Min W= x6 + x7
S.T. x1 – 2x2 + x3 + x4 = 11
-4x1 + x2 +2x3 - x5 + x6 = 3
-2x1 + x3 + x7 = 1
Solution
Iteration 1: Basic: x4=11, x6=3, x7=1. W=4
0 0 0 0 0 1 1
x1 x2 x3 x4 x5 x6 x7
0 x4 1 -2 1 1 0 0 0 11
1 x6 -4 1 2 0 -1 1 0 3
1 x7 -2 0 1 0 0 0 1 1
CJ 0 0 0
Solution
C1= 0 – (0,1,1) = 6
C2= 0 – (0,1,1) = -1
C3= 0 – (0,1,1) = -3
C5= 0 – (0,1,1) = 1
x3 is entering, x3= min{11,3/2,1}=1, x7 is leaving.
1
-4
-2
-2
1
0
1
2
1
0
-1
0
Solution
Iteration 2: Basic: x4=11-1=10, x6=3-2=1, x3=1. W=1
0 0 0 0 0 1 1
x1 x2 x3 x4 x5 x6 x7
0 x4 3 -2 0 1 0 0 -1 10
1 x6 0 1 0 0 -1 1 -2 1
0 x3 -2 0 1 0 0 0 1 1
CJ 0 0 0 0
Solution
C1= 0 – (0,1,1) = 0
C2= 0 – (0,1,1) = -1
C5= 0 – (0,1,1) = 1
x2 is entering, x2= min{-5,1,inf.}=1, x6 is leaving.
Basic: x4=12, x2=1, x3=1. W=0 [End of phase 1 because W is zero].
3
0
-2
-2
1
0
0
-1
0
Solution
Phase 2: -Change W to Z and remove the artificial variables
-The same last table but remove the artificial variables
columns
Solution
-3 1 1 0 0
x1 x2 x3 x4 x5
0 x4 3 -2 0 1 0 10
1 x2 0 1 0 0 -1 1
0 x3 -2 0 1 0 0 1
CJ 0 0 0
Solution
-3 1 1 0 0
x1 x2 x3 x4 x5
0 x4 3 0 0 1 -2 12
1 x2 0 1 0 0 -1 1
0 x3 -2 0 1 0 0 1
CJ 0 0 0
Solution
C1= -3 – (0,1,1) = -1
C5= 0 – (0,1,1) = 1
x1 is entering, x1= min{4,inf.,-1/2}=4, x4 is leaving.
Basic: x1=4, x2=1, x3=9. Z=-12+1+9=-2.
3
0
-2
-2
-1
0
Solution
-3 1 1 0 0
x1 x2 x3 x4 x5
-3 x1 1 0 0 1/3 -2/3 4
1 x2 0 1 0 0 -1 1
1 x3 0 0 1 2/3 -4/3 9
CJ 0 0 0
Solution
C4= 0 – (-3,1,1) = 1/3 > 0
C5= 0 – (-3,1,1) = 1/3 > 0
No entering variables, and the current solution is optimal.
Basic: x1=4, x2=1, x3=9. Z=-12+1+9=-2.
1/3
0
2/3
-2/3
-1
-4/3

More Related Content

What's hot

Chapter 4 Simplex Method ppt
Chapter 4  Simplex Method pptChapter 4  Simplex Method ppt
Chapter 4 Simplex Method pptDereje Tigabu
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solutionunemployedmba
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game TheoryPurnima Pandit
 
Simplex Method
Simplex MethodSimplex Method
Simplex Methodkzoe1996
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex methodRoshan Kumar Patel
 
An Introduction to Linear Programming
An Introduction to Linear ProgrammingAn Introduction to Linear Programming
An Introduction to Linear ProgrammingMinh-Tri Pham
 
primal and dual problem
primal and dual problemprimal and dual problem
primal and dual problemYash Lad
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variableDevyaneeDevyanee2007
 
Simplex Method
Simplex MethodSimplex Method
Simplex MethodSachin MK
 
Operation Research (Simplex Method)
Operation Research (Simplex Method)Operation Research (Simplex Method)
Operation Research (Simplex Method)Shivani Gautam
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,Dronak Sahu
 
Canonical form and Standard form of LPP
Canonical form and Standard form of LPPCanonical form and Standard form of LPP
Canonical form and Standard form of LPPSundar B N
 

What's hot (20)

Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 
Chapter 4 Simplex Method ppt
Chapter 4  Simplex Method pptChapter 4  Simplex Method ppt
Chapter 4 Simplex Method ppt
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solution
 
Lpp simplex method
Lpp simplex methodLpp simplex method
Lpp simplex method
 
simplex method
simplex methodsimplex method
simplex method
 
Big m method
Big m methodBig m method
Big m method
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Operations Research - The Dual Simplex Method
Operations Research - The Dual Simplex MethodOperations Research - The Dual Simplex Method
Operations Research - The Dual Simplex Method
 
4-The Simplex Method.ppt
4-The Simplex Method.ppt4-The Simplex Method.ppt
4-The Simplex Method.ppt
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex method
 
Graphical method
Graphical methodGraphical method
Graphical method
 
An Introduction to Linear Programming
An Introduction to Linear ProgrammingAn Introduction to Linear Programming
An Introduction to Linear Programming
 
primal and dual problem
primal and dual problemprimal and dual problem
primal and dual problem
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Operation Research (Simplex Method)
Operation Research (Simplex Method)Operation Research (Simplex Method)
Operation Research (Simplex Method)
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Canonical form and Standard form of LPP
Canonical form and Standard form of LPPCanonical form and Standard form of LPP
Canonical form and Standard form of LPP
 

Similar to the two phase method - operations research

Solved exercises simple integration
Solved exercises simple integrationSolved exercises simple integration
Solved exercises simple integrationKamel Attar
 
C2 st lecture 2 handout
C2 st lecture 2 handoutC2 st lecture 2 handout
C2 st lecture 2 handoutfatima d
 
monotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdfmonotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdfRajuSingh806014
 
Solve given LP problem using simplex method and find maximum value o.pdf
Solve given LP problem using simplex method and find maximum value o.pdfSolve given LP problem using simplex method and find maximum value o.pdf
Solve given LP problem using simplex method and find maximum value o.pdfaminbijal86
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation CaseJoseph Konnully
 
Sudėtingesnės trupmeninės lygtys
Sudėtingesnės trupmeninės lygtysSudėtingesnės trupmeninės lygtys
Sudėtingesnės trupmeninės lygtysLina Ša
 
rational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptxrational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptxRizaCatli2
 
Simultaneous equations
Simultaneous equations Simultaneous equations
Simultaneous equations fisayo omoniyi
 

Similar to the two phase method - operations research (20)

Big m method
Big   m methodBig   m method
Big m method
 
Solved exercises simple integration
Solved exercises simple integrationSolved exercises simple integration
Solved exercises simple integration
 
Chithra
ChithraChithra
Chithra
 
2. lp iterative methods
2. lp   iterative methods2. lp   iterative methods
2. lp iterative methods
 
MFCS2-Module1.pptx
MFCS2-Module1.pptxMFCS2-Module1.pptx
MFCS2-Module1.pptx
 
C2 st lecture 2 handout
C2 st lecture 2 handoutC2 st lecture 2 handout
C2 st lecture 2 handout
 
monotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdfmonotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdf
 
Solve given LP problem using simplex method and find maximum value o.pdf
Solve given LP problem using simplex method and find maximum value o.pdfSolve given LP problem using simplex method and find maximum value o.pdf
Solve given LP problem using simplex method and find maximum value o.pdf
 
Lp simplex 3_
Lp simplex 3_Lp simplex 3_
Lp simplex 3_
 
Manual solucoes ex_extras
Manual solucoes ex_extrasManual solucoes ex_extras
Manual solucoes ex_extras
 
Manual solucoes ex_extras
Manual solucoes ex_extrasManual solucoes ex_extras
Manual solucoes ex_extras
 
Manual solucoes ex_extras
Manual solucoes ex_extrasManual solucoes ex_extras
Manual solucoes ex_extras
 
Factoring2
Factoring2Factoring2
Factoring2
 
Gilat_ch03.pdf
Gilat_ch03.pdfGilat_ch03.pdf
Gilat_ch03.pdf
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation Case
 
Sudėtingesnės trupmeninės lygtys
Sudėtingesnės trupmeninės lygtysSudėtingesnės trupmeninės lygtys
Sudėtingesnės trupmeninės lygtys
 
rational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptxrational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptx
 
Simultaneous equations
Simultaneous equations Simultaneous equations
Simultaneous equations
 

More from 2013901097

Operation research - the revised simplex method
Operation research - the revised simplex methodOperation research - the revised simplex method
Operation research - the revised simplex method2013901097
 
Computer Graphic - Clipping
Computer Graphic - ClippingComputer Graphic - Clipping
Computer Graphic - Clipping2013901097
 
Computer Graphic - Projections
Computer Graphic - ProjectionsComputer Graphic - Projections
Computer Graphic - Projections2013901097
 
Computer Graphic - Transformations in 3d
Computer Graphic - Transformations in 3dComputer Graphic - Transformations in 3d
Computer Graphic - Transformations in 3d2013901097
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D2013901097
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 042013901097
 
Operation research - Chapter 03
Operation research - Chapter 03Operation research - Chapter 03
Operation research - Chapter 032013901097
 
Operation research - Chapter 02
Operation research - Chapter 02Operation research - Chapter 02
Operation research - Chapter 022013901097
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 012013901097
 
Computer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and EllipseComputer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and Ellipse2013901097
 

More from 2013901097 (10)

Operation research - the revised simplex method
Operation research - the revised simplex methodOperation research - the revised simplex method
Operation research - the revised simplex method
 
Computer Graphic - Clipping
Computer Graphic - ClippingComputer Graphic - Clipping
Computer Graphic - Clipping
 
Computer Graphic - Projections
Computer Graphic - ProjectionsComputer Graphic - Projections
Computer Graphic - Projections
 
Computer Graphic - Transformations in 3d
Computer Graphic - Transformations in 3dComputer Graphic - Transformations in 3d
Computer Graphic - Transformations in 3d
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 04
 
Operation research - Chapter 03
Operation research - Chapter 03Operation research - Chapter 03
Operation research - Chapter 03
 
Operation research - Chapter 02
Operation research - Chapter 02Operation research - Chapter 02
Operation research - Chapter 02
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 01
 
Computer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and EllipseComputer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and Ellipse
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

the two phase method - operations research

  • 1. Operations Research CHAPTER 07 - THE TWO PHASE SIMPLEX METHOD
  • 2. The Two Phase Simplex Method Phase I: We create an artificial objective function as the sum of all the artificial variables, and we minimize this objective function using the tableau simplex method. If the minimum value of this artificial objective function is zero, then this means that all the artificial variables have been reduced to zero, and we have a basic feasible solution to the original problem, and we proceed to phase II. If this minimum value is positive, then this means that the original problem is infeasible, so we terminate. Phase II: The final tableau of phase I becomes the first tableau of phase II using the original objective function now. Use the tableau method again to obtain an optimal solution.
  • 3. Example Min Z= -3x1 + x2 + x3 S.T. x1 – 2x2 + x3 <= 11 -4x1 + x2 +2x3 >= 3 -2x1 + x3 = 1
  • 4. Solution Write the problem in standard form Min Z= -3x1 + x2 + x3 S.T. x1 – 2x2 + x3 + x4 = 11 -4x1 + x2 +2x3 - x5 = 3 -2x1 + x3 = 1
  • 5. Solution Write the problem in canonical form (add artificial variable to the 2nd and to the 3rd constraints) Min Z= -3x1 + x2 + x3 S.T. x1 – 2x2 + x3 + x4 = 11 -4x1 + x2 +2x3 - x5 + x6 = 3 -2x1 + x3 + x7 = 1
  • 6. Solution Phase 1: -Change Z to W and add to it the artificial variables -W is always minimized -Keep the constraints Min W= x6 + x7 S.T. x1 – 2x2 + x3 + x4 = 11 -4x1 + x2 +2x3 - x5 + x6 = 3 -2x1 + x3 + x7 = 1
  • 7. Solution Iteration 1: Basic: x4=11, x6=3, x7=1. W=4 0 0 0 0 0 1 1 x1 x2 x3 x4 x5 x6 x7 0 x4 1 -2 1 1 0 0 0 11 1 x6 -4 1 2 0 -1 1 0 3 1 x7 -2 0 1 0 0 0 1 1 CJ 0 0 0
  • 8. Solution C1= 0 – (0,1,1) = 6 C2= 0 – (0,1,1) = -1 C3= 0 – (0,1,1) = -3 C5= 0 – (0,1,1) = 1 x3 is entering, x3= min{11,3/2,1}=1, x7 is leaving. 1 -4 -2 -2 1 0 1 2 1 0 -1 0
  • 9. Solution Iteration 2: Basic: x4=11-1=10, x6=3-2=1, x3=1. W=1 0 0 0 0 0 1 1 x1 x2 x3 x4 x5 x6 x7 0 x4 3 -2 0 1 0 0 -1 10 1 x6 0 1 0 0 -1 1 -2 1 0 x3 -2 0 1 0 0 0 1 1 CJ 0 0 0 0
  • 10. Solution C1= 0 – (0,1,1) = 0 C2= 0 – (0,1,1) = -1 C5= 0 – (0,1,1) = 1 x2 is entering, x2= min{-5,1,inf.}=1, x6 is leaving. Basic: x4=12, x2=1, x3=1. W=0 [End of phase 1 because W is zero]. 3 0 -2 -2 1 0 0 -1 0
  • 11. Solution Phase 2: -Change W to Z and remove the artificial variables -The same last table but remove the artificial variables columns
  • 12. Solution -3 1 1 0 0 x1 x2 x3 x4 x5 0 x4 3 -2 0 1 0 10 1 x2 0 1 0 0 -1 1 0 x3 -2 0 1 0 0 1 CJ 0 0 0
  • 13. Solution -3 1 1 0 0 x1 x2 x3 x4 x5 0 x4 3 0 0 1 -2 12 1 x2 0 1 0 0 -1 1 0 x3 -2 0 1 0 0 1 CJ 0 0 0
  • 14. Solution C1= -3 – (0,1,1) = -1 C5= 0 – (0,1,1) = 1 x1 is entering, x1= min{4,inf.,-1/2}=4, x4 is leaving. Basic: x1=4, x2=1, x3=9. Z=-12+1+9=-2. 3 0 -2 -2 -1 0
  • 15. Solution -3 1 1 0 0 x1 x2 x3 x4 x5 -3 x1 1 0 0 1/3 -2/3 4 1 x2 0 1 0 0 -1 1 1 x3 0 0 1 2/3 -4/3 9 CJ 0 0 0
  • 16. Solution C4= 0 – (-3,1,1) = 1/3 > 0 C5= 0 – (-3,1,1) = 1/3 > 0 No entering variables, and the current solution is optimal. Basic: x1=4, x2=1, x3=9. Z=-12+1+9=-2. 1/3 0 2/3 -2/3 -1 -4/3