7.7 Practice Problems

Problem 7.7.1. Find the north-west corner solution of Example 7.1.2 by hand and its cost.

Show solution

Solution. \((1, 1) = 5\), exhausting \(D_1\); \((1, 2) = 2\), exhausting \(S_1\); \((2, 2) = 6\), exhausting \(D_2\); \((2, 3) = 3\), exhausting \(S_2\); \((3, 3) = 4\), exhausting \(D_3\); \((3, 4) = 14\). The cost is \[ 5\cdot 19 + 2\cdot 30 + 6\cdot 30 + 3\cdot 40 + 4\cdot 70 + 14\cdot 20 = 95 + 60 + 180 + 120 + 280 + 280 = 1015 . \]

Problem 7.7.2. Starting from the VAM solution \((1, 1) = 5\), \((1, 4) = 2\), \((2, 3) = 7\), \((2, 4) = 2\), \((3, 2) = 8\), \((3, 4) = 10\) of Example 7.1.2, find \(u\), \(v\) and the reduced cost of \((2, 2)\), and carry out one MODI iteration.

Show solution

Solution. With \(u_1 = 10\) (any normalisation works): \(v_1 = 9\), \(v_4 = 0\), then \(u_2 = 60\), \(u_3 = 20\), \(v_3 = -20\), \(v_2 = -12\). So \(d_{22} = 30 - 60 + 12 = -18 < 0\). The cycle is \((2, 2)^+ \to (3, 2)^- \to (3, 4)^+ \to (2, 4)^-\); the decreasing cells hold \(8\) and \(2\), so \(\theta = 2\). The new plan has \((2, 2) = 2\), \((3, 2) = 6\), \((3, 4) = 12\), \((2, 4) = 0\), and cost \(779 - 2 \times 18 = 743\), the optimum.

Problem 7.7.3. Supplies are \(40\), \(30\) and demands \(25\), \(20\), \(15\). Balance the problem and say what the dummy shipments mean.

Show solution

Solution. Supply is \(70\) and demand \(60\), so add a dummy destination \(D_4\) with demand \(10\) and zero cost. Shipments to \(D_4\) are supply left unused at its source; if storage or disposal has a cost, that cost goes in the dummy column.

Problem 7.7.4. Five operators are to be assigned to five machines, and the payoff (not cost) of operator \(i\) on machine \(j\) is \(p_{ij}\). How is the problem converted for the Hungarian method, and why does the conversion not change the optimal assignment?

Show solution

Solution. Use costs \(c_{ij} = P - p_{ij}\) with \(P = \max p_{ij}\). Every assignment has exactly one entry in each row, so its cost is \(5P\) minus its payoff, and minimising cost is the same as maximising payoff. The costs are non-negative, as the method requires.

Problem 7.7.5. Show that the incidence matrix of a triangle (rows for the three vertices, columns for the three edges) is not totally unimodular, and explain the consequence for the LP relaxation of matching in a triangle.

Show solution

Solution. \(\det \begin {pmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end {pmatrix} = 1(1 - 0) - 1(0 - 1) + 0 = 2\). The LP “maximise \(x_{12} + x_{23} + x_{13}\) with each vertex covered at most once” has the fractional vertex \(x = (\frac 12, \frac 12, \frac 12)\) with value \(\frac 32\), while the best matching has value \(1\): for non-bipartite graphs the LP needs extra constraints (Edmonds’ odd-set constraints) to be integral.

Problem 7.7.6. Show that in the assignment problem every BFS is degenerate when \(n \geq 2\).

Show solution

Solution. A basis has \(2n - 1\) cells, by Proposition 7.1.1. A BFS is a vertex, hence by total unimodularity a permutation matrix, with exactly \(n\) positive entries. So \(n - 1 \geq 1\) basic variables are zero.

Questions on this section

Stuck on something here? Ask below and it stays attached to this topic.