The assignment problem

Slides:



Advertisements
Similar presentations
Elementary Linear Algebra Anton & Rorres, 9th Edition
Advertisements

1 Lecture 2 Shortest-Path Problems Assignment Problems Transportation Problems.
Transportation Problem (TP) and Assignment Problem (AP)
Totally Unimodular Matrices
The minimum cost flow problem
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
Trees and BFSs Page 1 The Network Simplex Method Spanning Trees and Basic Feasible Solutions.
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
Computer Algorithms Integer Programming ECE 665 Professor Maciej Ciesielski By DFG.
Linear Programming Applications
1 The Min Cost Flow Problem. 2 Flow Networks with Costs Flow networks with costs are the problem instances of the min cost flow problem. A flow network.
1 Ford-Fulkerson method Ford-Fulkerson(G) f = 0 while( 9 simple path p from s to t in G f ) f := f + f p output f Runs in time O(|f max | |E|) where f.
1 The Min Cost Flow Problem. 2 The Min Cost Flow problem We want to talk about multi-source, multi-sink flows than just “flows from s to t”. We want to.
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
C&O 355 Mathematical Programming Fall 2010 Lecture 17 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Spring 2013 Solving a System of Linear Equations Matrix inverse Simultaneous equations Cramer’s rule Second-order Conditions Lecture 7.
Lecture 3 Transshipment Problems Minimum Cost Flow Problems
Chapter 2 Determinants. The Determinant Function –The 2  2 matrix is invertible if ad-bc  0. The expression ad- bc occurs so frequently that it has.
The Supply Chain Customer Supplier Manufacturer Distributor
Minimum Cost Flows. 2 The Minimum Cost Flow Problem u ij = capacity of arc (i,j). c ij = unit cost of shipping flow from node i to node j on (i,j). x.
EMIS 8373: Integer Programming “Easy” Integer Programming Problems: Network Flow Problems updated 11 February 2007.
C&O 355 Mathematical Programming Fall 2010 Lecture 18 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Kramer’s (a.k.a Cramer’s) Rule Component j of x = A -1 b is Form B j by replacing column j of A with b.
Systems of Equations and Inequalities Systems of Linear Equations: Substitution and Elimination Matrices Determinants Systems of Non-linear Equations Systems.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Lecture 5 – Integration of Network Flow Programming Models Topics Min-cost flow problem (general model) Mathematical formulation and problem characteristics.
Updated 21 April2008 Linear Programs with Totally Unimodular Matrices.
Log Truck Scheduling Problem
Flow in Network. Graph, oriented graph, network A graph G =(V, E) is specified by a non empty set of nodes V and a set of edges E such that each edge.
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
1 Chapter 2 Notation and Definitions Data Structures Transformations.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
2.5 – Determinants and Multiplicative Inverses of Matrices.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
Minimum Cost Flow Algorithms and Networks. Algorithms and Networks: Minimum Cost Flow2 This lecture The minimum cost flow problem: statement and applications.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
MATH 1046 Determinants (Section 4.2)
Part 3 Linear Programming
Lap Chi Lau we will only use slides 4 to 19
Topics in Algorithms Lap Chi Lau.
The minimum cost flow problem
Flow in Network.
Chapter 2 Determinants by Cofactor Expansion
Algorithms and Networks
DETERMINANT MATRIX YULVI ZAIKA.
Part 3 Linear Programming
Integer Programming (정수계획법)
Introduction Basic formulations Applications
Objectives Multiply two matrices.
Kramer’s (a.k.a Cramer’s) Rule
Linear Algebra Lecture 18.
Integer Programming (정수계획법)
Chapter 5 Transportation, Assignment, and Transshipment Problems
Flow Feasibility Problems
Algorithms and Networks
College Algebra Chapter 6 Matrices and Determinants and Applications
Part 3 Linear Programming
Chapter 2 Determinants.
Kramer’s (a.k.a Cramer’s) Rule
Network Optimization Models: Maximum Flow Problems
“Easy” Integer Programming Problems: Network Flow Problems
Lecture 12 Network Models.
Presentation transcript:

The assignment problem Given 𝑛×𝑛 matrix of costs 𝐶= 𝑐 𝑖𝑗 , find a permutation 𝜋 on 1,2,…,𝑛 such that 𝑖=1 𝑛 𝑐 𝑖,𝜋(𝑖) is minimized

As an integer linear program 𝑖=1 𝑛 𝑐 𝑖𝑗 𝑥 𝑖𝑗 min 𝑗=1 𝑛 𝑥 𝑖𝑗 =1 𝑖=1 𝑛 𝑥 𝑖𝑗 =1 𝑥 𝑖𝑗 ≥0 s.t. 𝑖=1,…,𝑛 𝑗=1,…,𝑛

Cramer’s Rule The system 𝐴𝑥=𝑏 has a unique solution if and only if det 𝐴 ≠0, and in that case it is given by 𝑥 𝑖 = det⁡( 𝐴 𝑖 ) det⁡(𝐴) where 𝐴 𝑖 is 𝐴 with column 𝑖 replaced by 𝑏.

Laplace’s formula Given 𝑛×𝑛 matrix 𝐴=( 𝑎 𝑖𝑗 ). det 𝐴 = 𝑗=1 𝑛 −1 𝑖+𝑗 𝑎 𝑖𝑗 det 𝐴 𝑖𝑗 = 𝑖=1 𝑛 −1 𝑖+𝑗 𝑎 𝑖𝑗 det⁡( 𝐴 𝑖𝑗 ) where 𝐴 𝑖𝑗 is 𝐴 with row 𝑖 and column 𝑗 removed.

Properties of determinants Let 𝐴 be 𝑚×𝑚 matrix. Then Exchanging rows or columns changes sign of determinant. Multiplying row or column by 𝑐 multiplies determinant by 𝑐 as well. Adding a multiple of row (column) to another row (column) does not affect determinant.

Totally Unimodular Matrices An 𝑚×𝑛 matrix 𝐴=( 𝑎 𝑖𝑗 ) is totally unimodular if every square submatrix has determinant in −1,0,1 .

Integrality theorem for totally unimodular linear programs Let 𝐴=( 𝑎 𝑖𝑗 ) be 𝑚×𝑛 totally unimodular matrix and let 𝑏∈ 𝒁 𝑚 . Then all basic solutions of 𝐹= 𝐴𝑥≤𝑏, 𝑥≥0 are integer.

Lemma 1 If 𝐴=( 𝑎 𝑖𝑗 ) is a matrix with entries from −1,0,1 such that: Every column of 𝐴 has at most one entry that is 1 and at most one entry that is −1. Then 𝐴 is totally unimodular.

Canonical example Let 𝐷= 𝑁,𝐴 be directed graph. Let 𝐴 be node-arc adjacency matrix of 𝐷. Rows are indexed by nodes. Columns by arcs. Entry (𝑘, 𝑖,𝑗 ) is: 1 when 𝑘=𝑖 −1 when 𝑘=𝑗 0 otherwise.

Lemma 2 Let 𝐴 be totally unimodular. Then 𝐴 ⊺ is totally unimodular. Suppose 𝐵 is obtained from 𝐴 by: Removing rows or columns. Exchanging rows or columns. Multiplying rows or columns by −1. Then 𝐵 is totally unimodular.

Lemma 3 Let 𝐴 be totally unimodular. Then 𝐴 𝐼 and 𝐴 𝐴 are totally unimodular as well.

Networks Directed graph 𝐷=(𝑁,𝐴). Flow 𝑥 assigns a real number 𝑥 𝑖𝑗 to arc 𝑖𝑗∈𝐴. Nonnegativity constraint: 𝑥 𝑖𝑗 ≥0

Balances Outgoing flow from node 𝑖: 𝑖𝑗∈𝐴 𝑥 𝑖𝑗 Ingoing flow from node 𝑖: 𝑗𝑖∈𝐴 𝑥 𝑖𝑗 Balance at node 𝑖 wrt. 𝑥: 𝑏 𝑖 𝑥 = 𝑖𝑗∈𝐴 𝑥 𝑖𝑗 − 𝑗𝑖∈𝐴 𝑥 𝑖𝑗 Note 𝑖 is source if 𝑏 𝑖 𝑥 >0, and sink if 𝑏 𝑖 𝑥 <0. No sources or sinks: flow is circulation.

Balance constraints Given by balances 𝑏 𝑖 for 𝑖∈𝑁. Constraint: 𝑏 𝑖 𝑥 = 𝑏 𝑖 for all 𝑖∈𝑁. Assumption: 𝑖∈𝑁 𝑏 𝑖 =0

Arc constraints Given by lower bounds 𝑙 𝑖𝑗 and upper bounds 𝑢 𝑖𝑗 . Constraint: 𝑙 𝑖𝑗 ≤ 𝑥 𝑖𝑗 ≤ 𝑢 𝑖𝑗 for all 𝑖𝑗∈𝐴. Assumption: 0≤ 𝑙 𝑖𝑗 ≤ 𝑢 𝑖𝑗

The minimum cost problem Given network 𝐷=(𝑁,𝐴) with arc costs 𝑐 𝑖𝑗 , together with balance constraints and possibly arc constraints. Find feasible flow 𝑥 minimizing 𝑖𝑗∈𝐴 𝑐 𝑖𝑗 𝑥 𝑖𝑗

Integrality theorem If all balance constraints, lower bounds, and upper bounds are integer, then there is a minimum cost feasible flow that is integer.

Modelling with min cost flows Like modelling with linear programs this is an acquired skill. Most important question to figure out: What is the flow.

Transportation problem Given: Set of sources 𝑆 and destinations 𝐷. Ship goods from sources to destinations at minimum cost. Cost of shipping unit of good from source 𝑖 to destination 𝑗 is 𝑐 𝑖𝑗 . Source 𝑖 has supply 𝑟 𝑖 . Destination 𝑗 has demand 𝑠 𝑗 .

Tanker Scheduling Problem Find minimum size of fleet to accomodate schedule of deliveries. Given: List of deliveries ( 𝑖 𝑘 , 𝑗 𝑘 , 𝑡 𝑘 ) for 𝑘=1,…,𝑚. Pick up at port 𝑖 𝑘 at time 𝑡 𝑘 and deliver at port 𝑗 𝑘 . 𝑎 𝑖𝑗 = time to load at port 𝑖 and sail to port 𝑗. 𝑏 𝑖𝑗 = time to unload at port 𝑖 and sail to port 𝑗.

Optimal loading of a hopping airplane Find most profitable way to accept passengers on a ”hopping flight” route. Given: Single plane with capacity 𝑝. Route along cities 1,2,…,𝑛. At city 𝑖 there are 𝑏 𝑖𝑗 passengers that would like to go to city 𝑗, paying fare 𝑓 𝑖𝑗 each.