Introduction Welcome CSLog : Combinatorial Optimization, Discrete - - PowerPoint PPT Presentation

introduction welcome
SMART_READER_LITE
LIVE PREVIEW

Introduction Welcome CSLog : Combinatorial Optimization, Discrete - - PowerPoint PPT Presentation

Hands-on Tutorial on Optimization F. Eberle, R. Hoeksma, and N. Megow September 23, 2019 Introduction Welcome CSLog : Combinatorial Optimization, Discrete Algorithms and Logistics Franziska Eberle Dr. Ruben Hoeksma Prof. Nicole Megow Your


slide-1
SLIDE 1

Hands-on Tutorial on Optimization

  • F. Eberle, R. Hoeksma, and N. Megow

September 23, 2019

Introduction

slide-2
SLIDE 2

Welcome

CSLog: Combinatorial Optimization, Discrete Algorithms and Logistics Franziska Eberle

  • Dr. Ruben Hoeksma
  • Prof. Nicole Megow
slide-3
SLIDE 3

Your background?

◮ Math, CS, others?

slide-4
SLIDE 4

Your background?

◮ Math, CS, others? ◮ Bachelor, master, working?

slide-5
SLIDE 5

Your background?

◮ Math, CS, others? ◮ Bachelor, master, working? ◮ Do you know what an (integer) linear program is?

slide-6
SLIDE 6

Your background?

◮ Math, CS, others? ◮ Bachelor, master, working? ◮ Do you know what an (integer) linear program is? ◮ Have you modeled/solved (I)LPs?

slide-7
SLIDE 7

Organization

Tutorial week

◮ Mon-Fri 9:00-17:00 ◮ Wednesday special: guest tutorial FICO XPRESS ◮ Each day: theory and practice

slide-8
SLIDE 8

Organization

Tutorial week

◮ Mon-Fri 9:00-17:00 ◮ Wednesday special: guest tutorial FICO XPRESS ◮ Each day: theory and practice

Interactive!!!

slide-9
SLIDE 9

Organization

Tutorial week

◮ Mon-Fri 9:00-17:00 ◮ Wednesday special: guest tutorial FICO XPRESS ◮ Each day: theory and practice

Interactive!!!

Practical assignment

◮ Homework in groups (modeling, problem solving, report) ◮ Details on Friday

◮ Duration approx. 2 weeks ◮ Report and short code presentation

slide-10
SLIDE 10

Some examples of discrete optimization problems

(precise definition later)

slide-11
SLIDE 11

Example 1: Port logistics

◮ How to stack containers? (weight, order of arrival/removal) ◮ How to schedule crane operations and truck/train un/loading? ◮ Typical goals: minimize total time or maximize throughput

slide-12
SLIDE 12

Example 2: Production planning

◮ Temporal planning of steel flow ◮ Constraints: timing, resource capacity ◮ Min number strand interruptions

slide-13
SLIDE 13

Example 3: Timetabling

◮ How to find a (periodic) timetable for tram, bus, trains? ◮ Collision-free routing respecting many timing constraints ◮ Minimize waiting time (for passenger and/or vehicles) or number

  • f required trains/vehicles
slide-14
SLIDE 14

Example 4: Location planning

◮ Selecting the placement of facilities such as factories, warehouses,

ATMs, supermarkets, cell phone towers, etc.

◮ Guarantee coverage or other service quality ◮ Minimize total weighted distances from suppliers to customers ◮ Minimize total cost (opening facility plus service cost)

slide-15
SLIDE 15

Example 5: Network design and routing

◮ Add resources such as links, routers and switches into the network ◮ Establish connectivity or find paths/tours ◮ Reliability: robust against edge failure ◮ Minimize total cost of a tour or for creating a network

slide-16
SLIDE 16

Content and goals

Recognize problems

Classical discrete or linear

  • ptimization problems

Modeling Solve problems Some theory background

geometry of LPs, du- ality theory, solution methods: branch & bound, cutting planes, column generation

slide-17
SLIDE 17

Mathematical Optimization

Optimization problem

Given a set X of feasible solutions and an objective function f : X → R, find a solution x∗ ∈ X with maximal (min.) objective function value, i.e. for all x ∈ X holds: f (x∗) ≥ f (x) (f (x∗) ≤ f (x)).

slide-18
SLIDE 18

Mathematical Optimization

Optimization problem

Given a set X of feasible solutions and an objective function f : X → R, find a solution x∗ ∈ X with maximal (min.) objective function value, i.e. for all x ∈ X holds: f (x∗) ≥ f (x) (f (x∗) ≤ f (x)). In short: max f (x) s.t. x ∈ X

slide-19
SLIDE 19

Mathematical Optimization

Optimization problem

Given a set X of feasible solutions and an objective function f : X → R, find a solution x∗ ∈ X with maximal (min.) objective function value, i.e. for all x ∈ X holds: f (x∗) ≥ f (x) (f (x∗) ≤ f (x)). In short: max f (x) s.t. x ∈ X Or simply: max{f (x) | x ∈ X}

slide-20
SLIDE 20

Mathematical Optimization

Optimization problem

Given a set X of feasible solutions and an objective function f : X → R, find a solution x∗ ∈ X with maximal (min.) objective function value, i.e. for all x ∈ X holds: f (x∗) ≥ f (x) (f (x∗) ≤ f (x)). In short: max f (x) s.t. x ∈ X Or simply: max{f (x) | x ∈ X}

◮ x∗ is called optimal solution

slide-21
SLIDE 21

Mathematical Optimization

Optimization problem

Given a set X of feasible solutions and an objective function f : X → R, find a solution x∗ ∈ X with maximal (min.) objective function value, i.e. for all x ∈ X holds: f (x∗) ≥ f (x) (f (x∗) ≤ f (x)). In short: max f (x) s.t. x ∈ X Or simply: max{f (x) | x ∈ X}

◮ x∗ is called optimal solution

Too general to say anything meaningful!

slide-22
SLIDE 22

Linear Optimization

◮ Objective function is a linear function

f (x) = x1 − 3x2 + 2x3 where x1, x2, x3 are variables f (x) = 2x1 + a b x2 and a, b are parameters

slide-23
SLIDE 23

Linear Optimization

◮ Objective function is a linear function

f (x) = x1 − 3x2 + 2x3 where x1, x2, x3 are variables f (x) = 2x1 + a b x2 and a, b are parameters

◮ X is described by finitely many linear inequalities (constraints)

x1 − 3x2 ≤ 3 ax1 + 5x2 ≤ 12

slide-24
SLIDE 24

Linear Optimization

◮ Objective function is a linear function

f (x) = x1 − 3x2 + 2x3 where x1, x2, x3 are variables f (x) = 2x1 + a b x2 and a, b are parameters

◮ X is described by finitely many linear inequalities (constraints)

x1 − 3x2 ≤ 3 ax1 + 5x2 ≤ 12

◮ Sometimes x ∈ Z required (integer linear program, ILP)

slide-25
SLIDE 25

Linear Optimization

◮ Objective function is a linear function

f (x) = x1 − 3x2 + 2x3 where x1, x2, x3 are variables f (x) = 2x1 + a b x2 and a, b are parameters

◮ X is described by finitely many linear inequalities (constraints)

x1 − 3x2 ≤ 3 ax1 + 5x2 ≤ 12

◮ Sometimes x ∈ Z required (integer linear program, ILP)

Now: small teaser example – detailed modeling intro follows.

slide-26
SLIDE 26

Example: Pizza and Lasagne

Ingredients: Pizza Lasagne available Tomatoes 2 3 18 Cheese 4 3 24

slide-27
SLIDE 27

Example: Pizza and Lasagne

Ingredients: Pizza Lasagne available Tomatoes 2 3 18 Cheese 4 3 24 Profit: Pizza 8 , Lasagne 7

slide-28
SLIDE 28

Example: Pizza and Lasagne

Ingredients: Pizza Lasagne available Tomatoes 2 3 18 Cheese 4 3 24 Profit: Pizza 8 , Lasagne 7 Task: Determine optimal producible number of pizza and lasagne to maximize total profit.

slide-29
SLIDE 29

Example: Pizza and Lasagne

Ingredients: Pizza Lasagne available Tomatoes 2 3 18 Cheese 4 3 24 Profit: Pizza 8 , Lasagne 7 Task: Determine optimal producible number of pizza and lasagne to maximize total profit. → Modeling and graphical solution at the board

slide-30
SLIDE 30

Example: Pizza and Lasagne

LP Model x = number of produced pizzas y = number of produced lasagne max 8x1 + 7x2 (profit) s.t. 2x1 + 3x2 ≤ 18 (tomato) 4x1 + 3x2 ≤ 24 (cheese) x1, x2 ≥ 0 Graphical representation and solution