ADVANCED ALGORITHMS Lecture 19: optimization, linear programming 1 - - PowerPoint PPT Presentation

advanced algorithms
SMART_READER_LITE
LIVE PREVIEW

ADVANCED ALGORITHMS Lecture 19: optimization, linear programming 1 - - PowerPoint PPT Presentation

ADVANCED ALGORITHMS Lecture 19: optimization, linear programming 1 ANNOUNCEMENTS HW 4 is due on Monday, November 5 lb mod 2 Project meetings air n L 2 LAST CLASS Optimization {x 1 , x 2 , , x n } are variables


slide-1
SLIDE 1

ADVANCED ALGORITHMS

Lecture 19: optimization, linear programming

1

slide-2
SLIDE 2

ANNOUNCEMENTS

➤ HW 4 is due on Monday, November 5 ➤ Project meetings …

2

air

lb

n

mod2

L

slide-3
SLIDE 3

LAST CLASS

3

➤ Optimization ➤ Can phrase many natural problems as optimization — e.g. scheduling, matching,

shortest paths, … [[why?]]

➤ {x1, x2, …, xn} are variables — values in some domain D ➤ find maximum value of f(x) subject to


g2(x) ≥ 0 g1(x) ≥ 0 ….

slide-4
SLIDE 4

EXAMPLE: MATCHING

4

slide-5
SLIDE 5

EXAMPLE: SHORTEST PATHS

5

➤ What are variables? ➤ What are constraints? ➤ What is the objective?


{xe}e∈E

Variables: Three different ways of writing constraints … (“matrix powers”, flow based, cut based) Objective: minimize∑

e

wexe

AE

I

O't

V

j

linear constrain

exponentially manyof

their

polynomial constraints

introducing directed

edges

in deg

  • ut degree I
slide-6
SLIDE 6

EXAMPLE: SPANNING TREE

6

WE

a

Pro I

G

aoe

is.to

a

sub

Ledges of min

see 0 if

e is notselected

total weight

so that

the

l if

e is selected

graph is connected

Obelix

min Exe we

if

To

ideas take any

method we saw for enforcing

a

path between

s t

use such constraints As 1

slide-7
SLIDE 7

EXAMPLE: SPANNING TREE

7

idea

see

n

t

along with

no cycles

f

Hs

E

ne

E 1st I

e with

bothendpbu.rs

Cut

m

Vstfo.BE He 7

e in the

cut 15,5

slide-8
SLIDE 8

ZOOMING OUT

8

➤ What are variables? ➤ What are constraints? ➤ What is the objective?


Argue about constraints

capturing the problem

slide-9
SLIDE 9

WHEN CAN WE SOLVE OPTIMIZATION?

9

➤ The bad news: ➤ all the formulations we wrote so far are intractable!


ni E 0113

D

Discrete optimization

is generally hard

slide-10
SLIDE 10

WHEN CAN WE SOLVE OPTIMIZATION?

10

➤ The bad news: ➤ all the formulations we wrote so far are intractable!
 ➤ The good news: ➤ Continuous optimization with linear constraints, objective ➤ Convex optimization


Main challenge: can we express problem of interest as an optimization we can solve?

Linear programs

i

local search

slide-11
SLIDE 11

TODAY

11

➤ Linear and convex optimization ➤ Visualizing linear optimization ➤ Express problems as linear optimization ➤ What to do with a solution?


slide-12
SLIDE 12

LINEAR PROGRAMMING

12

Variables

a fx

xn EIR

Objedive

min

c

n

t Gaz t

1 Cnnn

I Ise

Constraints

Ann t Aizazt

t AinXn

I b ATn Sb

I

slide-13
SLIDE 13

LINEAR PROGRAMMING — TWO DIMENSIONS

13

ni

na EIR

q

m.nuTsnbiea to

II

Gen

sn

Each constraint is

half space

Overall set of feasible solutions is

an

intersection of half spaces

I

slide-14
SLIDE 14

t.io

I.T

X

1

2

X

X

L j

X

t Xz

2

FE

c

a

a

Objective function defines

a direction

the optimum point is

the'furthestpoint

in the

fean.to

Qection

slide-15
SLIDE 15

LINEAR PROGRAMMING — TWO DIMENSIONS

14

slide-16
SLIDE 16

OPTIMAL POINT ALWAYS A “CORNER”

15

suppose

the

feasible set

at

Aaa'InI

is

mdd Then for any

e EIR

theanoptimalpoint

F

corner point of this feasible set

I

c

Hand

warytof

slide-17
SLIDE 17

ALGORITHM FOR LINEAR PROGRAMMING — 2 DIMENSIONS

16

slide-18
SLIDE 18

GENERAL ALGORITHM & RUN TIME

17

slide-19
SLIDE 19

IMPROVEMENT — ALWAYS MOVE TO “NEIGHBOR”?

18

slide-20
SLIDE 20

CAN WE GET STUCK?

19

slide-21
SLIDE 21

CONVEX OPTIMIZATION

20

slide-22
SLIDE 22

GENERAL RESULTS

21

➤ [Dantzig]: simplex algorithm ➤ Khachiyan’s “ellipsoid” algorithm

slide-23
SLIDE 23

MATCHING AS LINEAR PROGRAMS

22

slide-24
SLIDE 24

MATCHING AS LINEAR PROGRAMS

23