Applied Math For DS: Son P. Nguyen
Applied Math For DS: Son P. Nguyen
Applied Math For DS: Son P. Nguyen
Operations Research
Son P. Nguyen
UEL
VNU in HCMC
June 9, 2018
Table of Contents
1 Mathematical modeling
2 Operations Research
SilComputers
SilComputers
More examples
Every worker works five consecutive days, and then takes two
days off, repeating this pattern idefinitely. How can we
minimize the number of workers that staff the restaurant.
Characteristics of Models
Benefits of Modeling
Y = f (X1 , . . . , Xn )
where
Y = dependent (response) variable (aka bottom-line
performance measure).
Xi = independent (explanatory) variables (inputs having an
impact on Y)
f (·) = function defining the relationship between the Xi & Y
Table of Contents
1 Mathematical modeling
2 Operations Research
Graphical Method
The simplex method
LP model
LP model
LP model
The solution
x1 + 2x2 = 15
4x1 + 3x2 = 25
x1 + 2x2 = 15
4x1 + 3x2 = 25
Recall
The optimal solution happens on the boundary of the feasible
region.
In particular, it is at a vertex of the feasible region.
x1 + 2x2 = 15
4x1 + 3x2 = 25
Recall
The optimal solution happens on the boundary of the feasible
region.
In particular, it is at a vertex of the feasible region.
Standard form
z x1 x2 x3 x4 x5 RHS
λi
1 -0,75 -1 0 0 0 0
0 1 1 1 0 0 10 10
0 1 2 0 1 0 15 15/2
0 4 3 0 0 1 25 25/3
Example
Starting position
Example
After step 1
z x1 x2 x3 x4 x5 RHS
λi
1 -1/4 0 0 1/2 0 15/2
0 1/2 0 1 -1/2 0 5/2 5
0 1/2 1 0 1/2 0 15/2 15
0 5/2 0 0 -3/2 1 5/2 1
Example
After step 1
Example
z x1 x2 x3 x4 x5 RHS
λi
1 0 0 0 4/5 1/10 7.75
0 0 0 1 1/4 -1/5 2
0 0 1 0 5/4 -1/5 7
0 1 0 0 -3/5 2/5 1
Example