This activity is designed to review the ways to determine where a function is convex or concave and also to find the absolute maxima and minima of these functions. Convex and concave functions are especially nice for optimization purposes since they have a unique relative min and max respectively and hence this relative min or max is also its absolute min or max. Although functions encountered in practice may not be convex or concave, they can sometimes be closely approximated by convex or concave functions.
Determine if the following function is convex and find its optimal solution:
minimize f(x, y) = x2 + 6xy - 2y3 + 24y
First find the gradient vector and then the Hessian matrix.
f(x, y) = (2x + 6y, 6x - 6y2 + 24)
| 2 6 |
H = | 6 -12y|
Solving the gradient for point(s) which make it zero we get:
2x + 6y = 0 or x = -3y
6(-3y) - 6y2 + 24 = 0 or y2 + 3y - 4 = 0
y2 + 3y - 4 = (y + 4)(y - 1) = 0 or y = -4, y = 1
When y = -4, x = 12, and when y = 1, x = -3.
It is easy to check that H is positive definite at (12, -4), and thus the function has a relative minimum there. At (-3, 1) the Hessian is indefinite, so we do not know what type of point we have. In fact, the diagonal matrix we get when reducing H is
| 1 0 | | 0 -12y-18|
Thus, as long as -12y-18 > 0, or y < -3/2, the function is convex and in this half plane, the absolute minimum is at (12, -4). f(12, -4) = -112. If y = 5, and x = 0, f(x, y) = -250 + 120 = -130 < -112. Thus over the entire plane, the function has no absolute minimum, but decreases to - infinity.
These will be provided in class.
Find the gradient vector for this function, its Hessian matrix, its
stationary point(s), and determine whether
or not the function is convex. Classify the stationary point(s) as relative min or relative max or saddle
point(s). Find the absolute min for this function over the first
octant. (The first octant is {X | X >= 0})
Return to the
List of Activities