Formulating Transportation Problems as LPs

Formulate a transportation problem as a linear program: introduce shipment decision variables xijx_{ij}, write the cost-minimizing objective, and encode supply, demand, and non-negativity constraints. Distinguish between balanced (equality) and unbalanced (inequality) formulations.

Step 1 of 157%

Tutorial

The Transportation Problem: Variables and Objective

A transportation problem is a special LP for shipping a single commodity from mm supply sources to nn demand destinations at minimum total cost. The data are:

  • sis_i = supply available at source ii, for i=1,,mi=1,\ldots,m
  • djd_j = demand at destination jj, for j=1,,nj=1,\ldots,n
  • cijc_{ij} = cost per unit shipped from source ii to destination jj

We introduce one decision variable for each (source, destination) pair:

xij=units shipped from source i to destination j.x_{ij}=\text{units shipped from source }i\text{ to destination }j.

A problem with mm sources and nn destinations therefore has mnmn decision variables.

The objective is to minimize total shipping cost across every route:

min  i=1mj=1ncijxij.\min\;\sum_{i=1}^m\sum_{j=1}^n c_{ij}\,x_{ij}.

For a small problem with m=2m=2 sources and n=3n=3 destinations, the objective expands to

min  c11x11+c12x12+c13x13+c21x21+c22x22+c23x23.\min\;c_{11}x_{11}+c_{12}x_{12}+c_{13}x_{13}+c_{21}x_{21}+c_{22}x_{22}+c_{23}x_{23}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle