Professional Documents
Culture Documents
Mimimum Cost Flow Problem
Mimimum Cost Flow Problem
FACULTY OF SCIENCE
DEPARTMENT OF MATHEMATICS
BY
FEBRUARY, 2024
TABLE OF CONTENTS
1.0 INTRODUCTION .............................................................................................................................. 3
2.0 FLOW MODELS OF REAL NETWORKS ....................................................................................... 5 .
3.0 OPTIMALITY CONDITIONS ........................................................................................................... 8
4.0 APPLLICATION: ................................................................................................................................ 10
1.0 INTRODUCTION
Network flows have a crucial role in several fields such as computer science,
engineering, and operations research. The least cost issue (MCF) is a fundamental
problem in network flows, similar to the shortest route problem and maximum flow
problem. We are provided with a directed network, which is a directed graph with
non-negative capacity on its edges. The network also has two differentiated
vertices: the source (s) and the sink (t). The maximum flow issue aims to determine
the highest possible flow from the source node (s) to the target node (t), where each
arc (𝑖, 𝑗) has a maximum flow capacity of 𝑢𝑖𝑗. Now we want to provide an
additional parameter, cij, to each arc, representing the cost of transmitting a unit of
flow along the path from i to j. This has a clear connotation in both actual networks
and realworld applications, where the cost of each connection may vary depending
on the specific application. The cost may be conceptualized with a broad spectrum
of interpretations. In a real network, there might be a real cost to transfer a unit of
data from one point to another point. It can also be other network factors such as
bandwidth, delay, likelihood. This added consideration of expenses offers a new
difficulty. The task at hand involves the efficient transportation of V units of flow
over a network while minimizing costs. MCF is a concept that occurs naturally in
several fields, such as virtual circuit routing in communication networks, VLSI,
layout, scheduling, and transportation. As a result, it has been widely researched
and analyzed.
There is a huge number of approaches for solving (MCF) the most common of
which are primal simplex techniques, primal dual methods, and the out-of-kilter
approach.
Ford and Fulkerson devised a traditional and still generally used way for fixing this
issue is the primal-dual technique. This algorithm relies on the idea of linear
programming. The core aim is to maintain a pricing for each vertex and a flow for
each arc, which fulfill complementary slackness. The approach makes progress
approaching primal feasibility via consecutive augmentations along routes with
particular qualities and by making pricing modifications to assist the development
of pathways having such features. Jewell, Busaker and Gowen separately
developed the successive shortest route algorithm. These researchers explained
how to solve the MCF as a succession of shortest routes issues with random arc
lengths. Edmonds and Karp independently noticed that if the calculations employ
vertex potentials, it is feasible to build these methods such that
the shortest route issues have non-negative arc lengths. Minty and Fulkerson
separately developed the out-of-kilter algorithm. Aashtiani and Magnanti have
given an efficient implementation of this method. The cycle-canceling algorithm is
due to Klein. Three specific implementations of the cycle-canceling algorithms run
in polynomial time: the first, attributed to Barahona and Tardos; the second owing
to Goldberg and Tarjan, augments flow along minimal mean cost (negative) cycles;
and the third, owing to Wallacher and Zimmerman, augments flow along minimal
ratio cycles. Bertsekas and Tseng devised the relaxation algorithm and done
significant computational analysis of it. Grigoriadis and Kennington and Wang has
presented an efficient implementation of the relaxation and the network simplex
algorithm.
In this study, we are concerned with the minimal cost flow problem, in which the
cost function is not essential a constant. It may be convex and differentiable
functions. We modify and enhance the Ford – Fulkerson method for the maximum
flow issue. The aim is of identifying augmenting pathways that do not meet the
minimal criterion.
A fundamental novelty of our technique is a modification of complementary
slackness criterion in primal-dual method for a convex and differentiable function.
We then modify our present viable flow such that complementary slackness is met.
In the latter part of this article, we attempted to illustrate this algorithm and show
some useful applications in a real network. Some limitations of applying this
technique in practice will also be discussed.
Let 𝐺 = (𝑋, 𝐸) be a directed network with a cost 𝑐𝑖𝑗 and a capacity 𝑢𝑖𝑗 associated
with every arc (𝑖, 𝑗) ∈ 𝐸. For vertex 𝑖 𝑖𝑛 𝐺, we define the out-neighbourhood - 𝑋+
(𝑖) and in neighborhood -𝑋−(𝑖)𝑜𝑓 𝑖 𝑏𝑦
𝑋+(𝑖){𝑗 ∈ 𝑋|(𝑖, 𝑗) ∈ 𝐸}
𝑋−(𝑖){𝑗 ∈ 𝑋|(𝑖, 𝑗) ∈ 𝐸}
Let an intensity (source strength) bi be assigned to each vertex 𝑖 with the relation
being valid. The MCF is to find a flow 𝑓𝑖𝑗 on G to minimize
Subject to
∑ 𝑓𝑖𝑗 − ∑ 𝑓 𝑖 = 𝑏𝑖 (3)
𝑗∈𝑋+(𝑖) 𝑗∈𝑋−(𝑖)
Source strength can be thought as data discarded (𝑏𝑖 < 0) or data from another
pairs of source and sink flowing throw the network (𝑏𝑖 > 0). Without loss of
generality, consider MCF that sends V unit (bits) of data from s to t. If there are
some pairs of source and sink, we just introduce an artificial source s and an
artificial sink t then connect this source and this sink to other sources and sinks
respectively. The constraint becomes
We assume throughout that there exists the feasible solution (MCF). For simplicity
in what follows we assume that there is at most one arc associated with each
ordered pair of nodes (𝑖, 𝑗) & all arc cost are non-negative. In addition, we only
consider the convex and differentiable cost function 𝑘𝑖(𝑓𝑖𝑗) on each arc in this
paper.
Mathematically,
𝑘𝑖(𝜆𝑋 + (1 − 𝜆)𝑦) ≤ 𝜆𝑘𝑖𝑗(𝑋) + (1 − 𝜆)𝑘𝑖𝑗(𝑦) 𝑓𝑜𝑟 𝑎𝑛𝑦 𝜆𝜖[0,1]
Proof:
1. Necessity condition. Let the conditions (7) be satisfied for a flow { 𝑖𝑗 }. We will
show that { 𝑖𝑗} minimizes the total cost. Since a flow is certainly not optimum if for
an arc 𝑓𝑖𝑗 > 0
Now, each vertex has been provided with a price. We will show that the condition
(7) is fulfilled. Suppose that in 𝐺̅ there exists and arc (𝑢, 𝑣) with ̅𝑓̅𝑖𝑗̅ > 0 and
̅ ̅̅ ̅
𝑝𝑣 − 𝑝𝑢 ≠ 𝑘′𝑢𝑣. In the spanning tree 𝐺′ the value Pu has been coordinated to u along
a chain (𝑖0,1, … , 𝑖𝑚 = 𝑢) and the value 𝑃𝑣 to v along a chain
(𝑖0 = 𝑖1, 𝑖𝑝−1, … , 𝑖𝑚+1 = 𝑣). Together with the arc (𝑢, 𝑣) we get a cycle.
For sufficiently small ℎ > 0, however, this expression is certainly greater than zero
if 𝑃𝑣 – 𝑃𝑢 > 𝑘’𝑢( ̅𝑓̅𝑢𝑣̅̅). But if𝑃𝑣 – 𝑃𝑢 > 𝑘’𝑢( ̅𝑓̅𝑢𝑣̅̅)., we modify the flow as follow: on
the arcs µ+ we decrease the flow by ℎ, on that of µ− we increase it by ℎ. The
resulting difference may be estimated in an analogous way. If G is not connected,
we assume 𝐺̅ has q sub-graphs. We form a graph 𝐺̅̅̅′by introducing a vertex n+1 and
connecting vertex it (1 ≤ t ≤ q) of each sub-graph of 𝐺̅ . We perform above studies
with the graph G' as described above with the price 𝑝𝑖for the vertex 𝑖𝑡, n+1 being
equated to zero.
4. APPLLICATION:
• Logistics and shipping
• Earthwork in roadway construction
• Passenger selection in ridesharing
Each link (𝑖, 𝑗) has a specified cost 𝑐𝑖𝑗 and capacity 𝑢𝑖𝑗, and we must determine its
flow 𝑥𝑖 .
Each node has a supply 𝑏𝑖. If 𝑖 > 0, the node is a source, if 𝑏𝑖 < 0 it is a sink, and if
𝑏𝑖 = 0it is a transshipment node.
max ∑ 𝑐𝑖𝑗𝑥𝑖𝑗
(𝑖,𝑗)∈𝐴
𝑠.𝑥𝑖𝑗 − ∑ 𝑥ℎ𝑗 = 𝑏𝑖 ∀ 𝑖 ∈ 𝑁
(ℎ,𝑖)∈𝐵(𝑖)
EXAMPLE:
Supply chain logistics can often be represented by a min cost flow problem.
The following model is based on Shahabi, Unnikrishnan, Shirazi & Boyles (2014).
A three-level location-inventory problem with correlated demand.
There are three kinds of nodes, representing manufacturing plants, warehouses, and
retailers. Each manufacturing plant produces a certain quantity of product, which
must be shipped first to a warehouse, and then from a warehouse to a retailer which
will sell a prespecified quantity of product.
There is a transportation cost between each plant and warehouse, and between each
warehouse and retailer. These transportation links have a capacity; furthermore,
each warehouse has a capacity.
EXAMPLES
• Supply chain management – deliver goods using v trucks from a warehouse
s to a customer t subject to road restrictions and toll fees.
• Telecommunication network planning – send message in v packets from
node s to node t subject to bandwidth capacity and transmission loss
There are 𝑛 men 𝑛 jobs. The cost of assignment man 𝑖 to job 𝑗 is 𝑎𝑖𝑗. For what man-