sp05-recitation2

download sp05-recitation2

of 3

Transcript of sp05-recitation2

  • 7/30/2019 sp05-recitation2

    1/3

    Recitation 2 Solutions

    March 15, 2005

    1.3.1

    The Hessian matrix of the function f is

    Q = 2 1.9991.999 2

    which has largest and smallest eigenvalues M = 3.999 and m = 0.001 respectively. Hence

    f(xk+1)

    f(xk)

    3.998

    4

    2 0.999

    Let vm and vM be the normalized eigenvectors of Q (see Prop. A.17, Appendix A) corre-sponding to m and M, respectively, and let

    x0 =s

    mvm

    s

    MvM, s ,

    (cf. Fig. 1.3.2 in Section 1.3). We have

    x1 = x0 0Qx0 = (1

    m 0)svm (

    1

    M 0)svM

    and

    f(x1) = s2[m(1

    m 0)2 + M(

    1

    M 0)2]

    Using the line minimization stepsize rule, i.e., a stepsize

    = arg min0{s2[m(

    1

    m 0)2 + M(

    1

    M 0)2]} =

    2

    m + M

    , we get the first iteration,

    x1 =

    Mm

    M + m

    sm

    vm s

    MvM

    ,

    which has the same form as x0 except for the factorMmM+m

    . Hence starting the iterations withx0 we have for all k

    f(xk+1)

    f(xk)=

    Mm

    M + m

    2.

    1

  • 7/30/2019 sp05-recitation2

    2/3

    1.5.2

    We havexk+1 = yk (yk z2)

    = xk (xk z1) (xk (xk z1) z2)

    = xk(1 2 + 2) + [(1 )z1 + z2] = axk + b,

    where a = 1 2 + 2 and b = [(1 )z1 + z2]. Note that since 0 < < 1, 0 < a < 1.Further expanding xk+1 yields

    xk+1 = a(axk1 + b) + b = a2xk1 + b(1 + a)

    = a2(axk2 + b) + b(1 + a) = a3xk2 + b(1 + a + a2)

    = . . . + ak+1x0 + b(1 + a + . . . + ak)

    So

    limk

    xk = 0 + b 11 a

    = (1 )z1 + z22

    = x().

    Similarly for y, we have

    yk+1 = xk+1 (xk+1 z1) = yk (yk z2) (y

    k (yk z2) z1),

    and so yk+1 is related analogously to yk as xk+1 is to xk. Therefore we have

    limk

    yk =(1 )z2 + z1

    2 = y().

    From these expressions, it is clear that unless z1 = z2 or = 0, x() = y(), and neither isequal to the optimal least squares solution x = (z1 + z2)/2. However, we do have x() x

    and y() x as 0.

    2.1.6

    The problem is equivalent to

    minxa11 xann

    subjectton

    i=1xi = 1, xi 0, i.

    From the discussion in Example 2.1.2, the necessary optimality conditions are

    xi > 0 =f(x)

    xi

    f(x)

    xj, j

    orai(x

    i )ai1k=i

    (xk)ak aj(x

    j)

    aj1k=j

    (xk)ak, j

    oraix

    j ajx

    i , j.

    2

  • 7/30/2019 sp05-recitation2

    3/3

    It is clear that if x is a global minimum, we must have xi > 0 for all i. Therefore, the aboverelation is equivalent to

    aixj = ajx

    i , i,j.

    Summing over all j and using the constraint

    j xj = 1, we have

    j

    aixj =j

    ajxi

    oraij

    xj = xi

    j

    aj

    orxi =

    aij aj

    , i.

    In fact, this is the only point satisfying the necessary conditions. Since the constraint regionis compact and the cost function is continuous, a global maximum exists by Weierstrasstheorem, and thus this point is the unique global maximum.

    3