SlideShare a Scribd company logo
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
The beer problem: we want to produce beer, either blonde, or brown



barley : 14kg
corn : 2kg
price : 30e



barley : 10kg
corn : 5kg
price : 40e



barley : 280kg
corn : 100kg
Admissible sets :
10qbrown + 14qblond ≤ 280 (10x1 + 14x2 ≤ 280)
2qbrown +5qblond ≤ 100 (2x1 +5x2 ≤ 100)
What should we produce to maximize the profit ?
max 40qbrown + 30qblond (max 40x1 + 30x2 )
@freakonometrics freakonometrics freakonometrics.hypotheses.org 1
0 5 10 15 20 25 30
01020304050
Brown Beer Barrel
BlondBeerBarrel
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
First step: enlarge the space, 10x1 + 14x2 ≤ 280 becomes 10x1 + 14x2 − u1 = 280
(so called slack variables)
max 40x1 + 30x2
s.t. 10x1 + 14x2 + u1 = 280
s.t. 2x1 + 5x2 + u2 = 100
s.t. x1, x2, u1, u2 ≥ 0
summarized in the following table, see wikibook
x1 x2 u1 u2
(1) 10 14 1 0 280
(2) 2 5 0 1 100
max 40 30 0 0
@freakonometrics freakonometrics freakonometrics.hypotheses.org 2
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
Consider a linear programming problem written in a standard form.
min cT
x (1a)
subject to
Ax = b , (1b)
x ≥ 0 . (1c)
Where x ∈ Rn
, A is am × n matrix, b ∈ Rm
and c ∈ Rn
.
Assume that rank(A) = m (rows of A are linearly independent)
Introduce slack variables to turn inequality constraints into equality constraints
with positive unknowns : any inequality a1 x1 + · · · + an xn ≤ c can be replaced
by a1 x1 + · · · + an xn + u = c with u ≥ 0.
Replace variables which are not sign-constrained by differences : any real number
x can be written as the difference of positive numbers x = u − v with u, v ≥ 0.
@freakonometrics freakonometrics freakonometrics.hypotheses.org 3
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
Example :
maximize {x1 + 2 x2 + 3 x3}
subject to
x1 + x2 − x3 = 1 ,
−2 x1 + x2 + 2 x3 ≥ −5 ,
x1 − x2 ≤ 4 ,
x2 + x3 ≤ 5 ,
x1 ≥ 0 ,
x2 ≥ 0 .
minimize {−x1 − 2 x2 − 3 u + 3 v}
subject to
x1 + x2 − u + v = 1 ,
2 x1 − x2 − 2 u + 2 v + s1 = 5 ,
x1 − x2 + s2 = 4 ,
x2 + u − v + s3 = 5 ,
x1, x2, u, v, s1, s2, s3 ≥ 0 .
@freakonometrics freakonometrics freakonometrics.hypotheses.org 4
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
Write the coefficients of the problem into a tableau
x1 x2 u v s1 s2 s3
1 1 −1 1 0 0 0 1
2 −1 −2 2 1 0 0 5
1 −1 0 0 0 1 0 4
0 1 1 −1 0 0 1 5
−1 −2 −3 3 0 0 0 0
with constraints on top and coefficients of the objective function are written in a
separate bottom row (with a 0 in the right hand column)
we need to choose an initial set of basic variables which corresponds to a point in
the feasible region of the linear program-ming problem.
E.g. x1 and s1, s2, s3
@freakonometrics freakonometrics freakonometrics.hypotheses.org 5
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
Use Gaussian elimination to (1) reduce the selected columns to a permutation of
the identity matrix (2) eliminate the coefficients of the objective function
x1 x2 u v s1 s2 s3
1 1 −1 1 0 0 0 1
0 −3 0 0 1 0 0 3
0 −2 1 −1 0 1 0 3
0 1 1 −1 0 0 1 5
0 −1 −4 4 0 0 0 1
the objective function row has at least one negative entry
@freakonometrics freakonometrics freakonometrics.hypotheses.org 6
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
x1 x2 u v s1 s2 s3
1 1 −1 1 0 0 0 1
0 −3 0 0 1 0 0 3
0 −2 1 −1 0 1 0 3
0 1 1 −1 0 0 1 5
0 −1 −4 4 0 0 0 1
This new basic variable is called the entering variable. Correspondingly, one
formerly basic variable has then to become nonbasic, this variable is called the
leaving variable.
@freakonometrics freakonometrics freakonometrics.hypotheses.org 7
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
The entering variable shall correspond to the column which has the most
negative entry in the cost function row
the most negative cost function coefficient in column 3, thus u shall be the
entering variable
The leaving variable shall be chosen as follows : Compute for each row the ratio
of its right hand coefficient to the corresponding coefficient in the entering
variable column. Select the row with the smallest finite positive ratio. The
leaving variable is then determined by the column which currently owns the pivot
in this row.
The smallest positive ratio of right hand column to entering variable column is in
row 3, as
3
1
<
5
1
. The pivot in this row points to s2 as the leaving variable.
@freakonometrics freakonometrics freakonometrics.hypotheses.org 8
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
x1 x2 u v s1 s2 s3
1 1 −1 1 0 0 0 1
0 −3 0 0 1 0 0 3
0 −2 1 −1 0 1 0 3
0 1 1 −1 0 0 1 5
0 −1 −4 4 0 0 0 1
@freakonometrics freakonometrics freakonometrics.hypotheses.org 9
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
After going through the Gaussian elimination once more, we arrive at
x1 x2 u v s1 s2 s3
1 −1 0 0 0 1 0 4
0 −3 0 0 1 0 0 3
0 −2 1 −1 0 1 0 3
0 3 0 0 0 −1 1 2
0 −9 0 0 0 4 0 13
Here x2 will enter and s3 will leave
@freakonometrics freakonometrics freakonometrics.hypotheses.org 10
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
After Gaussian elimination, we find
x1 x2 u v s1 s2 s3
1 0 0 0 0 2
3
1
3
14
3
0 0 0 0 1 −1 1 5
0 0 1 −1 0 1
3
2
3
13
3
0 1 0 0 0 −1
3
1
3
2
3
0 0 0 0 0 1 3 19
There is no more negative entry in the last row, the cost cannot be lowered
@freakonometrics freakonometrics freakonometrics.hypotheses.org 11
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Simplex Method
The algorithm is over, we now have to read off the solution (in the last column)
x1 =
14
3
, x2 =
2
3
, x3 = u =
13
3
, s1 = 5, v = s2 = s3 = 0
and the minimal value is −19
@freakonometrics freakonometrics freakonometrics.hypotheses.org 12
Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017
Duality
Consider a transportation problem.
Some good is available at location A (at no cost) and may be transported to
locations B, C, and D according to the following directed graph
B
4
!!
3

A
2
**
1
44
D
C
5
==
On each of the edges, the unit cost of transportation is cj for j = 1, . . . , 5.
At each of the vertices, bi units of the good are sold, where i = B, C, D.
How can the transport be done most efficiently?
@freakonometrics freakonometrics freakonometrics.hypotheses.org 13
Arthur Charpentier, Master Statistique  Économétrie - Université Rennes 1 - 2017
Duality
Let xj denotes the amount of good transported through edge j
We have to solve
minimize {c1 x1 + · · · + c5 x5} (2)
subject to
x1 − x3 − x4 = bB , (3)
x2 + x3 − x5 = bC , (4)
x4 + x5 = bD . (5)
Constraints mean here that nothing gets lost at nodes B, C, and D, except what
is sold.
@freakonometrics freakonometrics freakonometrics.hypotheses.org 14
Arthur Charpentier, Master Statistique  Économétrie - Université Rennes 1 - 2017
Duality
Alternatively, instead of looking at minimizing the cost of transportation, we seek
to maximize the income from selling the good.
maximize {yB bB + yC bC + yD bD} (6)
subject to
yB − yA ≤ c1 , (7)
yC − yA ≤ c2 , (8)
yC − yB ≤ c3 , (9)
yD − yB ≤ c4 , (10)
yD − yC ≤ c5 . (11)
Constraints mean here that the price difference cannot not exceed the cost of
transportation.
@freakonometrics freakonometrics freakonometrics.hypotheses.org 15
Arthur Charpentier, Master Statistique  Économétrie - Université Rennes 1 - 2017
Duality
Set
x =





x1
...
x5





, y =





yB
yC
yD





, and A =





1 0 −1 −1 0
0 1 1 0 −1
0 0 0 1 1





,
The first problem - primal problem - is here
minimize {cT
x}
subject to Ax = b, x ≥ 0 .
and the second problem - dual problem - is here
maximize {yT
b}
subject to yT
A ≤ cT
.
@freakonometrics freakonometrics freakonometrics.hypotheses.org 16
Arthur Charpentier, Master Statistique  Économétrie - Université Rennes 1 - 2017
Duality
The minimal cost and the maximal income coincide, i.e., the two problems are
equivalent. More precisely, there is a strong duality theorem
Theorem The primal problem has a nondegenerate solution x if and only if the
dual problem has a nondegenerate solution y. And in this case yT
b = cT
x.
See Dantzig  Thapa (1997) Linear Programming
@freakonometrics freakonometrics freakonometrics.hypotheses.org 17

More Related Content

What's hot

Proba stats-r1-2017
Proba stats-r1-2017Proba stats-r1-2017
Proba stats-r1-2017
Arthur Charpentier
 
Slides sales-forecasting-session2-web
Slides sales-forecasting-session2-webSlides sales-forecasting-session2-web
Slides sales-forecasting-session2-webArthur Charpentier
 
Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2
Arthur Charpentier
 
Classification
ClassificationClassification
Classification
Arthur Charpentier
 
Quantile and Expectile Regression
Quantile and Expectile RegressionQuantile and Expectile Regression
Quantile and Expectile Regression
Arthur Charpentier
 
Slides econometrics-2018-graduate-3
Slides econometrics-2018-graduate-3Slides econometrics-2018-graduate-3
Slides econometrics-2018-graduate-3
Arthur Charpentier
 
Slides econometrics-2017-graduate-2
Slides econometrics-2017-graduate-2Slides econometrics-2017-graduate-2
Slides econometrics-2017-graduate-2
Arthur Charpentier
 
Inequality, slides #2
Inequality, slides #2Inequality, slides #2
Inequality, slides #2
Arthur Charpentier
 
Predictive Modeling in Insurance in the context of (possibly) big data
Predictive Modeling in Insurance in the context of (possibly) big dataPredictive Modeling in Insurance in the context of (possibly) big data
Predictive Modeling in Insurance in the context of (possibly) big data
Arthur Charpentier
 
Side 2019 #5
Side 2019 #5Side 2019 #5
Side 2019 #5
Arthur Charpentier
 
Side 2019, part 1
Side 2019, part 1Side 2019, part 1
Side 2019, part 1
Arthur Charpentier
 
Side 2019, part 2
Side 2019, part 2Side 2019, part 2
Side 2019, part 2
Arthur Charpentier
 
Side 2019 #7
Side 2019 #7Side 2019 #7
Side 2019 #7
Arthur Charpentier
 
Slides ensae-2016-8
Slides ensae-2016-8Slides ensae-2016-8
Slides ensae-2016-8
Arthur Charpentier
 
Econometrics, PhD Course, #1 Nonlinearities
Econometrics, PhD Course, #1 NonlinearitiesEconometrics, PhD Course, #1 Nonlinearities
Econometrics, PhD Course, #1 Nonlinearities
Arthur Charpentier
 

What's hot (20)

Proba stats-r1-2017
Proba stats-r1-2017Proba stats-r1-2017
Proba stats-r1-2017
 
Slides toulouse
Slides toulouseSlides toulouse
Slides toulouse
 
Slides sales-forecasting-session2-web
Slides sales-forecasting-session2-webSlides sales-forecasting-session2-web
Slides sales-forecasting-session2-web
 
Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2
 
Classification
ClassificationClassification
Classification
 
Slides ineq-4
Slides ineq-4Slides ineq-4
Slides ineq-4
 
Quantile and Expectile Regression
Quantile and Expectile RegressionQuantile and Expectile Regression
Quantile and Expectile Regression
 
Slides econometrics-2018-graduate-3
Slides econometrics-2018-graduate-3Slides econometrics-2018-graduate-3
Slides econometrics-2018-graduate-3
 
Slides econometrics-2017-graduate-2
Slides econometrics-2017-graduate-2Slides econometrics-2017-graduate-2
Slides econometrics-2017-graduate-2
 
Slides risk-rennes
Slides risk-rennesSlides risk-rennes
Slides risk-rennes
 
Slides amsterdam-2013
Slides amsterdam-2013Slides amsterdam-2013
Slides amsterdam-2013
 
Inequality, slides #2
Inequality, slides #2Inequality, slides #2
Inequality, slides #2
 
Predictive Modeling in Insurance in the context of (possibly) big data
Predictive Modeling in Insurance in the context of (possibly) big dataPredictive Modeling in Insurance in the context of (possibly) big data
Predictive Modeling in Insurance in the context of (possibly) big data
 
Side 2019 #5
Side 2019 #5Side 2019 #5
Side 2019 #5
 
Side 2019, part 1
Side 2019, part 1Side 2019, part 1
Side 2019, part 1
 
Side 2019, part 2
Side 2019, part 2Side 2019, part 2
Side 2019, part 2
 
Side 2019 #7
Side 2019 #7Side 2019 #7
Side 2019 #7
 
Slides ensae-2016-8
Slides ensae-2016-8Slides ensae-2016-8
Slides ensae-2016-8
 
Econometrics, PhD Course, #1 Nonlinearities
Econometrics, PhD Course, #1 NonlinearitiesEconometrics, PhD Course, #1 Nonlinearities
Econometrics, PhD Course, #1 Nonlinearities
 
Slides guanauato
Slides guanauatoSlides guanauato
Slides guanauato
 

Viewers also liked

Slides ensae-2016-5
Slides ensae-2016-5Slides ensae-2016-5
Slides ensae-2016-5
Arthur Charpentier
 
Slides ensae-2016-6
Slides ensae-2016-6Slides ensae-2016-6
Slides ensae-2016-6
Arthur Charpentier
 
Slides ensae-2016-7
Slides ensae-2016-7Slides ensae-2016-7
Slides ensae-2016-7
Arthur Charpentier
 
Slides ensae-2016-9
Slides ensae-2016-9Slides ensae-2016-9
Slides ensae-2016-9
Arthur Charpentier
 
Slides ensae-2016-10
Slides ensae-2016-10Slides ensae-2016-10
Slides ensae-2016-10
Arthur Charpentier
 
Slides ensae-2016-11
Slides ensae-2016-11Slides ensae-2016-11
Slides ensae-2016-11
Arthur Charpentier
 

Viewers also liked (6)

Slides ensae-2016-5
Slides ensae-2016-5Slides ensae-2016-5
Slides ensae-2016-5
 
Slides ensae-2016-6
Slides ensae-2016-6Slides ensae-2016-6
Slides ensae-2016-6
 
Slides ensae-2016-7
Slides ensae-2016-7Slides ensae-2016-7
Slides ensae-2016-7
 
Slides ensae-2016-9
Slides ensae-2016-9Slides ensae-2016-9
Slides ensae-2016-9
 
Slides ensae-2016-10
Slides ensae-2016-10Slides ensae-2016-10
Slides ensae-2016-10
 
Slides ensae-2016-11
Slides ensae-2016-11Slides ensae-2016-11
Slides ensae-2016-11
 

Similar to Slides simplexe

Group No 05, calculus.pptx
Group No 05, calculus.pptxGroup No 05, calculus.pptx
Group No 05, calculus.pptx
EmonKundu
 
Input analysis
Input analysisInput analysis
Input analysis
Bhavik A Shah
 
Regression
RegressionRegression
Karnaugh
KarnaughKarnaugh
Karnaugh
camilosena
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research
Derbew Tesfa
 
2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machinenozomuhamada
 
Econometrics 2017-graduate-3
Econometrics 2017-graduate-3Econometrics 2017-graduate-3
Econometrics 2017-graduate-3
Arthur Charpentier
 
ISI MSQE Entrance Question Paper (2011)
ISI MSQE Entrance Question Paper (2011)ISI MSQE Entrance Question Paper (2011)
ISI MSQE Entrance Question Paper (2011)
CrackDSE
 
smtlecture.6
smtlecture.6smtlecture.6
smtlecture.6
Roberto Bruttomesso
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priors
Elvis DOHMATOB
 
Bresenham circlesandpolygons
Bresenham circlesandpolygonsBresenham circlesandpolygons
Bresenham circlesandpolygonsaa11bb11
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
Kumar
 
Optimization tutorial
Optimization tutorialOptimization tutorial
Optimization tutorial
Northwestern University
 
Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fitting
Ameen San
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuacionesNatalia
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuacionesNatalia
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)
CrackDSE
 
Determinants
DeterminantsDeterminants
Determinants
Joey Valdriz
 
MCMC and likelihood-free methods
MCMC and likelihood-free methodsMCMC and likelihood-free methods
MCMC and likelihood-free methods
Christian Robert
 

Similar to Slides simplexe (20)

Lp (2)
Lp (2)Lp (2)
Lp (2)
 
Group No 05, calculus.pptx
Group No 05, calculus.pptxGroup No 05, calculus.pptx
Group No 05, calculus.pptx
 
Input analysis
Input analysisInput analysis
Input analysis
 
Regression
RegressionRegression
Regression
 
Karnaugh
KarnaughKarnaugh
Karnaugh
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research
 
2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine
 
Econometrics 2017-graduate-3
Econometrics 2017-graduate-3Econometrics 2017-graduate-3
Econometrics 2017-graduate-3
 
ISI MSQE Entrance Question Paper (2011)
ISI MSQE Entrance Question Paper (2011)ISI MSQE Entrance Question Paper (2011)
ISI MSQE Entrance Question Paper (2011)
 
smtlecture.6
smtlecture.6smtlecture.6
smtlecture.6
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priors
 
Bresenham circlesandpolygons
Bresenham circlesandpolygonsBresenham circlesandpolygons
Bresenham circlesandpolygons
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
 
Optimization tutorial
Optimization tutorialOptimization tutorial
Optimization tutorial
 
Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fitting
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuaciones
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuaciones
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)
 
Determinants
DeterminantsDeterminants
Determinants
 
MCMC and likelihood-free methods
MCMC and likelihood-free methodsMCMC and likelihood-free methods
MCMC and likelihood-free methods
 

More from Arthur Charpentier

Family History and Life Insurance
Family History and Life InsuranceFamily History and Life Insurance
Family History and Life Insurance
Arthur Charpentier
 
ACT6100 introduction
ACT6100 introductionACT6100 introduction
ACT6100 introduction
Arthur Charpentier
 
Family History and Life Insurance (UConn actuarial seminar)
Family History and Life Insurance (UConn actuarial seminar)Family History and Life Insurance (UConn actuarial seminar)
Family History and Life Insurance (UConn actuarial seminar)
Arthur Charpentier
 
Control epidemics
Control epidemics Control epidemics
Control epidemics
Arthur Charpentier
 
STT5100 Automne 2020, introduction
STT5100 Automne 2020, introductionSTT5100 Automne 2020, introduction
STT5100 Automne 2020, introduction
Arthur Charpentier
 
Family History and Life Insurance
Family History and Life InsuranceFamily History and Life Insurance
Family History and Life Insurance
Arthur Charpentier
 
Machine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & InsuranceMachine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & Insurance
Arthur Charpentier
 
Reinforcement Learning in Economics and Finance
Reinforcement Learning in Economics and FinanceReinforcement Learning in Economics and Finance
Reinforcement Learning in Economics and Finance
Arthur Charpentier
 
Optimal Control and COVID-19
Optimal Control and COVID-19Optimal Control and COVID-19
Optimal Control and COVID-19
Arthur Charpentier
 
Slides OICA 2020
Slides OICA 2020Slides OICA 2020
Slides OICA 2020
Arthur Charpentier
 
Lausanne 2019 #3
Lausanne 2019 #3Lausanne 2019 #3
Lausanne 2019 #3
Arthur Charpentier
 
Lausanne 2019 #4
Lausanne 2019 #4Lausanne 2019 #4
Lausanne 2019 #4
Arthur Charpentier
 
Lausanne 2019 #2
Lausanne 2019 #2Lausanne 2019 #2
Lausanne 2019 #2
Arthur Charpentier
 
Lausanne 2019 #1
Lausanne 2019 #1Lausanne 2019 #1
Lausanne 2019 #1
Arthur Charpentier
 
Side 2019 #10
Side 2019 #10Side 2019 #10
Side 2019 #10
Arthur Charpentier
 
Side 2019 #11
Side 2019 #11Side 2019 #11
Side 2019 #11
Arthur Charpentier
 
Side 2019 #12
Side 2019 #12Side 2019 #12
Side 2019 #12
Arthur Charpentier
 
Side 2019 #9
Side 2019 #9Side 2019 #9
Side 2019 #9
Arthur Charpentier
 
Side 2019 #8
Side 2019 #8Side 2019 #8
Side 2019 #8
Arthur Charpentier
 
Side 2019 #6
Side 2019 #6Side 2019 #6
Side 2019 #6
Arthur Charpentier
 

More from Arthur Charpentier (20)

Family History and Life Insurance
Family History and Life InsuranceFamily History and Life Insurance
Family History and Life Insurance
 
ACT6100 introduction
ACT6100 introductionACT6100 introduction
ACT6100 introduction
 
Family History and Life Insurance (UConn actuarial seminar)
Family History and Life Insurance (UConn actuarial seminar)Family History and Life Insurance (UConn actuarial seminar)
Family History and Life Insurance (UConn actuarial seminar)
 
Control epidemics
Control epidemics Control epidemics
Control epidemics
 
STT5100 Automne 2020, introduction
STT5100 Automne 2020, introductionSTT5100 Automne 2020, introduction
STT5100 Automne 2020, introduction
 
Family History and Life Insurance
Family History and Life InsuranceFamily History and Life Insurance
Family History and Life Insurance
 
Machine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & InsuranceMachine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & Insurance
 
Reinforcement Learning in Economics and Finance
Reinforcement Learning in Economics and FinanceReinforcement Learning in Economics and Finance
Reinforcement Learning in Economics and Finance
 
Optimal Control and COVID-19
Optimal Control and COVID-19Optimal Control and COVID-19
Optimal Control and COVID-19
 
Slides OICA 2020
Slides OICA 2020Slides OICA 2020
Slides OICA 2020
 
Lausanne 2019 #3
Lausanne 2019 #3Lausanne 2019 #3
Lausanne 2019 #3
 
Lausanne 2019 #4
Lausanne 2019 #4Lausanne 2019 #4
Lausanne 2019 #4
 
Lausanne 2019 #2
Lausanne 2019 #2Lausanne 2019 #2
Lausanne 2019 #2
 
Lausanne 2019 #1
Lausanne 2019 #1Lausanne 2019 #1
Lausanne 2019 #1
 
Side 2019 #10
Side 2019 #10Side 2019 #10
Side 2019 #10
 
Side 2019 #11
Side 2019 #11Side 2019 #11
Side 2019 #11
 
Side 2019 #12
Side 2019 #12Side 2019 #12
Side 2019 #12
 
Side 2019 #9
Side 2019 #9Side 2019 #9
Side 2019 #9
 
Side 2019 #8
Side 2019 #8Side 2019 #8
Side 2019 #8
 
Side 2019 #6
Side 2019 #6Side 2019 #6
Side 2019 #6
 

Recently uploaded

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
JezreelCabil2
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 

Recently uploaded (20)

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 

Slides simplexe

  • 1. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method The beer problem: we want to produce beer, either blonde, or brown    barley : 14kg corn : 2kg price : 30e    barley : 10kg corn : 5kg price : 40e    barley : 280kg corn : 100kg Admissible sets : 10qbrown + 14qblond ≤ 280 (10x1 + 14x2 ≤ 280) 2qbrown +5qblond ≤ 100 (2x1 +5x2 ≤ 100) What should we produce to maximize the profit ? max 40qbrown + 30qblond (max 40x1 + 30x2 ) @freakonometrics freakonometrics freakonometrics.hypotheses.org 1 0 5 10 15 20 25 30 01020304050 Brown Beer Barrel BlondBeerBarrel
  • 2. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method First step: enlarge the space, 10x1 + 14x2 ≤ 280 becomes 10x1 + 14x2 − u1 = 280 (so called slack variables) max 40x1 + 30x2 s.t. 10x1 + 14x2 + u1 = 280 s.t. 2x1 + 5x2 + u2 = 100 s.t. x1, x2, u1, u2 ≥ 0 summarized in the following table, see wikibook x1 x2 u1 u2 (1) 10 14 1 0 280 (2) 2 5 0 1 100 max 40 30 0 0 @freakonometrics freakonometrics freakonometrics.hypotheses.org 2
  • 3. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method Consider a linear programming problem written in a standard form. min cT x (1a) subject to Ax = b , (1b) x ≥ 0 . (1c) Where x ∈ Rn , A is am × n matrix, b ∈ Rm and c ∈ Rn . Assume that rank(A) = m (rows of A are linearly independent) Introduce slack variables to turn inequality constraints into equality constraints with positive unknowns : any inequality a1 x1 + · · · + an xn ≤ c can be replaced by a1 x1 + · · · + an xn + u = c with u ≥ 0. Replace variables which are not sign-constrained by differences : any real number x can be written as the difference of positive numbers x = u − v with u, v ≥ 0. @freakonometrics freakonometrics freakonometrics.hypotheses.org 3
  • 4. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method Example : maximize {x1 + 2 x2 + 3 x3} subject to x1 + x2 − x3 = 1 , −2 x1 + x2 + 2 x3 ≥ −5 , x1 − x2 ≤ 4 , x2 + x3 ≤ 5 , x1 ≥ 0 , x2 ≥ 0 . minimize {−x1 − 2 x2 − 3 u + 3 v} subject to x1 + x2 − u + v = 1 , 2 x1 − x2 − 2 u + 2 v + s1 = 5 , x1 − x2 + s2 = 4 , x2 + u − v + s3 = 5 , x1, x2, u, v, s1, s2, s3 ≥ 0 . @freakonometrics freakonometrics freakonometrics.hypotheses.org 4
  • 5. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method Write the coefficients of the problem into a tableau x1 x2 u v s1 s2 s3 1 1 −1 1 0 0 0 1 2 −1 −2 2 1 0 0 5 1 −1 0 0 0 1 0 4 0 1 1 −1 0 0 1 5 −1 −2 −3 3 0 0 0 0 with constraints on top and coefficients of the objective function are written in a separate bottom row (with a 0 in the right hand column) we need to choose an initial set of basic variables which corresponds to a point in the feasible region of the linear program-ming problem. E.g. x1 and s1, s2, s3 @freakonometrics freakonometrics freakonometrics.hypotheses.org 5
  • 6. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method Use Gaussian elimination to (1) reduce the selected columns to a permutation of the identity matrix (2) eliminate the coefficients of the objective function x1 x2 u v s1 s2 s3 1 1 −1 1 0 0 0 1 0 −3 0 0 1 0 0 3 0 −2 1 −1 0 1 0 3 0 1 1 −1 0 0 1 5 0 −1 −4 4 0 0 0 1 the objective function row has at least one negative entry @freakonometrics freakonometrics freakonometrics.hypotheses.org 6
  • 7. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method x1 x2 u v s1 s2 s3 1 1 −1 1 0 0 0 1 0 −3 0 0 1 0 0 3 0 −2 1 −1 0 1 0 3 0 1 1 −1 0 0 1 5 0 −1 −4 4 0 0 0 1 This new basic variable is called the entering variable. Correspondingly, one formerly basic variable has then to become nonbasic, this variable is called the leaving variable. @freakonometrics freakonometrics freakonometrics.hypotheses.org 7
  • 8. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method The entering variable shall correspond to the column which has the most negative entry in the cost function row the most negative cost function coefficient in column 3, thus u shall be the entering variable The leaving variable shall be chosen as follows : Compute for each row the ratio of its right hand coefficient to the corresponding coefficient in the entering variable column. Select the row with the smallest finite positive ratio. The leaving variable is then determined by the column which currently owns the pivot in this row. The smallest positive ratio of right hand column to entering variable column is in row 3, as 3 1 < 5 1 . The pivot in this row points to s2 as the leaving variable. @freakonometrics freakonometrics freakonometrics.hypotheses.org 8
  • 9. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method x1 x2 u v s1 s2 s3 1 1 −1 1 0 0 0 1 0 −3 0 0 1 0 0 3 0 −2 1 −1 0 1 0 3 0 1 1 −1 0 0 1 5 0 −1 −4 4 0 0 0 1 @freakonometrics freakonometrics freakonometrics.hypotheses.org 9
  • 10. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method After going through the Gaussian elimination once more, we arrive at x1 x2 u v s1 s2 s3 1 −1 0 0 0 1 0 4 0 −3 0 0 1 0 0 3 0 −2 1 −1 0 1 0 3 0 3 0 0 0 −1 1 2 0 −9 0 0 0 4 0 13 Here x2 will enter and s3 will leave @freakonometrics freakonometrics freakonometrics.hypotheses.org 10
  • 11. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method After Gaussian elimination, we find x1 x2 u v s1 s2 s3 1 0 0 0 0 2 3 1 3 14 3 0 0 0 0 1 −1 1 5 0 0 1 −1 0 1 3 2 3 13 3 0 1 0 0 0 −1 3 1 3 2 3 0 0 0 0 0 1 3 19 There is no more negative entry in the last row, the cost cannot be lowered @freakonometrics freakonometrics freakonometrics.hypotheses.org 11
  • 12. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Simplex Method The algorithm is over, we now have to read off the solution (in the last column) x1 = 14 3 , x2 = 2 3 , x3 = u = 13 3 , s1 = 5, v = s2 = s3 = 0 and the minimal value is −19 @freakonometrics freakonometrics freakonometrics.hypotheses.org 12
  • 13. Arthur Charpentier, Master Statistique & Économétrie - Université Rennes 1 - 2017 Duality Consider a transportation problem. Some good is available at location A (at no cost) and may be transported to locations B, C, and D according to the following directed graph B 4 !! 3 A 2 ** 1 44 D C 5 == On each of the edges, the unit cost of transportation is cj for j = 1, . . . , 5. At each of the vertices, bi units of the good are sold, where i = B, C, D. How can the transport be done most efficiently? @freakonometrics freakonometrics freakonometrics.hypotheses.org 13
  • 14. Arthur Charpentier, Master Statistique Économétrie - Université Rennes 1 - 2017 Duality Let xj denotes the amount of good transported through edge j We have to solve minimize {c1 x1 + · · · + c5 x5} (2) subject to x1 − x3 − x4 = bB , (3) x2 + x3 − x5 = bC , (4) x4 + x5 = bD . (5) Constraints mean here that nothing gets lost at nodes B, C, and D, except what is sold. @freakonometrics freakonometrics freakonometrics.hypotheses.org 14
  • 15. Arthur Charpentier, Master Statistique Économétrie - Université Rennes 1 - 2017 Duality Alternatively, instead of looking at minimizing the cost of transportation, we seek to maximize the income from selling the good. maximize {yB bB + yC bC + yD bD} (6) subject to yB − yA ≤ c1 , (7) yC − yA ≤ c2 , (8) yC − yB ≤ c3 , (9) yD − yB ≤ c4 , (10) yD − yC ≤ c5 . (11) Constraints mean here that the price difference cannot not exceed the cost of transportation. @freakonometrics freakonometrics freakonometrics.hypotheses.org 15
  • 16. Arthur Charpentier, Master Statistique Économétrie - Université Rennes 1 - 2017 Duality Set x =      x1 ... x5      , y =      yB yC yD      , and A =      1 0 −1 −1 0 0 1 1 0 −1 0 0 0 1 1      , The first problem - primal problem - is here minimize {cT x} subject to Ax = b, x ≥ 0 . and the second problem - dual problem - is here maximize {yT b} subject to yT A ≤ cT . @freakonometrics freakonometrics freakonometrics.hypotheses.org 16
  • 17. Arthur Charpentier, Master Statistique Économétrie - Université Rennes 1 - 2017 Duality The minimal cost and the maximal income coincide, i.e., the two problems are equivalent. More precisely, there is a strong duality theorem Theorem The primal problem has a nondegenerate solution x if and only if the dual problem has a nondegenerate solution y. And in this case yT b = cT x. See Dantzig Thapa (1997) Linear Programming @freakonometrics freakonometrics freakonometrics.hypotheses.org 17