SlideShare a Scribd company logo
1 of 15
4/5/2020 Dr. Abdulfatah Salem 2
For linear programming problems involving two variables, the graphical solution
method introduced before is convenient.
It is better to use solution methods that are adaptable to computers. One such method
is called the simplex method, The simplex method is an iterative procedure
developed by George Dantzig in 1946. It provides us with a systematic way of
examining the vertices of the feasible region to determine the optimal value of the
objective function.
more than two
variables
problems involving
a large number of
constraints
However, for
problems involving
4/5/2020 Dr. Abdulfatah Salem 3
Standard Minimization Form
• The objective function is to be
minimized.
• All the RHS involved in the
problem are nonnegative.
• All other linear constraints may
be written so that the
expression involving the
variables is greater than or equal
to a nonnegative constant.
Standard Maximization Form
• The objective function is to be
maximized.
• All the RHS involved in the
problem are nonnegative.
• All other linear constraints may
be written so that the expression
involving the variables is less
than or equal to a nonnegative
constant.
4/5/2020 Dr. Abdulfatah Salem 4
1) Be sure that the model is standard model
2) Be sure that the right hand side is +ve value
4X1 - 7X2 > -50 4X1 - 7X2 < 50
-8X1 - 6X2 ≤ -57 8X1 + 6X2 ≥ 57
3) Convert each inequality in the set of constraints to an equation as
follows:
• Slack Variable added to the LHS of a constraint contains ≤ separator
to convert it to an equal separator (=).
4X1 - 7X2 < 50 4X1 - 7X2 + S = 50
or
• Surplus Variable subtracted from the LHS and artificial variable
added to the LHS of a constraint contains ≥ to convert it to an equal
separator (=).
8X1 + 6X2 ≥ 57 8X1 + 6X2 - S + A = 57
Simplex Algorithm
4/5/2020 Dr. Abdulfatah Salem 5
4) Prepare the equations to move all the unknown terms to the left hand
side and the fixed values to the right hand side
Z = 4X1 + 9X2 + 3X3 Z - 4X1 - 9X2 - 3X3 = 0
8X1 + 6X2 = 57 + 4X3 8X1 + 6X2 - 4X3 = 57
X1 + 5X2 = 70 - X3 X1 + 5X2 + X3 = 70
5) Create the initial simplex tableau
Simplex Algorithm (cont.)
Z - 4X1 - 9X2 - 3X3 = 0
X1 + 5X2 + X3 + S1 = 70
5X2 + S2 = 81
Basic
Variables
X1 X2 X3 S1 S2 Z RHS
S1 1 5 1 1 0 0 70
S2 0 5 0 0 1 0 81
Z -4 -9 -3 0 0 1 0
4/5/2020 Dr. Abdulfatah Salem 6
6) Select the pivot column. ( The column with the “most negative value”
element in the last row. )
7) Select the pivot row. (The row with the smallest non-negative result
when the last element in the row is divided by the corresponding in
the pivot column)
Simplex Algorithm (cont.)
Basic
Variables
X1 X2 X3 S1 S2 Z RHS
S1 1 5 1 1 0 0 70
S2 0 5 0 0 1 0 81
Z -4 -9 -3 0 0 1 0
Basic
Variables
X1 X2 X3 S1 S2 Z RHS
X2 1 5 1 1 0 0 70
S2 0 5 0 0 1 0 81
Z -4 -9 -3 0 0 1 0
4/5/2020 Dr. Abdulfatah Salem 7
8) Use elementary row operations
to make all numbers in the
pivot column equal to 0 except
for the pivot number equal to 1.
9) Check the optimality (entries
in the bottom row are zero or
positive, If so, this the final
tableau (optimal solution) ,
If not, go back to step 5
10) The linear programming problem has been solved and maximum solution
obtained, which is given by the entry in the lower-right corner of the
tableau.
Simplex Algorithm (cont.)
Basic
Variables
X1 X2 X3 S1 S2 Z RHS
S1 # 1 # # # # #
S2 # 0 # # # # #
Z # 0 # # # # #
Basic
Variables
X1 X2 X3 S1 S2 Z RHS
S1 # 1 # # # # #
S2 # 0 # # # # #
Z # 0 # # # # #
4/5/2020 Dr. Abdulfatah Salem 8
= + Artificial (A)
Constraint separator Action
≥ + Slack (s)
≤ - Surplus (s) + Artificial (A)
Simplex Algorithm (cont.)
4/5/2020 Dr. Abdulfatah Salem 9
The national co. for assembling computer systems. assembles laptops and
printers, Each laptop takes four hours of labor from the hardware department and two hours of labor from
the software department. Each printer requires three hours of hardware and one hour of software. During
the current week, 240 hours of hardware time are available and 100 hours of software time. Each laptop
assembled gives a profit of $70 and each printer a profit of $50. How many printers and laptops should be
assembled in order to maximize the profit?
Example
Solution
ConstraintsprinterlaptopResource
24034hardware
10012software
5070Unit profit $
Max Z = 70x1 + 50x2
4x1 + 3x2 ≥ 240
2x1 + x2 ≥ 100
Z - 70x1 - 50x2 = 0
4x1 + 3x2 + s1 = 240
2x1 + x2 + s2 = 100
4/5/2020 Dr. Abdulfatah Salem 10
4x1 + 3x2 + s1 = 240
2x1 + x2 + s2 = 100
Z - 70x1 - 50x2 = 0
Basic
Variable
X1 X2 S1 S2 Z Rhs
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
Z -70 -50 0 0 1 0
4/5/2020 Dr. Abdulfatah Salem 11
Basic Variable X1 X2 S1 S2 Z Rhs
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
Z -70 -50 0 0 1 0
Basic Variable X1 X2 S1 S2 Z Rhs
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
Z -70 -50 0 0 1 0
Ratio
60
50
0
Basic Variable X1 X2 S1 S2 Z Rhs
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
Z -70 -50 0 0 1 0
X1 1 1/2 0 1/2 0 50 /2
X1
4
2
-70
4/5/2020 Dr. Abdulfatah Salem 12
Basic Variable X1 X2 S1 S2 Z Rhs
S1 4 3 1 0 0 240
X1 1 1/2 0 1/2 0 50
Z -70 -50 0 0 1 0
4
1
-70
❶
❷
1 1/2 0 1/2 0 50
4 2 0 2 0 200
1 ½ 0 1/2 0 50
-70 -35 0 -35 0 -3500
Basic Variable X1 X2 S1 S2 Z Rhs
S1
0 1 1 -2 0 40
X1
1 1/2 0 1/2 0 50
Z 0 -15 0 35 1 3500
❸
First
iteration
4/5/2020 Dr. Abdulfatah Salem 13
1
1/2
-15
❶
❷
Basic Variable X1 X2 S1 S2 Z Rhs
X2
0 1 1 -2 0 40
X1
1 1/2 0 1/2 0 50
Z 0 -15 0 35 1 3500
0 1 1 -2 0 40
0 1 1 -2 0 40
0 1/2 1/2 -1 0 20
0 -15 -15 30 0 -600
Basic Variable X1 X2 S1 S2 Z Rhs
X2 0 1 1 -2 0 40
X1 1 0 -1/2 3/2 0 30
Z 0 0 15 5 1 4100
❸
Second
iteration
4/5/2020 Dr. Abdulfatah Salem 14
BV X1 X2 S1 S2 Z Rhs
X2 0 1 1 -2 0 40
X1 1 0 -1/2 3/2 0 30
Z 0 0 15 5 1 4100
X1 = 30 No of laptops = 30
X2 = 40 No of printers = 40
Z = 4100 The optimal profit = $4100
Linear programming simplex method explained in detail

More Related Content

What's hot

ITFT - Assignment problem
ITFT - Assignment problemITFT - Assignment problem
ITFT - Assignment problemJasmineKaur29
 
Quantitative Analysis For Decision Making
Quantitative Analysis For Decision MakingQuantitative Analysis For Decision Making
Quantitative Analysis For Decision Makingaminsand
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solverHakeem-Ur- Rehman
 
Assgnment=hungarian method
Assgnment=hungarian methodAssgnment=hungarian method
Assgnment=hungarian methodJoseph Konnully
 
Assignment method
Assignment methodAssignment method
Assignment methodR A Shah
 
Assignment problem ppt
Assignment problem ppt Assignment problem ppt
Assignment problem ppt Babasab Patil
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationPankaj Kumar
 
Assignment problem
Assignment problemAssignment problem
Assignment problemAbu Bashar
 
operation research
operation researchoperation research
operation researchujal70
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj ThapaCA Niraj Thapa
 
1. functions and their applications
1. functions and their applications1. functions and their applications
1. functions and their applicationsSuraj More
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems vkabre
 
IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...
IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...
IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...IRJET Journal
 

What's hot (20)

ITFT - Assignment problem
ITFT - Assignment problemITFT - Assignment problem
ITFT - Assignment problem
 
Hungarian algorithm
Hungarian algorithmHungarian algorithm
Hungarian algorithm
 
Quantitative Analysis For Decision Making
Quantitative Analysis For Decision MakingQuantitative Analysis For Decision Making
Quantitative Analysis For Decision Making
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solver
 
Assgnment=hungarian method
Assgnment=hungarian methodAssgnment=hungarian method
Assgnment=hungarian method
 
Assignment method
Assignment methodAssignment method
Assignment method
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Assignment problem ppt
Assignment problem ppt Assignment problem ppt
Assignment problem ppt
 
Assignment model
Assignment modelAssignment model
Assignment model
 
6. assignment problems
6. assignment problems6. assignment problems
6. assignment problems
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentation
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
operation research
operation researchoperation research
operation research
 
Tp for b.tech. (mechanical)
Tp for b.tech. (mechanical)Tp for b.tech. (mechanical)
Tp for b.tech. (mechanical)
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj Thapa
 
1. functions and their applications
1. functions and their applications1. functions and their applications
1. functions and their applications
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems
 
IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...
IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...
IRJET- New Proposed Method for Solving Assignment Problem and Comparative Stu...
 

Similar to Linear programming simplex method explained in detail

Simplex Method Explained
Simplex Method ExplainedSimplex Method Explained
Simplex Method ExplainedAtif Shahzad
 
Linear programming.pptx
Linear programming.pptxLinear programming.pptx
Linear programming.pptxPrabin Pandit
 
simplex method for operation research .pdf
simplex method for operation research .pdfsimplex method for operation research .pdf
simplex method for operation research .pdfmohammedsaaed1
 
Chapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfChapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfTsegay Berhe
 
Optimization Techniques.pdf
Optimization Techniques.pdfOptimization Techniques.pdf
Optimization Techniques.pdfanandsimple
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear ProgrammingSukhpalRamanand
 
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...Hao Jin
 
Chapter 6-INTEGER PROGRAMMING note.pdf
Chapter 6-INTEGER PROGRAMMING  note.pdfChapter 6-INTEGER PROGRAMMING  note.pdf
Chapter 6-INTEGER PROGRAMMING note.pdfTsegay Berhe
 
Block Hybrid Method for the Solution of General Second Order Ordinary Differe...
Block Hybrid Method for the Solution of General Second Order Ordinary Differe...Block Hybrid Method for the Solution of General Second Order Ordinary Differe...
Block Hybrid Method for the Solution of General Second Order Ordinary Differe...QUESTJOURNAL
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 042013901097
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingManas Lad
 
graphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptxgraphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptxABHIJEETKUMAR992494
 

Similar to Linear programming simplex method explained in detail (20)

Simplex Method Explained
Simplex Method ExplainedSimplex Method Explained
Simplex Method Explained
 
Linear programming.pptx
Linear programming.pptxLinear programming.pptx
Linear programming.pptx
 
simplex method for operation research .pdf
simplex method for operation research .pdfsimplex method for operation research .pdf
simplex method for operation research .pdf
 
CH1.ppt
CH1.pptCH1.ppt
CH1.ppt
 
Chapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdfChapter 3.Simplex Method hand out last.pdf
Chapter 3.Simplex Method hand out last.pdf
 
4-The Simplex Method.ppt
4-The Simplex Method.ppt4-The Simplex Method.ppt
4-The Simplex Method.ppt
 
Optimization Techniques.pdf
Optimization Techniques.pdfOptimization Techniques.pdf
Optimization Techniques.pdf
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear Programming
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Chapter 6-INTEGER PROGRAMMING note.pdf
Chapter 6-INTEGER PROGRAMMING  note.pdfChapter 6-INTEGER PROGRAMMING  note.pdf
Chapter 6-INTEGER PROGRAMMING note.pdf
 
Block Hybrid Method for the Solution of General Second Order Ordinary Differe...
Block Hybrid Method for the Solution of General Second Order Ordinary Differe...Block Hybrid Method for the Solution of General Second Order Ordinary Differe...
Block Hybrid Method for the Solution of General Second Order Ordinary Differe...
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
MFCS2-Module1.pptx
MFCS2-Module1.pptxMFCS2-Module1.pptx
MFCS2-Module1.pptx
 
Graphical method
Graphical methodGraphical method
Graphical method
 
Operations Research - Simplex Method Tableau
Operations Research - Simplex Method TableauOperations Research - Simplex Method Tableau
Operations Research - Simplex Method Tableau
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 04
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
graphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptxgraphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptx
 

More from Dr. Abdulfatah Salem

More from Dr. Abdulfatah Salem (6)

Transportation problem
Transportation problemTransportation problem
Transportation problem
 
Linear programming graphical method
Linear programming graphical methodLinear programming graphical method
Linear programming graphical method
 
Forecasting
ForecastingForecasting
Forecasting
 
Competitiveness, strategy, productivity
Competitiveness, strategy, productivityCompetitiveness, strategy, productivity
Competitiveness, strategy, productivity
 
Location planning
Location planningLocation planning
Location planning
 
Capacity planning
Capacity planningCapacity planning
Capacity planning
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 

Linear programming simplex method explained in detail

  • 1.
  • 2. 4/5/2020 Dr. Abdulfatah Salem 2 For linear programming problems involving two variables, the graphical solution method introduced before is convenient. It is better to use solution methods that are adaptable to computers. One such method is called the simplex method, The simplex method is an iterative procedure developed by George Dantzig in 1946. It provides us with a systematic way of examining the vertices of the feasible region to determine the optimal value of the objective function. more than two variables problems involving a large number of constraints However, for problems involving
  • 3. 4/5/2020 Dr. Abdulfatah Salem 3 Standard Minimization Form • The objective function is to be minimized. • All the RHS involved in the problem are nonnegative. • All other linear constraints may be written so that the expression involving the variables is greater than or equal to a nonnegative constant. Standard Maximization Form • The objective function is to be maximized. • All the RHS involved in the problem are nonnegative. • All other linear constraints may be written so that the expression involving the variables is less than or equal to a nonnegative constant.
  • 4. 4/5/2020 Dr. Abdulfatah Salem 4 1) Be sure that the model is standard model 2) Be sure that the right hand side is +ve value 4X1 - 7X2 > -50 4X1 - 7X2 < 50 -8X1 - 6X2 ≤ -57 8X1 + 6X2 ≥ 57 3) Convert each inequality in the set of constraints to an equation as follows: • Slack Variable added to the LHS of a constraint contains ≤ separator to convert it to an equal separator (=). 4X1 - 7X2 < 50 4X1 - 7X2 + S = 50 or • Surplus Variable subtracted from the LHS and artificial variable added to the LHS of a constraint contains ≥ to convert it to an equal separator (=). 8X1 + 6X2 ≥ 57 8X1 + 6X2 - S + A = 57 Simplex Algorithm
  • 5. 4/5/2020 Dr. Abdulfatah Salem 5 4) Prepare the equations to move all the unknown terms to the left hand side and the fixed values to the right hand side Z = 4X1 + 9X2 + 3X3 Z - 4X1 - 9X2 - 3X3 = 0 8X1 + 6X2 = 57 + 4X3 8X1 + 6X2 - 4X3 = 57 X1 + 5X2 = 70 - X3 X1 + 5X2 + X3 = 70 5) Create the initial simplex tableau Simplex Algorithm (cont.) Z - 4X1 - 9X2 - 3X3 = 0 X1 + 5X2 + X3 + S1 = 70 5X2 + S2 = 81 Basic Variables X1 X2 X3 S1 S2 Z RHS S1 1 5 1 1 0 0 70 S2 0 5 0 0 1 0 81 Z -4 -9 -3 0 0 1 0
  • 6. 4/5/2020 Dr. Abdulfatah Salem 6 6) Select the pivot column. ( The column with the “most negative value” element in the last row. ) 7) Select the pivot row. (The row with the smallest non-negative result when the last element in the row is divided by the corresponding in the pivot column) Simplex Algorithm (cont.) Basic Variables X1 X2 X3 S1 S2 Z RHS S1 1 5 1 1 0 0 70 S2 0 5 0 0 1 0 81 Z -4 -9 -3 0 0 1 0 Basic Variables X1 X2 X3 S1 S2 Z RHS X2 1 5 1 1 0 0 70 S2 0 5 0 0 1 0 81 Z -4 -9 -3 0 0 1 0
  • 7. 4/5/2020 Dr. Abdulfatah Salem 7 8) Use elementary row operations to make all numbers in the pivot column equal to 0 except for the pivot number equal to 1. 9) Check the optimality (entries in the bottom row are zero or positive, If so, this the final tableau (optimal solution) , If not, go back to step 5 10) The linear programming problem has been solved and maximum solution obtained, which is given by the entry in the lower-right corner of the tableau. Simplex Algorithm (cont.) Basic Variables X1 X2 X3 S1 S2 Z RHS S1 # 1 # # # # # S2 # 0 # # # # # Z # 0 # # # # # Basic Variables X1 X2 X3 S1 S2 Z RHS S1 # 1 # # # # # S2 # 0 # # # # # Z # 0 # # # # #
  • 8. 4/5/2020 Dr. Abdulfatah Salem 8 = + Artificial (A) Constraint separator Action ≥ + Slack (s) ≤ - Surplus (s) + Artificial (A) Simplex Algorithm (cont.)
  • 9. 4/5/2020 Dr. Abdulfatah Salem 9 The national co. for assembling computer systems. assembles laptops and printers, Each laptop takes four hours of labor from the hardware department and two hours of labor from the software department. Each printer requires three hours of hardware and one hour of software. During the current week, 240 hours of hardware time are available and 100 hours of software time. Each laptop assembled gives a profit of $70 and each printer a profit of $50. How many printers and laptops should be assembled in order to maximize the profit? Example Solution ConstraintsprinterlaptopResource 24034hardware 10012software 5070Unit profit $ Max Z = 70x1 + 50x2 4x1 + 3x2 ≥ 240 2x1 + x2 ≥ 100 Z - 70x1 - 50x2 = 0 4x1 + 3x2 + s1 = 240 2x1 + x2 + s2 = 100
  • 10. 4/5/2020 Dr. Abdulfatah Salem 10 4x1 + 3x2 + s1 = 240 2x1 + x2 + s2 = 100 Z - 70x1 - 50x2 = 0 Basic Variable X1 X2 S1 S2 Z Rhs S1 4 3 1 0 0 240 S2 2 1 0 1 0 100 Z -70 -50 0 0 1 0
  • 11. 4/5/2020 Dr. Abdulfatah Salem 11 Basic Variable X1 X2 S1 S2 Z Rhs S1 4 3 1 0 0 240 S2 2 1 0 1 0 100 Z -70 -50 0 0 1 0 Basic Variable X1 X2 S1 S2 Z Rhs S1 4 3 1 0 0 240 S2 2 1 0 1 0 100 Z -70 -50 0 0 1 0 Ratio 60 50 0 Basic Variable X1 X2 S1 S2 Z Rhs S1 4 3 1 0 0 240 S2 2 1 0 1 0 100 Z -70 -50 0 0 1 0 X1 1 1/2 0 1/2 0 50 /2 X1 4 2 -70
  • 12. 4/5/2020 Dr. Abdulfatah Salem 12 Basic Variable X1 X2 S1 S2 Z Rhs S1 4 3 1 0 0 240 X1 1 1/2 0 1/2 0 50 Z -70 -50 0 0 1 0 4 1 -70 ❶ ❷ 1 1/2 0 1/2 0 50 4 2 0 2 0 200 1 ½ 0 1/2 0 50 -70 -35 0 -35 0 -3500 Basic Variable X1 X2 S1 S2 Z Rhs S1 0 1 1 -2 0 40 X1 1 1/2 0 1/2 0 50 Z 0 -15 0 35 1 3500 ❸ First iteration
  • 13. 4/5/2020 Dr. Abdulfatah Salem 13 1 1/2 -15 ❶ ❷ Basic Variable X1 X2 S1 S2 Z Rhs X2 0 1 1 -2 0 40 X1 1 1/2 0 1/2 0 50 Z 0 -15 0 35 1 3500 0 1 1 -2 0 40 0 1 1 -2 0 40 0 1/2 1/2 -1 0 20 0 -15 -15 30 0 -600 Basic Variable X1 X2 S1 S2 Z Rhs X2 0 1 1 -2 0 40 X1 1 0 -1/2 3/2 0 30 Z 0 0 15 5 1 4100 ❸ Second iteration
  • 14. 4/5/2020 Dr. Abdulfatah Salem 14 BV X1 X2 S1 S2 Z Rhs X2 0 1 1 -2 0 40 X1 1 0 -1/2 3/2 0 30 Z 0 0 15 5 1 4100 X1 = 30 No of laptops = 30 X2 = 40 No of printers = 40 Z = 4100 The optimal profit = $4100

Editor's Notes

  1. In the last two lectures we discussed about the graphical method for solving linear programming problems depending on graphical representation of the constraints to form a feasible area and testing the values of objective function at each corner of the area. Although the graphical method is an invaluable aid to understand the properties of linear programming models, it provides very little help in handling practical problems. For linear programming problems the graphical solution method is convenient when the problem involving two variables and a few number of constraints. In real-world most applications have more than two variables and many constraints, which is too complex for graphical solution , it is better to use a new method that is adaptable to the real-world applications. Many different methods have been proposed to solve linear programming problems. One such method is called the Dantzig Simplex method, in honor of George Dantzig, the mathematician who developed the approach in 1946. The simplex method is an iterative systematic process based on algebraically examining the vertices or what we call corners of the polygon representing the feasible solutions to determine the optimal value of the objective function. Simplex Method is applicable to any problem that can be formulated in terms of linear objective function, subject to a set of linear constraints. The Simplex algorithm is an iterative procedure for solving LP model in a finite number of steps. It consists of  Having a trial basic feasible solution to constraint-equations then testing whether it is an optimal solution or not, If not an improvement to the trial by a set of mathematical rules and repeating the process till an optimal solution is obtained.
  2. The main function in a LP problem is that you try to maximize something like profit or to minimize something like cost, waste, loss or risks for example then you organize your other mathematical relationship even equations or inequations which have variables who affect this. The first step in using the simplex method is to classify the LP model to two types, maximization model or minimization model. The simplex method in its simple form is called the simple algorithm, that algorithm require having the LP model in a standard Form. So, you have to formulate the model to either standard maximization model or standard minimization model. The standard maximization model require: The objective function is to be maximized, that mean the objective function start with the word “Maximize Z =“ for example. All the RHS involved in the problem are nonnegative, that mean all the right hand side are positive values. All other linear constraints may be written so that the expression involving the variables is less than or equal to a nonnegative constant. On the other hand, The standard minimization model require: The objective function is to be minimized, that mean the objective function start with the word “Minimize Z =“ for example. All the RHS involved in the problem are nonnegative, that mean all the right hand side are positive values. All other linear constraints may be written so that the expression involving the variables is greater than or equal to a nonnegative constant.
  3. After preparing the model by converting it into standard model and become ready to solve using the simple algorithm, follow the following steps: Be sure that the model is standard model by applying the rules of the standard forms explained in details before. Be sure that the right hand side is +ve value Convert each inequality in the set of constraints to an equation as follows: Slack Variable added to the LHS of a constraint contains ≤ separator to convert it to an equal separator (=). or Surplus Variable subtracted from the LHS of a constraint contains ≥ to convert it to an equal separator (=). A slack variable represents unused resources A slack variable contributes nothing to the objective function value. A surplus variable represents an excess above a constraint requirement level. Surplus variables contribute nothing to the calculated value of the objective function.
  4. Write the objective function as an equation in the form "left hand side"= 0 where terms involving variables are negative Prepare the equations to move all the unknown terms to the left hand side and the fixed values to the right hand side Create the initial simplex tableau consisting of all the coefficients of the decision variables, slack variables, surplus variables and artificial variables added in the 3rd step. Each variable assign its separate column. the 1st. Column assigned to the basic variables while the last column assigned to the LHS values. each constraint assign a separate row while the revised objective function assign the last row.
  5. Select the pivot column. ( The column with the “most negative value” element in the last row. ) Select the pivot row. (The row with the smallest non-negative ratio resulting from dividing the value of when the last element in the row “under the RHS column” by the corresponding value under the pivot column)
  6. Use elementary row operations to make all numbers in the pivot column equal to 0 except for the pivot number equal to 1. Check the optimality case (entries in the bottom row are non-negative values, If so, this the final tableau (optimal solution) , If not, go back to step 6 The linear programming problem has been solved and maximum solution obtained, which is given by the entry in the lower-right corner of the tableau.