P a r t 2 2 I n t e g e r p r o g r a m m i n - - PowerPoint PPT Presentation

p a r t 2 2 i n t e g e r p r o g r a m m i n g p r o b l
SMART_READER_LITE
LIVE PREVIEW

P a r t 2 2 I n t e g e r p r o g r a m m i n - - PowerPoint PPT Presentation

P a r t 2 2 I n t e g e r p r o g r a m m i n g p r o b l e m s 1 4 0 Terminology Discrete optimization problems: If some or all variables can only take on certain values. Example: min x f ( x ) subject to Ax


slide-1
SLIDE 1

1 4

P a r t 2 2 I n t e g e r p r

  • g

r a m m i n g p r

  • b

l e m s

slide-2
SLIDE 2

1 4 1

Terminology

Discrete optimization problems: If some or all variables can only take

  • n certain values.

Example:

min x f (x) subject to Ax≥b x1∈{1,2.5,3.75, 17} x2∈{2, 4,6,8}

slide-3
SLIDE 3

1 4 2

Terminology

Integer optimization problems: If some or all variables can only take

  • n integer values.

Example:

min x f (x) subject to Ax≥b x1∈{1,2,3, 7} x2∈{2, 4,6,8}

slide-4
SLIDE 4

1 4 3

Terminology

Note: We can typically convert discrete optimization problems into integer optimization problems. Example: is equivalent to

min x f (x) subject to Ax≥b x1∈{1,2.5,3.75, 17} x2∈{2, 4,6,8} min x , y f (x) subject to Ax≥b x2∈{2, 4,6,8} y1 , y2 , y3 , y4∈{0,1} y1+ y2+ y3+ y4=1 x1=1 y1+2.5 y2+3.75 y3+17 y4

slide-5
SLIDE 5

1 4 4

Terminology

Integer linear program (ILP): If all variables can only take on integer values and the objective function is linear. Example:

min x 1, x 2 f (x)=c

T x

subject to Ax≥b x1∈{1,2,3, 7} x2∈{2, 4,6,8}

slide-6
SLIDE 6

1 4 5

Terminology

Mixed integer linear program (MILP): If some but not all variables can only take on integer values and the objective function is linear. Example:

min x 1, x 2, x 3 f ( x)=c

T x

subject to Ax≥b x1∈{1,2,3, 7} x2∈{2, 4,6,8}

slide-7
SLIDE 7

1 4 6

Terminology

Mixed integer nonlinear program (MINP): If some but not all variables can only take on integer values and the objective function is nonlinear. Example:

min x 1, x 2, x 3 f ( x) subject to Ax≥b x1∈{1,2,3, 7} x2∈{2, 4,6,8}

slide-8
SLIDE 8

1 4 7

Terminology

Zero-one linear program (ZOIP): If all variables can only take on zero or one values and the objective function is linear. Example: Note: ILPs can typically be converted into ZOIPs.

min x , y , z c

T x

subject to Ax≥b y1 , y2 , y3 , y4∈{0,1} z1 , z2, z 3, z4∈{0,1} y1+ y2+ y3+ y4=1 z1+ z2+ z3+ z4=1 x1=1 y1+2.5 y2+3.75 y3+17 y4 x2=2 z1+4 z2+6 z3+8 z 4

slide-9
SLIDE 9

1 4 8

Examples: The knapsack problem

Setting: Objects 1...N with values ci and weights wi. Goal: Pack maximal value subject to a weight constraint. Formulation:

maxx c

T x

subject to xi∈{0,1} w

T x = ∑i wi xi ≤ M

slide-10
SLIDE 10

1 4 9

Examples: The facility location problem

Setting: N potential facility locations to serve M clients. Fixed cost ci to

  • pen a facility at i. Cost to serve client j from i is dij.

Goal: Select facility locations and assign clients to facilities while minimizing cost. Formulation: Note: The last constraint implies that we can only serve client j from location i if location i has actually been selected.

min xi, yij ∑i ci xi+∑i ∑ j dij yij subject to xi∈{0,1} yij∈{0,1} yij ≤ xi

slide-11
SLIDE 11

1 5

Examples: The traveling salesman problem (TSP)

Setting: N cities. Time to travel from i to j is tij. Goal: Find a tour through all cities that takes the shortest amount of time. Formulation: Note: The second constraint implies that each city has exactly two selected edges. The third that each proper subset of cities must have at least two edges selected to the rest of the cities.

min xij ∑i∑ j tij xij subject to xij∈{0,1} ∑ j xij=2 for every i ∑i∈S∑ j∉S xij≥2 for every S⊂{1...N },S≠∅

slide-12
SLIDE 12

1 5 1

The geometry of ILP problems

Consider the problem Feasible points form a lattice inside the polyhedron described by the linear inequalities: In general, we will have to try a substantial fraction of points to find the optimum!

min xi c

T x

subject to xi∈ℕ Ax≥b

slide-13
SLIDE 13

1 5 2

Solution strategies: Branch and bound

Consider the problem Think of this as a decision tree that we can enumerate:

  • Pick x1=0
  • Are constraints satisfiable? If yes, pick x2=0
  • Are constraints satisfiable? If yes, pick x3=0
  • Choose x2=1
  • Are constraints satisfiable? If yes, pick x3=0

We visit every node of the tree. Keep track of the best one seen so far.

min xi c

T x

subject to xi∈{0,1} Ax≥b

slide-14
SLIDE 14

1 5 3

Solution strategies: Branch and bound

Consider the problem Think of this as a decision tree that we can enumerate. Improvement 1: If the cost so far exceeds the cost of the best path encountered, we need not continue searching in a sub-tree.

min xi c

T x

subject to xi∈{0,1} Ax≥b

slide-15
SLIDE 15

1 5 4

Solution strategies: Branch and bound

Consider the problem Think of this as a decision tree that we can enumerate. Improvement 2: If the cost so far plus a lower bound for the cost of the rest of the path exceeds the cost of the best path encountered, we need not continue searching in a sub-tree.

min xi c

T x

subject to xi∈{0,1} Ax≥b

slide-16
SLIDE 16

1 5 5

Solution strategies: Branch and bound

Think this through for the Traveling Salesman Problem: Consider four cities in a square around a desert, with travel times

  • 1 – 2: 1 hour
  • 2 – 3: 1 hour
  • 3 – 4: 1 hour
  • 1 – 4: 1 hour
  • 1 – 3: 4 hours
  • 1 – 4: 3 hours

The shortest tour is clearly 4 hours.