SlideShare a Scribd company logo
Simplex Method
We use an algebraic method called the simplex method, which
was developed by George B. DANTZIG in 1947 to solve the
problems contains more than two decision variables.
Radha.R, Assistant Professor(Sr.), VIT Chennai
Slack Variables
• A mathematical representation of surplus resources.
• In real life problems, it’s unlikely that all resources
will be used completely, so there usually are unused
resources.
• Slack variables represent the unused resources
between the left-hand side and right-hand side of
each inequality.
Basic and Nonbasic Variables
Basic variables are selected arbitrarily with the restriction that
there be as many basic variables as there are equations. The
remaining variables are non-basic variables.
This system has two equations, we can select any two of the
four variables as basic variables. The remaining two variables
are then non-basic variables. A solution found by setting the
two non-basic variables equal to 0 and solving for the two
basic variables is a basic solution. If a basic solution has no
negative values, it is a basic feasible solution.
1 2 1
1 2 2
2 32
3 4 84
x x s
x x s
  
  
Simplex Method
• Write the maximization problem in a standard form by
transforming all the constraints to equality by introducing
slack, surplus, and artificial variables.
• Draw the initial simplex table
Step1
• Find the PIVOT COLUMN by identifying the most negative
number in the bottom row of table
• Find the PIVOT ROW from the minimum ratio obtained by
dividing RHS by the corresponding numbers in the pivot
column and set that number in the corresponding row of
smallest ratio is the pivot element.
Step2
• Convert the Pivot element in to ‘1’ and convert other
elements in the corresponding column to ‘0’ by suitable
row operations.
• Do the iterations until all the elements in the last row
becomes ‘0’ or positive values.
• Optimal Solution Can be obtained.
Step3
Simplex Table
Basic
variables
X1 … Xn S1 …... Sn Z RHS Ratio
Coefficient of the
constraints
Objective function
coefficient
In different signs
EXAMPLE : Furniture Company
The furniture Company produces tables and chairs.
Each table takes four hours of labor from the
carpentry department and two hours of labor from
the finishing department. Each chair requires three
hours of carpentry and one hour of finishing. During
the current week, 240 hours of carpentry time are
available and 100 hours of finishing time. Each table
produced gives a profit of $70 and each chair a profit
of $50. How many chairs and tables should be made
in order to maximize the profit P?
Resource Table s ( ) Chairs ( ) Constraints
Carpentry (hr) 4 3 240
Finishing (hr) 2 1 100
Unit Profit $70 $50
1x 2x
Objective Function
Carpentry Constraint
Finishing Constraint
Non-negativity conditions
1 270 50P x x 
1 24 3 240x x 
1 22 1 100x x 
1 2, 0x x 
Table
The first step of the simplex method requires that each inequality
be converted into an equation. ”less than or equal to”
inequalities are converted to equations by including slack
variables.
Suppose carpentry hours and finishing hours remain unused
in a week. The constraints become;
or
As unused hours result in no profit, the slack variables can be
included in the objective function with zero coefficients:
1 2 1
1 2 2
4 3 240
2 100
x x s
x x s
  
  
1s 2s
1 2 1 2
1 2 1 2
4 3 0 240
2 0 100
x x s s
x x s s
   
   
1 2 1 2
1 2 1 2
70 50 0 0
70 50 0 0 0
P x x s s
P x x s s
   
    
Step -1
1 2 1 2
1 2 1 2
1 2 1 2
4 3 0 240
2 0 100
70 50 0 0 0
x x s s
x x s s
P x x s s
   
   
    
Basic
Variables
x1 x2 S1 S2 P
Right
Hand
Side
4 3 1 0 0 240
2 1 0 1 0 100
-70 -50 0 0 1 0
The tableau represents the initial solution;
The slack variables S1 and S2 form the initial solution mix. The initial
solution assumes that all avaliable hours are unused. i.e. The slack variables
take the largest possible values.
1 2 1 20, 0, 240, 100, 0x x s s P    
STEP 2
STEP 2
Select the pivot column (determine which variable to enter into
the solution mix). Choose the column with the “most negative”
element in the objective function row.
Basic
Variables
x1 x2 S1 S2 P RHS
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
P -70 -50 0 0 1 0
Pivot column
Select the pivot row (determine which variable to replace in the solution
mix). Divide the last element in each row (RHS) by the corresponding
element in the pivot column. The pivot row is the row with the smallest
non-negative result.
Basic
Variables
x1 x2 S1 S2 P
Right
hand
side
4 3 1 0 0 240
2 1 0 1 0 100
-70 -50 0 0 1 0
240/4 60
100/2 50
Pivot column
Pivot row
Enter
Pivot number
Should be replaced by x1 in the solution mix. 60 tables can be made with
240 unused carpentry hours but only 50 tables can be made with 100
finishing hours. Therefore we decide to make 50 tables.
Now calculate new values for the pivot row. Divide every number in the
row by the pivot number.
Basic
Variables
x1 x2 S1 S2 P
Right
hand
side
4 3 1 0 0 240
1 1/2 0 1/2 0 50
-70 -50 0 0 1 0
2
2
R
Basic
Variables
x1 x2 S1 S2 P
Right
hand
side
0 1 1 -2 0 40
1 1/2 0 1/2 0 50
0 -15 0 35 1 3500
2 14.R R 
2 370.R R
Use row operations to make all numbers in the pivot column equal to 0 except
for the pivot number which remains as 1.
Now repeat the steps until there are no negative numbers in the last row.
Select the new pivot column. x2 should enter into the solution mix.
Select the new pivot row. S1 should be replaced by x2 in the solution mix.
Basic
Variables
x1 x2 S1 S2 P
Right
hand
side
0 1 1 -2 0 40
1 1/2 0 1/2 0 50
0 -15 0 35 1 3500
40/1 40
50/0,5 100
New pivot
column
New pivot row
Basic
Variables
x1 x2 S1 S2 P
Right
hand
side
0 1 1 -2 0 40
1 0 -1/2 3/2 0 30
0 0 15 5 1 4100
Calculate new values for the pivot row. As the pivot number is
already 1, there is no need to calculate new values for the pivot
row.
Use row operations to make all numbers in the pivot column equal
to except for the pivot number.
1 2
1
.
2
R R 
1 315.R R
As the last row contains no negative numbers, this solution
gives the maximum value of P.
Solution:
This simplex tableau represents the optimal solution to the LP
problem and is interpreted as:
and profit or P=$4100
The optimal solution (maximum profit to be made) is 30 tables
and 40 chairs for a profit of $4100.
1 2 1 230, 40, 0, 0x x s s   

More Related Content

What's hot

Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copyKiran Jadhav
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game TheoryPurnima Pandit
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)Kamel Attar
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex MethodDivyansh Verma
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,Dronak Sahu
 
Integer Programming, Goal Programming, and Nonlinear Programming
Integer Programming, Goal Programming, and Nonlinear ProgrammingInteger Programming, Goal Programming, and Nonlinear Programming
Integer Programming, Goal Programming, and Nonlinear ProgrammingSalah A. Skaik - MBA-PMP®
 
Simplex method
Simplex methodSimplex method
Simplex methodtatteya
 
Simplex Method Explained
Simplex Method ExplainedSimplex Method Explained
Simplex Method ExplainedAtif Shahzad
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programmingjyothimonc
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation CaseJoseph Konnully
 
Transportation problem
Transportation problemTransportation problem
Transportation problemShubhagata Roy
 

What's hot (20)

Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
 
Operations Research - The Big M Method
Operations Research - The Big M MethodOperations Research - The Big M Method
Operations Research - The Big M Method
 
Operations Research - The Dual Simplex Method
Operations Research - The Dual Simplex MethodOperations Research - The Dual Simplex Method
Operations Research - The Dual Simplex Method
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Integer Programming, Goal Programming, and Nonlinear Programming
Integer Programming, Goal Programming, and Nonlinear ProgrammingInteger Programming, Goal Programming, and Nonlinear Programming
Integer Programming, Goal Programming, and Nonlinear Programming
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Linear programming ppt
Linear programming pptLinear programming ppt
Linear programming ppt
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Simplex Method Explained
Simplex Method ExplainedSimplex Method Explained
Simplex Method Explained
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation Case
 
Transportation problem
Transportation problemTransportation problem
Transportation problem
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
 
Simplex method
Simplex method Simplex method
Simplex method
 

Similar to Module 3 lp-simplex

simplex method for operation research .pdf
simplex method for operation research .pdfsimplex method for operation research .pdf
simplex method for operation research .pdfmohammedsaaed1
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variableDevyaneeDevyanee2007
 
Simplex part 2 of 4
Simplex part 2 of 4Simplex part 2 of 4
Simplex part 2 of 4Ed Dansereau
 
performance management and Resource optimization part-2.pptx
performance management and Resource optimization part-2.pptxperformance management and Resource optimization part-2.pptx
performance management and Resource optimization part-2.pptxtefera21
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxTista3
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear ProgrammingSukhpalRamanand
 
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
 
Course Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdfCourse Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdfMdJubayerFaisalEmon
 
Or graphical method, simplex method
Or graphical method, simplex methodOr graphical method, simplex method
Or graphical method, simplex methodnagathangaraj
 

Similar to Module 3 lp-simplex (20)

simplex method for operation research .pdf
simplex method for operation research .pdfsimplex method for operation research .pdf
simplex method for operation research .pdf
 
4-The Simplex Method.ppt
4-The Simplex Method.ppt4-The Simplex Method.ppt
4-The Simplex Method.ppt
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Linear programming
Linear programmingLinear programming
Linear programming
 
5163147.ppt
5163147.ppt5163147.ppt
5163147.ppt
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
 
Simplex part 2 of 4
Simplex part 2 of 4Simplex part 2 of 4
Simplex part 2 of 4
 
performance management and Resource optimization part-2.pptx
performance management and Resource optimization part-2.pptxperformance management and Resource optimization part-2.pptx
performance management and Resource optimization part-2.pptx
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptx
 
Slide_Chapter1_st.pdf
Slide_Chapter1_st.pdfSlide_Chapter1_st.pdf
Slide_Chapter1_st.pdf
 
Xx
XxXx
Xx
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear Programming
 
simplex method
simplex methodsimplex method
simplex method
 
Operation Research
Operation ResearchOperation Research
Operation Research
 
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
 
Operators
OperatorsOperators
Operators
 
Operation reasearch
Operation reasearchOperation reasearch
Operation reasearch
 
Alu1
Alu1Alu1
Alu1
 
Course Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdfCourse Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdf
 
Or graphical method, simplex method
Or graphical method, simplex methodOr graphical method, simplex method
Or graphical method, simplex method
 

More from raajeeradha

MODI Method- Optimization of transportation problem
MODI Method- Optimization of transportation problemMODI Method- Optimization of transportation problem
MODI Method- Optimization of transportation problemraajeeradha
 
Resistance welding
Resistance weldingResistance welding
Resistance weldingraajeeradha
 
Advanced welding
Advanced weldingAdvanced welding
Advanced weldingraajeeradha
 
Theory of metal cutting
Theory of metal cuttingTheory of metal cutting
Theory of metal cuttingraajeeradha
 

More from raajeeradha (6)

Milling
MillingMilling
Milling
 
Thread cutting
Thread cuttingThread cutting
Thread cutting
 
MODI Method- Optimization of transportation problem
MODI Method- Optimization of transportation problemMODI Method- Optimization of transportation problem
MODI Method- Optimization of transportation problem
 
Resistance welding
Resistance weldingResistance welding
Resistance welding
 
Advanced welding
Advanced weldingAdvanced welding
Advanced welding
 
Theory of metal cutting
Theory of metal cuttingTheory of metal cutting
Theory of metal cutting
 

Recently uploaded

Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdfKamal Acharya
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdfKamal Acharya
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edgePaco Orozco
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxMd. Shahidul Islam Prodhan
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industriesMuhammadTufail242431
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdfKamal Acharya
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdfKamal Acharya
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxViniHema
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdfKamal Acharya
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwoodseandesed
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdfAhmedHussein950959
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectRased Khan
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsAtif Razi
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxwendy cai
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234AafreenAbuthahir2
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxCenterEnamel
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 

Recently uploaded (20)

Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 

Module 3 lp-simplex

  • 1. Simplex Method We use an algebraic method called the simplex method, which was developed by George B. DANTZIG in 1947 to solve the problems contains more than two decision variables. Radha.R, Assistant Professor(Sr.), VIT Chennai
  • 2. Slack Variables • A mathematical representation of surplus resources. • In real life problems, it’s unlikely that all resources will be used completely, so there usually are unused resources. • Slack variables represent the unused resources between the left-hand side and right-hand side of each inequality.
  • 3. Basic and Nonbasic Variables Basic variables are selected arbitrarily with the restriction that there be as many basic variables as there are equations. The remaining variables are non-basic variables. This system has two equations, we can select any two of the four variables as basic variables. The remaining two variables are then non-basic variables. A solution found by setting the two non-basic variables equal to 0 and solving for the two basic variables is a basic solution. If a basic solution has no negative values, it is a basic feasible solution. 1 2 1 1 2 2 2 32 3 4 84 x x s x x s      
  • 4. Simplex Method • Write the maximization problem in a standard form by transforming all the constraints to equality by introducing slack, surplus, and artificial variables. • Draw the initial simplex table Step1 • Find the PIVOT COLUMN by identifying the most negative number in the bottom row of table • Find the PIVOT ROW from the minimum ratio obtained by dividing RHS by the corresponding numbers in the pivot column and set that number in the corresponding row of smallest ratio is the pivot element. Step2 • Convert the Pivot element in to ‘1’ and convert other elements in the corresponding column to ‘0’ by suitable row operations. • Do the iterations until all the elements in the last row becomes ‘0’ or positive values. • Optimal Solution Can be obtained. Step3
  • 5. Simplex Table Basic variables X1 … Xn S1 …... Sn Z RHS Ratio Coefficient of the constraints Objective function coefficient In different signs
  • 6. EXAMPLE : Furniture Company The furniture Company produces tables and chairs. Each table takes four hours of labor from the carpentry department and two hours of labor from the finishing department. Each chair requires three hours of carpentry and one hour of finishing. During the current week, 240 hours of carpentry time are available and 100 hours of finishing time. Each table produced gives a profit of $70 and each chair a profit of $50. How many chairs and tables should be made in order to maximize the profit P?
  • 7. Resource Table s ( ) Chairs ( ) Constraints Carpentry (hr) 4 3 240 Finishing (hr) 2 1 100 Unit Profit $70 $50 1x 2x Objective Function Carpentry Constraint Finishing Constraint Non-negativity conditions 1 270 50P x x  1 24 3 240x x  1 22 1 100x x  1 2, 0x x  Table
  • 8. The first step of the simplex method requires that each inequality be converted into an equation. ”less than or equal to” inequalities are converted to equations by including slack variables. Suppose carpentry hours and finishing hours remain unused in a week. The constraints become; or As unused hours result in no profit, the slack variables can be included in the objective function with zero coefficients: 1 2 1 1 2 2 4 3 240 2 100 x x s x x s       1s 2s 1 2 1 2 1 2 1 2 4 3 0 240 2 0 100 x x s s x x s s         1 2 1 2 1 2 1 2 70 50 0 0 70 50 0 0 0 P x x s s P x x s s         
  • 9. Step -1 1 2 1 2 1 2 1 2 1 2 1 2 4 3 0 240 2 0 100 70 50 0 0 0 x x s s x x s s P x x s s             
  • 10. Basic Variables x1 x2 S1 S2 P Right Hand Side 4 3 1 0 0 240 2 1 0 1 0 100 -70 -50 0 0 1 0 The tableau represents the initial solution; The slack variables S1 and S2 form the initial solution mix. The initial solution assumes that all avaliable hours are unused. i.e. The slack variables take the largest possible values. 1 2 1 20, 0, 240, 100, 0x x s s P     STEP 2
  • 11. STEP 2 Select the pivot column (determine which variable to enter into the solution mix). Choose the column with the “most negative” element in the objective function row. Basic Variables x1 x2 S1 S2 P RHS S1 4 3 1 0 0 240 S2 2 1 0 1 0 100 P -70 -50 0 0 1 0 Pivot column
  • 12. Select the pivot row (determine which variable to replace in the solution mix). Divide the last element in each row (RHS) by the corresponding element in the pivot column. The pivot row is the row with the smallest non-negative result. Basic Variables x1 x2 S1 S2 P Right hand side 4 3 1 0 0 240 2 1 0 1 0 100 -70 -50 0 0 1 0 240/4 60 100/2 50 Pivot column Pivot row Enter Pivot number
  • 13. Should be replaced by x1 in the solution mix. 60 tables can be made with 240 unused carpentry hours but only 50 tables can be made with 100 finishing hours. Therefore we decide to make 50 tables. Now calculate new values for the pivot row. Divide every number in the row by the pivot number. Basic Variables x1 x2 S1 S2 P Right hand side 4 3 1 0 0 240 1 1/2 0 1/2 0 50 -70 -50 0 0 1 0 2 2 R
  • 14. Basic Variables x1 x2 S1 S2 P Right hand side 0 1 1 -2 0 40 1 1/2 0 1/2 0 50 0 -15 0 35 1 3500 2 14.R R  2 370.R R Use row operations to make all numbers in the pivot column equal to 0 except for the pivot number which remains as 1.
  • 15. Now repeat the steps until there are no negative numbers in the last row. Select the new pivot column. x2 should enter into the solution mix. Select the new pivot row. S1 should be replaced by x2 in the solution mix. Basic Variables x1 x2 S1 S2 P Right hand side 0 1 1 -2 0 40 1 1/2 0 1/2 0 50 0 -15 0 35 1 3500 40/1 40 50/0,5 100 New pivot column New pivot row
  • 16. Basic Variables x1 x2 S1 S2 P Right hand side 0 1 1 -2 0 40 1 0 -1/2 3/2 0 30 0 0 15 5 1 4100 Calculate new values for the pivot row. As the pivot number is already 1, there is no need to calculate new values for the pivot row. Use row operations to make all numbers in the pivot column equal to except for the pivot number. 1 2 1 . 2 R R  1 315.R R As the last row contains no negative numbers, this solution gives the maximum value of P.
  • 17. Solution: This simplex tableau represents the optimal solution to the LP problem and is interpreted as: and profit or P=$4100 The optimal solution (maximum profit to be made) is 30 tables and 40 chairs for a profit of $4100. 1 2 1 230, 40, 0, 0x x s s   