4.7 The dual model and the reduced costs¶
Part 3 · Flows · Chapter 4 · Chapter 4: Flow models · Lecture notes, volume 3 (PDF) · Exercises: Flow models
-
By Proposition 4.9 the lower bounds can be removed, so in this section \(\vet{l}=\vet{0}\) and every capacity is finite. The constraint \(x_{ij} \le u_{ij}\) is written as \(-x_{ij} \ge -u_{ij}\).
-
Following the rules of Chapter 9 «Duality theory» of the module Linear Programming, we use a free dual variable \(\pi_i\), the potential of node \(i\), for its conservation equation, and a non-negative dual variable \(\alpha_{ij}\) for the capacity of \((i,j)\).
Using free dual variables \(\pi_i\) for the constraints (4.1b) and non-negative dual variables \(\alpha_{ij}\) for the capacities, the dual model of the \(\mathrm{MCF}\) model with \(\vet{l}=\vet{0}\) is:
This LP model is referred to as the \(D(\mathrm{MCF})\) model.
-
Description of the dual model:
-
the column of \(x_{ij}\) has \(+1\) in the equation of \(i\), \(-1\) in the equation of \(j\) and \(-1\) in its capacity constraint, which gives the dual constraint \(\eqref{nf:dcons}\), one for every arc;
-
the primal variables are non-negative, so the dual constraints are of type \(\le\).
-
-
Adding the same constant to all the potentials changes neither \(\eqref{nf:dcons}\) nor the objective, since \(\sum_{i \in N} b_i=0\): the potentials can be normalized, for example with \(\pi_n=0\).
Definition 4.17: reduced cost
Given potentials \(\vet{\pi} \in \R^n\), the reduced cost of the arc \((i,j) \in A\) is
- The dual constraint \(\eqref{nf:dcons}\) reads \(\bar{c}_{ij}+\alpha_{ij} \ge 0\). For fixed potentials, the best choice of \(\alpha_{ij} \ge 0\) is the smallest one, \(\alpha_{ij}=\max\{0,-\bar{c}_{ij}\}\).
Lemma 4.18: cost and reduced cost
For every \(\vet{x}\) with \(\mat{B}\vet{x}=\vet{b}\) and every \(\vet{\pi} \in \R^n\),
Proof
Since \(c_{ij}=\bar{c}_{ij}+\pi_i-\pi_j\), it suffices to show \(\sum_{(i,j) \in A}(\pi_i-\pi_j)\,x_{ij}=\sum_{i \in N} b_i\pi_i\). The term \(\pi_i x_{ij}\) goes to the tail and \(-\pi_j x_{ij}\) to the head, so
□
Theorem 4.19: duality gap
Let \(\vet{x}\) be a feasible flow (\(\vet{l}=\vet{0}\)) and \((\vet{\pi},\vet{\alpha})\) a feasible solution of the \(D(\mathrm{MCF})\) model. Then
and both solutions are optimal if and only if, for every arc, \((\bar{c}_{ij}+\alpha_{ij})\,x_{ij}=0\) and \(\alpha_{ij}(u_{ij}-x_{ij})=0\).
Proof
By Lemma 4.18, the left-hand side is \(\sum \bar{c}_{ij}x_{ij}+\sum u_{ij}\alpha_{ij}\), and \(u_{ij}\alpha_{ij}=\alpha_{ij}x_{ij}+\alpha_{ij}(u_{ij}-x_{ij})\) gives the identity.
-
Every term is non-negative: \(\bar{c}_{ij}+\alpha_{ij} \ge 0\) by \(\eqref{nf:dcons}\), \(\alpha_{ij} \ge 0\), and \(0 \le x_{ij} \le u_{ij}\).
-
If the gap is zero, the primal cost equals a dual value, which is a lower bound on every primal cost by the inequality just proved: \(\vet{x}\) is optimal, and in the same way \((\vet{\pi},\vet{\alpha})\) is optimal.
-
If both are optimal, the gap is zero by the strong duality theorem of Chapter 9 «Duality theory». A sum of non-negative terms is zero if and only if every term is zero.
□
Corollary 4.20: reduced cost certificate
Let \(\vet{x}\) be a feasible flow (\(\vet{l}=\vet{0}\)) and \(\vet{\pi} \in \R^n\) potentials such that, for every arc,
Then \(\vet{x}\) is an optimal flow, and \(\vet{\pi}\) with \(\alpha_{ij}=\max\{0,-\bar{c}_{ij}\}\) is an optimal solution of the \(D(\mathrm{MCF})\) model.
Proof
The pair \((\vet{\pi},\vet{\alpha})\) is dual feasible, since \(\alpha_{ij} \ge 0\) and \(\bar{c}_{ij}+\alpha_{ij} \ge 0\). We check the two conditions of Theorem 4.19 on every arc.
-
If \(\bar{c}_{ij} \ge 0\), then \(\alpha_{ij}=0\), and \(\bar{c}_{ij}x_{ij}=0\) because \(\bar{c}_{ij}>0\) forces \(x_{ij}=0\).
-
If \(\bar{c}_{ij}<0\), then \(\bar{c}_{ij}+\alpha_{ij}=0\), and \(\alpha_{ij}(u_{ij}-x_{ij})=0\) because \(x_{ij}=u_{ij}\).
The gap is zero, so both solutions are optimal. □
- An arc with positive reduced cost is empty, an arc with negative reduced cost is saturated, and an arc strictly between its bounds has reduced cost zero.
Example 4.8: the dual of the reference network
For the network of Example 4.1, the \(D(\mathrm{MCF})\) model is
with \(\vet{\alpha} \ge \vet{0}\), free potentials, and one constraint per arc:
The balances \(b_3=b_5=0\) make \(\pi_3\) and \(\pi_5\) disappear from the objective.
- The potentials and the reduced costs are the basis of the optimality tests of Chapter 6 «Minimum cost flow».
The dual of the \(\mathrm{MCF}\) model has a potential \(\pi_i\) per node; the reduced cost is \(\bar{c}_{ij}=c_{ij}-\pi_i+\pi_j\). A feasible flow whose positive-reduced-cost arcs are empty and negative-reduced-cost arcs are saturated is optimal.
Next: 4.8 Special cases