SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Simplex Method
Simplex MethodSimplex Method
Simplex Method
Sachin MK
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
Dronak Sahu
 
Graphical Method
Graphical MethodGraphical Method
Graphical Method
Sachin MK
 

La actualidad más candente (20)

Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Integer programming
Integer programmingInteger programming
Integer programming
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Big m method
Big m methodBig m method
Big m method
 
linear programming
linear programminglinear programming
linear programming
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING
 
Concept of Duality
Concept of DualityConcept of Duality
Concept of Duality
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Linear programming
Linear programmingLinear programming
Linear programming
 
LP special cases and Duality.pptx
LP special cases and Duality.pptxLP special cases and Duality.pptx
LP special cases and Duality.pptx
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
 
Graphical Method
Graphical MethodGraphical Method
Graphical Method
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
 
primal and dual problem
primal and dual problemprimal and dual problem
primal and dual problem
 
Big-M Method Presentation
Big-M Method PresentationBig-M Method Presentation
Big-M Method Presentation
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
 

Similar 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
 

Similar 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
 

Más de Shivek Khurana

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

Más 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

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 

Último (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 

Linear programming using the simplex method