Docsity

Penalty Methods for Constrained Optimization - Lecture Notes | IOE 519, Study notes of Systems Engineering

Toggle sidebar
bg1
IOE 519: NLP, Winter 2009 59
9 Penalty Methods for Constrained Optimization
Consider the constrained optimization problem (P):
P: minxf(x)
s.t. gi(x)≤0i=1, . . . , m
x∈Rn.
We will write g(x) := (g1(x),. . . , gm(x))Tfor convenience.
Definition: A function p(x):Rn→Ris called a penalty function for (P) if p(x) satisfies:
•p(x) = 0 if g(x)≤0 and
•p(x)>0 if g(x)$≤ 0.
Example:
p(x)=
m
!
i=1
(max{0,g
i(x)})2.
We then consider solving the following penalty program:
P(c) : minxf(x)+cp(x)
s.t. x∈Rn
for an increasing sequence of constants cas c→+∞. Note that in the program P(c) we are assigning
a penalty to the violated constraints. The scalar quantity cis called the penalty parameter.
Let ck≥0,k =1,...,∞, be a sequence of penalty parameters that satisfies ck+1 >c
kfor all k
and limk→∞ ck=+∞. Let q(c, x)=f(x)+cp(x), and let xkbe the exact solution to the program
P(ck), and let x!denote any optimal solution of (P).
The following Lemma presents some basic properties of penalty methods:
Lemma 9.1 (Penalty Lemma)
(i) q(ck,x
k)≤q(ck+1,x
k+1)
(ii) p(xk)≥p(xk+1)
(iii) f(xk)≤f(xk+1)
(iv) f(x!)≥q(ck,x
k)≥f(xk)
Proof:
(i) We have
q(ck+1,x
k+1)=f(xk+1)+ck+1 p(xk+1)≥f(xk+1)+ckp(xk+1 )
≥f(xk)+ckp(xk)=q(ck,x
k)
(ii)
f(xk)+ckp(xk)≤f(xk+1)+ckp(xk+1)
and
f(xk+1)+ck+1p(xk+1 )≤f(xk)+ck+1p(xk)
pf3
pf4
pf5

Partial preview of the text

Download Penalty Methods for Constrained Optimization - Lecture Notes | IOE 519 and more Study notes Systems Engineering in PDF only on Docsity!

9 Penalty Methods for Constrained Optimization

Consider the constrained optimization problem (P):

P : minx f (x) s.t. gi (x) ≤ 0 i = 1,... , m x ∈ R n^.

We will write g(x) := (g 1 (x),... , gm (x))T^ for convenience.

Definition: A function p(x) : R n^ → R is called a penalty function for (P) if p(x) satisfies:

  • p(x) = 0 if g(x) ≤ 0 and
  • p(x) > 0 if g(x) $≤ 0.

Example:

p(x) =

∑^ m

i=

(max{ 0 , gi (x)})^2.

We then consider solving the following penalty program:

P (c) : minx f (x) + cp(x) s.t. x ∈ R n

for an increasing sequence of constants c as c → +∞. Note that in the program P (c) we are assigning a penalty to the violated constraints. The scalar quantity c is called the penalty parameter.

Let ck ≥ 0 , k = 1,... , ∞, be a sequence of penalty parameters that satisfies ck+1 > ck for all k and limk→∞ ck = +∞. Let q(c, x) = f (x) + cp(x), and let xk^ be the exact solution to the program P (ck ), and let x!^ denote any optimal solution of (P).

The following Lemma presents some basic properties of penalty methods:

Lemma 9.1 (Penalty Lemma)

(i) q(ck , xk^ ) ≤ q(ck+1 , xk+1^ ) (ii) p(xk^ ) ≥ p(xk+1^ ) (iii) f (xk^ ) ≤ f (xk+1^ ) (iv) f (x!^ ) ≥ q(ck , xk^ ) ≥ f (xk^ )

Proof:

(i) We have q(ck+1 , xk+1^ ) = f (xk+1^ ) + ck+1 p(xk+1^ ) ≥ f (xk+1^ ) + ck p(xk+1^ ) ≥ f (xk^ ) + ck p(xk^ ) = q(ck , xk^ )

(ii) f (xk^ ) + ck p(xk^ ) ≤ f (xk+1^ ) + ck p(xk+1^ ) and f (xk+1^ ) + ck+1 p(xk+1^ ) ≤ f (xk^ ) + ck+1 p(xk^ )

Thus (ck+1^ − ck^ )p(xk^ ) ≥ (ck+1^ − ck^ )p(xk+1^ ), whereby p(xk^ ) ≥ p(xk+1^ ). (iii) We have f (xk+1^ ) + ck p(xk+1^ ) ≥ f (xk^ ) + ck p(xk^ ). But p(xk^ ) ≥ p(xk+1^ ) from (ii), which implies that f (xk+1^ ) ≥ f (xk^ ). (iv) f (xk^ ) ≤ f (xk^ ) + ck p(xk^ ) ≤ f (x!^ ) + ck p(x!^ ) = f (x!^ ).

The next result concerns convergence of the penalty method.

Theorem 9.2 (Penalty Convergence Theorem). Suppose that f (x), g(x), and p(x) are con- tinuous functions. Let {xk^ }, k = 1,... , ∞, be a sequence of solutions to P (ck ). Then any limit point ¯x of {xk^ } solves (P).

Proof: Let ¯x be a limit point of {xk^ }. From the continuity of the functions involved, limk→∞ f (xk^ ) = f (¯x). Also, from the Penalty Lemma,

q!^ := lim k→∞

q(ck , xk^ ) ≤ f (x!^ ).

Thus lim k→∞

ck p(xk^ ) = lim k→∞

[

q(ck , xk^ ) − f (xk^ )

]

= q!^ − f (¯x).

But ck → ∞, which implies from the above that

lim k→∞

p(xk^ ) = 0.

Therefore, from the continuity of p(x) and g(x), p(¯x) = 0, and so g(¯x) ≤ 0, that is, ¯x is a feasible solution of (P). Finally, from the Penalty Lemma, f (xk^ ) ≤ f (x!^ ) for all k, and so f (¯x) ≤ f (x!^ ), which implies that f (¯x) = f (x!^ ) and therefore ¯x is an optimal solution of (P).

An often-used class of penalty functions is:

p(x) =

∑^ m

i=

[max{ 0 , gi (x)}]q^ , where q ≥ 1. (10)

We note the following:

  • If q = 1, p(x) in (10) is called the linear penalty function. This function may not be differen- tiable at points where gi (x) = 0 for some i.
  • Setting q = 2 is the most common form of (10) that is used in practice, and is called the quadratic penalty function.

Notice that the penalty function p(x) is in actuality a function only of g +^ (x), where g +^ (x) = max{ 0 , gi (x)} (the nonnegative part of gi (x)), i = 1,... , m. Then we can write

p(x) = γ(g +^ (x)) where γ(y) is a function of y ∈ R m +.

Two examples of this type of penalty function are

γ(y) =

∑^ m

i=

y (^) i ,

implies

∇f (¯x) +

∑^ m

i=

¯u (^) i ∇g(¯x) = 0.

From the above remarks, we also have ¯u ≥ 0 and ¯u (^) i = 0 for all i ∈ N. Thus ¯u is a vector of Karush-Kuhn-Tucker multipliers. It therefore remains to show that u k^ → ¯u for some unique ¯u, which is done along the same lines as in Lemma 8.2.

Remark. The quadratic penalty function satisfies the condition (11), but the linear penalty function does not satisfy (11).

9.1 Exact Penalty Methods

The idea in an exact penalty method is to choose a penalty function p(x) and a constant c so that the optimal solution ˜x of P (c) is also an optimal solution of the original problem (P).

Theorem 9.4 Suppose (P) is a convex program for which the Karush-Kuhn-Tucker conditions are necessary. Suppose that

p(x) :=

∑^ m

i=

(gi (x))+^.

Then as long as c is chosen sufficiently large, the sets of optimal solutions of P (c) and (P) coincide. In fact, it sufficies to choose c > max (^) i {u! i }, where u!^ is a vector of Karush-Kuhn-Tucker multipliers.

Proof: Suppose ˆx solves (P). For any x ∈ R n^ we have:

q(c, x) = f (x) + c

∑m i=

(g (^) i (x))+^ ≥ f (x) +

∑m i=

(u! i gi (x))+

≥ f (x) +

∑m i=

u! i g (^) i (x)

≥ f (x) +

∑m i=

u! i (gi (ˆx) + ∇gi (ˆx)T^ (x − xˆ))

= f (x) +

∑m i=

u! i ∇gi (ˆx)T^ (x − xˆ) = f (x) − ∇f (ˆx)T^ (x − ˆx) ≥ f (ˆx) = f (ˆx) + c

∑m i=

(gi (ˆx))+^ = q(c, xˆ).

Thus q(c, ˆx) ≤ q(c, x) for all x, and therefore ˆx solves P (c).

Next suppose that ¯x solves P (c). Then if ˆx solves (P), we have:

f (¯x) + c

∑^ m

i=

(gi (¯x))+^ ≤ f (ˆx) + c

∑^ m

i=

(g (^) i (ˆx))+^ = f (ˆx) ,

and so

f (¯x) ≤ f (ˆx) − c

∑^ m

i=

(g (^) i (¯x))+^. (14)

However, if ¯x is not feasible for (P), then

f (¯x) ≥ f (ˆx) + ∇f (ˆx)T^ (¯x − ˆx) = f (ˆx) −

∑m i=

u! i ∇g (^) i (ˆx)T^ (¯x − xˆ)

≥ f (ˆx) +

∑m i=

u! i (gi (ˆx) − g (^) i (¯x))

= f (ˆx) −

∑m i=

u! i g (^) i (¯x) > f (ˆx) − c

∑m i=

(gi (¯x))+^ ,

which contradicts (14). Thus ¯x is feasible for (P). That being the case, f (¯x) ≤ f (ˆx)−c

∑m i=

(gi (¯x))+^ =

f (ˆx) from (14), and so ¯x solves (P).

9.2 Penalty Methods for Inequality and Equality Constraints

The presentation of penalty methods has assumed that the problem (P) has no equality constraints. If the problem has equality constraints h(x) = 0, we could convert them into inequality constraints by writing “h(x) ≤ 0” and “−h (^) i (x) ≤ 0”, but such conversion usually violates good judgement in that it unnecessarily complicates the problem. Furthermore, it can cause the linear independence condition to be automatically violated for every feasible solution. Therefore, instead let us consider the constrained optimization problem (P) with both inequality and equality constraints:

P : minx f (x) s.t. g(x) ≤ 0 h(x) = 0 x ∈ R n^ ,

where g(x) and h(x) are vector-valued functions, that is, g(x) := (g 1 (x),... , gm (x))T^ and h(x) := (h 1 (x),... , hl (x))T^ for notational convenience.

Definition: A function p(x) : R n^ → R is called a penalty function for (P) if p(x) satisfies:

  • p(x) = 0 if g(x) ≤ 0 and h(x) = 0
  • p(x) > 0 if g(x) $≤ 0 or h(x) $= 0.

The main class of penalty functions for this general problem are of the form:

p(x) =

∑^ m

i=

[max{ 0 , gi (x)}]q^ +

∑^ l

i=

|h (^) i (x)|q^ , where q ≥ 1.

All of the results of this section extend naturally to problems with equality constraints and for penalty functions of the above form. For example, in the analogous result of Theorem 9.4, it suffices to choose c > max{u! 1 ,... , u! m , |v! 1 |,... , |v (^) l! |}.

9.3 Augmented Lagrangian methods

A modification of the classical penalty methods involves explicitly incorporating the KKT multi- pliers into the method. This complicates the algorithm, but has the potential of ameliorating the ill-conditioning encountered in the penalty method, and improving rates of convergence.

It can be shown that if v k^ = v!^ and ρ is sufficiently large, so that the Hessian of A(x!^ , v!^ , ρ) is positive definite, then the unconstrained minimizer of the augmented Lagrangian is a minimizer of the original problem. Thus, if we knew the Lagrangian multipliers at the solution, the problem can be solved in one “iteration.” Moreover, the closer v k^ estimates v!^ , the closer the next iterate xk+ will be to x!^ (assuming ρk^ is sufficiently large).