← All writing

Convex Optimization (2)

Optimization Problems and Duality

Parts: 1 · 2

Chapter 4 Convex Optimization Problems

4.1 Optimization problems

4.1.1 Basic terminology

minimize f0(x)subject to  fi(x)≤0,  i=1,...,m         hi(x)=0,i=1,...,pminimize \ f_0(x)\\ subject \ to \ \ f_i(x) \le 0, \ \ i = 1, ..., m\\ \ \ \ \ \ \ \ \ \ h_i(x) = 0, i = 1, ..., p

The domain

D=⋂i=0mdom fi ∩ ⋂i=1pdom hiD = \bigcap_{i = 0}^m dom \ f_i \ \cap \ \bigcap_{i = 1}^p dom \ h_i

The optimalvalueoptimal value p∗p^* of the problem (4.1) is defined as

p∗=inf⁡{f0(x)∣fi(x)≤0,i=0,...,m,hi(x)=0,i=1,...,p}p^* = \inf \{f_0(x) | f_i(x) \le 0, i = 0, ...,m, h_i(x)=0, i = 1, ...,p\}

A point is feasible if it satifies the constraints.

4.1.3 Equivalent problems

See it at page 130.

4.2 Convex optimization

4.2.1 Convex optimization problems in standard form

A convex optimization problem is one of the form

minimize  f0(x)subject to  fi(x)≤0,i=1,...,maiTx=bi  i=1,...,pminimize \ \ f_0(x) \\ subject \ to \ \ f_i(x) \le 0, i = 1, ...,m\\ a_i^Tx = b_i \ \ i =1, ..., p

where f0,...,fmf_0, . . . , f_m are convex functions.

The convex problem has three additional requirements:

the objective function must be convex,

the inequality constraint functions must be convex,

the equality constraint functions hi(x)=aiTx−bih_i(x) = a^T_i x- b_i must be affine.

The feasible set of a convex optimization problem is convex.

4.2.2 Local and global optima

A fundamental property of convex optimization problems is that any locally optimal point is also (globally) optimal.

It is not true that locally optimal points of quasiconvex optimization problems are globally optimal;

4.2.3 An optimality criterion for differentiable f0f_0

Suppose that the objective f0f_0 in a convex optimization problem is differentiable. Let XX denote the feasible set. Then xx is optimal if and only if x∈Xx \in X and

∇f0(x)T(y−x)≥0   for all y∈X\nabla f_0(x)^T(y - x) \ge 0 \ \ \ for \ all \ y \in X
Unconstrained problems

For an unconstrained problem, the condition (4.21) reduces to the well known necessary and sufficient condition

∇f0(x)=0\nabla f_0(x) = 0

for xx to be optimal.

Problems with equality constraints only
minimize  f0(x)subject to  Ax=bminimize \ \ f_0(x) \\ subject \ to \ \ Ax = b

Here the feasible set is an affine set.

See page 141

Minimization over the nonnegative orthant
minimize  f0(x)subject to x⪰0minimize \ \ f_0(x)\\ subject \ to \ x \succeq 0

See page 142

4.2.4 Equivalent convex problems

See page 142

Eliminating equality constraints
Introducing equality constraints
Slack variables

4.2.5 Quasiconvex optimization

4.3 Linear optimization problems

When the objective and constraint functions are all affine, the problem is called a linear program (LP). A general linear program has the form

minimize cTx+dsubject to Gx⪯h    Ax=bminimize \ c^Tx + d\\ subject \ to \ Gx \preceq h \\ \ \ \ \ Ax = b

where G∈Rm×nG \in R^{m\times n} and A∈Rp×nA ∈ R^{p\times n}. Linear programs are, of course, convex optimization problems.

4.3.2 Linear-fractional programming

The problem of minimizing a ratio of affine functions over a polyhedron is called a linear-fractional program:

minimize  f0(x)subject  to  Gx⪯h    Ax=bminimize \ \ f_0(x) \\ subject \ \ to \ \ Gx \preceq h \\ \ \ \ \ Ax = b

where the objective function is given by

f0(x)=cT+deTx+f  dom f0={x∣eTx+f>0}f_0(x) = \frac {c^T + d}{e^Tx + f} \ \ dom \ f_0 = \{x | e^Tx + f > 0\}

The objective function is quasiconvex (in fact, quasilinear) so linear-fractional programs are quasiconvex optimization problems.

Luckily, it can be transformed to a linear program.

See page 151.

4.4 Quadratic optimization problems

The convex optimization problem is called a quadratic program (QP) if the objective function is (convex) quadratic, and the constraint functions are affine. A quadratic program can be expressed in the form

minimize  12xTPx+qTx+rs.t.   Gx⪯h    Ax=bminimize \ \ \frac 12 x^TPx + q^Tx + r\\ s.t. \ \ \ Gx \preceq h \\ \ \ \ \ Ax = b

where P∈S+n,G∈Rm×nP \in S^n_+, G \in R^{m\times n}, and A∈Rp×nA \in R^{p\times n}.

Least-squares and regression

The problem of minimizing the convex quadratic function

∣∣Ax−b∣∣22=xTATAx−2bTAx+bTb||Ax - b||_2^2 = x^TA^TAx-2b^TAx+b^Tb

is an (unconstrained) QP.

See page 153

Chapter 5 Duality

5.1 The Lagrange dual function

5.1.1 The Lagrangian

We do not assume the problem is convex.

We define the Lagrangian L:Rn×Rm×Rp→RL : R^n \times R^m × R^p \rarr R

L(x,λ,v)=f0(x)+∑i=1mλifi(x)+∑i=1pvihi(x)L(x,\lambda, v) = f_0(x) + \sum_{i= 1}^m \lambda_if_i(x) + \sum_{i = 1}^pv_ih_i(x)

with dom L=D×Rm×Rpdom \ L = D \times R^m \times R^p in which DD is defined in Chapter 4.1.1.

5.1.2 The Lagrange dual function

We define the Lagrange dual function (or just dual function) g:Rm×Rp→Rg : R^m \times R^p \rarr R as the minimum value of the Lagrangian over xx: for λ∈Rm\lambda \in R^m,v∈Rp v \in R^p

g(λ,v)=inf⁡x∈DL(x,λ,v)g(\lambda, v) = \inf_{x \in D} L(x, \lambda, v)

Since the dual function is the pointwise infifimum of a family of affine functions of (λ,v)(\lambda, v), it is concave, even when the problem is not convex. (See 3.2.3)

5.1.3 Lower bounds on optimal value (Important!)

For any λ⪰\lambda \succeq and any vv we have

g(λ,v)≤p∗g(\lambda, v) \le p^*

The dual function yields lower bounds on the optimal value p∗p^* of the problem.

It's important, but easy to be proved:

Since λ⪰0\lambda \succeq 0, for any feasible point xx,

∑iλifi(x)+∑ivihi(x)≤0\sum_{i}\lambda_if_i(x)+\sum_{i}v_ih_i(x) \le 0

so

L(x,λ,v)=f0(x)+∑i=1mλifi(x)+∑i=1pvihi(x)≤f0(x)g(λ,v)=inf⁡x∈DL(x,λ,v)≤L(x,λ,v)≤f0(x)L(x,\lambda, v) = f_0(x) + \sum_{i= 1}^m \lambda_if_i(x) + \sum_{i = 1}^pv_ih_i(x) \le f_0(x)\\ g(\lambda,v)=\inf_{x \in D} L(x, \lambda, v)\le L(x,\lambda,v)\le f_0(x)

5.2 The Lagrange dual problem

A natural question is: What is the best lower bound that can be obtained from the Lagrange dual function?

This leads to the optimization problem

maximize  g(λ,v)subject  to λ⪰0maximize \ \ g(\lambda, v)\\ subject \ \ to \ \lambda \succeq 0

This problem is called the Lagrange dual problem associated with the problem.

In this context the original problem is sometimes called the primal problem.

The Lagrange dual problem is a convex optimization problem, since the objective to be maximized is concave and the constraint is convex.

5.2.2 Weak duality

The optimal value (not point) of the Lagrange dual problem, which we denote d∗d^*, is, by definition, the best lower bound on p∗p^* that can be obtained from the Lagrange dual function. In particular, we have the simple but important inequality

d∗≤p∗d^* \le p^*

which holds even if the original problem is not convex. This property is called weak duality.

5.2.3 Strong duality and Slater’s constraint qualification

If the equality

d∗=p∗d^* = p^*

holds, then we say that strong duality holds.

Strong duality does not, in general, hold. But if the primal problem is convex, we usually (but not always) have strong duality. There are many results that establish conditions on the problem, beyond convexity, under which strong duality holds. These conditions are called constraint qualifications.

Slater’s condition

One simple constraint qualification is Slater’s condition (sufficient but not necessary): There exists an x∈relint Dx \in relint\ D such that

fi(x)<0,i=1,...,mAx=bf_i(x) < 0, i = 1, ..., m \\ Ax = b

Such a point is sometimes called strictly feasible. Slater’s theorem states that strong duality holds, if Slater’s condition holds (and the problem is convex).

5.4 Saddle-point interpretation (Beautiful)

Max-min inequality

f:Rn×Rm→Rf: R^n \times R^m \rarr R, we have

sup⁡x∈Xinf⁡y∈Yf(x,y)≤inf⁡x∈Xsup⁡y∈Yf(x,y)\sup_{x \in X} \inf_{y \in Y}f(x, y) \le \inf_{x \in X} \sup_{y \in Y}f(x, y)

When equality holds we say that ff satisfy the strong max-min property or the saddle point property.

5.4.1 Max-min characterization of weak and strong duality (Magic!)

First note that, since λ⪰0\lambda \succeq 0, if fi(x)>0f_i(x)>0, we can chose any large λ\lambda, so sup⁡λ⪰0,vL(x,λ,v)\sup_{\lambda \succeq 0,v}L(x, \lambda, v) will be positive infinity. Similarly, hi(x)h_i(x) must be all zero.

sup⁡λ⪰0,vL(x,λ,v)=sup⁡λ⪰0,v(f0(x)+∑i=1mλifi(x)+∑i=1pvihi(x))={f0(x)fi(x)≤0, hi(x)=0∞otherwise\sup_{\lambda \succeq 0,v}L(x, \lambda, v) = \\ \sup_{\lambda \succeq 0,v}(f_0(x) + \sum_{i= 1}^m \lambda_if_i(x) + \sum_{i = 1}^pv_ih_i(x))\\ =\left\{\begin{align} &f_0(x) & f_i(x)\le 0,\ h_i(x) =0\\ &\infin &\text{otherwise} \end{align}\right.

So this means we can express the optimal value of the primal problem as

p∗=inf⁡xsup⁡λ⪰0,vL(x,λ,v)p^*=\inf_{x} \sup_{\lambda \succeq 0,v} L(x, \lambda,v)

By the definition of the dual function, we also have

d∗=sup⁡λ⪰0,vinf⁡xL(x,λ,v)d^*=\sup_{\lambda\succeq 0,v}\inf_x L(x,\lambda,v)

This is very beautiful.

5.5 Optimality conditions

We remind the reader that we do not assume the problem is convex, unless explicitly stated.

5.5.1 Certificate of suboptimality and stopping criteria

Dual feasible points allow us to bound how suboptimal a given feasible point is, without knowing the exact value of p∗p^*. Indeed, if xx is primal feasible and (λ,v)(\lambda, v) is dual feasible, then

f0(x)−p∗≤f0(x)−g(λ,v)p∗∈[g(λ,v),f0(x)],d∗∈[g(λ,v),f0(x)]f_0(x) - p^* \le f_0(x) - g(\lambda, v) \\ p^* \in [g(\lambda, v), f_0(x)], d^* \in[g(\lambda, v), f_0(x)]

In particular, this establishes that xx is ϵ\epsilon-suboptimal, with ϵ≤f0(x)−g(λ,v)\epsilon \le f_0(x) - g(\lambda, v).

These observations can be used in optimization algorithms to provide non heuristic stopping criteria.

5.5.2 Complementary slackness

Suppose that the primal and dual optimal values are attained and equal (so, inparticular, strong duality holds).

This means:

f0(x∗)=g(λ∗,v∗)=inf⁡x(f0(x)+∑i=1mλi∗fi(x)+∑i=0pvi∗hi(x))≤inf⁡x(f0(x∗)+∑i=1mλi∗fi(x∗)+∑i=0pvi∗hi(x∗))≤f0(x∗)f_0(x^*) = g(\lambda^*, v^*) = \\ \inf_x(f_0(x) + \sum_{i = 1}^m \lambda_i^* f_i(x) + \sum_{i= 0}^pv_i^* h_i(x)) \\ \le \inf_x(f_0(x^*) + \sum_{i = 1}^m \lambda_i^* f_i(x^*) + \sum_{i= 0}^pv_i^* h_i(x^*))\\ \le f_0(x^*)

Then

∑i=1mλi∗fi(x∗)=0\sum_{i = 1}^m \lambda_i^* f_i(x^*) = 0

This condition is known as complementary slackness.

This condition is known as complementary slackness; it holds for any primal optimal x∗x^* and any dual optimal (λ∗,v∗)(\lambda^*, v^*) (when strong duality holds).

Roughly speaking, this means the ith optimal Lagrange multiplier is zero unless the ith constraint is active at the optimum.

5.5.3 KKT optimality conditions

We now assume that the functions are differentiable (and therefore have open domains) and the problem is strong duality, but we make no assumptions yet about convexity

KKT conditions for nonconvex problems

Since x∗x^* minimizes L(x,λ∗,v∗)L(x, \lambda^*, v^*) over xx, it follows that its gradient must vanish at x∗x^*, i.e.,

∇f0(x∗)+∑i=1mλi∗∇fi(x∗)+∑i=1pvi∗∇hi(x∗)=0\nabla f_0(x^*) + \sum_{i = 1}^m \lambda_i^* \nabla f_i(x^*) + \sum_{i= 1}^pv_i^* \nabla h_i(x^*) = 0

Thus we have

fi(x∗)≤0,i=1,...,mhi(x∗)=0,i=1,...,pλi∗≥0,i=1,...,mλi∗fi(x∗)=0,i=1,...,m∇f0(x∗)+∑i=1mλi∗∇fi(x∗)+∑i=1pvi∗∇hi(x∗)=0f_i(x^*) \le 0, i = 1, ...,m\\ h_i(x^*) = 0, i = 1, ..., p\\ \lambda^*_i \ge 0, i = 1, ..., m\\ \lambda_i^* f_i(x^*) = 0, i = 1, ...,m \\ \nabla f_0(x^*) + \sum_{i = 1}^m \lambda_i^* \nabla f_i(x^*) + \sum_{i= 1}^pv_i^* \nabla h_i(x^*) = 0

which are called the Karush-Kuhn-Tucker (KKT) conditions.

To summarize, for any optimization problem with differentiable objective and constraint functions for which strong duality obtains, any pair of primal and dual optimal points must satisfy the KKT conditions (necessary but not sufficient for general problem).

KKT conditions for convex problems

When the primal problem is convex, the KKT conditions are also sufficient for the points to be primal and dual optimal (sufficient but not necessary).

In summary, for any convex optimization problem with differentiable objective and constraint functions, any points that satisfy the KKT conditions are primal and dual optimal, and have zero duality gap.

If a convex optimization problem with differentiable objective and constraint functions satisfifies Slater’s condition, then the KKT conditions provide necessary and sufficent conditions for optimality. (sufficient and necessary)


← Previous

← Back to ArchiveBack to top ↑

Comments

No approved comments yet.

Your display name and plain-text comment become public only after owner approval. No account or email is required.