Lecture 6 Knapsack Problem Quadratic Assignment Problem

Slides:



Advertisements
Similar presentations
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
Advertisements

1 Column Generation. 2 Outline trim loss problem different formulations column generation the trim loss problem master problem and subproblem in column.
IEOR 4004 Final Review part II.
1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
BU Decision Models Integer_LP1 Integer Optimization Summer 2013.
Lesson 08 Linear Programming
Linear Programming. Introduction: Linear Programming deals with the optimization (max. or min.) of a function of variables, known as ‘objective function’,
Transportation Problem and Related Topics. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics There are 3 plants, 3 warehouses.
6-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Transportation, Transshipment, and Assignment Problems Chapter 6.
ITGD4207 Operations Research
Linear Programming Using the Excel Solver
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
Integer Programming 3 Brief Review of Branch and Bound
Optimization Linear Programming and Simplex Method
Lecture outline Support vector machines. Support Vector Machines Find a linear hyperplane (decision boundary) that will separate the data.
KNAPSACK PROBLEM A dynamic approach. Knapsack Problem  Given a sack, able to hold K kg  Given a list of objects  Each has a weight and a value  Try.
Linear Programming Econ Outline  Review the basic concepts of Linear Programming  Illustrate some problems which can be solved by linear programming.
INTRODUCTION TO LINEAR PROGRAMMING
Linear Programming Applications
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Cutting Planes II. The Knapsack Problem Recall the knapsack problem: n items to be packed in a knapsack (can take multiple copies of the same item). The.
Optimization of Linear Problems: Linear Programming (LP) © 2011 Daniel Kirschen and University of Washington 1.
LP formulation of Economic Dispatch
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding ILPs with Branch & Bound ILP References: ‘Integer Programming’
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Transportation Model Lecture 16 Dr. Arshad Zaheer
Decision Procedures An Algorithmic Point of View
Lecture 3 Transshipment Problems Minimum Cost Flow Problems
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
ENCI 303 Lecture PS-19 Optimization 2
Chapter 7 Transportation, Assignment & Transshipment Problems
Integer Programming Key characteristic of an Integer Program (IP) or Mixed Integer Linear Program (MILP): One or more of the decision variable must be.
Linear Programming Data Structures and Algorithms A.G. Malamos References: Algorithms, 2006, S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani Introduction.
Notes 5IE 3121 Knapsack Model Intuitive idea: what is the most valuable collection of items that can be fit into a backpack?
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 11-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 11.
WOOD 492 MODELLING FOR DECISION SUPPORT
DISTRIBUTION AND NETWORK MODELS (1/2)
Integer programming, MA Operational Research1 Integer Programming Operational Research -Level 4 Prepared by T.M.J.A.Cooray Department of Mathematics.
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
Chap 10. Integer Prog. Formulations
Location decisions are strategic decisions. The reasons for location decisions Growth –Expand existing facilities –Add new facilities Production Cost.
Two Discrete Optimization Problems Problem: The Transportation Problem.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
6-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Transportation, Transshipment, and Assignment Problems Chapter 6.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
1 System Planning 2013 Lecture 7: Optimization Appendix A Contents: –General about optimization –Formulating optimization problems –Linear Programming.
M Tech Project – First Stage Improving Branch-And-Price Algorithms For Solving 1D Cutting Stock Problem Soumitra Pal [ ]
8/14/04 J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 6 – Integer Programming Models Topics.
1 Lecture 7 Linearization of a Quadratic Assignment Problem Indicator Variables.
EMIS 8373: Integer Programming Column Generation updated 12 April 2005.
Integer Programming, Branch & Bound Method
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
IE 312 Review 1. The Process 2 Problem Model Conclusions Problem Formulation Analysis.
Linear Programming: Formulations, Geometry and Simplex Method Yi Zhang January 21 th, 2010.
Introduction to Integer Programming Integer programming models Thursday, April 4 Handouts: Lecture Notes.
Linear Programming 虞台文.
1 Optimization Linear Programming and Simplex Method.
Chapter 8 - Project Management1 Lecture 2 Today’s lecture covers the followings: 1.To study “project crashing” concept 2.LP formulation for project management.
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
The Transportation Model
Why network models? Visualize a mathematical model
Gomory Cuts Updated 25 March 2009.
Chapter 6. Large Scale Optimization
The ABC’s of Optimization
Integer Programming (정수계획법)
Basic Linear Programming Concepts
Integer Programming (정수계획법)
Advanced LP models column generation.
Advanced LP models column generation.
Chapter 6. Large Scale Optimization
Presentation transcript:

Lecture 6 Knapsack Problem Quadratic Assignment Problem 1

Outline knapsack problem quadratic assignment problem 2

Knapsack Problem 3

Knapsack Problem very useful sub-problems books Knapsack Problems by Hans Kellerer, Ulrich Pferschy, and David Pisinger (2004) Knapsack Problems: Algorithms and Computer Implementations by Silvano Martello and Paolo Toth (1990) 4

Problem Statement n types of products weight of type i: ai value of type i: pi capacity of truck: b kg question: selection of products to maximize the total value in a truck special tpye: 0-1 knapsack problem: i  {0, 1} i = number of type-i products put in the truck 5

Common Knapsack Problems project selection problems capital budgeting allocation problems inventory stocking problems … 6

Multi-Dimensional Knapsack Problem n types of products weight of type i: ai volume of type i: vi value of type i: pi capacity of truck b kg c m3 question: selection of products to maximize the total value in a truck i = number of type-i products put in the truck 7

Cutting-Stock Problem knapsack problem: a sub-problem in solving cutting-stock problem by column generation 7-meter steel pipes of a given diameter order 150 pieces of 1.5-meter segments 250 pieces of 2-meter segments 200 pieces of 4-meter segments objective: minimize the amount of trim off 8

Formulation of the Cutting-Stock Problem decisions: how to cut the pipes three types of segments type-1 segment: 1.5 m type-2 segment: 2 m type-3 segment: 4 m aij = the number of j type segments produced by the ith cut pattern the ith cut pattern: (ai1, ai2, ai3)T with trim loss ti e.g., a1 = (a11, a12, a13)T = (0, 0, 1) and t1 = 3 9

Formulation of the Cutting-Stock Problem totally 15 cutting patterns   Cut Patterns x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 1.5-meter segment 1 2 4 3 2-meter segment 4-meter segment trim loss (meter) 1.5 3.5 5 2.5 5.5 10

Formulation of the Cutting-Stock Problem xi = the # of steel pipes cut in the ith pattern 11

Solution of the Cutting-Stock Problem for Simplex Method, the reduced cost of the ith variable (i.e., the ith cutting pattern) can be shown to relate to a Knapsack Problem  max 1a1 + 2a2 + 3a3, s.t. 1.5a1 + 2a2 + 4a3  7, where j = value of the jth dual variable of the current basic feasible solution 12

Solution of the Cutting-Stock Problem Formulate a LP Solve the LP to get a BFS Get dual variables j of the BFS Resolve the LP to get a new BFS Solve a knapsack problem to get a new, valuable cutting pattern any new cutting pattern? Add a cutting pattern (i.e., new column) to the LP Yes Stop. Current BFS is optimum No 13

Solution of the Knapsack Problem dynamic program: more appropriate branch and bound: not as appropriate 14

Quadratic Assignment Problem 15

Door Assignment in a Distribution Center a DC with two-inbound and two-outbound doors cross-docking operations to handle goods of two suppliers and two retailers objective: to minimize the total goods-distance Door A Door B Door a Door b Inbound Doors Outbound Amount of Goods from Suppliers to Retailers Retailer 1 Retailer 2 Supplier 1 7 Supplier 2 4 6 Distances Among the Doors Door a Door b Door A 2 3 Door B 16

Door Assignment in a Distribution Center goods-distance for supplier 1  Door A, supplier 2  Door B, retailer 1  Door a, retailer 2  Door b Door A Door B Door a Door b Inbound Doors Outbound Distances Among the Doors Door a Door b Door A 2 3 Door B 3 2 A B a b total goods-distance = (2)(7) + (3)(4) + (2)(6) Amount of Goods from Suppliers to Retailers Retailer 1 Retailer 2 Supplier 1 7 Supplier 2 4 6 formulate an optimization to find the door assignment that minimizes the total goods-distance 4 6 7 A B a b 17

Formulation of the Door Assignment Problem Distances Among the Doors Door a Door b Door A 2 3 Door B Cost Coefficients cijkl, for xij = ykl = 1 y1a y1b y2a y2b x1A 14 21 x1B x2A 8 12 18 x2B Amount of Goods from Suppliers to Retailers Retailer 1 Retailer 2 Supplier 1 7 Supplier 2 4 6 18

Formulation of the Door Assignment Problem y1a y1b y2a y2b x1A 14 21 x1B x2A 8 12 18 x2B 19

Quadratic Assignment Problem four sets S1, T1, S2, T2, S1 and T1 of m items, Sn and Tn of n items two groups of assignments the pairing of items in S1 and T1 the pairing of items in S2 and T2 cost of assigning item i  S1, j  T1, k  S2, l  T2 = cijkl 20

Quadratic Assignment Problem 21

Another Quadratic Assignment Problem two sets S and T, each of n items the pairing of items in S and T as in an assignment problem cost of pairing i  S with j  T and k  S with l  T: cijkl 22

Another Quadratic Assignment Problem 23

Quantities Shipped Among the Factories Distance Between the Cities Example Quantities Shipped Among the Factories three factories a, b, c three cities A, B, C a b c  1 0 15 18 Distance Between the Cities A B C  14 8 11 24

Distance Between the Cities Quantities Shipped Among the Factories A B C  14 8 11 Example a b c  1 0 15 18 aA aB aC bA bB bC cA cB cC  140 80 210 120 110 165 252 144 198 25

Example 26

Linearization of the Quadratic Assignment Problem non-linear objective function with terms such as ijkl to linearize the non-linear term ijkl let ijkl = ij kl need to ensure that ijkl = 1  ij kl = 1 27

Linearization of the Quadratic Assignment Problem ijkl = 1  ij kl = 1 ijkl = 1  ij = 1 and kl = 1 two parts ijkl = 1  ij = 1 and kl = 1 ij = 1 and kl = 1  ijkl = 1 tricks ijkl  ij and ijkl   kl ij + kl  1 + ijkl 28

Linearization of the Quadratic Assignment Problem drawback of the method addition of one variable and three constraints for one cross-product n(n1)/2 cross products for n ij ’s any method to add less variables or less constraints 29

Linearization of the Quadratic Assignment Problem three cross-products 212+31314 of four variables 1, 2, 3, 4 the previous method: 3 new variables and 9 new constraints another method with 1 new variable and 3 new constraints 30

Linearization of the Quadratic Assignment Problem let w = 212+31314 = 1(22+334) hope to have: 1 = 1  w = 22+334, and 1 = 0  w = 0 possible values of w  {-1, 0, 1, 2, 3, 4, 5} 1 = 0  w = 0: w  51 how to model 1 = 1  w = 22+334? 31

Linearization of the Quadratic Assignment Problem to model 1 = 1  w = 22+334 w = 22+334  w  22+334 and w  22+334 1 = 1  w  22+334 and w  22+334 when 1 = 1: two valid constraints w  22+334 and w  22+334 when 1 = 0: two redundant constraints w  22+334+551 and w  22+334+515 32