SlideShare uma empresa Scribd logo
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

Mais conteúdo relacionado

Mais procurados

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

Mais procurados (20)

Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
 
Linear Programming
Linear  ProgrammingLinear  Programming
Linear Programming
 
linear programming
linear programming linear programming
linear programming
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
 
Simplex Method.pptx
Simplex Method.pptxSimplex Method.pptx
Simplex Method.pptx
 
simplex method
simplex methodsimplex method
simplex method
 
Duality
DualityDuality
Duality
 
linear programming
linear programminglinear programming
linear programming
 
Linear Programming
Linear ProgrammingLinear Programming
Linear Programming
 
Constrained Optimization
Constrained OptimizationConstrained Optimization
Constrained Optimization
 
LINEAR PROGRAMMING Assignment help
LINEAR PROGRAMMING Assignment helpLINEAR PROGRAMMING Assignment help
LINEAR PROGRAMMING Assignment help
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Linear programing
Linear programingLinear programing
Linear programing
 
primal and dual problem
primal and dual problemprimal and dual problem
primal and dual problem
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 

Semelhante a 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
 

Semelhante a 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
 

Mais de Shivek Khurana

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

Mais de 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
 

Último

ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
ashishpaul799
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Último (20)

Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 

Linear programming using the simplex method