Design Optimization: Assistant Professor: Dr. Daniel Neufeld
Design Optimization: Assistant Professor: Dr. Daniel Neufeld
KU Aerospace
6/5/2012
Review
Last lecture, we discussed some challenges associated with non-linear programming
o The solutions dont necessarily like on constraint intersection points and can be anywhere in the feasible region o Feasible regions can be discontinuous o The optimum point may not be mathematically demonstrable
Only local maxima or minima can be mathematically demonstrated if the 3 necessary conditions are met
KU Aerospace
6/5/2012
2. If 1
o
3. Otherwise has a saddle point at Note, the 1 term causes every second following term to be negative, i.e, -D1+D2-D3, The terms are represent the determinants of the subset matrices of the hessian, , which begins with the first element at (1,1), then (1,1), (1,2),(2,1),(2,2) and so on
KU Aerospace 6/5/2012 3
saddle point
-5
2 0 -2 y -3 -2 -1 x 0 1 2
local min
6/5/2012 4
KU Aerospace
KU Aerospace
6/5/2012
KU Aerospace
6/5/2012
An exact solution of these equations is rarely possible We need to use numerical methods to do so
o Newtons Method o Secant Method o Bisection Method
KU Aerospace
6/5/2012
Root Finding
There are 3 widely used methods for determining the roots of any continuous equation Roots are defined as the x values where the function f(x) is zero. Methods
o Bisection Method o Secant Method o Newtons Method
Bisection Method
Were trying to find the value of where = 0 Well call this value such that = 0 Intermediate Value Theorem
o If is continuous over the interval , , then for any such that is between and there is a value, between and where =
This means that if we know the roots of a continuous function lie between two values , such that:
o >0 o <0
KU Aerospace
6/5/2012
First guess: c =
+ 2
We can then check whether = 0 If not, we need to adjust the boundaries for a better guess We do this by applying the following condition
KU Aerospace 6/5/2012 10
+ 2
We can apply this recursively until the gap between the upper and lower boundary becomes very small
KU Aerospace 6/5/2012 11
root
Step 1
1 0.5 0 -0.5 -1 -1.5
+ = 2
-1
-0.5
0.5
1.5
2.5
> 0 < 0
KU Aerospace
6/5/2012
12
+ = 2
-1
-0.5
0.5
1.5
2.5
> 0 < 0
KU Aerospace
6/5/2012
13
+ 2
-1
-0.5
0.5
1.5
2.5
> 0 < 0
KU Aerospace
6/5/2012
14
Step 4
-1
-0.5
0.5
1.5
2.5
Clearly, the interval between the solution and the boundaries continues to shrink as the bisection method proceeds
KU Aerospace 6/5/2012 15
KU Aerospace
6/5/2012
16
f(x)
-0.5
6 Iteration Number
10
12
Final estimate: = 9.76 104 The true answer is = 0, so clearly, were within our tolerance
KU Aerospace 6/5/2012 17
Number of Iterations
30
20
10
6
-
10
Tolerance (10 )
KU Aerospace
6/5/2012
18
And the next will be half again, therefore after iterations, the interval will be
o = =
0 0 , 0 0 2 0 0
o Or 2 =
= log 2
KU Aerospace
6/5/2012
19
KU Aerospace
6/5/2012
20
KU Aerospace
6/5/2012
21
Newtons Method
Newtons Method is an iterative approach for root finding The basic principle is to transform the given function into a straight line and solve for the roots of that line Doing so repeatedly eventually finds the root Convergence rates are significantly faster than that of the bisection method
KU Aerospace
6/5/2012
22
Newtons Method
We assume a starting point for x. Determine the slope of the function at that point Draw a straight line and calculate the x-intercept of that straight line Replace the previous x with the new one Repeat
KU Aerospace
6/5/2012
23
Newtons Method
Newtons Method works as follows
+1 = ( ) Start with the point 0 = (0 ) slope = = () We need to calculate the value where = 0 so 0 = 0 and = () we get 0 = 0 () or 0 = (0 ) From the figure, = 0 0 = 0 (0 ) 6/5/2012 24
= (0 )
KU Aerospace
KU Aerospace
6/5/2012
25
KU Aerospace
6/5/2012
26
Secant Method
What if we cant perform analytical derivatives on our function? If () is not differentiable analytically, we can use approximate derivatives Recall that
o
+
This can be subbed into Newtons Method Alternatively, we can employ a different strategy called the Secant Method
KU Aerospace
6/5/2012
27
Secant Method
Start with TWO guesses, point 0 and 1 = (0 ) 1 (0 ) slope = = 1 0
1 = (1 )
0 = (0 ) 2 0
1
2
(1 )
1 (1 )
6/5/2012 28
KU Aerospace