Docsity

Derivatives and Stationary Points of Quadratic Functions, Assignments of Optimization Techniques in Engineering

Toggle sidebar
bg1
[1.a.] Use the fact (1) ∇(cTx) = c, and (2) ∇(xTc) = cwhere c, x ∈Rn.
In addition, xTQx = (xTQ)xor xTQx =xT(Qx), and use the fact (f g)0=
f0g+fg0:
∇(xTQx)=(xTQ)T+Qx
=QTx+Qx
Then, we have
∇f(x) = 1
2∇(xTQx)− ∇(cTx) = 1
2(Q+QT)x−c,
Thus, the first-order necessary condition is 1
2(Q+QT)x=c. And when ”(Q+
QT)” is invertible, then there exist a stationary point.
[1.b.] The Hessian matrix of f is ∇2f=1
2(Q+QT). Thus, when (Q+QT) is positive definite,
then there exists a local minimizer. OR, for the condition for Q,Qshould be positive definite,
which leads that (Q+QT) is also positive definite (the reason is given in (1.c.))
and invertible.
Note that if Qis positive semi-definite, then (Q+QT) is also positive semi-
definite, thus we cannot make sure that (Q+QT) is invertible.
[1.c.] Let x0be an starting point. By using Newton’s method, we have
x1=x0−[∇2f(x0)]−1∇f(x0)
=x0−[1
2(Q+QT)]−1[1
2(Q+QT)x0−c]
=x0−x0+ [1
2(Q+QT)]−1c
= 2(Q+QT)−1c
Then, we need to prove that x1is a local minimizer;
• ∇f(x1) = 1
2(Q+QT)[x1]−c=1
2(Q+QT)[2(Q+QT)−1c]−c=c−c= 0
•Qis positive definite ⇒vTQv > 0 for any non-zero vector v⇒vT(Q+
QT)v=vTQv +vTQTv=vTQv + (vTQv)T>0⇒(Q+QT) is positive
definite. Thus, the Hessian matrix ∇2f(x1) = 1
2(Q+QT) is positive
definite.
[2.a.] We have f(x) = kAx −bk2=xTATAx −bTAx −xTATb+bTb. Then,
∇f(x) = ∇(xTATAx)− ∇(bTAx)− ∇(xTATb)
= (ATA+ (ATA)T)x− ∇((bTA)x)− ∇(xT(ATb))
= 2ATAx −(bTA)T−ATb
= 2ATAx −ATb−ATb
= 2AT(Ax −b)
1
pf3

Partial preview of the text

Download Derivatives and Stationary Points of Quadratic Functions and more Assignments Optimization Techniques in Engineering in PDF only on Docsity!

[1.a.] Use the fact (1) ∇(cT^ x) = c, and (2) ∇(xT^ c) = c where c, x ∈ Rn. In addition, xT^ Qx = (xT^ Q)x or xT^ Qx = xT^ (Qx), and use the fact (f g)

′

f

′ g + f g

′ :

∇(xT^ Qx) = (xT^ Q)T^ + Qx = QT^ x + Qx

Then, we have

∇f (x) =

∇(xT^ Qx) − ∇(cT^ x) =

(Q + QT^ )x − c,

Thus, the first-order necessary condition is 12 (Q + QT^ )x = c. And when ”(Q +

QT^ )” is invertible, then there exist a stationary point.

[1.b.] The Hessian matrix of f is ∇^2 f = 12 (Q+QT^ ). Thus, when (Q + QT^ ) is positive definite, then there exists a local minimizer. OR, for the condition for Q, Q should be positive definite, which leads that (Q + QT^ ) is also positive definite (the reason is given in (1.c.)) and invertible.

Note that if Q is positive semi-definite, then (Q + QT^ ) is also positive semi- definite, thus we cannot make sure that (Q + QT^ ) is invertible.

[1.c.] Let x 0 be an starting point. By using Newton’s method, we have

x 1 = x 0 − [∇^2 f (x 0 )]−^1 ∇f (x 0 )

= x 0 − [

(Q + QT^ )]−^1 [

(Q + QT^ )x 0 − c]

= x 0 − x 0 + [

(Q + QT^ )]−^1 c

= 2(Q + QT^ )−^1 c

Then, we need to prove that x 1 is a local minimizer;

  • ∇f (x 1 ) = 12 (Q + QT^ )[x 1 ] − c = 12 (Q + QT^ )[2(Q + QT^ )−^1 c] − c = c − c = 0
  • Q is positive definite ⇒ vT^ Qv > 0 for any non-zero vector v ⇒ vT^ (Q + QT^ )v = vT^ Qv + vT^ QT^ v = vT^ Qv + (vT^ Qv)T^ > 0 ⇒ (Q + QT^ ) is positive definite. Thus, the Hessian matrix ∇^2 f (x 1 ) = 12 (Q + QT^ ) is positive definite.

[2.a.] We have f (x) = ‖Ax − b‖^2 = xT^ AT^ Ax − bT^ Ax − xT^ AT^ b + bT^ b. Then,

∇f (x) = ∇(xT^ AT^ Ax) − ∇(bT^ Ax) − ∇(xT^ AT^ b) = (AT^ A + (AT^ A)T^ )x − ∇((bT^ A)x) − ∇(xT^ (AT^ b)) = 2 AT^ Ax − (bT^ A)T^ − AT^ b = 2 AT^ Ax − AT^ b − AT^ b = 2 AT^ (Ax − b)

Thus, the first-order necessary condition is ∇f (x) = 2AT^ (Ax − b) = 0 i.e. AT^ Ax − AT^ b = 0.

And, this is also a sufficient condition since f is strictly convex on Rn^ (∵ For any non-zero vector v, vT^ AT^ Av = ‖Av‖^2 > 0 ⇒ ∇^2 f = 2AT^ A is positive definite for all x ∈ Rn^ ⇒ f is strictly convex on Rn).

[2.b.] Since A is m × n matrix and rank(A) = n (A has full rank), then AT^ A is non-singular (invertible). Thus, the optimal solution is x = (AT^ A)−^1 AT^ b.

[3] Let p = Zv and q = AT^ λ where Z is a basis matrix for the null space of A. Then, from the expression

x = p + q = Zv + AT^ λ    

 v^ +

λ 1 λ 2 λ 3

we have ”4” equations for ”4” unknowns (v, λ 1 , λ 2 , λ 3 ). Find (v, λ 1 , λ 2 , λ 3 ).

[4.] [•] (0, 0 , 2)T^ is not feasible, and (0, 0 , 3)T^ and (1, 0 , 1)T^ are feasible. [•] Check if (0, 0 , 3)T^ and (1, 0 , 1)T^ are stationary points, i.e.

ZT^ ∇f (x) =

2 x 1 + 2x 1 x^23 + 2x 2 2 x 1 + 4x^32 + 8 2 x^21 x 3

Since ZT^ ∇f (x) = 0 at x = (1, 0 , 1)T^ , (1, 0 , 1)T^ is the only stationary point.

[•] By using the following matrix,

ZT^ ∇^2 f (x)Z =

2 + 2x^23 2 4 x 1 x 3 2 12 x^22 4 x 1 x 3 0 2 x^21

we have

ZT^ ∇^2 f ((1, 0 , 1)T^ )Z =

which can be changed to (using Gaussian elimination) ( − 4 2 0 51