SlideShare a Scribd company logo
1 of 21
Download to read offline
Linear Programming
Application Using Matrices
LP History
LP first developed by Leonid
Kontorovich in 1939 to plan
expenditures and returns
during WW 2.

It was kept secret until 1947. Revealed after
publication of Dantzig's Simplex Algorithm.
Application
To maximize:
f = c1x+c2y+c3z ...
Subjected to constraints :
0<= ax + by + cz + ... <= P1
0<= dx + ey + fz + ... <= P2
...

STANDARD FORM
(x >= 0 y >= 0 ...)
To minimize:
f = c1x+c2y+c3z ...
We maximize:
g = -f = -(c1x+c2y+c3z ...)
Crop Plantation Problem
1. L acres of land
2. Two crops to be planted : potato and ladyfinger
3. Budget :
a. F for fertilisers
b. P for pesticides
4. Crops has the following requirements/ returns
per acre per season:
Crop

Water

Manure

Pesticide

Profit

Potato

W1

M1

P1

R1

Ladyfinger

W2

M2

P2

R2
Aim
Distribute land to Maximize profit.
Simplex Algorithm
x = Potato area

y = Ladyfinger area

Constraints :
1.
2.
3.
4.

x , y >= 0
x + y <= L
0<= xP1 + yP2 <= P
0<= xM1 + yM2 <= M

(non negative)
(land)
(Pesticide)
(Manure)

Aim : To Maximize Profit (f)
f = xR1 + yR2
Simplex Method
Introduce slack variables & remove inequalities
Constraints
1. x + y <= L
2. xP1 + yP2 <= P
3. xM1 + yM2 <= M

x+y
xP1 + yP2
xM1 + yM2
-xR1 - yR2

+ u
+
+
+

v

w
f

=L
=P
=M
=0
For solution purpose, let :
P1 = 10, P2 = 12, P = 18
|L=6
M1 = 5, M2 = 7, M = 10
| R1 = 3 ; R2 = 6
Constraints

Slacks

Values
Algorithm
1) In constraints, select the column with min.
negative value at bottom

-6

<

-3

Constraints
Algorithm
2) Pivot element in the selected row is min
(value/respected value)

=7
Algorithm
3) Apply row operations to make pivot element = 1
and all other elements in that column = 0

1. R3 = R3 + R4
2. R1 = R1 - R3
3. R2 = R2 - 2R4
Algorithm
4) Repeat until all elements in the last row of
constraints become >=0
Solution
The last element of last row is the optimal solution.
Determining x,y
From final matrix we get the following equations :
1.
2.
3.
4.

0.28x + 1u -0.14w = 4.57
10x + 1v
= 18
0.7x + 1y + 0.14w = 1.42
1.28x + 0.85w + 1f = 8.57

Therefore f is 8.57 (max) when x = 0, w = 0
y = 1.42 (using x,w,(3))
Graphical Interpretation
http://fooplot.com/plot/ipyhavtwvc
Simplex method
mechanically
traverses every
corner point
starting with (0,0)
Reference
1. Wikipedia
2. Logic of how simplex method works by Mathnik
http://explain-that.blogspot.in/2011/06/logicof-how-simplex-method-works.html
3. Youtube : http://www.youtube.com/watch?
v=qxls3cYg8to
Credits
1. Matrix images : Roger's Online Equation Editor
http://rogercortesi.com/eqn/
2. Title font : Amatic Sc by Vernon Adams https://plus.
google.com/107807505287232434305/posts
Thank You

More Related Content

What's hot

Simplex Method
Simplex MethodSimplex Method
Simplex Method
Sachin MK
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –
itsvineeth209
 

What's hot (20)

Duality
DualityDuality
Duality
 
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
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear Programming
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
 
Linear Programming
Linear ProgrammingLinear Programming
Linear Programming
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex method
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –
 
Big m method
Big m methodBig m method
Big m method
 
Integer Programming, Gomory
Integer Programming, GomoryInteger Programming, Gomory
Integer Programming, Gomory
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Game theory
Game theoryGame theory
Game theory
 
Big-M Method Presentation
Big-M Method PresentationBig-M Method Presentation
Big-M Method Presentation
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
Integer programming
Integer programmingInteger programming
Integer programming
 
Minimization model by simplex method
Minimization model by simplex methodMinimization model by simplex method
Minimization model by simplex method
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
 
Transportation problem ppt
Transportation problem pptTransportation problem ppt
Transportation problem ppt
 

Similar to Linear programming using the simplex method

Linear Programming Feasible Region
Linear Programming Feasible RegionLinear Programming Feasible Region
Linear Programming Feasible Region
VARUN MODI
 
Chapter 12 Dynamic programming.pptx
Chapter 12 Dynamic programming.pptxChapter 12 Dynamic programming.pptx
Chapter 12 Dynamic programming.pptx
MdSazolAhmmed
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
RajJain516913
 
AOT2 Single Variable Optimization Algorithms.pdf
AOT2 Single Variable Optimization Algorithms.pdfAOT2 Single Variable Optimization Algorithms.pdf
AOT2 Single Variable Optimization Algorithms.pdf
SandipBarik8
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
Krishna Gali
 
Linear programming in computational geometry
Linear programming in computational geometryLinear programming in computational geometry
Linear programming in computational geometry
Subhashis Hazarika
 

Similar to Linear programming using the simplex method (20)

Linear Programming Feasible Region
Linear Programming Feasible RegionLinear Programming Feasible Region
Linear Programming Feasible Region
 
Integer Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdfInteger Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdf
 
Chapter 12 Dynamic programming.pptx
Chapter 12 Dynamic programming.pptxChapter 12 Dynamic programming.pptx
Chapter 12 Dynamic programming.pptx
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
 
Solution of matlab chapter 3
Solution of matlab chapter 3Solution of matlab chapter 3
Solution of matlab chapter 3
 
Optimization tutorial
Optimization tutorialOptimization tutorial
Optimization tutorial
 
Mat 121-Limits education tutorial 22 I.pdf
Mat 121-Limits education tutorial 22 I.pdfMat 121-Limits education tutorial 22 I.pdf
Mat 121-Limits education tutorial 22 I.pdf
 
sim-140907230908-phpapp01.pptx
sim-140907230908-phpapp01.pptxsim-140907230908-phpapp01.pptx
sim-140907230908-phpapp01.pptx
 
Lp (2)
Lp (2)Lp (2)
Lp (2)
 
Riemann sumsdefiniteintegrals
Riemann sumsdefiniteintegralsRiemann sumsdefiniteintegrals
Riemann sumsdefiniteintegrals
 
Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)
 
06_finite_elements_basics.ppt
06_finite_elements_basics.ppt06_finite_elements_basics.ppt
06_finite_elements_basics.ppt
 
5994944.ppt
5994944.ppt5994944.ppt
5994944.ppt
 
AOT2 Single Variable Optimization Algorithms.pdf
AOT2 Single Variable Optimization Algorithms.pdfAOT2 Single Variable Optimization Algorithms.pdf
AOT2 Single Variable Optimization Algorithms.pdf
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
Linear programming in computational geometry
Linear programming in computational geometryLinear programming in computational geometry
Linear programming in computational geometry
 
Integration
IntegrationIntegration
Integration
 
Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
 
Class XII CBSE Mathematics Sample question paper with solution
Class XII CBSE Mathematics Sample question paper with solutionClass XII CBSE Mathematics Sample question paper with solution
Class XII CBSE Mathematics Sample question paper with solution
 
bv_cvxslides (1).pdf
bv_cvxslides (1).pdfbv_cvxslides (1).pdf
bv_cvxslides (1).pdf
 

More from Shivek Khurana

Gottfried Wilhelm Leibniz
Gottfried Wilhelm Leibniz Gottfried Wilhelm Leibniz
Gottfried Wilhelm Leibniz
Shivek Khurana
 

More from Shivek Khurana (12)

4 Inch Innovation Canvas
4 Inch Innovation Canvas4 Inch Innovation Canvas
4 Inch Innovation Canvas
 
The First Xerox Machine
The First Xerox MachineThe First Xerox Machine
The First Xerox Machine
 
Sell Without Selling
Sell Without SellingSell Without Selling
Sell Without Selling
 
Expectancy Theory : Motivate and stay motived
Expectancy Theory : Motivate and stay motivedExpectancy Theory : Motivate and stay motived
Expectancy Theory : Motivate and stay motived
 
Driver Programming Report
Driver Programming ReportDriver Programming Report
Driver Programming Report
 
Bitcoin : A fierce Decentralized internet currency
Bitcoin : A fierce Decentralized internet currencyBitcoin : A fierce Decentralized internet currency
Bitcoin : A fierce Decentralized internet currency
 
Bitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - ReportBitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - Report
 
Economic Aspects of Bitcoins : Report
Economic Aspects of Bitcoins : ReportEconomic Aspects of Bitcoins : Report
Economic Aspects of Bitcoins : Report
 
A parallel Universe : Hardware vs Software parallelism
A parallel Universe : Hardware vs Software parallelismA parallel Universe : Hardware vs Software parallelism
A parallel Universe : Hardware vs Software parallelism
 
Gottfried Wilhelm Leibniz
Gottfried Wilhelm Leibniz Gottfried Wilhelm Leibniz
Gottfried Wilhelm Leibniz
 
International Trade : Absolute vs comparative Advantage
International Trade : Absolute vs comparative AdvantageInternational Trade : Absolute vs comparative Advantage
International Trade : Absolute vs comparative Advantage
 
The Wizard of Menlo Park : Thomas Alva Edison
The Wizard of Menlo Park : Thomas Alva EdisonThe Wizard of Menlo Park : Thomas Alva Edison
The Wizard of Menlo Park : Thomas Alva Edison
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 

Linear programming using the simplex method