https://www.youtube.com/user/CosmoLearning/search?query=flow
Minimum Cost Flow Problem
given:
- given a network with N nodes and links among them
- the link from node i to j has a given capacity Cij ≥ 0 (Cij and Cji may be different)
- each node i is associated with a given number bi, the source rate of the node:
- if bi>0, the node is a source
- if bi<0, the node is a sink
- if bi=0, the node is a “transshipment” node that only forwards the flow with no loss and no gain
- each link is associated with a cost factor aij ≥ 0. The value of aij is the cost of sending unit amount of flow on link (i,j). Thus, sending xij amount of flow on the link costs aijxij
constraints:
- capacity constraint: The flow on each link cannot exceed the capacity of the link
- flow conservation: The total outgoing flow of a node minus the total incoming flow of the node must be equal to the source rate of the node. That is, the difference between the flow out and into the node is exactly what the node produces or sinks. For transshipment nodes (bi = 0) the outgoing and incoming flow amounts are equal
objective:
- find the amount of flow sent on each link, so that the constraints are satisfied and the total cost of the flow is minimized
Linear Programming Standard Formulation
- objective function:
min Z = Σij[aijxij] - linear constraints:
xij ≤ Cij # capacity constraint
Σj [xij] - Σk [xki] = bi # flow conservation - non-negative variables:
∀ij [xij ≥ 0]