SlideShare a Scribd company logo
LECTURE 14
MINIMIZATION
TWO PHASE METHOD
Simplex Method
Two Phase Method
Illustration
Minimize f=4x1+ x2 (Objective Function)
Subject to: (Constraints)
3x1+ x2 = 3
4x1+ 3x2 ≥6
x1+ 2x2 ≤4
x1, x2 ≥ 0 (Non-Negativity Constraints)
Inequalities Constraints in Equation Form
Let S1 and S2 be the surplus and slack variables for
second and third constraints, respectively.
Minimize f =4x1+ x2 (Objective Function)
Subject to: (Constraints)
3x1+ x2 = 3 …………. (1)
4x1+ 3x2 – S1 = 6 …………. (2)
x1+ 2x2 + S2 = 4 …………. (3)
x1, x2, S1 , S2≥ 0
Initial solution
Arbitrary values =# of Variables -- # of Equations
4 - 2 = 2
Let x1= 0, x2 = 0
Putting above values in objective function
(f =5x1+ 4x2) and equation 1-3,
f = 0
0 = 3 (Contradiction)
S1 = -6 (Violation)
S2 = 4
This is against the basic rules of
Mathematics as the 0 cannot be
equal to 3.
This is against the non negativity
constraint that X must be non zero.
This situation cannot be called as
initial feasible solution because it is not
satisfying the condition. In order to
make it feasible we need to add
Artificial variables In equations having
contradictions and violation
Artificial Variables
Let A1 and A2 be the artificial variables for first and
second equation respectively.
Minimize: f =4x1+ x2 (Objective Function)
Subject to: (Constraints)
3x1+ x2 + A1= 3 …………. (4)
4x1+ 3x2 – S1 + A2= 6 …………. (5)
x1+ 2x2 + S2 = 4 …………. (6)
x1, x2, S1 , S2 , A1 + A2 ≥ 0
Solution of Artificial Variable
Questions which involve artificial variables can not
solve straight away. We have to use following two
methods to solve it
1. Penalty Method or M-Method (Big M
Method)
2. Two Phase Method
In this lecture we will solve this problem by
Two Phase Method
Solution by Two Phase Method
Phase I:
In Phase I we introduce artificial objective function
Capital “F” as the sum of artificial variables
introduced in the constraints. We substitute the
values of artificial variables from the constraints
and get artificial objective function.
We have Two artificial variables so the artificial
objective function would be as under;
F = A1 + A2
Artificial Objective Function
 A1
Use Equation no 4 to find the value of A1
3x1+ x2 + A1= 3
A1 = 3 - 3x1- x2
 A2
Use Equation no 5 to find the value of A2
4x1+ 3x2 – S1 + A2= 6
A2= 6 - 4x1- 3x2 + S1
F = A1 + A2
Putting the values of A1 and A2
F = ( 3 – 3X1- X2) + (6 – 4X1- 3X2 + S1)
=9 - 7x1-4 x2 + S1
Minimize f = 4x1+ x2
F=9 - 7x1-4 x2 + S1
Subject to:
3x1+ x2 + A1 = 3 …………. (4)
4x1+ 3x2 – S1 + A2= 6…………. (5)
x1+ 2x2 + S2 = 4 …………. (6)
x1, x2, S1 , S2 , A1 + A2 ≥0
Initial Feasible Solution
Arbitrary values =# of Variables -- # of Equation
6 - 3 = 3
Let x1= 0, x2 = 0, S1 = 0
Putting above values in objective functions
and equation 4-6,
F = 9
f = 0
A1 = 3
A2 = 6
S2 = 4
This solution is called initial feasible
solution because it satisfies the all Non
negativity constraint and also do not
have any contradiction or violation
Initial Tableau
Basics X1 X2 S1 S2 A1 A2 RHS Ratio
A1 3 1 0 0 1 0 3 3/3=1(Min)
A2 4 3 -1 0 0 1 6 6/4=1.5
S2 1 2 0 1 0 0 4 4/1=4
f -4 -1 0 0 0 0 0
F 7 4 -1 0 0 0 9
↑
In artificial function of minimization we select the
maximum positive as the entering variable which is
X1
For leaving variable the rule is same as maximization,
the variable with minimum ratio;A1
Optimal solution for Artificial objective
Function
The solution of artificial objective
function is said to be optimal when
artificial objective functions
coefficients become non-positive or
zero
Calculation
[1 1/3 0 0 1/3 0 1]
New Pivot Row =
1
X Old Pivot Row
Pivot No.
New Pivot
Row =
1
X [3 1 0 0 1 0 3]
3
Calculation
New Row = Old Row – Pivot Column Coefficient x New Pivot Row
New A2 Row = [4 3 -1 0 0 1 6]
- (4)[1 1/3 0 0 1/3 0 1]
= [0 5/3 -1 0 -4/3 1 2]
New S2 Row =[1 2 0 1 0 0 4]
- (1) [1 1/3 0 0 1/3 0 1]
= [0 5/3 0 1 -1/3 0 3]
New f Row = [-4 -1 0 0 0 0 0]
- (-4) [1 1/3 0 0 1/3 0 1]
= [0 1/3 0 0 4/3 0 4]
New F Row = [7 4 -1 0 0 0 9]
- (7) [1 1/3 0 0 1/3 0 1]
= [0 5/3 -1 0 -7/3 0 2]
Tableau I
Basics X1 X2 S1 S2 A1 A2 RHS Ratio
X1 1 1/3 0 0 1/3 0 1 1÷1/3=3
A2 0 5/3 -1 0 -4/3 1 2
2 ÷5/3=1.2
(Min)
S2 0 5/3 0 1 -1/3 0 3 3/5 ÷ 3=1.8
f 0 1/3 0 0 4/3 0 4
F 0 5/3 -1 0 -7/3 0 2
↑
Still there is one positive coefficient so we
need to make further tableau
Calculation
[0 1 -3/5 0 -4/5 3/5 6/5]
New Pivot Row =
1
X Old Pivot Row
Pivot No.
New Pivot
Row =
1
X [0 5/3 -1 0 -4/3 1 2]
5/3
Calculation
New Row = Old Row – Pivot Column Coefficient x New Pivot Row
New X1 Row =
[1 1/3 0 0 1/3 0 1]
-(1/3)[0 1 -3/5 0 -4/5 3/5 6/5]
= [1 0 1/5 0 3/5 -1/5 3/5]
New S2 Row =
[0 5/3 0 1 -1/3 0 3]
-(5/3)[0 1 -3/5 0 -4/5 3/5 6/5]
= [0 0 1 1 1 -1 1]
Calculation
New f Row =
[0 1/3 0 0 4/3 0 4]
-(1/3)[0 1 -3/5 0 -4/5 3/5 6/5]
= [0 0 1/5 0 8/5 -1/5 18/5]
New F Row
[0 5/3 -1 0 -7/3 0 2]
-(5/3)[0 1 -3/5 0 -4/5 3/5 6/5]
= [0 0 0 0 -1 -1 0]
Tableau II
Basics X1 X2 S1 S2 A1 A2 RHS
X1 1 0 1/5 0 3/5 -1/5 3/5
X2 0 1 -3/5 0 -4/5 3/5 6/5
S2 0 0 1 1 1 -1 1
f 0 0 1/5 0 8/5 -1/5 18/5
F 0 0 0 0 -1 -1 0
Now there is no positive value in the artificial
function so this is the end of Phase I
Phase II
In phase two rewrite the previous tableau by dropping
the artificial objective function and artificial
variables
Basics X1 X2 S1 S2 RHS Ratio
X1 1 0 1/5 0 3/5 3/5÷1/5=3
X2 0 1 -3/5 0 6/5
S2 0 0 1 1 1 1/1=1(Min)
f 0 0 1/5 0 18/5
↑
Calculation
[0 0 1 1 1]
New Pivot Row =
1
X Old Pivot Row
Pivot No.
New Pivot
Row =
1
X [0 0 1 1 1]
1
Calculation
New Row = Old Row – Pivot Column Coefficient x New Pivot Row
New X1 Row =
[1 0 1/5 0 3/5]
-(1/5) [0 0 1 1 1]
= [1 0 0 -1/5 2/5]
New X2 Row =
[0 1 -3/5 0 6/5]
-(-3/5)[0 0 1 1 1]
= [0 1 0 3/5 9/5]
Calculation
New f Row =
[0 0 1/5 0 18/5]
-(1/5) [0 0 1 1 1]
= [0 0 0 -1/5 17/5]
Tableau
Basics X1 X2 S1 S2 RHS
X1 1 0 0 -1/5 2/5
X2 0 0 0 3/5 9/5
S1 0 0 1 1 1
f 0 0 0 -1/5 17/5
Now there is no positive value in the objective
function so this is the optimal point
Optimal Solution
X1 = 2/5
X2 = 9/5
f = 17/5
Cross checking of maximization point
put values of X1 and X2 from above solution into
original objective function
f=4x1+ x2
=4 (2/5) + (9/5)
=17/5
SG 8 Lecture 15 Simplex - Min - 2 phase.pptx

More Related Content

Similar to SG 8 Lecture 15 Simplex - Min - 2 phase.pptx

Differential calculus maxima minima
Differential calculus  maxima minimaDifferential calculus  maxima minima
Differential calculus maxima minimaSanthanam Krishnan
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variableDevyaneeDevyanee2007
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingManas Lad
 
Straight line graphs
Straight line graphsStraight line graphs
Straight line graphsSajidPervez2
 
OR presentation simplex.pptx
OR presentation simplex.pptxOR presentation simplex.pptx
OR presentation simplex.pptxpranalpatilPranal
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayDr. Asish K Mukhopadhyay
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 042013901097
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation CaseJoseph Konnully
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functionsdionesioable
 
Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...
Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...
Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...RhiannonBanksss
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research2013901097
 

Similar to SG 8 Lecture 15 Simplex - Min - 2 phase.pptx (20)

Differential calculus maxima minima
Differential calculus  maxima minimaDifferential calculus  maxima minima
Differential calculus maxima minima
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
Straight line graphs
Straight line graphsStraight line graphs
Straight line graphs
 
Gr10 piecewise functions
Gr10 piecewise functionsGr10 piecewise functions
Gr10 piecewise functions
 
OR presentation simplex.pptx
OR presentation simplex.pptxOR presentation simplex.pptx
OR presentation simplex.pptx
 
Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 
Karnaugh
KarnaughKarnaugh
Karnaugh
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 04
 
Operations Research - Simplex Method Tableau
Operations Research - Simplex Method TableauOperations Research - Simplex Method Tableau
Operations Research - Simplex Method Tableau
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation Case
 
Big m method
Big   m methodBig   m method
Big m method
 
Minimization model by simplex method
Minimization model by simplex methodMinimization model by simplex method
Minimization model by simplex method
 
1 13s-f
1 13s-f1 13s-f
1 13s-f
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functions
 
MFCS2-Module1.pptx
MFCS2-Module1.pptxMFCS2-Module1.pptx
MFCS2-Module1.pptx
 
Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...
Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...
Solutions Manual for College Algebra Concepts Through Functions 3rd Edition b...
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research
 

Recently uploaded

Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdfKamal Acharya
 
Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfAyahmorsy
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdfKamal Acharya
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfPipe Restoration Solutions
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamDr. Radhey Shyam
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineJulioCesarSalazarHer1
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdfKamal Acharya
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptxfaamieahmd
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdfKamal Acharya
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industriesMuhammadTufail242431
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edgePaco Orozco
 
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.pdfKamal Acharya
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGKOUSTAV SARKAR
 
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.pptxR&R Consult
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringC Sai Kiran
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdfKamal Acharya
 
shape functions of 1D and 2 D rectangular elements.pptx
shape functions of 1D and 2 D rectangular elements.pptxshape functions of 1D and 2 D rectangular elements.pptx
shape functions of 1D and 2 D rectangular elements.pptxVishalDeshpande27
 

Recently uploaded (20)

Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdf
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptx
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
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
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
 
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
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
 
shape functions of 1D and 2 D rectangular elements.pptx
shape functions of 1D and 2 D rectangular elements.pptxshape functions of 1D and 2 D rectangular elements.pptx
shape functions of 1D and 2 D rectangular elements.pptx
 

SG 8 Lecture 15 Simplex - Min - 2 phase.pptx

  • 1. LECTURE 14 MINIMIZATION TWO PHASE METHOD Simplex Method
  • 3. Illustration Minimize f=4x1+ x2 (Objective Function) Subject to: (Constraints) 3x1+ x2 = 3 4x1+ 3x2 ≥6 x1+ 2x2 ≤4 x1, x2 ≥ 0 (Non-Negativity Constraints)
  • 4. Inequalities Constraints in Equation Form Let S1 and S2 be the surplus and slack variables for second and third constraints, respectively. Minimize f =4x1+ x2 (Objective Function) Subject to: (Constraints) 3x1+ x2 = 3 …………. (1) 4x1+ 3x2 – S1 = 6 …………. (2) x1+ 2x2 + S2 = 4 …………. (3) x1, x2, S1 , S2≥ 0
  • 5. Initial solution Arbitrary values =# of Variables -- # of Equations 4 - 2 = 2 Let x1= 0, x2 = 0 Putting above values in objective function (f =5x1+ 4x2) and equation 1-3, f = 0 0 = 3 (Contradiction) S1 = -6 (Violation) S2 = 4 This is against the basic rules of Mathematics as the 0 cannot be equal to 3. This is against the non negativity constraint that X must be non zero. This situation cannot be called as initial feasible solution because it is not satisfying the condition. In order to make it feasible we need to add Artificial variables In equations having contradictions and violation
  • 6. Artificial Variables Let A1 and A2 be the artificial variables for first and second equation respectively. Minimize: f =4x1+ x2 (Objective Function) Subject to: (Constraints) 3x1+ x2 + A1= 3 …………. (4) 4x1+ 3x2 – S1 + A2= 6 …………. (5) x1+ 2x2 + S2 = 4 …………. (6) x1, x2, S1 , S2 , A1 + A2 ≥ 0
  • 7. Solution of Artificial Variable Questions which involve artificial variables can not solve straight away. We have to use following two methods to solve it 1. Penalty Method or M-Method (Big M Method) 2. Two Phase Method In this lecture we will solve this problem by Two Phase Method
  • 8. Solution by Two Phase Method Phase I: In Phase I we introduce artificial objective function Capital “F” as the sum of artificial variables introduced in the constraints. We substitute the values of artificial variables from the constraints and get artificial objective function. We have Two artificial variables so the artificial objective function would be as under; F = A1 + A2
  • 9. Artificial Objective Function  A1 Use Equation no 4 to find the value of A1 3x1+ x2 + A1= 3 A1 = 3 - 3x1- x2  A2 Use Equation no 5 to find the value of A2 4x1+ 3x2 – S1 + A2= 6 A2= 6 - 4x1- 3x2 + S1
  • 10. F = A1 + A2 Putting the values of A1 and A2 F = ( 3 – 3X1- X2) + (6 – 4X1- 3X2 + S1) =9 - 7x1-4 x2 + S1 Minimize f = 4x1+ x2 F=9 - 7x1-4 x2 + S1 Subject to: 3x1+ x2 + A1 = 3 …………. (4) 4x1+ 3x2 – S1 + A2= 6…………. (5) x1+ 2x2 + S2 = 4 …………. (6) x1, x2, S1 , S2 , A1 + A2 ≥0
  • 11. Initial Feasible Solution Arbitrary values =# of Variables -- # of Equation 6 - 3 = 3 Let x1= 0, x2 = 0, S1 = 0 Putting above values in objective functions and equation 4-6, F = 9 f = 0 A1 = 3 A2 = 6 S2 = 4 This solution is called initial feasible solution because it satisfies the all Non negativity constraint and also do not have any contradiction or violation
  • 12. Initial Tableau Basics X1 X2 S1 S2 A1 A2 RHS Ratio A1 3 1 0 0 1 0 3 3/3=1(Min) A2 4 3 -1 0 0 1 6 6/4=1.5 S2 1 2 0 1 0 0 4 4/1=4 f -4 -1 0 0 0 0 0 F 7 4 -1 0 0 0 9 ↑ In artificial function of minimization we select the maximum positive as the entering variable which is X1 For leaving variable the rule is same as maximization, the variable with minimum ratio;A1
  • 13. Optimal solution for Artificial objective Function The solution of artificial objective function is said to be optimal when artificial objective functions coefficients become non-positive or zero
  • 14. Calculation [1 1/3 0 0 1/3 0 1] New Pivot Row = 1 X Old Pivot Row Pivot No. New Pivot Row = 1 X [3 1 0 0 1 0 3] 3
  • 15. Calculation New Row = Old Row – Pivot Column Coefficient x New Pivot Row New A2 Row = [4 3 -1 0 0 1 6] - (4)[1 1/3 0 0 1/3 0 1] = [0 5/3 -1 0 -4/3 1 2] New S2 Row =[1 2 0 1 0 0 4] - (1) [1 1/3 0 0 1/3 0 1] = [0 5/3 0 1 -1/3 0 3] New f Row = [-4 -1 0 0 0 0 0] - (-4) [1 1/3 0 0 1/3 0 1] = [0 1/3 0 0 4/3 0 4] New F Row = [7 4 -1 0 0 0 9] - (7) [1 1/3 0 0 1/3 0 1] = [0 5/3 -1 0 -7/3 0 2]
  • 16. Tableau I Basics X1 X2 S1 S2 A1 A2 RHS Ratio X1 1 1/3 0 0 1/3 0 1 1÷1/3=3 A2 0 5/3 -1 0 -4/3 1 2 2 ÷5/3=1.2 (Min) S2 0 5/3 0 1 -1/3 0 3 3/5 ÷ 3=1.8 f 0 1/3 0 0 4/3 0 4 F 0 5/3 -1 0 -7/3 0 2 ↑ Still there is one positive coefficient so we need to make further tableau
  • 17. Calculation [0 1 -3/5 0 -4/5 3/5 6/5] New Pivot Row = 1 X Old Pivot Row Pivot No. New Pivot Row = 1 X [0 5/3 -1 0 -4/3 1 2] 5/3
  • 18. Calculation New Row = Old Row – Pivot Column Coefficient x New Pivot Row New X1 Row = [1 1/3 0 0 1/3 0 1] -(1/3)[0 1 -3/5 0 -4/5 3/5 6/5] = [1 0 1/5 0 3/5 -1/5 3/5] New S2 Row = [0 5/3 0 1 -1/3 0 3] -(5/3)[0 1 -3/5 0 -4/5 3/5 6/5] = [0 0 1 1 1 -1 1]
  • 19. Calculation New f Row = [0 1/3 0 0 4/3 0 4] -(1/3)[0 1 -3/5 0 -4/5 3/5 6/5] = [0 0 1/5 0 8/5 -1/5 18/5] New F Row [0 5/3 -1 0 -7/3 0 2] -(5/3)[0 1 -3/5 0 -4/5 3/5 6/5] = [0 0 0 0 -1 -1 0]
  • 20. Tableau II Basics X1 X2 S1 S2 A1 A2 RHS X1 1 0 1/5 0 3/5 -1/5 3/5 X2 0 1 -3/5 0 -4/5 3/5 6/5 S2 0 0 1 1 1 -1 1 f 0 0 1/5 0 8/5 -1/5 18/5 F 0 0 0 0 -1 -1 0 Now there is no positive value in the artificial function so this is the end of Phase I
  • 21. Phase II In phase two rewrite the previous tableau by dropping the artificial objective function and artificial variables Basics X1 X2 S1 S2 RHS Ratio X1 1 0 1/5 0 3/5 3/5÷1/5=3 X2 0 1 -3/5 0 6/5 S2 0 0 1 1 1 1/1=1(Min) f 0 0 1/5 0 18/5 ↑
  • 22. Calculation [0 0 1 1 1] New Pivot Row = 1 X Old Pivot Row Pivot No. New Pivot Row = 1 X [0 0 1 1 1] 1
  • 23. Calculation New Row = Old Row – Pivot Column Coefficient x New Pivot Row New X1 Row = [1 0 1/5 0 3/5] -(1/5) [0 0 1 1 1] = [1 0 0 -1/5 2/5] New X2 Row = [0 1 -3/5 0 6/5] -(-3/5)[0 0 1 1 1] = [0 1 0 3/5 9/5]
  • 24. Calculation New f Row = [0 0 1/5 0 18/5] -(1/5) [0 0 1 1 1] = [0 0 0 -1/5 17/5]
  • 25. Tableau Basics X1 X2 S1 S2 RHS X1 1 0 0 -1/5 2/5 X2 0 0 0 3/5 9/5 S1 0 0 1 1 1 f 0 0 0 -1/5 17/5 Now there is no positive value in the objective function so this is the optimal point
  • 26. Optimal Solution X1 = 2/5 X2 = 9/5 f = 17/5 Cross checking of maximization point put values of X1 and X2 from above solution into original objective function f=4x1+ x2 =4 (2/5) + (9/5) =17/5