FE501 – 1214 Nonlinearp Programming Week 3Calculation of the Hessian MatrixUnconstrained Nonlinear Optimization ProblemsGradient and Stationary PointMore about stationary point (Optional Information)Different types of stationary pointsTurning pointsHow to find Stationary point ?Stationary point and Local Minimum or Local Maximum (1)Stationary point and Local Minimum or Local Maximum (2)Unconstrained Theorems TheoremsFor single variable function (single dimension)For multi-dimensional function (multivariable function)ExtraQuadratic ProblemsReferences
Calculating PMi to show the type of the Hessian Matrix, which is needed to find whether the function
Expl.
Note: First order PMs are on the diagnoze. Second is the determinate of the matrix.
The function is Neither Convex Nor Concave (NCNC)
Expl.
Actually we do not need to calculate this, because:
- Sum of CVX is CVX.
- Sum of CCV is CCV
- if
is CVX, then is CCV
Expl.
This is CCV (concave) cause sum of CCV is CCV.
Expl.
Expl.
NOTICE: Wrong result is addressed on this problem during the class!
B.N.11.6-655
We now discuss how to find an optimal solution (if it exists) or a local extremum (local optimum point) for the following unconstrained NLP:
We assume that for the given function the first and second partial derivatives are all exists.
Let
in formula (2) is called the gradient of the function.
Necessary condition for
That means, for one dimensional function (single variable function), we just have to check the
Expl.
We have learned how to determind the domain being either convex or not, and we also have learned determining the objective function being either convex or not, and now we will start learning about the local maximum or local minimum points and their properties.
Stationary points where gradient of
are candidate points for being local optimum solution. or in other way:
A point
having is called a stationary point of .
NOTE: you can skip this.
A stationary point, or critical point, is a point at which the curve's gradient equals to zero. Consequently if a curve has equation y=f(x) then at a stationary point we'll always have:
which can also be written:
In other words the derivative function equals to zero at a stationary point*.
There are three types of stationary points:
It is worth pointing out that maximum and minimum points are often called turning points.
A turning point is a stationary point, which is can be:
each of which are illustared in the graphs shown here, where the horizontal tangent is shown in orange:
Given a function f(x) and its curve y=f(x), to find any stationary point(s) we follow three steps:
(Choose either (1) or (2) methods, both has the same meaning but slightly different approach for finding the local minimum or maximum)
As we know that:
A point
having is called a stationary point of .
Let’s say for a given function
(Apparently this is a CCV function).
As we can see, or let’s say we have calculated the
Let’s say when we increase the value of x slightly, without changing the values of y or z on the graph, we got the blue point. the function value for blue point holds:
which also indicates that in it’s neibourhood of point(red), it is a local maximum point by definition.
To observe this more formally, we use Hessian matrix.
For a given stationary point
, If
, then a stationary point is a local minimum point for NLP. If, for
is nonzero, and has the same sign as , then a stationary point is a local maximum for NLP. If
and the conditions above do not hold, then a stationary point is not a local extremum (not a local max or min), if a stationary point is not a local extremum, then it is called a saddle point. If
for a stationary point, then the stationary point may be a local maximum, a local minimum or a saddle point, and the preceding tests are inconclusive.
This definition and process is given by Hocam and you might find this more useful.
For an unconstrined NLP, stationary points where the gradient
are the candidate points for being a local optimum solution.
Expl.
so x=0 is a local optimum point (for this problem it is min).
There are three posibilities:
Expl.
So for this particular problem, x=0 is a local maximum point.
Expl.
But x=0 is not a local maximum nor a local minimum point, it is a inflaction point.
So someother steps are needed in order to determine the type of the point.
Expl.
Expl.
Actually, it is a inflaction point.
Expl.
Obviously, x=0 is local minimum.
If first non-zero derivative occurs at an odd ordered derivative, then x is an inflaction point.
If first non-zero derivative occurs at an even ordered derivative, and:
21- The value is **positive**, stationary point x is **local minimum**.
2- The value is **negative**, stationary point x is **local maximum**.
For a convex function, the local minimum is a gloabl minimum.
For a concave function, the local maximum is a global maximum.
In a case that we can not determine the function being convex or concave, then we need to:
- check all the local minimum points and local maximum points
- chec the boundary points of the function domains on the feasible region.
Exercise
Check the function convexity :
So this function is not convex nor concave.
Now we will test boundaries of the function:
Exercise
Now we need to put each stationary point into the H(x,y) and check the Hessian Matrix Value.
Then we need to check the
Theorem:
If
> 0, then the H is positive definite, st.pt is local min. If
> 0, then the H is negative definite, st.pt is local max.
Unconstrained Optimization Done.
QP is NLP where the largest power is Square (^2).
[End of 1214]