Professional Documents
Culture Documents
Ryan Tibshirani
Convex Optimization 10-725/36-725
f (x)
subject to
hi (x) 0, i = 1, . . . m
Ax = b
tf (x) + (x)
subject to
Ax = b
m
X
log(hi (x))
i=1
tf (x) + (x)
subject to
Ax = b
Stop if m/t
Outline
Today:
Motivation from perturbed KKT conditions
Primal-dual interior-point method
Backtracking line search
m
X
i=1
ui hi (x) + AT v = 0
ui hi (x) = 1/t,
hi (x) 0,
i = 1, . . . m
i = 1, . . . m,
ui 0,
Ax = b
i = 1, . . . m
Only difference between these and actual KKT conditions for our
original problem is in the second condition: these are replaced by
ui hi (x) = 0,
i = 1, . . . m
We didnt cover this, but Newton updates for log barrier problem
can be seen as Newton step for solving these nonlinear equations,
after eliminating u (i.e., taking u = 1/(thi (x)), i = 1, . . . m)
Primal-dual interior-point updates are also motivated by a Newton
step for solving these nonlinear equations, but without eliminating
u. Write it concisely as r(x, u, v) = 0, where
f (x) + Dh(x)T u + AT v
diag(u)h(x) 1/t
r(x, u, v) =
Ax b
and
h1 (x)
h(x) = . . . ,
hm (x)
h1 (x)T
...
Dh(x) =
T
hm (x)
7
rprim = Ax b
I.e., we solve
2
P
2
f (x) + m
Dh(x)T
AT
x
i=1 ui hi (x)
diag(u)Dh(x)
diag(h(x)) 0 u
A
0
0
v
rdual
= rcent
rprim
Solution y = (x, u, v) is our primal-dual update direction
Note that the update directions for the primal and dual variables
are inexorably linked together
(Also, these are different updates than those from barrier method)
Note the stopping criterion checks both the surrogate duality gap,
and (approximate) primal and dual feasibility
11
u+ = u + su,
v + = v + sv
Update s = s, until
cT x
subject to
Ax = b
x0
for c Rn , A Rmn , b Rm . Its dual is:
max
u,v
subject to
bT v
AT v + u = c
u0
13
Some history
Dantzig (1940s): the simplex method, still today is one of the
14
15
Primal-dual method:
0 = rpd (x, u, v)
AT v + u c
= diag(x)u 1/t
Ax b
16
0
I
AT
x
diag(u) diag(x) 0 u = rpd (x, u, v)
A
0
0
v
and take a step y + = y + sy (with line search for s > 0), but
only once. Then update t = t
17
Interior-point methods
100
102
102
102
104
104
100 100
6 6
10 10
104
106
105 105
rfeas
100 100
duality gap
102 102
102
= 50 = 150
20
60
40
Newton iterations
=2
80
1010
1010
108
108
1010
1010
0 0 5
Figure 11.4 Progress of barrier method for a small LP, showing duality
gap versus cumulative number of Newton steps. Three plots are shown,
corresponding to three values of the parameter : 2, 50, and 150. In each
case, we have approximately linear convergence of duality gap.
105105
rfeas
72
1015
1015
0 05
5 10 1015 1520 2025 2530 30
iteration
number
iteration
number
Primal-dual surrogate
duality gap
Newtons method is (x)2 /2 105 , where (x) is the Newton decrement of the
function tcT x + (x).
The progress of the barrier method, for three values of the parameter , is
shown in figure 11.4. The vertical axis shows the duality gap on a log scale. The
horizontal axis shows the cumulative total number of inner iterations, i.e., Newton
steps, which is the natural measure of computational eort. Each of the plots has
a staircase shape, with each stair associated with one outer iteration. The width of
each stair tread (i.e., horizontal portion) is the number of Newton steps required
for that outer iteration. The height of each stair riser (i.e., the vertical portion) is
exactly equal to (a factor of) , since the duality gap is reduced by the factor at
the end of each outer iteration.
102 102
The plots illustrate several typical features of the barrier method. First of all,
the method works very well, with approximately linear convergence of the duality
30
Figure
11.21
Progress
of the
interior-point
method
for an
Figure
11.21
Progress
of primal-dual
the primal-dual
interior-point
method
forLP,
an LP,
showing
surrogate
duality
gap gap
and
the norm
of the
and dual
resid-residshowing
surrogate
duality
and
the norm
ofprimal
the primal
and dual
uals,uals,
versus
iteration
number.
The The
residual
converges
rapidly
to zero
versus
iteration
number.
residual
converges
rapidly
to within
zero within
24 iterations;
the the
surrogate
gap gap
also also
converges
to a to
very
smallsmall
number
in in
24 iterations;
surrogate
converges
a very
number
about
28 iterations.
The The
primal-dual
interior-point
method
converges
fasterfaster
about
28 iterations.
primal-dual
interior-point
method
converges
feas
thanthan
the the
barrier
method,
especially
if high
accuracy
is required.
barrier
method,
especially
if high
accuracy
is required.
Primal-dual feasibility
gap, r
=
(krprim k22 + krdual k22 )1/2
18
104
0
10
20
30
Newton iterations
40
50
Figure 11.7 Progress of barrier method for three randomly generated standard form LPs of dierent dimensions, showing duality gap versus cumulative number of Newton steps. The number of variables in each problem is
n = 2m. Here too we see approximately linear convergence of the duality
gap, with a slight increase
4 in the number of Newton steps required for the
larger problems.
35
50
30
40
iterations
Newton iterations
25
20
20
15 1
10
30
102
m
103
10 1
10
102
m
103
Barrier method
Primal-dual method
Chapter 11
Chapters 14 and 19
Chapters 5 and 6
methods
20