Minimum Cost Flow Problem Linear Pair