EL6233 Lecture4
EL6233 Lecture4
Goal:
How to use LP to model multi‐period cash
management in financial firms?
Objective:
Maximize cash on hand at the end of year 3.
Objective function:
P x2 1.9 x4 1.5x5 1.08S2
@2020 New York University Tandon
2/24/2020 126
School of Engineering
Solution (cont’d)
Constraints:
0 xi 75K , i 1, 2, ,5;
0 St , t 0,1, 2;
x1 x3 x4 S0 100 K ; (year 0)
0.5 x1 1.2 x3 1.08S0 x2 S1 ; (year 1)
x1 0.5 x2 1.08S1 x5 S 2 (year 2).
(cash available) (cash invested)
@2020 New York University Tandon
2/24/2020 127
School of Engineering
Solution (cont’d)
Maximizing solution:
P 218,500; with
*
x 75, 000;
5
*
x S0 S S 2 0.
3
* *
1
* *
min P c x T
subject to Ax b
Ax b
x 0.
@2020 New York University Tandon
2/24/2020 134
School of Engineering
Dual of a LP in Standard Form (cont’d)
Then, its “canonical” dual LP is:
max Pd u T b vT b
subject to AT u AT v c
u0 Or,
v 0.
max Pd bT
subject to A c T
min P c x T
subject to A1 x b1
A2 x b2
A3 x b3
x 0.
@2020 New York University Tandon
2/24/2020 136
School of Engineering
An LP with Mixed Constraints (cont’d)
subject to Ax b subject to AT c
x0 free variable
Then
P c x Pd b
T T
for any feasible x, .
@2020 New York University Tandon
2/24/2020 138
School of Engineering
Relation of primal and dual values:
min P x1
subject to x1 1
x1 1
x1 0.
What is its dual problem? Unbounded?
@2020 New York University Tandon
2/24/2020 141
School of Engineering
An Example (cont’d)
The dual problem is
max Pd 1 2
subject to 1 2 1
1 , 2 0.
P cT x Pd bT for optimal x, .
@2020 New York University Tandon
2/24/2020 143
School of Engineering
Sketch of Proof
Let x* be an optimal basic feasible solution for the primal
x* col xB xN .
Noting that A B N and c col cB cN , then
xB B 1b and the reduced costs cTN cBT B 1 N 0.
T
1 T 1 1
A * A ( B ) cB ( B A) cB I B N
T T T
cB
col cB (B 1 N )T cB col(cB cN ) : c.
* ( B 1 )T cB is optimal because
Pd bT * bT ( B 1 )T cB ( B 1b)T cB cT x* P* .
xTB
T
1
A * c, with * B
T
cB
min P x1 2 x2
subject to 2 x1 x2 2
x1 2 x2 7
x1 3
x1 , x2 0.
@2020 New York University Tandon
2/24/2020 148
School of Engineering
A Practical Example
A baker produces two types of cakes:
x1 elaborate and x2 simple .
max P 24 x1 14x2
subject to 3x1 2 x2 1200 (basic ingredients)
4x1 x2 1000 (fancier ingredients)
2 x1 x2 700 (labor)
x1 0, x2 0.
@2020 New York University Tandon
2/24/2020 149
School of Engineering
A Practical Example (cont’d)
Its dual LP problem is:
• It is optimal if
1
c c B N 0.
T
N
T
B
Basic rhs
x1 x2 x3 x4 x5
-P 0 0 0 1 2 13
x2 0 1 0 1/2 1/2 5
x1 1 0 0 0 1 3
x3 0 0 1 -1/2 3/2 3
1 2 1 0 0.5 0.5
1
B 2 1 0 , B 0 0 1 ,
0 1 0 1 0.5 1.5
0 0 0.5 0.5
N 1 , B 1 N ,
0 0 1
0 1 0.5 1.5
cB 2 1 0 , cN 0 0 .
T T
Reduced costs:
c c B N 1 2 (0 0)
1
T T T T
N B
Or equivalently,
5 0.5
B 1b B 1b 3 0
3 0.5
implying the claimed range for .
@2020 New York University Tandon
2/24/2020 161
School of Engineering
An Example of Sensitivity Analysis
Validate the above claim by solving the perturbed LP problem
min P x1 2 x2
subject to 2 x1 x2 2,
x1 2 x2 7 ,
x1 3,
x1 , x2 0.
for different perturbations : 4, 8, 1, 4.
c x b y x s n .
T T T
k 1 k , 0 1.
min P 2 x1 3 x2 2 x3 x4 x5
3 x1 3 x2 4 x3 2 x4 x5 0,
subject to x1 x2 x3 3 x4 x5 2,
x 0, i 1, ,5.
i
@2020 New York University Tandon
2/24/2020 172
School of Engineering