298. Multi-Commodity Network Flow

298.1. Minimum Cost Network Flow (MCNF)

  1. Maximum Flow
  2. Shortest Path

IP LP Relaxation Integer Solution

Network

Path

Path from node to node is the set of arcs:

such that and are connected


Cycle: Path whose source and destination are the same node

Simple path: A path that is not a cycle

Acyclic network: Network containing no cycle

Flow: actions of sending items through an edge

Flow size: Number of units sent through an edge

Weight: Property on an edge (e.g., distance, cost per unit, etc.)

Weighted network: network whose edges are Weighted

Capacity: Edge constraint

Capacitated network: network whose edges have capacities

Consider the weighted capacitated network

Objective: Satisfy all demand while minimizing cost

LP Formulation

Example

Decision variables:

: Flow size of edge

for all


Objective function:

Capacity Constraints

Flow Balancing Constraints

  • Supply node
  • Transhipment nodes
  • Demand nodes

Complete Formulation









As long as

are integers, the solution will be an integer solution

The LP relaxation of the IP formulation always gives an integer solution

Total unimodularity gives integer solutions

For a standard form LP , if

then an optimal bfs obtained by the simplex method must satisfy

Proof:

Where:

If A is totally unimodular, will be either 1 or −1 for any basis . is then an integer vector if is an integer vector.

Sufficient conditions for total unimodularity: For matrix , if:

Then is totally unimodular

Example
  • All its elements are 1, 0, −1
  • Each column contains at most two nonzero elements

Constraints:

For simplex:

  • Rows can be divided into two groups so that for each column two nonzero elements are in the same group if and only if they are different (+ and -)

298.2. Transportation Problems

A firm owns factories that supply one pruduct to markets

Between factory and market there is a route

How to produce and ship the product to fulfill all demands while minimizing the total cost?

if

This is a MCNF problem:

If capacity is greater than demand:

If different factories have different unit production costs

If different markets habe different unit retailing costs

298.3. Assignment Problems

How to minimize total cost?

Special case of Transportation Problem

What if there are fewer jobs then workers:

IP Formulation

298.4. Transhipment Problems

If there are intermediary nodes in the transportation problem it is a transhipment problem

298.5. Maximum Flow Problems

Where:

Objective: Maximize number of units sent from to given edge capacities

298.6. Shortest Path Problems

Where:

Objective: Get from to while minimizing distance

Out of all outgoing edges from , one must be selected:

Out of all ingoing edges to , one must be selected:

For all transhipment nodes ,

Summary

Assignment problems are a special case of Transportation problems where:

Transportation problems are a special case of Transhipment problems where:

Transhipment problems are a special case of MCNF problems where:

Shortest Path problem is a special case of Transhipment problems where:

Maximum Flow problems are a special case of MCNF problems where:

Example