Minimum cost flow problem

Let a graph $G = (V, E)$ where $V=\set{1,2,\ldots,n}$.

For each edge $(i,j)\in E$, an amount $x_{ij}$ flows from vertex $i$ to vertex $j$. We impose the following constraints:

Minimal cost flow problem

$$ \begin{align*} \text{Minimise } & \sum_{(i,j)\in E} c_{ij} x_{ij} \\ \text{subject to } & b_i + \sum_{(j,i)\in E} x_{ji} = \sum_{(i,j)\in E} x_{ij} \quad \forall i\in V, \\ & \underline{m}_{ij} \leq x_{ij} \leq \overline{m}_{ij}. \end{align*} $$

For the problem to be feasible, we require $\sum_{i\in V} b_i = 0$.