SlideShare a Scribd company logo
Simplex Method By  Dr. Eng. / Tamer Atteya Tanta Univ. – EGYPT Facebook link
Example  Max. Z = 13x 1 +11x 2 Subject to constraints: 4x 1 +5x 2  <  1500 5x 1 +3x 2  <  1575 x 1 +2x 2  <  420 x 1 , x 2  >  0 دالة الهدف القيود أو الشروط
Rewrite objective function so it is equal to zero We then need to rewrite  Z = 13x 1 +11x 2  as: Z -13x 1 -11x 2   =0
Convert all the inequality constraints  into equalities by the use of slack variables S 1 , S 2  , S 3 . 4x 1 +5x 2  + S 1  =  1500 5x 1 +3x 2  +S 2 = 1575 x 1 +2x 2  +S 3  = 420 x 1 , x 2 , S 1 , S 2 , S 3  >  0
Z - 13x 1  -11x 2  = 0 Subject to constraints: 4x 1 +5x 2  + S 1  =  1500 5x 1 +3x 2  +S 2  = 1575 x 1 +2x 2  +S 3  = 420 Next, these equations are placed in a tableau Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z S 1 S 2 S 3 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 S 2 0 5 3 0 1 0 1575 S 3 0 1 2 0 0 1 420
a) Choose the most negative number from Z-row. That variable ( x 1  ) is the  entering variable . b) Calculate Ratio = (value-col.) / (entering   -col.) c) Choose minimum +ve Ratio. That variable (S 2 ) is the  departing  variable . Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 S 2 0 5 3 0 1 0 1575 S 3 0 1 2 0 0 1 420
a) Choose the most negative number from Z-row. That variable ( x 1  ) is the  entering variable . b) Calculate Ratio = (value-col.) / (entering   -col.) c) Choose minimum +ve Ratio. That variable (S 2 ) is the  departing  variable . Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 1500/4=375 S 2 0 5 3 0 1 0 1575 1575/5=315 S 3 0 1 2 0 0 1 420 420/1=420
Make the pivot element equal to 1 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 5 3 0 1 0 1575 S 3 0 1 2 0 0 1 420
Make the pivot element equal to 1 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 5/5 3/5 0 1/5 0 1575 / 5 S 3 0 1 2 0 0 1 420
Make the pivot element equal to 1 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 1 3/5 0 1/5 0 315 S 3 0 1 2 0 0 1 420
Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 1 3/5 0 1/5 0 315 S 3 0 1 2 0 0 1 420
Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 1 3/5 0 1/5 0 315 S 3 0 -0 1 -1 2 -3/5 0 -0 0 -1/5 1 -0 420 -315
Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 -4(0) 4 -4(1) 5 -4(3/5) 1 -4(0) 0 -4(1/5) 0 -4(0) 1500 -4(315) x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 0 13/5 1 -4/5 0 240 x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 -16/5 0 13/5 0 4095 S 1 0 0 13/5 1 -4/5 0 240 x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 -16/5 0 13/5 0 4095 S 1 0 0 13/5 1 -4/5 0 240 x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 -16/5 0 13/5 0 4095 S 1 0 0 13/5 1 -4/5 0 240 92.3 x 1 0 1 3/5 0 1/5 0 315 525 S 3 0 0 7/5 0 -1/5 1 105 75
Optimal Solution is :  x 1 = 270, x 2 = 75, Z= 4335 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 0 0 15/7 16/7 4335 S 1 0 0 0 1 -3/7 -13/7 45 x 1 0 1 0 0 2/7 -3/7 270 x 2 0 0 1 0 -1/7 5/7 75
Example Max. Z = 3x 1 +5x 2 +4x 3 Subject to constraints: 2x 1 +3x 2  <  8 2x 2 +5x 3  <  10 3x 1 +2x 2 +4x 3  <  15 x 1 , x 2 , x 3  >  0
Cont… Let S 1 , S 2 , S 3  be the three slack variables.  Modified form is: Z - 3x 1 -5x 2 -4x 3  =0 2x 1 +3x 2  +S 1 =  8 2x 2 +5x 3  +S 2 = 10 3x 1 +2x 2 +4x 3 +S 3 = 15 x 1 , x 2 , x 3 ,   S 1 ,   S 2 ,   S 3  >  0 Initial BFS is : x 1 = 0, x 2 = 0, x 3 =0, S 1 = 8,  S 2 = 10, S 3 = 15 and Z=0.
Cont… Therefore, x 2  is the entering variable and S 1  is the departing variable. Basic Variable Coefficients of:  Sol. Ratio Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 -3 -5 -4 0 0 0 0 S 1 0 2 3 0 1 0 0 8 8/3 S 2 0 0 2 5 0 1 0 10 5 S 3 0 3 2 4 0 0 1 15 15/2
Cont… Therefore, x 3  is the entering variable and S 2  is the departing variable. Basic Variable Coefficients of:  Sol. Ratio Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 1/3 0 -4 5/3 0 0 40/3 x 2 0 2/3 1 0 1/3 0 0 8/3 - S 2 0 -4/3 0 5 -2/3 1 0 14/3 14/15 S 3 0 5/3 0 4 -2/3 0 1 29/3 29/12
Cont… Therefore, x 1  is the entering variable and S 3  is the departing variable. Basic Variable Coefficients of:  Sol. Ratio Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 -11/15 0 0 17/15 4/5 0 256/15 x 2 0 2/3 1 0 1/3 0 0 8/3 4 x 3 0 -4/15 0 1 -2/15 1/5 0 14/15 - S 3 0 41/15 0 0 2/15 -4/5 1 89/15 89/41
Cont… Optimal Solution is :  x 1 = 89/41, x 2 = 50/41, x 3 =62/41, Z= 765/41 Basic Variable Coefficients of:  Sol. Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 0 0 0 45/41 24/41 11/41 765/41 x 2 0 0 1 0 15/41 8/41 -10/41 50/41 x 3 0 0 0 1 -6/41 5/41 4/41 62/41 x 1 0 1 0 0 -2/41 -12/41 15/41 89/41
Example Min.. Z = x 1  - 3x 2  + 2x 3 Subject to constraints: 3x 1  - x 2  + 3x 3   <   7 -2x 1  + 4x 2  <  12 -4x 1  + 3x 2  + 8x 3   <  10 x 1 , x 2 , x 3  >  0
Cont… Convert the problem into maximization problem Max.. Z’ = -x 1  + 3x 2  - 2x 3  where Z’= -Z Subject to constraints: 3x 1  - x 2  + 3x 3   <   7 -2x 1  + 4x 2  <  12 -4x 1  + 3x 2  + 8x 3   <  10 x 1 , x 2 , x 3  >  0
Cont… Let S 1 , S 2  and S 3  be three slack variables. Modified form is: Z’ + x 1  - 3x 2  + 2x 3  = 0 3x 1  - x 2  + 3x 3  +S 1  =   7 -2x 1  + 4x 2  + S 2  = 12 -4x 1  + 3x 2  + 8x 3  +S 3  =  10 x 1 , x 2 , x 3  >  0 Initial BFS is : x 1 = 0, x 2 = 0, x 3 =0, S 1 = 7, S 2 = 12, S 3  = 10  and Z=0.
Cont… Therefore, x 2  is the entering variable and S 2  is the departing variable. Basic Variable Coefficients of:  Sol. Ratio Z’ x 1 x 2 x 3 S 1 S 2 S 3 Z’ 1 1 -3 2 0 0 0 0 S 1 0 3 -1 3 1 0 0 7 - S 2 0 -2 4 0 0 1 0 12 3 S 3 0 -4 3 8 0 0 1 10 10/3
Cont… Therefore, x 1  is the entering variable and S 1  is the departing variable. Basic Variable Coefficients of:  Sol. Ratio Z’ x 1 x 2 x 3 S 1 S 2 S 3 Z’ 1 -1/2 0 2 0 3/4 0 9 S 1 0 5/2 0 3 1 1/4 0 10 4 x 2 0 -1/2 1 0 0 1/4 0 3 - S 3 0 -5/2 0 8 0 -3/4 1 1 -
Cont… ,[object Object],[object Object],Basic Variable Coefficients of:  Sol. Z’ x 1 x 2 x 3 S 1 S 2 S 3 Z’ 1 0 0 13/5 1/5 8/10 0 11 x 1 0 1 0 6/5 2/5 1/10 0 4 x 2 0 0 1 3/5 1/5 3/10 0 5 S 3 0 0 0 11 1 -1/2 1 11
Example Max.. Z = 3x 1  + 4x 2 Subject to constraints: x 1  - x 2  <   1 -x 1  + x 2  <  2 x 1 , x 2  >  0
Cont… Let S 1  and S 2  be two slack variables . Modified form is: Z -3x 1  - 4x 2  = 0 x 1  - x 2  +S 1  =   1 -x 1  + x 2  +S 2  = 2 x 1 , x 2 , S 1 , S 2  >  0 Initial BFS is : x 1 = 0, x 2 = 0, S 1 = 1, S 2 = 2 and Z=0.
Cont… Therefore, x 2  is the entering variable and S 2  is the departing variable. Basic Variable Coefficients of:  Sol. Ratio Z x 1 x 2 S 1 S 2 Z 1 -3 -4 0 0 0 S 1 0 1 -1 1 0 1 - S 2 0 -1 1 0 1 2 2
Cont… x 1  is the entering variable, but as in x 1  column every no. is less than equal to zero, ratio cannot be calculated. Therefore given problem is having a  unbounded solution . Basic Variable Coefficients of:  Sol. Ratio Z x 1 x 2 S 1 S 2 Z 1 -7 0 0 4 8 S 1 0 0 0 1 1 3 - x 2 0 -1 1 0 1 2 -

More Related Content

What's hot

Simplex Method.pptx
Simplex Method.pptxSimplex Method.pptx
Simplex Method.pptx
byuvashreeitITDept
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
rashi9
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
Divyansh Verma
 
3. linear programming senstivity analysis
3. linear programming senstivity analysis3. linear programming senstivity analysis
3. linear programming senstivity analysis
Hakeem-Ur- Rehman
 
Simplex Method Explained
Simplex Method ExplainedSimplex Method Explained
Simplex Method Explained
Atif Shahzad
 
Linear programming ppt
Linear programming pptLinear programming ppt
Linear programming ppt
Meenakshi Tripathi
 
Modified Distribution Method (MODI)
Modified Distribution Method (MODI)Modified Distribution Method (MODI)
Modified Distribution Method (MODI)
Cool Guy
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
Kiran Jadhav
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research
2013901097
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1irsa javed
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D
 
Simplex method (minimization)
Simplex method (minimization)Simplex method (minimization)
Simplex method (minimization)
Kamel Attar
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
Manas Lad
 
5. advance topics in lp
5. advance topics in lp5. advance topics in lp
5. advance topics in lp
Hakeem-Ur- Rehman
 
Module 3 lp-simplex
Module 3 lp-simplexModule 3 lp-simplex
Module 3 lp-simplex
raajeeradha
 
Lpp simplex method
Lpp simplex methodLpp simplex method
Lpp simplex method
Sneha Malhotra
 

What's hot (20)

Simplex Method.pptx
Simplex Method.pptxSimplex Method.pptx
Simplex Method.pptx
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 
graphical method
graphical method graphical method
graphical method
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
 
3. linear programming senstivity analysis
3. linear programming senstivity analysis3. linear programming senstivity analysis
3. linear programming senstivity analysis
 
Simplex Method Explained
Simplex Method ExplainedSimplex Method Explained
Simplex Method Explained
 
Linear programming ppt
Linear programming pptLinear programming ppt
Linear programming ppt
 
Modified Distribution Method (MODI)
Modified Distribution Method (MODI)Modified Distribution Method (MODI)
Modified Distribution Method (MODI)
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
 
Simplex method (minimization)
Simplex method (minimization)Simplex method (minimization)
Simplex method (minimization)
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 
5. advance topics in lp
5. advance topics in lp5. advance topics in lp
5. advance topics in lp
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Module 3 lp-simplex
Module 3 lp-simplexModule 3 lp-simplex
Module 3 lp-simplex
 
Lpp simplex method
Lpp simplex methodLpp simplex method
Lpp simplex method
 

Similar to Simplex method

simplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai university
shobhakedari59
 
Linear programming
Linear programmingLinear programming
Linear programming
sabin kafle
 
Dynamic equity price pdf
Dynamic equity price pdfDynamic equity price pdf
Dynamic equity price pdf
David Keck
 
OR presentation simplex.pptx
OR presentation simplex.pptxOR presentation simplex.pptx
OR presentation simplex.pptx
pranalpatilPranal
 
Algeba 1. 9.1 Solving equations review
Algeba 1. 9.1 Solving equations reviewAlgeba 1. 9.1 Solving equations review
Algeba 1. 9.1 Solving equations review
dmatkeson21
 
Algebra 1. 9.1 Solving equations review
Algebra 1.  9.1 Solving equations reviewAlgebra 1.  9.1 Solving equations review
Algebra 1. 9.1 Solving equations review
dmatkeson21
 
Metode simpleks dual
Metode simpleks dualMetode simpleks dual
Metode simpleks dual
UNIVERSITAS MUHAMMADIYAH BERAU
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
ABHISHEKDUTTA65838
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programmingchaitu87
 
Serpent sboxes
Serpent sboxesSerpent sboxes
Serpent sboxes
Abrar Ahmad
 
Control system
Control systemControl system
Control system
bhavin patel
 
Power divider, combiner and coupler.ppt
Power divider, combiner and coupler.pptPower divider, combiner and coupler.ppt
Power divider, combiner and coupler.ppt
DeqAhmed2
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
Er Ashish Bansode
 
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
aminbijal86
 
Isoparametric mapping
Isoparametric mappingIsoparametric mapping
Isoparametric mapping
Linh Tran
 
Duel simplex method_operations research .pptx
Duel simplex method_operations research .pptxDuel simplex method_operations research .pptx
Duel simplex method_operations research .pptx
Raja Manyam
 
Normal Distribution of data (Continous data)
Normal Distribution of data (Continous data)Normal Distribution of data (Continous data)
Normal Distribution of data (Continous data)
keyurgala
 
Fundamentals of AlgebraChu v. NguyenIntegral Exponents
Fundamentals of AlgebraChu v. NguyenIntegral ExponentsFundamentals of AlgebraChu v. NguyenIntegral Exponents
Fundamentals of AlgebraChu v. NguyenIntegral Exponents
DustiBuckner14
 
Tutorial 6 mth 3201
Tutorial 6 mth 3201Tutorial 6 mth 3201
Tutorial 6 mth 3201Drradz Maths
 

Similar to Simplex method (20)

simplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai university
 
Duality
DualityDuality
Duality
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Dynamic equity price pdf
Dynamic equity price pdfDynamic equity price pdf
Dynamic equity price pdf
 
OR presentation simplex.pptx
OR presentation simplex.pptxOR presentation simplex.pptx
OR presentation simplex.pptx
 
Algeba 1. 9.1 Solving equations review
Algeba 1. 9.1 Solving equations reviewAlgeba 1. 9.1 Solving equations review
Algeba 1. 9.1 Solving equations review
 
Algebra 1. 9.1 Solving equations review
Algebra 1.  9.1 Solving equations reviewAlgebra 1.  9.1 Solving equations review
Algebra 1. 9.1 Solving equations review
 
Metode simpleks dual
Metode simpleks dualMetode simpleks dual
Metode simpleks dual
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programming
 
Serpent sboxes
Serpent sboxesSerpent sboxes
Serpent sboxes
 
Control system
Control systemControl system
Control system
 
Power divider, combiner and coupler.ppt
Power divider, combiner and coupler.pptPower divider, combiner and coupler.ppt
Power divider, combiner and coupler.ppt
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
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
 
Isoparametric mapping
Isoparametric mappingIsoparametric mapping
Isoparametric mapping
 
Duel simplex method_operations research .pptx
Duel simplex method_operations research .pptxDuel simplex method_operations research .pptx
Duel simplex method_operations research .pptx
 
Normal Distribution of data (Continous data)
Normal Distribution of data (Continous data)Normal Distribution of data (Continous data)
Normal Distribution of data (Continous data)
 
Fundamentals of AlgebraChu v. NguyenIntegral Exponents
Fundamentals of AlgebraChu v. NguyenIntegral ExponentsFundamentals of AlgebraChu v. NguyenIntegral Exponents
Fundamentals of AlgebraChu v. NguyenIntegral Exponents
 
Tutorial 6 mth 3201
Tutorial 6 mth 3201Tutorial 6 mth 3201
Tutorial 6 mth 3201
 

Recently uploaded

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 

Recently uploaded (20)

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 

Simplex method

  • 1. Simplex Method By Dr. Eng. / Tamer Atteya Tanta Univ. – EGYPT Facebook link
  • 2. Example Max. Z = 13x 1 +11x 2 Subject to constraints: 4x 1 +5x 2 < 1500 5x 1 +3x 2 < 1575 x 1 +2x 2 < 420 x 1 , x 2 > 0 دالة الهدف القيود أو الشروط
  • 3. Rewrite objective function so it is equal to zero We then need to rewrite Z = 13x 1 +11x 2 as: Z -13x 1 -11x 2 =0
  • 4. Convert all the inequality constraints into equalities by the use of slack variables S 1 , S 2 , S 3 . 4x 1 +5x 2 + S 1 = 1500 5x 1 +3x 2 +S 2 = 1575 x 1 +2x 2 +S 3 = 420 x 1 , x 2 , S 1 , S 2 , S 3 > 0
  • 5. Z - 13x 1 -11x 2 = 0 Subject to constraints: 4x 1 +5x 2 + S 1 = 1500 5x 1 +3x 2 +S 2 = 1575 x 1 +2x 2 +S 3 = 420 Next, these equations are placed in a tableau Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z S 1 S 2 S 3 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 S 2 0 5 3 0 1 0 1575 S 3 0 1 2 0 0 1 420
  • 6. a) Choose the most negative number from Z-row. That variable ( x 1 ) is the entering variable . b) Calculate Ratio = (value-col.) / (entering -col.) c) Choose minimum +ve Ratio. That variable (S 2 ) is the departing variable . Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 S 2 0 5 3 0 1 0 1575 S 3 0 1 2 0 0 1 420
  • 7. a) Choose the most negative number from Z-row. That variable ( x 1 ) is the entering variable . b) Calculate Ratio = (value-col.) / (entering -col.) c) Choose minimum +ve Ratio. That variable (S 2 ) is the departing variable . Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 1500/4=375 S 2 0 5 3 0 1 0 1575 1575/5=315 S 3 0 1 2 0 0 1 420 420/1=420
  • 8. Make the pivot element equal to 1 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 5 3 0 1 0 1575 S 3 0 1 2 0 0 1 420
  • 9. Make the pivot element equal to 1 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 5/5 3/5 0 1/5 0 1575 / 5 S 3 0 1 2 0 0 1 420
  • 10. Make the pivot element equal to 1 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 1 3/5 0 1/5 0 315 S 3 0 1 2 0 0 1 420
  • 11. Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 1 3/5 0 1/5 0 315 S 3 0 1 2 0 0 1 420
  • 12. Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 4 5 1 0 0 1500 x 1 0 1 3/5 0 1/5 0 315 S 3 0 -0 1 -1 2 -3/5 0 -0 0 -1/5 1 -0 420 -315
  • 13. Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 -4(0) 4 -4(1) 5 -4(3/5) 1 -4(0) 0 -4(1/5) 0 -4(0) 1500 -4(315) x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
  • 14. Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 -13 -11 0 0 0 0 S 1 0 0 13/5 1 -4/5 0 240 x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
  • 15. Make the pivot column values into zeros Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 -16/5 0 13/5 0 4095 S 1 0 0 13/5 1 -4/5 0 240 x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
  • 16. Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 -16/5 0 13/5 0 4095 S 1 0 0 13/5 1 -4/5 0 240 x 1 0 1 3/5 0 1/5 0 315 S 3 0 0 7/5 0 -1/5 1 105
  • 17. Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 -16/5 0 13/5 0 4095 S 1 0 0 13/5 1 -4/5 0 240 92.3 x 1 0 1 3/5 0 1/5 0 315 525 S 3 0 0 7/5 0 -1/5 1 105 75
  • 18. Optimal Solution is : x 1 = 270, x 2 = 75, Z= 4335 Z x 1 x 2 S 1 S 2 S 3 Value Ratio Z 1 0 0 0 15/7 16/7 4335 S 1 0 0 0 1 -3/7 -13/7 45 x 1 0 1 0 0 2/7 -3/7 270 x 2 0 0 1 0 -1/7 5/7 75
  • 19. Example Max. Z = 3x 1 +5x 2 +4x 3 Subject to constraints: 2x 1 +3x 2 < 8 2x 2 +5x 3 < 10 3x 1 +2x 2 +4x 3 < 15 x 1 , x 2 , x 3 > 0
  • 20. Cont… Let S 1 , S 2 , S 3 be the three slack variables. Modified form is: Z - 3x 1 -5x 2 -4x 3 =0 2x 1 +3x 2 +S 1 = 8 2x 2 +5x 3 +S 2 = 10 3x 1 +2x 2 +4x 3 +S 3 = 15 x 1 , x 2 , x 3 , S 1 , S 2 , S 3 > 0 Initial BFS is : x 1 = 0, x 2 = 0, x 3 =0, S 1 = 8, S 2 = 10, S 3 = 15 and Z=0.
  • 21. Cont… Therefore, x 2 is the entering variable and S 1 is the departing variable. Basic Variable Coefficients of: Sol. Ratio Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 -3 -5 -4 0 0 0 0 S 1 0 2 3 0 1 0 0 8 8/3 S 2 0 0 2 5 0 1 0 10 5 S 3 0 3 2 4 0 0 1 15 15/2
  • 22. Cont… Therefore, x 3 is the entering variable and S 2 is the departing variable. Basic Variable Coefficients of: Sol. Ratio Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 1/3 0 -4 5/3 0 0 40/3 x 2 0 2/3 1 0 1/3 0 0 8/3 - S 2 0 -4/3 0 5 -2/3 1 0 14/3 14/15 S 3 0 5/3 0 4 -2/3 0 1 29/3 29/12
  • 23. Cont… Therefore, x 1 is the entering variable and S 3 is the departing variable. Basic Variable Coefficients of: Sol. Ratio Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 -11/15 0 0 17/15 4/5 0 256/15 x 2 0 2/3 1 0 1/3 0 0 8/3 4 x 3 0 -4/15 0 1 -2/15 1/5 0 14/15 - S 3 0 41/15 0 0 2/15 -4/5 1 89/15 89/41
  • 24. Cont… Optimal Solution is : x 1 = 89/41, x 2 = 50/41, x 3 =62/41, Z= 765/41 Basic Variable Coefficients of: Sol. Z x 1 x 2 x 3 S 1 S 2 S 3 Z 1 0 0 0 45/41 24/41 11/41 765/41 x 2 0 0 1 0 15/41 8/41 -10/41 50/41 x 3 0 0 0 1 -6/41 5/41 4/41 62/41 x 1 0 1 0 0 -2/41 -12/41 15/41 89/41
  • 25. Example Min.. Z = x 1 - 3x 2 + 2x 3 Subject to constraints: 3x 1 - x 2 + 3x 3 < 7 -2x 1 + 4x 2 < 12 -4x 1 + 3x 2 + 8x 3 < 10 x 1 , x 2 , x 3 > 0
  • 26. Cont… Convert the problem into maximization problem Max.. Z’ = -x 1 + 3x 2 - 2x 3 where Z’= -Z Subject to constraints: 3x 1 - x 2 + 3x 3 < 7 -2x 1 + 4x 2 < 12 -4x 1 + 3x 2 + 8x 3 < 10 x 1 , x 2 , x 3 > 0
  • 27. Cont… Let S 1 , S 2 and S 3 be three slack variables. Modified form is: Z’ + x 1 - 3x 2 + 2x 3 = 0 3x 1 - x 2 + 3x 3 +S 1 = 7 -2x 1 + 4x 2 + S 2 = 12 -4x 1 + 3x 2 + 8x 3 +S 3 = 10 x 1 , x 2 , x 3 > 0 Initial BFS is : x 1 = 0, x 2 = 0, x 3 =0, S 1 = 7, S 2 = 12, S 3 = 10 and Z=0.
  • 28. Cont… Therefore, x 2 is the entering variable and S 2 is the departing variable. Basic Variable Coefficients of: Sol. Ratio Z’ x 1 x 2 x 3 S 1 S 2 S 3 Z’ 1 1 -3 2 0 0 0 0 S 1 0 3 -1 3 1 0 0 7 - S 2 0 -2 4 0 0 1 0 12 3 S 3 0 -4 3 8 0 0 1 10 10/3
  • 29. Cont… Therefore, x 1 is the entering variable and S 1 is the departing variable. Basic Variable Coefficients of: Sol. Ratio Z’ x 1 x 2 x 3 S 1 S 2 S 3 Z’ 1 -1/2 0 2 0 3/4 0 9 S 1 0 5/2 0 3 1 1/4 0 10 4 x 2 0 -1/2 1 0 0 1/4 0 3 - S 3 0 -5/2 0 8 0 -3/4 1 1 -
  • 30.
  • 31. Example Max.. Z = 3x 1 + 4x 2 Subject to constraints: x 1 - x 2 < 1 -x 1 + x 2 < 2 x 1 , x 2 > 0
  • 32. Cont… Let S 1 and S 2 be two slack variables . Modified form is: Z -3x 1 - 4x 2 = 0 x 1 - x 2 +S 1 = 1 -x 1 + x 2 +S 2 = 2 x 1 , x 2 , S 1 , S 2 > 0 Initial BFS is : x 1 = 0, x 2 = 0, S 1 = 1, S 2 = 2 and Z=0.
  • 33. Cont… Therefore, x 2 is the entering variable and S 2 is the departing variable. Basic Variable Coefficients of: Sol. Ratio Z x 1 x 2 S 1 S 2 Z 1 -3 -4 0 0 0 S 1 0 1 -1 1 0 1 - S 2 0 -1 1 0 1 2 2
  • 34. Cont… x 1 is the entering variable, but as in x 1 column every no. is less than equal to zero, ratio cannot be calculated. Therefore given problem is having a unbounded solution . Basic Variable Coefficients of: Sol. Ratio Z x 1 x 2 S 1 S 2 Z 1 -7 0 0 4 8 S 1 0 0 0 1 1 3 - x 2 0 -1 1 0 1 2 -