SlideShare a Scribd company logo
1 of 12
Download to read offline
Combinatorial Optimization
CS-724
Lec-7:
Date: 03-03-2021
Dr. Parikshit Saikia
Assistant Professor
Department of Computer Science and Engineering
NIT Hamirpur (HP)
India
Simplex Algorithm
 [1947]. George B. Dantzig developed a technique to solve linear
programs----known as Simplex Algorithm
 The simplex method is an iterative method that generates a sequence
of basic feasible solutions (corresponding to different bases) and
eventually stops when it has found an optimal basic feasible solution.
 The given LP is in the Standard form.
𝑚𝑖𝑛𝑖𝑚𝑖𝑧𝑒 (𝑜𝑟 𝑚𝑎𝑥𝑖𝑚𝑖𝑧𝑒) 𝑐′𝑥
𝐴𝑥 = 𝑏
𝑥 ≥ 0
 𝑏 ≥ 0
 There exists a collection 𝑩 of m variables called a basis such that
 the submatrix 𝑨𝑩 of 𝑨 consisting of the columns of 𝑨 corresponding to the variables in
𝑩 is the 𝑚 × 𝑚 identity matrix and
 the cost coefficients corresponding to the variables in 𝑩 are all equal to 𝟎.
Simplex Algorithm: Tabular Method
Solve the following LP using Tabular Method
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 6𝑥1 + 5𝑥2
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑥1 + 𝑥2 ≤ 5
3𝑥1 + 2𝑥2 ≤ 12
𝑥1, 𝑥2 ≥ 0
Simplex Algorithm: Tabular Method
The standard form of the given LP is
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 6𝑥1 + 5𝑥2 + 0. 𝑥3 + 0. 𝑥4
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑥1 + 𝑥2 + 𝑥3 = 5
3𝑥1 + 2𝑥2 + 𝑥4 = 12
𝑥1, 𝑥2, 𝑥3, 𝑥4 ≥ 0
𝐻𝑒𝑟𝑒 𝑥3 𝑎𝑛𝑑 𝑥4 𝑎𝑟𝑒 𝑠𝑙𝑎𝑐𝑘 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒𝑠.
Simplex Algorithm: Tabular Method
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 6𝑥1 + 5𝑥2 + 0. 𝑥3 + 0. 𝑥4
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑥1 + 𝑥2 + 𝑥3 = 5
3𝑥1 + 2𝑥2 + 𝑥4 = 12
𝑥1, 𝑥2, 𝑥3, 𝑥4 ≥ 0
6 5 0 0
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒
RHS 𝜽
0 𝒙𝟑 1 1 1 0 5
0 𝒙𝟒 3 2 0 1 12
𝐶𝑗 − 𝑍𝑗
𝑪𝒋 − 𝒁𝑱 𝒊𝒔 𝒖𝒔𝒆𝒅 𝒕𝒐 𝒑𝒊𝒄𝒌 𝒕𝒉𝒆 𝒗𝒂𝒓𝒊𝒂𝒃𝒍𝒆 𝒘𝒉𝒊𝒄𝒉 𝒘𝒊𝒍𝒍 𝒃𝒆 𝒕𝒉𝒆 𝒃𝒂𝒔𝒊𝒄 𝒗𝒂𝒓𝒊𝒂𝒃𝒍𝒆 𝒊𝒏 𝒕𝒉𝒆 𝒏𝒆𝒙𝒕 𝒊𝒕𝒆𝒓𝒂𝒕𝒊𝒐𝒏
Algorithm terminates when 𝑪𝒋 − 𝒁𝒋 ≤ 𝟎. In this state the current basic feasible solution is optimal.
Simplex Algorithm: Tabular Method
6 5 0 0
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒
RHS 𝜽
0 𝒙𝟑 1 1 1 0 5
0 𝒙𝟒 3 2 0 1 12
𝐶𝑗 − 𝑍𝑗
6 5 0 0
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒
RHS 𝜽
0 𝒙𝟑 1 1 1 0 5
0 𝒙𝟒 3 2 0 1 12
𝐶𝑗 − 𝑍𝑗 6 5 0 0 0
6 5 0 0
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒
RHS 𝜽
0 𝒙𝟑 1 1 1 0 5 5
0 𝒙𝟒 3 2 0 1 12 4
𝐶𝑗 − 𝑍𝑗 6 5 0 0 0
• 𝐿𝑎𝑟𝑔𝑒𝑠𝑡 𝐶𝑗 − 𝑍𝑗 𝑖𝑠 6 𝑎𝑛𝑑 𝑡ℎ𝑒 𝑐𝑜𝑟𝑟𝑒𝑠𝑝𝑜𝑛𝑑𝑖𝑛𝑔 𝜃 𝑣𝑎𝑙𝑢𝑒𝑠 𝑎𝑟𝑒 𝑠ℎ𝑜𝑤𝑛 𝑖𝑛 𝑡ℎ𝑒 𝑡𝑎𝑏𝑙𝑒
𝑃𝑖𝑐𝑘 𝑡ℎ𝑒 𝑣𝑎𝑙𝑢𝑒 𝑤𝑖𝑡ℎ 𝑡ℎ𝑒 𝑙𝑎𝑟𝑔𝑒𝑠𝑡 𝐶𝑗 − 𝑍𝑗.
𝑊. 𝑟. 𝑡. 𝑡ℎ𝑎𝑡 𝑐𝑜𝑙𝑢𝑚𝑛 𝑐𝑜𝑚𝑝𝑢𝑡 𝜃 =
𝑅𝐻𝑆
𝐸𝑙𝑒𝑚𝑒𝑛𝑡 𝑜𝑓 𝐶𝐽
• Pick the row with smallest 𝜃 𝑣𝑎𝑙𝑢𝑒 𝑎𝑠 𝑎 𝑝𝑖𝑣𝑜𝑡𝑒 𝑟𝑜𝑤
𝑎𝑛𝑑
• 𝑡ℎ𝑒 𝑐𝑜𝑟𝑟𝑒𝑠𝑝𝑜𝑛𝑑𝑖𝑛𝑔 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 𝑖𝑛 𝐶𝑗 𝑤ℎ𝑖𝑐ℎ 𝑝𝑟𝑜𝑑𝑢𝑐𝑒𝑠 𝑡ℎ𝑒
smallest 𝜃 value is considered as the pivot element
Solve the following LP using Simplex Algorithm
𝑀𝑎𝑥 𝑍 = 2𝑥1 − 𝑥2 + 2𝑥3
𝑠. 𝑡. 2𝑥1 + 𝑥2 ≤ 10
𝑥1 + 2𝑥2 − 2𝑥3 ≤ 20
𝑥1 + 2𝑥3 ≤ 5
𝑥1, 𝑥2, 𝑥_3 ≥ 0

More Related Content

What's hot

Limits
LimitsLimits

What's hot (12)

4 ESO Academics - UNIT 09 - FUNCTIONS
4 ESO Academics - UNIT 09 - FUNCTIONS4 ESO Academics - UNIT 09 - FUNCTIONS
4 ESO Academics - UNIT 09 - FUNCTIONS
 
Introduction to Hash Tables | What is a HashTable in Algorithm
Introduction to Hash Tables | What is a HashTable in AlgorithmIntroduction to Hash Tables | What is a HashTable in Algorithm
Introduction to Hash Tables | What is a HashTable in Algorithm
 
Excel formula
Excel formulaExcel formula
Excel formula
 
2 lesson 2 method of completing the square
2 lesson 2 method of completing the square2 lesson 2 method of completing the square
2 lesson 2 method of completing the square
 
Spatial mechanism and DH parameters
Spatial mechanism and DH parametersSpatial mechanism and DH parameters
Spatial mechanism and DH parameters
 
3 lesson 2 graphs of quadratic function
3 lesson 2 graphs of quadratic function3 lesson 2 graphs of quadratic function
3 lesson 2 graphs of quadratic function
 
L o g a r i t h m
L o g a r i t h mL o g a r i t h m
L o g a r i t h m
 
3 lesson 1 graphs of quadratic function
3 lesson 1 graphs of quadratic function3 lesson 1 graphs of quadratic function
3 lesson 1 graphs of quadratic function
 
Linearization
LinearizationLinearization
Linearization
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Graph 3
Graph 3Graph 3
Graph 3
 
Limits
LimitsLimits
Limits
 

Similar to Combinatorial optimization CO-7

M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...
M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...
M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...
Project KRIT
 

Similar to Combinatorial optimization CO-7 (20)

Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
Ch06_1-2_Simplex_Method.pdf
Ch06_1-2_Simplex_Method.pdfCh06_1-2_Simplex_Method.pdf
Ch06_1-2_Simplex_Method.pdf
 
D026017036
D026017036D026017036
D026017036
 
Numerical analysis simplex method 1
Numerical analysis  simplex method 1Numerical analysis  simplex method 1
Numerical analysis simplex method 1
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptx
 
Randomized Algorithm- Advanced Algorithm
Randomized Algorithm- Advanced AlgorithmRandomized Algorithm- Advanced Algorithm
Randomized Algorithm- Advanced Algorithm
 
C025020029
C025020029C025020029
C025020029
 
simplex method
simplex methodsimplex method
simplex method
 
Linear programming
Linear programmingLinear programming
Linear programming
 
B02402012022
B02402012022B02402012022
B02402012022
 
Operations research
Operations researchOperations research
Operations research
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
A machine learning method for efficient design optimization in nano-optics
A machine learning method for efficient design optimization in nano-opticsA machine learning method for efficient design optimization in nano-optics
A machine learning method for efficient design optimization in nano-optics
 
Combinatorial optimization CO-6
Combinatorial optimization CO-6Combinatorial optimization CO-6
Combinatorial optimization CO-6
 
M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...
M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...
M.G.Goman, A.V.Khramtsovsky (1997) - Global Stability Analysis of Nonlinear A...
 
Solving Poisson Equation using Conjugate Gradient Method and its implementation
Solving Poisson Equation using Conjugate Gradient Methodand its implementationSolving Poisson Equation using Conjugate Gradient Methodand its implementation
Solving Poisson Equation using Conjugate Gradient Method and its implementation
 
Sparsenet
SparsenetSparsenet
Sparsenet
 
Small catalytic p systems simulating register machines
Small catalytic p systems simulating register machinesSmall catalytic p systems simulating register machines
Small catalytic p systems simulating register machines
 
Numerical Analysis and Computer Applications
Numerical Analysis and Computer ApplicationsNumerical Analysis and Computer Applications
Numerical Analysis and Computer Applications
 
Simplex method
Simplex method Simplex method
Simplex method
 

More from man003 (6)

Combinatorial optimization CO-3
Combinatorial optimization CO-3Combinatorial optimization CO-3
Combinatorial optimization CO-3
 
Combinatorial optimization CO-2
Combinatorial optimization CO-2Combinatorial optimization CO-2
Combinatorial optimization CO-2
 
Combinatorial optimization CO-1
Combinatorial optimization CO-1Combinatorial optimization CO-1
Combinatorial optimization CO-1
 
Combinatorial optimization CO-5
Combinatorial optimization CO-5Combinatorial optimization CO-5
Combinatorial optimization CO-5
 
Combinatorial optimization CO-4
Combinatorial optimization CO-4Combinatorial optimization CO-4
Combinatorial optimization CO-4
 
IOT(Internet of Things) Seminar
IOT(Internet of Things) SeminarIOT(Internet of Things) Seminar
IOT(Internet of Things) Seminar
 

Recently uploaded

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Recently uploaded (20)

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 

Combinatorial optimization CO-7

  • 1. Combinatorial Optimization CS-724 Lec-7: Date: 03-03-2021 Dr. Parikshit Saikia Assistant Professor Department of Computer Science and Engineering NIT Hamirpur (HP) India
  • 2. Simplex Algorithm  [1947]. George B. Dantzig developed a technique to solve linear programs----known as Simplex Algorithm  The simplex method is an iterative method that generates a sequence of basic feasible solutions (corresponding to different bases) and eventually stops when it has found an optimal basic feasible solution.
  • 3.  The given LP is in the Standard form. 𝑚𝑖𝑛𝑖𝑚𝑖𝑧𝑒 (𝑜𝑟 𝑚𝑎𝑥𝑖𝑚𝑖𝑧𝑒) 𝑐′𝑥 𝐴𝑥 = 𝑏 𝑥 ≥ 0  𝑏 ≥ 0  There exists a collection 𝑩 of m variables called a basis such that  the submatrix 𝑨𝑩 of 𝑨 consisting of the columns of 𝑨 corresponding to the variables in 𝑩 is the 𝑚 × 𝑚 identity matrix and  the cost coefficients corresponding to the variables in 𝑩 are all equal to 𝟎.
  • 4. Simplex Algorithm: Tabular Method Solve the following LP using Tabular Method 𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 6𝑥1 + 5𝑥2 𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑥1 + 𝑥2 ≤ 5 3𝑥1 + 2𝑥2 ≤ 12 𝑥1, 𝑥2 ≥ 0
  • 5. Simplex Algorithm: Tabular Method The standard form of the given LP is 𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 6𝑥1 + 5𝑥2 + 0. 𝑥3 + 0. 𝑥4 𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑥1 + 𝑥2 + 𝑥3 = 5 3𝑥1 + 2𝑥2 + 𝑥4 = 12 𝑥1, 𝑥2, 𝑥3, 𝑥4 ≥ 0 𝐻𝑒𝑟𝑒 𝑥3 𝑎𝑛𝑑 𝑥4 𝑎𝑟𝑒 𝑠𝑙𝑎𝑐𝑘 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒𝑠.
  • 6. Simplex Algorithm: Tabular Method 𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 6𝑥1 + 5𝑥2 + 0. 𝑥3 + 0. 𝑥4 𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑥1 + 𝑥2 + 𝑥3 = 5 3𝑥1 + 2𝑥2 + 𝑥4 = 12 𝑥1, 𝑥2, 𝑥3, 𝑥4 ≥ 0 6 5 0 0 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS 𝜽 0 𝒙𝟑 1 1 1 0 5 0 𝒙𝟒 3 2 0 1 12 𝐶𝑗 − 𝑍𝑗 𝑪𝒋 − 𝒁𝑱 𝒊𝒔 𝒖𝒔𝒆𝒅 𝒕𝒐 𝒑𝒊𝒄𝒌 𝒕𝒉𝒆 𝒗𝒂𝒓𝒊𝒂𝒃𝒍𝒆 𝒘𝒉𝒊𝒄𝒉 𝒘𝒊𝒍𝒍 𝒃𝒆 𝒕𝒉𝒆 𝒃𝒂𝒔𝒊𝒄 𝒗𝒂𝒓𝒊𝒂𝒃𝒍𝒆 𝒊𝒏 𝒕𝒉𝒆 𝒏𝒆𝒙𝒕 𝒊𝒕𝒆𝒓𝒂𝒕𝒊𝒐𝒏 Algorithm terminates when 𝑪𝒋 − 𝒁𝒋 ≤ 𝟎. In this state the current basic feasible solution is optimal.
  • 7. Simplex Algorithm: Tabular Method 6 5 0 0 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS 𝜽 0 𝒙𝟑 1 1 1 0 5 0 𝒙𝟒 3 2 0 1 12 𝐶𝑗 − 𝑍𝑗 6 5 0 0 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS 𝜽 0 𝒙𝟑 1 1 1 0 5 0 𝒙𝟒 3 2 0 1 12 𝐶𝑗 − 𝑍𝑗 6 5 0 0 0
  • 8. 6 5 0 0 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS 𝜽 0 𝒙𝟑 1 1 1 0 5 5 0 𝒙𝟒 3 2 0 1 12 4 𝐶𝑗 − 𝑍𝑗 6 5 0 0 0 • 𝐿𝑎𝑟𝑔𝑒𝑠𝑡 𝐶𝑗 − 𝑍𝑗 𝑖𝑠 6 𝑎𝑛𝑑 𝑡ℎ𝑒 𝑐𝑜𝑟𝑟𝑒𝑠𝑝𝑜𝑛𝑑𝑖𝑛𝑔 𝜃 𝑣𝑎𝑙𝑢𝑒𝑠 𝑎𝑟𝑒 𝑠ℎ𝑜𝑤𝑛 𝑖𝑛 𝑡ℎ𝑒 𝑡𝑎𝑏𝑙𝑒 𝑃𝑖𝑐𝑘 𝑡ℎ𝑒 𝑣𝑎𝑙𝑢𝑒 𝑤𝑖𝑡ℎ 𝑡ℎ𝑒 𝑙𝑎𝑟𝑔𝑒𝑠𝑡 𝐶𝑗 − 𝑍𝑗. 𝑊. 𝑟. 𝑡. 𝑡ℎ𝑎𝑡 𝑐𝑜𝑙𝑢𝑚𝑛 𝑐𝑜𝑚𝑝𝑢𝑡 𝜃 = 𝑅𝐻𝑆 𝐸𝑙𝑒𝑚𝑒𝑛𝑡 𝑜𝑓 𝐶𝐽
  • 9. • Pick the row with smallest 𝜃 𝑣𝑎𝑙𝑢𝑒 𝑎𝑠 𝑎 𝑝𝑖𝑣𝑜𝑡𝑒 𝑟𝑜𝑤 𝑎𝑛𝑑 • 𝑡ℎ𝑒 𝑐𝑜𝑟𝑟𝑒𝑠𝑝𝑜𝑛𝑑𝑖𝑛𝑔 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 𝑖𝑛 𝐶𝑗 𝑤ℎ𝑖𝑐ℎ 𝑝𝑟𝑜𝑑𝑢𝑐𝑒𝑠 𝑡ℎ𝑒 smallest 𝜃 value is considered as the pivot element
  • 10.
  • 11.
  • 12. Solve the following LP using Simplex Algorithm 𝑀𝑎𝑥 𝑍 = 2𝑥1 − 𝑥2 + 2𝑥3 𝑠. 𝑡. 2𝑥1 + 𝑥2 ≤ 10 𝑥1 + 2𝑥2 − 2𝑥3 ≤ 20 𝑥1 + 2𝑥3 ≤ 5 𝑥1, 𝑥2, 𝑥_3 ≥ 0