In mathematics and economics, transportation theory or transport theory is a name given to the study of optimal transportation and allocation of resources. The problem was formalized by the French mathematician Gaspard Monge in 1781.[1]
In the 1920s A.N. Tolstoi was one of the first to study the transportation problem mathematically. In 1930, in the collection Transportation Planning Volume I for the National Commissariat of Transportation of the Soviet Union, he published a paper "Methods of Finding the Minimal Kilometrage in Cargo-transportation in space".[2][3]
Major advances were made in the field during World War II by the Soviet mathematician and economist Leonid Kantorovich.[4] Consequently, the problem as it is stated is sometimes known as the Monge–Kantorovich transportation problem.[5] The linear programming formulation of the transportation problem is also known as the Hitchcock–Koopmans transportation problem.[6]
Suppose that we have a collection of m mines mining iron ore, and a collection of n factories which use the iron ore that the mines produce. Suppose for the sake of argument that these mines and factories form two disjoint subsets M and F of the Euclidean plane R2. Suppose also that we have a cost function c : R2 × R2 → [0, ∞), so that c(x, y) is the cost of transporting one shipment of iron from x to y. For simplicity, we ignore the time taken to do the transporting. We also assume that each mine can supply only one factory (no splitting of shipments) and that each factory requires precisely one shipment to be in operation (factories cannot work at half- or double-capacity). Having made the above assumptions, a transport plan is a bijection T : M → F. In other words, each mine m ∈ M supplies precisely one target factory T(m) ∈ F and each factory is supplied by precisely one mine. We wish to find the optimal transport plan, the plan T whose total cost
is the least of all possible transport plans from M to F. This motivating special case of the transportation problem is an instance of the assignment problem. More specifically, it is equivalent to finding a minimum weight matching in a bipartite graph.
The following simple example illustrates the importance of the cost function in determining the optimal transport plan. Suppose that we have n books of equal width on a shelf (the real line), arranged in a single contiguous block. We wish to rearrange them into another contiguous block, but shifted one book-width to the right. Two obvious candidates for the optimal transport plan present themselves:
If the cost function is proportional to Euclidean distance (c(x, y) = α|x − y|) then these two candidates are both optimal. If, on the other hand, we choose the strictly convex cost function proportional to the square of Euclidean distance (c(x, y) = α|x − y|2), then the "many small moves" option becomes the unique minimizer.
Note that the above cost functions consider only the horizontal distance traveled by the books, not the horizontal distance traveled by a device used to pick each book up and move the book into position. If the latter is considered instead, then, of the two transport plans, the second is always optimal for the Euclidean distance, while, provided there are at least 3 books, the first transport plan is optimal for the squared Euclidean distance.
The following transportation problem formulation is credited to F. L. Hitchcock:[7]
Tjalling Koopmans is also credited with formulations of transport economics and allocation of resources.
The transportation problem as it is stated in modern or more technical literature looks somewhat different because of the development of Riemannian geometry and measure theory. The mines-factories example, simple as it is, is a useful reference point when thinking of the abstract case. In this setting, we allow the possibility that we may not wish to keep all mines and factories open for business, and allow mines to supply more than one factory, and factories to accept iron from more than one mine.
Let [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] be two separable metric spaces such that any probability measure on [math]\displaystyle{ X }[/math] (or [math]\displaystyle{ Y }[/math]) is a Radon measure (i.e. they are Radon spaces). Let [math]\displaystyle{ c : X \times Y \to [0, \infty] }[/math] be a Borel-measurable function. Given probability measures [math]\displaystyle{ \mu }[/math] on [math]\displaystyle{ X }[/math] and [math]\displaystyle{ \nu }[/math] on [math]\displaystyle{ Y }[/math], Monge's formulation of the optimal transportation problem is to find a transport map [math]\displaystyle{ T : X \to Y }[/math] that realizes the infimum
where [math]\displaystyle{ T_*(\mu) }[/math] denotes the push forward of [math]\displaystyle{ \mu }[/math] by [math]\displaystyle{ T }[/math]. A map [math]\displaystyle{ T }[/math] that attains this infimum (i.e. makes it a minimum instead of an infimum) is called an "optimal transport map".
Monge's formulation of the optimal transportation problem can be ill-posed, because sometimes there is no [math]\displaystyle{ T }[/math] satisfying [math]\displaystyle{ T_*(\mu) = \nu }[/math]: this happens, for example, when [math]\displaystyle{ \mu }[/math] is a Dirac measure but [math]\displaystyle{ \nu }[/math] is not.
We can improve on this by adopting Kantorovich's formulation of the optimal transportation problem, which is to find a probability measure [math]\displaystyle{ \gamma }[/math] on [math]\displaystyle{ X \times Y }[/math] that attains the infimum
where [math]\displaystyle{ \Gamma (\mu, \nu) }[/math] denotes the collection of all probability measures on [math]\displaystyle{ X \times Y }[/math] with marginals [math]\displaystyle{ \mu }[/math] on [math]\displaystyle{ X }[/math] and [math]\displaystyle{ \nu }[/math] on [math]\displaystyle{ Y }[/math]. It can be shown[10] that a minimizer for this problem always exists when the cost function [math]\displaystyle{ c }[/math] is lower semi-continuous and [math]\displaystyle{ \Gamma(\mu, \nu) }[/math] is a tight collection of measures (which is guaranteed for Radon spaces [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math]). (Compare this formulation with the definition of the Wasserstein metric [math]\displaystyle{ W_p }[/math] on the space of probability measures.) A gradient descent formulation for the solution of the Monge–Kantorovich problem was given by Sigurd Angenent, Steven Haker, and Allen Tannenbaum.[11]
The minimum of the Kantorovich problem is equal to
where the supremum runs over all pairs of bounded and continuous functions [math]\displaystyle{ \varphi : X \rightarrow \mathbf{R} }[/math] and [math]\displaystyle{ \psi : Y \rightarrow \mathbf{R} }[/math] such that
The economic interpretation is clearer if signs are flipped. Let [math]\displaystyle{ x \in X }[/math] stand for the vector of characteristics of a worker, [math]\displaystyle{ y \in Y }[/math] for the vector of characteristics of a firm, and [math]\displaystyle{ \Phi(x,y) =-c(x,y) }[/math] for the economic output generated by worker [math]\displaystyle{ x }[/math] matched with firm [math]\displaystyle{ y }[/math]. Setting [math]\displaystyle{ u(x) = -\varphi(x) }[/math] and [math]\displaystyle{ v(y) =-\psi(y) }[/math], the Monge–Kantorovich problem rewrites: [math]\displaystyle{ \sup \left\{ \int_{X\times Y}\Phi(x,y) d\gamma(x,y) ,\gamma \in \Gamma(\mu,\nu) \right\} }[/math] which has dual : [math]\displaystyle{ \inf \left\{ \int_X u(x) \,d\mu(x) +\int_Y v(y) \, d\nu (y) :u(x) +v(y) \geq \Phi(x,y) \right\} }[/math] where the infimum runs over bounded and continuous function [math]\displaystyle{ u:X\rightarrow \mathbf{R} }[/math] and [math]\displaystyle{ v:Y\rightarrow \mathbf{R} }[/math]. If the dual problem has a solution, one can see that: [math]\displaystyle{ v(y) =\sup_x \left\{ \Phi(x,y) - u(x)\right\} }[/math] so that [math]\displaystyle{ u(x) }[/math] interprets as the equilibrium wage of a worker of type [math]\displaystyle{ x }[/math], and [math]\displaystyle{ v(y) }[/math] interprets as the equilibrium profit of a firm of type [math]\displaystyle{ y }[/math].[12]
For [math]\displaystyle{ 1 \leq p \lt \infty }[/math], let [math]\displaystyle{ \mathcal{P}_p(\mathbf{R}) }[/math] denote the collection of probability measures on [math]\displaystyle{ \mathbf{R} }[/math] that have finite [math]\displaystyle{ p }[/math]-th moment. Let [math]\displaystyle{ \mu, \nu \in \mathcal{P}_p(\mathbf{R}) }[/math] and let [math]\displaystyle{ c(x, y) = h(x-y) }[/math], where [math]\displaystyle{ h:\mathbf{R} \rightarrow [0,\infty) }[/math] is a convex function.
The proof of this solution appears in Rachev & Rüschendorf (1998).[13]
In the case where the margins [math]\displaystyle{ \mu }[/math] and [math]\displaystyle{ \nu }[/math] are discrete, let [math]\displaystyle{ \mu_x }[/math] and [math]\displaystyle{ \nu_y }[/math] be the probability masses respectively assigned to [math]\displaystyle{ x\in \mathbf{X} }[/math] and [math]\displaystyle{ y\in \mathbf{Y} }[/math], and let [math]\displaystyle{ \gamma _{xy} }[/math] be the probability of an [math]\displaystyle{ xy }[/math] assignment. The objective function in the primal Kantorovich problem is then
and the constraint [math]\displaystyle{ \gamma \in \Gamma \left( \mu ,\nu \right) }[/math] expresses as
and
In order to input this in a linear programming problem, we need to vectorize the matrix [math]\displaystyle{ \gamma_{xy} }[/math] by either stacking its columns or its rows, we call [math]\displaystyle{ \operatorname{vec} }[/math] this operation. In the column-major order, the constraints above rewrite as
where [math]\displaystyle{ \otimes }[/math] is the Kronecker product, [math]\displaystyle{ 1_{n\times m} }[/math] is a matrix of size [math]\displaystyle{ n\times m }[/math] with all entries of ones, and [math]\displaystyle{ I_{n} }[/math] is the identity matrix of size [math]\displaystyle{ n }[/math]. As a result, setting [math]\displaystyle{ z=\operatorname{vec}\left( \gamma \right) }[/math], the linear programming formulation of the problem is
which can be readily inputted in a large-scale linear programming solver (see chapter 3.4 of Galichon (2016)[12]).
In the semi-discrete case, [math]\displaystyle{ X=Y=\mathbf{R}^d }[/math] and [math]\displaystyle{ \mu }[/math] is a continuous distribution over [math]\displaystyle{ \mathbf{R}^d }[/math], while [math]\displaystyle{ \nu =\sum_{j=1}^{J}\nu _{j}\delta_{y_{i}} }[/math] is a discrete distribution which assigns probability mass [math]\displaystyle{ \nu _{j} }[/math] to site [math]\displaystyle{ y_j \in \mathbf{R}^d }[/math]. In this case, we can see[14] that the primal and dual Kantorovich problems respectively boil down to: [math]\displaystyle{ \inf \left\{ \int_X \sum_{j=1}^J c(x,y_j) \, d\gamma_j(x) ,\gamma \in \Gamma(\mu,\nu)\right\} }[/math] for the primal, where [math]\displaystyle{ \gamma \in \Gamma \left( \mu ,\nu \right) }[/math] means that [math]\displaystyle{ \int_{X} d\gamma _{j}\left( x\right) =\nu _{j} }[/math] and [math]\displaystyle{ \sum_{j}d\gamma_{j}\left( x\right) =d\mu \left( x\right) }[/math], and: [math]\displaystyle{ \sup \left\{ \int_{X}\varphi (x)d\mu (x)+\sum_{j=1}^{J}\psi _{j}\nu_{j}:\psi _{j}+\varphi (x)\leq c\left( x,y_{j}\right) \right\} }[/math] for the dual, which can be rewritten as: [math]\displaystyle{ \sup_{\psi \in \mathbf{R}^{J}}\left\{ \int_{X}\inf_{j}\left\{ c\left(x,y_{j}\right) -\psi _{j}\right\} d\mu (x)+\sum_{j=1}^{J}\psi_{j}\nu_{j}\right\} }[/math] which is a finite-dimensional convex optimization problem that can be solved by standard techniques, such as gradient descent.
In the case when [math]\displaystyle{ c\left( x,y\right) =\left\vert x-y\right\vert ^{2}/2 }[/math], one can show that the set of [math]\displaystyle{ x\in \mathbf{X} }[/math] assigned to a particular site [math]\displaystyle{ j }[/math] is a convex polyhedron. The resulting configuration is called a power diagram.[15]
Assume the particular case [math]\displaystyle{ \mu =\mathcal{N}\left( 0,\Sigma_X\right) }[/math], [math]\displaystyle{ \nu =\mathcal{N} \left( 0,\Sigma _{Y}\right) }[/math], and [math]\displaystyle{ c(x,y) =\left\vert y-Ax\right\vert^2/2 }[/math] where [math]\displaystyle{ A }[/math] is invertible. One then has
The proof of this solution appears in Galichon (2016).[12]
Let [math]\displaystyle{ X }[/math] be a separable Hilbert space. Let [math]\displaystyle{ \mathcal{P}_p(X) }[/math] denote the collection of probability measures on [math]\displaystyle{ X }[/math] that have finite [math]\displaystyle{ p }[/math]-th moment; let [math]\displaystyle{ \mathcal{P}_p^r(X) }[/math] denote those elements [math]\displaystyle{ \mu \in \mathcal{P}_p(X) }[/math] that are Gaussian regular: if [math]\displaystyle{ g }[/math] is any strictly positive Gaussian measure on [math]\displaystyle{ X }[/math] and [math]\displaystyle{ g(N) = 0 }[/math], then [math]\displaystyle{ \mu(N) = 0 }[/math] also.
Let [math]\displaystyle{ \mu \in \mathcal{P}_p^r (X) }[/math], [math]\displaystyle{ \nu \in \mathcal{P}_p(X) }[/math], [math]\displaystyle{ c (x, y) = | x - y |^p/p }[/math] for [math]\displaystyle{ p\in(1,\infty), p^{-1} + q^{-1} = 1 }[/math]. Then the Kantorovich problem has a unique solution [math]\displaystyle{ \kappa }[/math], and this solution is induced by an optimal transport map: i.e., there exists a Borel map [math]\displaystyle{ r\in L^p(X, \mu; X) }[/math] such that
Moreover, if [math]\displaystyle{ \nu }[/math] has bounded support, then
for [math]\displaystyle{ \mu }[/math]-almost all [math]\displaystyle{ x\in X }[/math] for some locally Lipschitz, c-concave and maximal Kantorovich potential [math]\displaystyle{ \varphi }[/math]. (Here [math]\displaystyle{ \nabla \varphi }[/math] denotes the Gateaux derivative of [math]\displaystyle{ \varphi }[/math].)
Consider a variant of the discrete problem above, where we have added an entropic regularization term to the objective function of the primal problem
One can show that the dual regularized problem is
where, compared with the unregularized version, the "hard" constraint in the former dual ([math]\displaystyle{ \varphi_x + \psi_y - c_{xy}\geq 0 }[/math]) has been replaced by a "soft" penalization of that constraint (the sum of the [math]\displaystyle{ \varepsilon \exp \left( (\varphi _x + \psi_y - c_{xy})/\varepsilon \right) }[/math] terms ). The optimality conditions in the dual problem can be expressed as
Denoting [math]\displaystyle{ A }[/math] as the [math]\displaystyle{ \left\vert \mathbf{X}\right\vert \times \left\vert \mathbf{Y}\right\vert }[/math] matrix of term [math]\displaystyle{ A_{xy}=\exp \left(-c_{xy} / \varepsilon \right) }[/math], solving the dual is therefore equivalent to looking for two diagonal positive matrices [math]\displaystyle{ D_{1} }[/math] and [math]\displaystyle{ D_{2} }[/math] of respective sizes [math]\displaystyle{ \left\vert \mathbf{X}\right\vert }[/math] and [math]\displaystyle{ \left\vert \mathbf{Y}\right\vert }[/math], such that [math]\displaystyle{ D_{1}AD_{2}1_{\left\vert \mathbf{Y}\right\vert }=\mu }[/math] and [math]\displaystyle{ \left( D_{1}AD_{2}\right) ^{\top }1_{\left\vert \mathbf{X}\right\vert }=\nu }[/math]. The existence of such matrices generalizes Sinkhorn's theorem and the matrices can be computed using the Sinkhorn–Knopp algorithm,[16] which simply consists of iteratively looking for [math]\displaystyle{ \varphi _{x} }[/math] to solve Equation 5.1, and [math]\displaystyle{ \psi _{y} }[/math] to solve Equation 5.2. Sinkhorn–Knopp's algorithm is therefore a coordinate descent algorithm on the dual regularized problem.
The Monge–Kantorovich optimal transport has found applications in wide range in different fields. Among them are:
Original source: https://en.wikipedia.org/wiki/Transportation theory (mathematics).
Read more |