Two-Stage Stochastic Linear Programs
Operations Research
Anthony Papavasiliou
Two-Stage Stochastic Linear Programs
1
Short Reviews
Probability Spaces and Random Variables Convex Analysis
2
Deterministic Linear Programs
3
Two-Stage Stochastic Linear Programs
Outline
1
Short Reviews
Probability Spaces and Random Variables Convex Analysis
2
Deterministic Linear Programs
3
Two-Stage Stochastic Linear Programs
Probability Spaces
A probability space is the triplet (Ω, A, P), where
Ω: set of all random outcomes (example: six possible results of throwing die)
A: collection of random events, where events are subsets of Ω (example: odd numbers, ≤ 4)
Mapping P : A → [0, 1] with P(∅) = 0, P(Ω) = 1 and
P(A
1∪ A
2) = P(A
1) + P(A
2) if A
1∩ A
2= ∅
Distributions
Cumulative distribution function of a random variable ξ is defined as F
ξ(x ) = P(ξ ≤ x )
For discrete random variables, probability mass distribution f is defined as f (ξ
k) = P(ξ = ξ
k), k ∈ K with P
k ∈K
f (ξ
k) = 1 For continuous random variables, density function f is defined by P(a ≤ ξ ≤ b) = R
ba
f (ξ)d ξ = R
ba
dF (ξ) with R
∞−∞
dF (ξ) = 1
Expectation, Variance, Quantiles
The expectation of a random variable is µ = P
k ∈K
ξ
kf (ξ
k) (discrete) or R
∞−∞
ξdF (ξ) (continuous)
The variance of a random variable is E[(ξ − µ)
2] The rth moment of ξ is ¯ ξ
(r )= E[ξ
r]
The α-quantile of ξ is a point η such that for 0 < α < 1,
η = min{x |F (x ) ≥ α}
Convex Set, Extreme Point, Convex Hull
A convex combination of points x
i, i = 1, . . . , n, is a point P
ni=1
λ
ix
iwhere P
ni=1
λ
i= 1, λ
i≥ 0, i = 1, . . . , n
X is a convex set if it contains any convex combination of points x
i∈ X
Extreme point of a convex set: a point which cannot be
expressed as the convex combination of two distinct points in the set
Convex hull of a set of points: the set of all convex combinations
of these points
Affine Sets and Hyperplanes
h(x ) = 0 is an affine constraint if it can be expressed as h(x ) = Ax − b
Affine space: the set h(x ) = 0
Each set h
i(x ) = A
i·x − b = 0 is a hyperplane (where A
i·is the i-th row of A)
Ax = 0 is the parallel subspace
The dimension of an affine space is the dimension of its parallel
subspace
Convex Functions
f is a convex function if for all 0 ≤ λ ≤ 1 and any x
1, x
2we have f (λx
1+ (1 − λ)x
2) ≤ λf (x
1) + (1 − λ)f (x
2)
The domain of f , dom f is the set where f is finite
f is concave if −f is convex
Epigraph
The epigraph of f is the set epi (f ) = {(x , β)|β ≥ f (x )}
f is convex if and only if its epigraph is convex
Piecewise Linearity and Separability
A continuous function f is piecewise linear if it is linear over regions defined by linear inequalities
A function is separable when it can be written as f = P
n i=1f
i(x )
Both of these properties can be exploited in computation
Outline
1
Short Reviews
Probability Spaces and Random Variables Convex Analysis
2
Deterministic Linear Programs
3
Two-Stage Stochastic Linear Programs
Deterministic Linear Programs
min z = c
Tx s.t. Ax = b x ≥ 0
x ∈ R
n, c ∈ R
n, A ∈ R
m×n, b ∈ R
mA solution is a vector x such that Ax = b A feasible solution is a solution with x ≥ 0
An optimal solution is a feasible solution x
?such that
c
Tx
?≤ c
Tx for all feasible solutions x
Linear Programming Definitions
A basis is a choice of n linearly independent columns of A, with A = [B, N] (after rearrangement)
Associated with a basis, we have a basic solution x
B= B
−1b, x
N= 0, z = c
BTB
−1b
Basic feasible solutions correspond to extreme points of {x|Ax = b, x ≥ 0}
Condition for basis to be feasible: B
−1b ≥ 0
optimal: c
TN− c
TBB
−1N ≥ 0 (can you prove this?)
Dual Problem
max π
Tb s.t. π
TA ≤ c
TUnbounded dual ⇒ infeasible primal Unbounded primal ⇒ infeasible dual Primal and dual can be infeasible
If x is primal feasible and π is dual feasible, c
Tx ≤ π
Tb There exists primal optimal solution x
?⇔ there exists dual optimal solution π
?Strong duality: c
Tx
?= (π
?)
Tb
Linear Programming Duality Mnemonic Table
Primal Minimize Maximize Dual Constraints ≥ b
i≥ 0 Variables
≤ b
i≤ 0
= b
iFree
Variables ≥ 0 ≤ c
jConstraints
≤ 0 ≥ c
jFree = c
jOutline
1
Short Reviews
Probability Spaces and Random Variables Convex Analysis
2
Deterministic Linear Programs
3
Two-Stage Stochastic Linear Programs
2-Stage Stochastic Linear Programs
Stochastic linear programs: linear programs with uncertain data
Recourse programs: some decisions (recourse actions) can be taken after uncertainty is disclosed
First-stage decisions: decisions taken before uncertainty is revealed
Second-stage decisions: decisions taken after uncertainty is revealed
Sequence of events: x → ξ(ω) → y (ω, x )
Sequence of Events
Mathematical Formulation
min z = c
Tx + E
ξ[min q(ω)
Ty (ω)]
s.t. Ax = b
T (ω)x + Wy (ω) = h(ω) x ≥ 0, y (ω) ≥ 0
First stage decisions x ∈ R
n1, c ∈ R
n1, b ∈ R
m1, A ∈ R
m1×n1For a given realization ω, second-stage data are q(ω) ∈ R
n2, h(ω) ∈ R
m2, T (ω) ∈ R
m2×n1All random variables of the problem are assembled in a single
Example: Capacity Expansion Planning
min
x ,y ≥0 n
X
i=1
(I
i· x
i+ E
ξm
X
j=1
C
i· T
j· y
ij(ω))
s.t.
n
X
i=1
y
ij(ω) = D
j(ω), j = 1, . . . , m
m
X
j=1
y
ij(ω) ≤ x
i, i = 1, . . . n
I
i, C
i: fixed/variable cost of technology i
D
j(ω), T
j: height/width of load block j
y
ij(ω): capacity of i allocated to j
Example: Procrastination
x ,y ≥0