The Hypergraph Network Simplex Algorithm & Railway Optimization Ralf BorndΓΆrfer joint work with Isabel Beckenbach and Markus Reuther 4th ISM-ZIB-IMI MODAL Workshop on Mathematical Optimization and Data Analysis Tokyo, ISM, 27.03.2019 Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 1
Directed Hypergraphs Definition A directed hypergraph is a pair πΌ = (π, π) where π is a finite set of vertices and π is a family of hyperarcs . A hyperarc a β π is a pair π = (π’, β) of disjoint sets π’, β β π sets of vertices, at least one of them non-empty; π’ β π is called the tail of π , β β π is the head . Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 2
Graph-based Hypergraphs Definition Let πΈ = (π, π΅) be a simple directed draph. A directed hypergraph based on πΈ is a pair πΌ = (π, π) where π β 2 π΅ is a set of non-empty subsets π β π΅ of vertex-disjoint arcs. A directed hypergraph based on some graph πΈ is called graph-based . Remark A graph-based directed hypergraph is a directed hypergraph: For π β π let π’ π β {π€ β π: β π€, π₯ β π} and β π β π₯ β π: β π€, π₯ β π . Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 3
The Minimum Cost Hyperflow Problem Definition Let πΌ = (π, π) be a directed hypergraph based on a directed graph πΈ , π β β π a vector of costs , and π β β π of demands s.t. π π 1 = 0. The minimum cost hyperflow problem (MCH) is the linear program min ΰ· π π π¦ π πβπ ΰ· π¦ π β ΰ· π¦ π = π π€ βπ€ β π πβπ:π€ββ π πβπ:π€βπ’ π π¦ β₯ 0. A vector π¦ β β π that is feasible for this LP is a hyperflow (in πΌ ) (actually a circulation). Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 4
The Minimum Cost Hyperflow Problem In contrast to the graph case, there might not exist an integral βΊ min cost hyperfow, even if all data is integral (see example later). Finding a minimum cost integral hyperflow is NP-hard, even if the βΊ hyperarcs consist of at most two arcs. If the underlying digraph πΈ is connected and π΅ β π , i.e., all arcs βΊ of the underlying digraph are also hyperarcs, then ΰ· π¦ π β ΰ· π¦ π = π π€ βπ€ β π πβπ:π€ββ π πβπ:π€βπ’ π π¦ β₯ 0. has a solution if and only if π π 1 = 0 . Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 5
A Hypernetwork Simplex Algorithm Earlier work R. Cambini, G. Gallo, and M. G. ScutellΓ : Flows on hypergraphs. Mathematical Programming 78.2, p. 195-217 (1997). However We heavily use that we work on graph-based hypergraphs. βΊ The algorithm for our setting is simpler and closer to the original βΊ network simplex. Reference I. Beckenbach: Matchings and Flows in Hypergraphs. PhD thesis, Freie UniversitΓ€t Berlin (2019). Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 6
Characterizing the Bases Assumption The underlying digraph πΈ is connected and π΅ β π . Let π β 0, Β±1 πΓπ be the incidence matrix of πΌ . The minimum βΊ cost hyperflow problem can then be written as min π π π¦, ππ¦ = π, π¦ β₯ 0. If πΆ = {π 1 , β¦ , π π } , then let π β πΆ β (π β π 1 , β¦ , π β π π ) . βΊ βΊ π π π = π β 1 πΆ is a basis if and only if π π π β πΆ = πΆ = π β 1 . βΊ If πΆ is a basis, then πΌ πΆ β© π΅ = (π, πΆ β© π΅) is a forest that contains βΊ = |πΆ β π΅ + 1 components. π| β πΆ β© π΅ = π β πΆ β πΆ β π΅ Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 7
Characterizing the Bases Let πΆ β π be s.t. πΆ = π β 1, πΆ 1 β πΆ β© π΅ , πΆ 2 β πΆ β π΅. βΊ πΌ[πΆ 1 ] is a forest with πΆ 2 + 1 components. βΊ For every tree of πΌ[πΆ 1 ], choose a root π and denote its tree by π π . βΊ Let π be the set of all such roots. βΊ Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 8
Characterizing the Bases If πΆ is a basis and π 2 β π two roots, the system βΊ 1 , π π β πΆ π = βπ π 1 + π π 2 , π¦ β₯ 0 has a unique solution; we can send 1 unit of flow from π 1 to π 2 . Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 9
Characterizing the Bases If πΆ is a basis and π 2 β π two roots, the system βΊ 1 , π π β πΆ π = βπ π 1 + π π 2 , π β₯ 0 has a unique solution; we can (in a unique way) send 1 unit of flow from π 1 to π 2 in πΌ πΆ β© π΅ . The unique flow of 1 unit from an arbitrary fixed root π β to some βΊ other other root π β π β is called elementary . We can send 1 unit of flow from π 1 to π 2 via an arbitrary βΊ 1 to π β to π intermediate root π β , i.e., from π 2 . We can also (easily) send 1 unit of flow inside of a tree. βΊ Any flow in πΌ πΆ β© π΅ is a superposition of elementary flows and βΊ flows on trees. Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 10
The Elementary Hyperflow Matrix π , π β π , the rooted trees, π β β π a fixed root. Let πΆ be a basis, π βΊ For every π β π β π β there is a unique hyperflow π π in π, πΆ that βΊ transports 1 unit from π β to π . π π βπβ{π β } β β πΆΓπβ π β be the elementary hyperflow matrix Let πΊ β π βΊ whose π -th column contains this flow. πΊ is easily reconstructed from πΊ|πΆ 2 = πΊ πΆ 2 β by recomputing the βΊ flows on the trees (but this takes time). Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 11
The Elementary Hyperflow Matrix Example π 2 |πΆ 2 = 1/2 π β = π 1 , π 1/4 Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 12
The Elementary Hyperflow Matrix Example π 3 πΆ 2 β = 1/2 1/2 π β = π 1 , πΊ πΆ 2 β = π π 2 , π 1/4 β1/4 Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 13
The Elementary Hyperflow Matrix Example πΊ πΆ 2 β = 1/2 1/2 πΉ πβ π 1 β = 1 2 π β = π 1 , β2 , 1/4 β1/4 1 β π π π 2 β© β π ΰ· π π 2 π = 1 β π π π 2 β© π’ π πβπΆ β π π π 3 β© β π ΰ· π π 2 π = 0 β π π π 3 β© π’ π πβπΆ Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 14
Characterizing the Bases Define πΉ β β€ πΓπΆ 2 as βΊ πΉ π π β π π π β© β π β π π π β© π’ π . Lemma β1 βΊ πΉ πβ π β β = πΊ πΆ 2 β πΆ basis βΊ πΌ πΆ 1 forest of πΆ 2 + 1 components β π π πΊ πΆ 2 β = πΆ 2 βΊ βΊ πΌ πΆ 1 forest of πΆ 2 + 1 components β π π πΉ = πΆ 2 . Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 15
Characterizing the Bases Example β2 0 has rank 2 β πΆ is a basis πΉ = 1 2 1 β2 Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 16
Characterizing the Bases Example β1 β1 has rank 1 β πΆ is not a basis πΉ = 2 2 β1 β1 Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 17
Elementary Hyperflow and Intersection Count Matrix π , π β π , the rooted trees, π β β π a fixed root. Let πΆ be a basis, π βΊ For every π β π β π β there is a unique hyperflow π π in π, πΆ that βΊ transports 1 unit from π β to π . π π βπβ{π β } β β πΆΓπβ π β be the elementary hyperflow matrix Let πΊ β π βΊ whose π -th column contains this flow. πΊ is easily reconstructed from πΊ|πΆ 2 = πΊ πΆ 2 β by recomputing the βΊ flows on the trees. Define an intersection count matrix πΉ β β€ πΓπΆ 2 as βΊ πΉ π π β π π π β© β π β π π π β© π’ π . β1 βΊ πΉ πβ π β β = πΊ πΆ 2 β Hypernetwork Simplex Algorithm and Railways | 4th ISM-ZIB-IMI MODAL Workshop 18
Recommend
More recommend