REACTOR ANDGREEN CHEMISTRYvvREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRYREACTOR ANDGREEN CHEMISTRY
Trang 1Chapter 4 Unconstrained optimization
Trang 2Why are numerical methods ?
Attack to minimization problemdirectly by the numerical methods
For analytical method
Trang 3Step size
Gradient
What are numerical methods ?
Numerical methods that search for an extremum by usingfunction and sometimes derivative values of 𝑓 𝑋 at asequence of trial points 𝑋1, 𝑋2… until 𝑓 𝑋𝑛+1 − 𝑓 𝑋𝑛 < 𝜀
Trang 4Procedure for numerical methods
• Starting at 𝑋𝑜 in a certain direction Ԧ𝑠𝑜Step 1
• Move to 𝑋𝑛 with a step size ∆𝑋 = 𝛼𝑜 Ԧ𝑠𝑜Step 2
• Change the direction (if any) and move to 𝑋𝑛+1Step 3
• Stop searching until 𝑓 𝑋𝑛+1 − 𝑓 𝑋𝑛 < 𝜀Step 4
Trang 5Minimize the following function:
Starting at 𝑥𝑜 = 0 and 𝑥𝑛+1 = 𝑥𝑛 + 𝛼2𝑛−1
Trang 7Classification of numerical methods
Trang 8Bracketing methods
Trang 11𝑋𝑛+1 = 𝑋𝑛 + ∆𝑋
Trang 13Golden section search
2 ≅ 1.618
Trang 14Golden section search
Trang 15Golden section search
Trang 19Choose the best
For single variable problem, 𝑥5 is determined by vector 𝐴
Trang 20Scanning methods
Trang 226 points and center
Starting at a center point and move
to given point in certain direction
Trang 23Simplex search
𝑋1
3 points and 3 reflection
Starting at set of 3 points and move
to another set in certain direction
Trang 25Derivative methods
Trang 26The first approach for single variable
Based on “necessary condition”, a local extremum isalso the stationary point
Extrema searching directly is replaced by rootsolution of first order indirectly
𝑓′ 𝑥 = 0
Trang 28Regula falsi method
Trang 30For quadratic function, Newton
method needs only one step
Trang 31The second approach for multivariable
Scalar value 𝛼𝑛 and search direction Ԧ𝑠 are calculated
based on the derivatives
𝑋𝑛+1 = 𝑋𝑛 + 𝛼𝑛 Ԧ𝑠
Trang 32The second approach for multivariable
Scalar value 𝛼𝑛 can be given or calculatedbased on “necessary” condition
Trang 33Conjugate search
Starting at a point and move to another
point in two conjugate directions
𝑛 variables, 𝑛 axes, only 2 directions needed
Trang 34𝑓 𝑋 = 2𝑥12 + 𝑥22 − 3
Minimize the following function:
Using conjugate search and starting at 𝑋𝑜 = 1
1 withinitial direction being Ԧ𝑠𝑜 = −4
−2
Trang 35𝑓 𝑋 = 2𝑥12 + 𝑥22 − 3
Determine the conjugate direction Ԧ𝑠1 of Ԧ𝑠𝑜
For the objective function:
Trang 36𝑋𝑜′ = 𝑋𝑜 + 𝛼𝑜𝑠𝑜 = −0.1111
0.4444
Trang 38Steepest descent
Starting at a point and move to another
point in gradient direction
Trang 39𝑓 𝑋 = 𝑥14 − 2𝑥2𝑥12 + 𝑥22 + 𝑥12 − 2𝑥1 + 5
Minimize the following function:
Using Steepest descent method, starting at 𝑋𝑜 = 1
2and scalar 𝛼𝑜 = 0.05
Trang 40Determine the gradient
Confirm position at starting point
Calculate the next point 𝑋1 = 𝑋𝑜 − 𝛼𝑜𝛻𝑓 𝑋𝑜 = 1.2
1.9
𝑓 𝑋1 = 4.25
Trang 41Conjugate gradient search
• Conjugate search: moving on linear combination of Ԧ𝑠𝑖 and Ԧ𝑠𝑗
• Steepest descent: moving on gradient direction 𝛻𝑓 𝑋𝑛
• Conjugate gradient: moving on linear combination of
𝛻𝑓 𝑋𝑛−1 and 𝛻𝑓 𝑋𝑛
Trang 42Conjugate gradient search
𝑋𝑛+1 = 𝑋𝑛 + 𝛼𝑛𝑠𝑛
Scalar 𝛼𝑛 is calculated by:
Direction 𝑠𝑛 is determined by:
Trang 44𝑓 𝑋 = 4𝑥12 + 𝑥22 − 2𝑥1𝑥2
Minimize the following function:
Using Newton method and starting at 𝑋𝑜 = 1
1
Trang 47Secant: 𝑘 = 1+ 5
2 ≅ 1.618Newton: 𝑘 = 2
The function value methods:
• The rate of convergence is low
• Suitable to the complicated or discontinuous functions
• Easily for coding