Docsity

Stochastic Programming-Convex Optimization-Lecture Slides, Slides of Convex Optimization

Partial preview of the text

Download Stochastic Programming-Convex Optimization-Lecture Slides and more Slides Convex Optimization in PDF only on Docsity!

Stochastic programming

stochastic programming

’certainty equivalent’ problem

violation/shortfall constraints and penalties

Monte Carlo sampling methods

validation

sources: Nemirovsky & Shapiro EE364A — Stochastic Programming

1 docsity.com

Stochastic programming

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

Example with analytic form for

F

i

f

x

Ax

b

22

, with

A

b

random

F

x

E

f

x

x

T

P x

q

T

x

r

, where

P

E

A

T

A

q

E

A

T

b

r

E

b

2 2

only need second moments of

A, b

stochastic constraint

E

f

x

can be expressed as standard

quadratic inequality

4 docsity.com

‘Certainty-equivalent’ problem

‘certainty-equivalent’ (a.k.a. ‘mean field’) problem:

minimize

f

0

x,

E

ω

subject to

f

i

x,

E

ω

i

,... , m

roughly speaking: ignore parameter variation

if

f

i

convex in

ω

for each

x

, then

f

i

x,

E

ω

E

f

i

x, ω

so optimal value of certainty-equivalent problem is lower bound onoptimal value of stochastic problem

5 docsity.com

Expected violation/shortfall constraints/penalties

replace

E

f

i

x, ω

with

E

f

i

x, ω

ǫ

(LHS is expected violation)

E

(max

i

f

i

x, ω

ǫ

(LHS is expected worst violation)

variation: add violation/shortfall penalty to objective

minimize

E

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 and percentile optimization

‘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

Finite event set

suppose

ω

ω

1

,... , ω

N

, with

π

j

Prob

ω

ω

j

sometime called ‘scenarios’; often we have

π

j

/N

stochastic programming problem becomes

minimize

F

0

x

Nj

=

π

j

f

0

x, ω

j

subject to

F

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

N

10 docsity.com

Monte Carlo sampling method

a general method for (approximately) solving stochastic programmingproblem

generate

N

samples (realizations)

ω

1

,... , ω

N

, with associated

probabilities

π

1

,... , π

N

(usually

π

j

/N

form sample average approximations

F

i

x

N ∑ j

=

π

j

f

i

x, ω

j

i

,... , m

these are RVs (via

ω

1

,... , ω

N

) with mean

E

f

i

x, ω

F

i

x

11 docsity.com

Out-of-sample validation

a practical method to check if

N

is ‘large enough’

use a second set of samples (‘validation set’)

ω

val 1

,... , ω

val M

, with

probabilities

π

val 1

,... , π

val M

(usually

M

N

(original set of samples called ‘training set’)

evaluate

F

val i

x

⋆ mcs

M ∑ j

=

π

val j

f

i

x

⋆ mcs

, ω

val j

i

,... , m

if

F

i

x

⋆ mcs

F

val i

x

⋆ mcs

, our confidence that

x

⋆ mcs

x

⋆

is enhanced

if not, increase

N

and re-compute

x

⋆ mcs

13 docsity.com

Example

we consider problem

minimize

F

0

x

E

max

i

Ax

b

i

subject to

F

1

x

E

max

i

Cx

d

i

with optimization variable

x

R

n

A

R

m

×

n

b

R

m

C

R

k

×

n

d

R

k

are random

we consider instance with

n

m

k

certainty-equivalent optimal value yields lower bound

we use Monte Carlo sampling with

N

validation set uses

M

14 docsity.com

Production planning with uncertain demand

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

A

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

E

p

T

min(

d, q

c

T

r

subject to

r

Aq,

q

r

16 docsity.com

Problem instance

problem instance has

n

m

d

log-normal

certainty-equivalent problem yields upper bound

we use Monte Carlo sampling with

N

training samples

validated with

M

validation samples

F

0

training

validation

CE (using

d

CE validation

17 docsity.com

Minimum average loss prediction

x, y

R

n

×

R

have some joint distribution

find weight vector

w

R

n

for which

w

T

x

is a good estimator of

y

choose

w

to minimize expected value of a convex

loss function

l

J

w

E

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

,... , N

19 docsity.com

Monte Carlo sampling method (called

training

choose

w

to minimize sample average loss

w

sa

= argmin

w

N

N

∑^ i

=

l

w

T

x

i

y

i

with associated sample average loss

J

sa

validate predictor

y

w

T sa

x

on a different set of

M

samples:

J

val

M

M ∑^ i

=

l

w

T sa

x

val i

y

val i

if

J

sa

J

val

(and

M

is large enough), we say predictor

generalizes

20 docsity.com