Docsity

Homework Assignment 4 on Mathematical Programming | MATH 171B, Assignments of Mathematics

Toggle sidebar
bg1
Math 171B: Mathematical Programming
Instructor: Jennifer Erway
Spring Quarter 2007
Homework Assignment #4
Due: Friday, April 27
The starred exercises are those that require the use of MATLAB Remember, you MUST do the MATLAB
problems to get credit for the homework.
Exercise 4.1 For each of the following functions, check the first and second-order optimality conditions
at the given point. Also, discuss the precise nature of the stationarity point (e.g., is it a local maximizer,
local minimizer, or a saddlepoint?).
(a). f(x) = x2
1+x2
2at ¯x= (0,0)T;
(b). f(x) = x3
1+x2
2+x1x2at ¯x= (0,0)T;
(c). f(x) = ex1x4
1+x2
2at ¯x= (0,0)T;
(d). f(x) = p1−x2
1
−x2
2at ¯x= (0,0)T;
(e). f(x) = x2
1+x2
2
−2x1x2+x1−x2at ¯x= (0,1
2)T.
Exercise 4.2 Let Hbe a symmetric matrix with spectral decomposition H=V DV T.
(a). Show that an eigenvector vassociated with a positive eigenvalue λsatisfies vTHv > 0.
(b). Write down the inverse of Hin terms of Vand D.
(c). If ris a positive integer, given an expression for Hrin terms of Dand V. If His positive definite, find
a matrix Bsuch that H=B2=BB (Bis the “square root” of H).
(d). Let αdenote a scalar such that the matrix H−αI is nonsingular. If ψ(α) is the univariate function
ψ(α) = uT(H−αI)−1u, where uis a nonzero vector, find ψ0(α).
Exercise 4.3 Given each of the following cases of a gradient g(¯x) and Hessian H(¯x) defined at the point ¯x,
discuss the optimality of ¯x. (Do NOT use Matlab. You may need to know how to compute eigenvalues by
hand on an exam).
(a) g(¯x) = 1
0, H( ¯x) = 3 1
1 1.
(b) g(¯x) = 0
0, H( ¯x) = 3 2
2 0.
(c) g(¯x) = 0
0, H( ¯x) = 4−1
−1 4.
(d) g(¯x) = 0
0, H( ¯x) = −2 0
0−3.
(d) g(¯x) =
0
0
0
, H( ¯x) =
300
011
011
.
Exercise 4.4* Write a Matlab function with the specification [f,g,H]=ex44(x) that computes f(x), g(x)
and H(x) for the function
f(x) = ex3x2
1+ 2x2
2+x2
3cos(x1)
at any point x. Use your function to compute f(x), g(x) and H(x) at x= (0,0,0)Tand x= (−1,2,−2)T.
In each case, compute the spectral decomposition of the Hessian matrix and indicate if the necessary and
sufficient conditions for unconstrained local minimization are satisfied.
1

Partial preview of the text

Download Homework Assignment 4 on Mathematical Programming | MATH 171B and more Assignments Mathematics in PDF only on Docsity!

Math 171B: Mathematical Programming

Instructor: Jennifer Erway Spring Quarter 2007

Homework Assignment # Due: Friday, April 27

The starred exercises are those that require the use of MATLAB Remember, you MUST do the MATLAB problems to get credit for the homework.

Exercise 4.1 For each of the following functions, check the first and second-order optimality conditions at the given point. Also, discuss the precise nature of the stationarity point (e.g., is it a local maximizer, local minimizer, or a saddlepoint?).

(a). f (x) = x^21 + x^22 at ¯x = (0, 0)T^ ;

(b). f (x) = x^31 + x^22 + x 1 x 2 at ¯x = (0, 0)T^ ;

(c). f (x) = ex^1 x^41 + x^22 at ¯x = (0, 0)T^ ;

(d). f (x) =

1 − x^21 − x^22 at ¯x = (0, 0)T^ ;

(e). f (x) = x^21 + x^22 − 2 x 1 x 2 + x 1 − x 2 at ¯x = (0, 12 )T^.

Exercise 4.2 Let H be a symmetric matrix with spectral decomposition H = V DV T.

(a). Show that an eigenvector v associated with a positive eigenvalue λ satisfies vTHv > 0.

(b). Write down the inverse of H in terms of V and D.

(c). If r is a positive integer, given an expression for Hr^ in terms of D and V. If H is positive definite, find a matrix B such that H = B^2 = BB (B is the “square root” of H).

(d). Let α denote a scalar such that the matrix H − αI is nonsingular. If ψ(α) is the univariate function ψ(α) = uT(H − αI)−^1 u, where u is a nonzero vector, find ψ′(α).

Exercise 4.3 Given each of the following cases of a gradient g(¯x) and Hessian H(¯x) defined at the point ¯x, discuss the optimality of ¯x. (Do NOT use Matlab. You may need to know how to compute eigenvalues by hand on an exam).

(a) g(¯x) =

, H(¯x) =

(b) g(¯x) =

, H(¯x) =

(c) g(¯x) =

, H(¯x) =

(d) g(¯x) =

, H(¯x) =

(d) g(¯x) =

 (^) , H(¯x) =

Exercise 4.4* Write a Matlab function with the specification [f,g,H]=ex44(x) that computes f (x), g(x) and H(x) for the function f (x) = ex^3 x^21 + 2x^22 + x^23 cos(x 1 )

at any point x. Use your function to compute f (x), g(x) and H(x) at x = (0, 0 , 0)T^ and x = (− 1 , 2 , −2)T^. In each case, compute the spectral decomposition of the Hessian matrix and indicate if the necessary and sufficient conditions for unconstrained local minimization are satisfied.