













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














stochastic programming
’certainty equivalent’ problem
violation/shortfall constraints and penalties
Monte Carlo sampling methods
validation
sources: Nemirovsky & Shapiro EE364A — Stochastic Programming
1 docsity.com
objective and constraint functions
f
i
x, ω
depend on optimization
variable
x
and
a random variable
ω
ω
models
parameter variation and uncertainty
random variation in implementation, manufacture, operation
value of
ω
is not known, but its distribution is
goal: choose
x
so that
constraints are satisfied on average, or with high probability
objective is small on average, or with high probability
2 docsity.com
i
f
x
Ax
b
22
, with
b
random
x
f
x
x
T
P x
q
T
x
r
, where
T
q
T
b
r
b
2 2
only need second moments of
A, b
stochastic constraint
f
x
can be expressed as standard
quadratic inequality
4 docsity.com
‘certainty-equivalent’ (a.k.a. ‘mean field’) problem:
minimize
f
0
x,
ω
subject to
f
i
x,
ω
i
,... , m
roughly speaking: ignore parameter variation
if
f
i
convex in
ω
for each
x
, then
f
i
x,
ω
f
i
x, ω
so optimal value of certainty-equivalent problem is lower bound onoptimal value of stochastic problem
5 docsity.com
replace
f
i
x, ω
with
f
i
x, ω
ǫ
(LHS is expected violation)
(max
i
f
i
x, ω
ǫ
(LHS is expected worst violation)
variation: add violation/shortfall penalty to objective
minimize
f
0
x, ω
mi
=
c
i
f
i
x, ω
where
c
i
are penalty rates for violating constraints
these are convex problems if
f
i
are convex in
x
7 docsity.com
‘chance constraints’ (
η
is ‘confidence level’):
Prob
f
i
x, ω
η
convex in some cases
generally interested in
η
η
meaningless (unless you’re sure about the distribution tails)
percentile optimization (
γ
is ‘
η
-percentile’):
minimize
γ
subject to
Prob
f
0
x, ω
γ
η
convex or quasi-convex in some cases
these topics covered next lecture
8 docsity.com
suppose
ω
ω
1
,... , ω
N
, with
π
j
Prob
ω
ω
j
sometime called ‘scenarios’; often we have
π
j
stochastic programming problem becomes
minimize
0
x
Nj
=
π
j
f
0
x, ω
j
subject to
i
x
Nj
=
π
j
f
i
x, ω
j
i
,... , m
a (standard) convex problem if
f
i
convex in
x
computational complexity grows
linearly
in the number of scenarios
10 docsity.com
a general method for (approximately) solving stochastic programmingproblem
generate
samples (realizations)
ω
1
,... , ω
N
, with associated
probabilities
π
1
,... , π
N
(usually
π
j
form sample average approximations
i
x
N ∑ j
=
π
j
f
i
x, ω
j
i
,... , m
these are RVs (via
ω
1
,... , ω
N
) with mean
f
i
x, ω
i
x
11 docsity.com
a practical method to check if
is ‘large enough’
use a second set of samples (‘validation set’)
ω
val 1
,... , ω
val M
, with
probabilities
π
val 1
,... , π
val M
(usually
(original set of samples called ‘training set’)
evaluate
val i
x
⋆ mcs
M ∑ j
=
π
val j
f
i
x
⋆ mcs
, ω
val j
i
,... , m
if
i
x
⋆ mcs
val i
x
⋆ mcs
, our confidence that
x
⋆ mcs
x
⋆
is enhanced
if not, increase
and re-compute
x
⋆ mcs
13 docsity.com
we consider problem
minimize
0
x
max
i
Ax
b
i
subject to
1
x
max
i
Cx
d
i
with optimization variable
x
n
m
×
n
b
m
k
×
n
d
k
are random
we consider instance with
n
m
k
certainty-equivalent optimal value yields lower bound
we use Monte Carlo sampling with
validation set uses
14 docsity.com
manufacture quantities
q
q
1
,... , q
m
of
m
finished products
purchase raw materials in quantities
r
r
1
,... , r
n
with costs
c
c
1
,... , c
n
, so total cost is
c
T
r
manufacturing process requires
r
Aq
ij
is amount of raw material
i
needed per unit of finished product
j
product demand
d
d
1
,... , d
m
is random, with known distribution
product prices are
p
p
1
,... , p
m
, so total revenue is
p
T
min(
d, q
maximize (expected) net revenue (over optimization variables
q
r
maximize
p
T
min(
d, q
c
T
r
subject to
r
Aq,
q
r
16 docsity.com
problem instance has
n
m
d
log-normal
certainty-equivalent problem yields upper bound
we use Monte Carlo sampling with
training samples
validated with
validation samples
0
training
validation
CE (using
d
CE validation
17 docsity.com
x, y
n
have some joint distribution
find weight vector
w
n
for which
w
T
x
is a good estimator of
y
choose
w
to minimize expected value of a convex
loss function
l
w
l
w
T
x
y
l
u
u
2
: mean-square error
l
u
u
: mean-absolute error
we do not know joint distribution, but we have independent samples(‘training data’)
x
i
, y
i
i
19 docsity.com
Monte Carlo sampling method (called
training
choose
w
to minimize sample average loss
w
sa
= argmin
w
N
∑^ i
=
l
w
T
x
i
y
i
with associated sample average loss
sa
validate predictor
y
w
T sa
x
on a different set of
samples:
val
M ∑^ i
=
l
w
T sa
x
val i
y
val i
if
sa
val
(and
is large enough), we say predictor
generalizes
20 docsity.com