encyclopegia.org

Multi-commodity flow problem

The multi-commodity flow problem is a network flow problem with multiple commodities (flow demands) between different source and sink nodes.

The multi-commodity flow problem is a network flow problem with multiple commodities (flow demands) between different source and sink nodes. ==Definition== Given a flow network \,G(V,E) , where edge (u,v) \in E has capacity \,c(u,v) . There are \,k commodities K_1,K_2,\dots,K_k , defined by \,K_i=(s_i,t_i,d_i) , where \,s_i and \,t_i is the source and sink of commodity \,i , and \,d_i is its demand. The variable \,f_i(u,v) defines the fraction of flow \,i along edge \,(u,v) , where \,f_i(u,v) \in [0,1] in case the flow can be split among multiple paths, and \,f_i(u,v) \in \{0,1\} otherwise (i.e. "single path routing"). Find an assignment of all flow variables which satisfies the following four constraints: (1) Link capacity: The sum of all flows routed over a link does not exceed its capacity. \forall (u,v)\in E:\,\sum_{i=1}^{k} f_i(u,v)\cdot d_i \leq c(u,v) (2) Flow conservation on transit nodes: The amount of a flow entering an intermediate node u is the same that exits the node. \forall i\in\{1,\ldots,k\}:\,\sum_{(u,w) \in E} f_i(u,w) - \sum_{(w,u) \in E} f_i(w,u) = 0 \quad \mathrm{when} \quad u \neq s_i, t_i (3) Flow conservation at the source: A flow must exit its source node completely. \forall i\in\{1,\ldots,k\}:\,\sum_{(s_i,w) \in E} f_i(s_i,w) - \sum_{(w,s_i) \in E} f_i(w,s_i) = 1 (4) Flow conservation at the destination: A flow must enter its sink node completely. \forall i\in\{1,\ldots,k\}: \,\sum_{(w,t_i) \in E} f_i(w,t_i) - \sum_{(t_i,w) \in E} f_i(t_i,w) = 1 ==Corresponding optimization problems== Load balancing is the attempt to route flows such that the utilization U(u,v) of all links (u,v)\in E is even, where U(u,v)=\frac{\sum_{i=1}^{k} f_i(u,v)\cdot d_i}{c(u,v)} The problem can be solved e.g. by minimizing \sum_{u,v\in V} (U(u,v))^2 . A common linearization of this problem is the minimization of the maximum utilization U_{max} , where \forall (u,v)\in E:\, U_{max} \geq U(u,v) In the minimum cost multi-commodity flow problem, there is a cost a(u,v) \cdot f(u,v) for sending a flow on \,(u,v) . You then need to minimize \sum_{(u,v) \in E} \left( a(u,v) \sum_{i=1}^{k} f_i(u,v)\cdot d_i \right) In the maximum multi-commodity flow problem, the demand of each commodity is not fixed, and the total throughput is maximized by maximizing the sum of all demands \sum_{i=1}^{k} d_i ==Relation to other problems== The minimum cost variant of the multi-commodity flow problem is a generalization of the minimum cost flow problem (in which there is merely one source s and one sink t ). Variants of the circulation problem are generalizations of all flow problems. That is, any flow problem can be viewed as a particular circulation problem. ==Usage== Routing and wavelength assignment (RWA) in optical burst switching of Optical Network would be approached via multi-commodity flow formulas, if the network is equipped with wavelength conversion at every node. Register allocation can be modeled as an integer minimum cost multi-commodity flow problem: Values produced by instructions are source nodes, values consumed by instructions are sink nodes and registers as well as stack slots are edges. ==Solutions== In the decision version of problems, the problem of producing an integer flow satisfying all demands is NP-complete, even for only two commodities and unit capacities (making the problem strongly NP-complete in this case). If fractional flows are allowed, the problem can be solved in polynomial time through linear programming, or through (typically much faster) fully polynomial time approximation schemes. ==Applications== Multicommodity flow is applied in the overlay routing in content delivery. ==External resources== Papers by Clifford Stein about this problem: http://www.columbia.edu/~cs2035/papers/#mcf Software solving the problem: https://web.archive.org/web/20130306031532/http://typo.zib.de/opt-long_projects/Software/Mcf/ ==References== Add: Jean-Patrice Netter, Flow Augmenting Meshings: a primal type of approach to the maximum integer flow in a multi-commodity network, Ph.D. dissertation Johns Hopkins University, 1971

References

  1. Towards a more principled compiler: Register allocation and instruction selection revisited · retrieved 2026-11-19 · rev 1346580435
    Cite this reference

    MLA "Towards a more principled compiler: Register allocation and instruction selection revisited." Koes, David Ryan (2009). 2026-11-19. https://en.wikipedia.org/wiki/S2CID_(identifier). Accessed 24 November 2026.

    Chicago "Towards a more principled compiler: Register allocation and instruction selection revisited." Koes, David Ryan (2009). 2026-11-19. https://en.wikipedia.org/wiki/S2CID_(identifier).

    APA Koes, David Ryan (2009). (2026). Towards a more principled compiler: Register allocation and instruction selection revisited. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/S2CID_(identifier)

  2. Thomas H. Cormen , Charles E. Leiserson , Ronald L. Rivest , and Clifford Stein (2009). "29". Introduction to Algorithms (3rd ed.). MIT Press and McGraw–Hill. p. 862. ISBN 978-0-262-03384-8 . {{ cite book }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1346580435, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1346580435
    Cite this reference

    MLA "Thomas H. Cormen , Charles E. Leiserson , Ronald L. Rivest , and Clifford Stein (2009). "29". Introduction to Algorithms (3rd ed.). MIT Press and McGraw–Hill. p. 862. ISBN 978-0-262-03384-8 . {{ cite book }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1346580435, retrieved 2026-11-20." Thomas H. 2026-11-19. https://en.wikipedia.org/wiki/Thomas_H._Cormen. Accessed 24 November 2026.

    Chicago "Thomas H. Cormen , Charles E. Leiserson , Ronald L. Rivest , and Clifford Stein (2009). "29". Introduction to Algorithms (3rd ed.). MIT Press and McGraw–Hill. p. 862. ISBN 978-0-262-03384-8 . {{ cite book }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1346580435, retrieved 2026-11-20." Thomas H. 2026-11-19. https://en.wikipedia.org/wiki/Thomas_H._Cormen.

    APA Thomas H. (2026). Thomas H. Cormen , Charles E. Leiserson , Ronald L. Rivest , and Clifford Stein (2009). "29". Introduction to Algorithms (3rd ed.). MIT Press and McGraw–Hill. p. 862. ISBN 978-0-262-03384-8 . {{ cite book }} : CS1 maint: multiple names: authors list ( link ) Wikipedia revision 1346580435, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Thomas_H._Cormen

  3. Faster approximation schemes for fractional multicommodity flow problems · retrieved 2026-11-19 · rev 1346580435
    Cite this reference

    MLA "Faster approximation schemes for fractional multicommodity flow problems." George Karakostas (2002). 2026-11-19. https://archive.org/details/proceedingsofthi2002acms/page/166. Accessed 24 November 2026.

    Chicago "Faster approximation schemes for fractional multicommodity flow problems." George Karakostas (2002). 2026-11-19. https://archive.org/details/proceedingsofthi2002acms/page/166.

    APA George Karakostas (2002). (2026). Faster approximation schemes for fractional multicommodity flow problems. Retrieved November 24, 2026, from https://archive.org/details/proceedingsofthi2002acms/page/166

  4. Algorithmic Nuggets in Content Delivery · retrieved 2026-11-19 · rev 1346580435
    Cite this reference

    MLA "Algorithmic Nuggets in Content Delivery." Bruce M. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Algorithmic Nuggets in Content Delivery." Bruce M. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Bruce M. (2026). Algorithmic Nuggets in Content Delivery. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  5. On the Complexity of Timetable and Multicommodity Flow Problems · retrieved 2026-11-19 · rev 1346580435
    Cite this reference

    MLA "On the Complexity of Timetable and Multicommodity Flow Problems." S. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "On the Complexity of Timetable and Multicommodity Flow Problems." S. 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA S. (2026). On the Complexity of Timetable and Multicommodity Flow Problems. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  6. Ahuja, Ravindra K.; Magnanti, Thomas L.; Orlin, James B. (1993). Network Flows. Theory, Algorithms, and Applications . Prentice Hall. Wikipedia revision 1346580435, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1346580435
    Cite this reference

    MLA "Ahuja, Ravindra K.; Magnanti, Thomas L.; Orlin, James B. (1993). Network Flows. Theory, Algorithms, and Applications . Prentice Hall. Wikipedia revision 1346580435, retrieved 2026-11-20." Ahuja, Ravindra K. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1346580435. Accessed 24 November 2026.

    Chicago "Ahuja, Ravindra K.; Magnanti, Thomas L.; Orlin, James B. (1993). Network Flows. Theory, Algorithms, and Applications . Prentice Hall. Wikipedia revision 1346580435, retrieved 2026-11-20." Ahuja, Ravindra K. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1346580435.

    APA Ahuja, Ravindra K. (2026). Ahuja, Ravindra K.; Magnanti, Thomas L.; Orlin, James B. (1993). Network Flows. Theory, Algorithms, and Applications . Prentice Hall. Wikipedia revision 1346580435, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1346580435

Cite this article

MLA

"Multi-commodity flow problem." encyclopegia.org, 2026, https://encyclopegia.org/wiki/multi-commodity-flow-problem. Accessed 24 November 2026.

Chicago

"Multi-commodity flow problem." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/multi-commodity-flow-problem.

APA

encyclopegia.org. (2026). Multi-commodity flow problem. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/multi-commodity-flow-problem

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

payment flow

stub · references available

two-phase flow

stub · references available

Nu Flow

stub · references available

Adaptive Multi-Rate Wideband

stub · references available

Multi-Band Excitation

stub · references available

Max-flow min-cut theorem

stub · references available

multi-user MIMO

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1346580435 · 0.55 · snapshot multi-commodity-flow-problem-781700-123f39f1d6d08b4d · QID Q6934437

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.