Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
z = x1 + x2
sx1 + tx2 1,
x 1 , x2 0
and the demand assigned to w is the negative of the number of vertices (5) on the right side
of the original graph.
If there is a directed edge from vertex u to v, let xuv denote an amount to be shipped
from u to v. A feasible shipping schedule is an assignment of non-negative xuv to the edges so
that demand is met at every vertex. (The total amount coming into a vertex is the amount
coming in minus the amount going out). For example, considering vertex `1 , this constraint
requires
x`1 ,v x`1 ,r1 x`1 ,r2 = 1.
a) Write down the demand constraints for vertices `2 , r1 , r2 , v, and w.
b) Let {xuv } be a feasible schedule such that each xuv is a non-negative integer. Show
that for each edge in the original bipartite graph, that is each edge from an `i vertex to an
rj vertex, either xuv = 0 or xuv = 1 and that the edges for which xuv = 1 define a matching.
c) Let the unit cost for shipping over any edge of the original graph, that is an edge from
`i to rj , be 1. Thus if x`i rj is shipped over the edge connecting `i and rj , this contributes
x`i rj to the cost. Let the cost of shipping over any other edge be 0.
Conclude from a) that the problem of finding a maximal matching is equivalent to the
linear integer programming problem of finding the feasible schedule with minimum cost.
eP
P
e
PP
PP
PP
e
e
PP
Q
P
Q P
QPPP
Pe
e QQ
Q
Q
Q
Q
Q
Qe
e QQ
Q
Q
Qe
P
i
1 P
QP
1 PPPQQ
P
1 QP
P
PPQ 5
PP
r3
`3 eQ
+
PP
)
q e
P
Q
e
Qe
Q
iP
P
1
Q
w
Q
6 PP
1 QQ Q 1
PP
s e
Q
P`P
4 e Q
)
Q
r 4
Q
1
Q 1
s e
Q
+
`1 e
- er1
1
PPP
k
Q
1
P
P
PP 1 Q
`
q er2 QQ
P
2 e
4
r5