10-1_duality
10-1_duality
1 - Duality: definition
Optimisation problems turn out to be closely related to their dual problems. Studying
duality is useful to gain insight into the mathematical structure of the original problems
and sometimes offers more efficient ways to solve them. We will take a brief look at the
definition of Lagrange duality in the context of general optimisation problems before we
focus on its application to linear programming.
Lagrange Duality
Consider a general optimisation problem in standard form.
min f0 (x)
x
s.t. fi (x) ≤ 0 i = 1, . . . n (1)
hi (x) = 0 i = 1, . . . , m
The scalars λi , νi are called Lagrange Multipliers and we call the associated vectors
λ ∈ Rn , and ν ∈ Rm , dual variables.
When the Lagrangian is unbounded below, the dual function takes on a value of −∞.
1
where p∗ is the optimal value p∗ = f0 (x∗ ) of (1). To see this, suppose x̃ is a feasible
point for the problem (1), (i.e. that fi (x̃) ≤ 0 for all i = 1, . . . , n and hi (x̃) = 0 for all
i = 1, . . . , m) and that λ ≥ 0. Then
n
X m
X
L(x̃, λ, ν) = f0 (x̃) + λi fi (x̃) + νi hi (x̃) ≤ f0 (x̃).
i=1 i=1
It then follows that for any feasible point x̃, and λ ≥ 0 that
In particular, if x̃ = x∗ then
g(λ, ν) ≤ p∗ .
We say that λ, ν are dual feasible if λ ≥ 0 and g(λ, ν) > −∞. Finally we refer to
(λ∗ , ν ∗ ) as dual optimal or optimal Lagrange multipliers if they are optimal for (5).
In this context, we call the original optimisation (1) the primal problem, or simply the
primal.
min cT x
x
s.t. Ax = b
x ≥ 0.
2
The Lagrangian is then given by
L(x, λ, ν) = cT x + ν T (Ax − b) − λT x
= −bT ν + (AT ν − λ + c)T x
Note that in the second case above, since the domain of x is Rp (x ≥ 0 taken into
account as the constraint), the function value can be arbitrarily negative. Therefore
g(λ, ν) takes the value of −∞. The Lagrange dual problem (or simply the dual) is
max − bT ν
λ,ν
s.t. AT ν − λ + c = 0 (6)
λ≥0
which is simply another LP. This can also be expressed in inequality form, treating the λ
as slack variables:
max − bT ν
ν
(7)
s.t. − AT ν ≤ c.
Notice that ν is not restricted in sign. Hence, we can write ν in place of −ν and simplify
the problem. In other words, we can get rid of the negative signs in the inequality-form
LP.
min cT x
x
s.t. Ax ≤ b.
There are no equality constraints, so we only need λ Lagrange multipliers. The La-
grangian is given by
3
and the Lagrange dual is
(
− bT λ if AT λ = −c, λ ≥ 0
g(λ) =
−∞ otherwise
Note for both of these examples, that the number of primal constraints is equal to the
number of dual variables, and vice versa.