SlideShare a Scribd company logo
1 of 26
By- Himanshu, Mohit,
Hrishikesh, Jayesh, Pranal
SIMPLEX
METHOD
Simplex Method
• Simplex: A linear-programming algorithm that can solve problems
having more than two decision variables.
• The simplex technique involves generating a series of solutions in
tabular form, called tableaus. This process continues as long as a
positive (negative) rate of profit (cost) exists.
• The simplex method is an iterative algorithm (a systematic solution
procedure that keeps repeating a fixed series of steps, called, an
iteration.
Simplex Method
Solve the following LPP using the Simplex method
Maximize Z = 12x1 + 16 x2
Subject to 10 x1 + 20 x2 ≤ 120
8 x1 + 8 x2 ≤ 80
x1, x2 ≥ 0
Simplex Method
Solution,
Max Z = 12x1 + 16x2
10x1 + 20x2 + s1 = 120
8x1 + 8x2 + s2 = 80
Same Slack should be added to Maximize function as well
Max Z = 12x1 + 16x2+ s1 +s2
Coefficient Value of s1 , s2 are 0
Therefore Max Z = 12x1 + 16x2+ 0s1 +0s2
x1, x2, s1, s2 ≥ 0
Simplex Method
Step 1
We have to frame Initial Simplex Table table
Cj = Coefficient of Objective function
Basic Variables = x1, x2, s1, s2
Max Z= 12x1 + 16 x2+ 0s1 +0s2
x1 = 12, x2= 16, s1= 0 , s2=0
Simplex Method
Constraint Equation
10x1 + 20x2 + s1 = 120 ---------------------------1
8x1 + 8 x2 + s2 = 80-------------------------------2
Zj = Σ( Cbi ) (aij )
1. (0x10 ) + (0x8) 0 +0 = 0
2. (0x20)+(0x8) 0+0= 0
We have to find now = Cj-Zj
Optimality condition
For Max : all Cj-Zj ≤ 0
For Min : all Cj-Zj ≥ 0
Here in above all Cj-Zj are Positive value so we have to proceed further for solution
In the table maximum value of Cj-Zj is 16
So X2 will be a Key Column
Now we have to find ratio = Solution / Key column
6 being the least value & hence 20 at the point of intersection will become key ELEMENT . So X2 will be entering Variable &
S1 will become leaving Variable.
Key Column
Entering Variable
Key Row
Key Column
Key Element
Leaving Variable
For first Row : Divide old row with key element
For Second Row use the formula
New Value = Old row –( Corresponding key column value x Corresponding Key row value ) / key
Element
 8- (8x10 )/20 8-80/20 8-4= 4
 8- (8 x20 )/20 8-160/20 8-8=0
 0-(8X1)/20 0-8/20 OR 0- 2/5 = -2/5 or -0.4
 1-8X0/20 1-0/20 1-0 = 1
 80-(8X120 ) /20 80- 960/20 80-48 = 32
Zj = Σ( Cbi ) (aij )
1. (16 x0.5 ) + (0x4) 8 + 0 = 8
2. (16x 1)+(0x0) 16+0= 16
We have to find now = Cj-Zj ( Condition is Cj-Zj should be ≤ 0
Key column
Key Row
Key element
Entering Variable
Leaving Variable
For Key Row (x1) : Divide old row with key element.
For Second Row use the formula
New Value = Old row –( Corresponding key column value x Corresponding Key row
value ) / key Element
 0.5- (0.5x4 )/4 0.5- 2/4 0.5-0.5= 0
 1- (0.5 x0 )/4 1-0/4 1-0 =1
 0.05-(0.5x-0.4)/4 0.5 + 0.2 / 4 0.5+ 0.05= or 0.10
 0- (0.5X1)/4 0-0.5/4 0-0.125 = -0.125
 6-(0.5X32 ) /4 6- 16/4 6-4 = 2
Simplex Method
We have to calculate first Zj
Zj = Σ( Cbi ) (aij )
1. (16x0 ) + (12x1) 0 +12= 12
2. (16x1)+(12x0) 16+0= 16
Than Cj-Zj
Optimality condition
For Max : all Cj-Zj ≤ 0
For Min : all Cj-Zj ≥ 0
x1= 8, x2= 2 , Z ( Optimality ) = 128
Simplex Method
Max Z= 12x1 + 16 x2
x1= 8, x2= 2, Z ( Optimality ) = 128
Put Value of x1 & x2 in Max Z
12 x 8 + 16 x 2
96 + 32 = 128
LHS = RHS
How to Check the Correctness
Simplex Method
Minimize Z = 2x1 -3x2+ 6x3
Subject to
3x1- x2+ 2x3 ≤ 7 -----------------------------1
-2x1 - 4x2 ≤ 12---------------------------2
-4x1 + 3x2 + 8x3 ≤ 10 -----------------------3
x1, x2, x3 ≥ 0 ( Non-Negative )
Equation :- 2
Simplex Method
Step 1
Convert LPP into the Standard format
Changing Inequality sign to equality sign
Add slack variable in both Constraint & Objective function with zero coefficient value
Minimize Z = 2x1 -3x2+ 6x3 + 0s1 + 0 s2 + 0 s3
Subject to
3x1- x2+ 2x3 + s1 = 7
-2x1 - 4x2 + s2 = 12
-4x1 + 3x2 + 8x3 + s3 = 10
x1, x2, x3, s1 , s2 , s3 ≥ 0 ( Non-Negative )
Form Initial Simplex table
Simplex Method
Minimize Z = 2x1 -3x2+ 6x3 + 0s1 + 0 s2 + 0 s3
Cj = Coefficient of Objective function
Basic Variables = x1, x2, x3, s1, s2, s3
x1 = 2, x2= -3 , x3 = 6 s1= 0 , s2=0 , s3 = 0
In BV Column enter 3 slack variables & in Cbi enter the value of slack variable
Simplex Method
We have to enter now Constraints
3x1- x2+ 2x3 + s1 = 7
-2x1 - 4x2 + s2 = 12
-4x1 + 3x2 + 8x3 + s3 = 10
Zj = Σ( Cbi ) (aij )
1. (0x3 ) + (0x-2) + (0 x -4) 0 +0 +0 = 0
2. (0x-1)+(0x-4) + ( 0x 3) 0 +0+0 = 0
We have to find now = Cj-Zj
Optimality condition
For Max : all Cj-Zj ≤ 0 Means all value should be either zero or Negative value .
For Min : all Cj-Zj ≥ 0 Means all value should be either zero or Positive value .
Here in above Cj-Zj, there are negative value , so we have to proceed further for solution.
We have to select most negative value
Example
Cj-Zj = 2 -7 -2 0 0 0
Cj-Zj = 2 -3 -3 0 0 0
In the table most negative value of Cj-Zj is -3
So X2 will be a Key Column
Key Column
Now we have to find ratio = Solution / Key column
Select from Ratio the Least Positive value i.e 3.33 so s3 will be a Key Row
3 at the point of intersection will become key ELEMENT .
So X2 will be entering Variable & S3 will become leaving Variable.
Key Row
Key Element
Entering Variable
Leaving
Variable
Entering Variable is x2 & Leaving Variable is S3
Secondly we have to find the value of entering variable ( Old Value divided by KEY ELEMENT )
In this case Old Values are -4, 3 , 8, 0, 0, 1
Key element is 3
Therefore New value will be -4/3, 3/3, 8/3, 0,0, 1/3
We have to find out the value of first two rows
Formula is New Value = Old Value – ( Corresponding Key Column Value x Corresponding New value )
Formula is
New Value = Old Value – ( Corresponding Key Column Value x Corresponding New value
Old value
Corresponding New value are -4/3, 3/3, 8/3, 0,0, 1/3 , 10/3
• 3- ( -1x -4/3) 3 – ( 4/3 ) 3-4/3 = 5/ 3
• -1 –( -1 x 1 ) -1 – ( -1) -1 + 1 1 = 0
• 2- ( -1 x 8/3 ) 2- ( -8/3 ) 2 + 8/3 = 14/ 3
• 1- ( -1 x 0) 1- ( 0) 1-0 = 1
• 0-( -1 x 0) 0- ( 0) 0-0 = 0
• 0- ( -1 x 1/3 ) 0- ( -1/ 3) 0+ 1/3 = 1/ 3
• 7- ( -1 x 10/3 ) 7- ( -10/3 ) 7 + 10/3 = 31/3
s1 3 -1 2 1 0 0 7
s2 -2 -4 0 0 1 0 12
Zj = Σ( Cbi ) (aij )
1. (0x1.67 ) + (0x-7.33) + (-3 x -1.334) 0 +0 + 4 = 4
2. (0x0)+(0x-0) + ( -3x 1 0 +0-3 = -3
We have to find now = Cj-Zj
For Min : all Cj-Zj ≥ 0 Means all value should be either zero or Positive value .
Here in above Cj-Zj, there are negative value , so we have to proceed further for solution.
We have to select most negative value
In the table most negative value of Cj-Zj is -2
So X1 will be a Key Column
Now we have to find ratio = Solution / Key column
Select from Ratio the Least Positive value i.e 6.2 so s1 will be a Key Row
1.67 at the point of intersection will become key ELEMENT .
So X1 will be entering Variable & S1 will become leaving Variable.
Key Column
Key Row
Key Element
Leaving Variable
Entering Variable
Entering Variable is x1 & Leaving Variable is S1
Secondly we have to find the value of entering variable ( Old Value divided by KEY ELEMENT )
In this case Old Values are 1.67, 0, 4.67, 1 , 0 , 0.33 , 10.33
Key element is 1.67
Therefore New value will be 1.00, 0.00, 2.80, 0.60, 0.00, 0.20, 6.20
Formula is
New Value = Old Value – ( Corresponding Key Column Value x Corresponding New value )
Old value
Corresponding New value are 1, 0, 2.80, 0.60, 0 , 0.20 , 6.20
• -7.33 - ( -7.33 x 1 ) -7.33 – (-7.33 ) -7.33 + 7.33 = 0
• 0 –( -7.33 x 0 ) 0 – ( 0) 0- 0 = 0
• 10.67 - ( -7.33 x 2.80 ) 10.67 - ( -20.52 ) 10.67 + 20.52 = 31.19
• 0- ( -7.33 x 0.60) 0- ( -4.398) 0 + 4.398 = 4.398
• 1-( -7.33 x 0) 1 - ( 0) 1- 0 = 1
• 1.33- ( -7.33 x 0.20 ) 1.33- ( -1.466) 1.33 + 1.466 = 2.796
• 25.33- ( -7.33 x 6.20 ) 25.33- ( -45.446 ) 25.33 + 45.446 = 70.776
s2 -7.33 0.00 10.67 0.00 1.00 1.33 25.33
x2 -1.33 1.00 2.67 0.00 0.00 0.33 3.33
Zj = Σ( Cbi ) (aij )
1. (2x1 ) + (0x0) + (-3 x 0) 2 +0 + 0 = 2
2. (2x0)+(0x-0) + ( -3x 1 ) 0 +0-3 = -3
We have to find now = Cj-Zj
For Min : all Cj-Zj ≥ 0 Means all value should be either zero or Positive value .
Cj-Zj in above table are either 0 or Positive
Hence we have optimal solution Z = -22.40
Thank
You!

More Related Content

What's hot

Defensive and offensive strategies
Defensive and offensive strategiesDefensive and offensive strategies
Defensive and offensive strategiesNouman Rafique
 
Gomory's cutting plane method
Gomory's cutting plane methodGomory's cutting plane method
Gomory's cutting plane methodRajesh Piryani
 
Pricing strategies feb(1)
Pricing strategies feb(1)Pricing strategies feb(1)
Pricing strategies feb(1)Aamera Khan
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programmingjyothimonc
 
Ch. 2-optimization-techniques
Ch. 2-optimization-techniquesCh. 2-optimization-techniques
Ch. 2-optimization-techniquesanj134u
 
Statistical decision theory
Statistical decision theoryStatistical decision theory
Statistical decision theoryRachna Gupta
 
Winning environment summary
Winning environment summaryWinning environment summary
Winning environment summaryBuhle Dlamini
 
The effective sales executives
The effective sales executivesThe effective sales executives
The effective sales executivesprincedayal
 
Graphical Method
Graphical MethodGraphical Method
Graphical MethodSachin MK
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation CaseJoseph Konnully
 
Linear Programming - Meaning, Example and Application in Business
Linear Programming - Meaning, Example and Application in BusinessLinear Programming - Meaning, Example and Application in Business
Linear Programming - Meaning, Example and Application in BusinessSundar B N
 
Pricing Strategies;Transfer pricing- managerial economics
Pricing Strategies;Transfer pricing- managerial economicsPricing Strategies;Transfer pricing- managerial economics
Pricing Strategies;Transfer pricing- managerial economicsjyothi s basavaraju
 

What's hot (20)

Big M method
Big M methodBig M method
Big M method
 
Defensive and offensive strategies
Defensive and offensive strategiesDefensive and offensive strategies
Defensive and offensive strategies
 
Gomory's cutting plane method
Gomory's cutting plane methodGomory's cutting plane method
Gomory's cutting plane method
 
Lp simplex 3_
Lp simplex 3_Lp simplex 3_
Lp simplex 3_
 
Pricing strategies feb(1)
Pricing strategies feb(1)Pricing strategies feb(1)
Pricing strategies feb(1)
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
 
Ch. 2-optimization-techniques
Ch. 2-optimization-techniquesCh. 2-optimization-techniques
Ch. 2-optimization-techniques
 
Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
 
Linear programming ppt
Linear programming pptLinear programming ppt
Linear programming ppt
 
Statistical decision theory
Statistical decision theoryStatistical decision theory
Statistical decision theory
 
Winning environment summary
Winning environment summaryWinning environment summary
Winning environment summary
 
Operations Research - The Dual Simplex Method
Operations Research - The Dual Simplex MethodOperations Research - The Dual Simplex Method
Operations Research - The Dual Simplex Method
 
simplex method
simplex methodsimplex method
simplex method
 
The effective sales executives
The effective sales executivesThe effective sales executives
The effective sales executives
 
Lpp simplex method
Lpp simplex methodLpp simplex method
Lpp simplex method
 
Graphical Method
Graphical MethodGraphical Method
Graphical Method
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation Case
 
Game theory
Game theoryGame theory
Game theory
 
Linear Programming - Meaning, Example and Application in Business
Linear Programming - Meaning, Example and Application in BusinessLinear Programming - Meaning, Example and Application in Business
Linear Programming - Meaning, Example and Application in Business
 
Pricing Strategies;Transfer pricing- managerial economics
Pricing Strategies;Transfer pricing- managerial economicsPricing Strategies;Transfer pricing- managerial economics
Pricing Strategies;Transfer pricing- managerial economics
 

Similar to OR presentation simplex.pptx

Operations Research Problem
Operations Research  ProblemOperations Research  Problem
Operations Research ProblemTaslima Mujawar
 
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-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universityshobhakedari59
 
Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)Osama Zahid
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solutionunemployedmba
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manualnmahi96
 
Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Sudersana Viswanathan
 
Linear programming
Linear programmingLinear programming
Linear programmingsabin kafle
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingManas Lad
 
Simplex Method
Simplex MethodSimplex Method
Simplex Methodkzoe1996
 
Simplex Method
Simplex MethodSimplex Method
Simplex MethodSachin MK
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical AnalysisMostafijur Rahman
 
Analytic Geometry Period 1
Analytic Geometry Period 1Analytic Geometry Period 1
Analytic Geometry Period 1ingroy
 

Similar to OR presentation simplex.pptx (20)

Simplex Method.pptx
Simplex Method.pptxSimplex Method.pptx
Simplex Method.pptx
 
Big m method
Big   m methodBig   m method
Big m method
 
Operations Research Problem
Operations Research  ProblemOperations Research  Problem
Operations Research Problem
 
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
 
Inequalities
InequalitiesInequalities
Inequalities
 
simplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai university
 
Chapter four
Chapter fourChapter four
Chapter four
 
Shortlist jbmo 2016_v7-1
Shortlist jbmo 2016_v7-1Shortlist jbmo 2016_v7-1
Shortlist jbmo 2016_v7-1
 
Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solution
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Trigonometric ratios and identities 1
Trigonometric ratios and identities 1
 
Linear programming
Linear programmingLinear programming
Linear programming
 
TABREZ KHAN.ppt
TABREZ KHAN.pptTABREZ KHAN.ppt
TABREZ KHAN.ppt
 
Duality
DualityDuality
Duality
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
 
Analytic Geometry Period 1
Analytic Geometry Period 1Analytic Geometry Period 1
Analytic Geometry Period 1
 

More from pranalpatilPranal

Environment analysis exercise.pptx
Environment analysis exercise.pptxEnvironment analysis exercise.pptx
Environment analysis exercise.pptxpranalpatilPranal
 
Hospital and organisation of hospital.pptx
Hospital and organisation of hospital.pptxHospital and organisation of hospital.pptx
Hospital and organisation of hospital.pptxpranalpatilPranal
 
Diphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptx
Diphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptxDiphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptx
Diphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptxpranalpatilPranal
 
P. Joshi SBDD and docking (1).ppt
P. Joshi SBDD and docking (1).pptP. Joshi SBDD and docking (1).ppt
P. Joshi SBDD and docking (1).pptpranalpatilPranal
 
various approaches in drug design and molecular docking.pptx
various approaches in drug design and molecular docking.pptxvarious approaches in drug design and molecular docking.pptx
various approaches in drug design and molecular docking.pptxpranalpatilPranal
 
P. Joshi SBDD and docking.ppt
P. Joshi SBDD and docking.pptP. Joshi SBDD and docking.ppt
P. Joshi SBDD and docking.pptpranalpatilPranal
 

More from pranalpatilPranal (8)

Environment analysis exercise.pptx
Environment analysis exercise.pptxEnvironment analysis exercise.pptx
Environment analysis exercise.pptx
 
Hospital and organisation of hospital.pptx
Hospital and organisation of hospital.pptxHospital and organisation of hospital.pptx
Hospital and organisation of hospital.pptx
 
Diphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptx
Diphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptxDiphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptx
Diphtheria Clinical Case by Slidesgo [Autosaved] [Autosaved].pptx
 
P. Joshi SBDD and docking (1).ppt
P. Joshi SBDD and docking (1).pptP. Joshi SBDD and docking (1).ppt
P. Joshi SBDD and docking (1).ppt
 
various approaches in drug design and molecular docking.pptx
various approaches in drug design and molecular docking.pptxvarious approaches in drug design and molecular docking.pptx
various approaches in drug design and molecular docking.pptx
 
P. Joshi SBDD and docking.ppt
P. Joshi SBDD and docking.pptP. Joshi SBDD and docking.ppt
P. Joshi SBDD and docking.ppt
 
Psp FABing.pdf
Psp FABing.pdfPsp FABing.pdf
Psp FABing.pdf
 
warehouse.pptx
warehouse.pptxwarehouse.pptx
warehouse.pptx
 

Recently uploaded

Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computationsit20ad004
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 

Recently uploaded (20)

Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computation
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 

OR presentation simplex.pptx

  • 1. By- Himanshu, Mohit, Hrishikesh, Jayesh, Pranal SIMPLEX METHOD
  • 2. Simplex Method • Simplex: A linear-programming algorithm that can solve problems having more than two decision variables. • The simplex technique involves generating a series of solutions in tabular form, called tableaus. This process continues as long as a positive (negative) rate of profit (cost) exists. • The simplex method is an iterative algorithm (a systematic solution procedure that keeps repeating a fixed series of steps, called, an iteration.
  • 3. Simplex Method Solve the following LPP using the Simplex method Maximize Z = 12x1 + 16 x2 Subject to 10 x1 + 20 x2 ≤ 120 8 x1 + 8 x2 ≤ 80 x1, x2 ≥ 0
  • 4. Simplex Method Solution, Max Z = 12x1 + 16x2 10x1 + 20x2 + s1 = 120 8x1 + 8x2 + s2 = 80 Same Slack should be added to Maximize function as well Max Z = 12x1 + 16x2+ s1 +s2 Coefficient Value of s1 , s2 are 0 Therefore Max Z = 12x1 + 16x2+ 0s1 +0s2 x1, x2, s1, s2 ≥ 0
  • 5. Simplex Method Step 1 We have to frame Initial Simplex Table table Cj = Coefficient of Objective function Basic Variables = x1, x2, s1, s2 Max Z= 12x1 + 16 x2+ 0s1 +0s2 x1 = 12, x2= 16, s1= 0 , s2=0
  • 6. Simplex Method Constraint Equation 10x1 + 20x2 + s1 = 120 ---------------------------1 8x1 + 8 x2 + s2 = 80-------------------------------2 Zj = Σ( Cbi ) (aij ) 1. (0x10 ) + (0x8) 0 +0 = 0 2. (0x20)+(0x8) 0+0= 0
  • 7. We have to find now = Cj-Zj Optimality condition For Max : all Cj-Zj ≤ 0 For Min : all Cj-Zj ≥ 0 Here in above all Cj-Zj are Positive value so we have to proceed further for solution In the table maximum value of Cj-Zj is 16 So X2 will be a Key Column Now we have to find ratio = Solution / Key column 6 being the least value & hence 20 at the point of intersection will become key ELEMENT . So X2 will be entering Variable & S1 will become leaving Variable. Key Column Entering Variable Key Row Key Column Key Element Leaving Variable
  • 8. For first Row : Divide old row with key element For Second Row use the formula New Value = Old row –( Corresponding key column value x Corresponding Key row value ) / key Element  8- (8x10 )/20 8-80/20 8-4= 4  8- (8 x20 )/20 8-160/20 8-8=0  0-(8X1)/20 0-8/20 OR 0- 2/5 = -2/5 or -0.4  1-8X0/20 1-0/20 1-0 = 1  80-(8X120 ) /20 80- 960/20 80-48 = 32
  • 9. Zj = Σ( Cbi ) (aij ) 1. (16 x0.5 ) + (0x4) 8 + 0 = 8 2. (16x 1)+(0x0) 16+0= 16 We have to find now = Cj-Zj ( Condition is Cj-Zj should be ≤ 0 Key column Key Row Key element Entering Variable Leaving Variable
  • 10. For Key Row (x1) : Divide old row with key element. For Second Row use the formula New Value = Old row –( Corresponding key column value x Corresponding Key row value ) / key Element  0.5- (0.5x4 )/4 0.5- 2/4 0.5-0.5= 0  1- (0.5 x0 )/4 1-0/4 1-0 =1  0.05-(0.5x-0.4)/4 0.5 + 0.2 / 4 0.5+ 0.05= or 0.10  0- (0.5X1)/4 0-0.5/4 0-0.125 = -0.125  6-(0.5X32 ) /4 6- 16/4 6-4 = 2
  • 11. Simplex Method We have to calculate first Zj Zj = Σ( Cbi ) (aij ) 1. (16x0 ) + (12x1) 0 +12= 12 2. (16x1)+(12x0) 16+0= 16 Than Cj-Zj Optimality condition For Max : all Cj-Zj ≤ 0 For Min : all Cj-Zj ≥ 0 x1= 8, x2= 2 , Z ( Optimality ) = 128
  • 12. Simplex Method Max Z= 12x1 + 16 x2 x1= 8, x2= 2, Z ( Optimality ) = 128 Put Value of x1 & x2 in Max Z 12 x 8 + 16 x 2 96 + 32 = 128 LHS = RHS How to Check the Correctness
  • 13. Simplex Method Minimize Z = 2x1 -3x2+ 6x3 Subject to 3x1- x2+ 2x3 ≤ 7 -----------------------------1 -2x1 - 4x2 ≤ 12---------------------------2 -4x1 + 3x2 + 8x3 ≤ 10 -----------------------3 x1, x2, x3 ≥ 0 ( Non-Negative ) Equation :- 2
  • 14. Simplex Method Step 1 Convert LPP into the Standard format Changing Inequality sign to equality sign Add slack variable in both Constraint & Objective function with zero coefficient value Minimize Z = 2x1 -3x2+ 6x3 + 0s1 + 0 s2 + 0 s3 Subject to 3x1- x2+ 2x3 + s1 = 7 -2x1 - 4x2 + s2 = 12 -4x1 + 3x2 + 8x3 + s3 = 10 x1, x2, x3, s1 , s2 , s3 ≥ 0 ( Non-Negative ) Form Initial Simplex table
  • 15. Simplex Method Minimize Z = 2x1 -3x2+ 6x3 + 0s1 + 0 s2 + 0 s3 Cj = Coefficient of Objective function Basic Variables = x1, x2, x3, s1, s2, s3 x1 = 2, x2= -3 , x3 = 6 s1= 0 , s2=0 , s3 = 0 In BV Column enter 3 slack variables & in Cbi enter the value of slack variable
  • 16. Simplex Method We have to enter now Constraints 3x1- x2+ 2x3 + s1 = 7 -2x1 - 4x2 + s2 = 12 -4x1 + 3x2 + 8x3 + s3 = 10 Zj = Σ( Cbi ) (aij ) 1. (0x3 ) + (0x-2) + (0 x -4) 0 +0 +0 = 0 2. (0x-1)+(0x-4) + ( 0x 3) 0 +0+0 = 0
  • 17. We have to find now = Cj-Zj Optimality condition For Max : all Cj-Zj ≤ 0 Means all value should be either zero or Negative value . For Min : all Cj-Zj ≥ 0 Means all value should be either zero or Positive value . Here in above Cj-Zj, there are negative value , so we have to proceed further for solution. We have to select most negative value Example Cj-Zj = 2 -7 -2 0 0 0 Cj-Zj = 2 -3 -3 0 0 0 In the table most negative value of Cj-Zj is -3 So X2 will be a Key Column
  • 18. Key Column Now we have to find ratio = Solution / Key column Select from Ratio the Least Positive value i.e 3.33 so s3 will be a Key Row 3 at the point of intersection will become key ELEMENT . So X2 will be entering Variable & S3 will become leaving Variable. Key Row Key Element Entering Variable Leaving Variable
  • 19. Entering Variable is x2 & Leaving Variable is S3 Secondly we have to find the value of entering variable ( Old Value divided by KEY ELEMENT ) In this case Old Values are -4, 3 , 8, 0, 0, 1 Key element is 3 Therefore New value will be -4/3, 3/3, 8/3, 0,0, 1/3 We have to find out the value of first two rows Formula is New Value = Old Value – ( Corresponding Key Column Value x Corresponding New value )
  • 20. Formula is New Value = Old Value – ( Corresponding Key Column Value x Corresponding New value Old value Corresponding New value are -4/3, 3/3, 8/3, 0,0, 1/3 , 10/3 • 3- ( -1x -4/3) 3 – ( 4/3 ) 3-4/3 = 5/ 3 • -1 –( -1 x 1 ) -1 – ( -1) -1 + 1 1 = 0 • 2- ( -1 x 8/3 ) 2- ( -8/3 ) 2 + 8/3 = 14/ 3 • 1- ( -1 x 0) 1- ( 0) 1-0 = 1 • 0-( -1 x 0) 0- ( 0) 0-0 = 0 • 0- ( -1 x 1/3 ) 0- ( -1/ 3) 0+ 1/3 = 1/ 3 • 7- ( -1 x 10/3 ) 7- ( -10/3 ) 7 + 10/3 = 31/3 s1 3 -1 2 1 0 0 7 s2 -2 -4 0 0 1 0 12
  • 21. Zj = Σ( Cbi ) (aij ) 1. (0x1.67 ) + (0x-7.33) + (-3 x -1.334) 0 +0 + 4 = 4 2. (0x0)+(0x-0) + ( -3x 1 0 +0-3 = -3 We have to find now = Cj-Zj For Min : all Cj-Zj ≥ 0 Means all value should be either zero or Positive value . Here in above Cj-Zj, there are negative value , so we have to proceed further for solution. We have to select most negative value In the table most negative value of Cj-Zj is -2 So X1 will be a Key Column
  • 22. Now we have to find ratio = Solution / Key column Select from Ratio the Least Positive value i.e 6.2 so s1 will be a Key Row 1.67 at the point of intersection will become key ELEMENT . So X1 will be entering Variable & S1 will become leaving Variable. Key Column Key Row Key Element Leaving Variable Entering Variable
  • 23. Entering Variable is x1 & Leaving Variable is S1 Secondly we have to find the value of entering variable ( Old Value divided by KEY ELEMENT ) In this case Old Values are 1.67, 0, 4.67, 1 , 0 , 0.33 , 10.33 Key element is 1.67 Therefore New value will be 1.00, 0.00, 2.80, 0.60, 0.00, 0.20, 6.20
  • 24. Formula is New Value = Old Value – ( Corresponding Key Column Value x Corresponding New value ) Old value Corresponding New value are 1, 0, 2.80, 0.60, 0 , 0.20 , 6.20 • -7.33 - ( -7.33 x 1 ) -7.33 – (-7.33 ) -7.33 + 7.33 = 0 • 0 –( -7.33 x 0 ) 0 – ( 0) 0- 0 = 0 • 10.67 - ( -7.33 x 2.80 ) 10.67 - ( -20.52 ) 10.67 + 20.52 = 31.19 • 0- ( -7.33 x 0.60) 0- ( -4.398) 0 + 4.398 = 4.398 • 1-( -7.33 x 0) 1 - ( 0) 1- 0 = 1 • 1.33- ( -7.33 x 0.20 ) 1.33- ( -1.466) 1.33 + 1.466 = 2.796 • 25.33- ( -7.33 x 6.20 ) 25.33- ( -45.446 ) 25.33 + 45.446 = 70.776 s2 -7.33 0.00 10.67 0.00 1.00 1.33 25.33 x2 -1.33 1.00 2.67 0.00 0.00 0.33 3.33
  • 25. Zj = Σ( Cbi ) (aij ) 1. (2x1 ) + (0x0) + (-3 x 0) 2 +0 + 0 = 2 2. (2x0)+(0x-0) + ( -3x 1 ) 0 +0-3 = -3 We have to find now = Cj-Zj For Min : all Cj-Zj ≥ 0 Means all value should be either zero or Positive value . Cj-Zj in above table are either 0 or Positive Hence we have optimal solution Z = -22.40